1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 4.0.2
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 
12 #ifndef SWIGPYTHON
13 #define SWIGPYTHON
14 #endif
15 
16 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
17 
18 
19 #ifdef __cplusplus
20 /* SwigValueWrapper is described in swig.swg */
21 template<typename T> class SwigValueWrapper {
22   struct SwigMovePointer {
23     T *ptr;
SwigMovePointerSwigValueWrapper::SwigMovePointer24     SwigMovePointer(T *p) : ptr(p) { }
~SwigMovePointerSwigValueWrapper::SwigMovePointer25     ~SwigMovePointer() { delete ptr; }
operator =SwigValueWrapper::SwigMovePointer26     SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
27   } pointer;
28   SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
29   SwigValueWrapper(const SwigValueWrapper<T>& rhs);
30 public:
SwigValueWrapper()31   SwigValueWrapper() : pointer(0) { }
operator =(const T & t)32   SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
operator T&() const33   operator T&() const { return *pointer.ptr; }
operator &()34   T *operator&() { return pointer.ptr; }
35 };
36 
SwigValueInit()37 template <typename T> T SwigValueInit() {
38   return T();
39 }
40 #endif
41 
42 /* -----------------------------------------------------------------------------
43  *  This section contains generic SWIG labels for method/variable
44  *  declarations/attributes, and other compiler dependent labels.
45  * ----------------------------------------------------------------------------- */
46 
47 /* template workaround for compilers that cannot correctly implement the C++ standard */
48 #ifndef SWIGTEMPLATEDISAMBIGUATOR
49 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
50 #  define SWIGTEMPLATEDISAMBIGUATOR template
51 # elif defined(__HP_aCC)
52 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
53 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
54 #  define SWIGTEMPLATEDISAMBIGUATOR template
55 # else
56 #  define SWIGTEMPLATEDISAMBIGUATOR
57 # endif
58 #endif
59 
60 /* inline attribute */
61 #ifndef SWIGINLINE
62 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
63 #   define SWIGINLINE inline
64 # else
65 #   define SWIGINLINE
66 # endif
67 #endif
68 
69 /* attribute recognised by some compilers to avoid 'unused' warnings */
70 #ifndef SWIGUNUSED
71 # if defined(__GNUC__)
72 #   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
73 #     define SWIGUNUSED __attribute__ ((__unused__))
74 #   else
75 #     define SWIGUNUSED
76 #   endif
77 # elif defined(__ICC)
78 #   define SWIGUNUSED __attribute__ ((__unused__))
79 # else
80 #   define SWIGUNUSED
81 # endif
82 #endif
83 
84 #ifndef SWIG_MSC_UNSUPPRESS_4505
85 # if defined(_MSC_VER)
86 #   pragma warning(disable : 4505) /* unreferenced local function has been removed */
87 # endif
88 #endif
89 
90 #ifndef SWIGUNUSEDPARM
91 # ifdef __cplusplus
92 #   define SWIGUNUSEDPARM(p)
93 # else
94 #   define SWIGUNUSEDPARM(p) p SWIGUNUSED
95 # endif
96 #endif
97 
98 /* internal SWIG method */
99 #ifndef SWIGINTERN
100 # define SWIGINTERN static SWIGUNUSED
101 #endif
102 
103 /* internal inline SWIG method */
104 #ifndef SWIGINTERNINLINE
105 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
106 #endif
107 
108 /* exporting methods */
109 #if defined(__GNUC__)
110 #  if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
111 #    ifndef GCC_HASCLASSVISIBILITY
112 #      define GCC_HASCLASSVISIBILITY
113 #    endif
114 #  endif
115 #endif
116 
117 #ifndef SWIGEXPORT
118 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
119 #   if defined(STATIC_LINKED)
120 #     define SWIGEXPORT
121 #   else
122 #     define SWIGEXPORT __declspec(dllexport)
123 #   endif
124 # else
125 #   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
126 #     define SWIGEXPORT __attribute__ ((visibility("default")))
127 #   else
128 #     define SWIGEXPORT
129 #   endif
130 # endif
131 #endif
132 
133 /* calling conventions for Windows */
134 #ifndef SWIGSTDCALL
135 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
136 #   define SWIGSTDCALL __stdcall
137 # else
138 #   define SWIGSTDCALL
139 # endif
140 #endif
141 
142 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
143 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
144 # define _CRT_SECURE_NO_DEPRECATE
145 #endif
146 
147 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
148 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
149 # define _SCL_SECURE_NO_DEPRECATE
150 #endif
151 
152 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
153 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
154 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
155 #endif
156 
157 /* Intel's compiler complains if a variable which was never initialised is
158  * cast to void, which is a common idiom which we use to indicate that we
159  * are aware a variable isn't used.  So we just silence that warning.
160  * See: https://github.com/swig/swig/issues/192 for more discussion.
161  */
162 #ifdef __INTEL_COMPILER
163 # pragma warning disable 592
164 #endif
165 
166 
167 #if defined(__GNUC__) && defined(_WIN32) && !defined(SWIG_PYTHON_NO_HYPOT_WORKAROUND)
168 /* Workaround for '::hypot' has not been declared', see https://bugs.python.org/issue11566 */
169 # include <math.h>
170 #endif
171 
172 #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
173 /* Use debug wrappers with the Python release dll */
174 # undef _DEBUG
175 # include <Python.h>
176 # define _DEBUG 1
177 #else
178 # include <Python.h>
179 #endif
180 
181 /* -----------------------------------------------------------------------------
182  * swigrun.swg
183  *
184  * This file contains generic C API SWIG runtime support for pointer
185  * type checking.
186  * ----------------------------------------------------------------------------- */
187 
188 /* This should only be incremented when either the layout of swig_type_info changes,
189    or for whatever reason, the runtime changes incompatibly */
190 #define SWIG_RUNTIME_VERSION "4"
191 
192 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
193 #ifdef SWIG_TYPE_TABLE
194 # define SWIG_QUOTE_STRING(x) #x
195 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
196 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
197 #else
198 # define SWIG_TYPE_TABLE_NAME
199 #endif
200 
201 /*
202   You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
203   creating a static or dynamic library from the SWIG runtime code.
204   In 99.9% of the cases, SWIG just needs to declare them as 'static'.
205 
206   But only do this if strictly necessary, ie, if you have problems
207   with your compiler or suchlike.
208 */
209 
210 #ifndef SWIGRUNTIME
211 # define SWIGRUNTIME SWIGINTERN
212 #endif
213 
214 #ifndef SWIGRUNTIMEINLINE
215 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
216 #endif
217 
218 /*  Generic buffer size */
219 #ifndef SWIG_BUFFER_SIZE
220 # define SWIG_BUFFER_SIZE 1024
221 #endif
222 
223 /* Flags for pointer conversions */
224 #define SWIG_POINTER_DISOWN        0x1
225 #define SWIG_CAST_NEW_MEMORY       0x2
226 #define SWIG_POINTER_NO_NULL       0x4
227 
228 /* Flags for new pointer objects */
229 #define SWIG_POINTER_OWN           0x1
230 
231 
232 /*
233    Flags/methods for returning states.
234 
235    The SWIG conversion methods, as ConvertPtr, return an integer
236    that tells if the conversion was successful or not. And if not,
237    an error code can be returned (see swigerrors.swg for the codes).
238 
239    Use the following macros/flags to set or process the returning
240    states.
241 
242    In old versions of SWIG, code such as the following was usually written:
243 
244      if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
245        // success code
246      } else {
247        //fail code
248      }
249 
250    Now you can be more explicit:
251 
252     int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
253     if (SWIG_IsOK(res)) {
254       // success code
255     } else {
256       // fail code
257     }
258 
259    which is the same really, but now you can also do
260 
261     Type *ptr;
262     int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
263     if (SWIG_IsOK(res)) {
264       // success code
265       if (SWIG_IsNewObj(res) {
266         ...
267 	delete *ptr;
268       } else {
269         ...
270       }
271     } else {
272       // fail code
273     }
274 
275    I.e., now SWIG_ConvertPtr can return new objects and you can
276    identify the case and take care of the deallocation. Of course that
277    also requires SWIG_ConvertPtr to return new result values, such as
278 
279       int SWIG_ConvertPtr(obj, ptr,...) {
280         if (<obj is ok>) {
281           if (<need new object>) {
282             *ptr = <ptr to new allocated object>;
283             return SWIG_NEWOBJ;
284           } else {
285             *ptr = <ptr to old object>;
286             return SWIG_OLDOBJ;
287           }
288         } else {
289           return SWIG_BADOBJ;
290         }
291       }
292 
293    Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
294    more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
295    SWIG errors code.
296 
297    Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
298    allows to return the 'cast rank', for example, if you have this
299 
300        int food(double)
301        int fooi(int);
302 
303    and you call
304 
305       food(1)   // cast rank '1'  (1 -> 1.0)
306       fooi(1)   // cast rank '0'
307 
308    just use the SWIG_AddCast()/SWIG_CheckState()
309 */
310 
311 #define SWIG_OK                    (0)
312 #define SWIG_ERROR                 (-1)
313 #define SWIG_IsOK(r)               (r >= 0)
314 #define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)
315 
316 /* The CastRankLimit says how many bits are used for the cast rank */
317 #define SWIG_CASTRANKLIMIT         (1 << 8)
318 /* The NewMask denotes the object was created (using new/malloc) */
319 #define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
320 /* The TmpMask is for in/out typemaps that use temporal objects */
321 #define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
322 /* Simple returning values */
323 #define SWIG_BADOBJ                (SWIG_ERROR)
324 #define SWIG_OLDOBJ                (SWIG_OK)
325 #define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
326 #define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
327 /* Check, add and del mask methods */
328 #define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
329 #define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
330 #define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
331 #define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
332 #define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
333 #define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
334 
335 /* Cast-Rank Mode */
336 #if defined(SWIG_CASTRANK_MODE)
337 #  ifndef SWIG_TypeRank
338 #    define SWIG_TypeRank             unsigned long
339 #  endif
340 #  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
341 #    define SWIG_MAXCASTRANK          (2)
342 #  endif
343 #  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
344 #  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
SWIG_AddCast(int r)345 SWIGINTERNINLINE int SWIG_AddCast(int r) {
346   return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
347 }
SWIG_CheckState(int r)348 SWIGINTERNINLINE int SWIG_CheckState(int r) {
349   return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
350 }
351 #else /* no cast-rank mode */
352 #  define SWIG_AddCast(r) (r)
353 #  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
354 #endif
355 
356 
357 #include <string.h>
358 
359 #ifdef __cplusplus
360 extern "C" {
361 #endif
362 
363 typedef void *(*swig_converter_func)(void *, int *);
364 typedef struct swig_type_info *(*swig_dycast_func)(void **);
365 
366 /* Structure to store information on one type */
367 typedef struct swig_type_info {
368   const char             *name;			/* mangled name of this type */
369   const char             *str;			/* human readable name of this type */
370   swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */
371   struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */
372   void                   *clientdata;		/* language specific type data */
373   int                    owndata;		/* flag if the structure owns the clientdata */
374 } swig_type_info;
375 
376 /* Structure to store a type and conversion function used for casting */
377 typedef struct swig_cast_info {
378   swig_type_info         *type;			/* pointer to type that is equivalent to this type */
379   swig_converter_func     converter;		/* function to cast the void pointers */
380   struct swig_cast_info  *next;			/* pointer to next cast in linked list */
381   struct swig_cast_info  *prev;			/* pointer to the previous cast */
382 } swig_cast_info;
383 
384 /* Structure used to store module information
385  * Each module generates one structure like this, and the runtime collects
386  * all of these structures and stores them in a circularly linked list.*/
387 typedef struct swig_module_info {
388   swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */
389   size_t                 size;		        /* Number of types in this module */
390   struct swig_module_info *next;		/* Pointer to next element in circularly linked list */
391   swig_type_info         **type_initial;	/* Array of initially generated type structures */
392   swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */
393   void                    *clientdata;		/* Language specific module data */
394 } swig_module_info;
395 
396 /*
397   Compare two type names skipping the space characters, therefore
398   "char*" == "char *" and "Class<int>" == "Class<int >", etc.
399 
400   Return 0 when the two name types are equivalent, as in
401   strncmp, but skipping ' '.
402 */
403 SWIGRUNTIME int
SWIG_TypeNameComp(const char * f1,const char * l1,const char * f2,const char * l2)404 SWIG_TypeNameComp(const char *f1, const char *l1,
405 		  const char *f2, const char *l2) {
406   for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
407     while ((*f1 == ' ') && (f1 != l1)) ++f1;
408     while ((*f2 == ' ') && (f2 != l2)) ++f2;
409     if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
410   }
411   return (int)((l1 - f1) - (l2 - f2));
412 }
413 
414 /*
415   Check type equivalence in a name list like <name1>|<name2>|...
416   Return 0 if equal, -1 if nb < tb, 1 if nb > tb
417 */
418 SWIGRUNTIME int
SWIG_TypeCmp(const char * nb,const char * tb)419 SWIG_TypeCmp(const char *nb, const char *tb) {
420   int equiv = 1;
421   const char* te = tb + strlen(tb);
422   const char* ne = nb;
423   while (equiv != 0 && *ne) {
424     for (nb = ne; *ne; ++ne) {
425       if (*ne == '|') break;
426     }
427     equiv = SWIG_TypeNameComp(nb, ne, tb, te);
428     if (*ne) ++ne;
429   }
430   return equiv;
431 }
432 
433 /*
434   Check type equivalence in a name list like <name1>|<name2>|...
435   Return 0 if not equal, 1 if equal
436 */
437 SWIGRUNTIME int
SWIG_TypeEquiv(const char * nb,const char * tb)438 SWIG_TypeEquiv(const char *nb, const char *tb) {
439   return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
440 }
441 
442 /*
443   Check the typename
444 */
445 SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char * c,swig_type_info * ty)446 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
447   if (ty) {
448     swig_cast_info *iter = ty->cast;
449     while (iter) {
450       if (strcmp(iter->type->name, c) == 0) {
451         if (iter == ty->cast)
452           return iter;
453         /* Move iter to the top of the linked list */
454         iter->prev->next = iter->next;
455         if (iter->next)
456           iter->next->prev = iter->prev;
457         iter->next = ty->cast;
458         iter->prev = 0;
459         if (ty->cast) ty->cast->prev = iter;
460         ty->cast = iter;
461         return iter;
462       }
463       iter = iter->next;
464     }
465   }
466   return 0;
467 }
468 
469 /*
470   Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
471 */
472 SWIGRUNTIME swig_cast_info *
SWIG_TypeCheckStruct(swig_type_info * from,swig_type_info * ty)473 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
474   if (ty) {
475     swig_cast_info *iter = ty->cast;
476     while (iter) {
477       if (iter->type == from) {
478         if (iter == ty->cast)
479           return iter;
480         /* Move iter to the top of the linked list */
481         iter->prev->next = iter->next;
482         if (iter->next)
483           iter->next->prev = iter->prev;
484         iter->next = ty->cast;
485         iter->prev = 0;
486         if (ty->cast) ty->cast->prev = iter;
487         ty->cast = iter;
488         return iter;
489       }
490       iter = iter->next;
491     }
492   }
493   return 0;
494 }
495 
496 /*
497   Cast a pointer up an inheritance hierarchy
498 */
499 SWIGRUNTIMEINLINE void *
SWIG_TypeCast(swig_cast_info * ty,void * ptr,int * newmemory)500 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
501   return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
502 }
503 
504 /*
505    Dynamic pointer casting. Down an inheritance hierarchy
506 */
507 SWIGRUNTIME swig_type_info *
SWIG_TypeDynamicCast(swig_type_info * ty,void ** ptr)508 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
509   swig_type_info *lastty = ty;
510   if (!ty || !ty->dcast) return ty;
511   while (ty && (ty->dcast)) {
512     ty = (*ty->dcast)(ptr);
513     if (ty) lastty = ty;
514   }
515   return lastty;
516 }
517 
518 /*
519   Return the name associated with this type
520 */
521 SWIGRUNTIMEINLINE const char *
SWIG_TypeName(const swig_type_info * ty)522 SWIG_TypeName(const swig_type_info *ty) {
523   return ty->name;
524 }
525 
526 /*
527   Return the pretty name associated with this type,
528   that is an unmangled type name in a form presentable to the user.
529 */
530 SWIGRUNTIME const char *
SWIG_TypePrettyName(const swig_type_info * type)531 SWIG_TypePrettyName(const swig_type_info *type) {
532   /* The "str" field contains the equivalent pretty names of the
533      type, separated by vertical-bar characters.  We choose
534      to print the last name, as it is often (?) the most
535      specific. */
536   if (!type) return NULL;
537   if (type->str != NULL) {
538     const char *last_name = type->str;
539     const char *s;
540     for (s = type->str; *s; s++)
541       if (*s == '|') last_name = s+1;
542     return last_name;
543   }
544   else
545     return type->name;
546 }
547 
548 /*
549    Set the clientdata field for a type
550 */
551 SWIGRUNTIME void
SWIG_TypeClientData(swig_type_info * ti,void * clientdata)552 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
553   swig_cast_info *cast = ti->cast;
554   /* if (ti->clientdata == clientdata) return; */
555   ti->clientdata = clientdata;
556 
557   while (cast) {
558     if (!cast->converter) {
559       swig_type_info *tc = cast->type;
560       if (!tc->clientdata) {
561 	SWIG_TypeClientData(tc, clientdata);
562       }
563     }
564     cast = cast->next;
565   }
566 }
567 SWIGRUNTIME void
SWIG_TypeNewClientData(swig_type_info * ti,void * clientdata)568 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
569   SWIG_TypeClientData(ti, clientdata);
570   ti->owndata = 1;
571 }
572 
573 /*
574   Search for a swig_type_info structure only by mangled name
575   Search is a O(log #types)
576 
577   We start searching at module start, and finish searching when start == end.
578   Note: if start == end at the beginning of the function, we go all the way around
579   the circular list.
580 */
581 SWIGRUNTIME swig_type_info *
SWIG_MangledTypeQueryModule(swig_module_info * start,swig_module_info * end,const char * name)582 SWIG_MangledTypeQueryModule(swig_module_info *start,
583                             swig_module_info *end,
584 		            const char *name) {
585   swig_module_info *iter = start;
586   do {
587     if (iter->size) {
588       size_t l = 0;
589       size_t r = iter->size - 1;
590       do {
591 	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
592 	size_t i = (l + r) >> 1;
593 	const char *iname = iter->types[i]->name;
594 	if (iname) {
595 	  int compare = strcmp(name, iname);
596 	  if (compare == 0) {
597 	    return iter->types[i];
598 	  } else if (compare < 0) {
599 	    if (i) {
600 	      r = i - 1;
601 	    } else {
602 	      break;
603 	    }
604 	  } else if (compare > 0) {
605 	    l = i + 1;
606 	  }
607 	} else {
608 	  break; /* should never happen */
609 	}
610       } while (l <= r);
611     }
612     iter = iter->next;
613   } while (iter != end);
614   return 0;
615 }
616 
617 /*
618   Search for a swig_type_info structure for either a mangled name or a human readable name.
619   It first searches the mangled names of the types, which is a O(log #types)
620   If a type is not found it then searches the human readable names, which is O(#types).
621 
622   We start searching at module start, and finish searching when start == end.
623   Note: if start == end at the beginning of the function, we go all the way around
624   the circular list.
625 */
626 SWIGRUNTIME swig_type_info *
SWIG_TypeQueryModule(swig_module_info * start,swig_module_info * end,const char * name)627 SWIG_TypeQueryModule(swig_module_info *start,
628                      swig_module_info *end,
629 		     const char *name) {
630   /* STEP 1: Search the name field using binary search */
631   swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
632   if (ret) {
633     return ret;
634   } else {
635     /* STEP 2: If the type hasn't been found, do a complete search
636        of the str field (the human readable name) */
637     swig_module_info *iter = start;
638     do {
639       size_t i = 0;
640       for (; i < iter->size; ++i) {
641 	if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
642 	  return iter->types[i];
643       }
644       iter = iter->next;
645     } while (iter != end);
646   }
647 
648   /* neither found a match */
649   return 0;
650 }
651 
652 /*
653    Pack binary data into a string
654 */
655 SWIGRUNTIME char *
SWIG_PackData(char * c,void * ptr,size_t sz)656 SWIG_PackData(char *c, void *ptr, size_t sz) {
657   static const char hex[17] = "0123456789abcdef";
658   const unsigned char *u = (unsigned char *) ptr;
659   const unsigned char *eu =  u + sz;
660   for (; u != eu; ++u) {
661     unsigned char uu = *u;
662     *(c++) = hex[(uu & 0xf0) >> 4];
663     *(c++) = hex[uu & 0xf];
664   }
665   return c;
666 }
667 
668 /*
669    Unpack binary data from a string
670 */
671 SWIGRUNTIME const char *
SWIG_UnpackData(const char * c,void * ptr,size_t sz)672 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
673   unsigned char *u = (unsigned char *) ptr;
674   const unsigned char *eu = u + sz;
675   for (; u != eu; ++u) {
676     char d = *(c++);
677     unsigned char uu;
678     if ((d >= '0') && (d <= '9'))
679       uu = (unsigned char)((d - '0') << 4);
680     else if ((d >= 'a') && (d <= 'f'))
681       uu = (unsigned char)((d - ('a'-10)) << 4);
682     else
683       return (char *) 0;
684     d = *(c++);
685     if ((d >= '0') && (d <= '9'))
686       uu |= (unsigned char)(d - '0');
687     else if ((d >= 'a') && (d <= 'f'))
688       uu |= (unsigned char)(d - ('a'-10));
689     else
690       return (char *) 0;
691     *u = uu;
692   }
693   return c;
694 }
695 
696 /*
697    Pack 'void *' into a string buffer.
698 */
699 SWIGRUNTIME char *
SWIG_PackVoidPtr(char * buff,void * ptr,const char * name,size_t bsz)700 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
701   char *r = buff;
702   if ((2*sizeof(void *) + 2) > bsz) return 0;
703   *(r++) = '_';
704   r = SWIG_PackData(r,&ptr,sizeof(void *));
705   if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
706   strcpy(r,name);
707   return buff;
708 }
709 
710 SWIGRUNTIME const char *
SWIG_UnpackVoidPtr(const char * c,void ** ptr,const char * name)711 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
712   if (*c != '_') {
713     if (strcmp(c,"NULL") == 0) {
714       *ptr = (void *) 0;
715       return name;
716     } else {
717       return 0;
718     }
719   }
720   return SWIG_UnpackData(++c,ptr,sizeof(void *));
721 }
722 
723 SWIGRUNTIME char *
SWIG_PackDataName(char * buff,void * ptr,size_t sz,const char * name,size_t bsz)724 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
725   char *r = buff;
726   size_t lname = (name ? strlen(name) : 0);
727   if ((2*sz + 2 + lname) > bsz) return 0;
728   *(r++) = '_';
729   r = SWIG_PackData(r,ptr,sz);
730   if (lname) {
731     strncpy(r,name,lname+1);
732   } else {
733     *r = 0;
734   }
735   return buff;
736 }
737 
738 SWIGRUNTIME const char *
SWIG_UnpackDataName(const char * c,void * ptr,size_t sz,const char * name)739 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
740   if (*c != '_') {
741     if (strcmp(c,"NULL") == 0) {
742       memset(ptr,0,sz);
743       return name;
744     } else {
745       return 0;
746     }
747   }
748   return SWIG_UnpackData(++c,ptr,sz);
749 }
750 
751 #ifdef __cplusplus
752 }
753 #endif
754 
755 /*  Errors in SWIG */
756 #define  SWIG_UnknownError    	   -1
757 #define  SWIG_IOError        	   -2
758 #define  SWIG_RuntimeError   	   -3
759 #define  SWIG_IndexError     	   -4
760 #define  SWIG_TypeError      	   -5
761 #define  SWIG_DivisionByZero 	   -6
762 #define  SWIG_OverflowError  	   -7
763 #define  SWIG_SyntaxError    	   -8
764 #define  SWIG_ValueError     	   -9
765 #define  SWIG_SystemError    	   -10
766 #define  SWIG_AttributeError 	   -11
767 #define  SWIG_MemoryError    	   -12
768 #define  SWIG_NullReferenceError   -13
769 
770 
771 
772 /* Compatibility macros for Python 3 */
773 #if PY_VERSION_HEX >= 0x03000000
774 
775 #define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
776 #define PyInt_Check(x) PyLong_Check(x)
777 #define PyInt_AsLong(x) PyLong_AsLong(x)
778 #define PyInt_FromLong(x) PyLong_FromLong(x)
779 #define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
780 #define PyString_Check(name) PyBytes_Check(name)
781 #define PyString_FromString(x) PyUnicode_FromString(x)
782 #define PyString_Format(fmt, args)  PyUnicode_Format(fmt, args)
783 #define PyString_AsString(str) PyBytes_AsString(str)
784 #define PyString_Size(str) PyBytes_Size(str)
785 #define PyString_InternFromString(key) PyUnicode_InternFromString(key)
786 #define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE
787 #define PyString_AS_STRING(x) PyUnicode_AS_STRING(x)
788 #define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
789 
790 #endif
791 
792 #ifndef Py_TYPE
793 #  define Py_TYPE(op) ((op)->ob_type)
794 #endif
795 
796 /* SWIG APIs for compatibility of both Python 2 & 3 */
797 
798 #if PY_VERSION_HEX >= 0x03000000
799 #  define SWIG_Python_str_FromFormat PyUnicode_FromFormat
800 #else
801 #  define SWIG_Python_str_FromFormat PyString_FromFormat
802 #endif
803 
804 
805 /* Warning: This function will allocate a new string in Python 3,
806  * so please call SWIG_Python_str_DelForPy3(x) to free the space.
807  */
808 SWIGINTERN char*
SWIG_Python_str_AsChar(PyObject * str)809 SWIG_Python_str_AsChar(PyObject *str)
810 {
811 #if PY_VERSION_HEX >= 0x03030000
812   return (char *)PyUnicode_AsUTF8(str);
813 #elif PY_VERSION_HEX >= 0x03000000
814   char *newstr = 0;
815   str = PyUnicode_AsUTF8String(str);
816   if (str) {
817     char *cstr;
818     Py_ssize_t len;
819     if (PyBytes_AsStringAndSize(str, &cstr, &len) != -1) {
820       newstr = (char *) malloc(len+1);
821       if (newstr)
822         memcpy(newstr, cstr, len+1);
823     }
824     Py_XDECREF(str);
825   }
826   return newstr;
827 #else
828   return PyString_AsString(str);
829 #endif
830 }
831 
832 #if PY_VERSION_HEX >= 0x03030000 || PY_VERSION_HEX < 0x03000000
833 #  define SWIG_Python_str_DelForPy3(x)
834 #else
835 #  define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
836 #endif
837 
838 
839 SWIGINTERN PyObject*
SWIG_Python_str_FromChar(const char * c)840 SWIG_Python_str_FromChar(const char *c)
841 {
842 #if PY_VERSION_HEX >= 0x03000000
843   return PyUnicode_FromString(c);
844 #else
845   return PyString_FromString(c);
846 #endif
847 }
848 
849 #ifndef PyObject_DEL
850 # define PyObject_DEL PyObject_Del
851 #endif
852 
853 // SWIGPY_USE_CAPSULE is no longer used within SWIG itself, but some user
854 // interface files check for it.
855 # define SWIGPY_USE_CAPSULE
856 # define SWIGPY_CAPSULE_NAME ("swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
857 
858 #if PY_VERSION_HEX < 0x03020000
859 #define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
860 #define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
861 #define Py_hash_t long
862 #endif
863 
864 /* -----------------------------------------------------------------------------
865  * error manipulation
866  * ----------------------------------------------------------------------------- */
867 
868 SWIGRUNTIME PyObject*
SWIG_Python_ErrorType(int code)869 SWIG_Python_ErrorType(int code) {
870   PyObject* type = 0;
871   switch(code) {
872   case SWIG_MemoryError:
873     type = PyExc_MemoryError;
874     break;
875   case SWIG_IOError:
876     type = PyExc_IOError;
877     break;
878   case SWIG_RuntimeError:
879     type = PyExc_RuntimeError;
880     break;
881   case SWIG_IndexError:
882     type = PyExc_IndexError;
883     break;
884   case SWIG_TypeError:
885     type = PyExc_TypeError;
886     break;
887   case SWIG_DivisionByZero:
888     type = PyExc_ZeroDivisionError;
889     break;
890   case SWIG_OverflowError:
891     type = PyExc_OverflowError;
892     break;
893   case SWIG_SyntaxError:
894     type = PyExc_SyntaxError;
895     break;
896   case SWIG_ValueError:
897     type = PyExc_ValueError;
898     break;
899   case SWIG_SystemError:
900     type = PyExc_SystemError;
901     break;
902   case SWIG_AttributeError:
903     type = PyExc_AttributeError;
904     break;
905   default:
906     type = PyExc_RuntimeError;
907   }
908   return type;
909 }
910 
911 
912 SWIGRUNTIME void
SWIG_Python_AddErrorMsg(const char * mesg)913 SWIG_Python_AddErrorMsg(const char* mesg)
914 {
915   PyObject *type = 0;
916   PyObject *value = 0;
917   PyObject *traceback = 0;
918 
919   if (PyErr_Occurred())
920     PyErr_Fetch(&type, &value, &traceback);
921   if (value) {
922     PyObject *old_str = PyObject_Str(value);
923     const char *tmp = SWIG_Python_str_AsChar(old_str);
924     PyErr_Clear();
925     Py_XINCREF(type);
926     if (tmp)
927       PyErr_Format(type, "%s %s", tmp, mesg);
928     else
929       PyErr_Format(type, "%s", mesg);
930     SWIG_Python_str_DelForPy3(tmp);
931     Py_DECREF(old_str);
932     Py_DECREF(value);
933   } else {
934     PyErr_SetString(PyExc_RuntimeError, mesg);
935   }
936 }
937 
938 SWIGRUNTIME int
SWIG_Python_TypeErrorOccurred(PyObject * obj)939 SWIG_Python_TypeErrorOccurred(PyObject *obj)
940 {
941   PyObject *error;
942   if (obj)
943     return 0;
944   error = PyErr_Occurred();
945   return error && PyErr_GivenExceptionMatches(error, PyExc_TypeError);
946 }
947 
948 SWIGRUNTIME void
SWIG_Python_RaiseOrModifyTypeError(const char * message)949 SWIG_Python_RaiseOrModifyTypeError(const char *message)
950 {
951   if (SWIG_Python_TypeErrorOccurred(NULL)) {
952     /* Use existing TypeError to preserve stacktrace and enhance with given message */
953     PyObject *newvalue;
954     PyObject *type = NULL, *value = NULL, *traceback = NULL;
955     PyErr_Fetch(&type, &value, &traceback);
956 #if PY_VERSION_HEX >= 0x03000000
957     newvalue = PyUnicode_FromFormat("%S\nAdditional information:\n%s", value, message);
958 #else
959     newvalue = PyString_FromFormat("%s\nAdditional information:\n%s", PyString_AsString(value), message);
960 #endif
961     Py_XDECREF(value);
962     PyErr_Restore(type, newvalue, traceback);
963   } else {
964     /* Raise TypeError using given message */
965     PyErr_SetString(PyExc_TypeError, message);
966   }
967 }
968 
969 #if defined(SWIG_PYTHON_NO_THREADS)
970 #  if defined(SWIG_PYTHON_THREADS)
971 #    undef SWIG_PYTHON_THREADS
972 #  endif
973 #endif
974 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
975 #  if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
976 #    define SWIG_PYTHON_USE_GIL
977 #  endif
978 #  if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
979 #    ifndef SWIG_PYTHON_INITIALIZE_THREADS
980 #     define SWIG_PYTHON_INITIALIZE_THREADS  PyEval_InitThreads()
981 #    endif
982 #    ifdef __cplusplus /* C++ code */
983        class SWIG_Python_Thread_Block {
984          bool status;
985          PyGILState_STATE state;
986        public:
end()987          void end() { if (status) { PyGILState_Release(state); status = false;} }
SWIG_Python_Thread_Block()988          SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
~SWIG_Python_Thread_Block()989          ~SWIG_Python_Thread_Block() { end(); }
990        };
991        class SWIG_Python_Thread_Allow {
992          bool status;
993          PyThreadState *save;
994        public:
end()995          void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
SWIG_Python_Thread_Allow()996          SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
~SWIG_Python_Thread_Allow()997          ~SWIG_Python_Thread_Allow() { end(); }
998        };
999 #      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   SWIG_Python_Thread_Block _swig_thread_block
1000 #      define SWIG_PYTHON_THREAD_END_BLOCK     _swig_thread_block.end()
1001 #      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   SWIG_Python_Thread_Allow _swig_thread_allow
1002 #      define SWIG_PYTHON_THREAD_END_ALLOW     _swig_thread_allow.end()
1003 #    else /* C code */
1004 #      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
1005 #      define SWIG_PYTHON_THREAD_END_BLOCK     PyGILState_Release(_swig_thread_block)
1006 #      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   PyThreadState *_swig_thread_allow = PyEval_SaveThread()
1007 #      define SWIG_PYTHON_THREAD_END_ALLOW     PyEval_RestoreThread(_swig_thread_allow)
1008 #    endif
1009 #  else /* Old thread way, not implemented, user must provide it */
1010 #    if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
1011 #      define SWIG_PYTHON_INITIALIZE_THREADS
1012 #    endif
1013 #    if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
1014 #      define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1015 #    endif
1016 #    if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
1017 #      define SWIG_PYTHON_THREAD_END_BLOCK
1018 #    endif
1019 #    if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
1020 #      define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1021 #    endif
1022 #    if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
1023 #      define SWIG_PYTHON_THREAD_END_ALLOW
1024 #    endif
1025 #  endif
1026 #else /* No thread support */
1027 #  define SWIG_PYTHON_INITIALIZE_THREADS
1028 #  define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1029 #  define SWIG_PYTHON_THREAD_END_BLOCK
1030 #  define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1031 #  define SWIG_PYTHON_THREAD_END_ALLOW
1032 #endif
1033 
1034 /* -----------------------------------------------------------------------------
1035  * Python API portion that goes into the runtime
1036  * ----------------------------------------------------------------------------- */
1037 
1038 #ifdef __cplusplus
1039 extern "C" {
1040 #endif
1041 
1042 /* -----------------------------------------------------------------------------
1043  * Constant declarations
1044  * ----------------------------------------------------------------------------- */
1045 
1046 /* Constant Types */
1047 #define SWIG_PY_POINTER 4
1048 #define SWIG_PY_BINARY  5
1049 
1050 /* Constant information structure */
1051 typedef struct swig_const_info {
1052   int type;
1053   const char *name;
1054   long lvalue;
1055   double dvalue;
1056   void   *pvalue;
1057   swig_type_info **ptype;
1058 } swig_const_info;
1059 
1060 #ifdef __cplusplus
1061 }
1062 #endif
1063 
1064 
1065 /* -----------------------------------------------------------------------------
1066  * pyrun.swg
1067  *
1068  * This file contains the runtime support for Python modules
1069  * and includes code for managing global variables and pointer
1070  * type checking.
1071  *
1072  * ----------------------------------------------------------------------------- */
1073 
1074 #if PY_VERSION_HEX < 0x02070000 /* 2.7.0 */
1075 # error "This version of SWIG only supports Python >= 2.7"
1076 #endif
1077 
1078 #if PY_VERSION_HEX >= 0x03000000 && PY_VERSION_HEX < 0x03020000
1079 # error "This version of SWIG only supports Python 3 >= 3.2"
1080 #endif
1081 
1082 /* Common SWIG API */
1083 
1084 /* for raw pointers */
1085 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1086 #define SWIG_ConvertPtr(obj, pptr, type, flags)         SWIG_Python_ConvertPtr(obj, pptr, type, flags)
1087 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1088 
1089 #ifdef SWIGPYTHON_BUILTIN
1090 #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
1091 #else
1092 #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1093 #endif
1094 
1095 #define SWIG_InternalNewPointerObj(ptr, type, flags)	SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1096 
1097 #define SWIG_CheckImplicit(ty)                          SWIG_Python_CheckImplicit(ty)
1098 #define SWIG_AcquirePtr(ptr, src)                       SWIG_Python_AcquirePtr(ptr, src)
1099 #define swig_owntype                                    int
1100 
1101 /* for raw packed data */
1102 #define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1103 #define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
1104 
1105 /* for class or struct pointers */
1106 #define SWIG_ConvertInstance(obj, pptr, type, flags)    SWIG_ConvertPtr(obj, pptr, type, flags)
1107 #define SWIG_NewInstanceObj(ptr, type, flags)           SWIG_NewPointerObj(ptr, type, flags)
1108 
1109 /* for C or C++ function pointers */
1110 #define SWIG_ConvertFunctionPtr(obj, pptr, type)        SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1111 #define SWIG_NewFunctionPtrObj(ptr, type)               SWIG_Python_NewPointerObj(NULL, ptr, type, 0)
1112 
1113 /* for C++ member pointers, ie, member methods */
1114 #define SWIG_ConvertMember(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1115 #define SWIG_NewMemberObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
1116 
1117 
1118 /* Runtime API */
1119 
1120 #define SWIG_GetModule(clientdata)                      SWIG_Python_GetModule(clientdata)
1121 #define SWIG_SetModule(clientdata, pointer)             SWIG_Python_SetModule(pointer)
1122 #define SWIG_NewClientData(obj)                         SwigPyClientData_New(obj)
1123 
1124 #define SWIG_SetErrorObj                                SWIG_Python_SetErrorObj
1125 #define SWIG_SetErrorMsg                        	SWIG_Python_SetErrorMsg
1126 #define SWIG_ErrorType(code)                    	SWIG_Python_ErrorType(code)
1127 #define SWIG_Error(code, msg)            		SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1128 #define SWIG_fail                        		goto fail
1129 
1130 
1131 /* Runtime API implementation */
1132 
1133 /* Error manipulation */
1134 
1135 SWIGINTERN void
SWIG_Python_SetErrorObj(PyObject * errtype,PyObject * obj)1136 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1137   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1138   PyErr_SetObject(errtype, obj);
1139   Py_DECREF(obj);
1140   SWIG_PYTHON_THREAD_END_BLOCK;
1141 }
1142 
1143 SWIGINTERN void
SWIG_Python_SetErrorMsg(PyObject * errtype,const char * msg)1144 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1145   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1146   PyErr_SetString(errtype, msg);
1147   SWIG_PYTHON_THREAD_END_BLOCK;
1148 }
1149 
1150 #define SWIG_Python_Raise(obj, type, desc)  SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1151 
1152 /* Set a constant value */
1153 
1154 #if defined(SWIGPYTHON_BUILTIN)
1155 
1156 SWIGINTERN void
SwigPyBuiltin_AddPublicSymbol(PyObject * seq,const char * key)1157 SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
1158   PyObject *s = PyString_InternFromString(key);
1159   PyList_Append(seq, s);
1160   Py_DECREF(s);
1161 }
1162 
1163 SWIGINTERN void
SWIG_Python_SetConstant(PyObject * d,PyObject * public_interface,const char * name,PyObject * obj)1164 SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
1165   PyDict_SetItemString(d, name, obj);
1166   Py_DECREF(obj);
1167   if (public_interface)
1168     SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1169 }
1170 
1171 #else
1172 
1173 SWIGINTERN void
SWIG_Python_SetConstant(PyObject * d,const char * name,PyObject * obj)1174 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1175   PyDict_SetItemString(d, name, obj);
1176   Py_DECREF(obj);
1177 }
1178 
1179 #endif
1180 
1181 /* Append a value to the result obj */
1182 
1183 SWIGINTERN PyObject*
SWIG_Python_AppendOutput(PyObject * result,PyObject * obj)1184 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1185   if (!result) {
1186     result = obj;
1187   } else if (result == Py_None) {
1188     Py_DECREF(result);
1189     result = obj;
1190   } else {
1191     if (!PyList_Check(result)) {
1192       PyObject *o2 = result;
1193       result = PyList_New(1);
1194       PyList_SetItem(result, 0, o2);
1195     }
1196     PyList_Append(result,obj);
1197     Py_DECREF(obj);
1198   }
1199   return result;
1200 }
1201 
1202 /* Unpack the argument tuple */
1203 
1204 SWIGINTERN Py_ssize_t
SWIG_Python_UnpackTuple(PyObject * args,const char * name,Py_ssize_t min,Py_ssize_t max,PyObject ** objs)1205 SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1206 {
1207   if (!args) {
1208     if (!min && !max) {
1209       return 1;
1210     } else {
1211       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1212 		   name, (min == max ? "" : "at least "), (int)min);
1213       return 0;
1214     }
1215   }
1216   if (!PyTuple_Check(args)) {
1217     if (min <= 1 && max >= 1) {
1218       Py_ssize_t i;
1219       objs[0] = args;
1220       for (i = 1; i < max; ++i) {
1221 	objs[i] = 0;
1222       }
1223       return 2;
1224     }
1225     PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1226     return 0;
1227   } else {
1228     Py_ssize_t l = PyTuple_GET_SIZE(args);
1229     if (l < min) {
1230       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1231 		   name, (min == max ? "" : "at least "), (int)min, (int)l);
1232       return 0;
1233     } else if (l > max) {
1234       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1235 		   name, (min == max ? "" : "at most "), (int)max, (int)l);
1236       return 0;
1237     } else {
1238       Py_ssize_t i;
1239       for (i = 0; i < l; ++i) {
1240 	objs[i] = PyTuple_GET_ITEM(args, i);
1241       }
1242       for (; l < max; ++l) {
1243 	objs[l] = 0;
1244       }
1245       return i + 1;
1246     }
1247   }
1248 }
1249 
1250 SWIGINTERN int
SWIG_Python_CheckNoKeywords(PyObject * kwargs,const char * name)1251 SWIG_Python_CheckNoKeywords(PyObject *kwargs, const char *name) {
1252   int no_kwargs = 1;
1253   if (kwargs) {
1254     assert(PyDict_Check(kwargs));
1255     if (PyDict_Size(kwargs) > 0) {
1256       PyErr_Format(PyExc_TypeError, "%s() does not take keyword arguments", name);
1257       no_kwargs = 0;
1258     }
1259   }
1260   return no_kwargs;
1261 }
1262 
1263 /* A functor is a function object with one single object argument */
1264 #define SWIG_Python_CallFunctor(functor, obj)	        PyObject_CallFunctionObjArgs(functor, obj, NULL);
1265 
1266 /*
1267   Helper for static pointer initialization for both C and C++ code, for example
1268   static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1269 */
1270 #ifdef __cplusplus
1271 #define SWIG_STATIC_POINTER(var)  var
1272 #else
1273 #define SWIG_STATIC_POINTER(var)  var = 0; if (!var) var
1274 #endif
1275 
1276 /* -----------------------------------------------------------------------------
1277  * Pointer declarations
1278  * ----------------------------------------------------------------------------- */
1279 
1280 /* Flags for new pointer objects */
1281 #define SWIG_POINTER_NOSHADOW       (SWIG_POINTER_OWN      << 1)
1282 #define SWIG_POINTER_NEW            (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1283 
1284 #define SWIG_POINTER_IMPLICIT_CONV  (SWIG_POINTER_DISOWN   << 1)
1285 
1286 #define SWIG_BUILTIN_TP_INIT	    (SWIG_POINTER_OWN << 2)
1287 #define SWIG_BUILTIN_INIT	    (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)
1288 
1289 #ifdef __cplusplus
1290 extern "C" {
1291 #endif
1292 
1293 /* The python void return value */
1294 
1295 SWIGRUNTIMEINLINE PyObject *
SWIG_Py_Void(void)1296 SWIG_Py_Void(void)
1297 {
1298   PyObject *none = Py_None;
1299   Py_INCREF(none);
1300   return none;
1301 }
1302 
1303 /* SwigPyClientData */
1304 
1305 typedef struct {
1306   PyObject *klass;
1307   PyObject *newraw;
1308   PyObject *newargs;
1309   PyObject *destroy;
1310   int delargs;
1311   int implicitconv;
1312   PyTypeObject *pytype;
1313 } SwigPyClientData;
1314 
1315 SWIGRUNTIMEINLINE int
SWIG_Python_CheckImplicit(swig_type_info * ty)1316 SWIG_Python_CheckImplicit(swig_type_info *ty)
1317 {
1318   SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
1319   int fail = data ? data->implicitconv : 0;
1320   if (fail)
1321     PyErr_SetString(PyExc_TypeError, "Implicit conversion is prohibited for explicit constructors.");
1322   return fail;
1323 }
1324 
1325 SWIGRUNTIMEINLINE PyObject *
SWIG_Python_ExceptionType(swig_type_info * desc)1326 SWIG_Python_ExceptionType(swig_type_info *desc) {
1327   SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
1328   PyObject *klass = data ? data->klass : 0;
1329   return (klass ? klass : PyExc_RuntimeError);
1330 }
1331 
1332 
1333 SWIGRUNTIME SwigPyClientData *
SwigPyClientData_New(PyObject * obj)1334 SwigPyClientData_New(PyObject* obj)
1335 {
1336   if (!obj) {
1337     return 0;
1338   } else {
1339     SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
1340     /* the klass element */
1341     data->klass = obj;
1342     Py_INCREF(data->klass);
1343     /* the newraw method and newargs arguments used to create a new raw instance */
1344     if (PyClass_Check(obj)) {
1345       data->newraw = 0;
1346       data->newargs = obj;
1347       Py_INCREF(obj);
1348     } else {
1349       data->newraw = PyObject_GetAttrString(data->klass, "__new__");
1350       if (data->newraw) {
1351 	Py_INCREF(data->newraw);
1352 	data->newargs = PyTuple_New(1);
1353 	PyTuple_SetItem(data->newargs, 0, obj);
1354       } else {
1355 	data->newargs = obj;
1356       }
1357       Py_INCREF(data->newargs);
1358     }
1359     /* the destroy method, aka as the C++ delete method */
1360     data->destroy = PyObject_GetAttrString(data->klass, "__swig_destroy__");
1361     if (PyErr_Occurred()) {
1362       PyErr_Clear();
1363       data->destroy = 0;
1364     }
1365     if (data->destroy) {
1366       int flags;
1367       Py_INCREF(data->destroy);
1368       flags = PyCFunction_GET_FLAGS(data->destroy);
1369       data->delargs = !(flags & (METH_O));
1370     } else {
1371       data->delargs = 0;
1372     }
1373     data->implicitconv = 0;
1374     data->pytype = 0;
1375     return data;
1376   }
1377 }
1378 
1379 SWIGRUNTIME void
SwigPyClientData_Del(SwigPyClientData * data)1380 SwigPyClientData_Del(SwigPyClientData *data) {
1381   Py_XDECREF(data->newraw);
1382   Py_XDECREF(data->newargs);
1383   Py_XDECREF(data->destroy);
1384 }
1385 
1386 /* =============== SwigPyObject =====================*/
1387 
1388 typedef struct {
1389   PyObject_HEAD
1390   void *ptr;
1391   swig_type_info *ty;
1392   int own;
1393   PyObject *next;
1394 #ifdef SWIGPYTHON_BUILTIN
1395   PyObject *dict;
1396 #endif
1397 } SwigPyObject;
1398 
1399 
1400 #ifdef SWIGPYTHON_BUILTIN
1401 
1402 SWIGRUNTIME PyObject *
SwigPyObject_get___dict__(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1403 SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1404 {
1405   SwigPyObject *sobj = (SwigPyObject *)v;
1406 
1407   if (!sobj->dict)
1408     sobj->dict = PyDict_New();
1409 
1410   Py_INCREF(sobj->dict);
1411   return sobj->dict;
1412 }
1413 
1414 #endif
1415 
1416 SWIGRUNTIME PyObject *
SwigPyObject_long(SwigPyObject * v)1417 SwigPyObject_long(SwigPyObject *v)
1418 {
1419   return PyLong_FromVoidPtr(v->ptr);
1420 }
1421 
1422 SWIGRUNTIME PyObject *
SwigPyObject_format(const char * fmt,SwigPyObject * v)1423 SwigPyObject_format(const char* fmt, SwigPyObject *v)
1424 {
1425   PyObject *res = NULL;
1426   PyObject *args = PyTuple_New(1);
1427   if (args) {
1428     if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1429       PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1430       if (ofmt) {
1431 #if PY_VERSION_HEX >= 0x03000000
1432 	res = PyUnicode_Format(ofmt,args);
1433 #else
1434 	res = PyString_Format(ofmt,args);
1435 #endif
1436 	Py_DECREF(ofmt);
1437       }
1438       Py_DECREF(args);
1439     }
1440   }
1441   return res;
1442 }
1443 
1444 SWIGRUNTIME PyObject *
SwigPyObject_oct(SwigPyObject * v)1445 SwigPyObject_oct(SwigPyObject *v)
1446 {
1447   return SwigPyObject_format("%o",v);
1448 }
1449 
1450 SWIGRUNTIME PyObject *
SwigPyObject_hex(SwigPyObject * v)1451 SwigPyObject_hex(SwigPyObject *v)
1452 {
1453   return SwigPyObject_format("%x",v);
1454 }
1455 
1456 SWIGRUNTIME PyObject *
SwigPyObject_repr(SwigPyObject * v)1457 SwigPyObject_repr(SwigPyObject *v)
1458 {
1459   const char *name = SWIG_TypePrettyName(v->ty);
1460   PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
1461   if (v->next) {
1462     PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
1463 # if PY_VERSION_HEX >= 0x03000000
1464     PyObject *joined = PyUnicode_Concat(repr, nrep);
1465     Py_DecRef(repr);
1466     Py_DecRef(nrep);
1467     repr = joined;
1468 # else
1469     PyString_ConcatAndDel(&repr,nrep);
1470 # endif
1471   }
1472   return repr;
1473 }
1474 
1475 /* We need a version taking two PyObject* parameters so it's a valid
1476  * PyCFunction to use in swigobject_methods[]. */
1477 SWIGRUNTIME PyObject *
SwigPyObject_repr2(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1478 SwigPyObject_repr2(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1479 {
1480   return SwigPyObject_repr((SwigPyObject*)v);
1481 }
1482 
1483 SWIGRUNTIME int
SwigPyObject_compare(SwigPyObject * v,SwigPyObject * w)1484 SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
1485 {
1486   void *i = v->ptr;
1487   void *j = w->ptr;
1488   return (i < j) ? -1 : ((i > j) ? 1 : 0);
1489 }
1490 
1491 /* Added for Python 3.x, would it also be useful for Python 2.x? */
1492 SWIGRUNTIME PyObject*
SwigPyObject_richcompare(SwigPyObject * v,SwigPyObject * w,int op)1493 SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
1494 {
1495   PyObject* res;
1496   if( op != Py_EQ && op != Py_NE ) {
1497     Py_INCREF(Py_NotImplemented);
1498     return Py_NotImplemented;
1499   }
1500   res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
1501   return res;
1502 }
1503 
1504 
1505 SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void);
1506 
1507 #ifdef SWIGPYTHON_BUILTIN
1508 static swig_type_info *SwigPyObject_stype = 0;
1509 SWIGRUNTIME PyTypeObject*
SwigPyObject_type(void)1510 SwigPyObject_type(void) {
1511     SwigPyClientData *cd;
1512     assert(SwigPyObject_stype);
1513     cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
1514     assert(cd);
1515     assert(cd->pytype);
1516     return cd->pytype;
1517 }
1518 #else
1519 SWIGRUNTIME PyTypeObject*
SwigPyObject_type(void)1520 SwigPyObject_type(void) {
1521   static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
1522   return type;
1523 }
1524 #endif
1525 
1526 SWIGRUNTIMEINLINE int
SwigPyObject_Check(PyObject * op)1527 SwigPyObject_Check(PyObject *op) {
1528 #ifdef SWIGPYTHON_BUILTIN
1529   PyTypeObject *target_tp = SwigPyObject_type();
1530   if (PyType_IsSubtype(op->ob_type, target_tp))
1531     return 1;
1532   return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
1533 #else
1534   return (Py_TYPE(op) == SwigPyObject_type())
1535     || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0);
1536 #endif
1537 }
1538 
1539 SWIGRUNTIME PyObject *
1540 SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1541 
1542 SWIGRUNTIME void
SwigPyObject_dealloc(PyObject * v)1543 SwigPyObject_dealloc(PyObject *v)
1544 {
1545   SwigPyObject *sobj = (SwigPyObject *) v;
1546   PyObject *next = sobj->next;
1547   if (sobj->own == SWIG_POINTER_OWN) {
1548     swig_type_info *ty = sobj->ty;
1549     SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
1550     PyObject *destroy = data ? data->destroy : 0;
1551     if (destroy) {
1552       /* destroy is always a VARARGS method */
1553       PyObject *res;
1554 
1555       /* PyObject_CallFunction() has the potential to silently drop
1556          the active exception.  In cases of unnamed temporary
1557          variable or where we just finished iterating over a generator
1558          StopIteration will be active right now, and this needs to
1559          remain true upon return from SwigPyObject_dealloc.  So save
1560          and restore. */
1561 
1562       PyObject *type = NULL, *value = NULL, *traceback = NULL;
1563       PyErr_Fetch(&type, &value, &traceback);
1564 
1565       if (data->delargs) {
1566         /* we need to create a temporary object to carry the destroy operation */
1567         PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1568         res = SWIG_Python_CallFunctor(destroy, tmp);
1569         Py_DECREF(tmp);
1570       } else {
1571         PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1572         PyObject *mself = PyCFunction_GET_SELF(destroy);
1573         res = ((*meth)(mself, v));
1574       }
1575       if (!res)
1576         PyErr_WriteUnraisable(destroy);
1577 
1578       PyErr_Restore(type, value, traceback);
1579 
1580       Py_XDECREF(res);
1581     }
1582 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1583     else {
1584       const char *name = SWIG_TypePrettyName(ty);
1585       printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
1586     }
1587 #endif
1588   }
1589   Py_XDECREF(next);
1590   PyObject_DEL(v);
1591 }
1592 
1593 SWIGRUNTIME PyObject*
SwigPyObject_append(PyObject * v,PyObject * next)1594 SwigPyObject_append(PyObject* v, PyObject* next)
1595 {
1596   SwigPyObject *sobj = (SwigPyObject *) v;
1597   if (!SwigPyObject_Check(next)) {
1598     PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject");
1599     return NULL;
1600   }
1601   sobj->next = next;
1602   Py_INCREF(next);
1603   return SWIG_Py_Void();
1604 }
1605 
1606 SWIGRUNTIME PyObject*
SwigPyObject_next(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1607 SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1608 {
1609   SwigPyObject *sobj = (SwigPyObject *) v;
1610   if (sobj->next) {
1611     Py_INCREF(sobj->next);
1612     return sobj->next;
1613   } else {
1614     return SWIG_Py_Void();
1615   }
1616 }
1617 
1618 SWIGINTERN PyObject*
SwigPyObject_disown(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1619 SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1620 {
1621   SwigPyObject *sobj = (SwigPyObject *)v;
1622   sobj->own = 0;
1623   return SWIG_Py_Void();
1624 }
1625 
1626 SWIGINTERN PyObject*
SwigPyObject_acquire(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1627 SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1628 {
1629   SwigPyObject *sobj = (SwigPyObject *)v;
1630   sobj->own = SWIG_POINTER_OWN;
1631   return SWIG_Py_Void();
1632 }
1633 
1634 SWIGINTERN PyObject*
SwigPyObject_own(PyObject * v,PyObject * args)1635 SwigPyObject_own(PyObject *v, PyObject *args)
1636 {
1637   PyObject *val = 0;
1638   if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) {
1639     return NULL;
1640   } else {
1641     SwigPyObject *sobj = (SwigPyObject *)v;
1642     PyObject *obj = PyBool_FromLong(sobj->own);
1643     if (val) {
1644       if (PyObject_IsTrue(val)) {
1645         SwigPyObject_acquire(v,args);
1646       } else {
1647         SwigPyObject_disown(v,args);
1648       }
1649     }
1650     return obj;
1651   }
1652 }
1653 
1654 static PyMethodDef
1655 swigobject_methods[] = {
1656   {"disown",  SwigPyObject_disown,  METH_NOARGS,  "releases ownership of the pointer"},
1657   {"acquire", SwigPyObject_acquire, METH_NOARGS,  "acquires ownership of the pointer"},
1658   {"own",     SwigPyObject_own,     METH_VARARGS, "returns/sets ownership of the pointer"},
1659   {"append",  SwigPyObject_append,  METH_O,       "appends another 'this' object"},
1660   {"next",    SwigPyObject_next,    METH_NOARGS,  "returns the next 'this' object"},
1661   {"__repr__",SwigPyObject_repr2,   METH_NOARGS,  "returns object representation"},
1662   {0, 0, 0, 0}
1663 };
1664 
1665 SWIGRUNTIME PyTypeObject*
SwigPyObject_TypeOnce(void)1666 SwigPyObject_TypeOnce(void) {
1667   static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1668 
1669   static PyNumberMethods SwigPyObject_as_number = {
1670     (binaryfunc)0, /*nb_add*/
1671     (binaryfunc)0, /*nb_subtract*/
1672     (binaryfunc)0, /*nb_multiply*/
1673     /* nb_divide removed in Python 3 */
1674 #if PY_VERSION_HEX < 0x03000000
1675     (binaryfunc)0, /*nb_divide*/
1676 #endif
1677     (binaryfunc)0, /*nb_remainder*/
1678     (binaryfunc)0, /*nb_divmod*/
1679     (ternaryfunc)0,/*nb_power*/
1680     (unaryfunc)0,  /*nb_negative*/
1681     (unaryfunc)0,  /*nb_positive*/
1682     (unaryfunc)0,  /*nb_absolute*/
1683     (inquiry)0,    /*nb_nonzero*/
1684     0,		   /*nb_invert*/
1685     0,		   /*nb_lshift*/
1686     0,		   /*nb_rshift*/
1687     0,		   /*nb_and*/
1688     0,		   /*nb_xor*/
1689     0,		   /*nb_or*/
1690 #if PY_VERSION_HEX < 0x03000000
1691     0,   /*nb_coerce*/
1692 #endif
1693     (unaryfunc)SwigPyObject_long, /*nb_int*/
1694 #if PY_VERSION_HEX < 0x03000000
1695     (unaryfunc)SwigPyObject_long, /*nb_long*/
1696 #else
1697     0, /*nb_reserved*/
1698 #endif
1699     (unaryfunc)0,                 /*nb_float*/
1700 #if PY_VERSION_HEX < 0x03000000
1701     (unaryfunc)SwigPyObject_oct,  /*nb_oct*/
1702     (unaryfunc)SwigPyObject_hex,  /*nb_hex*/
1703 #endif
1704 #if PY_VERSION_HEX >= 0x03050000 /* 3.5 */
1705     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */
1706 #elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */
1707     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
1708 #else
1709     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
1710 #endif
1711   };
1712 
1713   static PyTypeObject swigpyobject_type;
1714   static int type_init = 0;
1715   if (!type_init) {
1716     const PyTypeObject tmp = {
1717 #if PY_VERSION_HEX >= 0x03000000
1718       PyVarObject_HEAD_INIT(NULL, 0)
1719 #else
1720       PyObject_HEAD_INIT(NULL)
1721       0,                                    /* ob_size */
1722 #endif
1723       "SwigPyObject",                       /* tp_name */
1724       sizeof(SwigPyObject),                 /* tp_basicsize */
1725       0,                                    /* tp_itemsize */
1726       (destructor)SwigPyObject_dealloc,     /* tp_dealloc */
1727       0,                                    /* tp_print */
1728       (getattrfunc)0,                       /* tp_getattr */
1729       (setattrfunc)0,                       /* tp_setattr */
1730 #if PY_VERSION_HEX >= 0x03000000
1731       0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
1732 #else
1733       (cmpfunc)SwigPyObject_compare,        /* tp_compare */
1734 #endif
1735       (reprfunc)SwigPyObject_repr,          /* tp_repr */
1736       &SwigPyObject_as_number,              /* tp_as_number */
1737       0,                                    /* tp_as_sequence */
1738       0,                                    /* tp_as_mapping */
1739       (hashfunc)0,                          /* tp_hash */
1740       (ternaryfunc)0,                       /* tp_call */
1741       0,                                    /* tp_str */
1742       PyObject_GenericGetAttr,              /* tp_getattro */
1743       0,                                    /* tp_setattro */
1744       0,                                    /* tp_as_buffer */
1745       Py_TPFLAGS_DEFAULT,                   /* tp_flags */
1746       swigobject_doc,                       /* tp_doc */
1747       0,                                    /* tp_traverse */
1748       0,                                    /* tp_clear */
1749       (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
1750       0,                                    /* tp_weaklistoffset */
1751       0,                                    /* tp_iter */
1752       0,                                    /* tp_iternext */
1753       swigobject_methods,                   /* tp_methods */
1754       0,                                    /* tp_members */
1755       0,                                    /* tp_getset */
1756       0,                                    /* tp_base */
1757       0,                                    /* tp_dict */
1758       0,                                    /* tp_descr_get */
1759       0,                                    /* tp_descr_set */
1760       0,                                    /* tp_dictoffset */
1761       0,                                    /* tp_init */
1762       0,                                    /* tp_alloc */
1763       0,                                    /* tp_new */
1764       0,                                    /* tp_free */
1765       0,                                    /* tp_is_gc */
1766       0,                                    /* tp_bases */
1767       0,                                    /* tp_mro */
1768       0,                                    /* tp_cache */
1769       0,                                    /* tp_subclasses */
1770       0,                                    /* tp_weaklist */
1771       0,                                    /* tp_del */
1772       0,                                    /* tp_version_tag */
1773 #if PY_VERSION_HEX >= 0x03040000
1774       0,                                    /* tp_finalize */
1775 #endif
1776 #if PY_VERSION_HEX >= 0x03080000
1777       0,                                    /* tp_vectorcall */
1778 #endif
1779 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
1780       0,                                    /* tp_print */
1781 #endif
1782 #ifdef COUNT_ALLOCS
1783       0,                                    /* tp_allocs */
1784       0,                                    /* tp_frees */
1785       0,                                    /* tp_maxalloc */
1786       0,                                    /* tp_prev */
1787       0                                     /* tp_next */
1788 #endif
1789     };
1790     swigpyobject_type = tmp;
1791     type_init = 1;
1792     if (PyType_Ready(&swigpyobject_type) < 0)
1793       return NULL;
1794   }
1795   return &swigpyobject_type;
1796 }
1797 
1798 SWIGRUNTIME PyObject *
SwigPyObject_New(void * ptr,swig_type_info * ty,int own)1799 SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
1800 {
1801   SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type());
1802   if (sobj) {
1803     sobj->ptr  = ptr;
1804     sobj->ty   = ty;
1805     sobj->own  = own;
1806     sobj->next = 0;
1807   }
1808   return (PyObject *)sobj;
1809 }
1810 
1811 /* -----------------------------------------------------------------------------
1812  * Implements a simple Swig Packed type, and use it instead of string
1813  * ----------------------------------------------------------------------------- */
1814 
1815 typedef struct {
1816   PyObject_HEAD
1817   void *pack;
1818   swig_type_info *ty;
1819   size_t size;
1820 } SwigPyPacked;
1821 
1822 SWIGRUNTIME PyObject *
SwigPyPacked_repr(SwigPyPacked * v)1823 SwigPyPacked_repr(SwigPyPacked *v)
1824 {
1825   char result[SWIG_BUFFER_SIZE];
1826   if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1827     return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1828   } else {
1829     return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name);
1830   }
1831 }
1832 
1833 SWIGRUNTIME PyObject *
SwigPyPacked_str(SwigPyPacked * v)1834 SwigPyPacked_str(SwigPyPacked *v)
1835 {
1836   char result[SWIG_BUFFER_SIZE];
1837   if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1838     return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name);
1839   } else {
1840     return SWIG_Python_str_FromChar(v->ty->name);
1841   }
1842 }
1843 
1844 SWIGRUNTIME int
SwigPyPacked_compare(SwigPyPacked * v,SwigPyPacked * w)1845 SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
1846 {
1847   size_t i = v->size;
1848   size_t j = w->size;
1849   int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1850   return s ? s : strncmp((const char *)v->pack, (const char *)w->pack, 2*v->size);
1851 }
1852 
1853 SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void);
1854 
1855 SWIGRUNTIME PyTypeObject*
SwigPyPacked_type(void)1856 SwigPyPacked_type(void) {
1857   static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
1858   return type;
1859 }
1860 
1861 SWIGRUNTIMEINLINE int
SwigPyPacked_Check(PyObject * op)1862 SwigPyPacked_Check(PyObject *op) {
1863   return ((op)->ob_type == SwigPyPacked_TypeOnce())
1864     || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
1865 }
1866 
1867 SWIGRUNTIME void
SwigPyPacked_dealloc(PyObject * v)1868 SwigPyPacked_dealloc(PyObject *v)
1869 {
1870   if (SwigPyPacked_Check(v)) {
1871     SwigPyPacked *sobj = (SwigPyPacked *) v;
1872     free(sobj->pack);
1873   }
1874   PyObject_DEL(v);
1875 }
1876 
1877 SWIGRUNTIME PyTypeObject*
SwigPyPacked_TypeOnce(void)1878 SwigPyPacked_TypeOnce(void) {
1879   static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1880   static PyTypeObject swigpypacked_type;
1881   static int type_init = 0;
1882   if (!type_init) {
1883     const PyTypeObject tmp = {
1884 #if PY_VERSION_HEX>=0x03000000
1885       PyVarObject_HEAD_INIT(NULL, 0)
1886 #else
1887       PyObject_HEAD_INIT(NULL)
1888       0,                                    /* ob_size */
1889 #endif
1890       "SwigPyPacked",                       /* tp_name */
1891       sizeof(SwigPyPacked),                 /* tp_basicsize */
1892       0,                                    /* tp_itemsize */
1893       (destructor)SwigPyPacked_dealloc,     /* tp_dealloc */
1894       0,                                    /* tp_print */
1895       (getattrfunc)0,                       /* tp_getattr */
1896       (setattrfunc)0,                       /* tp_setattr */
1897 #if PY_VERSION_HEX>=0x03000000
1898       0, /* tp_reserved in 3.0.1 */
1899 #else
1900       (cmpfunc)SwigPyPacked_compare,        /* tp_compare */
1901 #endif
1902       (reprfunc)SwigPyPacked_repr,          /* tp_repr */
1903       0,                                    /* tp_as_number */
1904       0,                                    /* tp_as_sequence */
1905       0,                                    /* tp_as_mapping */
1906       (hashfunc)0,                          /* tp_hash */
1907       (ternaryfunc)0,                       /* tp_call */
1908       (reprfunc)SwigPyPacked_str,           /* tp_str */
1909       PyObject_GenericGetAttr,              /* tp_getattro */
1910       0,                                    /* tp_setattro */
1911       0,                                    /* tp_as_buffer */
1912       Py_TPFLAGS_DEFAULT,                   /* tp_flags */
1913       swigpacked_doc,                       /* tp_doc */
1914       0,                                    /* tp_traverse */
1915       0,                                    /* tp_clear */
1916       0,                                    /* tp_richcompare */
1917       0,                                    /* tp_weaklistoffset */
1918       0,                                    /* tp_iter */
1919       0,                                    /* tp_iternext */
1920       0,                                    /* tp_methods */
1921       0,                                    /* tp_members */
1922       0,                                    /* tp_getset */
1923       0,                                    /* tp_base */
1924       0,                                    /* tp_dict */
1925       0,                                    /* tp_descr_get */
1926       0,                                    /* tp_descr_set */
1927       0,                                    /* tp_dictoffset */
1928       0,                                    /* tp_init */
1929       0,                                    /* tp_alloc */
1930       0,                                    /* tp_new */
1931       0,                                    /* tp_free */
1932       0,                                    /* tp_is_gc */
1933       0,                                    /* tp_bases */
1934       0,                                    /* tp_mro */
1935       0,                                    /* tp_cache */
1936       0,                                    /* tp_subclasses */
1937       0,                                    /* tp_weaklist */
1938       0,                                    /* tp_del */
1939       0,                                    /* tp_version_tag */
1940 #if PY_VERSION_HEX >= 0x03040000
1941       0,                                    /* tp_finalize */
1942 #endif
1943 #if PY_VERSION_HEX >= 0x03080000
1944       0,                                    /* tp_vectorcall */
1945 #endif
1946 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
1947       0,                                    /* tp_print */
1948 #endif
1949 #ifdef COUNT_ALLOCS
1950       0,                                    /* tp_allocs */
1951       0,                                    /* tp_frees */
1952       0,                                    /* tp_maxalloc */
1953       0,                                    /* tp_prev */
1954       0                                     /* tp_next */
1955 #endif
1956     };
1957     swigpypacked_type = tmp;
1958     type_init = 1;
1959     if (PyType_Ready(&swigpypacked_type) < 0)
1960       return NULL;
1961   }
1962   return &swigpypacked_type;
1963 }
1964 
1965 SWIGRUNTIME PyObject *
SwigPyPacked_New(void * ptr,size_t size,swig_type_info * ty)1966 SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
1967 {
1968   SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type());
1969   if (sobj) {
1970     void *pack = malloc(size);
1971     if (pack) {
1972       memcpy(pack, ptr, size);
1973       sobj->pack = pack;
1974       sobj->ty   = ty;
1975       sobj->size = size;
1976     } else {
1977       PyObject_DEL((PyObject *) sobj);
1978       sobj = 0;
1979     }
1980   }
1981   return (PyObject *) sobj;
1982 }
1983 
1984 SWIGRUNTIME swig_type_info *
SwigPyPacked_UnpackData(PyObject * obj,void * ptr,size_t size)1985 SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1986 {
1987   if (SwigPyPacked_Check(obj)) {
1988     SwigPyPacked *sobj = (SwigPyPacked *)obj;
1989     if (sobj->size != size) return 0;
1990     memcpy(ptr, sobj->pack, size);
1991     return sobj->ty;
1992   } else {
1993     return 0;
1994   }
1995 }
1996 
1997 /* -----------------------------------------------------------------------------
1998  * pointers/data manipulation
1999  * ----------------------------------------------------------------------------- */
2000 
2001 static PyObject *Swig_This_global = NULL;
2002 
2003 SWIGRUNTIME PyObject *
SWIG_This(void)2004 SWIG_This(void)
2005 {
2006   if (Swig_This_global == NULL)
2007     Swig_This_global = SWIG_Python_str_FromChar("this");
2008   return Swig_This_global;
2009 }
2010 
2011 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
2012 
2013 /* TODO: I don't know how to implement the fast getset in Python 3 right now */
2014 #if PY_VERSION_HEX>=0x03000000
2015 #define SWIG_PYTHON_SLOW_GETSET_THIS
2016 #endif
2017 
2018 SWIGRUNTIME SwigPyObject *
SWIG_Python_GetSwigThis(PyObject * pyobj)2019 SWIG_Python_GetSwigThis(PyObject *pyobj)
2020 {
2021   PyObject *obj;
2022 
2023   if (SwigPyObject_Check(pyobj))
2024     return (SwigPyObject *) pyobj;
2025 
2026 #ifdef SWIGPYTHON_BUILTIN
2027   (void)obj;
2028 # ifdef PyWeakref_CheckProxy
2029   if (PyWeakref_CheckProxy(pyobj)) {
2030     pyobj = PyWeakref_GET_OBJECT(pyobj);
2031     if (pyobj && SwigPyObject_Check(pyobj))
2032       return (SwigPyObject*) pyobj;
2033   }
2034 # endif
2035   return NULL;
2036 #else
2037 
2038   obj = 0;
2039 
2040 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2041   if (PyInstance_Check(pyobj)) {
2042     obj = _PyInstance_Lookup(pyobj, SWIG_This());
2043   } else {
2044     PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2045     if (dictptr != NULL) {
2046       PyObject *dict = *dictptr;
2047       obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2048     } else {
2049 #ifdef PyWeakref_CheckProxy
2050       if (PyWeakref_CheckProxy(pyobj)) {
2051 	PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
2052 	return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2053       }
2054 #endif
2055       obj = PyObject_GetAttr(pyobj,SWIG_This());
2056       if (obj) {
2057 	Py_DECREF(obj);
2058       } else {
2059 	if (PyErr_Occurred()) PyErr_Clear();
2060 	return 0;
2061       }
2062     }
2063   }
2064 #else
2065   obj = PyObject_GetAttr(pyobj,SWIG_This());
2066   if (obj) {
2067     Py_DECREF(obj);
2068   } else {
2069     if (PyErr_Occurred()) PyErr_Clear();
2070     return 0;
2071   }
2072 #endif
2073   if (obj && !SwigPyObject_Check(obj)) {
2074     /* a PyObject is called 'this', try to get the 'real this'
2075        SwigPyObject from it */
2076     return SWIG_Python_GetSwigThis(obj);
2077   }
2078   return (SwigPyObject *)obj;
2079 #endif
2080 }
2081 
2082 /* Acquire a pointer value */
2083 
2084 SWIGRUNTIME int
SWIG_Python_AcquirePtr(PyObject * obj,int own)2085 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
2086   if (own == SWIG_POINTER_OWN) {
2087     SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
2088     if (sobj) {
2089       int oldown = sobj->own;
2090       sobj->own = own;
2091       return oldown;
2092     }
2093   }
2094   return 0;
2095 }
2096 
2097 /* Convert a pointer value */
2098 
2099 SWIGRUNTIME int
SWIG_Python_ConvertPtrAndOwn(PyObject * obj,void ** ptr,swig_type_info * ty,int flags,int * own)2100 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
2101   int res;
2102   SwigPyObject *sobj;
2103   int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0;
2104 
2105   if (!obj)
2106     return SWIG_ERROR;
2107   if (obj == Py_None && !implicit_conv) {
2108     if (ptr)
2109       *ptr = 0;
2110     return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK;
2111   }
2112 
2113   res = SWIG_ERROR;
2114 
2115   sobj = SWIG_Python_GetSwigThis(obj);
2116   if (own)
2117     *own = 0;
2118   while (sobj) {
2119     void *vptr = sobj->ptr;
2120     if (ty) {
2121       swig_type_info *to = sobj->ty;
2122       if (to == ty) {
2123         /* no type cast needed */
2124         if (ptr) *ptr = vptr;
2125         break;
2126       } else {
2127         swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2128         if (!tc) {
2129           sobj = (SwigPyObject *)sobj->next;
2130         } else {
2131           if (ptr) {
2132             int newmemory = 0;
2133             *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2134             if (newmemory == SWIG_CAST_NEW_MEMORY) {
2135               assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
2136               if (own)
2137                 *own = *own | SWIG_CAST_NEW_MEMORY;
2138             }
2139           }
2140           break;
2141         }
2142       }
2143     } else {
2144       if (ptr) *ptr = vptr;
2145       break;
2146     }
2147   }
2148   if (sobj) {
2149     if (own)
2150       *own = *own | sobj->own;
2151     if (flags & SWIG_POINTER_DISOWN) {
2152       sobj->own = 0;
2153     }
2154     res = SWIG_OK;
2155   } else {
2156     if (implicit_conv) {
2157       SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
2158       if (data && !data->implicitconv) {
2159         PyObject *klass = data->klass;
2160         if (klass) {
2161           PyObject *impconv;
2162           data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2163           impconv = SWIG_Python_CallFunctor(klass, obj);
2164           data->implicitconv = 0;
2165           if (PyErr_Occurred()) {
2166             PyErr_Clear();
2167             impconv = 0;
2168           }
2169           if (impconv) {
2170             SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
2171             if (iobj) {
2172               void *vptr;
2173               res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2174               if (SWIG_IsOK(res)) {
2175                 if (ptr) {
2176                   *ptr = vptr;
2177                   /* transfer the ownership to 'ptr' */
2178                   iobj->own = 0;
2179                   res = SWIG_AddCast(res);
2180                   res = SWIG_AddNewMask(res);
2181                 } else {
2182                   res = SWIG_AddCast(res);
2183                 }
2184               }
2185             }
2186             Py_DECREF(impconv);
2187           }
2188         }
2189       }
2190       if (!SWIG_IsOK(res) && obj == Py_None) {
2191         if (ptr)
2192           *ptr = 0;
2193         if (PyErr_Occurred())
2194           PyErr_Clear();
2195         res = SWIG_OK;
2196       }
2197     }
2198   }
2199   return res;
2200 }
2201 
2202 /* Convert a function ptr value */
2203 
2204 SWIGRUNTIME int
SWIG_Python_ConvertFunctionPtr(PyObject * obj,void ** ptr,swig_type_info * ty)2205 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2206   if (!PyCFunction_Check(obj)) {
2207     return SWIG_ConvertPtr(obj, ptr, ty, 0);
2208   } else {
2209     void *vptr = 0;
2210     swig_cast_info *tc;
2211 
2212     /* here we get the method pointer for callbacks */
2213     const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2214     const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2215     if (desc)
2216       desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2217     if (!desc)
2218       return SWIG_ERROR;
2219     tc = SWIG_TypeCheck(desc,ty);
2220     if (tc) {
2221       int newmemory = 0;
2222       *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2223       assert(!newmemory); /* newmemory handling not yet implemented */
2224     } else {
2225       return SWIG_ERROR;
2226     }
2227     return SWIG_OK;
2228   }
2229 }
2230 
2231 /* Convert a packed pointer value */
2232 
2233 SWIGRUNTIME int
SWIG_Python_ConvertPacked(PyObject * obj,void * ptr,size_t sz,swig_type_info * ty)2234 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2235   swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
2236   if (!to) return SWIG_ERROR;
2237   if (ty) {
2238     if (to != ty) {
2239       /* check type cast? */
2240       swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2241       if (!tc) return SWIG_ERROR;
2242     }
2243   }
2244   return SWIG_OK;
2245 }
2246 
2247 /* -----------------------------------------------------------------------------
2248  * Create a new pointer object
2249  * ----------------------------------------------------------------------------- */
2250 
2251 /*
2252   Create a new instance object, without calling __init__, and set the
2253   'this' attribute.
2254 */
2255 
2256 SWIGRUNTIME PyObject*
SWIG_Python_NewShadowInstance(SwigPyClientData * data,PyObject * swig_this)2257 SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
2258 {
2259   PyObject *inst = 0;
2260   PyObject *newraw = data->newraw;
2261   if (newraw) {
2262     inst = PyObject_Call(newraw, data->newargs, NULL);
2263     if (inst) {
2264 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2265       PyObject **dictptr = _PyObject_GetDictPtr(inst);
2266       if (dictptr != NULL) {
2267 	PyObject *dict = *dictptr;
2268 	if (dict == NULL) {
2269 	  dict = PyDict_New();
2270 	  *dictptr = dict;
2271 	  PyDict_SetItem(dict, SWIG_This(), swig_this);
2272 	}
2273       }
2274 #else
2275       if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) {
2276         Py_DECREF(inst);
2277         inst = 0;
2278       }
2279 #endif
2280     }
2281   } else {
2282 #if PY_VERSION_HEX >= 0x03000000
2283     PyObject *empty_args = PyTuple_New(0);
2284     if (empty_args) {
2285       PyObject *empty_kwargs = PyDict_New();
2286       if (empty_kwargs) {
2287         inst = ((PyTypeObject *)data->newargs)->tp_new((PyTypeObject *)data->newargs, empty_args, empty_kwargs);
2288         Py_DECREF(empty_kwargs);
2289         if (inst) {
2290           if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) {
2291             Py_DECREF(inst);
2292             inst = 0;
2293           } else {
2294             Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
2295           }
2296         }
2297       }
2298       Py_DECREF(empty_args);
2299     }
2300 #else
2301     PyObject *dict = PyDict_New();
2302     if (dict) {
2303       PyDict_SetItem(dict, SWIG_This(), swig_this);
2304       inst = PyInstance_NewRaw(data->newargs, dict);
2305       Py_DECREF(dict);
2306     }
2307 #endif
2308   }
2309   return inst;
2310 }
2311 
2312 SWIGRUNTIME int
SWIG_Python_SetSwigThis(PyObject * inst,PyObject * swig_this)2313 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2314 {
2315 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2316   PyObject **dictptr = _PyObject_GetDictPtr(inst);
2317   if (dictptr != NULL) {
2318     PyObject *dict = *dictptr;
2319     if (dict == NULL) {
2320       dict = PyDict_New();
2321       *dictptr = dict;
2322     }
2323     return PyDict_SetItem(dict, SWIG_This(), swig_this);
2324   }
2325 #endif
2326   return PyObject_SetAttr(inst, SWIG_This(), swig_this);
2327 }
2328 
2329 
2330 SWIGINTERN PyObject *
SWIG_Python_InitShadowInstance(PyObject * args)2331 SWIG_Python_InitShadowInstance(PyObject *args) {
2332   PyObject *obj[2];
2333   if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
2334     return NULL;
2335   } else {
2336     SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2337     if (sthis) {
2338       SwigPyObject_append((PyObject*) sthis, obj[1]);
2339     } else {
2340       if (SWIG_Python_SetSwigThis(obj[0], obj[1]) != 0)
2341         return NULL;
2342     }
2343     return SWIG_Py_Void();
2344   }
2345 }
2346 
2347 /* Create a new pointer object */
2348 
2349 SWIGRUNTIME PyObject *
SWIG_Python_NewPointerObj(PyObject * self,void * ptr,swig_type_info * type,int flags)2350 SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
2351   SwigPyClientData *clientdata;
2352   PyObject * robj;
2353   int own;
2354 
2355   if (!ptr)
2356     return SWIG_Py_Void();
2357 
2358   clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
2359   own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2360   if (clientdata && clientdata->pytype) {
2361     SwigPyObject *newobj;
2362     if (flags & SWIG_BUILTIN_TP_INIT) {
2363       newobj = (SwigPyObject*) self;
2364       if (newobj->ptr) {
2365         PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2366         while (newobj->next)
2367 	  newobj = (SwigPyObject *) newobj->next;
2368         newobj->next = next_self;
2369         newobj = (SwigPyObject *)next_self;
2370 #ifdef SWIGPYTHON_BUILTIN
2371         newobj->dict = 0;
2372 #endif
2373       }
2374     } else {
2375       newobj = PyObject_New(SwigPyObject, clientdata->pytype);
2376 #ifdef SWIGPYTHON_BUILTIN
2377       newobj->dict = 0;
2378 #endif
2379     }
2380     if (newobj) {
2381       newobj->ptr = ptr;
2382       newobj->ty = type;
2383       newobj->own = own;
2384       newobj->next = 0;
2385       return (PyObject*) newobj;
2386     }
2387     return SWIG_Py_Void();
2388   }
2389 
2390   assert(!(flags & SWIG_BUILTIN_TP_INIT));
2391 
2392   robj = SwigPyObject_New(ptr, type, own);
2393   if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2394     PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2395     Py_DECREF(robj);
2396     robj = inst;
2397   }
2398   return robj;
2399 }
2400 
2401 /* Create a new packed object */
2402 
2403 SWIGRUNTIMEINLINE PyObject *
SWIG_Python_NewPackedObj(void * ptr,size_t sz,swig_type_info * type)2404 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2405   return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2406 }
2407 
2408 /* -----------------------------------------------------------------------------*
2409  *  Get type list
2410  * -----------------------------------------------------------------------------*/
2411 
2412 #ifdef SWIG_LINK_RUNTIME
2413 void *SWIG_ReturnGlobalTypeList(void *);
2414 #endif
2415 
2416 SWIGRUNTIME swig_module_info *
SWIG_Python_GetModule(void * SWIGUNUSEDPARM (clientdata))2417 SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
2418   static void *type_pointer = (void *)0;
2419   /* first check if module already created */
2420   if (!type_pointer) {
2421 #ifdef SWIG_LINK_RUNTIME
2422     type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2423 #else
2424     type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
2425     if (PyErr_Occurred()) {
2426       PyErr_Clear();
2427       type_pointer = (void *)0;
2428     }
2429 #endif
2430   }
2431   return (swig_module_info *) type_pointer;
2432 }
2433 
2434 SWIGRUNTIME void
SWIG_Python_DestroyModule(PyObject * obj)2435 SWIG_Python_DestroyModule(PyObject *obj)
2436 {
2437   swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
2438   swig_type_info **types = swig_module->types;
2439   size_t i;
2440   for (i =0; i < swig_module->size; ++i) {
2441     swig_type_info *ty = types[i];
2442     if (ty->owndata) {
2443       SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
2444       if (data) SwigPyClientData_Del(data);
2445     }
2446   }
2447   Py_DECREF(SWIG_This());
2448   Swig_This_global = NULL;
2449 }
2450 
2451 SWIGRUNTIME void
SWIG_Python_SetModule(swig_module_info * swig_module)2452 SWIG_Python_SetModule(swig_module_info *swig_module) {
2453 #if PY_VERSION_HEX >= 0x03000000
2454  /* Add a dummy module object into sys.modules */
2455   PyObject *module = PyImport_AddModule("swig_runtime_data" SWIG_RUNTIME_VERSION);
2456 #else
2457   static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */
2458   PyObject *module = Py_InitModule("swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
2459 #endif
2460   PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
2461   if (pointer && module) {
2462     PyModule_AddObject(module, "type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2463   } else {
2464     Py_XDECREF(pointer);
2465   }
2466 }
2467 
2468 /* The python cached type query */
2469 SWIGRUNTIME PyObject *
SWIG_Python_TypeCache(void)2470 SWIG_Python_TypeCache(void) {
2471   static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2472   return cache;
2473 }
2474 
2475 SWIGRUNTIME swig_type_info *
SWIG_Python_TypeQuery(const char * type)2476 SWIG_Python_TypeQuery(const char *type)
2477 {
2478   PyObject *cache = SWIG_Python_TypeCache();
2479   PyObject *key = SWIG_Python_str_FromChar(type);
2480   PyObject *obj = PyDict_GetItem(cache, key);
2481   swig_type_info *descriptor;
2482   if (obj) {
2483     descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL);
2484   } else {
2485     swig_module_info *swig_module = SWIG_GetModule(0);
2486     descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2487     if (descriptor) {
2488       obj = PyCapsule_New((void*) descriptor, NULL, NULL);
2489       PyDict_SetItem(cache, key, obj);
2490       Py_DECREF(obj);
2491     }
2492   }
2493   Py_DECREF(key);
2494   return descriptor;
2495 }
2496 
2497 /*
2498    For backward compatibility only
2499 */
2500 #define SWIG_POINTER_EXCEPTION  0
2501 #define SWIG_arg_fail(arg)      SWIG_Python_ArgFail(arg)
2502 #define SWIG_MustGetPtr(p, type, argnum, flags)  SWIG_Python_MustGetPtr(p, type, argnum, flags)
2503 
2504 SWIGRUNTIME int
SWIG_Python_AddErrMesg(const char * mesg,int infront)2505 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2506 {
2507   if (PyErr_Occurred()) {
2508     PyObject *type = 0;
2509     PyObject *value = 0;
2510     PyObject *traceback = 0;
2511     PyErr_Fetch(&type, &value, &traceback);
2512     if (value) {
2513       PyObject *old_str = PyObject_Str(value);
2514       const char *tmp = SWIG_Python_str_AsChar(old_str);
2515       const char *errmesg = tmp ? tmp : "Invalid error message";
2516       Py_XINCREF(type);
2517       PyErr_Clear();
2518       if (infront) {
2519 	PyErr_Format(type, "%s %s", mesg, errmesg);
2520       } else {
2521 	PyErr_Format(type, "%s %s", errmesg, mesg);
2522       }
2523       SWIG_Python_str_DelForPy3(tmp);
2524       Py_DECREF(old_str);
2525     }
2526     return 1;
2527   } else {
2528     return 0;
2529   }
2530 }
2531 
2532 SWIGRUNTIME int
SWIG_Python_ArgFail(int argnum)2533 SWIG_Python_ArgFail(int argnum)
2534 {
2535   if (PyErr_Occurred()) {
2536     /* add information about failing argument */
2537     char mesg[256];
2538     PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2539     return SWIG_Python_AddErrMesg(mesg, 1);
2540   } else {
2541     return 0;
2542   }
2543 }
2544 
2545 SWIGRUNTIMEINLINE const char *
SwigPyObject_GetDesc(PyObject * self)2546 SwigPyObject_GetDesc(PyObject *self)
2547 {
2548   SwigPyObject *v = (SwigPyObject *)self;
2549   swig_type_info *ty = v ? v->ty : 0;
2550   return ty ? ty->str : "";
2551 }
2552 
2553 SWIGRUNTIME void
SWIG_Python_TypeError(const char * type,PyObject * obj)2554 SWIG_Python_TypeError(const char *type, PyObject *obj)
2555 {
2556   if (type) {
2557 #if defined(SWIG_COBJECT_TYPES)
2558     if (obj && SwigPyObject_Check(obj)) {
2559       const char *otype = (const char *) SwigPyObject_GetDesc(obj);
2560       if (otype) {
2561 	PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
2562 		     type, otype);
2563 	return;
2564       }
2565     } else
2566 #endif
2567     {
2568       const char *otype = (obj ? obj->ob_type->tp_name : 0);
2569       if (otype) {
2570 	PyObject *str = PyObject_Str(obj);
2571 	const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
2572 	if (cstr) {
2573 	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2574 		       type, otype, cstr);
2575           SWIG_Python_str_DelForPy3(cstr);
2576 	} else {
2577 	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2578 		       type, otype);
2579 	}
2580 	Py_XDECREF(str);
2581 	return;
2582       }
2583     }
2584     PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2585   } else {
2586     PyErr_Format(PyExc_TypeError, "unexpected type is received");
2587   }
2588 }
2589 
2590 
2591 /* Convert a pointer value, signal an exception on a type mismatch */
2592 SWIGRUNTIME void *
SWIG_Python_MustGetPtr(PyObject * obj,swig_type_info * ty,int SWIGUNUSEDPARM (argnum),int flags)2593 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
2594   void *result;
2595   if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2596     PyErr_Clear();
2597 #if SWIG_POINTER_EXCEPTION
2598     if (flags) {
2599       SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2600       SWIG_Python_ArgFail(argnum);
2601     }
2602 #endif
2603   }
2604   return result;
2605 }
2606 
2607 #ifdef SWIGPYTHON_BUILTIN
2608 SWIGRUNTIME int
SWIG_Python_NonDynamicSetAttr(PyObject * obj,PyObject * name,PyObject * value)2609 SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
2610   PyTypeObject *tp = obj->ob_type;
2611   PyObject *descr;
2612   PyObject *encoded_name;
2613   descrsetfunc f;
2614   int res = -1;
2615 
2616 # ifdef Py_USING_UNICODE
2617   if (PyString_Check(name)) {
2618     name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL);
2619     if (!name)
2620       return -1;
2621   } else if (!PyUnicode_Check(name))
2622 # else
2623   if (!PyString_Check(name))
2624 # endif
2625   {
2626     PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
2627     return -1;
2628   } else {
2629     Py_INCREF(name);
2630   }
2631 
2632   if (!tp->tp_dict) {
2633     if (PyType_Ready(tp) < 0)
2634       goto done;
2635   }
2636 
2637   descr = _PyType_Lookup(tp, name);
2638   f = NULL;
2639   if (descr != NULL)
2640     f = descr->ob_type->tp_descr_set;
2641   if (!f) {
2642     if (PyString_Check(name)) {
2643       encoded_name = name;
2644       Py_INCREF(name);
2645     } else {
2646       encoded_name = PyUnicode_AsUTF8String(name);
2647       if (!encoded_name)
2648         return -1;
2649     }
2650     PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2651     Py_DECREF(encoded_name);
2652   } else {
2653     res = f(descr, obj, value);
2654   }
2655 
2656   done:
2657   Py_DECREF(name);
2658   return res;
2659 }
2660 #endif
2661 
2662 
2663 #ifdef __cplusplus
2664 }
2665 #endif
2666 
2667 
2668 
2669 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2670 
2671 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2672 
2673 
2674 
2675 #ifdef __cplusplus
2676 extern "C" {
2677 #endif
2678 
2679 /* Method creation and docstring support functions */
2680 
2681 SWIGINTERN PyMethodDef *SWIG_PythonGetProxyDoc(const char *name);
2682 SWIGINTERN PyObject *SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func);
2683 SWIGINTERN PyObject *SWIG_PyStaticMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func);
2684 
2685 #ifdef __cplusplus
2686 }
2687 #endif
2688 
2689 
2690   #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0)
2691 
2692 
2693 /* -------- TYPES TABLE (BEGIN) -------- */
2694 
2695 #define SWIGTYPE_p_COORDINATE swig_types[0]
2696 #define SWIGTYPE_p_SOLUTION swig_types[1]
2697 #define SWIGTYPE_p_Tree swig_types[2]
2698 #define SWIGTYPE_p__struct_en swig_types[3]
2699 #define SWIGTYPE_p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__double swig_types[4]
2700 #define SWIGTYPE_p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__doubleArray swig_types[5]
2701 #define SWIGTYPE_p_a_5__a_5__double swig_types[6]
2702 #define SWIGTYPE_p_a_5__a_5__doubleArray swig_types[7]
2703 #define SWIGTYPE_p_a_5__a_5__int swig_types[8]
2704 #define SWIGTYPE_p_a_5__a_5__intArray swig_types[9]
2705 #define SWIGTYPE_p_a_5__double swig_types[10]
2706 #define SWIGTYPE_p_a_5__doubleArray swig_types[11]
2707 #define SWIGTYPE_p_a_7_1__a_5__a_5__a_5__a_5__int swig_types[12]
2708 #define SWIGTYPE_p_a_7_1__a_5__a_5__a_5__a_5__intArray swig_types[13]
2709 #define SWIGTYPE_p_a_7_1__a_5__a_5__a_5__int swig_types[14]
2710 #define SWIGTYPE_p_a_7_1__a_5__a_5__a_5__intArray swig_types[15]
2711 #define SWIGTYPE_p_a_7_1__a_5__a_5__int swig_types[16]
2712 #define SWIGTYPE_p_a_7_1__a_5__a_5__intArray swig_types[17]
2713 #define SWIGTYPE_p_a_MAXLOOP_1__double swig_types[18]
2714 #define SWIGTYPE_p_a_MAXLOOP_1__doubleArray swig_types[19]
2715 #define SWIGTYPE_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__double swig_types[20]
2716 #define SWIGTYPE_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__doubleArray swig_types[21]
2717 #define SWIGTYPE_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__int swig_types[22]
2718 #define SWIGTYPE_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__intArray swig_types[23]
2719 #define SWIGTYPE_p_a_NBPAIRS_1__a_5__a_5__a_5__double swig_types[24]
2720 #define SWIGTYPE_p_a_NBPAIRS_1__a_5__a_5__a_5__doubleArray swig_types[25]
2721 #define SWIGTYPE_p_a_NBPAIRS_1__a_5__a_5__a_5__int swig_types[26]
2722 #define SWIGTYPE_p_a_NBPAIRS_1__a_5__a_5__a_5__intArray swig_types[27]
2723 #define SWIGTYPE_p_a_NBPAIRS_1__a_5__a_5__double swig_types[28]
2724 #define SWIGTYPE_p_a_NBPAIRS_1__a_5__a_5__doubleArray swig_types[29]
2725 #define SWIGTYPE_p_a_NBPAIRS_1__a_5__a_5__int swig_types[30]
2726 #define SWIGTYPE_p_a_NBPAIRS_1__a_5__a_5__intArray swig_types[31]
2727 #define SWIGTYPE_p_a_NBPAIRS_1__double swig_types[32]
2728 #define SWIGTYPE_p_a_NBPAIRS_1__doubleArray swig_types[33]
2729 #define SWIGTYPE_p_allocator_type swig_types[34]
2730 #define SWIGTYPE_p_char swig_types[35]
2731 #define SWIGTYPE_p_difference_type swig_types[36]
2732 #define SWIGTYPE_p_double swig_types[37]
2733 #define SWIGTYPE_p_doubleArray swig_types[38]
2734 #define SWIGTYPE_p_duplexT swig_types[39]
2735 #define SWIGTYPE_p_duplex_list_t swig_types[40]
2736 #define SWIGTYPE_p_first_type swig_types[41]
2737 #define SWIGTYPE_p_float swig_types[42]
2738 #define SWIGTYPE_p_floatArray swig_types[43]
2739 #define SWIGTYPE_p_heat_capacity_result swig_types[44]
2740 #define SWIGTYPE_p_int swig_types[45]
2741 #define SWIGTYPE_p_intArray swig_types[46]
2742 #define SWIGTYPE_p_my_fc_type_e swig_types[47]
2743 #define SWIGTYPE_p_p_PyObject swig_types[48]
2744 #define SWIGTYPE_p_p_char swig_types[49]
2745 #define SWIGTYPE_p_p_p_char swig_types[50]
2746 #define SWIGTYPE_p_p_void swig_types[51]
2747 #define SWIGTYPE_p_second_type swig_types[52]
2748 #define SWIGTYPE_p_short swig_types[53]
2749 #define SWIGTYPE_p_size_type swig_types[54]
2750 #define SWIGTYPE_p_std__allocatorT_COORDINATE_t swig_types[55]
2751 #define SWIGTYPE_p_std__allocatorT_SOLUTION_t swig_types[56]
2752 #define SWIGTYPE_p_std__allocatorT_char_const_p_t swig_types[57]
2753 #define SWIGTYPE_p_std__allocatorT_double_t swig_types[58]
2754 #define SWIGTYPE_p_std__allocatorT_duplex_list_t_t swig_types[59]
2755 #define SWIGTYPE_p_std__allocatorT_heat_capacity_result_t swig_types[60]
2756 #define SWIGTYPE_p_std__allocatorT_int_t swig_types[61]
2757 #define SWIGTYPE_p_std__allocatorT_std__string_t swig_types[62]
2758 #define SWIGTYPE_p_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t swig_types[63]
2759 #define SWIGTYPE_p_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t swig_types[64]
2760 #define SWIGTYPE_p_std__allocatorT_subopt_solution_t swig_types[65]
2761 #define SWIGTYPE_p_std__allocatorT_unsigned_int_t swig_types[66]
2762 #define SWIGTYPE_p_std__allocatorT_vrna_ep_t_t swig_types[67]
2763 #define SWIGTYPE_p_std__allocatorT_vrna_move_t_t swig_types[68]
2764 #define SWIGTYPE_p_std__allocatorT_vrna_path_t_t swig_types[69]
2765 #define SWIGTYPE_p_std__invalid_argument swig_types[70]
2766 #define SWIGTYPE_p_std__pairT_double_double_t swig_types[71]
2767 #define SWIGTYPE_p_std__string swig_types[72]
2768 #define SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t swig_types[73]
2769 #define SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t swig_types[74]
2770 #define SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t swig_types[75]
2771 #define SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t swig_types[76]
2772 #define SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t swig_types[77]
2773 #define SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t swig_types[78]
2774 #define SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t swig_types[79]
2775 #define SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t swig_types[80]
2776 #define SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t swig_types[81]
2777 #define SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t swig_types[82]
2778 #define SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t swig_types[83]
2779 #define SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t swig_types[84]
2780 #define SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t swig_types[85]
2781 #define SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t swig_types[86]
2782 #define SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t swig_types[87]
2783 #define SWIGTYPE_p_subopt_solution swig_types[88]
2784 #define SWIGTYPE_p_swString swig_types[89]
2785 #define SWIGTYPE_p_swig__SwigPyIterator swig_types[90]
2786 #define SWIGTYPE_p_unsigned_int swig_types[91]
2787 #define SWIGTYPE_p_unsigned_short swig_types[92]
2788 #define SWIGTYPE_p_value_type swig_types[93]
2789 #define SWIGTYPE_p_void swig_types[94]
2790 #define SWIGTYPE_p_vrna_basepair_t swig_types[95]
2791 #define SWIGTYPE_p_vrna_bp_stack_s swig_types[96]
2792 #define SWIGTYPE_p_vrna_command_s swig_types[97]
2793 #define SWIGTYPE_p_vrna_cpair_s swig_types[98]
2794 #define SWIGTYPE_p_vrna_dimer_pf_s swig_types[99]
2795 #define SWIGTYPE_p_vrna_elem_prob_s swig_types[100]
2796 #define SWIGTYPE_p_vrna_ep_t swig_types[101]
2797 #define SWIGTYPE_p_vrna_exp_param_t swig_types[102]
2798 #define SWIGTYPE_p_vrna_fold_compound_t swig_types[103]
2799 #define SWIGTYPE_p_vrna_md_t swig_types[104]
2800 #define SWIGTYPE_p_vrna_move_t swig_types[105]
2801 #define SWIGTYPE_p_vrna_param_t swig_types[106]
2802 #define SWIGTYPE_p_vrna_path_options_s swig_types[107]
2803 #define SWIGTYPE_p_vrna_path_s swig_types[108]
2804 #define SWIGTYPE_p_vrna_path_t swig_types[109]
2805 #define SWIGTYPE_p_vrna_pbacktrack_mem_t swig_types[110]
2806 #define SWIGTYPE_p_vrna_pinfo_s swig_types[111]
2807 #define SWIGTYPE_p_vrna_sc_s swig_types[112]
2808 static swig_type_info *swig_types[114];
2809 static swig_module_info swig_module = {swig_types, 113, 0, 0, 0, 0};
2810 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2811 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2812 
2813 /* -------- TYPES TABLE (END) -------- */
2814 
2815 #ifdef SWIG_TypeQuery
2816 # undef SWIG_TypeQuery
2817 #endif
2818 #define SWIG_TypeQuery SWIG_Python_TypeQuery
2819 
2820 /*-----------------------------------------------
2821               @(target):= _RNA.so
2822   ------------------------------------------------*/
2823 #if PY_VERSION_HEX >= 0x03000000
2824 #  define SWIG_init    PyInit__RNA
2825 
2826 #else
2827 #  define SWIG_init    init_RNA
2828 
2829 #endif
2830 #define SWIG_name    "_RNA"
2831 
2832 #define SWIGVERSION 0x040002
2833 #define SWIG_VERSION SWIGVERSION
2834 
2835 
2836 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2837 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2838 
2839 
2840 #include <stdexcept>
2841 
2842 
2843 namespace swig {
2844   class SwigPtr_PyObject {
2845   protected:
2846     PyObject *_obj;
2847 
2848   public:
SwigPtr_PyObject()2849     SwigPtr_PyObject() :_obj(0)
2850     {
2851     }
2852 
SwigPtr_PyObject(const SwigPtr_PyObject & item)2853     SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
2854     {
2855       SWIG_PYTHON_THREAD_BEGIN_BLOCK;
2856       Py_XINCREF(_obj);
2857       SWIG_PYTHON_THREAD_END_BLOCK;
2858     }
2859 
SwigPtr_PyObject(PyObject * obj,bool initial_ref=true)2860     SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
2861     {
2862       if (initial_ref) {
2863         SWIG_PYTHON_THREAD_BEGIN_BLOCK;
2864         Py_XINCREF(_obj);
2865         SWIG_PYTHON_THREAD_END_BLOCK;
2866       }
2867     }
2868 
operator =(const SwigPtr_PyObject & item)2869     SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
2870     {
2871       SWIG_PYTHON_THREAD_BEGIN_BLOCK;
2872       Py_XINCREF(item._obj);
2873       Py_XDECREF(_obj);
2874       _obj = item._obj;
2875       SWIG_PYTHON_THREAD_END_BLOCK;
2876       return *this;
2877     }
2878 
~SwigPtr_PyObject()2879     ~SwigPtr_PyObject()
2880     {
2881       SWIG_PYTHON_THREAD_BEGIN_BLOCK;
2882       Py_XDECREF(_obj);
2883       SWIG_PYTHON_THREAD_END_BLOCK;
2884     }
2885 
operator PyObject*() const2886     operator PyObject *() const
2887     {
2888       return _obj;
2889     }
2890 
operator ->() const2891     PyObject *operator->() const
2892     {
2893       return _obj;
2894     }
2895   };
2896 }
2897 
2898 
2899 namespace swig {
2900   struct SwigVar_PyObject : SwigPtr_PyObject {
SwigVar_PyObjectswig::SwigVar_PyObject2901     SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
2902 
operator =swig::SwigVar_PyObject2903     SwigVar_PyObject & operator = (PyObject* obj)
2904     {
2905       Py_XDECREF(_obj);
2906       _obj = obj;
2907       return *this;
2908     }
2909   };
2910 }
2911 
2912 
2913 
2914 extern "C" {
2915 #include  <ViennaRNA/model.h>
2916 #include  <ViennaRNA/datastructures/basic.h>
2917 #include  <ViennaRNA/fold_compound.h>
2918 #include  <ViennaRNA/dp_matrices.h>
2919 #include  <ViennaRNA/alphabet.h>
2920 #include  <ViennaRNA/sequence.h>
2921 #include  <ViennaRNA/grammar.h>
2922 #include  <ViennaRNA/unstructured_domains.h>
2923 #include  <ViennaRNA/structured_domains.h>
2924 #include  <ViennaRNA/commands.h>
2925 
2926 #include  <ViennaRNA/utils/basic.h>
2927 #include  <ViennaRNA/utils/structures.h>
2928 #include  <ViennaRNA/utils/strings.h>
2929 #include  <ViennaRNA/utils/alignments.h>
2930 #include  <ViennaRNA/fold_vars.h>
2931 
2932 #include  <ViennaRNA/params/constants.h>
2933 #include  <ViennaRNA/params/basic.h>
2934 #include  <ViennaRNA/params/io.h>
2935 #include  <ViennaRNA/params/default.h>
2936 
2937 #include  <ViennaRNA/constraints/basic.h>
2938 #include  <ViennaRNA/constraints/hard.h>
2939 #include  <ViennaRNA/constraints/soft.h>
2940 #include  <ViennaRNA/constraints/SHAPE.h>
2941 #include  <ViennaRNA/constraints/ligand.h>
2942 
2943 #include  <ViennaRNA/plotting/naview.h>
2944 #include  <ViennaRNA/plotting/layouts.h>
2945 #include  <ViennaRNA/plotting/structures.h>
2946 #include  <ViennaRNA/plotting/alignments.h>
2947 #include  <ViennaRNA/plotting/probabilities.h>
2948 
2949 #include  <ViennaRNA/io/file_formats.h>
2950 #include  <ViennaRNA/io/file_formats_msa.h>
2951 #include  <ViennaRNA/io/utils.h>
2952 
2953 #include  <ViennaRNA/loops/external.h>
2954 #include  <ViennaRNA/loops/hairpin.h>
2955 #include  <ViennaRNA/loops/internal.h>
2956 #include  <ViennaRNA/loops/multibranch.h>
2957 
2958 #include  <ViennaRNA/mfe.h>
2959 #include  <ViennaRNA/mfe_window.h>
2960 #include  <ViennaRNA/fold.h>
2961 #include  <ViennaRNA/eval.h>
2962 #include  <ViennaRNA/cofold.h>
2963 #include  <ViennaRNA/alifold.h>
2964 
2965 #include  <ViennaRNA/part_func.h>
2966 #include  <ViennaRNA/part_func_window.h>
2967 #include  <ViennaRNA/part_func_co.h>
2968 #include  <ViennaRNA/equilibrium_probs.h>
2969 #include  <ViennaRNA/boltzmann_sampling.h>
2970 #include  <ViennaRNA/concentrations.h>
2971 #include  <ViennaRNA/LPfold.h>
2972 #include  <ViennaRNA/centroid.h>
2973 #include  <ViennaRNA/MEA.h>
2974 #include  <ViennaRNA/heat_capacity.h>
2975 
2976 #ifdef VRNA_WITH_SVM
2977 #include  <ViennaRNA/zscore.h>
2978 #endif
2979 
2980 #include  <ViennaRNA/inverse.h>
2981 #include  <ViennaRNA/RNAstruct.h>
2982 #include  <ViennaRNA/treedist.h>
2983 #include  <ViennaRNA/stringdist.h>
2984 #include  <ViennaRNA/profiledist.h>
2985 #include  <ViennaRNA/dist_vars.h>
2986 #include  <ViennaRNA/pair_mat.h>
2987 #include  <ViennaRNA/subopt.h>
2988 #include  <ViennaRNA/duplex.h>
2989 
2990 #include  <ViennaRNA/combinatorics.h>
2991 
2992 #include  <ViennaRNA/move_set.h>
2993 #include  <ViennaRNA/landscape/paths.h>
2994 #include  <ViennaRNA/landscape/findpath.h>
2995 #include  <ViennaRNA/landscape/move.h>
2996 #include  <ViennaRNA/landscape/neighbor.h>
2997 #include  <ViennaRNA/landscape/walk.h>
2998 
2999 #include  <ViennaRNA/mm.h>
3000 }
3001 
3002 
3003 
new_intP(size_t nelements)3004   static int *new_intP(size_t nelements) {
3005     return (new int[nelements]());
3006   }
3007 
delete_intP(int * ary)3008   static void delete_intP(int *ary) {
3009     delete[] ary;
3010   }
3011 
intP_getitem(int * ary,size_t index)3012   static int intP_getitem(int *ary, size_t index) {
3013     return ary[index];
3014   }
intP_setitem(int * ary,size_t index,int value)3015   static void intP_setitem(int *ary, size_t index, int value) {
3016     ary[index] = value;
3017   }
3018 
3019 
3020 SWIGINTERN int
SWIG_AsVal_double(PyObject * obj,double * val)3021 SWIG_AsVal_double (PyObject *obj, double *val)
3022 {
3023   int res = SWIG_TypeError;
3024   if (PyFloat_Check(obj)) {
3025     if (val) *val = PyFloat_AsDouble(obj);
3026     return SWIG_OK;
3027 #if PY_VERSION_HEX < 0x03000000
3028   } else if (PyInt_Check(obj)) {
3029     if (val) *val = (double) PyInt_AsLong(obj);
3030     return SWIG_OK;
3031 #endif
3032   } else if (PyLong_Check(obj)) {
3033     double v = PyLong_AsDouble(obj);
3034     if (!PyErr_Occurred()) {
3035       if (val) *val = v;
3036       return SWIG_OK;
3037     } else {
3038       PyErr_Clear();
3039     }
3040   }
3041 #ifdef SWIG_PYTHON_CAST_MODE
3042   {
3043     int dispatch = 0;
3044     double d = PyFloat_AsDouble(obj);
3045     if (!PyErr_Occurred()) {
3046       if (val) *val = d;
3047       return SWIG_AddCast(SWIG_OK);
3048     } else {
3049       PyErr_Clear();
3050     }
3051     if (!dispatch) {
3052       long v = PyLong_AsLong(obj);
3053       if (!PyErr_Occurred()) {
3054 	if (val) *val = v;
3055 	return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
3056       } else {
3057 	PyErr_Clear();
3058       }
3059     }
3060   }
3061 #endif
3062   return res;
3063 }
3064 
3065 
3066 #include <float.h>
3067 
3068 
3069 #include <math.h>
3070 
3071 
3072 SWIGINTERNINLINE int
SWIG_CanCastAsInteger(double * d,double min,double max)3073 SWIG_CanCastAsInteger(double *d, double min, double max) {
3074   double x = *d;
3075   if ((min <= x && x <= max)) {
3076    double fx = floor(x);
3077    double cx = ceil(x);
3078    double rd =  ((x - fx) < 0.5) ? fx : cx; /* simple rint */
3079    if ((errno == EDOM) || (errno == ERANGE)) {
3080      errno = 0;
3081    } else {
3082      double summ, reps, diff;
3083      if (rd < x) {
3084        diff = x - rd;
3085      } else if (rd > x) {
3086        diff = rd - x;
3087      } else {
3088        return 1;
3089      }
3090      summ = rd + x;
3091      reps = diff/summ;
3092      if (reps < 8*DBL_EPSILON) {
3093        *d = rd;
3094        return 1;
3095      }
3096    }
3097   }
3098   return 0;
3099 }
3100 
3101 
3102 SWIGINTERN int
SWIG_AsVal_unsigned_SS_long(PyObject * obj,unsigned long * val)3103 SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
3104 {
3105 #if PY_VERSION_HEX < 0x03000000
3106   if (PyInt_Check(obj)) {
3107     long v = PyInt_AsLong(obj);
3108     if (v >= 0) {
3109       if (val) *val = v;
3110       return SWIG_OK;
3111     } else {
3112       return SWIG_OverflowError;
3113     }
3114   } else
3115 #endif
3116   if (PyLong_Check(obj)) {
3117     unsigned long v = PyLong_AsUnsignedLong(obj);
3118     if (!PyErr_Occurred()) {
3119       if (val) *val = v;
3120       return SWIG_OK;
3121     } else {
3122       PyErr_Clear();
3123       return SWIG_OverflowError;
3124     }
3125   }
3126 #ifdef SWIG_PYTHON_CAST_MODE
3127   {
3128     int dispatch = 0;
3129     unsigned long v = PyLong_AsUnsignedLong(obj);
3130     if (!PyErr_Occurred()) {
3131       if (val) *val = v;
3132       return SWIG_AddCast(SWIG_OK);
3133     } else {
3134       PyErr_Clear();
3135     }
3136     if (!dispatch) {
3137       double d;
3138       int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
3139       if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
3140 	if (val) *val = (unsigned long)(d);
3141 	return res;
3142       }
3143     }
3144   }
3145 #endif
3146   return SWIG_TypeError;
3147 }
3148 
3149 
3150 #include <limits.h>
3151 #if !defined(SWIG_NO_LLONG_MAX)
3152 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
3153 #   define LLONG_MAX __LONG_LONG_MAX__
3154 #   define LLONG_MIN (-LLONG_MAX - 1LL)
3155 #   define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
3156 # endif
3157 #endif
3158 
3159 
3160 #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
3161 #  define SWIG_LONG_LONG_AVAILABLE
3162 #endif
3163 
3164 
3165 #ifdef SWIG_LONG_LONG_AVAILABLE
3166 SWIGINTERN int
SWIG_AsVal_unsigned_SS_long_SS_long(PyObject * obj,unsigned long long * val)3167 SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj, unsigned long long *val)
3168 {
3169   int res = SWIG_TypeError;
3170   if (PyLong_Check(obj)) {
3171     unsigned long long v = PyLong_AsUnsignedLongLong(obj);
3172     if (!PyErr_Occurred()) {
3173       if (val) *val = v;
3174       return SWIG_OK;
3175     } else {
3176       PyErr_Clear();
3177       res = SWIG_OverflowError;
3178     }
3179   } else {
3180     unsigned long v;
3181     res = SWIG_AsVal_unsigned_SS_long (obj,&v);
3182     if (SWIG_IsOK(res)) {
3183       if (val) *val = v;
3184       return res;
3185     }
3186   }
3187 #ifdef SWIG_PYTHON_CAST_MODE
3188   {
3189     const double mant_max = 1LL << DBL_MANT_DIG;
3190     double d;
3191     res = SWIG_AsVal_double (obj,&d);
3192     if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, 0, mant_max))
3193       return SWIG_OverflowError;
3194     if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) {
3195       if (val) *val = (unsigned long long)(d);
3196       return SWIG_AddCast(res);
3197     }
3198     res = SWIG_TypeError;
3199   }
3200 #endif
3201   return res;
3202 }
3203 #endif
3204 
3205 
3206 SWIGINTERNINLINE int
SWIG_AsVal_size_t(PyObject * obj,size_t * val)3207 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3208 {
3209   int res = SWIG_TypeError;
3210 #ifdef SWIG_LONG_LONG_AVAILABLE
3211   if (sizeof(size_t) <= sizeof(unsigned long)) {
3212 #endif
3213     unsigned long v;
3214     res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3215     if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3216 #ifdef SWIG_LONG_LONG_AVAILABLE
3217   } else if (sizeof(size_t) <= sizeof(unsigned long long)) {
3218     unsigned long long v;
3219     res = SWIG_AsVal_unsigned_SS_long_SS_long (obj, val ? &v : 0);
3220     if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3221   }
3222 #endif
3223   return res;
3224 }
3225 
3226 
3227 SWIGINTERNINLINE PyObject*
SWIG_From_int(int value)3228   SWIG_From_int  (int value)
3229 {
3230   return PyInt_FromLong((long) value);
3231 }
3232 
3233 
3234 SWIGINTERN int
SWIG_AsVal_long(PyObject * obj,long * val)3235 SWIG_AsVal_long (PyObject *obj, long* val)
3236 {
3237 #if PY_VERSION_HEX < 0x03000000
3238   if (PyInt_Check(obj)) {
3239     if (val) *val = PyInt_AsLong(obj);
3240     return SWIG_OK;
3241   } else
3242 #endif
3243   if (PyLong_Check(obj)) {
3244     long v = PyLong_AsLong(obj);
3245     if (!PyErr_Occurred()) {
3246       if (val) *val = v;
3247       return SWIG_OK;
3248     } else {
3249       PyErr_Clear();
3250       return SWIG_OverflowError;
3251     }
3252   }
3253 #ifdef SWIG_PYTHON_CAST_MODE
3254   {
3255     int dispatch = 0;
3256     long v = PyInt_AsLong(obj);
3257     if (!PyErr_Occurred()) {
3258       if (val) *val = v;
3259       return SWIG_AddCast(SWIG_OK);
3260     } else {
3261       PyErr_Clear();
3262     }
3263     if (!dispatch) {
3264       double d;
3265       int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
3266       if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
3267 	if (val) *val = (long)(d);
3268 	return res;
3269       }
3270     }
3271   }
3272 #endif
3273   return SWIG_TypeError;
3274 }
3275 
3276 
3277 SWIGINTERN int
SWIG_AsVal_int(PyObject * obj,int * val)3278 SWIG_AsVal_int (PyObject * obj, int *val)
3279 {
3280   long v;
3281   int res = SWIG_AsVal_long (obj, &v);
3282   if (SWIG_IsOK(res)) {
3283     if ((v < INT_MIN || v > INT_MAX)) {
3284       return SWIG_OverflowError;
3285     } else {
3286       if (val) *val = static_cast< int >(v);
3287     }
3288   }
3289   return res;
3290 }
3291 
3292 
3293 typedef int intArray;
3294 
new_intArray(size_t nelements)3295 SWIGINTERN intArray *new_intArray(size_t nelements){
3296     return (new int[nelements]());
3297   }
delete_intArray(intArray * self)3298 SWIGINTERN void delete_intArray(intArray *self){
3299     delete[] self;
3300   }
intArray___getitem__(intArray * self,size_t index)3301 SWIGINTERN int intArray___getitem__(intArray *self,size_t index){
3302     return self[index];
3303   }
intArray___setitem__(intArray * self,size_t index,int value)3304 SWIGINTERN void intArray___setitem__(intArray *self,size_t index,int value){
3305     self[index] = value;
3306   }
intArray_cast(intArray * self)3307 SWIGINTERN int *intArray_cast(intArray *self){
3308     return self;
3309   }
intArray_frompointer(int * t)3310 SWIGINTERN intArray *intArray_frompointer(int *t){
3311     return static_cast< intArray * >(t);
3312   }
3313 
new_floatP(size_t nelements)3314   static float *new_floatP(size_t nelements) {
3315     return (new float[nelements]());
3316   }
3317 
delete_floatP(float * ary)3318   static void delete_floatP(float *ary) {
3319     delete[] ary;
3320   }
3321 
floatP_getitem(float * ary,size_t index)3322   static float floatP_getitem(float *ary, size_t index) {
3323     return ary[index];
3324   }
floatP_setitem(float * ary,size_t index,float value)3325   static void floatP_setitem(float *ary, size_t index, float value) {
3326     ary[index] = value;
3327   }
3328 
3329 
3330   #define SWIG_From_double   PyFloat_FromDouble
3331 
3332 
3333 SWIGINTERNINLINE PyObject *
SWIG_From_float(float value)3334 SWIG_From_float  (float value)
3335 {
3336   return SWIG_From_double  (value);
3337 }
3338 
3339 
3340 /* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */
3341 #ifndef SWIG_isfinite
3342 /* isfinite() is a macro for C99 */
3343 # if defined(isfinite)
3344 #  define SWIG_isfinite(X) (isfinite(X))
3345 # elif defined(__cplusplus) && __cplusplus >= 201103L
3346 /* Use a template so that this works whether isfinite() is std::isfinite() or
3347  * in the global namespace.  The reality seems to vary between compiler
3348  * versions.
3349  *
3350  * Make sure namespace std exists to avoid compiler warnings.
3351  *
3352  * extern "C++" is required as this fragment can end up inside an extern "C" { } block
3353  */
3354 namespace std { }
3355 extern "C++" template<typename T>
SWIG_isfinite_func(T x)3356 inline int SWIG_isfinite_func(T x) {
3357   using namespace std;
3358   return isfinite(x);
3359 }
3360 #  define SWIG_isfinite(X) (SWIG_isfinite_func(X))
3361 # elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
3362 #  define SWIG_isfinite(X) (__builtin_isfinite(X))
3363 # elif defined(__clang__) && defined(__has_builtin)
3364 #  if __has_builtin(__builtin_isfinite)
3365 #   define SWIG_isfinite(X) (__builtin_isfinite(X))
3366 #  endif
3367 # elif defined(_MSC_VER)
3368 #  define SWIG_isfinite(X) (_finite(X))
3369 # elif defined(__sun) && defined(__SVR4)
3370 #  include <ieeefp.h>
3371 #  define SWIG_isfinite(X) (finite(X))
3372 # endif
3373 #endif
3374 
3375 
3376 /* Accept infinite as a valid float value unless we are unable to check if a value is finite */
3377 #ifdef SWIG_isfinite
3378 # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X))
3379 #else
3380 # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX))
3381 #endif
3382 
3383 
3384 SWIGINTERN int
SWIG_AsVal_float(PyObject * obj,float * val)3385 SWIG_AsVal_float (PyObject * obj, float *val)
3386 {
3387   double v;
3388   int res = SWIG_AsVal_double (obj, &v);
3389   if (SWIG_IsOK(res)) {
3390     if (SWIG_Float_Overflow_Check(v)) {
3391       return SWIG_OverflowError;
3392     } else {
3393       if (val) *val = static_cast< float >(v);
3394     }
3395   }
3396   return res;
3397 }
3398 
3399 
3400 typedef float floatArray;
3401 
new_floatArray(size_t nelements)3402 SWIGINTERN floatArray *new_floatArray(size_t nelements){
3403     return (new float[nelements]());
3404   }
delete_floatArray(floatArray * self)3405 SWIGINTERN void delete_floatArray(floatArray *self){
3406     delete[] self;
3407   }
floatArray___getitem__(floatArray * self,size_t index)3408 SWIGINTERN float floatArray___getitem__(floatArray *self,size_t index){
3409     return self[index];
3410   }
floatArray___setitem__(floatArray * self,size_t index,float value)3411 SWIGINTERN void floatArray___setitem__(floatArray *self,size_t index,float value){
3412     self[index] = value;
3413   }
floatArray_cast(floatArray * self)3414 SWIGINTERN float *floatArray_cast(floatArray *self){
3415     return self;
3416   }
floatArray_frompointer(float * t)3417 SWIGINTERN floatArray *floatArray_frompointer(float *t){
3418     return static_cast< floatArray * >(t);
3419   }
3420 
new_doubleP(size_t nelements)3421   static double *new_doubleP(size_t nelements) {
3422     return (new double[nelements]());
3423   }
3424 
delete_doubleP(double * ary)3425   static void delete_doubleP(double *ary) {
3426     delete[] ary;
3427   }
3428 
doubleP_getitem(double * ary,size_t index)3429   static double doubleP_getitem(double *ary, size_t index) {
3430     return ary[index];
3431   }
doubleP_setitem(double * ary,size_t index,double value)3432   static void doubleP_setitem(double *ary, size_t index, double value) {
3433     ary[index] = value;
3434   }
3435 
3436 
3437 typedef double doubleArray;
3438 
new_doubleArray(size_t nelements)3439 SWIGINTERN doubleArray *new_doubleArray(size_t nelements){
3440     return (new double[nelements]());
3441   }
delete_doubleArray(doubleArray * self)3442 SWIGINTERN void delete_doubleArray(doubleArray *self){
3443     delete[] self;
3444   }
doubleArray___getitem__(doubleArray * self,size_t index)3445 SWIGINTERN double doubleArray___getitem__(doubleArray *self,size_t index){
3446     return self[index];
3447   }
doubleArray___setitem__(doubleArray * self,size_t index,double value)3448 SWIGINTERN void doubleArray___setitem__(doubleArray *self,size_t index,double value){
3449     self[index] = value;
3450   }
doubleArray_cast(doubleArray * self)3451 SWIGINTERN double *doubleArray_cast(doubleArray *self){
3452     return self;
3453   }
doubleArray_frompointer(double * t)3454 SWIGINTERN doubleArray *doubleArray_frompointer(double *t){
3455     return static_cast< doubleArray * >(t);
3456   }
3457 
new_ushortP(size_t nelements)3458   static unsigned short *new_ushortP(size_t nelements) {
3459     return (new unsigned short[nelements]());
3460   }
3461 
delete_ushortP(unsigned short * ary)3462   static void delete_ushortP(unsigned short *ary) {
3463     delete[] ary;
3464   }
3465 
ushortP_getitem(unsigned short * ary,size_t index)3466   static unsigned short ushortP_getitem(unsigned short *ary, size_t index) {
3467     return ary[index];
3468   }
ushortP_setitem(unsigned short * ary,size_t index,unsigned short value)3469   static void ushortP_setitem(unsigned short *ary, size_t index, unsigned short value) {
3470     ary[index] = value;
3471   }
3472 
3473 
3474   #define SWIG_From_long   PyInt_FromLong
3475 
3476 
3477 SWIGINTERNINLINE PyObject*
SWIG_From_unsigned_SS_long(unsigned long value)3478 SWIG_From_unsigned_SS_long  (unsigned long value)
3479 {
3480   return (value > LONG_MAX) ?
3481     PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
3482 }
3483 
3484 
3485 SWIGINTERNINLINE PyObject *
SWIG_From_unsigned_SS_short(unsigned short value)3486 SWIG_From_unsigned_SS_short  (unsigned short value)
3487 {
3488   return SWIG_From_unsigned_SS_long  (value);
3489 }
3490 
3491 
3492 SWIGINTERN int
SWIG_AsVal_unsigned_SS_short(PyObject * obj,unsigned short * val)3493 SWIG_AsVal_unsigned_SS_short (PyObject * obj, unsigned short *val)
3494 {
3495   unsigned long v;
3496   int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3497   if (SWIG_IsOK(res)) {
3498     if ((v > USHRT_MAX)) {
3499       return SWIG_OverflowError;
3500     } else {
3501       if (val) *val = static_cast< unsigned short >(v);
3502     }
3503   }
3504   return res;
3505 }
3506 
3507 
new_shortP(size_t nelements)3508   static short *new_shortP(size_t nelements) {
3509     return (new short[nelements]());
3510   }
3511 
delete_shortP(short * ary)3512   static void delete_shortP(short *ary) {
3513     delete[] ary;
3514   }
3515 
shortP_getitem(short * ary,size_t index)3516   static short shortP_getitem(short *ary, size_t index) {
3517     return ary[index];
3518   }
shortP_setitem(short * ary,size_t index,short value)3519   static void shortP_setitem(short *ary, size_t index, short value) {
3520     ary[index] = value;
3521   }
3522 
3523 
3524 SWIGINTERNINLINE PyObject *
SWIG_From_short(short value)3525 SWIG_From_short  (short value)
3526 {
3527   return SWIG_From_long  (value);
3528 }
3529 
3530 
3531 SWIGINTERN int
SWIG_AsVal_short(PyObject * obj,short * val)3532 SWIG_AsVal_short (PyObject * obj, short *val)
3533 {
3534   long v;
3535   int res = SWIG_AsVal_long (obj, &v);
3536   if (SWIG_IsOK(res)) {
3537     if ((v < SHRT_MIN || v > SHRT_MAX)) {
3538       return SWIG_OverflowError;
3539     } else {
3540       if (val) *val = static_cast< short >(v);
3541     }
3542   }
3543   return res;
3544 }
3545 
3546 
3547 typedef struct SWIGCDATA {
3548     char *data;
3549     size_t   len;
3550 } SWIGCDATA;
3551 
3552 
3553 
3554 extern "C"  {
3555 
3556 
cdata_void(void * ptr,size_t nelements)3557 static SWIGCDATA cdata_void(void *ptr, size_t nelements)
3558 
3559 
3560 
3561 {
3562   SWIGCDATA d;
3563   d.data = (char *) ptr;
3564 
3565 
3566 
3567   d.len  = nelements;
3568 
3569    return d;
3570 }
3571 
3572 }
3573 
3574 
3575 
3576 SWIGINTERN swig_type_info*
SWIG_pchar_descriptor(void)3577 SWIG_pchar_descriptor(void)
3578 {
3579   static int init = 0;
3580   static swig_type_info* info = 0;
3581   if (!init) {
3582     info = SWIG_TypeQuery("_p_char");
3583     init = 1;
3584   }
3585   return info;
3586 }
3587 
3588 
3589 SWIGINTERNINLINE PyObject *
SWIG_FromCharPtrAndSize(const char * carray,size_t size)3590 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
3591 {
3592   if (carray) {
3593     if (size > INT_MAX) {
3594       swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3595       return pchar_descriptor ?
3596 	SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void();
3597     } else {
3598 #if PY_VERSION_HEX >= 0x03000000
3599 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3600       return PyBytes_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3601 #else
3602       return PyUnicode_DecodeUTF8(carray, static_cast< Py_ssize_t >(size), "surrogateescape");
3603 #endif
3604 #else
3605       return PyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3606 #endif
3607     }
3608   } else {
3609     return SWIG_Py_Void();
3610   }
3611 }
3612 
3613 
3614 SWIGINTERN int
SWIG_AsCharPtrAndSize(PyObject * obj,char ** cptr,size_t * psize,int * alloc)3615 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
3616 {
3617 #if PY_VERSION_HEX>=0x03000000
3618 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3619   if (PyBytes_Check(obj))
3620 #else
3621   if (PyUnicode_Check(obj))
3622 #endif
3623 #else
3624   if (PyString_Check(obj))
3625 #endif
3626   {
3627     char *cstr; Py_ssize_t len;
3628     int ret = SWIG_OK;
3629 #if PY_VERSION_HEX>=0x03000000
3630 #if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3631     if (!alloc && cptr) {
3632         /* We can't allow converting without allocation, since the internal
3633            representation of string in Python 3 is UCS-2/UCS-4 but we require
3634            a UTF-8 representation.
3635            TODO(bhy) More detailed explanation */
3636         return SWIG_RuntimeError;
3637     }
3638     obj = PyUnicode_AsUTF8String(obj);
3639     if (!obj)
3640       return SWIG_TypeError;
3641     if (alloc)
3642       *alloc = SWIG_NEWOBJ;
3643 #endif
3644     if (PyBytes_AsStringAndSize(obj, &cstr, &len) == -1)
3645       return SWIG_TypeError;
3646 #else
3647     if (PyString_AsStringAndSize(obj, &cstr, &len) == -1)
3648       return SWIG_TypeError;
3649 #endif
3650     if (cptr) {
3651       if (alloc) {
3652 	if (*alloc == SWIG_NEWOBJ) {
3653 	  *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1)));
3654 	  *alloc = SWIG_NEWOBJ;
3655 	} else {
3656 	  *cptr = cstr;
3657 	  *alloc = SWIG_OLDOBJ;
3658 	}
3659       } else {
3660 #if PY_VERSION_HEX>=0x03000000
3661 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3662 	*cptr = PyBytes_AsString(obj);
3663 #else
3664 	assert(0); /* Should never reach here with Unicode strings in Python 3 */
3665 #endif
3666 #else
3667 	*cptr = SWIG_Python_str_AsChar(obj);
3668         if (!*cptr)
3669           ret = SWIG_TypeError;
3670 #endif
3671       }
3672     }
3673     if (psize) *psize = len + 1;
3674 #if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3675     Py_XDECREF(obj);
3676 #endif
3677     return ret;
3678   } else {
3679 #if defined(SWIG_PYTHON_2_UNICODE)
3680 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3681 #error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once"
3682 #endif
3683 #if PY_VERSION_HEX<0x03000000
3684     if (PyUnicode_Check(obj)) {
3685       char *cstr; Py_ssize_t len;
3686       if (!alloc && cptr) {
3687         return SWIG_RuntimeError;
3688       }
3689       obj = PyUnicode_AsUTF8String(obj);
3690       if (!obj)
3691         return SWIG_TypeError;
3692       if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
3693         if (cptr) {
3694           if (alloc) *alloc = SWIG_NEWOBJ;
3695           *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1)));
3696         }
3697         if (psize) *psize = len + 1;
3698 
3699         Py_XDECREF(obj);
3700         return SWIG_OK;
3701       } else {
3702         Py_XDECREF(obj);
3703       }
3704     }
3705 #endif
3706 #endif
3707 
3708     swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3709     if (pchar_descriptor) {
3710       void* vptr = 0;
3711       if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
3712 	if (cptr) *cptr = (char *) vptr;
3713 	if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
3714 	if (alloc) *alloc = SWIG_OLDOBJ;
3715 	return SWIG_OK;
3716       }
3717     }
3718   }
3719   return SWIG_TypeError;
3720 }
3721 
3722 
3723 /** @file version.i.in
3724  * @brief Set RNA.__version__ to the bindings version
3725  */
3726 
3727 
3728 #include <typeinfo>
3729 #include <stdexcept>
3730 
3731 
3732 #if defined(__GNUC__)
3733 #  if __GNUC__ == 2 && __GNUC_MINOR <= 96
3734 #     define SWIG_STD_NOMODERN_STL
3735 #  endif
3736 #endif
3737 
3738 
3739 #include <string>
3740 
3741 
3742 #include <stddef.h>
3743 
3744 
3745 #include <utility>
3746 
3747 
3748 #include <iostream>
3749 
3750 #if PY_VERSION_HEX >= 0x03020000
3751 # define SWIGPY_SLICE_ARG(obj) ((PyObject*) (obj))
3752 #else
3753 # define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj))
3754 #endif
3755 
3756 
3757 namespace swig {
3758   struct stop_iteration {
3759   };
3760 
3761   struct SwigPyIterator {
3762   private:
3763     SwigPtr_PyObject _seq;
3764 
3765   protected:
SwigPyIteratorswig::SwigPyIterator3766     SwigPyIterator(PyObject *seq) : _seq(seq)
3767     {
3768     }
3769 
3770   public:
~SwigPyIteratorswig::SwigPyIterator3771     virtual ~SwigPyIterator() {}
3772 
3773     // Access iterator method, required by Python
3774     virtual PyObject *value() const = 0;
3775 
3776     // Forward iterator method, required by Python
3777     virtual SwigPyIterator *incr(size_t n = 1) = 0;
3778 
3779     // Backward iterator method, very common in C++, but not required in Python
decrswig::SwigPyIterator3780     virtual SwigPyIterator *decr(size_t /*n*/ = 1)
3781     {
3782       throw stop_iteration();
3783     }
3784 
3785     // Random access iterator methods, but not required in Python
distanceswig::SwigPyIterator3786     virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const
3787     {
3788       throw std::invalid_argument("operation not supported");
3789     }
3790 
equalswig::SwigPyIterator3791     virtual bool equal (const SwigPyIterator &/*x*/) const
3792     {
3793       throw std::invalid_argument("operation not supported");
3794     }
3795 
3796     // C++ common/needed methods
3797     virtual SwigPyIterator *copy() const = 0;
3798 
nextswig::SwigPyIterator3799     PyObject *next()
3800     {
3801       SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3802       PyObject *obj = value();
3803       incr();
3804       SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3805       return obj;
3806     }
3807 
3808     /* Make an alias for Python 3.x */
__next__swig::SwigPyIterator3809     PyObject *__next__()
3810     {
3811       return next();
3812     }
3813 
previousswig::SwigPyIterator3814     PyObject *previous()
3815     {
3816       SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3817       decr();
3818       PyObject *obj = value();
3819       SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3820       return obj;
3821     }
3822 
advanceswig::SwigPyIterator3823     SwigPyIterator *advance(ptrdiff_t n)
3824     {
3825       return  (n > 0) ?  incr(n) : decr(-n);
3826     }
3827 
operator ==swig::SwigPyIterator3828     bool operator == (const SwigPyIterator& x)  const
3829     {
3830       return equal(x);
3831     }
3832 
operator !=swig::SwigPyIterator3833     bool operator != (const SwigPyIterator& x) const
3834     {
3835       return ! operator==(x);
3836     }
3837 
operator +=swig::SwigPyIterator3838     SwigPyIterator& operator += (ptrdiff_t n)
3839     {
3840       return *advance(n);
3841     }
3842 
operator -=swig::SwigPyIterator3843     SwigPyIterator& operator -= (ptrdiff_t n)
3844     {
3845       return *advance(-n);
3846     }
3847 
operator +swig::SwigPyIterator3848     SwigPyIterator* operator + (ptrdiff_t n) const
3849     {
3850       return copy()->advance(n);
3851     }
3852 
operator -swig::SwigPyIterator3853     SwigPyIterator* operator - (ptrdiff_t n) const
3854     {
3855       return copy()->advance(-n);
3856     }
3857 
operator -swig::SwigPyIterator3858     ptrdiff_t operator - (const SwigPyIterator& x) const
3859     {
3860       return x.distance(*this);
3861     }
3862 
descriptorswig::SwigPyIterator3863     static swig_type_info* descriptor() {
3864       static int init = 0;
3865       static swig_type_info* desc = 0;
3866       if (!init) {
3867 	desc = SWIG_TypeQuery("swig::SwigPyIterator *");
3868 	init = 1;
3869       }
3870       return desc;
3871     }
3872   };
3873 
3874 #if defined(SWIGPYTHON_BUILTIN)
make_output_iterator_builtin(PyObject * pyself)3875   inline PyObject* make_output_iterator_builtin (PyObject *pyself)
3876   {
3877     Py_INCREF(pyself);
3878     return pyself;
3879   }
3880 #endif
3881 }
3882 
3883 
3884 #ifdef SWIG_LONG_LONG_AVAILABLE
3885 SWIGINTERNINLINE PyObject*
SWIG_From_long_SS_long(long long value)3886 SWIG_From_long_SS_long  (long long value)
3887 {
3888   return ((value < LONG_MIN) || (value > LONG_MAX)) ?
3889     PyLong_FromLongLong(value) : PyInt_FromLong(static_cast< long >(value));
3890 }
3891 #endif
3892 
3893 
3894 SWIGINTERNINLINE PyObject *
SWIG_From_ptrdiff_t(ptrdiff_t value)3895 SWIG_From_ptrdiff_t  (ptrdiff_t value)
3896 {
3897 #ifdef SWIG_LONG_LONG_AVAILABLE
3898   if (sizeof(ptrdiff_t) <= sizeof(long)) {
3899 #endif
3900     return SWIG_From_long  (static_cast< long >(value));
3901 #ifdef SWIG_LONG_LONG_AVAILABLE
3902   } else {
3903     /* assume sizeof(ptrdiff_t) <= sizeof(long long) */
3904     return SWIG_From_long_SS_long  (static_cast< long long >(value));
3905   }
3906 #endif
3907 }
3908 
3909 
3910 SWIGINTERNINLINE PyObject*
SWIG_From_bool(bool value)3911   SWIG_From_bool  (bool value)
3912 {
3913   return PyBool_FromLong(value ? 1 : 0);
3914 }
3915 
3916 
3917 #ifdef SWIG_LONG_LONG_AVAILABLE
3918 SWIGINTERN int
SWIG_AsVal_long_SS_long(PyObject * obj,long long * val)3919 SWIG_AsVal_long_SS_long (PyObject *obj, long long *val)
3920 {
3921   int res = SWIG_TypeError;
3922   if (PyLong_Check(obj)) {
3923     long long v = PyLong_AsLongLong(obj);
3924     if (!PyErr_Occurred()) {
3925       if (val) *val = v;
3926       return SWIG_OK;
3927     } else {
3928       PyErr_Clear();
3929       res = SWIG_OverflowError;
3930     }
3931   } else {
3932     long v;
3933     res = SWIG_AsVal_long (obj,&v);
3934     if (SWIG_IsOK(res)) {
3935       if (val) *val = v;
3936       return res;
3937     }
3938   }
3939 #ifdef SWIG_PYTHON_CAST_MODE
3940   {
3941     const double mant_max = 1LL << DBL_MANT_DIG;
3942     const double mant_min = -mant_max;
3943     double d;
3944     res = SWIG_AsVal_double (obj,&d);
3945     if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, mant_min, mant_max))
3946       return SWIG_OverflowError;
3947     if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, mant_min, mant_max)) {
3948       if (val) *val = (long long)(d);
3949       return SWIG_AddCast(res);
3950     }
3951     res = SWIG_TypeError;
3952   }
3953 #endif
3954   return res;
3955 }
3956 #endif
3957 
3958 
3959 SWIGINTERNINLINE int
SWIG_AsVal_ptrdiff_t(PyObject * obj,ptrdiff_t * val)3960 SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val)
3961 {
3962   int res = SWIG_TypeError;
3963 #ifdef SWIG_LONG_LONG_AVAILABLE
3964   if (sizeof(ptrdiff_t) <= sizeof(long)) {
3965 #endif
3966     long v;
3967     res = SWIG_AsVal_long (obj, val ? &v : 0);
3968     if (SWIG_IsOK(res) && val) *val = static_cast< ptrdiff_t >(v);
3969 #ifdef SWIG_LONG_LONG_AVAILABLE
3970   } else if (sizeof(ptrdiff_t) <= sizeof(long long)) {
3971     long long v;
3972     res = SWIG_AsVal_long_SS_long (obj, val ? &v : 0);
3973     if (SWIG_IsOK(res) && val) *val = static_cast< ptrdiff_t >(v);
3974   }
3975 #endif
3976   return res;
3977 }
3978 
3979 
3980 #include <algorithm>
3981 
3982 
3983 #include <vector>
3984 
3985 
3986 namespace swig {
3987   template <class Type>
3988   struct noconst_traits {
3989     typedef Type noconst_type;
3990   };
3991 
3992   template <class Type>
3993   struct noconst_traits<const Type> {
3994     typedef Type noconst_type;
3995   };
3996 
3997   /*
3998     type categories
3999   */
4000   struct pointer_category { };
4001   struct value_category { };
4002 
4003   /*
4004     General traits that provides type_name and type_info
4005   */
4006   template <class Type> struct traits { };
4007 
4008   template <class Type>
type_name()4009   inline const char* type_name() {
4010     return traits<typename noconst_traits<Type >::noconst_type >::type_name();
4011   }
4012 
4013   template <class Type> struct traits_info {
type_queryswig::traits_info4014     static swig_type_info *type_query(std::string name) {
4015       name += " *";
4016       return SWIG_TypeQuery(name.c_str());
4017     }
type_infoswig::traits_info4018     static swig_type_info *type_info() {
4019       static swig_type_info *info = type_query(type_name<Type>());
4020       return info;
4021     }
4022   };
4023 
4024   /*
4025     Partial specialization for pointers (traits_info)
4026   */
4027   template <class Type> struct traits_info<Type *> {
type_queryswig::traits_info4028     static swig_type_info *type_query(std::string name) {
4029       name += " *";
4030       return SWIG_TypeQuery(name.c_str());
4031     }
type_infoswig::traits_info4032     static swig_type_info *type_info() {
4033       static swig_type_info *info = type_query(type_name<Type>());
4034       return info;
4035     }
4036   };
4037 
4038   template <class Type>
type_info()4039   inline swig_type_info *type_info() {
4040     return traits_info<Type>::type_info();
4041   }
4042 
4043   /*
4044     Partial specialization for pointers (traits)
4045   */
4046   template <class Type> struct traits <Type *> {
4047     typedef pointer_category category;
make_ptr_nameswig::traits4048     static std::string make_ptr_name(const char* name) {
4049       std::string ptrname = name;
4050       ptrname += " *";
4051       return ptrname;
4052     }
type_nameswig::traits4053     static const char* type_name() {
4054       static std::string name = make_ptr_name(swig::type_name<Type>());
4055       return name.c_str();
4056     }
4057   };
4058 
4059   template <class Type, class Category>
4060   struct traits_as { };
4061 
4062   template <class Type, class Category>
4063   struct traits_check { };
4064 
4065 }
4066 
4067 
4068 namespace swig {
4069   /*
4070     Traits that provides the from method
4071   */
4072   template <class Type> struct traits_from_ptr {
fromswig::traits_from_ptr4073     static PyObject *from(Type *val, int owner = 0) {
4074       return SWIG_InternalNewPointerObj(val, type_info<Type>(), owner);
4075     }
4076   };
4077 
4078   template <class Type> struct traits_from {
fromswig::traits_from4079     static PyObject *from(const Type& val) {
4080       return traits_from_ptr<Type>::from(new Type(val), 1);
4081     }
4082   };
4083 
4084   template <class Type> struct traits_from<Type *> {
fromswig::traits_from4085     static PyObject *from(Type* val) {
4086       return traits_from_ptr<Type>::from(val, 0);
4087     }
4088   };
4089 
4090   template <class Type> struct traits_from<const Type *> {
fromswig::traits_from4091     static PyObject *from(const Type* val) {
4092       return traits_from_ptr<Type>::from(const_cast<Type*>(val), 0);
4093     }
4094   };
4095 
4096 
4097   template <class Type>
from(const Type & val)4098   inline PyObject *from(const Type& val) {
4099     return traits_from<Type>::from(val);
4100   }
4101 
4102   template <class Type>
from_ptr(Type * val,int owner)4103   inline PyObject *from_ptr(Type* val, int owner) {
4104     return traits_from_ptr<Type>::from(val, owner);
4105   }
4106 
4107   /*
4108     Traits that provides the asval/as/check method
4109   */
4110   template <class Type>
4111   struct traits_asptr {
asptrswig::traits_asptr4112     static int asptr(PyObject *obj, Type **val) {
4113       int res = SWIG_ERROR;
4114       swig_type_info *descriptor = type_info<Type>();
4115       if (val) {
4116         Type *p = 0;
4117         int newmem = 0;
4118         res = descriptor ? SWIG_ConvertPtrAndOwn(obj, (void **)&p, descriptor, 0, &newmem) : SWIG_ERROR;
4119         if (SWIG_IsOK(res)) {
4120           if (newmem & SWIG_CAST_NEW_MEMORY) {
4121             res |= SWIG_NEWOBJMASK;
4122           }
4123           *val = p;
4124         }
4125       } else {
4126         res = descriptor ? SWIG_ConvertPtr(obj, 0, descriptor, 0) : SWIG_ERROR;
4127       }
4128       return res;
4129     }
4130   };
4131 
4132   template <class Type>
asptr(PyObject * obj,Type ** vptr)4133   inline int asptr(PyObject *obj, Type **vptr) {
4134     return traits_asptr<Type>::asptr(obj, vptr);
4135   }
4136 
4137   template <class Type>
4138   struct traits_asval {
asvalswig::traits_asval4139     static int asval(PyObject *obj, Type *val) {
4140       if (val) {
4141 	Type *p = 0;
4142 	int res = traits_asptr<Type>::asptr(obj, &p);
4143 	if (!SWIG_IsOK(res)) return res;
4144 	if (p) {
4145 	  typedef typename noconst_traits<Type>::noconst_type noconst_type;
4146 	  *(const_cast<noconst_type*>(val)) = *p;
4147 	  if (SWIG_IsNewObj(res)){
4148 	    delete p;
4149 	    res = SWIG_DelNewMask(res);
4150 	  }
4151 	  return res;
4152 	} else {
4153 	  return SWIG_ERROR;
4154 	}
4155       } else {
4156 	return traits_asptr<Type>::asptr(obj, (Type **)(0));
4157       }
4158     }
4159   };
4160 
4161   template <class Type> struct traits_asval<Type*> {
asvalswig::traits_asval4162     static int asval(PyObject *obj, Type **val) {
4163       if (val) {
4164         typedef typename noconst_traits<Type>::noconst_type noconst_type;
4165         noconst_type *p = 0;
4166         int res = traits_asptr<noconst_type>::asptr(obj,  &p);
4167         if (SWIG_IsOK(res)) {
4168           *(const_cast<noconst_type**>(val)) = p;
4169 	}
4170 	return res;
4171       } else {
4172 	return traits_asptr<Type>::asptr(obj, (Type **)(0));
4173       }
4174     }
4175   };
4176 
4177   template <class Type>
asval(PyObject * obj,Type * val)4178   inline int asval(PyObject *obj, Type *val) {
4179     return traits_asval<Type>::asval(obj, val);
4180   }
4181 
4182   template <class Type>
4183   struct traits_as<Type, value_category> {
asswig::traits_as4184     static Type as(PyObject *obj) {
4185       Type v;
4186       int res = asval(obj, &v);
4187       if (!obj || !SWIG_IsOK(res)) {
4188 	if (!PyErr_Occurred()) {
4189 	  ::SWIG_Error(SWIG_TypeError,  swig::type_name<Type>());
4190 	}
4191 	throw std::invalid_argument("bad type");
4192       }
4193       return v;
4194     }
4195   };
4196 
4197   template <class Type>
4198   struct traits_as<Type, pointer_category> {
asswig::traits_as4199     static Type as(PyObject *obj) {
4200       Type *v = 0;
4201       int res = (obj ? traits_asptr<Type>::asptr(obj, &v) : SWIG_ERROR);
4202       if (SWIG_IsOK(res) && v) {
4203 	if (SWIG_IsNewObj(res)) {
4204 	  Type r(*v);
4205 	  delete v;
4206 	  return r;
4207 	} else {
4208 	  return *v;
4209 	}
4210       } else {
4211 	if (!PyErr_Occurred()) {
4212 	  SWIG_Error(SWIG_TypeError,  swig::type_name<Type>());
4213 	}
4214 	throw std::invalid_argument("bad type");
4215       }
4216     }
4217   };
4218 
4219   template <class Type>
4220   struct traits_as<Type*, pointer_category> {
asswig::traits_as4221     static Type* as(PyObject *obj) {
4222       Type *v = 0;
4223       int res = (obj ? traits_asptr<Type>::asptr(obj, &v) : SWIG_ERROR);
4224       if (SWIG_IsOK(res)) {
4225 	return v;
4226       } else {
4227 	if (!PyErr_Occurred()) {
4228 	  SWIG_Error(SWIG_TypeError,  swig::type_name<Type>());
4229 	}
4230 	throw std::invalid_argument("bad type");
4231       }
4232     }
4233   };
4234 
4235   template <class Type>
as(PyObject * obj)4236   inline Type as(PyObject *obj) {
4237     return traits_as<Type, typename traits<Type>::category>::as(obj);
4238   }
4239 
4240   template <class Type>
4241   struct traits_check<Type, value_category> {
checkswig::traits_check4242     static bool check(PyObject *obj) {
4243       int res = obj ? asval(obj, (Type *)(0)) : SWIG_ERROR;
4244       return SWIG_IsOK(res) ? true : false;
4245     }
4246   };
4247 
4248   template <class Type>
4249   struct traits_check<Type, pointer_category> {
checkswig::traits_check4250     static bool check(PyObject *obj) {
4251       int res = obj ? asptr(obj, (Type **)(0)) : SWIG_ERROR;
4252       return SWIG_IsOK(res) ? true : false;
4253     }
4254   };
4255 
4256   template <class Type>
check(PyObject * obj)4257   inline bool check(PyObject *obj) {
4258     return traits_check<Type, typename traits<Type>::category>::check(obj);
4259   }
4260 }
4261 
4262 
4263 namespace swig {
4264   template <> struct traits< double > {
4265     typedef value_category category;
type_nameswig::traits4266     static const char* type_name() { return"double"; }
4267   };
4268   template <>  struct traits_asval< double > {
4269     typedef double value_type;
asvalswig::traits_asval4270     static int asval(PyObject *obj, value_type *val) {
4271       return SWIG_AsVal_double (obj, val);
4272     }
4273   };
4274   template <>  struct traits_from< double > {
4275     typedef double value_type;
fromswig::traits_from4276     static PyObject *from(const value_type& val) {
4277       return SWIG_From_double  (val);
4278     }
4279   };
4280 }
4281 
4282 
4283   namespace swig {
4284 
4285 
4286 
4287 
4288 
4289 
4290 
4291 
4292 
4293 
4294 
4295 
4296 
4297 
4298 
4299 
4300 
4301 
4302 
4303 
4304 
4305 
4306 
4307 
4308 
4309 
4310 
4311 
4312 
4313 
4314 
4315 
4316 
4317 
4318 
4319 
4320 
4321 
4322 
4323 
4324 
4325 
4326 
4327 
4328 
4329 
4330 
4331 
4332 
4333 
4334     template <class T, class U >
4335     struct traits_asptr<std::pair<T,U> >  {
4336       typedef std::pair<T,U> value_type;
4337 
get_pairswig::traits_asptr4338       static int get_pair(PyObject* first, PyObject* second,
4339 			  std::pair<T,U> **val)
4340       {
4341 	if (val) {
4342 	  value_type *vp = (new std::pair<T,U>());
4343 	  T *pfirst = &(vp->first);
4344 	  int res1 = swig::asval((PyObject*)first, pfirst);
4345 	  if (!SWIG_IsOK(res1)) {
4346 	    delete vp;
4347 	    return res1;
4348 	  }
4349 	  U *psecond = &(vp->second);
4350 	  int res2 = swig::asval((PyObject*)second, psecond);
4351 	  if (!SWIG_IsOK(res2)) {
4352 	    delete vp;
4353 	    return res2;
4354 	  }
4355 	  *val = vp;
4356 	  return SWIG_AddNewMask(res1 > res2 ? res1 : res2);
4357 	} else {
4358 	  T *pfirst = 0;
4359 	  int res1 = swig::asval((PyObject*)first, pfirst);
4360 	  if (!SWIG_IsOK(res1)) return res1;
4361 	  U *psecond = 0;
4362 	  int res2 = swig::asval((PyObject*)second, psecond);
4363 	  if (!SWIG_IsOK(res2)) return res2;
4364 	  return res1 > res2 ? res1 : res2;
4365 	}
4366       }
4367 
asptrswig::traits_asptr4368       static int asptr(PyObject *obj, std::pair<T,U> **val) {
4369 	int res = SWIG_ERROR;
4370 	if (PyTuple_Check(obj)) {
4371 	  if (PyTuple_GET_SIZE(obj) == 2) {
4372 	    res = get_pair(PyTuple_GET_ITEM(obj,0),PyTuple_GET_ITEM(obj,1), val);
4373 	  }
4374 	} else if (PySequence_Check(obj)) {
4375 	  if (PySequence_Size(obj) == 2) {
4376 	    swig::SwigVar_PyObject first = PySequence_GetItem(obj,0);
4377 	    swig::SwigVar_PyObject second = PySequence_GetItem(obj,1);
4378 	    res = get_pair(first, second, val);
4379 	  }
4380 	} else {
4381 	  value_type *p = 0;
4382 	  swig_type_info *descriptor = swig::type_info<value_type>();
4383 	  res = descriptor ? SWIG_ConvertPtr(obj, (void **)&p, descriptor, 0) : SWIG_ERROR;
4384 	  if (SWIG_IsOK(res) && val)  *val = p;
4385 	}
4386 	return res;
4387       }
4388     };
4389 
4390 
4391     template <class T, class U >
4392     struct traits_from<std::pair<T,U> >   {
fromswig::traits_from4393       static PyObject *from(const std::pair<T,U>& val) {
4394 	PyObject* obj = PyTuple_New(2);
4395 	PyTuple_SetItem(obj,0,swig::from(val.first));
4396 	PyTuple_SetItem(obj,1,swig::from(val.second));
4397 	return obj;
4398       }
4399     };
4400   }
4401 
4402 
4403 
4404 
4405 
4406 
4407 
4408 
4409 
4410 
4411 
4412 
4413 
4414 
4415 
4416 
4417 
4418 
4419 
4420 
4421 
4422 
4423 
4424 
4425 
4426 
4427 
4428 
4429 
4430 
4431 
4432 
4433 
4434 
4435 
4436 
4437 
4438       namespace swig {
4439 	template <>  struct traits<std::pair< double, double > > {
4440 	  typedef pointer_category category;
type_nameswig::traits4441 	  static const char* type_name() {
4442 	    return "std::pair<" "double" "," "double" " >";
4443 	  }
4444 	};
4445       }
4446 
4447 
4448 #include <functional>
4449 
4450 namespace std {
4451   template <>
4452   struct less <PyObject *>
4453   {
4454     bool
operator ()std::less4455     operator()(PyObject * v, PyObject *w) const
4456     {
4457       bool res;
4458       SWIG_PYTHON_THREAD_BEGIN_BLOCK;
4459       res = PyObject_RichCompareBool(v, w, Py_LT) ? true : false;
4460       /* This may fall into a case of inconsistent
4461                eg. ObjA > ObjX > ObjB
4462                but ObjA < ObjB
4463       */
4464       if( PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_TypeError) )
4465       {
4466         /* Objects can't be compared, this mostly occurred in Python 3.0 */
4467         /* Compare their ptr directly for a workaround */
4468         res = (v < w);
4469         PyErr_Clear();
4470       }
4471       SWIG_PYTHON_THREAD_END_BLOCK;
4472       return res;
4473     }
4474   };
4475 
4476   template <>
4477   struct less <swig::SwigPtr_PyObject>
4478   {
4479     bool
operator ()std::less4480     operator()(const swig::SwigPtr_PyObject& v, const swig::SwigPtr_PyObject& w) const
4481     {
4482       return std::less<PyObject *>()(v, w);
4483     }
4484   };
4485 
4486   template <>
4487   struct less <swig::SwigVar_PyObject>
4488   {
4489     bool
operator ()std::less4490     operator()(const swig::SwigVar_PyObject& v, const swig::SwigVar_PyObject& w) const
4491     {
4492       return std::less<PyObject *>()(v, w);
4493     }
4494   };
4495 
4496 }
4497 
4498 namespace swig {
4499   template <> struct traits<PyObject *> {
4500     typedef value_category category;
type_nameswig::traits4501     static const char* type_name() { return "PyObject *"; }
4502   };
4503 
4504   template <>  struct traits_asval<PyObject * > {
4505     typedef PyObject * value_type;
asvalswig::traits_asval4506     static int asval(PyObject *obj, value_type *val) {
4507       if (val) *val = obj;
4508       return SWIG_OK;
4509     }
4510   };
4511 
4512   template <>
4513   struct traits_check<PyObject *, value_category> {
checkswig::traits_check4514     static bool check(PyObject *) {
4515       return true;
4516     }
4517   };
4518 
4519   template <>  struct traits_from<PyObject *> {
4520     typedef PyObject * value_type;
fromswig::traits_from4521     static PyObject *from(const value_type& val) {
4522       Py_XINCREF(val);
4523       return val;
4524     }
4525   };
4526 
4527 }
4528 
4529 namespace swig {
4530   template <class Difference>
4531   inline size_t
check_index(Difference i,size_t size,bool insert=false)4532   check_index(Difference i, size_t size, bool insert = false) {
4533     if ( i < 0 ) {
4534       if ((size_t) (-i) <= size)
4535 	return (size_t) (i + size);
4536     } else if ( (size_t) i < size ) {
4537       return (size_t) i;
4538     } else if (insert && ((size_t) i == size)) {
4539       return size;
4540     }
4541     throw std::out_of_range("index out of range");
4542   }
4543 
4544   template <class Difference>
4545   void
slice_adjust(Difference i,Difference j,Py_ssize_t step,size_t size,Difference & ii,Difference & jj,bool insert=false)4546   slice_adjust(Difference i, Difference j, Py_ssize_t step, size_t size, Difference &ii, Difference &jj, bool insert = false) {
4547     if (step == 0) {
4548       throw std::invalid_argument("slice step cannot be zero");
4549     } else if (step > 0) {
4550       // Required range: 0 <= i < size, 0 <= j < size, i <= j
4551       if (i < 0) {
4552         ii = 0;
4553       } else if (i < (Difference)size) {
4554         ii = i;
4555       } else if (insert && (i >= (Difference)size)) {
4556         ii = (Difference)size;
4557       }
4558       if (j < 0) {
4559         jj = 0;
4560       } else {
4561         jj = (j < (Difference)size) ? j : (Difference)size;
4562       }
4563       if (jj < ii)
4564         jj = ii;
4565     } else {
4566       // Required range: -1 <= i < size-1, -1 <= j < size-1, i >= j
4567       if (i < -1) {
4568         ii = -1;
4569       } else if (i < (Difference) size) {
4570         ii = i;
4571       } else if (i >= (Difference)(size-1)) {
4572         ii = (Difference)(size-1);
4573       }
4574       if (j < -1) {
4575         jj = -1;
4576       } else {
4577         jj = (j < (Difference)size ) ? j : (Difference)(size-1);
4578       }
4579       if (ii < jj)
4580         ii = jj;
4581     }
4582   }
4583 
4584   template <class Sequence, class Difference>
4585   inline typename Sequence::iterator
getpos(Sequence * self,Difference i)4586   getpos(Sequence* self, Difference i)  {
4587     typename Sequence::iterator pos = self->begin();
4588     std::advance(pos, check_index(i,self->size()));
4589     return pos;
4590   }
4591 
4592   template <class Sequence, class Difference>
4593   inline typename Sequence::const_iterator
cgetpos(const Sequence * self,Difference i)4594   cgetpos(const Sequence* self, Difference i)  {
4595     typename Sequence::const_iterator pos = self->begin();
4596     std::advance(pos, check_index(i,self->size()));
4597     return pos;
4598   }
4599 
4600   template <class Sequence>
4601   inline void
erase(Sequence * seq,const typename Sequence::iterator & position)4602   erase(Sequence* seq, const typename Sequence::iterator& position) {
4603     seq->erase(position);
4604   }
4605 
4606   template <class Sequence>
4607   struct traits_reserve {
reserveswig::traits_reserve4608     static void reserve(Sequence & /*seq*/, typename Sequence::size_type /*n*/) {
4609       // This should be specialized for types that support reserve
4610     }
4611   };
4612 
4613   template <class Sequence, class Difference>
4614   inline Sequence*
getslice(const Sequence * self,Difference i,Difference j,Py_ssize_t step)4615   getslice(const Sequence* self, Difference i, Difference j, Py_ssize_t step) {
4616     typename Sequence::size_type size = self->size();
4617     Difference ii = 0;
4618     Difference jj = 0;
4619     swig::slice_adjust(i, j, step, size, ii, jj);
4620 
4621     if (step > 0) {
4622       typename Sequence::const_iterator sb = self->begin();
4623       typename Sequence::const_iterator se = self->begin();
4624       std::advance(sb,ii);
4625       std::advance(se,jj);
4626       if (step == 1) {
4627         return new Sequence(sb, se);
4628       } else {
4629         Sequence *sequence = new Sequence();
4630         swig::traits_reserve<Sequence>::reserve(*sequence, (jj - ii + step - 1) / step);
4631         typename Sequence::const_iterator it = sb;
4632         while (it!=se) {
4633           sequence->push_back(*it);
4634           for (Py_ssize_t c=0; c<step && it!=se; ++c)
4635             it++;
4636         }
4637         return sequence;
4638       }
4639     } else {
4640       Sequence *sequence = new Sequence();
4641       swig::traits_reserve<Sequence>::reserve(*sequence, (ii - jj - step - 1) / -step);
4642       typename Sequence::const_reverse_iterator sb = self->rbegin();
4643       typename Sequence::const_reverse_iterator se = self->rbegin();
4644       std::advance(sb,size-ii-1);
4645       std::advance(se,size-jj-1);
4646       typename Sequence::const_reverse_iterator it = sb;
4647       while (it!=se) {
4648         sequence->push_back(*it);
4649         for (Py_ssize_t c=0; c<-step && it!=se; ++c)
4650           it++;
4651       }
4652       return sequence;
4653     }
4654   }
4655 
4656   template <class Sequence, class Difference, class InputSeq>
4657   inline void
setslice(Sequence * self,Difference i,Difference j,Py_ssize_t step,const InputSeq & is=InputSeq ())4658   setslice(Sequence* self, Difference i, Difference j, Py_ssize_t step, const InputSeq& is = InputSeq()) {
4659     typename Sequence::size_type size = self->size();
4660     Difference ii = 0;
4661     Difference jj = 0;
4662     swig::slice_adjust(i, j, step, size, ii, jj, true);
4663     if (step > 0) {
4664       if (step == 1) {
4665         size_t ssize = jj - ii;
4666         if (ssize <= is.size()) {
4667           // expanding/staying the same size
4668           swig::traits_reserve<Sequence>::reserve(*self, self->size() - ssize + is.size());
4669           typename Sequence::iterator sb = self->begin();
4670           typename InputSeq::const_iterator isit = is.begin();
4671           std::advance(sb,ii);
4672           std::advance(isit, jj - ii);
4673           self->insert(std::copy(is.begin(), isit, sb), isit, is.end());
4674         } else {
4675           // shrinking
4676           typename Sequence::iterator sb = self->begin();
4677           typename Sequence::iterator se = self->begin();
4678           std::advance(sb,ii);
4679           std::advance(se,jj);
4680           self->erase(sb,se);
4681           sb = self->begin();
4682           std::advance(sb,ii);
4683           self->insert(sb, is.begin(), is.end());
4684         }
4685       } else {
4686         size_t replacecount = (jj - ii + step - 1) / step;
4687         if (is.size() != replacecount) {
4688           char msg[1024];
4689           sprintf(msg, "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount);
4690           throw std::invalid_argument(msg);
4691         }
4692         typename Sequence::const_iterator isit = is.begin();
4693         typename Sequence::iterator it = self->begin();
4694         std::advance(it,ii);
4695         for (size_t rc=0; rc<replacecount && it != self->end(); ++rc) {
4696           *it++ = *isit++;
4697           for (Py_ssize_t c=0; c<(step-1) && it != self->end(); ++c)
4698             it++;
4699         }
4700       }
4701     } else {
4702       size_t replacecount = (ii - jj - step - 1) / -step;
4703       if (is.size() != replacecount) {
4704         char msg[1024];
4705         sprintf(msg, "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount);
4706         throw std::invalid_argument(msg);
4707       }
4708       typename Sequence::const_iterator isit = is.begin();
4709       typename Sequence::reverse_iterator it = self->rbegin();
4710       std::advance(it,size-ii-1);
4711       for (size_t rc=0; rc<replacecount && it != self->rend(); ++rc) {
4712         *it++ = *isit++;
4713         for (Py_ssize_t c=0; c<(-step-1) && it != self->rend(); ++c)
4714           it++;
4715       }
4716     }
4717   }
4718 
4719   template <class Sequence, class Difference>
4720   inline void
delslice(Sequence * self,Difference i,Difference j,Py_ssize_t step)4721   delslice(Sequence* self, Difference i, Difference j, Py_ssize_t step) {
4722     typename Sequence::size_type size = self->size();
4723     Difference ii = 0;
4724     Difference jj = 0;
4725     swig::slice_adjust(i, j, step, size, ii, jj, true);
4726     if (step > 0) {
4727       typename Sequence::iterator sb = self->begin();
4728       std::advance(sb,ii);
4729       if (step == 1) {
4730         typename Sequence::iterator se = self->begin();
4731         std::advance(se,jj);
4732         self->erase(sb,se);
4733       } else {
4734         typename Sequence::iterator it = sb;
4735         size_t delcount = (jj - ii + step - 1) / step;
4736         while (delcount) {
4737           it = self->erase(it);
4738           for (Py_ssize_t c=0; c<(step-1) && it != self->end(); ++c)
4739             it++;
4740           delcount--;
4741         }
4742       }
4743     } else {
4744       typename Sequence::reverse_iterator sb = self->rbegin();
4745       std::advance(sb,size-ii-1);
4746       typename Sequence::reverse_iterator it = sb;
4747       size_t delcount = (ii - jj - step - 1) / -step;
4748       while (delcount) {
4749         it = typename Sequence::reverse_iterator(self->erase((++it).base()));
4750         for (Py_ssize_t c=0; c<(-step-1) && it != self->rend(); ++c)
4751           it++;
4752         delcount--;
4753       }
4754     }
4755   }
4756 }
4757 
4758 
4759 #if defined(__SUNPRO_CC) && defined(_RWSTD_VER)
4760 #  if !defined(SWIG_NO_STD_NOITERATOR_TRAITS_STL)
4761 #    define SWIG_STD_NOITERATOR_TRAITS_STL
4762 #  endif
4763 #endif
4764 
4765 #if !defined(SWIG_STD_NOITERATOR_TRAITS_STL)
4766 #include <iterator>
4767 #else
4768 namespace std {
4769   template <class Iterator>
4770   struct iterator_traits {
4771     typedef ptrdiff_t difference_type;
4772     typedef typename Iterator::value_type value_type;
4773   };
4774 
4775   template <class Iterator, class Category,class T, class Reference, class Pointer, class Distance>
4776   struct iterator_traits<__reverse_bi_iterator<Iterator,Category,T,Reference,Pointer,Distance> > {
4777     typedef Distance difference_type;
4778     typedef T value_type;
4779   };
4780 
4781   template <class T>
4782   struct iterator_traits<T*> {
4783     typedef T value_type;
4784     typedef ptrdiff_t difference_type;
4785   };
4786 
4787   template<typename _InputIterator>
4788   inline typename iterator_traits<_InputIterator>::difference_type
distance(_InputIterator __first,_InputIterator __last)4789   distance(_InputIterator __first, _InputIterator __last)
4790   {
4791     typename iterator_traits<_InputIterator>::difference_type __n = 0;
4792     while (__first != __last) {
4793       ++__first; ++__n;
4794     }
4795     return __n;
4796   }
4797 }
4798 #endif
4799 
4800 
4801 namespace swig {
4802   template<typename OutIterator>
4803   class SwigPyIterator_T :  public SwigPyIterator
4804   {
4805   public:
4806     typedef OutIterator out_iterator;
4807     typedef typename std::iterator_traits<out_iterator>::value_type value_type;
4808     typedef SwigPyIterator_T<out_iterator> self_type;
4809 
SwigPyIterator_T(out_iterator curr,PyObject * seq)4810     SwigPyIterator_T(out_iterator curr, PyObject *seq)
4811       : SwigPyIterator(seq), current(curr)
4812     {
4813     }
4814 
get_current() const4815     const out_iterator& get_current() const
4816     {
4817       return current;
4818     }
4819 
4820 
equal(const SwigPyIterator & iter) const4821     bool equal (const SwigPyIterator &iter) const
4822     {
4823       const self_type *iters = dynamic_cast<const self_type *>(&iter);
4824       if (iters) {
4825 	return (current == iters->get_current());
4826       } else {
4827 	throw std::invalid_argument("bad iterator type");
4828       }
4829     }
4830 
distance(const SwigPyIterator & iter) const4831     ptrdiff_t distance(const SwigPyIterator &iter) const
4832     {
4833       const self_type *iters = dynamic_cast<const self_type *>(&iter);
4834       if (iters) {
4835 	return std::distance(current, iters->get_current());
4836       } else {
4837 	throw std::invalid_argument("bad iterator type");
4838       }
4839     }
4840 
4841   protected:
4842     out_iterator current;
4843   };
4844 
4845   template <class ValueType>
4846   struct from_oper
4847   {
4848     typedef const ValueType& argument_type;
4849     typedef PyObject *result_type;
operator ()swig::from_oper4850     result_type operator()(argument_type v) const
4851     {
4852       return swig::from(v);
4853     }
4854   };
4855 
4856   template<typename OutIterator,
4857 	   typename ValueType = typename std::iterator_traits<OutIterator>::value_type,
4858 	   typename FromOper = from_oper<ValueType> >
4859   class SwigPyForwardIteratorOpen_T :  public SwigPyIterator_T<OutIterator>
4860   {
4861   public:
4862     FromOper from;
4863     typedef OutIterator out_iterator;
4864     typedef ValueType value_type;
4865     typedef SwigPyIterator_T<out_iterator>  base;
4866     typedef SwigPyForwardIteratorOpen_T<OutIterator, ValueType, FromOper> self_type;
4867 
SwigPyForwardIteratorOpen_T(out_iterator curr,PyObject * seq)4868     SwigPyForwardIteratorOpen_T(out_iterator curr, PyObject *seq)
4869       : SwigPyIterator_T<OutIterator>(curr, seq)
4870     {
4871     }
4872 
value() const4873     PyObject *value() const {
4874       return from(static_cast<const value_type&>(*(base::current)));
4875     }
4876 
copy() const4877     SwigPyIterator *copy() const
4878     {
4879       return new self_type(*this);
4880     }
4881 
incr(size_t n=1)4882     SwigPyIterator *incr(size_t n = 1)
4883     {
4884       while (n--) {
4885 	++base::current;
4886       }
4887       return this;
4888     }
4889 
4890   };
4891 
4892   template<typename OutIterator,
4893 	   typename ValueType = typename std::iterator_traits<OutIterator>::value_type,
4894 	   typename FromOper = from_oper<ValueType> >
4895   class SwigPyIteratorOpen_T :  public SwigPyForwardIteratorOpen_T<OutIterator, ValueType, FromOper>
4896   {
4897   public:
4898     FromOper from;
4899     typedef OutIterator out_iterator;
4900     typedef ValueType value_type;
4901     typedef SwigPyIterator_T<out_iterator>  base;
4902     typedef SwigPyIteratorOpen_T<OutIterator, ValueType, FromOper> self_type;
4903 
SwigPyIteratorOpen_T(out_iterator curr,PyObject * seq)4904     SwigPyIteratorOpen_T(out_iterator curr, PyObject *seq)
4905       : SwigPyForwardIteratorOpen_T<OutIterator>(curr, seq)
4906     {
4907     }
4908 
decr(size_t n=1)4909     SwigPyIterator *decr(size_t n = 1)
4910     {
4911       while (n--) {
4912 	--base::current;
4913       }
4914       return this;
4915     }
4916   };
4917 
4918   template<typename OutIterator,
4919 	   typename ValueType = typename std::iterator_traits<OutIterator>::value_type,
4920 	   typename FromOper = from_oper<ValueType> >
4921   class SwigPyForwardIteratorClosed_T :  public SwigPyIterator_T<OutIterator>
4922   {
4923   public:
4924     FromOper from;
4925     typedef OutIterator out_iterator;
4926     typedef ValueType value_type;
4927     typedef SwigPyIterator_T<out_iterator>  base;
4928     typedef SwigPyForwardIteratorClosed_T<OutIterator, ValueType, FromOper> self_type;
4929 
SwigPyForwardIteratorClosed_T(out_iterator curr,out_iterator first,out_iterator last,PyObject * seq)4930     SwigPyForwardIteratorClosed_T(out_iterator curr, out_iterator first, out_iterator last, PyObject *seq)
4931       : SwigPyIterator_T<OutIterator>(curr, seq), begin(first), end(last)
4932     {
4933     }
4934 
value() const4935     PyObject *value() const {
4936       if (base::current == end) {
4937 	throw stop_iteration();
4938       } else {
4939 	return from(static_cast<const value_type&>(*(base::current)));
4940       }
4941     }
4942 
copy() const4943     SwigPyIterator *copy() const
4944     {
4945       return new self_type(*this);
4946     }
4947 
incr(size_t n=1)4948     SwigPyIterator *incr(size_t n = 1)
4949     {
4950       while (n--) {
4951 	if (base::current == end) {
4952 	  throw stop_iteration();
4953 	} else {
4954 	  ++base::current;
4955 	}
4956       }
4957       return this;
4958     }
4959 
4960   protected:
4961     out_iterator begin;
4962     out_iterator end;
4963   };
4964 
4965   template<typename OutIterator,
4966 	   typename ValueType = typename std::iterator_traits<OutIterator>::value_type,
4967 	   typename FromOper = from_oper<ValueType> >
4968   class SwigPyIteratorClosed_T :  public SwigPyForwardIteratorClosed_T<OutIterator,ValueType,FromOper>
4969   {
4970   public:
4971     FromOper from;
4972     typedef OutIterator out_iterator;
4973     typedef ValueType value_type;
4974     typedef SwigPyIterator_T<out_iterator>  base;
4975     typedef SwigPyForwardIteratorClosed_T<OutIterator, ValueType, FromOper> base0;
4976     typedef SwigPyIteratorClosed_T<OutIterator, ValueType, FromOper> self_type;
4977 
SwigPyIteratorClosed_T(out_iterator curr,out_iterator first,out_iterator last,PyObject * seq)4978     SwigPyIteratorClosed_T(out_iterator curr, out_iterator first, out_iterator last, PyObject *seq)
4979       : SwigPyForwardIteratorClosed_T<OutIterator,ValueType,FromOper>(curr, first, last, seq)
4980     {
4981     }
4982 
decr(size_t n=1)4983     SwigPyIterator *decr(size_t n = 1)
4984     {
4985       while (n--) {
4986 	if (base::current == base0::begin) {
4987 	  throw stop_iteration();
4988 	} else {
4989 	  --base::current;
4990 	}
4991       }
4992       return this;
4993     }
4994   };
4995 
4996 
4997   template<typename OutIter>
4998   inline SwigPyIterator*
make_output_forward_iterator(const OutIter & current,const OutIter & begin,const OutIter & end,PyObject * seq=0)4999   make_output_forward_iterator(const OutIter& current, const OutIter& begin,const OutIter& end, PyObject *seq = 0)
5000   {
5001     return new SwigPyForwardIteratorClosed_T<OutIter>(current, begin, end, seq);
5002   }
5003 
5004   template<typename OutIter>
5005   inline SwigPyIterator*
make_output_iterator(const OutIter & current,const OutIter & begin,const OutIter & end,PyObject * seq=0)5006   make_output_iterator(const OutIter& current, const OutIter& begin,const OutIter& end, PyObject *seq = 0)
5007   {
5008     return new SwigPyIteratorClosed_T<OutIter>(current, begin, end, seq);
5009   }
5010 
5011   template<typename OutIter>
5012   inline SwigPyIterator*
make_output_forward_iterator(const OutIter & current,PyObject * seq=0)5013   make_output_forward_iterator(const OutIter& current, PyObject *seq = 0)
5014   {
5015     return new SwigPyForwardIteratorOpen_T<OutIter>(current, seq);
5016   }
5017 
5018   template<typename OutIter>
5019   inline SwigPyIterator*
make_output_iterator(const OutIter & current,PyObject * seq=0)5020   make_output_iterator(const OutIter& current, PyObject *seq = 0)
5021   {
5022     return new SwigPyIteratorOpen_T<OutIter>(current, seq);
5023   }
5024 
5025 }
5026 
5027 
5028 namespace swig
5029 {
5030   template <class T>
5031   struct SwigPySequence_Ref
5032   {
SwigPySequence_Refswig::SwigPySequence_Ref5033     SwigPySequence_Ref(PyObject* seq, Py_ssize_t index)
5034       : _seq(seq), _index(index)
5035     {
5036     }
5037 
operator Tswig::SwigPySequence_Ref5038     operator T () const
5039     {
5040       swig::SwigVar_PyObject item = PySequence_GetItem(_seq, _index);
5041       try {
5042 	return swig::as<T>(item);
5043       } catch (const std::invalid_argument& e) {
5044 	char msg[1024];
5045 	sprintf(msg, "in sequence element %d ", (int)_index);
5046 	if (!PyErr_Occurred()) {
5047 	  ::SWIG_Error(SWIG_TypeError,  swig::type_name<T>());
5048 	}
5049 	SWIG_Python_AddErrorMsg(msg);
5050 	SWIG_Python_AddErrorMsg(e.what());
5051 	throw;
5052       }
5053     }
5054 
operator =swig::SwigPySequence_Ref5055     SwigPySequence_Ref& operator=(const T& v)
5056     {
5057       PySequence_SetItem(_seq, _index, swig::from<T>(v));
5058       return *this;
5059     }
5060 
5061   private:
5062     PyObject* _seq;
5063     Py_ssize_t _index;
5064   };
5065 
5066   template <class T>
5067   struct SwigPySequence_ArrowProxy
5068   {
SwigPySequence_ArrowProxyswig::SwigPySequence_ArrowProxy5069     SwigPySequence_ArrowProxy(const T& x): m_value(x) {}
operator ->swig::SwigPySequence_ArrowProxy5070     const T* operator->() const { return &m_value; }
operator const T*swig::SwigPySequence_ArrowProxy5071     operator const T*() const { return &m_value; }
5072     T m_value;
5073   };
5074 
5075   template <class T, class Reference >
5076   struct SwigPySequence_InputIterator
5077   {
5078     typedef SwigPySequence_InputIterator<T, Reference > self;
5079 
5080     typedef std::random_access_iterator_tag iterator_category;
5081     typedef Reference reference;
5082     typedef T value_type;
5083     typedef T* pointer;
5084     typedef Py_ssize_t difference_type;
5085 
SwigPySequence_InputIteratorswig::SwigPySequence_InputIterator5086     SwigPySequence_InputIterator()
5087     {
5088     }
5089 
SwigPySequence_InputIteratorswig::SwigPySequence_InputIterator5090     SwigPySequence_InputIterator(PyObject* seq, Py_ssize_t index)
5091       : _seq(seq), _index(index)
5092     {
5093     }
5094 
operator *swig::SwigPySequence_InputIterator5095     reference operator*() const
5096     {
5097       return reference(_seq, _index);
5098     }
5099 
5100     SwigPySequence_ArrowProxy<T>
operator ->swig::SwigPySequence_InputIterator5101     operator->() const {
5102       return SwigPySequence_ArrowProxy<T>(operator*());
5103     }
5104 
operator ==swig::SwigPySequence_InputIterator5105     bool operator==(const self& ri) const
5106     {
5107       return (_index == ri._index) && (_seq == ri._seq);
5108     }
5109 
operator !=swig::SwigPySequence_InputIterator5110     bool operator!=(const self& ri) const
5111     {
5112       return !(operator==(ri));
5113     }
5114 
operator ++swig::SwigPySequence_InputIterator5115     self& operator ++ ()
5116     {
5117       ++_index;
5118       return *this;
5119     }
5120 
operator --swig::SwigPySequence_InputIterator5121     self& operator -- ()
5122     {
5123       --_index;
5124       return *this;
5125     }
5126 
operator +=swig::SwigPySequence_InputIterator5127     self& operator += (difference_type n)
5128     {
5129       _index += n;
5130       return *this;
5131     }
5132 
operator +swig::SwigPySequence_InputIterator5133     self operator +(difference_type n) const
5134     {
5135       return self(_seq, _index + n);
5136     }
5137 
operator -=swig::SwigPySequence_InputIterator5138     self& operator -= (difference_type n)
5139     {
5140       _index -= n;
5141       return *this;
5142     }
5143 
operator -swig::SwigPySequence_InputIterator5144     self operator -(difference_type n) const
5145     {
5146       return self(_seq, _index - n);
5147     }
5148 
operator -swig::SwigPySequence_InputIterator5149     difference_type operator - (const self& ri) const
5150     {
5151       return _index - ri._index;
5152     }
5153 
operator <swig::SwigPySequence_InputIterator5154     bool operator < (const self& ri) const
5155     {
5156       return _index < ri._index;
5157     }
5158 
5159     reference
operator []swig::SwigPySequence_InputIterator5160     operator[](difference_type n) const
5161     {
5162       return reference(_seq, _index + n);
5163     }
5164 
5165   private:
5166     PyObject* _seq;
5167     difference_type _index;
5168   };
5169 
5170   // STL container wrapper around a Python sequence
5171   template <class T>
5172   struct SwigPySequence_Cont
5173   {
5174     typedef SwigPySequence_Ref<T> reference;
5175     typedef const SwigPySequence_Ref<T> const_reference;
5176     typedef T value_type;
5177     typedef T* pointer;
5178     typedef Py_ssize_t difference_type;
5179     typedef size_t size_type;
5180     typedef const pointer const_pointer;
5181     typedef SwigPySequence_InputIterator<T, reference> iterator;
5182     typedef SwigPySequence_InputIterator<T, const_reference> const_iterator;
5183 
SwigPySequence_Contswig::SwigPySequence_Cont5184     SwigPySequence_Cont(PyObject* seq) : _seq(0)
5185     {
5186       if (!PySequence_Check(seq)) {
5187 	throw std::invalid_argument("a sequence is expected");
5188       }
5189       _seq = seq;
5190       Py_INCREF(_seq);
5191     }
5192 
~SwigPySequence_Contswig::SwigPySequence_Cont5193     ~SwigPySequence_Cont()
5194     {
5195       Py_XDECREF(_seq);
5196     }
5197 
sizeswig::SwigPySequence_Cont5198     size_type size() const
5199     {
5200       return static_cast<size_type>(PySequence_Size(_seq));
5201     }
5202 
emptyswig::SwigPySequence_Cont5203     bool empty() const
5204     {
5205       return size() == 0;
5206     }
5207 
beginswig::SwigPySequence_Cont5208     iterator begin()
5209     {
5210       return iterator(_seq, 0);
5211     }
5212 
beginswig::SwigPySequence_Cont5213     const_iterator begin() const
5214     {
5215       return const_iterator(_seq, 0);
5216     }
5217 
endswig::SwigPySequence_Cont5218     iterator end()
5219     {
5220       return iterator(_seq, size());
5221     }
5222 
endswig::SwigPySequence_Cont5223     const_iterator end() const
5224     {
5225       return const_iterator(_seq, size());
5226     }
5227 
operator []swig::SwigPySequence_Cont5228     reference operator[](difference_type n)
5229     {
5230       return reference(_seq, n);
5231     }
5232 
operator []swig::SwigPySequence_Cont5233     const_reference operator[](difference_type n)  const
5234     {
5235       return const_reference(_seq, n);
5236     }
5237 
checkswig::SwigPySequence_Cont5238     bool check() const
5239     {
5240       Py_ssize_t s = size();
5241       for (Py_ssize_t i = 0; i < s; ++i) {
5242 	swig::SwigVar_PyObject item = PySequence_GetItem(_seq, i);
5243 	if (!swig::check<value_type>(item))
5244 	  return false;
5245       }
5246       return true;
5247     }
5248 
5249   private:
5250     PyObject* _seq;
5251   };
5252 
5253 }
5254 
5255 
5256 namespace swig {
5257   template <> struct traits< int > {
5258     typedef value_category category;
type_nameswig::traits5259     static const char* type_name() { return"int"; }
5260   };
5261   template <>  struct traits_asval< int > {
5262     typedef int value_type;
asvalswig::traits_asval5263     static int asval(PyObject *obj, value_type *val) {
5264       return SWIG_AsVal_int (obj, val);
5265     }
5266   };
5267   template <>  struct traits_from< int > {
5268     typedef int value_type;
fromswig::traits_from5269     static PyObject *from(const value_type& val) {
5270       return SWIG_From_int  (val);
5271     }
5272   };
5273 }
5274 
5275 
5276 namespace swig {
5277   template <class SwigPySeq, class Seq>
5278   inline void
assign(const SwigPySeq & swigpyseq,Seq * seq)5279   assign(const SwigPySeq& swigpyseq, Seq* seq) {
5280     // seq->assign(swigpyseq.begin(), swigpyseq.end()); // not used as not always implemented
5281     typedef typename SwigPySeq::value_type value_type;
5282     typename SwigPySeq::const_iterator it = swigpyseq.begin();
5283     for (;it != swigpyseq.end(); ++it) {
5284       seq->insert(seq->end(),(value_type)(*it));
5285     }
5286   }
5287 
5288   template <class Seq, class T = typename Seq::value_type >
5289   struct traits_asptr_stdseq {
5290     typedef Seq sequence;
5291     typedef T value_type;
5292 
asptrswig::traits_asptr_stdseq5293     static int asptr(PyObject *obj, sequence **seq) {
5294       if (obj == Py_None || SWIG_Python_GetSwigThis(obj)) {
5295 	sequence *p;
5296 	swig_type_info *descriptor = swig::type_info<sequence>();
5297 	if (descriptor && SWIG_IsOK(::SWIG_ConvertPtr(obj, (void **)&p, descriptor, 0))) {
5298 	  if (seq) *seq = p;
5299 	  return SWIG_OLDOBJ;
5300 	}
5301       } else if (PySequence_Check(obj)) {
5302 	try {
5303 	  SwigPySequence_Cont<value_type> swigpyseq(obj);
5304 	  if (seq) {
5305 	    sequence *pseq = new sequence();
5306 	    assign(swigpyseq, pseq);
5307 	    *seq = pseq;
5308 	    return SWIG_NEWOBJ;
5309 	  } else {
5310 	    return swigpyseq.check() ? SWIG_OK : SWIG_ERROR;
5311 	  }
5312 	} catch (std::exception& e) {
5313 	  if (seq) {
5314 	    if (!PyErr_Occurred()) {
5315 	      PyErr_SetString(PyExc_TypeError, e.what());
5316 	    }
5317 	  }
5318 	  return SWIG_ERROR;
5319 	}
5320       }
5321       return SWIG_ERROR;
5322     }
5323   };
5324 
5325   template <class Seq, class T = typename Seq::value_type >
5326   struct traits_from_stdseq {
5327     typedef Seq sequence;
5328     typedef T value_type;
5329     typedef typename Seq::size_type size_type;
5330     typedef typename sequence::const_iterator const_iterator;
5331 
fromswig::traits_from_stdseq5332     static PyObject *from(const sequence& seq) {
5333 #ifdef SWIG_PYTHON_EXTRA_NATIVE_CONTAINERS
5334       swig_type_info *desc = swig::type_info<sequence>();
5335       if (desc && desc->clientdata) {
5336 	return SWIG_InternalNewPointerObj(new sequence(seq), desc, SWIG_POINTER_OWN);
5337       }
5338 #endif
5339       size_type size = seq.size();
5340       if (size <= (size_type)INT_MAX) {
5341 	PyObject *obj = PyTuple_New((Py_ssize_t)size);
5342 	Py_ssize_t i = 0;
5343 	for (const_iterator it = seq.begin(); it != seq.end(); ++it, ++i) {
5344 	  PyTuple_SetItem(obj,i,swig::from<value_type>(*it));
5345 	}
5346 	return obj;
5347       } else {
5348 	PyErr_SetString(PyExc_OverflowError,"sequence size not valid in python");
5349 	return NULL;
5350       }
5351     }
5352   };
5353 }
5354 
5355 
5356   namespace swig {
5357     template <class T>
5358     struct traits_reserve<std::vector<T> > {
reserveswig::traits_reserve5359       static void reserve(std::vector<T> &seq, typename std::vector<T>::size_type n) {
5360         seq.reserve(n);
5361       }
5362     };
5363 
5364     template <class T>
5365     struct traits_asptr<std::vector<T> >  {
asptrswig::traits_asptr5366       static int asptr(PyObject *obj, std::vector<T> **vec) {
5367 	return traits_asptr_stdseq<std::vector<T> >::asptr(obj, vec);
5368       }
5369     };
5370 
5371     template <class T>
5372     struct traits_from<std::vector<T> > {
fromswig::traits_from5373       static PyObject *from(const std::vector<T>& vec) {
5374 	return traits_from_stdseq<std::vector<T> >::from(vec);
5375       }
5376     };
5377   }
5378 
5379 
5380       namespace swig {
5381 	template <>  struct traits<std::vector< int, std::allocator< int > > > {
5382 	  typedef pointer_category category;
type_nameswig::traits5383 	  static const char* type_name() {
5384 	    return "std::vector<" "int" "," "std::allocator< int >" " >";
5385 	  }
5386 	};
5387       }
5388 
std_vector_Sl_int_Sg__iterator(std::vector<int> * self,PyObject ** PYTHON_SELF)5389 SWIGINTERN swig::SwigPyIterator *std_vector_Sl_int_Sg__iterator(std::vector< int > *self,PyObject **PYTHON_SELF){
5390       return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
5391     }
std_vector_Sl_int_Sg____nonzero__(std::vector<int> const * self)5392 SWIGINTERN bool std_vector_Sl_int_Sg____nonzero__(std::vector< int > const *self){
5393       return !(self->empty());
5394     }
std_vector_Sl_int_Sg____bool__(std::vector<int> const * self)5395 SWIGINTERN bool std_vector_Sl_int_Sg____bool__(std::vector< int > const *self){
5396       return !(self->empty());
5397     }
std_vector_Sl_int_Sg____len__(std::vector<int> const * self)5398 SWIGINTERN std::vector< int >::size_type std_vector_Sl_int_Sg____len__(std::vector< int > const *self){
5399       return self->size();
5400     }
5401 
5402 #ifdef SWIG_LONG_LONG_AVAILABLE
5403 SWIGINTERNINLINE PyObject*
SWIG_From_unsigned_SS_long_SS_long(unsigned long long value)5404 SWIG_From_unsigned_SS_long_SS_long  (unsigned long long value)
5405 {
5406   return (value > LONG_MAX) ?
5407     PyLong_FromUnsignedLongLong(value) : PyInt_FromLong(static_cast< long >(value));
5408 }
5409 #endif
5410 
5411 
5412 SWIGINTERNINLINE PyObject *
SWIG_From_size_t(size_t value)5413 SWIG_From_size_t  (size_t value)
5414 {
5415 #ifdef SWIG_LONG_LONG_AVAILABLE
5416   if (sizeof(size_t) <= sizeof(unsigned long)) {
5417 #endif
5418     return SWIG_From_unsigned_SS_long  (static_cast< unsigned long >(value));
5419 #ifdef SWIG_LONG_LONG_AVAILABLE
5420   } else {
5421     /* assume sizeof(size_t) <= sizeof(unsigned long long) */
5422     return SWIG_From_unsigned_SS_long_SS_long  (static_cast< unsigned long long >(value));
5423   }
5424 #endif
5425 }
5426 
std_vector_Sl_int_Sg____getslice__(std::vector<int> * self,std::vector<int>::difference_type i,std::vector<int>::difference_type j)5427 SWIGINTERN std::vector< int,std::allocator< int > > *std_vector_Sl_int_Sg____getslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){
5428       return swig::getslice(self, i, j, 1);
5429     }
std_vector_Sl_int_Sg____setslice____SWIG_0(std::vector<int> * self,std::vector<int>::difference_type i,std::vector<int>::difference_type j)5430 SWIGINTERN void std_vector_Sl_int_Sg____setslice____SWIG_0(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){
5431       swig::setslice(self, i, j, 1, std::vector< int,std::allocator< int > >());
5432     }
std_vector_Sl_int_Sg____setslice____SWIG_1(std::vector<int> * self,std::vector<int>::difference_type i,std::vector<int>::difference_type j,std::vector<int,std::allocator<int>> const & v)5433 SWIGINTERN void std_vector_Sl_int_Sg____setslice____SWIG_1(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j,std::vector< int,std::allocator< int > > const &v){
5434       swig::setslice(self, i, j, 1, v);
5435     }
std_vector_Sl_int_Sg____delslice__(std::vector<int> * self,std::vector<int>::difference_type i,std::vector<int>::difference_type j)5436 SWIGINTERN void std_vector_Sl_int_Sg____delslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){
5437       swig::delslice(self, i, j, 1);
5438     }
std_vector_Sl_int_Sg____delitem____SWIG_0(std::vector<int> * self,std::vector<int>::difference_type i)5439 SWIGINTERN void std_vector_Sl_int_Sg____delitem____SWIG_0(std::vector< int > *self,std::vector< int >::difference_type i){
5440       swig::erase(self, swig::getpos(self, i));
5441     }
std_vector_Sl_int_Sg____getitem____SWIG_0(std::vector<int> * self,PySliceObject * slice)5442 SWIGINTERN std::vector< int,std::allocator< int > > *std_vector_Sl_int_Sg____getitem____SWIG_0(std::vector< int > *self,PySliceObject *slice){
5443       Py_ssize_t i, j, step;
5444       if( !PySlice_Check(slice) ) {
5445         SWIG_Error(SWIG_TypeError, "Slice object expected.");
5446         return NULL;
5447       }
5448       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
5449       std::vector< int,std::allocator< int > >::difference_type id = i;
5450       std::vector< int,std::allocator< int > >::difference_type jd = j;
5451       return swig::getslice(self, id, jd, step);
5452     }
std_vector_Sl_int_Sg____setitem____SWIG_0(std::vector<int> * self,PySliceObject * slice,std::vector<int,std::allocator<int>> const & v)5453 SWIGINTERN void std_vector_Sl_int_Sg____setitem____SWIG_0(std::vector< int > *self,PySliceObject *slice,std::vector< int,std::allocator< int > > const &v){
5454       Py_ssize_t i, j, step;
5455       if( !PySlice_Check(slice) ) {
5456         SWIG_Error(SWIG_TypeError, "Slice object expected.");
5457         return;
5458       }
5459       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
5460       std::vector< int,std::allocator< int > >::difference_type id = i;
5461       std::vector< int,std::allocator< int > >::difference_type jd = j;
5462       swig::setslice(self, id, jd, step, v);
5463     }
std_vector_Sl_int_Sg____setitem____SWIG_1(std::vector<int> * self,PySliceObject * slice)5464 SWIGINTERN void std_vector_Sl_int_Sg____setitem____SWIG_1(std::vector< int > *self,PySliceObject *slice){
5465       Py_ssize_t i, j, step;
5466       if( !PySlice_Check(slice) ) {
5467         SWIG_Error(SWIG_TypeError, "Slice object expected.");
5468         return;
5469       }
5470       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
5471       std::vector< int,std::allocator< int > >::difference_type id = i;
5472       std::vector< int,std::allocator< int > >::difference_type jd = j;
5473       swig::delslice(self, id, jd, step);
5474     }
std_vector_Sl_int_Sg____delitem____SWIG_1(std::vector<int> * self,PySliceObject * slice)5475 SWIGINTERN void std_vector_Sl_int_Sg____delitem____SWIG_1(std::vector< int > *self,PySliceObject *slice){
5476       Py_ssize_t i, j, step;
5477       if( !PySlice_Check(slice) ) {
5478         SWIG_Error(SWIG_TypeError, "Slice object expected.");
5479         return;
5480       }
5481       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
5482       std::vector< int,std::allocator< int > >::difference_type id = i;
5483       std::vector< int,std::allocator< int > >::difference_type jd = j;
5484       swig::delslice(self, id, jd, step);
5485     }
std_vector_Sl_int_Sg____getitem____SWIG_1(std::vector<int> const * self,std::vector<int>::difference_type i)5486 SWIGINTERN std::vector< int >::value_type const &std_vector_Sl_int_Sg____getitem____SWIG_1(std::vector< int > const *self,std::vector< int >::difference_type i){
5487       return *(swig::cgetpos(self, i));
5488     }
5489 
5490 namespace swig {
container_owner_attribute()5491   static PyObject* container_owner_attribute() {
5492     static PyObject* attr = SWIG_Python_str_FromChar("__swig_container");
5493     return attr;
5494   }
5495 
5496   template <typename T>
5497   struct container_owner {
5498     // By default, do not add the back-reference (for value types)
5499     // Specialization below will check the reference for pointer types.
back_referenceswig::container_owner5500     static bool back_reference(PyObject* /*child*/, PyObject* /*owner*/) {
5501       return false;
5502     }
5503   };
5504 
5505   template <>
5506   struct container_owner<swig::pointer_category> {
5507     /*
5508      * Call to add a back-reference to the owning object when returning a
5509      * reference from a container.  Will only set the reference if child
5510      * is a SWIG wrapper object that does not own the pointer.
5511      *
5512      * returns whether the reference was set or not
5513      */
back_referenceswig::container_owner5514     static bool back_reference(PyObject* child, PyObject* owner) {
5515       SwigPyObject* swigThis = SWIG_Python_GetSwigThis(child);
5516       if (swigThis && (swigThis->own & SWIG_POINTER_OWN) != SWIG_POINTER_OWN) {
5517         return PyObject_SetAttr(child, container_owner_attribute(), owner) != -1;
5518       }
5519       return false;
5520     }
5521   };
5522 }
5523 
std_vector_Sl_int_Sg____setitem____SWIG_2(std::vector<int> * self,std::vector<int>::difference_type i,std::vector<int>::value_type const & x)5524 SWIGINTERN void std_vector_Sl_int_Sg____setitem____SWIG_2(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::value_type const &x){
5525       *(swig::getpos(self,i)) = x;
5526     }
std_vector_Sl_int_Sg__pop(std::vector<int> * self)5527 SWIGINTERN std::vector< int >::value_type std_vector_Sl_int_Sg__pop(std::vector< int > *self){
5528       if (self->size() == 0)
5529 	throw std::out_of_range("pop from empty container");
5530       std::vector< int,std::allocator< int > >::value_type x = self->back();
5531       self->pop_back();
5532       return x;
5533     }
std_vector_Sl_int_Sg__append(std::vector<int> * self,std::vector<int>::value_type const & x)5534 SWIGINTERN void std_vector_Sl_int_Sg__append(std::vector< int > *self,std::vector< int >::value_type const &x){
5535       self->push_back(x);
5536     }
std_vector_Sl_int_Sg__erase__SWIG_0(std::vector<int> * self,std::vector<int>::iterator pos)5537 SWIGINTERN std::vector< int >::iterator std_vector_Sl_int_Sg__erase__SWIG_0(std::vector< int > *self,std::vector< int >::iterator pos){ return self->erase(pos); }
std_vector_Sl_int_Sg__erase__SWIG_1(std::vector<int> * self,std::vector<int>::iterator first,std::vector<int>::iterator last)5538 SWIGINTERN std::vector< int >::iterator std_vector_Sl_int_Sg__erase__SWIG_1(std::vector< int > *self,std::vector< int >::iterator first,std::vector< int >::iterator last){ return self->erase(first, last); }
std_vector_Sl_int_Sg__insert__SWIG_0(std::vector<int> * self,std::vector<int>::iterator pos,std::vector<int>::value_type const & x)5539 SWIGINTERN std::vector< int >::iterator std_vector_Sl_int_Sg__insert__SWIG_0(std::vector< int > *self,std::vector< int >::iterator pos,std::vector< int >::value_type const &x){ return self->insert(pos, x); }
std_vector_Sl_int_Sg__insert__SWIG_1(std::vector<int> * self,std::vector<int>::iterator pos,std::vector<int>::size_type n,std::vector<int>::value_type const & x)5540 SWIGINTERN void std_vector_Sl_int_Sg__insert__SWIG_1(std::vector< int > *self,std::vector< int >::iterator pos,std::vector< int >::size_type n,std::vector< int >::value_type const &x){ self->insert(pos, n, x); }
5541 
5542 SWIGINTERN int
SWIG_AsVal_unsigned_SS_int(PyObject * obj,unsigned int * val)5543 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
5544 {
5545   unsigned long v;
5546   int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
5547   if (SWIG_IsOK(res)) {
5548     if ((v > UINT_MAX)) {
5549       return SWIG_OverflowError;
5550     } else {
5551       if (val) *val = static_cast< unsigned int >(v);
5552     }
5553   }
5554   return res;
5555 }
5556 
5557 
5558 SWIGINTERNINLINE PyObject*
SWIG_From_unsigned_SS_int(unsigned int value)5559   SWIG_From_unsigned_SS_int  (unsigned int value)
5560 {
5561   return PyInt_FromSize_t((size_t) value);
5562 }
5563 
5564 
5565 namespace swig {
5566   template <> struct traits< unsigned int > {
5567     typedef value_category category;
type_nameswig::traits5568     static const char* type_name() { return"unsigned int"; }
5569   };
5570   template <>  struct traits_asval< unsigned int > {
5571     typedef unsigned int value_type;
asvalswig::traits_asval5572     static int asval(PyObject *obj, value_type *val) {
5573       return SWIG_AsVal_unsigned_SS_int (obj, val);
5574     }
5575   };
5576   template <>  struct traits_from< unsigned int > {
5577     typedef unsigned int value_type;
fromswig::traits_from5578     static PyObject *from(const value_type& val) {
5579       return SWIG_From_unsigned_SS_int  (val);
5580     }
5581   };
5582 }
5583 
5584 
5585       namespace swig {
5586 	template <>  struct traits<std::vector< unsigned int, std::allocator< unsigned int > > > {
5587 	  typedef pointer_category category;
type_nameswig::traits5588 	  static const char* type_name() {
5589 	    return "std::vector<" "unsigned int" "," "std::allocator< unsigned int >" " >";
5590 	  }
5591 	};
5592       }
5593 
std_vector_Sl_unsigned_SS_int_Sg__iterator(std::vector<unsigned int> * self,PyObject ** PYTHON_SELF)5594 SWIGINTERN swig::SwigPyIterator *std_vector_Sl_unsigned_SS_int_Sg__iterator(std::vector< unsigned int > *self,PyObject **PYTHON_SELF){
5595       return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
5596     }
std_vector_Sl_unsigned_SS_int_Sg____nonzero__(std::vector<unsigned int> const * self)5597 SWIGINTERN bool std_vector_Sl_unsigned_SS_int_Sg____nonzero__(std::vector< unsigned int > const *self){
5598       return !(self->empty());
5599     }
std_vector_Sl_unsigned_SS_int_Sg____bool__(std::vector<unsigned int> const * self)5600 SWIGINTERN bool std_vector_Sl_unsigned_SS_int_Sg____bool__(std::vector< unsigned int > const *self){
5601       return !(self->empty());
5602     }
std_vector_Sl_unsigned_SS_int_Sg____len__(std::vector<unsigned int> const * self)5603 SWIGINTERN std::vector< unsigned int >::size_type std_vector_Sl_unsigned_SS_int_Sg____len__(std::vector< unsigned int > const *self){
5604       return self->size();
5605     }
std_vector_Sl_unsigned_SS_int_Sg____getslice__(std::vector<unsigned int> * self,std::vector<unsigned int>::difference_type i,std::vector<unsigned int>::difference_type j)5606 SWIGINTERN std::vector< unsigned int,std::allocator< unsigned int > > *std_vector_Sl_unsigned_SS_int_Sg____getslice__(std::vector< unsigned int > *self,std::vector< unsigned int >::difference_type i,std::vector< unsigned int >::difference_type j){
5607       return swig::getslice(self, i, j, 1);
5608     }
std_vector_Sl_unsigned_SS_int_Sg____setslice____SWIG_0(std::vector<unsigned int> * self,std::vector<unsigned int>::difference_type i,std::vector<unsigned int>::difference_type j)5609 SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____setslice____SWIG_0(std::vector< unsigned int > *self,std::vector< unsigned int >::difference_type i,std::vector< unsigned int >::difference_type j){
5610       swig::setslice(self, i, j, 1, std::vector< unsigned int,std::allocator< unsigned int > >());
5611     }
std_vector_Sl_unsigned_SS_int_Sg____setslice____SWIG_1(std::vector<unsigned int> * self,std::vector<unsigned int>::difference_type i,std::vector<unsigned int>::difference_type j,std::vector<unsigned int,std::allocator<unsigned int>> const & v)5612 SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____setslice____SWIG_1(std::vector< unsigned int > *self,std::vector< unsigned int >::difference_type i,std::vector< unsigned int >::difference_type j,std::vector< unsigned int,std::allocator< unsigned int > > const &v){
5613       swig::setslice(self, i, j, 1, v);
5614     }
std_vector_Sl_unsigned_SS_int_Sg____delslice__(std::vector<unsigned int> * self,std::vector<unsigned int>::difference_type i,std::vector<unsigned int>::difference_type j)5615 SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____delslice__(std::vector< unsigned int > *self,std::vector< unsigned int >::difference_type i,std::vector< unsigned int >::difference_type j){
5616       swig::delslice(self, i, j, 1);
5617     }
std_vector_Sl_unsigned_SS_int_Sg____delitem____SWIG_0(std::vector<unsigned int> * self,std::vector<unsigned int>::difference_type i)5618 SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____delitem____SWIG_0(std::vector< unsigned int > *self,std::vector< unsigned int >::difference_type i){
5619       swig::erase(self, swig::getpos(self, i));
5620     }
std_vector_Sl_unsigned_SS_int_Sg____getitem____SWIG_0(std::vector<unsigned int> * self,PySliceObject * slice)5621 SWIGINTERN std::vector< unsigned int,std::allocator< unsigned int > > *std_vector_Sl_unsigned_SS_int_Sg____getitem____SWIG_0(std::vector< unsigned int > *self,PySliceObject *slice){
5622       Py_ssize_t i, j, step;
5623       if( !PySlice_Check(slice) ) {
5624         SWIG_Error(SWIG_TypeError, "Slice object expected.");
5625         return NULL;
5626       }
5627       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
5628       std::vector< unsigned int,std::allocator< unsigned int > >::difference_type id = i;
5629       std::vector< unsigned int,std::allocator< unsigned int > >::difference_type jd = j;
5630       return swig::getslice(self, id, jd, step);
5631     }
std_vector_Sl_unsigned_SS_int_Sg____setitem____SWIG_0(std::vector<unsigned int> * self,PySliceObject * slice,std::vector<unsigned int,std::allocator<unsigned int>> const & v)5632 SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____setitem____SWIG_0(std::vector< unsigned int > *self,PySliceObject *slice,std::vector< unsigned int,std::allocator< unsigned int > > const &v){
5633       Py_ssize_t i, j, step;
5634       if( !PySlice_Check(slice) ) {
5635         SWIG_Error(SWIG_TypeError, "Slice object expected.");
5636         return;
5637       }
5638       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
5639       std::vector< unsigned int,std::allocator< unsigned int > >::difference_type id = i;
5640       std::vector< unsigned int,std::allocator< unsigned int > >::difference_type jd = j;
5641       swig::setslice(self, id, jd, step, v);
5642     }
std_vector_Sl_unsigned_SS_int_Sg____setitem____SWIG_1(std::vector<unsigned int> * self,PySliceObject * slice)5643 SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____setitem____SWIG_1(std::vector< unsigned int > *self,PySliceObject *slice){
5644       Py_ssize_t i, j, step;
5645       if( !PySlice_Check(slice) ) {
5646         SWIG_Error(SWIG_TypeError, "Slice object expected.");
5647         return;
5648       }
5649       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
5650       std::vector< unsigned int,std::allocator< unsigned int > >::difference_type id = i;
5651       std::vector< unsigned int,std::allocator< unsigned int > >::difference_type jd = j;
5652       swig::delslice(self, id, jd, step);
5653     }
std_vector_Sl_unsigned_SS_int_Sg____delitem____SWIG_1(std::vector<unsigned int> * self,PySliceObject * slice)5654 SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____delitem____SWIG_1(std::vector< unsigned int > *self,PySliceObject *slice){
5655       Py_ssize_t i, j, step;
5656       if( !PySlice_Check(slice) ) {
5657         SWIG_Error(SWIG_TypeError, "Slice object expected.");
5658         return;
5659       }
5660       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
5661       std::vector< unsigned int,std::allocator< unsigned int > >::difference_type id = i;
5662       std::vector< unsigned int,std::allocator< unsigned int > >::difference_type jd = j;
5663       swig::delslice(self, id, jd, step);
5664     }
std_vector_Sl_unsigned_SS_int_Sg____getitem____SWIG_1(std::vector<unsigned int> const * self,std::vector<unsigned int>::difference_type i)5665 SWIGINTERN std::vector< unsigned int >::value_type const &std_vector_Sl_unsigned_SS_int_Sg____getitem____SWIG_1(std::vector< unsigned int > const *self,std::vector< unsigned int >::difference_type i){
5666       return *(swig::cgetpos(self, i));
5667     }
std_vector_Sl_unsigned_SS_int_Sg____setitem____SWIG_2(std::vector<unsigned int> * self,std::vector<unsigned int>::difference_type i,std::vector<unsigned int>::value_type const & x)5668 SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____setitem____SWIG_2(std::vector< unsigned int > *self,std::vector< unsigned int >::difference_type i,std::vector< unsigned int >::value_type const &x){
5669       *(swig::getpos(self,i)) = x;
5670     }
std_vector_Sl_unsigned_SS_int_Sg__pop(std::vector<unsigned int> * self)5671 SWIGINTERN std::vector< unsigned int >::value_type std_vector_Sl_unsigned_SS_int_Sg__pop(std::vector< unsigned int > *self){
5672       if (self->size() == 0)
5673 	throw std::out_of_range("pop from empty container");
5674       std::vector< unsigned int,std::allocator< unsigned int > >::value_type x = self->back();
5675       self->pop_back();
5676       return x;
5677     }
std_vector_Sl_unsigned_SS_int_Sg__append(std::vector<unsigned int> * self,std::vector<unsigned int>::value_type const & x)5678 SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg__append(std::vector< unsigned int > *self,std::vector< unsigned int >::value_type const &x){
5679       self->push_back(x);
5680     }
std_vector_Sl_unsigned_SS_int_Sg__erase__SWIG_0(std::vector<unsigned int> * self,std::vector<unsigned int>::iterator pos)5681 SWIGINTERN std::vector< unsigned int >::iterator std_vector_Sl_unsigned_SS_int_Sg__erase__SWIG_0(std::vector< unsigned int > *self,std::vector< unsigned int >::iterator pos){ return self->erase(pos); }
std_vector_Sl_unsigned_SS_int_Sg__erase__SWIG_1(std::vector<unsigned int> * self,std::vector<unsigned int>::iterator first,std::vector<unsigned int>::iterator last)5682 SWIGINTERN std::vector< unsigned int >::iterator std_vector_Sl_unsigned_SS_int_Sg__erase__SWIG_1(std::vector< unsigned int > *self,std::vector< unsigned int >::iterator first,std::vector< unsigned int >::iterator last){ return self->erase(first, last); }
std_vector_Sl_unsigned_SS_int_Sg__insert__SWIG_0(std::vector<unsigned int> * self,std::vector<unsigned int>::iterator pos,std::vector<unsigned int>::value_type const & x)5683 SWIGINTERN std::vector< unsigned int >::iterator std_vector_Sl_unsigned_SS_int_Sg__insert__SWIG_0(std::vector< unsigned int > *self,std::vector< unsigned int >::iterator pos,std::vector< unsigned int >::value_type const &x){ return self->insert(pos, x); }
std_vector_Sl_unsigned_SS_int_Sg__insert__SWIG_1(std::vector<unsigned int> * self,std::vector<unsigned int>::iterator pos,std::vector<unsigned int>::size_type n,std::vector<unsigned int>::value_type const & x)5684 SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg__insert__SWIG_1(std::vector< unsigned int > *self,std::vector< unsigned int >::iterator pos,std::vector< unsigned int >::size_type n,std::vector< unsigned int >::value_type const &x){ self->insert(pos, n, x); }
5685 
5686       namespace swig {
5687 	template <>  struct traits<std::vector< double, std::allocator< double > > > {
5688 	  typedef pointer_category category;
type_nameswig::traits5689 	  static const char* type_name() {
5690 	    return "std::vector<" "double" "," "std::allocator< double >" " >";
5691 	  }
5692 	};
5693       }
5694 
std_vector_Sl_double_Sg__iterator(std::vector<double> * self,PyObject ** PYTHON_SELF)5695 SWIGINTERN swig::SwigPyIterator *std_vector_Sl_double_Sg__iterator(std::vector< double > *self,PyObject **PYTHON_SELF){
5696       return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
5697     }
std_vector_Sl_double_Sg____nonzero__(std::vector<double> const * self)5698 SWIGINTERN bool std_vector_Sl_double_Sg____nonzero__(std::vector< double > const *self){
5699       return !(self->empty());
5700     }
std_vector_Sl_double_Sg____bool__(std::vector<double> const * self)5701 SWIGINTERN bool std_vector_Sl_double_Sg____bool__(std::vector< double > const *self){
5702       return !(self->empty());
5703     }
std_vector_Sl_double_Sg____len__(std::vector<double> const * self)5704 SWIGINTERN std::vector< double >::size_type std_vector_Sl_double_Sg____len__(std::vector< double > const *self){
5705       return self->size();
5706     }
std_vector_Sl_double_Sg____getslice__(std::vector<double> * self,std::vector<double>::difference_type i,std::vector<double>::difference_type j)5707 SWIGINTERN std::vector< double,std::allocator< double > > *std_vector_Sl_double_Sg____getslice__(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j){
5708       return swig::getslice(self, i, j, 1);
5709     }
std_vector_Sl_double_Sg____setslice____SWIG_0(std::vector<double> * self,std::vector<double>::difference_type i,std::vector<double>::difference_type j)5710 SWIGINTERN void std_vector_Sl_double_Sg____setslice____SWIG_0(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j){
5711       swig::setslice(self, i, j, 1, std::vector< double,std::allocator< double > >());
5712     }
std_vector_Sl_double_Sg____setslice____SWIG_1(std::vector<double> * self,std::vector<double>::difference_type i,std::vector<double>::difference_type j,std::vector<double,std::allocator<double>> const & v)5713 SWIGINTERN void std_vector_Sl_double_Sg____setslice____SWIG_1(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j,std::vector< double,std::allocator< double > > const &v){
5714       swig::setslice(self, i, j, 1, v);
5715     }
std_vector_Sl_double_Sg____delslice__(std::vector<double> * self,std::vector<double>::difference_type i,std::vector<double>::difference_type j)5716 SWIGINTERN void std_vector_Sl_double_Sg____delslice__(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j){
5717       swig::delslice(self, i, j, 1);
5718     }
std_vector_Sl_double_Sg____delitem____SWIG_0(std::vector<double> * self,std::vector<double>::difference_type i)5719 SWIGINTERN void std_vector_Sl_double_Sg____delitem____SWIG_0(std::vector< double > *self,std::vector< double >::difference_type i){
5720       swig::erase(self, swig::getpos(self, i));
5721     }
std_vector_Sl_double_Sg____getitem____SWIG_0(std::vector<double> * self,PySliceObject * slice)5722 SWIGINTERN std::vector< double,std::allocator< double > > *std_vector_Sl_double_Sg____getitem____SWIG_0(std::vector< double > *self,PySliceObject *slice){
5723       Py_ssize_t i, j, step;
5724       if( !PySlice_Check(slice) ) {
5725         SWIG_Error(SWIG_TypeError, "Slice object expected.");
5726         return NULL;
5727       }
5728       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
5729       std::vector< double,std::allocator< double > >::difference_type id = i;
5730       std::vector< double,std::allocator< double > >::difference_type jd = j;
5731       return swig::getslice(self, id, jd, step);
5732     }
std_vector_Sl_double_Sg____setitem____SWIG_0(std::vector<double> * self,PySliceObject * slice,std::vector<double,std::allocator<double>> const & v)5733 SWIGINTERN void std_vector_Sl_double_Sg____setitem____SWIG_0(std::vector< double > *self,PySliceObject *slice,std::vector< double,std::allocator< double > > const &v){
5734       Py_ssize_t i, j, step;
5735       if( !PySlice_Check(slice) ) {
5736         SWIG_Error(SWIG_TypeError, "Slice object expected.");
5737         return;
5738       }
5739       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
5740       std::vector< double,std::allocator< double > >::difference_type id = i;
5741       std::vector< double,std::allocator< double > >::difference_type jd = j;
5742       swig::setslice(self, id, jd, step, v);
5743     }
std_vector_Sl_double_Sg____setitem____SWIG_1(std::vector<double> * self,PySliceObject * slice)5744 SWIGINTERN void std_vector_Sl_double_Sg____setitem____SWIG_1(std::vector< double > *self,PySliceObject *slice){
5745       Py_ssize_t i, j, step;
5746       if( !PySlice_Check(slice) ) {
5747         SWIG_Error(SWIG_TypeError, "Slice object expected.");
5748         return;
5749       }
5750       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
5751       std::vector< double,std::allocator< double > >::difference_type id = i;
5752       std::vector< double,std::allocator< double > >::difference_type jd = j;
5753       swig::delslice(self, id, jd, step);
5754     }
std_vector_Sl_double_Sg____delitem____SWIG_1(std::vector<double> * self,PySliceObject * slice)5755 SWIGINTERN void std_vector_Sl_double_Sg____delitem____SWIG_1(std::vector< double > *self,PySliceObject *slice){
5756       Py_ssize_t i, j, step;
5757       if( !PySlice_Check(slice) ) {
5758         SWIG_Error(SWIG_TypeError, "Slice object expected.");
5759         return;
5760       }
5761       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
5762       std::vector< double,std::allocator< double > >::difference_type id = i;
5763       std::vector< double,std::allocator< double > >::difference_type jd = j;
5764       swig::delslice(self, id, jd, step);
5765     }
std_vector_Sl_double_Sg____getitem____SWIG_1(std::vector<double> const * self,std::vector<double>::difference_type i)5766 SWIGINTERN std::vector< double >::value_type const &std_vector_Sl_double_Sg____getitem____SWIG_1(std::vector< double > const *self,std::vector< double >::difference_type i){
5767       return *(swig::cgetpos(self, i));
5768     }
std_vector_Sl_double_Sg____setitem____SWIG_2(std::vector<double> * self,std::vector<double>::difference_type i,std::vector<double>::value_type const & x)5769 SWIGINTERN void std_vector_Sl_double_Sg____setitem____SWIG_2(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::value_type const &x){
5770       *(swig::getpos(self,i)) = x;
5771     }
std_vector_Sl_double_Sg__pop(std::vector<double> * self)5772 SWIGINTERN std::vector< double >::value_type std_vector_Sl_double_Sg__pop(std::vector< double > *self){
5773       if (self->size() == 0)
5774 	throw std::out_of_range("pop from empty container");
5775       std::vector< double,std::allocator< double > >::value_type x = self->back();
5776       self->pop_back();
5777       return x;
5778     }
std_vector_Sl_double_Sg__append(std::vector<double> * self,std::vector<double>::value_type const & x)5779 SWIGINTERN void std_vector_Sl_double_Sg__append(std::vector< double > *self,std::vector< double >::value_type const &x){
5780       self->push_back(x);
5781     }
std_vector_Sl_double_Sg__erase__SWIG_0(std::vector<double> * self,std::vector<double>::iterator pos)5782 SWIGINTERN std::vector< double >::iterator std_vector_Sl_double_Sg__erase__SWIG_0(std::vector< double > *self,std::vector< double >::iterator pos){ return self->erase(pos); }
std_vector_Sl_double_Sg__erase__SWIG_1(std::vector<double> * self,std::vector<double>::iterator first,std::vector<double>::iterator last)5783 SWIGINTERN std::vector< double >::iterator std_vector_Sl_double_Sg__erase__SWIG_1(std::vector< double > *self,std::vector< double >::iterator first,std::vector< double >::iterator last){ return self->erase(first, last); }
std_vector_Sl_double_Sg__insert__SWIG_0(std::vector<double> * self,std::vector<double>::iterator pos,std::vector<double>::value_type const & x)5784 SWIGINTERN std::vector< double >::iterator std_vector_Sl_double_Sg__insert__SWIG_0(std::vector< double > *self,std::vector< double >::iterator pos,std::vector< double >::value_type const &x){ return self->insert(pos, x); }
std_vector_Sl_double_Sg__insert__SWIG_1(std::vector<double> * self,std::vector<double>::iterator pos,std::vector<double>::size_type n,std::vector<double>::value_type const & x)5785 SWIGINTERN void std_vector_Sl_double_Sg__insert__SWIG_1(std::vector< double > *self,std::vector< double >::iterator pos,std::vector< double >::size_type n,std::vector< double >::value_type const &x){ self->insert(pos, n, x); }
5786 
5787 SWIGINTERN int
SWIG_AsPtr_std_string(PyObject * obj,std::string ** val)5788 SWIG_AsPtr_std_string (PyObject * obj, std::string **val)
5789 {
5790   char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ;
5791   if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) {
5792     if (buf) {
5793       if (val) *val = new std::string(buf, size - 1);
5794       if (alloc == SWIG_NEWOBJ) delete[] buf;
5795       return SWIG_NEWOBJ;
5796     } else {
5797       if (val) *val = 0;
5798       return SWIG_OLDOBJ;
5799     }
5800   } else {
5801     static int init = 0;
5802     static swig_type_info* descriptor = 0;
5803     if (!init) {
5804       descriptor = SWIG_TypeQuery("std::string" " *");
5805       init = 1;
5806     }
5807     if (descriptor) {
5808       std::string *vptr;
5809       int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0);
5810       if (SWIG_IsOK(res) && val) *val = vptr;
5811       return res;
5812     }
5813   }
5814   return SWIG_ERROR;
5815 }
5816 
5817 
5818 SWIGINTERN int
SWIG_AsVal_std_string(PyObject * obj,std::string * val)5819 SWIG_AsVal_std_string (PyObject * obj, std::string *val)
5820 {
5821   std::string* v = (std::string *) 0;
5822   int res = SWIG_AsPtr_std_string (obj, &v);
5823   if (!SWIG_IsOK(res)) return res;
5824   if (v) {
5825     if (val) *val = *v;
5826     if (SWIG_IsNewObj(res)) {
5827       delete v;
5828       res = SWIG_DelNewMask(res);
5829     }
5830     return res;
5831   }
5832   return SWIG_ERROR;
5833 }
5834 
5835 
5836 SWIGINTERNINLINE PyObject *
SWIG_From_std_string(const std::string & s)5837 SWIG_From_std_string  (const std::string& s)
5838 {
5839   return SWIG_FromCharPtrAndSize(s.data(), s.size());
5840 }
5841 
5842 
5843 namespace swig {
5844   template <> struct traits< std::string > {
5845     typedef value_category category;
type_nameswig::traits5846     static const char* type_name() { return"std::string"; }
5847   };
5848   template <>  struct traits_asval< std::string > {
5849     typedef std::string value_type;
asvalswig::traits_asval5850     static int asval(PyObject *obj, value_type *val) {
5851       return SWIG_AsVal_std_string (obj, val);
5852     }
5853   };
5854   template <>  struct traits_from< std::string > {
5855     typedef std::string value_type;
fromswig::traits_from5856     static PyObject *from(const value_type& val) {
5857       return SWIG_From_std_string  (val);
5858     }
5859   };
5860 }
5861 
5862 
5863       namespace swig {
5864 	template <>  struct traits<std::vector< std::string, std::allocator< std::string > > > {
5865 	  typedef pointer_category category;
type_nameswig::traits5866 	  static const char* type_name() {
5867 	    return "std::vector<" "std::string" "," "std::allocator< std::string >" " >";
5868 	  }
5869 	};
5870       }
5871 
std_vector_Sl_std_string_Sg__iterator(std::vector<std::string> * self,PyObject ** PYTHON_SELF)5872 SWIGINTERN swig::SwigPyIterator *std_vector_Sl_std_string_Sg__iterator(std::vector< std::string > *self,PyObject **PYTHON_SELF){
5873       return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
5874     }
std_vector_Sl_std_string_Sg____nonzero__(std::vector<std::string> const * self)5875 SWIGINTERN bool std_vector_Sl_std_string_Sg____nonzero__(std::vector< std::string > const *self){
5876       return !(self->empty());
5877     }
std_vector_Sl_std_string_Sg____bool__(std::vector<std::string> const * self)5878 SWIGINTERN bool std_vector_Sl_std_string_Sg____bool__(std::vector< std::string > const *self){
5879       return !(self->empty());
5880     }
std_vector_Sl_std_string_Sg____len__(std::vector<std::string> const * self)5881 SWIGINTERN std::vector< std::string >::size_type std_vector_Sl_std_string_Sg____len__(std::vector< std::string > const *self){
5882       return self->size();
5883     }
std_vector_Sl_std_string_Sg____getslice__(std::vector<std::string> * self,std::vector<std::string>::difference_type i,std::vector<std::string>::difference_type j)5884 SWIGINTERN std::vector< std::string,std::allocator< std::string > > *std_vector_Sl_std_string_Sg____getslice__(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j){
5885       return swig::getslice(self, i, j, 1);
5886     }
std_vector_Sl_std_string_Sg____setslice____SWIG_0(std::vector<std::string> * self,std::vector<std::string>::difference_type i,std::vector<std::string>::difference_type j)5887 SWIGINTERN void std_vector_Sl_std_string_Sg____setslice____SWIG_0(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j){
5888       swig::setslice(self, i, j, 1, std::vector< std::string,std::allocator< std::string > >());
5889     }
std_vector_Sl_std_string_Sg____setslice____SWIG_1(std::vector<std::string> * self,std::vector<std::string>::difference_type i,std::vector<std::string>::difference_type j,std::vector<std::string,std::allocator<std::string>> const & v)5890 SWIGINTERN void std_vector_Sl_std_string_Sg____setslice____SWIG_1(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j,std::vector< std::string,std::allocator< std::string > > const &v){
5891       swig::setslice(self, i, j, 1, v);
5892     }
std_vector_Sl_std_string_Sg____delslice__(std::vector<std::string> * self,std::vector<std::string>::difference_type i,std::vector<std::string>::difference_type j)5893 SWIGINTERN void std_vector_Sl_std_string_Sg____delslice__(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j){
5894       swig::delslice(self, i, j, 1);
5895     }
std_vector_Sl_std_string_Sg____delitem____SWIG_0(std::vector<std::string> * self,std::vector<std::string>::difference_type i)5896 SWIGINTERN void std_vector_Sl_std_string_Sg____delitem____SWIG_0(std::vector< std::string > *self,std::vector< std::string >::difference_type i){
5897       swig::erase(self, swig::getpos(self, i));
5898     }
std_vector_Sl_std_string_Sg____getitem____SWIG_0(std::vector<std::string> * self,PySliceObject * slice)5899 SWIGINTERN std::vector< std::string,std::allocator< std::string > > *std_vector_Sl_std_string_Sg____getitem____SWIG_0(std::vector< std::string > *self,PySliceObject *slice){
5900       Py_ssize_t i, j, step;
5901       if( !PySlice_Check(slice) ) {
5902         SWIG_Error(SWIG_TypeError, "Slice object expected.");
5903         return NULL;
5904       }
5905       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
5906       std::vector< std::string,std::allocator< std::string > >::difference_type id = i;
5907       std::vector< std::string,std::allocator< std::string > >::difference_type jd = j;
5908       return swig::getslice(self, id, jd, step);
5909     }
std_vector_Sl_std_string_Sg____setitem____SWIG_0(std::vector<std::string> * self,PySliceObject * slice,std::vector<std::string,std::allocator<std::string>> const & v)5910 SWIGINTERN void std_vector_Sl_std_string_Sg____setitem____SWIG_0(std::vector< std::string > *self,PySliceObject *slice,std::vector< std::string,std::allocator< std::string > > const &v){
5911       Py_ssize_t i, j, step;
5912       if( !PySlice_Check(slice) ) {
5913         SWIG_Error(SWIG_TypeError, "Slice object expected.");
5914         return;
5915       }
5916       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
5917       std::vector< std::string,std::allocator< std::string > >::difference_type id = i;
5918       std::vector< std::string,std::allocator< std::string > >::difference_type jd = j;
5919       swig::setslice(self, id, jd, step, v);
5920     }
std_vector_Sl_std_string_Sg____setitem____SWIG_1(std::vector<std::string> * self,PySliceObject * slice)5921 SWIGINTERN void std_vector_Sl_std_string_Sg____setitem____SWIG_1(std::vector< std::string > *self,PySliceObject *slice){
5922       Py_ssize_t i, j, step;
5923       if( !PySlice_Check(slice) ) {
5924         SWIG_Error(SWIG_TypeError, "Slice object expected.");
5925         return;
5926       }
5927       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
5928       std::vector< std::string,std::allocator< std::string > >::difference_type id = i;
5929       std::vector< std::string,std::allocator< std::string > >::difference_type jd = j;
5930       swig::delslice(self, id, jd, step);
5931     }
std_vector_Sl_std_string_Sg____delitem____SWIG_1(std::vector<std::string> * self,PySliceObject * slice)5932 SWIGINTERN void std_vector_Sl_std_string_Sg____delitem____SWIG_1(std::vector< std::string > *self,PySliceObject *slice){
5933       Py_ssize_t i, j, step;
5934       if( !PySlice_Check(slice) ) {
5935         SWIG_Error(SWIG_TypeError, "Slice object expected.");
5936         return;
5937       }
5938       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
5939       std::vector< std::string,std::allocator< std::string > >::difference_type id = i;
5940       std::vector< std::string,std::allocator< std::string > >::difference_type jd = j;
5941       swig::delslice(self, id, jd, step);
5942     }
std_vector_Sl_std_string_Sg____getitem____SWIG_1(std::vector<std::string> const * self,std::vector<std::string>::difference_type i)5943 SWIGINTERN std::vector< std::string >::value_type const &std_vector_Sl_std_string_Sg____getitem____SWIG_1(std::vector< std::string > const *self,std::vector< std::string >::difference_type i){
5944       return *(swig::cgetpos(self, i));
5945     }
std_vector_Sl_std_string_Sg____setitem____SWIG_2(std::vector<std::string> * self,std::vector<std::string>::difference_type i,std::vector<std::string>::value_type const & x)5946 SWIGINTERN void std_vector_Sl_std_string_Sg____setitem____SWIG_2(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::value_type const &x){
5947       *(swig::getpos(self,i)) = x;
5948     }
std_vector_Sl_std_string_Sg__pop(std::vector<std::string> * self)5949 SWIGINTERN std::vector< std::string >::value_type std_vector_Sl_std_string_Sg__pop(std::vector< std::string > *self){
5950       if (self->size() == 0)
5951 	throw std::out_of_range("pop from empty container");
5952       std::vector< std::string,std::allocator< std::string > >::value_type x = self->back();
5953       self->pop_back();
5954       return x;
5955     }
std_vector_Sl_std_string_Sg__append(std::vector<std::string> * self,std::vector<std::string>::value_type const & x)5956 SWIGINTERN void std_vector_Sl_std_string_Sg__append(std::vector< std::string > *self,std::vector< std::string >::value_type const &x){
5957       self->push_back(x);
5958     }
std_vector_Sl_std_string_Sg__erase__SWIG_0(std::vector<std::string> * self,std::vector<std::string>::iterator pos)5959 SWIGINTERN std::vector< std::string >::iterator std_vector_Sl_std_string_Sg__erase__SWIG_0(std::vector< std::string > *self,std::vector< std::string >::iterator pos){ return self->erase(pos); }
std_vector_Sl_std_string_Sg__erase__SWIG_1(std::vector<std::string> * self,std::vector<std::string>::iterator first,std::vector<std::string>::iterator last)5960 SWIGINTERN std::vector< std::string >::iterator std_vector_Sl_std_string_Sg__erase__SWIG_1(std::vector< std::string > *self,std::vector< std::string >::iterator first,std::vector< std::string >::iterator last){ return self->erase(first, last); }
std_vector_Sl_std_string_Sg__insert__SWIG_0(std::vector<std::string> * self,std::vector<std::string>::iterator pos,std::vector<std::string>::value_type const & x)5961 SWIGINTERN std::vector< std::string >::iterator std_vector_Sl_std_string_Sg__insert__SWIG_0(std::vector< std::string > *self,std::vector< std::string >::iterator pos,std::vector< std::string >::value_type const &x){ return self->insert(pos, x); }
std_vector_Sl_std_string_Sg__insert__SWIG_1(std::vector<std::string> * self,std::vector<std::string>::iterator pos,std::vector<std::string>::size_type n,std::vector<std::string>::value_type const & x)5962 SWIGINTERN void std_vector_Sl_std_string_Sg__insert__SWIG_1(std::vector< std::string > *self,std::vector< std::string >::iterator pos,std::vector< std::string >::size_type n,std::vector< std::string >::value_type const &x){ self->insert(pos, n, x); }
5963 
5964 SWIGINTERN int
SWIG_AsCharArray(PyObject * obj,char * val,size_t size)5965 SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
5966 {
5967   char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
5968   int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
5969   if (SWIG_IsOK(res)) {
5970     /* special case of single char conversion when we don't need space for NUL */
5971     if (size == 1 && csize == 2 && cptr && !cptr[1]) --csize;
5972     if (csize <= size) {
5973       if (val) {
5974 	if (csize) memcpy(val, cptr, csize*sizeof(char));
5975 	if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
5976       }
5977       if (alloc == SWIG_NEWOBJ) {
5978 	delete[] cptr;
5979 	res = SWIG_DelNewMask(res);
5980       }
5981       return res;
5982     }
5983     if (alloc == SWIG_NEWOBJ) delete[] cptr;
5984   }
5985   return SWIG_TypeError;
5986 }
5987 
5988 
5989 SWIGINTERN int
SWIG_AsVal_char(PyObject * obj,char * val)5990 SWIG_AsVal_char (PyObject * obj, char *val)
5991 {
5992   int res = SWIG_AsCharArray(obj, val, 1);
5993   if (!SWIG_IsOK(res)) {
5994     long v;
5995     res = SWIG_AddCast(SWIG_AsVal_long (obj, &v));
5996     if (SWIG_IsOK(res)) {
5997       if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) {
5998 	if (val) *val = static_cast< char >(v);
5999       } else {
6000 	res = SWIG_OverflowError;
6001       }
6002     }
6003   }
6004   return res;
6005 }
6006 
6007 
6008 SWIGINTERNINLINE PyObject *
SWIG_From_char(char c)6009 SWIG_From_char  (char c)
6010 {
6011   return SWIG_FromCharPtrAndSize(&c,1);
6012 }
6013 
6014 
6015 namespace swig {
6016   template <> struct traits< char > {
6017     typedef value_category category;
type_nameswig::traits6018     static const char* type_name() { return"char"; }
6019   };
6020   template <>  struct traits_asval< char > {
6021     typedef char value_type;
asvalswig::traits_asval6022     static int asval(PyObject *obj, value_type *val) {
6023       return SWIG_AsVal_char (obj, val);
6024     }
6025   };
6026   template <>  struct traits_from< char > {
6027     typedef char value_type;
fromswig::traits_from6028     static PyObject *from(const value_type& val) {
6029       return SWIG_From_char  (val);
6030     }
6031   };
6032 }
6033 
6034 
6035       namespace swig {
6036 	template <>  struct traits<std::vector< char const*, std::allocator< char const * > > > {
6037 	  typedef value_category category;
type_nameswig::traits6038 	  static const char* type_name() {
6039 	    return "std::vector<" "char" " const*," "std::allocator< char const * >" " >";
6040 	  }
6041 	};
6042       }
6043 
std_vector_Sl_char_SS_const_Sm__Sg__iterator(std::vector<char const * > * self,PyObject ** PYTHON_SELF)6044 SWIGINTERN swig::SwigPyIterator *std_vector_Sl_char_SS_const_Sm__Sg__iterator(std::vector< char const * > *self,PyObject **PYTHON_SELF){
6045       return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
6046     }
std_vector_Sl_char_SS_const_Sm__Sg____nonzero__(std::vector<char const * > const * self)6047 SWIGINTERN bool std_vector_Sl_char_SS_const_Sm__Sg____nonzero__(std::vector< char const * > const *self){
6048       return !(self->empty());
6049     }
std_vector_Sl_char_SS_const_Sm__Sg____bool__(std::vector<char const * > const * self)6050 SWIGINTERN bool std_vector_Sl_char_SS_const_Sm__Sg____bool__(std::vector< char const * > const *self){
6051       return !(self->empty());
6052     }
std_vector_Sl_char_SS_const_Sm__Sg____len__(std::vector<char const * > const * self)6053 SWIGINTERN std::vector< char const * >::size_type std_vector_Sl_char_SS_const_Sm__Sg____len__(std::vector< char const * > const *self){
6054       return self->size();
6055     }
std_vector_Sl_char_SS_const_Sm__Sg____getslice__(std::vector<char const * > * self,std::vector<char const * >::difference_type i,std::vector<char const * >::difference_type j)6056 SWIGINTERN std::vector< char const *,std::allocator< char const * > > *std_vector_Sl_char_SS_const_Sm__Sg____getslice__(std::vector< char const * > *self,std::vector< char const * >::difference_type i,std::vector< char const * >::difference_type j){
6057       return swig::getslice(self, i, j, 1);
6058     }
std_vector_Sl_char_SS_const_Sm__Sg____setslice____SWIG_0(std::vector<char const * > * self,std::vector<char const * >::difference_type i,std::vector<char const * >::difference_type j)6059 SWIGINTERN void std_vector_Sl_char_SS_const_Sm__Sg____setslice____SWIG_0(std::vector< char const * > *self,std::vector< char const * >::difference_type i,std::vector< char const * >::difference_type j){
6060       swig::setslice(self, i, j, 1, std::vector< char const*,std::allocator< char const * > >());
6061     }
std_vector_Sl_char_SS_const_Sm__Sg____setslice____SWIG_1(std::vector<char const * > * self,std::vector<char const * >::difference_type i,std::vector<char const * >::difference_type j,std::vector<char const *,std::allocator<char const * >> const & v)6062 SWIGINTERN void std_vector_Sl_char_SS_const_Sm__Sg____setslice____SWIG_1(std::vector< char const * > *self,std::vector< char const * >::difference_type i,std::vector< char const * >::difference_type j,std::vector< char const *,std::allocator< char const * > > const &v){
6063       swig::setslice(self, i, j, 1, v);
6064     }
std_vector_Sl_char_SS_const_Sm__Sg____delslice__(std::vector<char const * > * self,std::vector<char const * >::difference_type i,std::vector<char const * >::difference_type j)6065 SWIGINTERN void std_vector_Sl_char_SS_const_Sm__Sg____delslice__(std::vector< char const * > *self,std::vector< char const * >::difference_type i,std::vector< char const * >::difference_type j){
6066       swig::delslice(self, i, j, 1);
6067     }
std_vector_Sl_char_SS_const_Sm__Sg____delitem____SWIG_0(std::vector<char const * > * self,std::vector<char const * >::difference_type i)6068 SWIGINTERN void std_vector_Sl_char_SS_const_Sm__Sg____delitem____SWIG_0(std::vector< char const * > *self,std::vector< char const * >::difference_type i){
6069       swig::erase(self, swig::getpos(self, i));
6070     }
std_vector_Sl_char_SS_const_Sm__Sg____getitem____SWIG_0(std::vector<char const * > * self,PySliceObject * slice)6071 SWIGINTERN std::vector< char const *,std::allocator< char const * > > *std_vector_Sl_char_SS_const_Sm__Sg____getitem____SWIG_0(std::vector< char const * > *self,PySliceObject *slice){
6072       Py_ssize_t i, j, step;
6073       if( !PySlice_Check(slice) ) {
6074         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6075         return NULL;
6076       }
6077       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6078       std::vector< char const*,std::allocator< char const * > >::difference_type id = i;
6079       std::vector< char const*,std::allocator< char const * > >::difference_type jd = j;
6080       return swig::getslice(self, id, jd, step);
6081     }
std_vector_Sl_char_SS_const_Sm__Sg____setitem____SWIG_0(std::vector<char const * > * self,PySliceObject * slice,std::vector<char const *,std::allocator<char const * >> const & v)6082 SWIGINTERN void std_vector_Sl_char_SS_const_Sm__Sg____setitem____SWIG_0(std::vector< char const * > *self,PySliceObject *slice,std::vector< char const *,std::allocator< char const * > > const &v){
6083       Py_ssize_t i, j, step;
6084       if( !PySlice_Check(slice) ) {
6085         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6086         return;
6087       }
6088       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6089       std::vector< char const*,std::allocator< char const * > >::difference_type id = i;
6090       std::vector< char const*,std::allocator< char const * > >::difference_type jd = j;
6091       swig::setslice(self, id, jd, step, v);
6092     }
std_vector_Sl_char_SS_const_Sm__Sg____setitem____SWIG_1(std::vector<char const * > * self,PySliceObject * slice)6093 SWIGINTERN void std_vector_Sl_char_SS_const_Sm__Sg____setitem____SWIG_1(std::vector< char const * > *self,PySliceObject *slice){
6094       Py_ssize_t i, j, step;
6095       if( !PySlice_Check(slice) ) {
6096         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6097         return;
6098       }
6099       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6100       std::vector< char const*,std::allocator< char const * > >::difference_type id = i;
6101       std::vector< char const*,std::allocator< char const * > >::difference_type jd = j;
6102       swig::delslice(self, id, jd, step);
6103     }
std_vector_Sl_char_SS_const_Sm__Sg____delitem____SWIG_1(std::vector<char const * > * self,PySliceObject * slice)6104 SWIGINTERN void std_vector_Sl_char_SS_const_Sm__Sg____delitem____SWIG_1(std::vector< char const * > *self,PySliceObject *slice){
6105       Py_ssize_t i, j, step;
6106       if( !PySlice_Check(slice) ) {
6107         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6108         return;
6109       }
6110       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6111       std::vector< char const*,std::allocator< char const * > >::difference_type id = i;
6112       std::vector< char const*,std::allocator< char const * > >::difference_type jd = j;
6113       swig::delslice(self, id, jd, step);
6114     }
std_vector_Sl_char_SS_const_Sm__Sg____getitem____SWIG_1(std::vector<char const * > * self,std::vector<char const * >::difference_type i)6115 SWIGINTERN std::vector< char const * >::value_type std_vector_Sl_char_SS_const_Sm__Sg____getitem____SWIG_1(std::vector< char const * > *self,std::vector< char const * >::difference_type i){
6116       return *(swig::cgetpos(self, i));
6117     }
6118 
6119 SWIGINTERNINLINE PyObject *
SWIG_FromCharPtr(const char * cptr)6120 SWIG_FromCharPtr(const char *cptr)
6121 {
6122   return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
6123 }
6124 
6125 
6126 
6127 
std_vector_Sl_char_SS_const_Sm__Sg____setitem____SWIG_2(std::vector<char const * > * self,std::vector<char const * >::difference_type i,std::vector<char const * >::value_type x)6128 SWIGINTERN void std_vector_Sl_char_SS_const_Sm__Sg____setitem____SWIG_2(std::vector< char const * > *self,std::vector< char const * >::difference_type i,std::vector< char const * >::value_type x){
6129       *(swig::getpos(self,i)) = x;
6130     }
std_vector_Sl_char_SS_const_Sm__Sg__pop(std::vector<char const * > * self)6131 SWIGINTERN std::vector< char const * >::value_type std_vector_Sl_char_SS_const_Sm__Sg__pop(std::vector< char const * > *self){
6132       if (self->size() == 0)
6133 	throw std::out_of_range("pop from empty container");
6134       std::vector< char const*,std::allocator< char const * > >::value_type x = self->back();
6135       self->pop_back();
6136       return x;
6137     }
std_vector_Sl_char_SS_const_Sm__Sg__append(std::vector<char const * > * self,std::vector<char const * >::value_type x)6138 SWIGINTERN void std_vector_Sl_char_SS_const_Sm__Sg__append(std::vector< char const * > *self,std::vector< char const * >::value_type x){
6139       self->push_back(x);
6140     }
std_vector_Sl_char_SS_const_Sm__Sg__erase__SWIG_0(std::vector<char const * > * self,std::vector<char const * >::iterator pos)6141 SWIGINTERN std::vector< char const * >::iterator std_vector_Sl_char_SS_const_Sm__Sg__erase__SWIG_0(std::vector< char const * > *self,std::vector< char const * >::iterator pos){ return self->erase(pos); }
std_vector_Sl_char_SS_const_Sm__Sg__erase__SWIG_1(std::vector<char const * > * self,std::vector<char const * >::iterator first,std::vector<char const * >::iterator last)6142 SWIGINTERN std::vector< char const * >::iterator std_vector_Sl_char_SS_const_Sm__Sg__erase__SWIG_1(std::vector< char const * > *self,std::vector< char const * >::iterator first,std::vector< char const * >::iterator last){ return self->erase(first, last); }
std_vector_Sl_char_SS_const_Sm__Sg__insert__SWIG_0(std::vector<char const * > * self,std::vector<char const * >::iterator pos,std::vector<char const * >::value_type x)6143 SWIGINTERN std::vector< char const * >::iterator std_vector_Sl_char_SS_const_Sm__Sg__insert__SWIG_0(std::vector< char const * > *self,std::vector< char const * >::iterator pos,std::vector< char const * >::value_type x){ return self->insert(pos, x); }
std_vector_Sl_char_SS_const_Sm__Sg__insert__SWIG_1(std::vector<char const * > * self,std::vector<char const * >::iterator pos,std::vector<char const * >::size_type n,std::vector<char const * >::value_type x)6144 SWIGINTERN void std_vector_Sl_char_SS_const_Sm__Sg__insert__SWIG_1(std::vector< char const * > *self,std::vector< char const * >::iterator pos,std::vector< char const * >::size_type n,std::vector< char const * >::value_type x){ self->insert(pos, n, x); }
6145 
6146   namespace swig {
6147     template <>  struct traits< SOLUTION > {
6148       typedef pointer_category category;
type_nameswig::traits6149       static const char* type_name() { return"SOLUTION"; }
6150     };
6151   }
6152 
6153 
6154       namespace swig {
6155 	template <>  struct traits<std::vector< SOLUTION, std::allocator< SOLUTION > > > {
6156 	  typedef pointer_category category;
type_nameswig::traits6157 	  static const char* type_name() {
6158 	    return "std::vector<" "SOLUTION" "," "std::allocator< SOLUTION >" " >";
6159 	  }
6160 	};
6161       }
6162 
std_vector_Sl_SOLUTION_Sg__iterator(std::vector<SOLUTION> * self,PyObject ** PYTHON_SELF)6163 SWIGINTERN swig::SwigPyIterator *std_vector_Sl_SOLUTION_Sg__iterator(std::vector< SOLUTION > *self,PyObject **PYTHON_SELF){
6164       return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
6165     }
std_vector_Sl_SOLUTION_Sg____nonzero__(std::vector<SOLUTION> const * self)6166 SWIGINTERN bool std_vector_Sl_SOLUTION_Sg____nonzero__(std::vector< SOLUTION > const *self){
6167       return !(self->empty());
6168     }
std_vector_Sl_SOLUTION_Sg____bool__(std::vector<SOLUTION> const * self)6169 SWIGINTERN bool std_vector_Sl_SOLUTION_Sg____bool__(std::vector< SOLUTION > const *self){
6170       return !(self->empty());
6171     }
std_vector_Sl_SOLUTION_Sg____len__(std::vector<SOLUTION> const * self)6172 SWIGINTERN std::vector< SOLUTION >::size_type std_vector_Sl_SOLUTION_Sg____len__(std::vector< SOLUTION > const *self){
6173       return self->size();
6174     }
std_vector_Sl_SOLUTION_Sg____getslice__(std::vector<SOLUTION> * self,std::vector<SOLUTION>::difference_type i,std::vector<SOLUTION>::difference_type j)6175 SWIGINTERN std::vector< SOLUTION,std::allocator< SOLUTION > > *std_vector_Sl_SOLUTION_Sg____getslice__(std::vector< SOLUTION > *self,std::vector< SOLUTION >::difference_type i,std::vector< SOLUTION >::difference_type j){
6176       return swig::getslice(self, i, j, 1);
6177     }
std_vector_Sl_SOLUTION_Sg____setslice____SWIG_0(std::vector<SOLUTION> * self,std::vector<SOLUTION>::difference_type i,std::vector<SOLUTION>::difference_type j)6178 SWIGINTERN void std_vector_Sl_SOLUTION_Sg____setslice____SWIG_0(std::vector< SOLUTION > *self,std::vector< SOLUTION >::difference_type i,std::vector< SOLUTION >::difference_type j){
6179       swig::setslice(self, i, j, 1, std::vector< SOLUTION,std::allocator< SOLUTION > >());
6180     }
std_vector_Sl_SOLUTION_Sg____setslice____SWIG_1(std::vector<SOLUTION> * self,std::vector<SOLUTION>::difference_type i,std::vector<SOLUTION>::difference_type j,std::vector<SOLUTION,std::allocator<SOLUTION>> const & v)6181 SWIGINTERN void std_vector_Sl_SOLUTION_Sg____setslice____SWIG_1(std::vector< SOLUTION > *self,std::vector< SOLUTION >::difference_type i,std::vector< SOLUTION >::difference_type j,std::vector< SOLUTION,std::allocator< SOLUTION > > const &v){
6182       swig::setslice(self, i, j, 1, v);
6183     }
std_vector_Sl_SOLUTION_Sg____delslice__(std::vector<SOLUTION> * self,std::vector<SOLUTION>::difference_type i,std::vector<SOLUTION>::difference_type j)6184 SWIGINTERN void std_vector_Sl_SOLUTION_Sg____delslice__(std::vector< SOLUTION > *self,std::vector< SOLUTION >::difference_type i,std::vector< SOLUTION >::difference_type j){
6185       swig::delslice(self, i, j, 1);
6186     }
std_vector_Sl_SOLUTION_Sg____delitem____SWIG_0(std::vector<SOLUTION> * self,std::vector<SOLUTION>::difference_type i)6187 SWIGINTERN void std_vector_Sl_SOLUTION_Sg____delitem____SWIG_0(std::vector< SOLUTION > *self,std::vector< SOLUTION >::difference_type i){
6188       swig::erase(self, swig::getpos(self, i));
6189     }
std_vector_Sl_SOLUTION_Sg____getitem____SWIG_0(std::vector<SOLUTION> * self,PySliceObject * slice)6190 SWIGINTERN std::vector< SOLUTION,std::allocator< SOLUTION > > *std_vector_Sl_SOLUTION_Sg____getitem____SWIG_0(std::vector< SOLUTION > *self,PySliceObject *slice){
6191       Py_ssize_t i, j, step;
6192       if( !PySlice_Check(slice) ) {
6193         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6194         return NULL;
6195       }
6196       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6197       std::vector< SOLUTION,std::allocator< SOLUTION > >::difference_type id = i;
6198       std::vector< SOLUTION,std::allocator< SOLUTION > >::difference_type jd = j;
6199       return swig::getslice(self, id, jd, step);
6200     }
std_vector_Sl_SOLUTION_Sg____setitem____SWIG_0(std::vector<SOLUTION> * self,PySliceObject * slice,std::vector<SOLUTION,std::allocator<SOLUTION>> const & v)6201 SWIGINTERN void std_vector_Sl_SOLUTION_Sg____setitem____SWIG_0(std::vector< SOLUTION > *self,PySliceObject *slice,std::vector< SOLUTION,std::allocator< SOLUTION > > const &v){
6202       Py_ssize_t i, j, step;
6203       if( !PySlice_Check(slice) ) {
6204         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6205         return;
6206       }
6207       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6208       std::vector< SOLUTION,std::allocator< SOLUTION > >::difference_type id = i;
6209       std::vector< SOLUTION,std::allocator< SOLUTION > >::difference_type jd = j;
6210       swig::setslice(self, id, jd, step, v);
6211     }
std_vector_Sl_SOLUTION_Sg____setitem____SWIG_1(std::vector<SOLUTION> * self,PySliceObject * slice)6212 SWIGINTERN void std_vector_Sl_SOLUTION_Sg____setitem____SWIG_1(std::vector< SOLUTION > *self,PySliceObject *slice){
6213       Py_ssize_t i, j, step;
6214       if( !PySlice_Check(slice) ) {
6215         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6216         return;
6217       }
6218       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6219       std::vector< SOLUTION,std::allocator< SOLUTION > >::difference_type id = i;
6220       std::vector< SOLUTION,std::allocator< SOLUTION > >::difference_type jd = j;
6221       swig::delslice(self, id, jd, step);
6222     }
std_vector_Sl_SOLUTION_Sg____delitem____SWIG_1(std::vector<SOLUTION> * self,PySliceObject * slice)6223 SWIGINTERN void std_vector_Sl_SOLUTION_Sg____delitem____SWIG_1(std::vector< SOLUTION > *self,PySliceObject *slice){
6224       Py_ssize_t i, j, step;
6225       if( !PySlice_Check(slice) ) {
6226         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6227         return;
6228       }
6229       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6230       std::vector< SOLUTION,std::allocator< SOLUTION > >::difference_type id = i;
6231       std::vector< SOLUTION,std::allocator< SOLUTION > >::difference_type jd = j;
6232       swig::delslice(self, id, jd, step);
6233     }
std_vector_Sl_SOLUTION_Sg____getitem____SWIG_1(std::vector<SOLUTION> const * self,std::vector<SOLUTION>::difference_type i)6234 SWIGINTERN std::vector< SOLUTION >::value_type const &std_vector_Sl_SOLUTION_Sg____getitem____SWIG_1(std::vector< SOLUTION > const *self,std::vector< SOLUTION >::difference_type i){
6235       return *(swig::cgetpos(self, i));
6236     }
std_vector_Sl_SOLUTION_Sg____setitem____SWIG_2(std::vector<SOLUTION> * self,std::vector<SOLUTION>::difference_type i,std::vector<SOLUTION>::value_type const & x)6237 SWIGINTERN void std_vector_Sl_SOLUTION_Sg____setitem____SWIG_2(std::vector< SOLUTION > *self,std::vector< SOLUTION >::difference_type i,std::vector< SOLUTION >::value_type const &x){
6238       *(swig::getpos(self,i)) = x;
6239     }
std_vector_Sl_SOLUTION_Sg__pop(std::vector<SOLUTION> * self)6240 SWIGINTERN std::vector< SOLUTION >::value_type std_vector_Sl_SOLUTION_Sg__pop(std::vector< SOLUTION > *self){
6241       if (self->size() == 0)
6242 	throw std::out_of_range("pop from empty container");
6243       std::vector< SOLUTION,std::allocator< SOLUTION > >::value_type x = self->back();
6244       self->pop_back();
6245       return x;
6246     }
std_vector_Sl_SOLUTION_Sg__append(std::vector<SOLUTION> * self,std::vector<SOLUTION>::value_type const & x)6247 SWIGINTERN void std_vector_Sl_SOLUTION_Sg__append(std::vector< SOLUTION > *self,std::vector< SOLUTION >::value_type const &x){
6248       self->push_back(x);
6249     }
std_vector_Sl_SOLUTION_Sg__erase__SWIG_0(std::vector<SOLUTION> * self,std::vector<SOLUTION>::iterator pos)6250 SWIGINTERN std::vector< SOLUTION >::iterator std_vector_Sl_SOLUTION_Sg__erase__SWIG_0(std::vector< SOLUTION > *self,std::vector< SOLUTION >::iterator pos){ return self->erase(pos); }
std_vector_Sl_SOLUTION_Sg__erase__SWIG_1(std::vector<SOLUTION> * self,std::vector<SOLUTION>::iterator first,std::vector<SOLUTION>::iterator last)6251 SWIGINTERN std::vector< SOLUTION >::iterator std_vector_Sl_SOLUTION_Sg__erase__SWIG_1(std::vector< SOLUTION > *self,std::vector< SOLUTION >::iterator first,std::vector< SOLUTION >::iterator last){ return self->erase(first, last); }
std_vector_Sl_SOLUTION_Sg__insert__SWIG_0(std::vector<SOLUTION> * self,std::vector<SOLUTION>::iterator pos,std::vector<SOLUTION>::value_type const & x)6252 SWIGINTERN std::vector< SOLUTION >::iterator std_vector_Sl_SOLUTION_Sg__insert__SWIG_0(std::vector< SOLUTION > *self,std::vector< SOLUTION >::iterator pos,std::vector< SOLUTION >::value_type const &x){ return self->insert(pos, x); }
std_vector_Sl_SOLUTION_Sg__insert__SWIG_1(std::vector<SOLUTION> * self,std::vector<SOLUTION>::iterator pos,std::vector<SOLUTION>::size_type n,std::vector<SOLUTION>::value_type const & x)6253 SWIGINTERN void std_vector_Sl_SOLUTION_Sg__insert__SWIG_1(std::vector< SOLUTION > *self,std::vector< SOLUTION >::iterator pos,std::vector< SOLUTION >::size_type n,std::vector< SOLUTION >::value_type const &x){ self->insert(pos, n, x); }
6254 
6255   namespace swig {
6256     template <>  struct traits< COORDINATE > {
6257       typedef pointer_category category;
type_nameswig::traits6258       static const char* type_name() { return"COORDINATE"; }
6259     };
6260   }
6261 
6262 
6263       namespace swig {
6264 	template <>  struct traits<std::vector< COORDINATE, std::allocator< COORDINATE > > > {
6265 	  typedef pointer_category category;
type_nameswig::traits6266 	  static const char* type_name() {
6267 	    return "std::vector<" "COORDINATE" "," "std::allocator< COORDINATE >" " >";
6268 	  }
6269 	};
6270       }
6271 
std_vector_Sl_COORDINATE_Sg__iterator(std::vector<COORDINATE> * self,PyObject ** PYTHON_SELF)6272 SWIGINTERN swig::SwigPyIterator *std_vector_Sl_COORDINATE_Sg__iterator(std::vector< COORDINATE > *self,PyObject **PYTHON_SELF){
6273       return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
6274     }
std_vector_Sl_COORDINATE_Sg____nonzero__(std::vector<COORDINATE> const * self)6275 SWIGINTERN bool std_vector_Sl_COORDINATE_Sg____nonzero__(std::vector< COORDINATE > const *self){
6276       return !(self->empty());
6277     }
std_vector_Sl_COORDINATE_Sg____bool__(std::vector<COORDINATE> const * self)6278 SWIGINTERN bool std_vector_Sl_COORDINATE_Sg____bool__(std::vector< COORDINATE > const *self){
6279       return !(self->empty());
6280     }
std_vector_Sl_COORDINATE_Sg____len__(std::vector<COORDINATE> const * self)6281 SWIGINTERN std::vector< COORDINATE >::size_type std_vector_Sl_COORDINATE_Sg____len__(std::vector< COORDINATE > const *self){
6282       return self->size();
6283     }
std_vector_Sl_COORDINATE_Sg____getslice__(std::vector<COORDINATE> * self,std::vector<COORDINATE>::difference_type i,std::vector<COORDINATE>::difference_type j)6284 SWIGINTERN std::vector< COORDINATE,std::allocator< COORDINATE > > *std_vector_Sl_COORDINATE_Sg____getslice__(std::vector< COORDINATE > *self,std::vector< COORDINATE >::difference_type i,std::vector< COORDINATE >::difference_type j){
6285       return swig::getslice(self, i, j, 1);
6286     }
std_vector_Sl_COORDINATE_Sg____setslice____SWIG_0(std::vector<COORDINATE> * self,std::vector<COORDINATE>::difference_type i,std::vector<COORDINATE>::difference_type j)6287 SWIGINTERN void std_vector_Sl_COORDINATE_Sg____setslice____SWIG_0(std::vector< COORDINATE > *self,std::vector< COORDINATE >::difference_type i,std::vector< COORDINATE >::difference_type j){
6288       swig::setslice(self, i, j, 1, std::vector< COORDINATE,std::allocator< COORDINATE > >());
6289     }
std_vector_Sl_COORDINATE_Sg____setslice____SWIG_1(std::vector<COORDINATE> * self,std::vector<COORDINATE>::difference_type i,std::vector<COORDINATE>::difference_type j,std::vector<COORDINATE,std::allocator<COORDINATE>> const & v)6290 SWIGINTERN void std_vector_Sl_COORDINATE_Sg____setslice____SWIG_1(std::vector< COORDINATE > *self,std::vector< COORDINATE >::difference_type i,std::vector< COORDINATE >::difference_type j,std::vector< COORDINATE,std::allocator< COORDINATE > > const &v){
6291       swig::setslice(self, i, j, 1, v);
6292     }
std_vector_Sl_COORDINATE_Sg____delslice__(std::vector<COORDINATE> * self,std::vector<COORDINATE>::difference_type i,std::vector<COORDINATE>::difference_type j)6293 SWIGINTERN void std_vector_Sl_COORDINATE_Sg____delslice__(std::vector< COORDINATE > *self,std::vector< COORDINATE >::difference_type i,std::vector< COORDINATE >::difference_type j){
6294       swig::delslice(self, i, j, 1);
6295     }
std_vector_Sl_COORDINATE_Sg____delitem____SWIG_0(std::vector<COORDINATE> * self,std::vector<COORDINATE>::difference_type i)6296 SWIGINTERN void std_vector_Sl_COORDINATE_Sg____delitem____SWIG_0(std::vector< COORDINATE > *self,std::vector< COORDINATE >::difference_type i){
6297       swig::erase(self, swig::getpos(self, i));
6298     }
std_vector_Sl_COORDINATE_Sg____getitem____SWIG_0(std::vector<COORDINATE> * self,PySliceObject * slice)6299 SWIGINTERN std::vector< COORDINATE,std::allocator< COORDINATE > > *std_vector_Sl_COORDINATE_Sg____getitem____SWIG_0(std::vector< COORDINATE > *self,PySliceObject *slice){
6300       Py_ssize_t i, j, step;
6301       if( !PySlice_Check(slice) ) {
6302         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6303         return NULL;
6304       }
6305       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6306       std::vector< COORDINATE,std::allocator< COORDINATE > >::difference_type id = i;
6307       std::vector< COORDINATE,std::allocator< COORDINATE > >::difference_type jd = j;
6308       return swig::getslice(self, id, jd, step);
6309     }
std_vector_Sl_COORDINATE_Sg____setitem____SWIG_0(std::vector<COORDINATE> * self,PySliceObject * slice,std::vector<COORDINATE,std::allocator<COORDINATE>> const & v)6310 SWIGINTERN void std_vector_Sl_COORDINATE_Sg____setitem____SWIG_0(std::vector< COORDINATE > *self,PySliceObject *slice,std::vector< COORDINATE,std::allocator< COORDINATE > > const &v){
6311       Py_ssize_t i, j, step;
6312       if( !PySlice_Check(slice) ) {
6313         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6314         return;
6315       }
6316       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6317       std::vector< COORDINATE,std::allocator< COORDINATE > >::difference_type id = i;
6318       std::vector< COORDINATE,std::allocator< COORDINATE > >::difference_type jd = j;
6319       swig::setslice(self, id, jd, step, v);
6320     }
std_vector_Sl_COORDINATE_Sg____setitem____SWIG_1(std::vector<COORDINATE> * self,PySliceObject * slice)6321 SWIGINTERN void std_vector_Sl_COORDINATE_Sg____setitem____SWIG_1(std::vector< COORDINATE > *self,PySliceObject *slice){
6322       Py_ssize_t i, j, step;
6323       if( !PySlice_Check(slice) ) {
6324         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6325         return;
6326       }
6327       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6328       std::vector< COORDINATE,std::allocator< COORDINATE > >::difference_type id = i;
6329       std::vector< COORDINATE,std::allocator< COORDINATE > >::difference_type jd = j;
6330       swig::delslice(self, id, jd, step);
6331     }
std_vector_Sl_COORDINATE_Sg____delitem____SWIG_1(std::vector<COORDINATE> * self,PySliceObject * slice)6332 SWIGINTERN void std_vector_Sl_COORDINATE_Sg____delitem____SWIG_1(std::vector< COORDINATE > *self,PySliceObject *slice){
6333       Py_ssize_t i, j, step;
6334       if( !PySlice_Check(slice) ) {
6335         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6336         return;
6337       }
6338       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6339       std::vector< COORDINATE,std::allocator< COORDINATE > >::difference_type id = i;
6340       std::vector< COORDINATE,std::allocator< COORDINATE > >::difference_type jd = j;
6341       swig::delslice(self, id, jd, step);
6342     }
std_vector_Sl_COORDINATE_Sg____getitem____SWIG_1(std::vector<COORDINATE> const * self,std::vector<COORDINATE>::difference_type i)6343 SWIGINTERN std::vector< COORDINATE >::value_type const &std_vector_Sl_COORDINATE_Sg____getitem____SWIG_1(std::vector< COORDINATE > const *self,std::vector< COORDINATE >::difference_type i){
6344       return *(swig::cgetpos(self, i));
6345     }
std_vector_Sl_COORDINATE_Sg____setitem____SWIG_2(std::vector<COORDINATE> * self,std::vector<COORDINATE>::difference_type i,std::vector<COORDINATE>::value_type const & x)6346 SWIGINTERN void std_vector_Sl_COORDINATE_Sg____setitem____SWIG_2(std::vector< COORDINATE > *self,std::vector< COORDINATE >::difference_type i,std::vector< COORDINATE >::value_type const &x){
6347       *(swig::getpos(self,i)) = x;
6348     }
std_vector_Sl_COORDINATE_Sg__pop(std::vector<COORDINATE> * self)6349 SWIGINTERN std::vector< COORDINATE >::value_type std_vector_Sl_COORDINATE_Sg__pop(std::vector< COORDINATE > *self){
6350       if (self->size() == 0)
6351 	throw std::out_of_range("pop from empty container");
6352       std::vector< COORDINATE,std::allocator< COORDINATE > >::value_type x = self->back();
6353       self->pop_back();
6354       return x;
6355     }
std_vector_Sl_COORDINATE_Sg__append(std::vector<COORDINATE> * self,std::vector<COORDINATE>::value_type const & x)6356 SWIGINTERN void std_vector_Sl_COORDINATE_Sg__append(std::vector< COORDINATE > *self,std::vector< COORDINATE >::value_type const &x){
6357       self->push_back(x);
6358     }
std_vector_Sl_COORDINATE_Sg__erase__SWIG_0(std::vector<COORDINATE> * self,std::vector<COORDINATE>::iterator pos)6359 SWIGINTERN std::vector< COORDINATE >::iterator std_vector_Sl_COORDINATE_Sg__erase__SWIG_0(std::vector< COORDINATE > *self,std::vector< COORDINATE >::iterator pos){ return self->erase(pos); }
std_vector_Sl_COORDINATE_Sg__erase__SWIG_1(std::vector<COORDINATE> * self,std::vector<COORDINATE>::iterator first,std::vector<COORDINATE>::iterator last)6360 SWIGINTERN std::vector< COORDINATE >::iterator std_vector_Sl_COORDINATE_Sg__erase__SWIG_1(std::vector< COORDINATE > *self,std::vector< COORDINATE >::iterator first,std::vector< COORDINATE >::iterator last){ return self->erase(first, last); }
std_vector_Sl_COORDINATE_Sg__insert__SWIG_0(std::vector<COORDINATE> * self,std::vector<COORDINATE>::iterator pos,std::vector<COORDINATE>::value_type const & x)6361 SWIGINTERN std::vector< COORDINATE >::iterator std_vector_Sl_COORDINATE_Sg__insert__SWIG_0(std::vector< COORDINATE > *self,std::vector< COORDINATE >::iterator pos,std::vector< COORDINATE >::value_type const &x){ return self->insert(pos, x); }
std_vector_Sl_COORDINATE_Sg__insert__SWIG_1(std::vector<COORDINATE> * self,std::vector<COORDINATE>::iterator pos,std::vector<COORDINATE>::size_type n,std::vector<COORDINATE>::value_type const & x)6362 SWIGINTERN void std_vector_Sl_COORDINATE_Sg__insert__SWIG_1(std::vector< COORDINATE > *self,std::vector< COORDINATE >::iterator pos,std::vector< COORDINATE >::size_type n,std::vector< COORDINATE >::value_type const &x){ self->insert(pos, n, x); }
6363 
6364       namespace swig {
6365 	template <>  struct traits<std::vector< std::vector< double,std::allocator< double > >, std::allocator< std::vector< double,std::allocator< double > > > > > {
6366 	  typedef pointer_category category;
type_nameswig::traits6367 	  static const char* type_name() {
6368 	    return "std::vector<" "std::vector< double,std::allocator< double > >" "," "std::allocator< std::vector< double,std::allocator< double > > >" " >";
6369 	  }
6370 	};
6371       }
6372 
std_vector_Sl_std_vector_Sl_double_Sg__Sg__iterator(std::vector<std::vector<double>> * self,PyObject ** PYTHON_SELF)6373 SWIGINTERN swig::SwigPyIterator *std_vector_Sl_std_vector_Sl_double_Sg__Sg__iterator(std::vector< std::vector< double > > *self,PyObject **PYTHON_SELF){
6374       return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
6375     }
std_vector_Sl_std_vector_Sl_double_Sg__Sg____nonzero__(std::vector<std::vector<double>> const * self)6376 SWIGINTERN bool std_vector_Sl_std_vector_Sl_double_Sg__Sg____nonzero__(std::vector< std::vector< double > > const *self){
6377       return !(self->empty());
6378     }
std_vector_Sl_std_vector_Sl_double_Sg__Sg____bool__(std::vector<std::vector<double>> const * self)6379 SWIGINTERN bool std_vector_Sl_std_vector_Sl_double_Sg__Sg____bool__(std::vector< std::vector< double > > const *self){
6380       return !(self->empty());
6381     }
std_vector_Sl_std_vector_Sl_double_Sg__Sg____len__(std::vector<std::vector<double>> const * self)6382 SWIGINTERN std::vector< std::vector< double > >::size_type std_vector_Sl_std_vector_Sl_double_Sg__Sg____len__(std::vector< std::vector< double > > const *self){
6383       return self->size();
6384     }
std_vector_Sl_std_vector_Sl_double_Sg__Sg____getslice__(std::vector<std::vector<double>> * self,std::vector<std::vector<double>>::difference_type i,std::vector<std::vector<double>>::difference_type j)6385 SWIGINTERN std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *std_vector_Sl_std_vector_Sl_double_Sg__Sg____getslice__(std::vector< std::vector< double > > *self,std::vector< std::vector< double > >::difference_type i,std::vector< std::vector< double > >::difference_type j){
6386       return swig::getslice(self, i, j, 1);
6387     }
std_vector_Sl_std_vector_Sl_double_Sg__Sg____setslice____SWIG_0(std::vector<std::vector<double>> * self,std::vector<std::vector<double>>::difference_type i,std::vector<std::vector<double>>::difference_type j)6388 SWIGINTERN void std_vector_Sl_std_vector_Sl_double_Sg__Sg____setslice____SWIG_0(std::vector< std::vector< double > > *self,std::vector< std::vector< double > >::difference_type i,std::vector< std::vector< double > >::difference_type j){
6389       swig::setslice(self, i, j, 1, std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >());
6390     }
std_vector_Sl_std_vector_Sl_double_Sg__Sg____setslice____SWIG_1(std::vector<std::vector<double>> * self,std::vector<std::vector<double>>::difference_type i,std::vector<std::vector<double>>::difference_type j,std::vector<std::vector<double,std::allocator<double>>,std::allocator<std::vector<double,std::allocator<double>>>> const & v)6391 SWIGINTERN void std_vector_Sl_std_vector_Sl_double_Sg__Sg____setslice____SWIG_1(std::vector< std::vector< double > > *self,std::vector< std::vector< double > >::difference_type i,std::vector< std::vector< double > >::difference_type j,std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > const &v){
6392       swig::setslice(self, i, j, 1, v);
6393     }
std_vector_Sl_std_vector_Sl_double_Sg__Sg____delslice__(std::vector<std::vector<double>> * self,std::vector<std::vector<double>>::difference_type i,std::vector<std::vector<double>>::difference_type j)6394 SWIGINTERN void std_vector_Sl_std_vector_Sl_double_Sg__Sg____delslice__(std::vector< std::vector< double > > *self,std::vector< std::vector< double > >::difference_type i,std::vector< std::vector< double > >::difference_type j){
6395       swig::delslice(self, i, j, 1);
6396     }
std_vector_Sl_std_vector_Sl_double_Sg__Sg____delitem____SWIG_0(std::vector<std::vector<double>> * self,std::vector<std::vector<double>>::difference_type i)6397 SWIGINTERN void std_vector_Sl_std_vector_Sl_double_Sg__Sg____delitem____SWIG_0(std::vector< std::vector< double > > *self,std::vector< std::vector< double > >::difference_type i){
6398       swig::erase(self, swig::getpos(self, i));
6399     }
std_vector_Sl_std_vector_Sl_double_Sg__Sg____getitem____SWIG_0(std::vector<std::vector<double>> * self,PySliceObject * slice)6400 SWIGINTERN std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *std_vector_Sl_std_vector_Sl_double_Sg__Sg____getitem____SWIG_0(std::vector< std::vector< double > > *self,PySliceObject *slice){
6401       Py_ssize_t i, j, step;
6402       if( !PySlice_Check(slice) ) {
6403         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6404         return NULL;
6405       }
6406       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6407       std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >::difference_type id = i;
6408       std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >::difference_type jd = j;
6409       return swig::getslice(self, id, jd, step);
6410     }
std_vector_Sl_std_vector_Sl_double_Sg__Sg____setitem____SWIG_0(std::vector<std::vector<double>> * self,PySliceObject * slice,std::vector<std::vector<double,std::allocator<double>>,std::allocator<std::vector<double,std::allocator<double>>>> const & v)6411 SWIGINTERN void std_vector_Sl_std_vector_Sl_double_Sg__Sg____setitem____SWIG_0(std::vector< std::vector< double > > *self,PySliceObject *slice,std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > const &v){
6412       Py_ssize_t i, j, step;
6413       if( !PySlice_Check(slice) ) {
6414         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6415         return;
6416       }
6417       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6418       std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >::difference_type id = i;
6419       std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >::difference_type jd = j;
6420       swig::setslice(self, id, jd, step, v);
6421     }
std_vector_Sl_std_vector_Sl_double_Sg__Sg____setitem____SWIG_1(std::vector<std::vector<double>> * self,PySliceObject * slice)6422 SWIGINTERN void std_vector_Sl_std_vector_Sl_double_Sg__Sg____setitem____SWIG_1(std::vector< std::vector< double > > *self,PySliceObject *slice){
6423       Py_ssize_t i, j, step;
6424       if( !PySlice_Check(slice) ) {
6425         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6426         return;
6427       }
6428       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6429       std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >::difference_type id = i;
6430       std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >::difference_type jd = j;
6431       swig::delslice(self, id, jd, step);
6432     }
std_vector_Sl_std_vector_Sl_double_Sg__Sg____delitem____SWIG_1(std::vector<std::vector<double>> * self,PySliceObject * slice)6433 SWIGINTERN void std_vector_Sl_std_vector_Sl_double_Sg__Sg____delitem____SWIG_1(std::vector< std::vector< double > > *self,PySliceObject *slice){
6434       Py_ssize_t i, j, step;
6435       if( !PySlice_Check(slice) ) {
6436         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6437         return;
6438       }
6439       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6440       std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >::difference_type id = i;
6441       std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >::difference_type jd = j;
6442       swig::delslice(self, id, jd, step);
6443     }
std_vector_Sl_std_vector_Sl_double_Sg__Sg____getitem____SWIG_1(std::vector<std::vector<double>> const * self,std::vector<std::vector<double>>::difference_type i)6444 SWIGINTERN std::vector< std::vector< double > >::value_type const &std_vector_Sl_std_vector_Sl_double_Sg__Sg____getitem____SWIG_1(std::vector< std::vector< double > > const *self,std::vector< std::vector< double > >::difference_type i){
6445       return *(swig::cgetpos(self, i));
6446     }
std_vector_Sl_std_vector_Sl_double_Sg__Sg____setitem____SWIG_2(std::vector<std::vector<double>> * self,std::vector<std::vector<double>>::difference_type i,std::vector<std::vector<double>>::value_type const & x)6447 SWIGINTERN void std_vector_Sl_std_vector_Sl_double_Sg__Sg____setitem____SWIG_2(std::vector< std::vector< double > > *self,std::vector< std::vector< double > >::difference_type i,std::vector< std::vector< double > >::value_type const &x){
6448       *(swig::getpos(self,i)) = x;
6449     }
std_vector_Sl_std_vector_Sl_double_Sg__Sg__pop(std::vector<std::vector<double>> * self)6450 SWIGINTERN std::vector< std::vector< double > >::value_type std_vector_Sl_std_vector_Sl_double_Sg__Sg__pop(std::vector< std::vector< double > > *self){
6451       if (self->size() == 0)
6452 	throw std::out_of_range("pop from empty container");
6453       std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >::value_type x = self->back();
6454       self->pop_back();
6455       return x;
6456     }
std_vector_Sl_std_vector_Sl_double_Sg__Sg__append(std::vector<std::vector<double>> * self,std::vector<std::vector<double>>::value_type const & x)6457 SWIGINTERN void std_vector_Sl_std_vector_Sl_double_Sg__Sg__append(std::vector< std::vector< double > > *self,std::vector< std::vector< double > >::value_type const &x){
6458       self->push_back(x);
6459     }
std_vector_Sl_std_vector_Sl_double_Sg__Sg__erase__SWIG_0(std::vector<std::vector<double>> * self,std::vector<std::vector<double>>::iterator pos)6460 SWIGINTERN std::vector< std::vector< double > >::iterator std_vector_Sl_std_vector_Sl_double_Sg__Sg__erase__SWIG_0(std::vector< std::vector< double > > *self,std::vector< std::vector< double > >::iterator pos){ return self->erase(pos); }
std_vector_Sl_std_vector_Sl_double_Sg__Sg__erase__SWIG_1(std::vector<std::vector<double>> * self,std::vector<std::vector<double>>::iterator first,std::vector<std::vector<double>>::iterator last)6461 SWIGINTERN std::vector< std::vector< double > >::iterator std_vector_Sl_std_vector_Sl_double_Sg__Sg__erase__SWIG_1(std::vector< std::vector< double > > *self,std::vector< std::vector< double > >::iterator first,std::vector< std::vector< double > >::iterator last){ return self->erase(first, last); }
std_vector_Sl_std_vector_Sl_double_Sg__Sg__insert__SWIG_0(std::vector<std::vector<double>> * self,std::vector<std::vector<double>>::iterator pos,std::vector<std::vector<double>>::value_type const & x)6462 SWIGINTERN std::vector< std::vector< double > >::iterator std_vector_Sl_std_vector_Sl_double_Sg__Sg__insert__SWIG_0(std::vector< std::vector< double > > *self,std::vector< std::vector< double > >::iterator pos,std::vector< std::vector< double > >::value_type const &x){ return self->insert(pos, x); }
std_vector_Sl_std_vector_Sl_double_Sg__Sg__insert__SWIG_1(std::vector<std::vector<double>> * self,std::vector<std::vector<double>>::iterator pos,std::vector<std::vector<double>>::size_type n,std::vector<std::vector<double>>::value_type const & x)6463 SWIGINTERN void std_vector_Sl_std_vector_Sl_double_Sg__Sg__insert__SWIG_1(std::vector< std::vector< double > > *self,std::vector< std::vector< double > >::iterator pos,std::vector< std::vector< double > >::size_type n,std::vector< std::vector< double > >::value_type const &x){ self->insert(pos, n, x); }
6464 
6465       namespace swig {
6466 	template <>  struct traits<std::vector< std::vector< int,std::allocator< int > >, std::allocator< std::vector< int,std::allocator< int > > > > > {
6467 	  typedef pointer_category category;
type_nameswig::traits6468 	  static const char* type_name() {
6469 	    return "std::vector<" "std::vector< int,std::allocator< int > >" "," "std::allocator< std::vector< int,std::allocator< int > > >" " >";
6470 	  }
6471 	};
6472       }
6473 
std_vector_Sl_std_vector_Sl_int_Sg__Sg__iterator(std::vector<std::vector<int>> * self,PyObject ** PYTHON_SELF)6474 SWIGINTERN swig::SwigPyIterator *std_vector_Sl_std_vector_Sl_int_Sg__Sg__iterator(std::vector< std::vector< int > > *self,PyObject **PYTHON_SELF){
6475       return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
6476     }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____nonzero__(std::vector<std::vector<int>> const * self)6477 SWIGINTERN bool std_vector_Sl_std_vector_Sl_int_Sg__Sg____nonzero__(std::vector< std::vector< int > > const *self){
6478       return !(self->empty());
6479     }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____bool__(std::vector<std::vector<int>> const * self)6480 SWIGINTERN bool std_vector_Sl_std_vector_Sl_int_Sg__Sg____bool__(std::vector< std::vector< int > > const *self){
6481       return !(self->empty());
6482     }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____len__(std::vector<std::vector<int>> const * self)6483 SWIGINTERN std::vector< std::vector< int > >::size_type std_vector_Sl_std_vector_Sl_int_Sg__Sg____len__(std::vector< std::vector< int > > const *self){
6484       return self->size();
6485     }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____getslice__(std::vector<std::vector<int>> * self,std::vector<std::vector<int>>::difference_type i,std::vector<std::vector<int>>::difference_type j)6486 SWIGINTERN std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *std_vector_Sl_std_vector_Sl_int_Sg__Sg____getslice__(std::vector< std::vector< int > > *self,std::vector< std::vector< int > >::difference_type i,std::vector< std::vector< int > >::difference_type j){
6487       return swig::getslice(self, i, j, 1);
6488     }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____setslice____SWIG_0(std::vector<std::vector<int>> * self,std::vector<std::vector<int>>::difference_type i,std::vector<std::vector<int>>::difference_type j)6489 SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg____setslice____SWIG_0(std::vector< std::vector< int > > *self,std::vector< std::vector< int > >::difference_type i,std::vector< std::vector< int > >::difference_type j){
6490       swig::setslice(self, i, j, 1, std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >());
6491     }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____setslice____SWIG_1(std::vector<std::vector<int>> * self,std::vector<std::vector<int>>::difference_type i,std::vector<std::vector<int>>::difference_type j,std::vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>> const & v)6492 SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg____setslice____SWIG_1(std::vector< std::vector< int > > *self,std::vector< std::vector< int > >::difference_type i,std::vector< std::vector< int > >::difference_type j,std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > const &v){
6493       swig::setslice(self, i, j, 1, v);
6494     }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____delslice__(std::vector<std::vector<int>> * self,std::vector<std::vector<int>>::difference_type i,std::vector<std::vector<int>>::difference_type j)6495 SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg____delslice__(std::vector< std::vector< int > > *self,std::vector< std::vector< int > >::difference_type i,std::vector< std::vector< int > >::difference_type j){
6496       swig::delslice(self, i, j, 1);
6497     }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____delitem____SWIG_0(std::vector<std::vector<int>> * self,std::vector<std::vector<int>>::difference_type i)6498 SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg____delitem____SWIG_0(std::vector< std::vector< int > > *self,std::vector< std::vector< int > >::difference_type i){
6499       swig::erase(self, swig::getpos(self, i));
6500     }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____getitem____SWIG_0(std::vector<std::vector<int>> * self,PySliceObject * slice)6501 SWIGINTERN std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *std_vector_Sl_std_vector_Sl_int_Sg__Sg____getitem____SWIG_0(std::vector< std::vector< int > > *self,PySliceObject *slice){
6502       Py_ssize_t i, j, step;
6503       if( !PySlice_Check(slice) ) {
6504         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6505         return NULL;
6506       }
6507       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6508       std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >::difference_type id = i;
6509       std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >::difference_type jd = j;
6510       return swig::getslice(self, id, jd, step);
6511     }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____setitem____SWIG_0(std::vector<std::vector<int>> * self,PySliceObject * slice,std::vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>> const & v)6512 SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg____setitem____SWIG_0(std::vector< std::vector< int > > *self,PySliceObject *slice,std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > const &v){
6513       Py_ssize_t i, j, step;
6514       if( !PySlice_Check(slice) ) {
6515         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6516         return;
6517       }
6518       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6519       std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >::difference_type id = i;
6520       std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >::difference_type jd = j;
6521       swig::setslice(self, id, jd, step, v);
6522     }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____setitem____SWIG_1(std::vector<std::vector<int>> * self,PySliceObject * slice)6523 SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg____setitem____SWIG_1(std::vector< std::vector< int > > *self,PySliceObject *slice){
6524       Py_ssize_t i, j, step;
6525       if( !PySlice_Check(slice) ) {
6526         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6527         return;
6528       }
6529       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6530       std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >::difference_type id = i;
6531       std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >::difference_type jd = j;
6532       swig::delslice(self, id, jd, step);
6533     }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____delitem____SWIG_1(std::vector<std::vector<int>> * self,PySliceObject * slice)6534 SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg____delitem____SWIG_1(std::vector< std::vector< int > > *self,PySliceObject *slice){
6535       Py_ssize_t i, j, step;
6536       if( !PySlice_Check(slice) ) {
6537         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6538         return;
6539       }
6540       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6541       std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >::difference_type id = i;
6542       std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >::difference_type jd = j;
6543       swig::delslice(self, id, jd, step);
6544     }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____getitem____SWIG_1(std::vector<std::vector<int>> const * self,std::vector<std::vector<int>>::difference_type i)6545 SWIGINTERN std::vector< std::vector< int > >::value_type const &std_vector_Sl_std_vector_Sl_int_Sg__Sg____getitem____SWIG_1(std::vector< std::vector< int > > const *self,std::vector< std::vector< int > >::difference_type i){
6546       return *(swig::cgetpos(self, i));
6547     }
std_vector_Sl_std_vector_Sl_int_Sg__Sg____setitem____SWIG_2(std::vector<std::vector<int>> * self,std::vector<std::vector<int>>::difference_type i,std::vector<std::vector<int>>::value_type const & x)6548 SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg____setitem____SWIG_2(std::vector< std::vector< int > > *self,std::vector< std::vector< int > >::difference_type i,std::vector< std::vector< int > >::value_type const &x){
6549       *(swig::getpos(self,i)) = x;
6550     }
std_vector_Sl_std_vector_Sl_int_Sg__Sg__pop(std::vector<std::vector<int>> * self)6551 SWIGINTERN std::vector< std::vector< int > >::value_type std_vector_Sl_std_vector_Sl_int_Sg__Sg__pop(std::vector< std::vector< int > > *self){
6552       if (self->size() == 0)
6553 	throw std::out_of_range("pop from empty container");
6554       std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >::value_type x = self->back();
6555       self->pop_back();
6556       return x;
6557     }
std_vector_Sl_std_vector_Sl_int_Sg__Sg__append(std::vector<std::vector<int>> * self,std::vector<std::vector<int>>::value_type const & x)6558 SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__append(std::vector< std::vector< int > > *self,std::vector< std::vector< int > >::value_type const &x){
6559       self->push_back(x);
6560     }
std_vector_Sl_std_vector_Sl_int_Sg__Sg__erase__SWIG_0(std::vector<std::vector<int>> * self,std::vector<std::vector<int>>::iterator pos)6561 SWIGINTERN std::vector< std::vector< int > >::iterator std_vector_Sl_std_vector_Sl_int_Sg__Sg__erase__SWIG_0(std::vector< std::vector< int > > *self,std::vector< std::vector< int > >::iterator pos){ return self->erase(pos); }
std_vector_Sl_std_vector_Sl_int_Sg__Sg__erase__SWIG_1(std::vector<std::vector<int>> * self,std::vector<std::vector<int>>::iterator first,std::vector<std::vector<int>>::iterator last)6562 SWIGINTERN std::vector< std::vector< int > >::iterator std_vector_Sl_std_vector_Sl_int_Sg__Sg__erase__SWIG_1(std::vector< std::vector< int > > *self,std::vector< std::vector< int > >::iterator first,std::vector< std::vector< int > >::iterator last){ return self->erase(first, last); }
std_vector_Sl_std_vector_Sl_int_Sg__Sg__insert__SWIG_0(std::vector<std::vector<int>> * self,std::vector<std::vector<int>>::iterator pos,std::vector<std::vector<int>>::value_type const & x)6563 SWIGINTERN std::vector< std::vector< int > >::iterator std_vector_Sl_std_vector_Sl_int_Sg__Sg__insert__SWIG_0(std::vector< std::vector< int > > *self,std::vector< std::vector< int > >::iterator pos,std::vector< std::vector< int > >::value_type const &x){ return self->insert(pos, x); }
std_vector_Sl_std_vector_Sl_int_Sg__Sg__insert__SWIG_1(std::vector<std::vector<int>> * self,std::vector<std::vector<int>>::iterator pos,std::vector<std::vector<int>>::size_type n,std::vector<std::vector<int>>::value_type const & x)6564 SWIGINTERN void std_vector_Sl_std_vector_Sl_int_Sg__Sg__insert__SWIG_1(std::vector< std::vector< int > > *self,std::vector< std::vector< int > >::iterator pos,std::vector< std::vector< int > >::size_type n,std::vector< std::vector< int > >::value_type const &x){ self->insert(pos, n, x); }
6565 
6566   namespace swig {
6567     template <>  struct traits< vrna_ep_t > {
6568       typedef pointer_category category;
type_nameswig::traits6569       static const char* type_name() { return"vrna_ep_t"; }
6570     };
6571   }
6572 
6573 
6574       namespace swig {
6575 	template <>  struct traits<std::vector< vrna_ep_t, std::allocator< vrna_ep_t > > > {
6576 	  typedef pointer_category category;
type_nameswig::traits6577 	  static const char* type_name() {
6578 	    return "std::vector<" "vrna_ep_t" "," "std::allocator< vrna_ep_t >" " >";
6579 	  }
6580 	};
6581       }
6582 
std_vector_Sl_vrna_ep_t_Sg__iterator(std::vector<vrna_ep_t> * self,PyObject ** PYTHON_SELF)6583 SWIGINTERN swig::SwigPyIterator *std_vector_Sl_vrna_ep_t_Sg__iterator(std::vector< vrna_ep_t > *self,PyObject **PYTHON_SELF){
6584       return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
6585     }
std_vector_Sl_vrna_ep_t_Sg____nonzero__(std::vector<vrna_ep_t> const * self)6586 SWIGINTERN bool std_vector_Sl_vrna_ep_t_Sg____nonzero__(std::vector< vrna_ep_t > const *self){
6587       return !(self->empty());
6588     }
std_vector_Sl_vrna_ep_t_Sg____bool__(std::vector<vrna_ep_t> const * self)6589 SWIGINTERN bool std_vector_Sl_vrna_ep_t_Sg____bool__(std::vector< vrna_ep_t > const *self){
6590       return !(self->empty());
6591     }
std_vector_Sl_vrna_ep_t_Sg____len__(std::vector<vrna_ep_t> const * self)6592 SWIGINTERN std::vector< vrna_ep_t >::size_type std_vector_Sl_vrna_ep_t_Sg____len__(std::vector< vrna_ep_t > const *self){
6593       return self->size();
6594     }
std_vector_Sl_vrna_ep_t_Sg____getslice__(std::vector<vrna_ep_t> * self,std::vector<vrna_ep_t>::difference_type i,std::vector<vrna_ep_t>::difference_type j)6595 SWIGINTERN std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *std_vector_Sl_vrna_ep_t_Sg____getslice__(std::vector< vrna_ep_t > *self,std::vector< vrna_ep_t >::difference_type i,std::vector< vrna_ep_t >::difference_type j){
6596       return swig::getslice(self, i, j, 1);
6597     }
std_vector_Sl_vrna_ep_t_Sg____setslice____SWIG_0(std::vector<vrna_ep_t> * self,std::vector<vrna_ep_t>::difference_type i,std::vector<vrna_ep_t>::difference_type j)6598 SWIGINTERN void std_vector_Sl_vrna_ep_t_Sg____setslice____SWIG_0(std::vector< vrna_ep_t > *self,std::vector< vrna_ep_t >::difference_type i,std::vector< vrna_ep_t >::difference_type j){
6599       swig::setslice(self, i, j, 1, std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >());
6600     }
std_vector_Sl_vrna_ep_t_Sg____setslice____SWIG_1(std::vector<vrna_ep_t> * self,std::vector<vrna_ep_t>::difference_type i,std::vector<vrna_ep_t>::difference_type j,std::vector<vrna_ep_t,std::allocator<vrna_ep_t>> const & v)6601 SWIGINTERN void std_vector_Sl_vrna_ep_t_Sg____setslice____SWIG_1(std::vector< vrna_ep_t > *self,std::vector< vrna_ep_t >::difference_type i,std::vector< vrna_ep_t >::difference_type j,std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > const &v){
6602       swig::setslice(self, i, j, 1, v);
6603     }
std_vector_Sl_vrna_ep_t_Sg____delslice__(std::vector<vrna_ep_t> * self,std::vector<vrna_ep_t>::difference_type i,std::vector<vrna_ep_t>::difference_type j)6604 SWIGINTERN void std_vector_Sl_vrna_ep_t_Sg____delslice__(std::vector< vrna_ep_t > *self,std::vector< vrna_ep_t >::difference_type i,std::vector< vrna_ep_t >::difference_type j){
6605       swig::delslice(self, i, j, 1);
6606     }
std_vector_Sl_vrna_ep_t_Sg____delitem____SWIG_0(std::vector<vrna_ep_t> * self,std::vector<vrna_ep_t>::difference_type i)6607 SWIGINTERN void std_vector_Sl_vrna_ep_t_Sg____delitem____SWIG_0(std::vector< vrna_ep_t > *self,std::vector< vrna_ep_t >::difference_type i){
6608       swig::erase(self, swig::getpos(self, i));
6609     }
std_vector_Sl_vrna_ep_t_Sg____getitem____SWIG_0(std::vector<vrna_ep_t> * self,PySliceObject * slice)6610 SWIGINTERN std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *std_vector_Sl_vrna_ep_t_Sg____getitem____SWIG_0(std::vector< vrna_ep_t > *self,PySliceObject *slice){
6611       Py_ssize_t i, j, step;
6612       if( !PySlice_Check(slice) ) {
6613         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6614         return NULL;
6615       }
6616       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6617       std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >::difference_type id = i;
6618       std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >::difference_type jd = j;
6619       return swig::getslice(self, id, jd, step);
6620     }
std_vector_Sl_vrna_ep_t_Sg____setitem____SWIG_0(std::vector<vrna_ep_t> * self,PySliceObject * slice,std::vector<vrna_ep_t,std::allocator<vrna_ep_t>> const & v)6621 SWIGINTERN void std_vector_Sl_vrna_ep_t_Sg____setitem____SWIG_0(std::vector< vrna_ep_t > *self,PySliceObject *slice,std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > const &v){
6622       Py_ssize_t i, j, step;
6623       if( !PySlice_Check(slice) ) {
6624         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6625         return;
6626       }
6627       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6628       std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >::difference_type id = i;
6629       std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >::difference_type jd = j;
6630       swig::setslice(self, id, jd, step, v);
6631     }
std_vector_Sl_vrna_ep_t_Sg____setitem____SWIG_1(std::vector<vrna_ep_t> * self,PySliceObject * slice)6632 SWIGINTERN void std_vector_Sl_vrna_ep_t_Sg____setitem____SWIG_1(std::vector< vrna_ep_t > *self,PySliceObject *slice){
6633       Py_ssize_t i, j, step;
6634       if( !PySlice_Check(slice) ) {
6635         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6636         return;
6637       }
6638       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6639       std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >::difference_type id = i;
6640       std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >::difference_type jd = j;
6641       swig::delslice(self, id, jd, step);
6642     }
std_vector_Sl_vrna_ep_t_Sg____delitem____SWIG_1(std::vector<vrna_ep_t> * self,PySliceObject * slice)6643 SWIGINTERN void std_vector_Sl_vrna_ep_t_Sg____delitem____SWIG_1(std::vector< vrna_ep_t > *self,PySliceObject *slice){
6644       Py_ssize_t i, j, step;
6645       if( !PySlice_Check(slice) ) {
6646         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6647         return;
6648       }
6649       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6650       std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >::difference_type id = i;
6651       std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >::difference_type jd = j;
6652       swig::delslice(self, id, jd, step);
6653     }
std_vector_Sl_vrna_ep_t_Sg____getitem____SWIG_1(std::vector<vrna_ep_t> const * self,std::vector<vrna_ep_t>::difference_type i)6654 SWIGINTERN std::vector< vrna_ep_t >::value_type const &std_vector_Sl_vrna_ep_t_Sg____getitem____SWIG_1(std::vector< vrna_ep_t > const *self,std::vector< vrna_ep_t >::difference_type i){
6655       return *(swig::cgetpos(self, i));
6656     }
std_vector_Sl_vrna_ep_t_Sg____setitem____SWIG_2(std::vector<vrna_ep_t> * self,std::vector<vrna_ep_t>::difference_type i,std::vector<vrna_ep_t>::value_type const & x)6657 SWIGINTERN void std_vector_Sl_vrna_ep_t_Sg____setitem____SWIG_2(std::vector< vrna_ep_t > *self,std::vector< vrna_ep_t >::difference_type i,std::vector< vrna_ep_t >::value_type const &x){
6658       *(swig::getpos(self,i)) = x;
6659     }
std_vector_Sl_vrna_ep_t_Sg__pop(std::vector<vrna_ep_t> * self)6660 SWIGINTERN std::vector< vrna_ep_t >::value_type std_vector_Sl_vrna_ep_t_Sg__pop(std::vector< vrna_ep_t > *self){
6661       if (self->size() == 0)
6662 	throw std::out_of_range("pop from empty container");
6663       std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >::value_type x = self->back();
6664       self->pop_back();
6665       return x;
6666     }
std_vector_Sl_vrna_ep_t_Sg__append(std::vector<vrna_ep_t> * self,std::vector<vrna_ep_t>::value_type const & x)6667 SWIGINTERN void std_vector_Sl_vrna_ep_t_Sg__append(std::vector< vrna_ep_t > *self,std::vector< vrna_ep_t >::value_type const &x){
6668       self->push_back(x);
6669     }
std_vector_Sl_vrna_ep_t_Sg__erase__SWIG_0(std::vector<vrna_ep_t> * self,std::vector<vrna_ep_t>::iterator pos)6670 SWIGINTERN std::vector< vrna_ep_t >::iterator std_vector_Sl_vrna_ep_t_Sg__erase__SWIG_0(std::vector< vrna_ep_t > *self,std::vector< vrna_ep_t >::iterator pos){ return self->erase(pos); }
std_vector_Sl_vrna_ep_t_Sg__erase__SWIG_1(std::vector<vrna_ep_t> * self,std::vector<vrna_ep_t>::iterator first,std::vector<vrna_ep_t>::iterator last)6671 SWIGINTERN std::vector< vrna_ep_t >::iterator std_vector_Sl_vrna_ep_t_Sg__erase__SWIG_1(std::vector< vrna_ep_t > *self,std::vector< vrna_ep_t >::iterator first,std::vector< vrna_ep_t >::iterator last){ return self->erase(first, last); }
std_vector_Sl_vrna_ep_t_Sg__insert__SWIG_0(std::vector<vrna_ep_t> * self,std::vector<vrna_ep_t>::iterator pos,std::vector<vrna_ep_t>::value_type const & x)6672 SWIGINTERN std::vector< vrna_ep_t >::iterator std_vector_Sl_vrna_ep_t_Sg__insert__SWIG_0(std::vector< vrna_ep_t > *self,std::vector< vrna_ep_t >::iterator pos,std::vector< vrna_ep_t >::value_type const &x){ return self->insert(pos, x); }
std_vector_Sl_vrna_ep_t_Sg__insert__SWIG_1(std::vector<vrna_ep_t> * self,std::vector<vrna_ep_t>::iterator pos,std::vector<vrna_ep_t>::size_type n,std::vector<vrna_ep_t>::value_type const & x)6673 SWIGINTERN void std_vector_Sl_vrna_ep_t_Sg__insert__SWIG_1(std::vector< vrna_ep_t > *self,std::vector< vrna_ep_t >::iterator pos,std::vector< vrna_ep_t >::size_type n,std::vector< vrna_ep_t >::value_type const &x){ self->insert(pos, n, x); }
6674 
6675   namespace swig {
6676     template <>  struct traits< vrna_path_t > {
6677       typedef pointer_category category;
type_nameswig::traits6678       static const char* type_name() { return"vrna_path_t"; }
6679     };
6680   }
6681 
6682 
6683       namespace swig {
6684 	template <>  struct traits<std::vector< vrna_path_t, std::allocator< vrna_path_t > > > {
6685 	  typedef pointer_category category;
type_nameswig::traits6686 	  static const char* type_name() {
6687 	    return "std::vector<" "vrna_path_t" "," "std::allocator< vrna_path_t >" " >";
6688 	  }
6689 	};
6690       }
6691 
std_vector_Sl_vrna_path_t_Sg__iterator(std::vector<vrna_path_t> * self,PyObject ** PYTHON_SELF)6692 SWIGINTERN swig::SwigPyIterator *std_vector_Sl_vrna_path_t_Sg__iterator(std::vector< vrna_path_t > *self,PyObject **PYTHON_SELF){
6693       return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
6694     }
std_vector_Sl_vrna_path_t_Sg____nonzero__(std::vector<vrna_path_t> const * self)6695 SWIGINTERN bool std_vector_Sl_vrna_path_t_Sg____nonzero__(std::vector< vrna_path_t > const *self){
6696       return !(self->empty());
6697     }
std_vector_Sl_vrna_path_t_Sg____bool__(std::vector<vrna_path_t> const * self)6698 SWIGINTERN bool std_vector_Sl_vrna_path_t_Sg____bool__(std::vector< vrna_path_t > const *self){
6699       return !(self->empty());
6700     }
std_vector_Sl_vrna_path_t_Sg____len__(std::vector<vrna_path_t> const * self)6701 SWIGINTERN std::vector< vrna_path_t >::size_type std_vector_Sl_vrna_path_t_Sg____len__(std::vector< vrna_path_t > const *self){
6702       return self->size();
6703     }
std_vector_Sl_vrna_path_t_Sg____getslice__(std::vector<vrna_path_t> * self,std::vector<vrna_path_t>::difference_type i,std::vector<vrna_path_t>::difference_type j)6704 SWIGINTERN std::vector< vrna_path_t,std::allocator< vrna_path_t > > *std_vector_Sl_vrna_path_t_Sg____getslice__(std::vector< vrna_path_t > *self,std::vector< vrna_path_t >::difference_type i,std::vector< vrna_path_t >::difference_type j){
6705       return swig::getslice(self, i, j, 1);
6706     }
std_vector_Sl_vrna_path_t_Sg____setslice____SWIG_0(std::vector<vrna_path_t> * self,std::vector<vrna_path_t>::difference_type i,std::vector<vrna_path_t>::difference_type j)6707 SWIGINTERN void std_vector_Sl_vrna_path_t_Sg____setslice____SWIG_0(std::vector< vrna_path_t > *self,std::vector< vrna_path_t >::difference_type i,std::vector< vrna_path_t >::difference_type j){
6708       swig::setslice(self, i, j, 1, std::vector< vrna_path_t,std::allocator< vrna_path_t > >());
6709     }
std_vector_Sl_vrna_path_t_Sg____setslice____SWIG_1(std::vector<vrna_path_t> * self,std::vector<vrna_path_t>::difference_type i,std::vector<vrna_path_t>::difference_type j,std::vector<vrna_path_t,std::allocator<vrna_path_t>> const & v)6710 SWIGINTERN void std_vector_Sl_vrna_path_t_Sg____setslice____SWIG_1(std::vector< vrna_path_t > *self,std::vector< vrna_path_t >::difference_type i,std::vector< vrna_path_t >::difference_type j,std::vector< vrna_path_t,std::allocator< vrna_path_t > > const &v){
6711       swig::setslice(self, i, j, 1, v);
6712     }
std_vector_Sl_vrna_path_t_Sg____delslice__(std::vector<vrna_path_t> * self,std::vector<vrna_path_t>::difference_type i,std::vector<vrna_path_t>::difference_type j)6713 SWIGINTERN void std_vector_Sl_vrna_path_t_Sg____delslice__(std::vector< vrna_path_t > *self,std::vector< vrna_path_t >::difference_type i,std::vector< vrna_path_t >::difference_type j){
6714       swig::delslice(self, i, j, 1);
6715     }
std_vector_Sl_vrna_path_t_Sg____delitem____SWIG_0(std::vector<vrna_path_t> * self,std::vector<vrna_path_t>::difference_type i)6716 SWIGINTERN void std_vector_Sl_vrna_path_t_Sg____delitem____SWIG_0(std::vector< vrna_path_t > *self,std::vector< vrna_path_t >::difference_type i){
6717       swig::erase(self, swig::getpos(self, i));
6718     }
std_vector_Sl_vrna_path_t_Sg____getitem____SWIG_0(std::vector<vrna_path_t> * self,PySliceObject * slice)6719 SWIGINTERN std::vector< vrna_path_t,std::allocator< vrna_path_t > > *std_vector_Sl_vrna_path_t_Sg____getitem____SWIG_0(std::vector< vrna_path_t > *self,PySliceObject *slice){
6720       Py_ssize_t i, j, step;
6721       if( !PySlice_Check(slice) ) {
6722         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6723         return NULL;
6724       }
6725       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6726       std::vector< vrna_path_t,std::allocator< vrna_path_t > >::difference_type id = i;
6727       std::vector< vrna_path_t,std::allocator< vrna_path_t > >::difference_type jd = j;
6728       return swig::getslice(self, id, jd, step);
6729     }
std_vector_Sl_vrna_path_t_Sg____setitem____SWIG_0(std::vector<vrna_path_t> * self,PySliceObject * slice,std::vector<vrna_path_t,std::allocator<vrna_path_t>> const & v)6730 SWIGINTERN void std_vector_Sl_vrna_path_t_Sg____setitem____SWIG_0(std::vector< vrna_path_t > *self,PySliceObject *slice,std::vector< vrna_path_t,std::allocator< vrna_path_t > > const &v){
6731       Py_ssize_t i, j, step;
6732       if( !PySlice_Check(slice) ) {
6733         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6734         return;
6735       }
6736       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6737       std::vector< vrna_path_t,std::allocator< vrna_path_t > >::difference_type id = i;
6738       std::vector< vrna_path_t,std::allocator< vrna_path_t > >::difference_type jd = j;
6739       swig::setslice(self, id, jd, step, v);
6740     }
std_vector_Sl_vrna_path_t_Sg____setitem____SWIG_1(std::vector<vrna_path_t> * self,PySliceObject * slice)6741 SWIGINTERN void std_vector_Sl_vrna_path_t_Sg____setitem____SWIG_1(std::vector< vrna_path_t > *self,PySliceObject *slice){
6742       Py_ssize_t i, j, step;
6743       if( !PySlice_Check(slice) ) {
6744         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6745         return;
6746       }
6747       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6748       std::vector< vrna_path_t,std::allocator< vrna_path_t > >::difference_type id = i;
6749       std::vector< vrna_path_t,std::allocator< vrna_path_t > >::difference_type jd = j;
6750       swig::delslice(self, id, jd, step);
6751     }
std_vector_Sl_vrna_path_t_Sg____delitem____SWIG_1(std::vector<vrna_path_t> * self,PySliceObject * slice)6752 SWIGINTERN void std_vector_Sl_vrna_path_t_Sg____delitem____SWIG_1(std::vector< vrna_path_t > *self,PySliceObject *slice){
6753       Py_ssize_t i, j, step;
6754       if( !PySlice_Check(slice) ) {
6755         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6756         return;
6757       }
6758       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6759       std::vector< vrna_path_t,std::allocator< vrna_path_t > >::difference_type id = i;
6760       std::vector< vrna_path_t,std::allocator< vrna_path_t > >::difference_type jd = j;
6761       swig::delslice(self, id, jd, step);
6762     }
std_vector_Sl_vrna_path_t_Sg____getitem____SWIG_1(std::vector<vrna_path_t> const * self,std::vector<vrna_path_t>::difference_type i)6763 SWIGINTERN std::vector< vrna_path_t >::value_type const &std_vector_Sl_vrna_path_t_Sg____getitem____SWIG_1(std::vector< vrna_path_t > const *self,std::vector< vrna_path_t >::difference_type i){
6764       return *(swig::cgetpos(self, i));
6765     }
std_vector_Sl_vrna_path_t_Sg____setitem____SWIG_2(std::vector<vrna_path_t> * self,std::vector<vrna_path_t>::difference_type i,std::vector<vrna_path_t>::value_type const & x)6766 SWIGINTERN void std_vector_Sl_vrna_path_t_Sg____setitem____SWIG_2(std::vector< vrna_path_t > *self,std::vector< vrna_path_t >::difference_type i,std::vector< vrna_path_t >::value_type const &x){
6767       *(swig::getpos(self,i)) = x;
6768     }
std_vector_Sl_vrna_path_t_Sg__pop(std::vector<vrna_path_t> * self)6769 SWIGINTERN std::vector< vrna_path_t >::value_type std_vector_Sl_vrna_path_t_Sg__pop(std::vector< vrna_path_t > *self){
6770       if (self->size() == 0)
6771 	throw std::out_of_range("pop from empty container");
6772       std::vector< vrna_path_t,std::allocator< vrna_path_t > >::value_type x = self->back();
6773       self->pop_back();
6774       return x;
6775     }
std_vector_Sl_vrna_path_t_Sg__append(std::vector<vrna_path_t> * self,std::vector<vrna_path_t>::value_type const & x)6776 SWIGINTERN void std_vector_Sl_vrna_path_t_Sg__append(std::vector< vrna_path_t > *self,std::vector< vrna_path_t >::value_type const &x){
6777       self->push_back(x);
6778     }
std_vector_Sl_vrna_path_t_Sg__erase__SWIG_0(std::vector<vrna_path_t> * self,std::vector<vrna_path_t>::iterator pos)6779 SWIGINTERN std::vector< vrna_path_t >::iterator std_vector_Sl_vrna_path_t_Sg__erase__SWIG_0(std::vector< vrna_path_t > *self,std::vector< vrna_path_t >::iterator pos){ return self->erase(pos); }
std_vector_Sl_vrna_path_t_Sg__erase__SWIG_1(std::vector<vrna_path_t> * self,std::vector<vrna_path_t>::iterator first,std::vector<vrna_path_t>::iterator last)6780 SWIGINTERN std::vector< vrna_path_t >::iterator std_vector_Sl_vrna_path_t_Sg__erase__SWIG_1(std::vector< vrna_path_t > *self,std::vector< vrna_path_t >::iterator first,std::vector< vrna_path_t >::iterator last){ return self->erase(first, last); }
std_vector_Sl_vrna_path_t_Sg__insert__SWIG_0(std::vector<vrna_path_t> * self,std::vector<vrna_path_t>::iterator pos,std::vector<vrna_path_t>::value_type const & x)6781 SWIGINTERN std::vector< vrna_path_t >::iterator std_vector_Sl_vrna_path_t_Sg__insert__SWIG_0(std::vector< vrna_path_t > *self,std::vector< vrna_path_t >::iterator pos,std::vector< vrna_path_t >::value_type const &x){ return self->insert(pos, x); }
std_vector_Sl_vrna_path_t_Sg__insert__SWIG_1(std::vector<vrna_path_t> * self,std::vector<vrna_path_t>::iterator pos,std::vector<vrna_path_t>::size_type n,std::vector<vrna_path_t>::value_type const & x)6782 SWIGINTERN void std_vector_Sl_vrna_path_t_Sg__insert__SWIG_1(std::vector< vrna_path_t > *self,std::vector< vrna_path_t >::iterator pos,std::vector< vrna_path_t >::size_type n,std::vector< vrna_path_t >::value_type const &x){ self->insert(pos, n, x); }
6783 
6784   namespace swig {
6785     template <>  struct traits< vrna_move_t > {
6786       typedef pointer_category category;
type_nameswig::traits6787       static const char* type_name() { return"vrna_move_t"; }
6788     };
6789   }
6790 
6791 
6792       namespace swig {
6793 	template <>  struct traits<std::vector< vrna_move_t, std::allocator< vrna_move_t > > > {
6794 	  typedef pointer_category category;
type_nameswig::traits6795 	  static const char* type_name() {
6796 	    return "std::vector<" "vrna_move_t" "," "std::allocator< vrna_move_t >" " >";
6797 	  }
6798 	};
6799       }
6800 
std_vector_Sl_vrna_move_t_Sg__iterator(std::vector<vrna_move_t> * self,PyObject ** PYTHON_SELF)6801 SWIGINTERN swig::SwigPyIterator *std_vector_Sl_vrna_move_t_Sg__iterator(std::vector< vrna_move_t > *self,PyObject **PYTHON_SELF){
6802       return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
6803     }
std_vector_Sl_vrna_move_t_Sg____nonzero__(std::vector<vrna_move_t> const * self)6804 SWIGINTERN bool std_vector_Sl_vrna_move_t_Sg____nonzero__(std::vector< vrna_move_t > const *self){
6805       return !(self->empty());
6806     }
std_vector_Sl_vrna_move_t_Sg____bool__(std::vector<vrna_move_t> const * self)6807 SWIGINTERN bool std_vector_Sl_vrna_move_t_Sg____bool__(std::vector< vrna_move_t > const *self){
6808       return !(self->empty());
6809     }
std_vector_Sl_vrna_move_t_Sg____len__(std::vector<vrna_move_t> const * self)6810 SWIGINTERN std::vector< vrna_move_t >::size_type std_vector_Sl_vrna_move_t_Sg____len__(std::vector< vrna_move_t > const *self){
6811       return self->size();
6812     }
std_vector_Sl_vrna_move_t_Sg____getslice__(std::vector<vrna_move_t> * self,std::vector<vrna_move_t>::difference_type i,std::vector<vrna_move_t>::difference_type j)6813 SWIGINTERN std::vector< vrna_move_t,std::allocator< vrna_move_t > > *std_vector_Sl_vrna_move_t_Sg____getslice__(std::vector< vrna_move_t > *self,std::vector< vrna_move_t >::difference_type i,std::vector< vrna_move_t >::difference_type j){
6814       return swig::getslice(self, i, j, 1);
6815     }
std_vector_Sl_vrna_move_t_Sg____setslice____SWIG_0(std::vector<vrna_move_t> * self,std::vector<vrna_move_t>::difference_type i,std::vector<vrna_move_t>::difference_type j)6816 SWIGINTERN void std_vector_Sl_vrna_move_t_Sg____setslice____SWIG_0(std::vector< vrna_move_t > *self,std::vector< vrna_move_t >::difference_type i,std::vector< vrna_move_t >::difference_type j){
6817       swig::setslice(self, i, j, 1, std::vector< vrna_move_t,std::allocator< vrna_move_t > >());
6818     }
std_vector_Sl_vrna_move_t_Sg____setslice____SWIG_1(std::vector<vrna_move_t> * self,std::vector<vrna_move_t>::difference_type i,std::vector<vrna_move_t>::difference_type j,std::vector<vrna_move_t,std::allocator<vrna_move_t>> const & v)6819 SWIGINTERN void std_vector_Sl_vrna_move_t_Sg____setslice____SWIG_1(std::vector< vrna_move_t > *self,std::vector< vrna_move_t >::difference_type i,std::vector< vrna_move_t >::difference_type j,std::vector< vrna_move_t,std::allocator< vrna_move_t > > const &v){
6820       swig::setslice(self, i, j, 1, v);
6821     }
std_vector_Sl_vrna_move_t_Sg____delslice__(std::vector<vrna_move_t> * self,std::vector<vrna_move_t>::difference_type i,std::vector<vrna_move_t>::difference_type j)6822 SWIGINTERN void std_vector_Sl_vrna_move_t_Sg____delslice__(std::vector< vrna_move_t > *self,std::vector< vrna_move_t >::difference_type i,std::vector< vrna_move_t >::difference_type j){
6823       swig::delslice(self, i, j, 1);
6824     }
std_vector_Sl_vrna_move_t_Sg____delitem____SWIG_0(std::vector<vrna_move_t> * self,std::vector<vrna_move_t>::difference_type i)6825 SWIGINTERN void std_vector_Sl_vrna_move_t_Sg____delitem____SWIG_0(std::vector< vrna_move_t > *self,std::vector< vrna_move_t >::difference_type i){
6826       swig::erase(self, swig::getpos(self, i));
6827     }
std_vector_Sl_vrna_move_t_Sg____getitem____SWIG_0(std::vector<vrna_move_t> * self,PySliceObject * slice)6828 SWIGINTERN std::vector< vrna_move_t,std::allocator< vrna_move_t > > *std_vector_Sl_vrna_move_t_Sg____getitem____SWIG_0(std::vector< vrna_move_t > *self,PySliceObject *slice){
6829       Py_ssize_t i, j, step;
6830       if( !PySlice_Check(slice) ) {
6831         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6832         return NULL;
6833       }
6834       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6835       std::vector< vrna_move_t,std::allocator< vrna_move_t > >::difference_type id = i;
6836       std::vector< vrna_move_t,std::allocator< vrna_move_t > >::difference_type jd = j;
6837       return swig::getslice(self, id, jd, step);
6838     }
std_vector_Sl_vrna_move_t_Sg____setitem____SWIG_0(std::vector<vrna_move_t> * self,PySliceObject * slice,std::vector<vrna_move_t,std::allocator<vrna_move_t>> const & v)6839 SWIGINTERN void std_vector_Sl_vrna_move_t_Sg____setitem____SWIG_0(std::vector< vrna_move_t > *self,PySliceObject *slice,std::vector< vrna_move_t,std::allocator< vrna_move_t > > const &v){
6840       Py_ssize_t i, j, step;
6841       if( !PySlice_Check(slice) ) {
6842         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6843         return;
6844       }
6845       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6846       std::vector< vrna_move_t,std::allocator< vrna_move_t > >::difference_type id = i;
6847       std::vector< vrna_move_t,std::allocator< vrna_move_t > >::difference_type jd = j;
6848       swig::setslice(self, id, jd, step, v);
6849     }
std_vector_Sl_vrna_move_t_Sg____setitem____SWIG_1(std::vector<vrna_move_t> * self,PySliceObject * slice)6850 SWIGINTERN void std_vector_Sl_vrna_move_t_Sg____setitem____SWIG_1(std::vector< vrna_move_t > *self,PySliceObject *slice){
6851       Py_ssize_t i, j, step;
6852       if( !PySlice_Check(slice) ) {
6853         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6854         return;
6855       }
6856       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6857       std::vector< vrna_move_t,std::allocator< vrna_move_t > >::difference_type id = i;
6858       std::vector< vrna_move_t,std::allocator< vrna_move_t > >::difference_type jd = j;
6859       swig::delslice(self, id, jd, step);
6860     }
std_vector_Sl_vrna_move_t_Sg____delitem____SWIG_1(std::vector<vrna_move_t> * self,PySliceObject * slice)6861 SWIGINTERN void std_vector_Sl_vrna_move_t_Sg____delitem____SWIG_1(std::vector< vrna_move_t > *self,PySliceObject *slice){
6862       Py_ssize_t i, j, step;
6863       if( !PySlice_Check(slice) ) {
6864         SWIG_Error(SWIG_TypeError, "Slice object expected.");
6865         return;
6866       }
6867       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
6868       std::vector< vrna_move_t,std::allocator< vrna_move_t > >::difference_type id = i;
6869       std::vector< vrna_move_t,std::allocator< vrna_move_t > >::difference_type jd = j;
6870       swig::delslice(self, id, jd, step);
6871     }
std_vector_Sl_vrna_move_t_Sg____getitem____SWIG_1(std::vector<vrna_move_t> const * self,std::vector<vrna_move_t>::difference_type i)6872 SWIGINTERN std::vector< vrna_move_t >::value_type const &std_vector_Sl_vrna_move_t_Sg____getitem____SWIG_1(std::vector< vrna_move_t > const *self,std::vector< vrna_move_t >::difference_type i){
6873       return *(swig::cgetpos(self, i));
6874     }
std_vector_Sl_vrna_move_t_Sg____setitem____SWIG_2(std::vector<vrna_move_t> * self,std::vector<vrna_move_t>::difference_type i,std::vector<vrna_move_t>::value_type const & x)6875 SWIGINTERN void std_vector_Sl_vrna_move_t_Sg____setitem____SWIG_2(std::vector< vrna_move_t > *self,std::vector< vrna_move_t >::difference_type i,std::vector< vrna_move_t >::value_type const &x){
6876       *(swig::getpos(self,i)) = x;
6877     }
std_vector_Sl_vrna_move_t_Sg__pop(std::vector<vrna_move_t> * self)6878 SWIGINTERN std::vector< vrna_move_t >::value_type std_vector_Sl_vrna_move_t_Sg__pop(std::vector< vrna_move_t > *self){
6879       if (self->size() == 0)
6880 	throw std::out_of_range("pop from empty container");
6881       std::vector< vrna_move_t,std::allocator< vrna_move_t > >::value_type x = self->back();
6882       self->pop_back();
6883       return x;
6884     }
std_vector_Sl_vrna_move_t_Sg__append(std::vector<vrna_move_t> * self,std::vector<vrna_move_t>::value_type const & x)6885 SWIGINTERN void std_vector_Sl_vrna_move_t_Sg__append(std::vector< vrna_move_t > *self,std::vector< vrna_move_t >::value_type const &x){
6886       self->push_back(x);
6887     }
std_vector_Sl_vrna_move_t_Sg__erase__SWIG_0(std::vector<vrna_move_t> * self,std::vector<vrna_move_t>::iterator pos)6888 SWIGINTERN std::vector< vrna_move_t >::iterator std_vector_Sl_vrna_move_t_Sg__erase__SWIG_0(std::vector< vrna_move_t > *self,std::vector< vrna_move_t >::iterator pos){ return self->erase(pos); }
std_vector_Sl_vrna_move_t_Sg__erase__SWIG_1(std::vector<vrna_move_t> * self,std::vector<vrna_move_t>::iterator first,std::vector<vrna_move_t>::iterator last)6889 SWIGINTERN std::vector< vrna_move_t >::iterator std_vector_Sl_vrna_move_t_Sg__erase__SWIG_1(std::vector< vrna_move_t > *self,std::vector< vrna_move_t >::iterator first,std::vector< vrna_move_t >::iterator last){ return self->erase(first, last); }
std_vector_Sl_vrna_move_t_Sg__insert__SWIG_0(std::vector<vrna_move_t> * self,std::vector<vrna_move_t>::iterator pos,std::vector<vrna_move_t>::value_type const & x)6890 SWIGINTERN std::vector< vrna_move_t >::iterator std_vector_Sl_vrna_move_t_Sg__insert__SWIG_0(std::vector< vrna_move_t > *self,std::vector< vrna_move_t >::iterator pos,std::vector< vrna_move_t >::value_type const &x){ return self->insert(pos, x); }
std_vector_Sl_vrna_move_t_Sg__insert__SWIG_1(std::vector<vrna_move_t> * self,std::vector<vrna_move_t>::iterator pos,std::vector<vrna_move_t>::size_type n,std::vector<vrna_move_t>::value_type const & x)6891 SWIGINTERN void std_vector_Sl_vrna_move_t_Sg__insert__SWIG_1(std::vector< vrna_move_t > *self,std::vector< vrna_move_t >::iterator pos,std::vector< vrna_move_t >::size_type n,std::vector< vrna_move_t >::value_type const &x){ self->insert(pos, n, x); }
6892 
6893 #include <string>
6894 #include <cstring>
6895 
convert_vecstring2veccharcp(const std::string & s)6896   const char *convert_vecstring2veccharcp(const std::string & s){
6897     return s.c_str();
6898   }
6899 
convert_vecstring2veccharp(const std::string & s)6900   char *convert_vecstring2veccharp(const std::string & s){
6901     char *pc = new char[s.size()+1];
6902     std::strcpy(pc, s.c_str());
6903     return pc;
6904   }
6905 
convert_vecint2vecshort(const int & i)6906   short convert_vecint2vecshort(const int & i){
6907     return (short) i;
6908   }
6909 
convert_vecdbl2vecFLR_OR_DBL(const double & d)6910   FLT_OR_DBL convert_vecdbl2vecFLR_OR_DBL(const double & d){
6911     return (FLT_OR_DBL) d;
6912   }
6913 
6914 
6915 
6916 #include <sstream>
6917 
6918 
6919 SWIGINTERN size_t
SWIG_strnlen(const char * s,size_t maxlen)6920 SWIG_strnlen(const char* s, size_t maxlen)
6921 {
6922   const char *p;
6923   for (p = s; maxlen-- && *p; p++)
6924     ;
6925   return p - s;
6926 }
6927 
new_vrna_param_t(vrna_md_t * model_details=NULL)6928 SWIGINTERN vrna_param_t *new_vrna_param_t(vrna_md_t *model_details=NULL){
6929     return vrna_params(model_details);
6930   }
vrna_param_t___str__(vrna_param_t * self)6931 SWIGINTERN std::string vrna_param_t___str__(vrna_param_t *self){
6932     std::ostringstream out;
6933     out << "{ model_details: RNA.md()";
6934     out << ", id: " << self->id;
6935     out << ", param_file: \"" << self->param_file << "\"";
6936     out << ", temperature: " << self->temperature;
6937     out << ", TerminalAU: " << self->TerminalAU;
6938     out << ", DuplexInit: " << self->DuplexInit;
6939 
6940     out << ", MLclosing: " << self->MLclosing;
6941     out << ", MLbase: " << self->MLbase;
6942     out << ", MLintern: [" << self->MLintern[0];
6943     for (size_t i = 1; i < NBPAIRS + 1; i++)
6944       out << ", " << self->MLintern[i];
6945     out << "]";
6946 
6947     out << ", hairpin: [" << self->hairpin[0];
6948     for (size_t i = 1; i < 31; i++)
6949       out << ", " << self->hairpin[i];
6950     out << "]";
6951 
6952     out << ", bulge: [" << self->bulge[0];
6953     for (size_t i = 1; i < MAXLOOP + 1; i++)
6954       out << ", " << self->bulge[i];
6955     out << "]";
6956 
6957     out << ", internal_loop: [" << self->internal_loop[0];
6958     for (size_t i = 1; i < 31; i++)
6959       out << ", " << self->internal_loop[i];
6960     out << "]";
6961 
6962     out << ", stack: [[" << self->stack[0][0];
6963     for (size_t a = 1; a < NBPAIRS + 1; a++)
6964       out << ", " << self->stack[0][a];
6965     out << "]";
6966     for (size_t a = 1; a < NBPAIRS + 1; a++) {
6967       out << ", [" << self->stack[a][0];
6968       for (size_t b = 1; b < NBPAIRS + 1; b++)
6969         out << ", " << self->stack[a][b];
6970       out << "]";
6971     }
6972     out << "]";
6973 
6974     out << ", dangle5: [[" << self->dangle5[0][0];
6975     for (size_t a = 1; a < 5; a++)
6976       out << ", " << self->dangle5[0][a];
6977     out << "]";
6978     for (size_t a = 1; a < NBPAIRS + 1; a++) {
6979       out << ", [" << self->dangle5[a][0];
6980       for (size_t b = 1; b < 5; b++)
6981         out << ", " << self->dangle5[a][b];
6982       out << "]";
6983     }
6984     out << "]";
6985 
6986     out << ", dangle3: [[" << self->dangle3[0][0];
6987     for (size_t a = 1; a < 5; a++)
6988       out << ", " << self->dangle3[0][a];
6989     out << "]";
6990     for (size_t a = 1; a < NBPAIRS + 1; a++) {
6991       out << ", [" << self->dangle3[a][0];
6992       for (size_t b = 1; b < 5; b++)
6993         out << ", " << self->dangle3[a][b];
6994       out << "]";
6995     }
6996     out << "]";
6997 
6998     out << ", ninio: [" << self->ninio[0];
6999     for (size_t i = 1; i < 5; i++)
7000       out << ", " << self->ninio[i];
7001     out << "]";
7002 
7003     out << " }";
7004 
7005     return std::string(out.str());
7006   }
new_vrna_exp_param_t(vrna_md_t * model_details=NULL)7007 SWIGINTERN vrna_exp_param_t *new_vrna_exp_param_t(vrna_md_t *model_details=NULL){
7008     vrna_exp_param_t *P = vrna_exp_params(model_details);
7009     return P;
7010   }
vrna_exp_param_t___str__(vrna_exp_param_t * self)7011 SWIGINTERN std::string vrna_exp_param_t___str__(vrna_exp_param_t *self){
7012     std::ostringstream out;
7013     out << "{ model_details: RNA.md()";
7014     out << ", id: " << self->id;
7015     out << ", temperature: " << self->temperature;
7016     out << ", kT: " << self->kT;
7017     out << ", alpha: " << self->alpha;
7018     out << ", pf_scale: " << self->alpha;
7019     out << " }";
7020 
7021     return std::string(out.str());
7022   }
7023 
7024   int
my_params_load(std::string filename="",unsigned int options=VRNA_PARAMETER_FORMAT_DEFAULT)7025   my_params_load(std::string  filename = "",
7026                  unsigned int options = VRNA_PARAMETER_FORMAT_DEFAULT)
7027   {
7028     if (!filename.compare(""))
7029       return vrna_params_load_defaults();
7030 
7031     return vrna_params_load(filename.c_str(), options);
7032   }
7033 
7034   int
my_params_save(std::string filename,unsigned int options=VRNA_PARAMETER_FORMAT_DEFAULT)7035   my_params_save(std::string filename,
7036                  unsigned int options = VRNA_PARAMETER_FORMAT_DEFAULT)
7037   {
7038     return vrna_params_save(filename.c_str(), options);
7039   }
7040 
7041   int
my_params_load_from_string(std::string parameters,std::string name="",unsigned int options=VRNA_PARAMETER_FORMAT_DEFAULT)7042   my_params_load_from_string(std::string parameters,
7043                              std::string name = "",
7044                              unsigned int options = VRNA_PARAMETER_FORMAT_DEFAULT)
7045   {
7046     return vrna_params_load_from_string(parameters.c_str(),
7047                                         name.c_str(),
7048                                         options);
7049   }
7050 
7051 
7052 #include <sstream>
7053 
new_vrna_md_t(double const temperature=vrna_md_defaults_temperature_get (),double const betaScale=vrna_md_defaults_betaScale_get (),int const pf_smooth=vrna_md_defaults_pf_smooth_get (),int const dangles=vrna_md_defaults_dangles_get (),int const special_hp=vrna_md_defaults_special_hp_get (),int const noLP=vrna_md_defaults_noLP_get (),int const noGU=vrna_md_defaults_noGU_get (),int const noGUclosure=vrna_md_defaults_noGUclosure_get (),int const logML=vrna_md_defaults_logML_get (),int const circ=vrna_md_defaults_circ_get (),int const gquad=vrna_md_defaults_gquad_get (),int const uniq_ML=vrna_md_defaults_uniq_ML_get (),int const energy_set=vrna_md_defaults_energy_set_get (),int const backtrack=vrna_md_defaults_backtrack_get (),char const backtrack_type=vrna_md_defaults_backtrack_type_get (),int const compute_bpp=vrna_md_defaults_compute_bpp_get (),int const max_bp_span=vrna_md_defaults_max_bp_span_get (),int const min_loop_size=vrna_md_defaults_min_loop_size_get (),int const window_size=vrna_md_defaults_window_size_get (),int const oldAliEn=vrna_md_defaults_oldAliEn_get (),int const ribo=vrna_md_defaults_ribo_get (),double const cv_fact=vrna_md_defaults_cv_fact_get (),double const nc_fact=vrna_md_defaults_nc_fact_get (),double const sfact=vrna_md_defaults_sfact_get ())7054 SWIGINTERN vrna_md_t *new_vrna_md_t(double const temperature=vrna_md_defaults_temperature_get(),double const betaScale=vrna_md_defaults_betaScale_get(),int const pf_smooth=vrna_md_defaults_pf_smooth_get(),int const dangles=vrna_md_defaults_dangles_get(),int const special_hp=vrna_md_defaults_special_hp_get(),int const noLP=vrna_md_defaults_noLP_get(),int const noGU=vrna_md_defaults_noGU_get(),int const noGUclosure=vrna_md_defaults_noGUclosure_get(),int const logML=vrna_md_defaults_logML_get(),int const circ=vrna_md_defaults_circ_get(),int const gquad=vrna_md_defaults_gquad_get(),int const uniq_ML=vrna_md_defaults_uniq_ML_get(),int const energy_set=vrna_md_defaults_energy_set_get(),int const backtrack=vrna_md_defaults_backtrack_get(),char const backtrack_type=vrna_md_defaults_backtrack_type_get(),int const compute_bpp=vrna_md_defaults_compute_bpp_get(),int const max_bp_span=vrna_md_defaults_max_bp_span_get(),int const min_loop_size=vrna_md_defaults_min_loop_size_get(),int const window_size=vrna_md_defaults_window_size_get(),int const oldAliEn=vrna_md_defaults_oldAliEn_get(),int const ribo=vrna_md_defaults_ribo_get(),double const cv_fact=vrna_md_defaults_cv_fact_get(),double const nc_fact=vrna_md_defaults_nc_fact_get(),double const sfact=vrna_md_defaults_sfact_get()){
7055     vrna_md_t *md       = (vrna_md_t *)vrna_alloc(sizeof(vrna_md_t));
7056     md->temperature     = temperature;
7057     md->betaScale       = betaScale;
7058     md->pf_smooth       = pf_smooth;
7059     md->dangles         = dangles;
7060     md->special_hp      = special_hp;
7061     md->noLP            = noLP;
7062     md->noGU            = noGU;
7063     md->noGUclosure     = noGUclosure;
7064     md->logML           = logML;
7065     md->circ            = circ;
7066     md->gquad           = gquad;
7067     md->uniq_ML         = uniq_ML;
7068     md->energy_set      = energy_set;
7069     md->backtrack       = backtrack;
7070     md->backtrack_type  = backtrack_type;
7071     md->compute_bpp     = compute_bpp;
7072     md->max_bp_span     = max_bp_span;
7073     md->min_loop_size   = min_loop_size;
7074     md->window_size     = window_size;
7075     md->oldAliEn        = oldAliEn;
7076     md->ribo            = ribo;
7077     md->cv_fact         = cv_fact;
7078     md->nc_fact         = nc_fact;
7079     md->sfact           = sfact;
7080 
7081     vrna_md_update(md);
7082 
7083     return md;
7084   }
delete_vrna_md_t(vrna_md_t * self)7085 SWIGINTERN void delete_vrna_md_t(vrna_md_t *self){
7086     free(self);
7087   }
vrna_md_t_reset(vrna_md_t * self)7088 SWIGINTERN void vrna_md_t_reset(vrna_md_t *self){
7089     vrna_md_set_default(self);
7090   }
vrna_md_t_set_from_globals(vrna_md_t * self)7091 SWIGINTERN void vrna_md_t_set_from_globals(vrna_md_t *self){
7092     set_model_details(self);
7093   }
vrna_md_t_option_string(vrna_md_t * self)7094 SWIGINTERN char *vrna_md_t_option_string(vrna_md_t *self){
7095     return vrna_md_option_string(self);
7096   }
vrna_md_t___str__(vrna_md_t * self)7097 SWIGINTERN std::string vrna_md_t___str__(vrna_md_t *self){
7098     std::ostringstream out;
7099     out << "{ temperature: " << self->temperature ;
7100     out << ", dangles: " << self->dangles;
7101     out << ", betaScale: " << self->betaScale ;
7102     out << ", pf_smooth: " << self->pf_smooth ;
7103     out << ", special_hp: " << self->special_hp ;
7104     out << ", noLP: " << self->noLP ;
7105     out << ", noGU: " << self->noGU ;
7106     out << ", noGUclosure: " << self->noGUclosure ;
7107     out << ", logML: " << self->logML ;
7108     out << ", circ: " << self->circ ;
7109     out << ", gquad: " << self->gquad ;
7110     out << ", uniq_ML: " << self->uniq_ML ;
7111     out << ", energy_set: " << self->energy_set  ;
7112     out << ", backtrack: " << self->backtrack ;
7113     out << ", backtrack_type: " << self->backtrack_type ;
7114     out << ", compute_bpp: " << self->compute_bpp ;
7115     out << ", max_bp_span: " << self->max_bp_span ;
7116     out << ", min_loop_size: " << self->min_loop_size;
7117     out << ", window_size: " << self->window_size ;
7118     out << ", oldAliEn: " << self->oldAliEn;
7119     out << ", ribo: " << self->ribo;
7120     out << ", cv_fact: " << self->cv_fact ;
7121     out << ", nc_fact: " << self->nc_fact ;
7122     out << ", sfact: " << self->sfact ;
7123     out << " }";
7124 
7125     return std::string(out.str());
7126   }
7127 
7128   int
my_hamming(const char * s1,const char * s2)7129   my_hamming(const char *s1,
7130              const char *s2)
7131   {
7132     return vrna_hamming_distance(s1, s2);
7133   }
7134 
7135 
7136   int
my_hamming_bound(const char * s1,const char * s2,int n)7137   my_hamming_bound(const char *s1,
7138                    const char *s2,
7139                    int n)
7140   {
7141     return vrna_hamming_distance_bound(s1, s2, n);
7142   }
7143 
7144 
7145 
7146 #include <cstring>
7147 
7148 short *
encode_seq(char * sequence)7149 encode_seq(char *sequence)
7150 {
7151   unsigned int i,l;
7152   short *S;
7153   l = strlen(sequence);
7154   S = (short *) vrna_alloc(sizeof(short)*(l+2));
7155   S[0] = (short) l;
7156 
7157   /* make numerical encoding of sequence */
7158   for (i=1; i<=l; i++)
7159     S[i]= (short) encode_char(toupper(sequence[i-1]));
7160 
7161   /* for circular folding add first base at position n+1 */
7162   S[l+1] = S[1];
7163 
7164   return S;
7165 }
7166 
7167 
7168 #include <sstream>
7169 
new_vrna_ep_t(unsigned int i,unsigned int j,float p=1.,int type=VRNA_PLIST_TYPE_BASEPAIR)7170 SWIGINTERN vrna_ep_t *new_vrna_ep_t(unsigned int i,unsigned int j,float p=1.,int type=VRNA_PLIST_TYPE_BASEPAIR){
7171       vrna_ep_t *pair;
7172 
7173       pair        = (vrna_ep_t *)vrna_alloc(sizeof(vrna_ep_t));
7174       pair->i     = (int)i;
7175       pair->j     = (int)j;
7176       pair->p     = p;
7177       pair->type  = type;
7178 
7179       return pair;
7180     }
vrna_ep_t___str__(vrna_ep_t * self)7181 SWIGINTERN std::string vrna_ep_t___str__(vrna_ep_t *self){
7182       std::ostringstream out;
7183       out << "{ i: " << self->i;
7184       out << ", j: " << self->j;
7185       out << ", p: " << self->p;
7186       out << ", t: " << self->type;
7187       out << " }";
7188 
7189       return std::string(out.str());
7190     }
7191 
7192 #include <vector>
7193   char *
my_pack_structure(const char * s)7194   my_pack_structure(const char *s)
7195   {
7196     return vrna_db_pack(s);
7197   }
7198 
7199   char *
my_unpack_structure(const char * packed)7200   my_unpack_structure(const char *packed)
7201   {
7202     return vrna_db_unpack(packed);
7203   }
7204 
7205   char *
my_db_from_ptable(std::vector<int> pt)7206   my_db_from_ptable(std::vector<int> pt)
7207   {
7208     std::vector<short> vc;
7209     transform(pt.begin(), pt.end(), back_inserter(vc), convert_vecint2vecshort);
7210     return vrna_db_from_ptable((short*)&vc[0]);
7211   }
7212 
7213   void
db_flatten(char * structure,unsigned int options=VRNA_BRACKETS_DEFAULT)7214   db_flatten(char         *structure,
7215              unsigned int options = VRNA_BRACKETS_DEFAULT)
7216   {
7217     vrna_db_flatten(structure, options);
7218   }
7219 
7220   void
db_flatten(char * structure,std::string target,unsigned int options=VRNA_BRACKETS_DEFAULT)7221   db_flatten(char         *structure,
7222              std::string  target,
7223              unsigned int options = VRNA_BRACKETS_DEFAULT)
7224   {
7225     if (target.size() == 2)
7226       vrna_db_flatten_to(structure, target.c_str(), options);
7227     else
7228       vrna_message_warning("db_flatten(): target pair must be string of exactly 2 characters!");
7229   }
7230 
7231   std::string
db_from_WUSS(std::string wuss)7232   db_from_WUSS(std::string wuss)
7233   {
7234     char *c_str = vrna_db_from_WUSS(wuss.c_str());
7235     std::string db = c_str;
7236     free(c_str);
7237     return db;
7238   }
7239 
7240   std::string
abstract_shapes(std::string structure,unsigned int level=5)7241   abstract_shapes(std::string   structure,
7242                   unsigned int  level = 5)
7243   {
7244     if (structure.size() == 0)
7245       return structure;
7246 
7247     char *c_str = vrna_abstract_shapes(structure.c_str(), level);
7248     std::string SHAPE = c_str;
7249     free(c_str);
7250     return SHAPE;
7251   }
7252 
7253   std::string
abstract_shapes(std::vector<int> pt,unsigned int level=5)7254   abstract_shapes(std::vector<int> pt,
7255                   unsigned int     level = 5)
7256   {
7257     if (pt.size() == 0)
7258       return "";
7259 
7260     std::vector<short> vc;
7261     transform(pt.begin(), pt.end(), back_inserter(vc), convert_vecint2vecshort);
7262 
7263     char *c_str = vrna_abstract_shapes_pt((short*)&vc[0], level);
7264 
7265     std::string SHAPE = c_str;
7266     free(c_str);
7267     return SHAPE;
7268   }
7269 
7270 
7271 #include <vector>
7272 
7273   std::vector<int>
my_ptable(std::string str,unsigned int options=VRNA_BRACKETS_RND)7274   my_ptable(std::string   str,
7275             unsigned int  options = VRNA_BRACKETS_RND)
7276   {
7277     short int         *pt;
7278     int               i;
7279     std::vector<int>  v_pt;
7280 
7281     pt = vrna_ptable_from_string(str.c_str(), options);
7282 
7283     for(i = 0; i <= pt[0]; i++)
7284       v_pt.push_back(pt[i]);
7285 
7286     free(pt);
7287     return v_pt;
7288   }
7289 
7290   std::vector<int>
my_ptable_pk(std::string str)7291   my_ptable_pk(std::string str)
7292   {
7293     short int* pt_pk = vrna_pt_pk_get(str.c_str());
7294     std::vector<int> v_pt;
7295     int i;
7296 
7297     for(i=0; i <= pt_pk[0]; i++){
7298       v_pt.push_back(pt_pk[i]);
7299     }
7300     free(pt_pk);
7301     return v_pt;
7302   }
7303 
7304   std::vector<int>
my_pt_pk_remove(std::vector<int> pt,unsigned int options=0)7305   my_pt_pk_remove(std::vector<int>  pt,
7306                   unsigned int      options = 0)
7307   {
7308     short               *ptable;
7309     int                 i;
7310     std::vector<short>  vs;
7311     std::vector<int>    v_pt;
7312 
7313     /* sanity check and fix */
7314     if (pt[0] != pt.size() - 1)
7315       pt[0] = pt.size() - 1;
7316 
7317     transform(pt.begin(), pt.end(), back_inserter(vs), convert_vecint2vecshort);
7318 
7319     ptable = vrna_pt_pk_remove((const short*)&vs[0], options);
7320 
7321     for (i = 0; i <= ptable[0]; i++)
7322       v_pt.push_back(ptable[i]);
7323 
7324     free(ptable);
7325 
7326     return v_pt;
7327   }
7328 
7329 
7330 
7331 #include <vector>
7332   std::vector<vrna_ep_t>
my_plist(std::string structure,float pr=0.95* 0.95)7333   my_plist(std::string  structure,
7334            float        pr = 0.95*0.95)
7335   {
7336     std::vector<vrna_ep_t > ep_v;
7337     vrna_ep_t               *ptr, *plist;
7338 
7339     plist = vrna_plist(structure.c_str(), pr);
7340 
7341     for (ptr = plist; ptr->i && ptr->j; ptr++) {
7342       vrna_ep_t pl;
7343       pl.i = ptr->i;
7344       pl.j = ptr->j;
7345       pl.p = ptr->p;
7346       pl.type = ptr->type;
7347       ep_v.push_back(pl);
7348     }
7349 
7350     free(plist);
7351 
7352     return ep_v;
7353   }
7354 
7355   std::string
db_from_plist(std::vector<vrna_ep_t> pairs,unsigned int length)7356   db_from_plist(std::vector<vrna_ep_t> pairs,
7357                 unsigned int           length)
7358   {
7359     vrna_ep_t last_elem;
7360     last_elem.i     = last_elem.j = 0;
7361     last_elem.p     = 0;
7362     last_elem.type  = 0;
7363 
7364     pairs.push_back(last_elem);
7365 
7366     char *str = vrna_db_from_plist(&pairs[0], length);
7367     std::string ret(str);
7368     free(str);
7369 
7370     /* remove end-of-list marker */
7371     pairs.pop_back();
7372 
7373     return ret;
7374   }
7375 
7376   std::string
db_pk_remove(std::string structure,unsigned int options=VRNA_BRACKETS_ANY)7377   db_pk_remove(std::string  structure,
7378                unsigned int options = VRNA_BRACKETS_ANY)
7379   {
7380     char *db = vrna_db_pk_remove(structure.c_str(), options);
7381     std::string ret(db);
7382     free(db);
7383 
7384     return ret;
7385   }
7386 
7387 
7388   std::string
db_to_tree_string(std::string structure,unsigned int type)7389   db_to_tree_string(std::string   structure,
7390                     unsigned int  type)
7391   {
7392     char *c_str = vrna_db_to_tree_string(structure.c_str(), type);
7393     std::string tree = c_str;
7394     free(c_str);
7395     return tree;
7396   }
7397 
7398   std::string
tree_string_unweight(std::string structure)7399   tree_string_unweight(std::string structure)
7400   {
7401     char *c_str = vrna_tree_string_unweight(structure.c_str());
7402     std::string tree = c_str;
7403     free(c_str);
7404     return tree;
7405   }
7406 
7407   std::string
tree_string_to_db(std::string structure)7408   tree_string_to_db(std::string structure)
7409   {
7410     char *c_str = vrna_tree_string_to_db(structure.c_str());
7411     std::string db = c_str;
7412     free(c_str);
7413     return db;
7414   }
7415 
7416 
7417 
7418   short *
make_loop_index(const char * structure)7419   make_loop_index(const char *structure)
7420   {
7421     /* number each position by which loop it belongs to (positions start at 0) */
7422     int i,hx,l,nl;
7423     int length;
7424     short *stack;
7425     short *loop;
7426     length = strlen(structure);
7427     stack = (short *) vrna_alloc(sizeof(short)*(length+1));
7428     loop = (short *) vrna_alloc(sizeof(short)*(length+2));
7429     hx=l=nl=0;
7430     for (i=0; i<length; i++) {
7431       if (structure[i] == '(') {
7432         nl++; l=nl;
7433         stack[hx++]=i;
7434       }
7435       loop[i]=l;
7436       if (structure[i] ==')') {
7437         --hx;
7438         if (hx>0)
7439           l = loop[stack[hx-1]];  /* index of enclosing loop   */
7440         else l=0;                 /* external loop has index 0 */
7441         if (hx<0) {
7442           fprintf(stderr, "%s\n", structure);
7443           nrerror("unbalanced brackets in make_loop_index");
7444         }
7445       }
7446     }
7447     free(stack);
7448     return loop;
7449   }
7450 
7451 
7452   std::vector<int>
my_loopidx_from_ptable(std::vector<int> pt)7453   my_loopidx_from_ptable(std::vector<int> pt)
7454   {
7455     int                 i, *idx;
7456     std::vector<short>  vc;
7457     std::vector<int>    v_idx;
7458 
7459     transform(pt.begin(), pt.end(), back_inserter(vc), convert_vecint2vecshort);
7460 
7461     idx = vrna_loopidx_from_ptable((short *)&vc[0]);
7462 
7463     v_idx.assign(idx, idx + pt.size());
7464 
7465     free(idx);
7466 
7467     return v_idx;
7468   }
7469 
7470 
7471   int
my_bp_distance(const char * str1,const char * str2)7472   my_bp_distance(const char *str1,
7473                  const char *str2)
7474   {
7475     return vrna_bp_distance(str1,str2);
7476   }
7477 
7478   double
my_dist_mountain(std::string str1,std::string str2,unsigned int p=1)7479   my_dist_mountain( std::string   str1,
7480                     std::string   str2,
7481                     unsigned int  p = 1)
7482   {
7483     return vrna_dist_mountain(str1.c_str(), str2.c_str(), p);
7484   }
7485 
7486 
7487 #include <vector>
7488 
7489   std::string
my_consensus_sequence(std::vector<std::string> alignment,vrna_md_t * md_p=NULL)7490   my_consensus_sequence(std::vector<std::string>  alignment,
7491                         vrna_md_t                 *md_p = NULL)
7492   {
7493     /* convert std::vector<std::string> to vector<const char *> */
7494     std::vector<const char*>  v;
7495     std::transform(alignment.begin(), alignment.end(), std::back_inserter(v), convert_vecstring2veccharcp);
7496     v.push_back(NULL); /* mark end of sequences */
7497 
7498     char *c = vrna_aln_consensus_sequence((const char **)&v[0], md_p);
7499     std::string cons(c);
7500     free(c);
7501     return cons;
7502   }
7503 
7504   std::string
my_aln_consensus_mis(std::vector<std::string> alignment,vrna_md_t * md_p=NULL)7505   my_aln_consensus_mis(std::vector<std::string> alignment,
7506                        vrna_md_t                *md_p = NULL)
7507   {
7508     /* convert std::vector<std::string> to vector<const char *> */
7509     std::vector<const char*>  v;
7510     std::transform(alignment.begin(), alignment.end(), std::back_inserter(v), convert_vecstring2veccharcp);
7511     v.push_back(NULL); /* mark end of sequences */
7512 
7513     char *c = vrna_aln_consensus_mis((const char **)&v[0], md_p);
7514     std::string mis(c);
7515     free(c);
7516     return mis;
7517   }
7518 
7519 
7520 
7521 #include <vector>
7522 
7523   int
my_aln_mpi(std::vector<std::string> alignment)7524   my_aln_mpi(std::vector<std::string> alignment)
7525   {
7526     /* convert std::vector<std::string> to vector<const char *> */
7527     std::vector<const char*>  v;
7528     std::transform(alignment.begin(), alignment.end(), std::back_inserter(v), convert_vecstring2veccharcp);
7529     v.push_back(NULL); /* mark end of sequences */
7530 
7531     int mpi = vrna_aln_mpi((const char **)&v[0]);
7532 
7533     return mpi;
7534   }
7535 
7536 
7537 
7538 #include <vector>
7539 
7540   std::vector<std::vector<int> >
my_aln_pscore(std::vector<std::string> alignment,vrna_md_t * md=NULL)7541   my_aln_pscore(std::vector<std::string>  alignment,
7542                 vrna_md_t                 *md = NULL)
7543   {
7544 
7545     /* convert std::vector<std::string> to vector<const char *> */
7546     std::vector<const char*>  v;
7547     std::transform(alignment.begin(), alignment.end(), std::back_inserter(v), convert_vecstring2veccharcp);
7548     v.push_back(NULL); /* mark end of sequences */
7549 
7550     std::vector<std::vector<int> > pscore;
7551     int *ps = vrna_aln_pscore((const char **)&v[0], md);
7552 
7553     int n     = alignment[0].length();
7554     int *idx  = vrna_idx_col_wise(n);
7555 
7556     std::vector<int> z_row(n+1, 0);
7557     pscore.push_back(z_row);
7558 
7559     for(int i = 1; i < n; i++){
7560       std::vector<int> score_i;
7561       score_i.push_back(0);
7562       for(int j = 1; j <= i; j++)
7563         score_i.push_back(ps[idx[i] + j]);
7564       for(int j = i + 1; j <= n; j++)
7565         score_i.push_back(ps[idx[j] + i]);
7566       pscore.push_back(score_i);
7567     }
7568 
7569     free(ps);
7570     free(idx);
7571 
7572     return pscore;
7573   }
7574 
7575 
7576 
7577 #include <vector>
7578 
7579   std::vector<double>
my_aln_conservation_struct(std::vector<std::string> alignment,std::string structure,vrna_md_t * md=NULL)7580   my_aln_conservation_struct(std::vector<std::string> alignment,
7581                              std::string              structure,
7582                              vrna_md_t                *md = NULL)
7583   {
7584     /* convert std::vector<std::string> to vector<const char *> */
7585     std::vector<const char*>  v;
7586     std::transform(alignment.begin(), alignment.end(), std::back_inserter(v), convert_vecstring2veccharcp);
7587     v.push_back(NULL); /* mark end of sequences */
7588 
7589     std::vector<double> conservation;
7590 
7591     float *c = vrna_aln_conservation_struct((const char **)&v[0], structure.c_str(), md);
7592 
7593     if (c) {
7594       for (unsigned int i = 0; i <= alignment[0].size(); i++)
7595         conservation.push_back((double)c[i]);
7596 
7597       free(c);
7598     }
7599 
7600     return conservation;
7601   }
7602   std::vector<double>
my_aln_conservation_col(std::vector<std::string> alignment,vrna_md_t * md=NULL,unsigned int options=VRNA_MEASURE_SHANNON_ENTROPY)7603   my_aln_conservation_col(std::vector<std::string> alignment,
7604                           vrna_md_t                *md = NULL,
7605                           unsigned int             options = VRNA_MEASURE_SHANNON_ENTROPY)
7606   {
7607     /* convert std::vector<std::string> to vector<const char *> */
7608     std::vector<const char*>  v;
7609     std::transform(alignment.begin(), alignment.end(), std::back_inserter(v), convert_vecstring2veccharcp);
7610     v.push_back(NULL); /* mark end of sequences */
7611 
7612     std::vector<double> conservation;
7613 
7614     float *c = vrna_aln_conservation_col((const char **)&v[0], md, options);
7615 
7616     if (c) {
7617       for (unsigned int i = 0; i <= alignment[0].size(); i++)
7618         conservation.push_back((double)c[i]);
7619 
7620       free(c);
7621     }
7622 
7623     return conservation;
7624   }
7625 
7626 
7627   char *
my_move_standard(int * OUTPUT,char * seq,char * struc,enum MOVE_TYPE type,int verbosity_level,int shifts,int noLP)7628   my_move_standard(int            *OUTPUT,
7629                    char           *seq,
7630                    char           *struc,
7631                    enum MOVE_TYPE type,
7632                    int            verbosity_level,
7633                    int            shifts,
7634                    int            noLP)
7635   {
7636     char *structure =  (char *)calloc(strlen(struc)+1,sizeof(char));
7637     strcpy(structure,struc);
7638     *OUTPUT = move_standard(seq,structure,type,verbosity_level,shifts,noLP);
7639     return structure;
7640   }
7641 
7642 
7643   std::string
my_filename_sanitize(std::string name)7644   my_filename_sanitize(std::string name)
7645   {
7646     std::string s;
7647     char *name_sanitized = vrna_filename_sanitize(name.c_str(), NULL);
7648     if (name_sanitized)
7649       s = (const char *)name_sanitized;
7650     free(name_sanitized);
7651     return s;
7652   }
7653 
7654   std::string
my_filename_sanitize(std::string name,char c)7655   my_filename_sanitize(std::string  name,
7656                        char         c)
7657   {
7658     std::string s;
7659     char *name_sanitized = vrna_filename_sanitize(name.c_str(), &c);
7660     if (name_sanitized)
7661       s = (const char *)name_sanitized;
7662     free(name_sanitized);
7663     return s;
7664   }
7665 
7666 
7667   COORDINATE *
get_xy_coordinates(const char * structure)7668   get_xy_coordinates(const char *structure)
7669   {
7670     int i;
7671     short *table = vrna_ptable(structure);
7672     short length = (short) strlen(structure);
7673 
7674     COORDINATE *coords = (COORDINATE *) vrna_alloc((length+1)*sizeof(COORDINATE));
7675     float *X = (float *) vrna_alloc((length+1)*sizeof(float));
7676     float *Y = (float *) vrna_alloc((length+1)*sizeof(float));
7677 
7678     switch(rna_plot_type){
7679       case VRNA_PLOT_TYPE_SIMPLE:   simple_xy_coordinates(table, X, Y);
7680                                     break;
7681       case VRNA_PLOT_TYPE_CIRCULAR: simple_circplot_coordinates(table, X, Y);
7682                                     break;
7683       default:                      naview_xy_coordinates(table, X, Y);
7684                                     break;
7685     }
7686 
7687     for(i=0;i<=length;i++){
7688       coords[i].X = X[i];
7689       coords[i].Y = Y[i];
7690     }
7691     free(table);
7692     free(X);
7693     free(Y);
7694     return(coords);
7695   }
7696 
7697 
7698 #include <vector>
7699 #include <string>
7700 
7701   std::vector<COORDINATE>
my_simple_xy_coordinates(std::string structure)7702   my_simple_xy_coordinates(std::string structure)
7703   {
7704     std::vector<COORDINATE> ret;
7705     short *table  = vrna_ptable(structure.c_str());
7706     float *X      = (float *) vrna_alloc((table[0]+1)*sizeof(float));
7707     float *Y      = (float *) vrna_alloc((table[0]+1)*sizeof(float));
7708     simple_xy_coordinates(table, X, Y);
7709 
7710     for(int i = 0; i <= table[0]; i++){
7711       COORDINATE c;
7712       c.X = X[i];
7713       c.Y = Y[i];
7714       ret.push_back(c);
7715     }
7716 
7717     free(X);
7718     free(Y);
7719     free(table);
7720     return ret;
7721   }
7722 
7723   std::vector<COORDINATE>
my_simple_circplot_coordinates(std::string structure)7724   my_simple_circplot_coordinates(std::string structure)
7725   {
7726     std::vector<COORDINATE> ret;
7727     short *table  = vrna_ptable(structure.c_str());
7728     float *X      = (float *) vrna_alloc((table[0]+1)*sizeof(float));
7729     float *Y      = (float *) vrna_alloc((table[0]+1)*sizeof(float));
7730     simple_circplot_coordinates(table, X, Y);
7731 
7732     for(int i = 0; i <= table[0]; i++){
7733       COORDINATE c;
7734       c.X = X[i];
7735       c.Y = Y[i];
7736       ret.push_back(c);
7737     }
7738 
7739     free(X);
7740     free(Y);
7741     free(table);
7742     return ret;
7743   }
7744 
7745   std::vector<COORDINATE>
my_naview_xy_coordinates(std::string structure)7746   my_naview_xy_coordinates(std::string structure)
7747   {
7748     std::vector<COORDINATE> ret;
7749     short *table  = vrna_ptable(structure.c_str());
7750     float *X      = (float *) vrna_alloc((table[0]+1)*sizeof(float));
7751     float *Y      = (float *) vrna_alloc((table[0]+1)*sizeof(float));
7752     naview_xy_coordinates(table, X, Y);
7753 
7754     for(int i = 0; i <= table[0]; i++){
7755       COORDINATE c;
7756       c.X = X[i];
7757       c.Y = Y[i];
7758       ret.push_back(c);
7759     }
7760 
7761     free(X);
7762     free(Y);
7763     free(table);
7764     return ret;
7765   }
7766 
7767 
COORDINATE_get(COORDINATE * self,int i)7768 SWIGINTERN COORDINATE *COORDINATE_get(COORDINATE *self,int i){
7769     return self+i;
7770   }
7771 
7772   int
my_PS_rna_plot_snoop_a(std::string sequence,std::string structure,std::string filename,std::vector<int> relative_access,std::vector<std::string> seqs)7773   my_PS_rna_plot_snoop_a( std::string               sequence,
7774                           std::string               structure,
7775                           std::string               filename,
7776                           std::vector<int>          relative_access,
7777                           std::vector<std::string>  seqs)
7778   {
7779     std::vector<const char*> seqs_vec;
7780     std::transform(seqs.begin(), seqs.end(), std::back_inserter(seqs_vec), convert_vecstring2veccharcp);
7781     seqs_vec.push_back(NULL); /* mark end of sequences */
7782 
7783     return PS_rna_plot_snoop_a( sequence.c_str(),
7784                                 structure.c_str(),
7785                                 filename.c_str(),
7786                                 &relative_access[0],
7787                                 (const char **)&seqs_vec[0]);
7788   }
7789 
7790   int
file_PS_rnaplot(std::string sequence,std::string structure,std::string filename,vrna_md_t * md_p=NULL)7791   file_PS_rnaplot(std::string sequence,
7792                   std::string structure,
7793                   std::string filename,
7794                   vrna_md_t   *md_p = NULL)
7795   {
7796     return vrna_file_PS_rnaplot(sequence.c_str(), structure.c_str(), filename.c_str(), md_p);
7797   }
7798 
7799   int
file_PS_rnaplot_a(std::string sequence,std::string structure,std::string filename,std::string pre,std::string post,vrna_md_t * md_p=NULL)7800   file_PS_rnaplot_a(std::string sequence,
7801                     std::string structure,
7802                     std::string filename,
7803                     std::string pre,
7804                     std::string post,
7805                     vrna_md_t   *md_p = NULL)
7806   {
7807     return vrna_file_PS_rnaplot_a(sequence.c_str(), structure.c_str(), filename.c_str(), pre.c_str(), post.c_str(), md_p);
7808   }
7809 
7810 
7811 
7812   int
file_PS_aln(std::string filename,std::vector<std::string> alignment,std::vector<std::string> identifiers,std::string structure,unsigned int start=0,unsigned int end=0,int offset=0,unsigned int columns=60)7813   file_PS_aln(std::string               filename,
7814               std::vector<std::string>  alignment,
7815               std::vector<std::string>  identifiers,
7816               std::string               structure,
7817               unsigned int              start       = 0,
7818               unsigned int              end         = 0,
7819               int                       offset      = 0,
7820               unsigned int              columns     = 60)
7821   {
7822     std::vector<const char*> aln_vec;
7823     std::vector<const char*> id_vec;
7824 
7825     std::transform(alignment.begin(),
7826                    alignment.end(),
7827                    std::back_inserter(aln_vec),
7828                    convert_vecstring2veccharcp);
7829 
7830     std::transform(alignment.begin(),
7831                    alignment.end(),
7832                    std::back_inserter(id_vec),
7833                    convert_vecstring2veccharcp);
7834 
7835     aln_vec.push_back(NULL); /* mark end of sequences */
7836     id_vec.push_back(NULL); /* mark end of sequences */
7837 
7838     return vrna_file_PS_aln_slice(filename.c_str(),
7839                                   (const char **)&aln_vec[0],
7840                                   (const char **)&id_vec[0],
7841                                   structure.c_str(),
7842                                   start,
7843                                   end,
7844                                   offset,
7845                                   columns);
7846   }
7847 
7848 
7849 
7850 
7851   float
my_eval_structure_simple(std::string sequence,std::string structure,int verbosity_level=VRNA_VERBOSITY_QUIET,FILE * file=NULL)7852   my_eval_structure_simple(std::string sequence,
7853                            std::string structure,
7854                            int         verbosity_level = VRNA_VERBOSITY_QUIET,
7855                            FILE        *file = NULL)
7856   {
7857     return vrna_eval_structure_simple_v(sequence.c_str(), structure.c_str(), verbosity_level, file);
7858   }
7859 
7860   float
my_eval_circ_structure(std::string sequence,std::string structure,int verbosity_level=VRNA_VERBOSITY_QUIET,FILE * file=NULL)7861   my_eval_circ_structure(std::string sequence,
7862                          std::string structure,
7863                          int         verbosity_level = VRNA_VERBOSITY_QUIET,
7864                          FILE        *file = NULL)
7865   {
7866     return vrna_eval_circ_structure_v(sequence.c_str(), structure.c_str(), verbosity_level, file);
7867   }
7868 
7869   float
my_eval_gquad_structure(std::string sequence,std::string structure,int verbosity_level=VRNA_VERBOSITY_QUIET,FILE * file=NULL)7870   my_eval_gquad_structure(std::string sequence,
7871                           std::string structure,
7872                           int         verbosity_level = VRNA_VERBOSITY_QUIET,
7873                           FILE        *file = NULL)
7874   {
7875     return vrna_eval_gquad_structure_v(sequence.c_str(), structure.c_str(), verbosity_level, file);
7876   }
7877 
7878   float
my_eval_circ_gquad_structure(std::string sequence,std::string structure,int verbosity_level=VRNA_VERBOSITY_QUIET,FILE * file=NULL)7879   my_eval_circ_gquad_structure(std::string sequence,
7880                                std::string structure,
7881                                int         verbosity_level = VRNA_VERBOSITY_QUIET,
7882                                FILE        *file = NULL)
7883   {
7884     return vrna_eval_circ_gquad_structure_v(sequence.c_str(), structure.c_str(), verbosity_level, file);
7885   }
7886 
7887   float
my_eval_structure_simple(std::vector<std::string> alignment,std::string structure,int verbosity_level=VRNA_VERBOSITY_QUIET,FILE * file=NULL)7888   my_eval_structure_simple(std::vector<std::string> alignment,
7889                            std::string              structure,
7890                            int                      verbosity_level = VRNA_VERBOSITY_QUIET,
7891                            FILE                     *file = NULL)
7892   {
7893     std::vector<const char*>  vc;
7894 
7895     std::transform(alignment.begin(), alignment.end(), std::back_inserter(vc), convert_vecstring2veccharcp);
7896     vc.push_back(NULL); /* mark end of sequences */
7897 
7898     return vrna_eval_consensus_structure_simple_v((const char **)&vc[0], structure.c_str(), verbosity_level, file);
7899   }
7900 
7901   float
my_eval_circ_structure(std::vector<std::string> alignment,std::string structure,int verbosity_level=VRNA_VERBOSITY_QUIET,FILE * file=NULL)7902   my_eval_circ_structure(std::vector<std::string> alignment,
7903                          std::string              structure,
7904                          int                      verbosity_level = VRNA_VERBOSITY_QUIET,
7905                          FILE                     *file = NULL)
7906   {
7907     std::vector<const char*>  vc;
7908 
7909     std::transform(alignment.begin(), alignment.end(), std::back_inserter(vc), convert_vecstring2veccharcp);
7910     vc.push_back(NULL); /* mark end of sequences */
7911 
7912     return vrna_eval_circ_consensus_structure_v((const char **)&vc[0], structure.c_str(), verbosity_level, file);
7913   }
7914 
7915   float
my_eval_gquad_structure(std::vector<std::string> alignment,std::string structure,int verbosity_level=VRNA_VERBOSITY_QUIET,FILE * file=NULL)7916   my_eval_gquad_structure(std::vector<std::string>  alignment,
7917                           std::string               structure,
7918                           int                       verbosity_level = VRNA_VERBOSITY_QUIET,
7919                           FILE                      *file = NULL)
7920   {
7921     std::vector<const char*>  vc;
7922 
7923     std::transform(alignment.begin(), alignment.end(), std::back_inserter(vc), convert_vecstring2veccharcp);
7924     vc.push_back(NULL); /* mark end of sequences */
7925 
7926     return vrna_eval_gquad_consensus_structure_v((const char **)&vc[0], structure.c_str(), verbosity_level, file);
7927   }
7928 
7929   float
my_eval_circ_gquad_structure(std::vector<std::string> alignment,std::string structure,int verbosity_level=VRNA_VERBOSITY_QUIET,FILE * file=NULL)7930   my_eval_circ_gquad_structure(std::vector<std::string> alignment,
7931                                std::string              structure,
7932                                int                      verbosity_level = VRNA_VERBOSITY_QUIET,
7933                                FILE                     *file = NULL)
7934   {
7935     std::vector<const char*>  vc;
7936 
7937     std::transform(alignment.begin(), alignment.end(), std::back_inserter(vc), convert_vecstring2veccharcp);
7938     vc.push_back(NULL); /* mark end of sequences */
7939 
7940     return vrna_eval_circ_gquad_consensus_structure_v((const char **)&vc[0], structure.c_str(), verbosity_level, file);
7941   }
7942 
7943   float
my_eval_structure_pt_simple(std::string sequence,std::vector<int> pt,int verbosity_level=VRNA_VERBOSITY_QUIET,FILE * file=NULL)7944   my_eval_structure_pt_simple(std::string       sequence,
7945                               std::vector<int>  pt,
7946                               int               verbosity_level = VRNA_VERBOSITY_QUIET,
7947                               FILE              *file = NULL)
7948   {
7949     std::vector<short> vc;
7950 
7951     transform(pt.begin(), pt.end(), back_inserter(vc), convert_vecint2vecshort);
7952 
7953     return vrna_eval_structure_pt_simple_v(sequence.c_str(), (const short*)&vc[0], verbosity_level, file);
7954   }
7955 
7956   float
my_eval_structure_pt_simple(std::vector<std::string> alignment,std::vector<int> pt,int verbosity_level=VRNA_VERBOSITY_QUIET,FILE * file=NULL)7957   my_eval_structure_pt_simple(std::vector<std::string>  alignment,
7958                               std::vector<int>          pt,
7959                               int                       verbosity_level = VRNA_VERBOSITY_QUIET,
7960                               FILE                      *file = NULL)
7961   {
7962     std::vector<const char*>  vc;
7963     std::vector<short> ptv;
7964 
7965     std::transform(alignment.begin(), alignment.end(), std::back_inserter(vc), convert_vecstring2veccharcp);
7966     vc.push_back(NULL); /* mark end of sequences */
7967 
7968     transform(pt.begin(), pt.end(), back_inserter(ptv), convert_vecint2vecshort);
7969 
7970     return vrna_eval_consensus_structure_pt_simple_v((const char **)&vc[0], (const short*)&ptv[0], verbosity_level, file);
7971   }
7972 
7973 
7974 
7975 SWIGINTERN int
SWIG_AsVal_unsigned_SS_char(PyObject * obj,unsigned char * val)7976 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
7977 {
7978   unsigned long v;
7979   int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
7980   if (SWIG_IsOK(res)) {
7981     if ((v > UCHAR_MAX)) {
7982       return SWIG_OverflowError;
7983     } else {
7984       if (val) *val = static_cast< unsigned char >(v);
7985     }
7986   }
7987   return res;
7988 }
7989 
7990 
7991   int
my_maximum_matching(std::string sequence)7992   my_maximum_matching(std::string sequence)
7993   {
7994     return vrna_maximum_matching_simple(sequence.c_str());
7995   }
7996 
7997 
7998 
7999 #include <string>
8000 #include <cstring>
8001 #include <vector>
8002 
8003   char *
my_fold(char * string,float * energy)8004   my_fold(char *string,
8005           float *energy)
8006   {
8007     char *struc;
8008 
8009     struc = (char *)calloc(strlen(string)+1,sizeof(char));
8010     *energy = vrna_fold(string, struc);
8011 
8012     return struc;
8013   }
8014 
8015   char *
my_fold(char * string,char * constraints,float * energy)8016   my_fold(char *string,
8017           char *constraints,
8018           float *energy)
8019   {
8020     char                  *struc;
8021     vrna_fold_compound_t  *fc;
8022 
8023     struc = (char *)calloc(strlen(string)+1,sizeof(char));
8024     fc    = vrna_fold_compound(string, NULL, VRNA_OPTION_DEFAULT);
8025 
8026     if (constraints && fold_constrained)
8027       vrna_hc_add_from_db(fc, constraints, VRNA_CONSTRAINT_DB_DEFAULT);
8028 
8029     *energy = vrna_mfe(fc, struc);
8030 
8031     vrna_fold_compound_free(fc);
8032 
8033 #ifndef VRNA_DISABLE_BACKWARD_COMPATIBILITY
8034     if (constraints && (!fold_constrained))
8035       strncpy(constraints, struc, strlen(constraints));
8036 #endif
8037 
8038     return struc;
8039   }
8040 
8041   char *
my_alifold(std::vector<std::string> alignment,float * energy)8042   my_alifold(std::vector<std::string> alignment,
8043              float                    *energy)
8044   {
8045     char *struc;
8046     /* convert std::vector<std::string> to vector<const char *> */
8047     std::vector<const char*>  vc;
8048     std::transform(alignment.begin(), alignment.end(), std::back_inserter(vc), convert_vecstring2veccharcp);
8049     vc.push_back(NULL); /* mark end of sequences */
8050 
8051     struc = (char *)calloc(strlen(vc[0])+1,sizeof(char));
8052 
8053     *energy = vrna_alifold((const char **)&vc[0], struc);
8054 
8055     return struc;
8056   }
8057 
8058   char *
my_alifold(std::vector<std::string> alignment,char * constraints,float * energy)8059   my_alifold(std::vector<std::string> alignment,
8060              char                     *constraints,
8061              float                    *energy)
8062   {
8063     char                      *struc;
8064     vrna_fold_compound_t      *fc;
8065     std::vector<const char*>  vc;
8066 
8067     /* convert std::vector<std::string> to vector<const char *> */
8068     std::transform(alignment.begin(),
8069                    alignment.end(),
8070                    std::back_inserter(vc),
8071                    convert_vecstring2veccharcp);
8072     vc.push_back(NULL); /* mark end of sequences */
8073 
8074     struc = (char *)calloc(strlen(vc[0])+1,sizeof(char));
8075 
8076     fc = vrna_fold_compound_comparative((const char **)&vc[0], NULL, VRNA_OPTION_DEFAULT);
8077 
8078     if (constraints && fold_constrained)
8079       vrna_hc_add_from_db(fc, constraints, VRNA_CONSTRAINT_DB_DEFAULT);
8080 
8081     *energy = vrna_mfe(fc, struc);
8082 
8083     vrna_fold_compound_free(fc);
8084 
8085 #ifndef VRNA_DISABLE_BACKWARD_COMPATIBILITY
8086     if (constraints && (!fold_constrained))
8087       strncpy(constraints, struc, strlen(constraints));
8088 #endif
8089 
8090     return struc;
8091   }
8092 
8093   char *
my_cofold(char * string,float * energy)8094   my_cofold(char  *string,
8095             float *energy)
8096   {
8097     char *s, **tok, **ptr, *struc, *sequence;
8098 
8099     sequence = string;
8100     struc    = (char *)calloc(strlen(string)+1,sizeof(char));
8101 
8102 #ifndef VRNA_DISABLE_BACKWARD_COMPATIBILITY
8103     /* first, tokenize the input at delimiter '&' */
8104     tok = vrna_strsplit(string, "&");
8105 
8106     /*
8107         now, check whether there is only a single sequence.
8108         This may be a hint that someone is still using the
8109         'old' API where the split point had to be spliced out
8110         and explicitly specified through the global variable
8111         cut_point
8112      */
8113     if ((tok) && (tok[0])) {
8114       if (!tok[1]) {
8115         if (cut_point > (int)strlen(string)) {
8116           cut_point = -1;
8117         } else {
8118           /* we need to re-insert the delimiter now */
8119           sequence = vrna_cut_point_insert(string, cut_point);
8120         }
8121       }
8122     }
8123 #endif
8124 
8125     *energy = vrna_cofold(sequence, struc);
8126 
8127 #ifndef VRNA_DISABLE_BACKWARD_COMPATIBILITY
8128     /* clean up */
8129     if (tok) {
8130       for (ptr = tok; *ptr; ptr++)
8131         free(*ptr);
8132 
8133       free(tok);
8134     }
8135 
8136     if (sequence != string)
8137       free(sequence);
8138 #endif
8139 
8140     return struc;
8141   }
8142 
8143   char *
my_cofold(char * string,char * constraints,float * energy)8144   my_cofold(char  *string,
8145             char  *constraints,
8146             float *energy)
8147   {
8148     char *s, **tok, **ptr, *struc, *sequence;
8149     vrna_fold_compound_t      *fc;
8150 
8151     sequence = string;
8152     struc    = (char *)calloc(strlen(string)+1,sizeof(char));
8153 
8154 #ifndef VRNA_DISABLE_BACKWARD_COMPATIBILITY
8155     /* first, tokenize the input at delimiter '&' */
8156     tok = vrna_strsplit(string, "&");
8157 
8158     /*
8159         now, check whether there is only a single sequence.
8160         This may be a hint that someone is still using the
8161         'old' API where the split point had to be spliced out
8162         and explicitly specified through the global variable
8163         cut_point
8164      */
8165     if ((tok) && (tok[0])) {
8166       if (!tok[1]) {
8167         if (cut_point > (int)strlen(string)) {
8168           cut_point = -1;
8169         } else {
8170           /* we need to re-insert the delimiter now */
8171           sequence = vrna_cut_point_insert(string, cut_point);
8172         }
8173       }
8174     }
8175 #endif
8176 
8177     fc = vrna_fold_compound(sequence, NULL, VRNA_OPTION_DEFAULT);
8178 
8179     if (constraints && fold_constrained)
8180       vrna_hc_add_from_db(fc, constraints, VRNA_CONSTRAINT_DB_DEFAULT);
8181 
8182     *energy = vrna_mfe_dimer(fc, struc);
8183 
8184     /* clean up */
8185 #ifndef VRNA_DISABLE_BACKWARD_COMPATIBILITY
8186     if (tok) {
8187       for (ptr = tok; *ptr; ptr++)
8188         free(*ptr);
8189 
8190       free(tok);
8191     }
8192 
8193     if (sequence != string)
8194       free(sequence);
8195 #endif
8196 
8197     vrna_fold_compound_free(fc);
8198 
8199 #ifndef VRNA_DISABLE_BACKWARD_COMPATIBILITY
8200     if (constraints && (!fold_constrained))
8201       strncpy(constraints, struc, strlen(constraints));
8202 #endif
8203 
8204     return struc;
8205   }
8206 
8207   char *
my_circfold(char * string,float * energy)8208   my_circfold(char *string,
8209               float *energy)
8210   {
8211     char *struc;
8212 
8213     struc   = (char *)calloc(strlen(string)+1,sizeof(char));
8214     *energy = vrna_circfold(string, struc);
8215 
8216     return struc;
8217   }
8218 
8219   char *
my_circfold(char * string,char * constraints,float * energy)8220   my_circfold(char *string,
8221               char *constraints,
8222               float *energy)
8223   {
8224     char                  *struc;
8225     vrna_md_t             md;
8226     vrna_fold_compound_t  *fc;
8227 
8228     vrna_md_set_default(&md);
8229     md.circ = 1;
8230 
8231     struc = (char *)calloc(strlen(string)+1,sizeof(char));
8232 
8233     fc  = vrna_fold_compound(string, &md, VRNA_OPTION_DEFAULT);
8234 
8235     if (constraints && fold_constrained)
8236       vrna_hc_add_from_db(fc, constraints, VRNA_CONSTRAINT_DB_DEFAULT);
8237 
8238     *energy = vrna_mfe(fc, struc);
8239 
8240     vrna_fold_compound_free(fc);
8241 
8242 #ifndef VRNA_DISABLE_BACKWARD_COMPATIBILITY
8243     if (constraints && (!fold_constrained))
8244       strncpy(constraints, struc, strlen(constraints));
8245 #endif
8246 
8247     return struc;
8248   }
8249 
8250   char *
my_circalifold(std::vector<std::string> alignment,float * energy)8251   my_circalifold(std::vector<std::string> alignment,
8252                  float                    *energy)
8253   {
8254     char *struc;
8255     /* convert std::vector<std::string> to vector<const char *> */
8256     std::vector<const char*>  vc;
8257     std::transform(alignment.begin(), alignment.end(), std::back_inserter(vc), convert_vecstring2veccharcp);
8258     vc.push_back(NULL); /* mark end of sequences */
8259 
8260     struc = (char *)calloc(strlen(vc[0])+1,sizeof(char));
8261 
8262     *energy = vrna_circalifold((const char **)&vc[0], struc);
8263 
8264     return struc;
8265   }
8266 
8267   char *
my_circalifold(std::vector<std::string> alignment,char * constraints,float * energy)8268   my_circalifold(std::vector<std::string> alignment,
8269                  char                     *constraints,
8270                  float                    *energy)
8271   {
8272     char                      *struc;
8273     vrna_fold_compound_t      *fc;
8274     std::vector<const char*>  vc;
8275     vrna_md_t                 md;
8276 
8277     vrna_md_set_default(&md);
8278     md.circ = 1;
8279 
8280     /* convert std::vector<std::string> to vector<const char *> */
8281     std::transform(alignment.begin(),
8282                    alignment.end(),
8283                    std::back_inserter(vc),
8284                    convert_vecstring2veccharcp);
8285     vc.push_back(NULL); /* mark end of sequences */
8286 
8287     struc = (char *)calloc(strlen(vc[0])+1,sizeof(char));
8288 
8289     fc = vrna_fold_compound_comparative((const char **)&vc[0],
8290                                         &md,
8291                                         VRNA_OPTION_DEFAULT);
8292 
8293     if (constraints && fold_constrained)
8294       vrna_hc_add_from_db(fc, constraints, VRNA_CONSTRAINT_DB_DEFAULT);
8295 
8296     *energy = vrna_mfe(fc, struc);
8297 
8298     vrna_fold_compound_free(fc);
8299 
8300     return struc;
8301   }
8302 
8303 
8304 
8305 
8306 #ifdef VRNA_WITH_SVM
8307   float
my_Lfoldz(std::string sequence,int window_size,double min_z,FILE * nullfile=NULL)8308   my_Lfoldz(std::string sequence,
8309             int         window_size,
8310             double      min_z,
8311             FILE        *nullfile = NULL)
8312   {
8313     return vrna_Lfoldz(sequence.c_str(),
8314                        window_size,
8315                        min_z,
8316                        nullfile);
8317   }
8318 #endif
8319 
8320   float
my_Lfold(std::string sequence,int window_size,FILE * nullfile=NULL)8321   my_Lfold(std::string sequence,
8322            int        window_size,
8323            FILE       *nullfile = NULL)
8324   {
8325     return vrna_Lfold(sequence.c_str(), window_size, nullfile);
8326   }
8327 
8328   float
my_aliLfold(std::vector<std::string> alignment,int window_size,FILE * nullfile=NULL)8329   my_aliLfold(std::vector<std::string> alignment,
8330               int                      window_size,
8331               FILE                     *nullfile = NULL)
8332   {
8333     /* convert std::vector<std::string> to vector<const char *> */
8334     std::vector<const char*>  aln;
8335     std::transform(alignment.begin(), alignment.end(), std::back_inserter(aln), convert_vecstring2veccharcp);
8336     aln.push_back(NULL); /* mark end of sequences */
8337 
8338     return vrna_aliLfold((const char **)&aln[0],
8339                          window_size,
8340                          nullfile);
8341   }
8342 
8343 
8344 
8345   char *
my_pf_fold(char * string,float * energy)8346   my_pf_fold(char   *string,
8347              float  *energy)
8348   {
8349     char *struc;
8350     struc = (char *)calloc(strlen(string)+1,sizeof(char));
8351     *energy = pf_fold(string, struc);
8352     return(struc);
8353   }
8354 
8355   char *
my_pf_fold(char * string,char * constraints,float * energy)8356   my_pf_fold(char *string,
8357              char *constraints,
8358              float *energy)
8359   {
8360     char *struc;
8361     struc = (char *)calloc(strlen(string)+1,sizeof(char));
8362     if (constraints && fold_constrained)
8363       strncpy(struc, constraints, strlen(string));
8364     *energy = pf_fold(string, struc);
8365     if (constraints)
8366       strncpy(constraints, struc, strlen(constraints));
8367     return(struc);
8368   }
8369 
8370 
8371   char *
my_pf_circ_fold(char * string,float * energy)8372   my_pf_circ_fold(char  *string,
8373                   float *energy)
8374   {
8375     char *struc;
8376     struc = (char *)calloc(strlen(string)+1,sizeof(char));
8377     *energy = pf_circ_fold(string, struc);
8378     return(struc);
8379   }
8380 
8381   char *
my_pf_circ_fold(char * string,char * constraints,float * energy)8382   my_pf_circ_fold(char  *string,
8383                   char  *constraints,
8384                   float *energy)
8385   {
8386     char *struc;
8387     struc = (char *)calloc(strlen(string)+1,sizeof(char));
8388     if (constraints && fold_constrained)
8389       strncpy(struc, constraints, strlen(string));
8390     *energy = pf_circ_fold(string, struc);
8391     if (constraints)
8392       strncpy(constraints, struc, strlen(constraints));
8393     return(struc);
8394   }
8395 
8396 
8397   char *
my_co_pf_fold(char * string,float * FA,float * FB,float * FcAB,float * FAB)8398   my_co_pf_fold(char  *string,
8399                 float *FA,
8400                 float *FB,
8401                 float *FcAB,
8402                 float *FAB)
8403   {
8404     char *struc;
8405     vrna_dimer_pf_t temp;
8406     struc = (char *)calloc(strlen(string)+1,sizeof(char));
8407     temp=co_pf_fold(string, struc);
8408     *FAB = temp.FAB;
8409     *FcAB = temp.FcAB;
8410     *FA = temp.FA;
8411     *FB = temp.FB;
8412     return(struc);
8413   }
8414   char *
my_co_pf_fold(char * string,char * constraints,float * FA,float * FB,float * FcAB,float * FAB)8415   my_co_pf_fold(char  *string,
8416                 char  *constraints,
8417                 float *FA,
8418                 float *FB,
8419                 float *FcAB,
8420                 float *FAB)
8421   {
8422     char *struc;
8423     vrna_dimer_pf_t temp;
8424     struc = (char *)calloc(strlen(string)+1,sizeof(char));
8425     if (constraints && fold_constrained)
8426       strncpy(struc, constraints, strlen(string));
8427     temp=co_pf_fold(string, struc);
8428     *FAB = temp.FAB;
8429     *FcAB = temp.FcAB;
8430     *FA = temp.FA;
8431     *FB = temp.FB;
8432     if (constraints)
8433       strncpy(constraints, struc, strlen(constraints));
8434     return(struc);
8435   }
8436 
8437 
8438  void
my_get_concentrations(double FcAB,double FcAA,double FcBB,double FEA,double FEB,double Ac_start,double Bc_start,double * AB,double * AA,double * BB,double * A,double * B)8439  my_get_concentrations(double FcAB,
8440                        double FcAA,
8441                        double FcBB,
8442                        double FEA,
8443                        double FEB,
8444                        double Ac_start,
8445                        double Bc_start,
8446                        double *AB,
8447                        double *AA,
8448                        double *BB,
8449                        double *A,
8450                        double *B)
8451   {
8452     vrna_dimer_conc_t *temp;
8453     double *concis;
8454     concis = (double *)calloc(4,sizeof(double));
8455     concis[0]=Ac_start;
8456     concis[1]=Bc_start;
8457     concis[2]=0;
8458     temp=get_concentrations(FcAB,FcAA,FcBB,FEA,FEB,concis);
8459     *AB=temp->ABc;
8460     *AA=temp->AAc;
8461     *BB=temp->BBc;
8462     *A=temp->Ac;
8463     *B=temp->Bc;
8464     free(concis);
8465     free(temp);
8466     return;
8467   }
8468 
8469 
8470 double
get_pr(int i,int j)8471 get_pr(int i,
8472        int j)
8473 {
8474   int ii;
8475   if (i>j) {ii=i; i=j; j=ii;}
8476   return pr[iindx[i]-j];
8477 }
8478 
8479 
8480   char *
my_MEA_from_plist(std::vector<vrna_ep_t> plist,std::string sequence,double gamma,vrna_md_t * md,float * OUTPUT)8481   my_MEA_from_plist(std::vector<vrna_ep_t> plist,
8482                     std::string            sequence,
8483                     double                 gamma,
8484                     vrna_md_t              *md,
8485                     float                  *OUTPUT)
8486   {
8487     vrna_ep_t               pp;
8488     std::vector<vrna_ep_t>  pl = plist;
8489 
8490     pp.i = pp.j = 0;
8491     pp.p = 0.;
8492     pp.type = VRNA_PLIST_TYPE_BASEPAIR;
8493     pl.push_back(pp);
8494 
8495     return vrna_MEA_from_plist(&pl[0],
8496                                sequence.c_str(),
8497                                gamma,
8498                                md,
8499                                OUTPUT);
8500   }
8501 
8502   char *
my_MEA_from_plist(std::vector<vrna_ep_t> plist,std::string sequence,vrna_md_t * md,float * OUTPUT)8503   my_MEA_from_plist(std::vector<vrna_ep_t> plist,
8504                     std::string            sequence,
8505                     vrna_md_t              *md,
8506                     float                  *OUTPUT)
8507   {
8508     vrna_ep_t               pp;
8509     std::vector<vrna_ep_t>  pl = plist;
8510 
8511     pp.i = pp.j = 0;
8512     pp.p = 0.;
8513     pp.type = VRNA_PLIST_TYPE_BASEPAIR;
8514     pl.push_back(pp);
8515 
8516     return vrna_MEA_from_plist(&pl[0],
8517                                sequence.c_str(),
8518                                1.,
8519                                md,
8520                                OUTPUT);
8521   }
8522 
8523   char *
my_MEA_from_plist(std::vector<vrna_ep_t> plist,std::string sequence,double gamma,float * OUTPUT)8524   my_MEA_from_plist(std::vector<vrna_ep_t> plist,
8525                     std::string            sequence,
8526                     double                 gamma,
8527                     float                  *OUTPUT)
8528   {
8529     vrna_ep_t               pp;
8530     std::vector<vrna_ep_t>  pl = plist;
8531 
8532     pp.i = pp.j = 0;
8533     pp.p = 0.;
8534     pp.type = VRNA_PLIST_TYPE_BASEPAIR;
8535     pl.push_back(pp);
8536 
8537     return vrna_MEA_from_plist(&pl[0],
8538                                sequence.c_str(),
8539                                gamma,
8540                                NULL,
8541                                OUTPUT);
8542   }
8543 
8544   char *
my_MEA_from_plist(std::vector<vrna_ep_t> plist,std::string sequence,float * OUTPUT)8545   my_MEA_from_plist(std::vector<vrna_ep_t> plist,
8546                     std::string            sequence,
8547                     float                  *OUTPUT)
8548   {
8549     vrna_ep_t               pp;
8550     std::vector<vrna_ep_t>  pl = plist;
8551 
8552     pp.i = pp.j = 0;
8553     pp.p = 0.;
8554     pp.type = VRNA_PLIST_TYPE_BASEPAIR;
8555     pl.push_back(pp);
8556 
8557     return vrna_MEA_from_plist(&pl[0],
8558                                sequence.c_str(),
8559                                1.,
8560                                NULL,
8561                                OUTPUT);
8562   }
8563 
8564 
new_vrna_pbacktrack_mem_t()8565 SWIGINTERN vrna_pbacktrack_mem_t *new_vrna_pbacktrack_mem_t(){
8566     vrna_pbacktrack_mem_t *m = (vrna_pbacktrack_mem_t *)vrna_alloc(sizeof(vrna_pbacktrack_mem_t));
8567     *m = NULL;
8568     return m;
8569   }
delete_vrna_pbacktrack_mem_t(vrna_pbacktrack_mem_t * self)8570 SWIGINTERN void delete_vrna_pbacktrack_mem_t(vrna_pbacktrack_mem_t *self){
8571     vrna_pbacktrack_mem_free(*self);
8572     delete self;
8573   }
8574 
8575 #include <vector>
8576 
8577   std::vector<vrna_ep_t>
my_pfl_fold(std::string sequence,int w,int L,double cutoff)8578   my_pfl_fold(std::string sequence,
8579               int         w,
8580               int         L,
8581               double      cutoff)
8582   {
8583     std::vector<vrna_ep_t > vplist;
8584     vrna_ep_t *ptr, *plist;
8585 
8586     plist = vrna_pfl_fold(sequence.c_str(), w, L, (float)cutoff);
8587 
8588     for (ptr = plist; ptr->i && ptr->j; ptr++) {
8589       vrna_ep_t pl;
8590       pl.i    = ptr->i;
8591       pl.j    = ptr->j;
8592       pl.p    = ptr->p;
8593       pl.type = ptr->type;
8594       vplist.push_back(pl);
8595     }
8596     free(plist);
8597 
8598     return vplist;
8599   }
8600 
8601   std::vector<std::vector<double> >
pfl_fold_up(std::string sequence,int ulength,int window_size,int max_bp_span)8602   pfl_fold_up(std::string sequence,
8603                int        ulength,
8604                int        window_size,
8605                int        max_bp_span)
8606   {
8607     double **up = vrna_pfl_fold_up(sequence.c_str(), ulength, window_size, max_bp_span);
8608 
8609     std::vector<std::vector<double> > up_vec;
8610 
8611     std::vector<double> nullvec(ulength + 1, 0.);
8612 
8613     /* insert a 0th element, since we start a 1-based N x M matrix here */
8614     up_vec.push_back(nullvec);
8615     free(up[0]);
8616     for (unsigned int i = 1; i <= sequence.length(); i++) {
8617       std::vector<double> row;
8618       /* insert a 0th element, again, everything should be 1-based */
8619       row.push_back(0.);
8620 
8621       /* add remaining elements for this row */
8622       for (int j = 1; j <= ulength; j++) {
8623         row.push_back(up[i][j]);
8624       }
8625 
8626       /* free memory of i-th row in up array */
8627       free(up[i]);
8628 
8629       up_vec.push_back(row);
8630     }
8631     free(up);
8632 
8633     return up_vec;
8634   }
8635 
8636 
8637 #include <sstream>
8638 
SOLUTION_get(SOLUTION * self,int i)8639 SWIGINTERN SOLUTION *SOLUTION_get(SOLUTION *self,int i){
8640            return self+i;
8641         }
SOLUTION_size(SOLUTION * self)8642 SWIGINTERN int SOLUTION_size(SOLUTION *self){
8643            SOLUTION *s;
8644            for (s=self; s->structure; s++);
8645            return (int)(s-self);
8646         }
delete_SOLUTION(SOLUTION * self)8647 SWIGINTERN void delete_SOLUTION(SOLUTION *self){
8648            SOLUTION *s;
8649            for (s=self; s->structure; s++) free(s->structure);
8650            free(self);
8651         }
8652 
8653 
8654 extern "C" {
8655   typedef struct {
8656     float energy;
8657     char *structure;
8658   } subopt_solution;
8659 }
8660 
8661 
delete_subopt_solution(subopt_solution * self)8662 SWIGINTERN void delete_subopt_solution(subopt_solution *self){
8663     free(self->structure);
8664     free(self);
8665   }
subopt_solution___str__(subopt_solution * self)8666 SWIGINTERN std::string subopt_solution___str__(subopt_solution *self){
8667     std::ostringstream out;
8668     out << "{ structure: \"" << self->structure << "\"";
8669     out << ", energy: " << self->energy;
8670     out << " }";
8671 
8672     return std::string(out.str());
8673   }
8674 
8675   namespace swig {
8676     template <>  struct traits< subopt_solution > {
8677       typedef pointer_category category;
type_nameswig::traits8678       static const char* type_name() { return"subopt_solution"; }
8679     };
8680   }
8681 
8682 
8683       namespace swig {
8684 	template <>  struct traits<std::vector< subopt_solution, std::allocator< subopt_solution > > > {
8685 	  typedef pointer_category category;
type_nameswig::traits8686 	  static const char* type_name() {
8687 	    return "std::vector<" "subopt_solution" "," "std::allocator< subopt_solution >" " >";
8688 	  }
8689 	};
8690       }
8691 
std_vector_Sl_subopt_solution_Sg__iterator(std::vector<subopt_solution> * self,PyObject ** PYTHON_SELF)8692 SWIGINTERN swig::SwigPyIterator *std_vector_Sl_subopt_solution_Sg__iterator(std::vector< subopt_solution > *self,PyObject **PYTHON_SELF){
8693       return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
8694     }
std_vector_Sl_subopt_solution_Sg____nonzero__(std::vector<subopt_solution> const * self)8695 SWIGINTERN bool std_vector_Sl_subopt_solution_Sg____nonzero__(std::vector< subopt_solution > const *self){
8696       return !(self->empty());
8697     }
std_vector_Sl_subopt_solution_Sg____bool__(std::vector<subopt_solution> const * self)8698 SWIGINTERN bool std_vector_Sl_subopt_solution_Sg____bool__(std::vector< subopt_solution > const *self){
8699       return !(self->empty());
8700     }
std_vector_Sl_subopt_solution_Sg____len__(std::vector<subopt_solution> const * self)8701 SWIGINTERN std::vector< subopt_solution >::size_type std_vector_Sl_subopt_solution_Sg____len__(std::vector< subopt_solution > const *self){
8702       return self->size();
8703     }
std_vector_Sl_subopt_solution_Sg____getslice__(std::vector<subopt_solution> * self,std::vector<subopt_solution>::difference_type i,std::vector<subopt_solution>::difference_type j)8704 SWIGINTERN std::vector< subopt_solution,std::allocator< subopt_solution > > *std_vector_Sl_subopt_solution_Sg____getslice__(std::vector< subopt_solution > *self,std::vector< subopt_solution >::difference_type i,std::vector< subopt_solution >::difference_type j){
8705       return swig::getslice(self, i, j, 1);
8706     }
std_vector_Sl_subopt_solution_Sg____setslice____SWIG_0(std::vector<subopt_solution> * self,std::vector<subopt_solution>::difference_type i,std::vector<subopt_solution>::difference_type j)8707 SWIGINTERN void std_vector_Sl_subopt_solution_Sg____setslice____SWIG_0(std::vector< subopt_solution > *self,std::vector< subopt_solution >::difference_type i,std::vector< subopt_solution >::difference_type j){
8708       swig::setslice(self, i, j, 1, std::vector< subopt_solution,std::allocator< subopt_solution > >());
8709     }
std_vector_Sl_subopt_solution_Sg____setslice____SWIG_1(std::vector<subopt_solution> * self,std::vector<subopt_solution>::difference_type i,std::vector<subopt_solution>::difference_type j,std::vector<subopt_solution,std::allocator<subopt_solution>> const & v)8710 SWIGINTERN void std_vector_Sl_subopt_solution_Sg____setslice____SWIG_1(std::vector< subopt_solution > *self,std::vector< subopt_solution >::difference_type i,std::vector< subopt_solution >::difference_type j,std::vector< subopt_solution,std::allocator< subopt_solution > > const &v){
8711       swig::setslice(self, i, j, 1, v);
8712     }
std_vector_Sl_subopt_solution_Sg____delslice__(std::vector<subopt_solution> * self,std::vector<subopt_solution>::difference_type i,std::vector<subopt_solution>::difference_type j)8713 SWIGINTERN void std_vector_Sl_subopt_solution_Sg____delslice__(std::vector< subopt_solution > *self,std::vector< subopt_solution >::difference_type i,std::vector< subopt_solution >::difference_type j){
8714       swig::delslice(self, i, j, 1);
8715     }
std_vector_Sl_subopt_solution_Sg____delitem____SWIG_0(std::vector<subopt_solution> * self,std::vector<subopt_solution>::difference_type i)8716 SWIGINTERN void std_vector_Sl_subopt_solution_Sg____delitem____SWIG_0(std::vector< subopt_solution > *self,std::vector< subopt_solution >::difference_type i){
8717       swig::erase(self, swig::getpos(self, i));
8718     }
std_vector_Sl_subopt_solution_Sg____getitem____SWIG_0(std::vector<subopt_solution> * self,PySliceObject * slice)8719 SWIGINTERN std::vector< subopt_solution,std::allocator< subopt_solution > > *std_vector_Sl_subopt_solution_Sg____getitem____SWIG_0(std::vector< subopt_solution > *self,PySliceObject *slice){
8720       Py_ssize_t i, j, step;
8721       if( !PySlice_Check(slice) ) {
8722         SWIG_Error(SWIG_TypeError, "Slice object expected.");
8723         return NULL;
8724       }
8725       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
8726       std::vector< subopt_solution,std::allocator< subopt_solution > >::difference_type id = i;
8727       std::vector< subopt_solution,std::allocator< subopt_solution > >::difference_type jd = j;
8728       return swig::getslice(self, id, jd, step);
8729     }
std_vector_Sl_subopt_solution_Sg____setitem____SWIG_0(std::vector<subopt_solution> * self,PySliceObject * slice,std::vector<subopt_solution,std::allocator<subopt_solution>> const & v)8730 SWIGINTERN void std_vector_Sl_subopt_solution_Sg____setitem____SWIG_0(std::vector< subopt_solution > *self,PySliceObject *slice,std::vector< subopt_solution,std::allocator< subopt_solution > > const &v){
8731       Py_ssize_t i, j, step;
8732       if( !PySlice_Check(slice) ) {
8733         SWIG_Error(SWIG_TypeError, "Slice object expected.");
8734         return;
8735       }
8736       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
8737       std::vector< subopt_solution,std::allocator< subopt_solution > >::difference_type id = i;
8738       std::vector< subopt_solution,std::allocator< subopt_solution > >::difference_type jd = j;
8739       swig::setslice(self, id, jd, step, v);
8740     }
std_vector_Sl_subopt_solution_Sg____setitem____SWIG_1(std::vector<subopt_solution> * self,PySliceObject * slice)8741 SWIGINTERN void std_vector_Sl_subopt_solution_Sg____setitem____SWIG_1(std::vector< subopt_solution > *self,PySliceObject *slice){
8742       Py_ssize_t i, j, step;
8743       if( !PySlice_Check(slice) ) {
8744         SWIG_Error(SWIG_TypeError, "Slice object expected.");
8745         return;
8746       }
8747       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
8748       std::vector< subopt_solution,std::allocator< subopt_solution > >::difference_type id = i;
8749       std::vector< subopt_solution,std::allocator< subopt_solution > >::difference_type jd = j;
8750       swig::delslice(self, id, jd, step);
8751     }
std_vector_Sl_subopt_solution_Sg____delitem____SWIG_1(std::vector<subopt_solution> * self,PySliceObject * slice)8752 SWIGINTERN void std_vector_Sl_subopt_solution_Sg____delitem____SWIG_1(std::vector< subopt_solution > *self,PySliceObject *slice){
8753       Py_ssize_t i, j, step;
8754       if( !PySlice_Check(slice) ) {
8755         SWIG_Error(SWIG_TypeError, "Slice object expected.");
8756         return;
8757       }
8758       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
8759       std::vector< subopt_solution,std::allocator< subopt_solution > >::difference_type id = i;
8760       std::vector< subopt_solution,std::allocator< subopt_solution > >::difference_type jd = j;
8761       swig::delslice(self, id, jd, step);
8762     }
std_vector_Sl_subopt_solution_Sg____getitem____SWIG_1(std::vector<subopt_solution> const * self,std::vector<subopt_solution>::difference_type i)8763 SWIGINTERN std::vector< subopt_solution >::value_type const &std_vector_Sl_subopt_solution_Sg____getitem____SWIG_1(std::vector< subopt_solution > const *self,std::vector< subopt_solution >::difference_type i){
8764       return *(swig::cgetpos(self, i));
8765     }
std_vector_Sl_subopt_solution_Sg____setitem____SWIG_2(std::vector<subopt_solution> * self,std::vector<subopt_solution>::difference_type i,std::vector<subopt_solution>::value_type const & x)8766 SWIGINTERN void std_vector_Sl_subopt_solution_Sg____setitem____SWIG_2(std::vector< subopt_solution > *self,std::vector< subopt_solution >::difference_type i,std::vector< subopt_solution >::value_type const &x){
8767       *(swig::getpos(self,i)) = x;
8768     }
std_vector_Sl_subopt_solution_Sg__pop(std::vector<subopt_solution> * self)8769 SWIGINTERN std::vector< subopt_solution >::value_type std_vector_Sl_subopt_solution_Sg__pop(std::vector< subopt_solution > *self){
8770       if (self->size() == 0)
8771 	throw std::out_of_range("pop from empty container");
8772       std::vector< subopt_solution,std::allocator< subopt_solution > >::value_type x = self->back();
8773       self->pop_back();
8774       return x;
8775     }
std_vector_Sl_subopt_solution_Sg__append(std::vector<subopt_solution> * self,std::vector<subopt_solution>::value_type const & x)8776 SWIGINTERN void std_vector_Sl_subopt_solution_Sg__append(std::vector< subopt_solution > *self,std::vector< subopt_solution >::value_type const &x){
8777       self->push_back(x);
8778     }
std_vector_Sl_subopt_solution_Sg__erase__SWIG_0(std::vector<subopt_solution> * self,std::vector<subopt_solution>::iterator pos)8779 SWIGINTERN std::vector< subopt_solution >::iterator std_vector_Sl_subopt_solution_Sg__erase__SWIG_0(std::vector< subopt_solution > *self,std::vector< subopt_solution >::iterator pos){ return self->erase(pos); }
std_vector_Sl_subopt_solution_Sg__erase__SWIG_1(std::vector<subopt_solution> * self,std::vector<subopt_solution>::iterator first,std::vector<subopt_solution>::iterator last)8780 SWIGINTERN std::vector< subopt_solution >::iterator std_vector_Sl_subopt_solution_Sg__erase__SWIG_1(std::vector< subopt_solution > *self,std::vector< subopt_solution >::iterator first,std::vector< subopt_solution >::iterator last){ return self->erase(first, last); }
std_vector_Sl_subopt_solution_Sg__insert__SWIG_0(std::vector<subopt_solution> * self,std::vector<subopt_solution>::iterator pos,std::vector<subopt_solution>::value_type const & x)8781 SWIGINTERN std::vector< subopt_solution >::iterator std_vector_Sl_subopt_solution_Sg__insert__SWIG_0(std::vector< subopt_solution > *self,std::vector< subopt_solution >::iterator pos,std::vector< subopt_solution >::value_type const &x){ return self->insert(pos, x); }
std_vector_Sl_subopt_solution_Sg__insert__SWIG_1(std::vector<subopt_solution> * self,std::vector<subopt_solution>::iterator pos,std::vector<subopt_solution>::size_type n,std::vector<subopt_solution>::value_type const & x)8782 SWIGINTERN void std_vector_Sl_subopt_solution_Sg__insert__SWIG_1(std::vector< subopt_solution > *self,std::vector< subopt_solution >::iterator pos,std::vector< subopt_solution >::size_type n,std::vector< subopt_solution >::value_type const &x){ self->insert(pos, n, x); }
8783 
8784 
8785   SOLUTION *
my_subopt(char * seq,char * constraint,int delta,FILE * nullfile=NULL)8786   my_subopt(char  *seq,
8787             char  *constraint,
8788             int   delta,
8789             FILE  *nullfile = NULL)
8790   {
8791     return subopt(seq, constraint, delta, nullfile);
8792   }
8793 
8794   std::vector<subopt_solution>
my_subopt(char * seq,int delta,FILE * nullfile=NULL)8795   my_subopt(char  *seq,
8796             int   delta,
8797             FILE  *nullfile = NULL)
8798   {
8799     std::vector<subopt_solution> ret;
8800     SOLUTION *sol = subopt(seq, NULL, delta, nullfile);
8801     if (sol)
8802       for(int i = 0; sol[i].structure != NULL; i++){
8803         subopt_solution a;
8804         a.energy = sol[i].energy;
8805         a.structure = sol[i].structure;
8806         ret.push_back(a);
8807       }
8808 
8809     free(sol);
8810     /* The memory occupied by the individual structures will be free'd automatically
8811        by swig, when the vector is destroyed
8812     */
8813     return ret;
8814   }
8815 
8816 
8817 
8818   char *
my_inverse_fold(char * start,const char * target,float * cost)8819   my_inverse_fold(char        *start,
8820                   const char  *target,
8821                   float *cost)
8822   {
8823     char *seq;
8824     int n;
8825     n = strlen(target);
8826     seq = vrna_random_string(n, symbolset);
8827     if (start)
8828       strncpy(seq, start, n);
8829     *cost = inverse_fold(seq, target);
8830     if (start)
8831       /* for backward compatibility modify start */
8832       strncpy(start, seq, n);
8833     return(seq);
8834   }
8835 
8836 
8837   char *
my_inverse_pf_fold(char * start,const char * target,float * cost)8838   my_inverse_pf_fold( char        *start,
8839                       const char  *target,
8840                       float       *cost)
8841   {
8842     char *seq;
8843     int n;
8844     n = strlen(target);
8845     seq = vrna_random_string(n, symbolset);
8846     if (start)
8847       strncpy(seq, start, n);
8848     *cost = inverse_pf_fold(seq, target);
8849     if (start)
8850       /* for backward compatibility modify start */
8851       strncpy(start, seq, n);
8852     return(seq);
8853   }
8854 
8855 
deref_any(void ** ptr,int index)8856 void *deref_any(void **ptr, int index) {
8857    /* dereference arbitray pointer */
8858    return (void *) ptr[index];
8859 }
8860 
8861 
get_aligned_line(int i)8862 char *get_aligned_line(int i) {
8863   i = i % 2;
8864   return aligned_line[i];
8865 }
8866 
8867 
8868 
8869   std::vector<double>
my_file_SHAPE_read(std::string file_name,int length,double default_value,std::string * shape_sequence,int * status)8870   my_file_SHAPE_read( std::string file_name,
8871                       int         length,
8872                       double      default_value,
8873                       std::string *shape_sequence,
8874                       int         *status)
8875   {
8876     std::vector<double> values (length+1, -999);
8877     char *seq = (char *)vrna_alloc(sizeof(char) * (length + 1));
8878 
8879     *status = vrna_file_SHAPE_read(file_name.c_str(), length, default_value, seq, (double *)&values[0]);
8880 
8881     *shape_sequence = std::string(seq);
8882 
8883     free(seq);
8884     return values;
8885   }
8886 
8887 
8888 
8889   int
my_file_fasta_read(std::string * id,std::string * sequence,std::vector<std::string> * rest,FILE * file,unsigned int options=0)8890   my_file_fasta_read( std::string               *id,
8891                       std::string               *sequence,
8892                       std::vector<std::string>  *rest,
8893                       FILE                      *file,
8894                       unsigned int              options = 0)
8895   {
8896     char  *c_seq, *c_id, **c_rest, **ptr;
8897     int   ret;
8898 
8899     ret = vrna_file_fasta_read_record(&c_id, &c_seq, &c_rest, file, options);
8900 
8901     if (ret != -1) {
8902       rest->clear();
8903       rest->reserve(ret);
8904 
8905       *id        = (c_id) ? c_id : "";
8906       *sequence  = (c_seq) ? c_seq : "";
8907 
8908       if ((c_rest) &&
8909           (*c_rest))
8910         for (ptr = c_rest; *ptr; ptr++) {
8911           std::string line(*ptr);
8912           rest->push_back(line);
8913           free(*ptr);
8914         }
8915 
8916       free(c_id);
8917       free(c_seq);
8918       free(c_rest);
8919     }
8920 
8921     return ret;
8922   }
8923 
8924 
8925 
8926 
8927   unsigned int
my_file_msa_detect_format(std::string filename,unsigned int options=VRNA_FILE_FORMAT_MSA_DEFAULT)8928   my_file_msa_detect_format(std::string   filename,
8929                             unsigned int  options = VRNA_FILE_FORMAT_MSA_DEFAULT)
8930   {
8931     return vrna_file_msa_detect_format(filename.c_str(), options);
8932   }
8933 
8934 
8935   int
my_file_msa_read(std::string filename,std::vector<std::string> * names,std::vector<std::string> * alignment,std::string * id,std::string * structure,unsigned int options=VRNA_FILE_FORMAT_MSA_STOCKHOLM)8936   my_file_msa_read( std::string               filename,
8937                     std::vector<std::string>  *names,
8938                     std::vector<std::string>  *alignment,
8939                     std::string               *id,
8940                     std::string               *structure,
8941                     unsigned int              options = VRNA_FILE_FORMAT_MSA_STOCKHOLM)
8942   {
8943     char **c_names, **c_aln, *c_id, *c_structure;
8944 
8945     int ret = vrna_file_msa_read(filename.c_str(), &c_names, &c_aln, &c_id, &c_structure, options);
8946 
8947     if (ret != -1) {
8948       names->clear();
8949       alignment->clear();
8950 
8951       names->reserve(ret);
8952       alignment->reserve(ret);
8953 
8954       for (int i = 0; i < ret; i++) {
8955         std::string id(c_names[i]);
8956         std::string seq(c_aln[i]);
8957         names->push_back(id);
8958         alignment->push_back(seq);
8959         free(c_names[i]);
8960         free(c_aln[i]);
8961       }
8962       *id        = (c_id) ? c_id : "";
8963       *structure = (c_structure) ? c_structure : "";
8964 
8965       free(c_names);
8966       free(c_aln);
8967       free(c_id);
8968       free(c_structure);
8969     }
8970 
8971     return ret;
8972   }
8973 
8974 
8975   int
my_file_msa_read_record(FILE * filehandle,std::vector<std::string> * names,std::vector<std::string> * alignment,std::string * id,std::string * structure,unsigned int options=VRNA_FILE_FORMAT_MSA_STOCKHOLM)8976   my_file_msa_read_record(FILE                      *filehandle,
8977                           std::vector<std::string>  *names,
8978                           std::vector<std::string>  *alignment,
8979                           std::string               *id,
8980                           std::string               *structure,
8981                           unsigned int              options = VRNA_FILE_FORMAT_MSA_STOCKHOLM)
8982   {
8983     char **c_names, **c_aln, *c_id, *c_structure;
8984 
8985     int ret = vrna_file_msa_read_record(filehandle, &c_names, &c_aln, &c_id, &c_structure, options);
8986 
8987     if (ret != -1) {
8988       names->clear();
8989       alignment->clear();
8990 
8991       names->reserve(ret);
8992       alignment->reserve(ret);
8993 
8994       for (int i = 0; i < ret; i++) {
8995         std::string id(c_names[i]);
8996         std::string seq(c_aln[i]);
8997         names->push_back(id);
8998         alignment->push_back(seq);
8999         free(c_names[i]);
9000         free(c_aln[i]);
9001       }
9002       *id        = (c_id) ? c_id : "";
9003       *structure = (c_structure) ? c_structure : "";
9004 
9005       free(c_names);
9006       free(c_aln);
9007       free(c_id);
9008       free(c_structure);
9009     }
9010 
9011     return ret;
9012   }
9013 
9014 
9015   int
my_file_msa_write(std::string filename,std::vector<std::string> names,std::vector<std::string> alignment,std::string id="",std::string structure="",std::string source="",unsigned int options=VRNA_FILE_FORMAT_MSA_STOCKHOLM|VRNA_FILE_FORMAT_MSA_APPEND)9016   my_file_msa_write(std::string               filename,
9017                     std::vector<std::string>  names,
9018                     std::vector<std::string>  alignment,
9019                     std::string               id = "",
9020                     std::string               structure = "",
9021                     std::string               source = "",
9022                     unsigned int              options = VRNA_FILE_FORMAT_MSA_STOCKHOLM | VRNA_FILE_FORMAT_MSA_APPEND)
9023   {
9024     std::vector<const char*>  v_names;
9025     std::vector<const char*>  v_aln;
9026 
9027     transform(names.begin(), names.end(), back_inserter(v_names), convert_vecstring2veccharcp);
9028     v_names.push_back(NULL); /* mark end of sequences */
9029     transform(alignment.begin(), alignment.end(), back_inserter(v_aln), convert_vecstring2veccharcp);
9030     v_aln.push_back(NULL); /* mark end of sequences */
9031 
9032     return vrna_file_msa_write(filename.c_str(),
9033                               (const char **)&v_names[0],
9034                               (const char **)&v_aln[0],
9035                               (id != "") ? id.c_str() : NULL,
9036                               (structure != "") ? structure.c_str() : NULL,
9037                               (source != "") ? source.c_str() : NULL,
9038                               options);
9039   }
9040 
9041 
9042 
9043 #include <vector>
9044 
9045   std::vector<int>
my_seq_encode(std::string sequence,vrna_md_t * md_p=NULL)9046   my_seq_encode(std::string sequence,
9047                 vrna_md_t   *md_p = NULL)
9048   {
9049     short             *s;
9050     int               n;
9051     std::vector<int>  encoding;
9052     vrna_md_t         md;
9053 
9054     if (!md_p) {
9055       vrna_md_set_default(&md);
9056       md_p = &md;
9057     }
9058 
9059     n = sequence.length();
9060     s = vrna_seq_encode(sequence.c_str(),
9061                         md_p);
9062 
9063     encoding.push_back(n);
9064     for (int i = 1; i <= n; i++)
9065       encoding.push_back(s[i]);
9066 
9067     free(s);
9068 
9069     return encoding;
9070   }
9071 
9072 
new_vrna_command_s()9073 SWIGINTERN vrna_command_s *new_vrna_command_s(){
9074     vrna_command_s *c = NULL;
9075     return c;
9076   }
delete_vrna_command_s(vrna_command_s * self)9077 SWIGINTERN void delete_vrna_command_s(vrna_command_s *self){
9078     vrna_commands_free(self);
9079   }
9080 
9081   struct vrna_command_s *
my_file_commands_read(std::string filename,unsigned int options=VRNA_CMD_PARSE_DEFAULTS)9082   my_file_commands_read(std::string   filename,
9083                         unsigned int  options = VRNA_CMD_PARSE_DEFAULTS)
9084   {
9085     int i;
9086 
9087     return vrna_file_commands_read(filename.c_str(),
9088                                    options);
9089   }
9090 
9091 
9092   std::vector<std::vector<int> >
my_enumerate_necklaces(std::vector<unsigned int> entity_counts)9093   my_enumerate_necklaces( std::vector<unsigned int> entity_counts)
9094   {
9095     std::vector<std::vector<int> > permutations;
9096     /* add a 0 entry, just in case it has been forgotten */
9097     entity_counts.push_back(0);
9098     unsigned int **result = vrna_enumerate_necklaces((const unsigned int *)&entity_counts[0]);
9099     if(result){
9100       /* get line length */
9101       unsigned int n = 0;
9102       for(std::vector<unsigned int>::iterator it = entity_counts.begin(); it != entity_counts.end(); ++it)
9103         n += *it;
9104 
9105       for(int i = 0; result[i]; i++){
9106         std::vector<int> line;
9107         for(unsigned int j = 1; j <= n; j++)
9108           line.push_back((int)result[i][j]);
9109         free(result[i]);
9110         permutations.push_back(line);
9111       }
9112       free(result);
9113     }
9114     return permutations;
9115   }
9116 
9117 
9118   std::vector<unsigned int>
my_rotational_symmetry(std::string string)9119   my_rotational_symmetry(std::string string)
9120   {
9121     std::vector<unsigned int> positions;
9122     unsigned int i, r, *pos;
9123 
9124     r = vrna_rotational_symmetry_pos(string.c_str(), &pos);
9125 
9126     if (r)
9127       for (i = 0; i < r; i++)
9128         positions.push_back(pos[i]);
9129 
9130     free(pos);
9131 
9132     return positions;
9133   }
9134 
9135 
9136   std::vector<unsigned int>
my_rotational_symmetry(std::vector<unsigned int> string)9137   my_rotational_symmetry(std::vector<unsigned int> string)
9138   {
9139     std::vector<unsigned int> positions;
9140     unsigned int i, r, *pos;
9141 
9142     r = vrna_rotational_symmetry_pos_num((unsigned int*)&string[0], string.size(), &pos);
9143 
9144     if (r)
9145       for (i = 0; i < r; i++)
9146         positions.push_back(pos[i]);
9147 
9148     free(pos);
9149 
9150     return positions;
9151   }
9152 
9153 
delete_duplexT(duplexT * self)9154 SWIGINTERN void delete_duplexT(duplexT *self){
9155     free(self->structure);
9156     free(self);
9157   }
9158 
9159 
9160 extern "C" {
9161   typedef struct {
9162     int i;
9163     int j;
9164     char *structure;
9165     float energy;
9166   } duplex_list_t;
9167 }
9168 
9169 
delete_duplex_list_t(duplex_list_t * self)9170 SWIGINTERN void delete_duplex_list_t(duplex_list_t *self){
9171     free(self->structure);
9172     free(self);
9173   }
9174 
9175   namespace swig {
9176     template <>  struct traits< duplex_list_t > {
9177       typedef pointer_category category;
type_nameswig::traits9178       static const char* type_name() { return"duplex_list_t"; }
9179     };
9180   }
9181 
9182 
9183       namespace swig {
9184 	template <>  struct traits<std::vector< duplex_list_t, std::allocator< duplex_list_t > > > {
9185 	  typedef pointer_category category;
type_nameswig::traits9186 	  static const char* type_name() {
9187 	    return "std::vector<" "duplex_list_t" "," "std::allocator< duplex_list_t >" " >";
9188 	  }
9189 	};
9190       }
9191 
std_vector_Sl_duplex_list_t_Sg__iterator(std::vector<duplex_list_t> * self,PyObject ** PYTHON_SELF)9192 SWIGINTERN swig::SwigPyIterator *std_vector_Sl_duplex_list_t_Sg__iterator(std::vector< duplex_list_t > *self,PyObject **PYTHON_SELF){
9193       return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
9194     }
std_vector_Sl_duplex_list_t_Sg____nonzero__(std::vector<duplex_list_t> const * self)9195 SWIGINTERN bool std_vector_Sl_duplex_list_t_Sg____nonzero__(std::vector< duplex_list_t > const *self){
9196       return !(self->empty());
9197     }
std_vector_Sl_duplex_list_t_Sg____bool__(std::vector<duplex_list_t> const * self)9198 SWIGINTERN bool std_vector_Sl_duplex_list_t_Sg____bool__(std::vector< duplex_list_t > const *self){
9199       return !(self->empty());
9200     }
std_vector_Sl_duplex_list_t_Sg____len__(std::vector<duplex_list_t> const * self)9201 SWIGINTERN std::vector< duplex_list_t >::size_type std_vector_Sl_duplex_list_t_Sg____len__(std::vector< duplex_list_t > const *self){
9202       return self->size();
9203     }
std_vector_Sl_duplex_list_t_Sg____getslice__(std::vector<duplex_list_t> * self,std::vector<duplex_list_t>::difference_type i,std::vector<duplex_list_t>::difference_type j)9204 SWIGINTERN std::vector< duplex_list_t,std::allocator< duplex_list_t > > *std_vector_Sl_duplex_list_t_Sg____getslice__(std::vector< duplex_list_t > *self,std::vector< duplex_list_t >::difference_type i,std::vector< duplex_list_t >::difference_type j){
9205       return swig::getslice(self, i, j, 1);
9206     }
std_vector_Sl_duplex_list_t_Sg____setslice____SWIG_0(std::vector<duplex_list_t> * self,std::vector<duplex_list_t>::difference_type i,std::vector<duplex_list_t>::difference_type j)9207 SWIGINTERN void std_vector_Sl_duplex_list_t_Sg____setslice____SWIG_0(std::vector< duplex_list_t > *self,std::vector< duplex_list_t >::difference_type i,std::vector< duplex_list_t >::difference_type j){
9208       swig::setslice(self, i, j, 1, std::vector< duplex_list_t,std::allocator< duplex_list_t > >());
9209     }
std_vector_Sl_duplex_list_t_Sg____setslice____SWIG_1(std::vector<duplex_list_t> * self,std::vector<duplex_list_t>::difference_type i,std::vector<duplex_list_t>::difference_type j,std::vector<duplex_list_t,std::allocator<duplex_list_t>> const & v)9210 SWIGINTERN void std_vector_Sl_duplex_list_t_Sg____setslice____SWIG_1(std::vector< duplex_list_t > *self,std::vector< duplex_list_t >::difference_type i,std::vector< duplex_list_t >::difference_type j,std::vector< duplex_list_t,std::allocator< duplex_list_t > > const &v){
9211       swig::setslice(self, i, j, 1, v);
9212     }
std_vector_Sl_duplex_list_t_Sg____delslice__(std::vector<duplex_list_t> * self,std::vector<duplex_list_t>::difference_type i,std::vector<duplex_list_t>::difference_type j)9213 SWIGINTERN void std_vector_Sl_duplex_list_t_Sg____delslice__(std::vector< duplex_list_t > *self,std::vector< duplex_list_t >::difference_type i,std::vector< duplex_list_t >::difference_type j){
9214       swig::delslice(self, i, j, 1);
9215     }
std_vector_Sl_duplex_list_t_Sg____delitem____SWIG_0(std::vector<duplex_list_t> * self,std::vector<duplex_list_t>::difference_type i)9216 SWIGINTERN void std_vector_Sl_duplex_list_t_Sg____delitem____SWIG_0(std::vector< duplex_list_t > *self,std::vector< duplex_list_t >::difference_type i){
9217       swig::erase(self, swig::getpos(self, i));
9218     }
std_vector_Sl_duplex_list_t_Sg____getitem____SWIG_0(std::vector<duplex_list_t> * self,PySliceObject * slice)9219 SWIGINTERN std::vector< duplex_list_t,std::allocator< duplex_list_t > > *std_vector_Sl_duplex_list_t_Sg____getitem____SWIG_0(std::vector< duplex_list_t > *self,PySliceObject *slice){
9220       Py_ssize_t i, j, step;
9221       if( !PySlice_Check(slice) ) {
9222         SWIG_Error(SWIG_TypeError, "Slice object expected.");
9223         return NULL;
9224       }
9225       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
9226       std::vector< duplex_list_t,std::allocator< duplex_list_t > >::difference_type id = i;
9227       std::vector< duplex_list_t,std::allocator< duplex_list_t > >::difference_type jd = j;
9228       return swig::getslice(self, id, jd, step);
9229     }
std_vector_Sl_duplex_list_t_Sg____setitem____SWIG_0(std::vector<duplex_list_t> * self,PySliceObject * slice,std::vector<duplex_list_t,std::allocator<duplex_list_t>> const & v)9230 SWIGINTERN void std_vector_Sl_duplex_list_t_Sg____setitem____SWIG_0(std::vector< duplex_list_t > *self,PySliceObject *slice,std::vector< duplex_list_t,std::allocator< duplex_list_t > > const &v){
9231       Py_ssize_t i, j, step;
9232       if( !PySlice_Check(slice) ) {
9233         SWIG_Error(SWIG_TypeError, "Slice object expected.");
9234         return;
9235       }
9236       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
9237       std::vector< duplex_list_t,std::allocator< duplex_list_t > >::difference_type id = i;
9238       std::vector< duplex_list_t,std::allocator< duplex_list_t > >::difference_type jd = j;
9239       swig::setslice(self, id, jd, step, v);
9240     }
std_vector_Sl_duplex_list_t_Sg____setitem____SWIG_1(std::vector<duplex_list_t> * self,PySliceObject * slice)9241 SWIGINTERN void std_vector_Sl_duplex_list_t_Sg____setitem____SWIG_1(std::vector< duplex_list_t > *self,PySliceObject *slice){
9242       Py_ssize_t i, j, step;
9243       if( !PySlice_Check(slice) ) {
9244         SWIG_Error(SWIG_TypeError, "Slice object expected.");
9245         return;
9246       }
9247       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
9248       std::vector< duplex_list_t,std::allocator< duplex_list_t > >::difference_type id = i;
9249       std::vector< duplex_list_t,std::allocator< duplex_list_t > >::difference_type jd = j;
9250       swig::delslice(self, id, jd, step);
9251     }
std_vector_Sl_duplex_list_t_Sg____delitem____SWIG_1(std::vector<duplex_list_t> * self,PySliceObject * slice)9252 SWIGINTERN void std_vector_Sl_duplex_list_t_Sg____delitem____SWIG_1(std::vector< duplex_list_t > *self,PySliceObject *slice){
9253       Py_ssize_t i, j, step;
9254       if( !PySlice_Check(slice) ) {
9255         SWIG_Error(SWIG_TypeError, "Slice object expected.");
9256         return;
9257       }
9258       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
9259       std::vector< duplex_list_t,std::allocator< duplex_list_t > >::difference_type id = i;
9260       std::vector< duplex_list_t,std::allocator< duplex_list_t > >::difference_type jd = j;
9261       swig::delslice(self, id, jd, step);
9262     }
std_vector_Sl_duplex_list_t_Sg____getitem____SWIG_1(std::vector<duplex_list_t> const * self,std::vector<duplex_list_t>::difference_type i)9263 SWIGINTERN std::vector< duplex_list_t >::value_type const &std_vector_Sl_duplex_list_t_Sg____getitem____SWIG_1(std::vector< duplex_list_t > const *self,std::vector< duplex_list_t >::difference_type i){
9264       return *(swig::cgetpos(self, i));
9265     }
std_vector_Sl_duplex_list_t_Sg____setitem____SWIG_2(std::vector<duplex_list_t> * self,std::vector<duplex_list_t>::difference_type i,std::vector<duplex_list_t>::value_type const & x)9266 SWIGINTERN void std_vector_Sl_duplex_list_t_Sg____setitem____SWIG_2(std::vector< duplex_list_t > *self,std::vector< duplex_list_t >::difference_type i,std::vector< duplex_list_t >::value_type const &x){
9267       *(swig::getpos(self,i)) = x;
9268     }
std_vector_Sl_duplex_list_t_Sg__pop(std::vector<duplex_list_t> * self)9269 SWIGINTERN std::vector< duplex_list_t >::value_type std_vector_Sl_duplex_list_t_Sg__pop(std::vector< duplex_list_t > *self){
9270       if (self->size() == 0)
9271 	throw std::out_of_range("pop from empty container");
9272       std::vector< duplex_list_t,std::allocator< duplex_list_t > >::value_type x = self->back();
9273       self->pop_back();
9274       return x;
9275     }
std_vector_Sl_duplex_list_t_Sg__append(std::vector<duplex_list_t> * self,std::vector<duplex_list_t>::value_type const & x)9276 SWIGINTERN void std_vector_Sl_duplex_list_t_Sg__append(std::vector< duplex_list_t > *self,std::vector< duplex_list_t >::value_type const &x){
9277       self->push_back(x);
9278     }
std_vector_Sl_duplex_list_t_Sg__erase__SWIG_0(std::vector<duplex_list_t> * self,std::vector<duplex_list_t>::iterator pos)9279 SWIGINTERN std::vector< duplex_list_t >::iterator std_vector_Sl_duplex_list_t_Sg__erase__SWIG_0(std::vector< duplex_list_t > *self,std::vector< duplex_list_t >::iterator pos){ return self->erase(pos); }
std_vector_Sl_duplex_list_t_Sg__erase__SWIG_1(std::vector<duplex_list_t> * self,std::vector<duplex_list_t>::iterator first,std::vector<duplex_list_t>::iterator last)9280 SWIGINTERN std::vector< duplex_list_t >::iterator std_vector_Sl_duplex_list_t_Sg__erase__SWIG_1(std::vector< duplex_list_t > *self,std::vector< duplex_list_t >::iterator first,std::vector< duplex_list_t >::iterator last){ return self->erase(first, last); }
std_vector_Sl_duplex_list_t_Sg__insert__SWIG_0(std::vector<duplex_list_t> * self,std::vector<duplex_list_t>::iterator pos,std::vector<duplex_list_t>::value_type const & x)9281 SWIGINTERN std::vector< duplex_list_t >::iterator std_vector_Sl_duplex_list_t_Sg__insert__SWIG_0(std::vector< duplex_list_t > *self,std::vector< duplex_list_t >::iterator pos,std::vector< duplex_list_t >::value_type const &x){ return self->insert(pos, x); }
std_vector_Sl_duplex_list_t_Sg__insert__SWIG_1(std::vector<duplex_list_t> * self,std::vector<duplex_list_t>::iterator pos,std::vector<duplex_list_t>::size_type n,std::vector<duplex_list_t>::value_type const & x)9282 SWIGINTERN void std_vector_Sl_duplex_list_t_Sg__insert__SWIG_1(std::vector< duplex_list_t > *self,std::vector< duplex_list_t >::iterator pos,std::vector< duplex_list_t >::size_type n,std::vector< duplex_list_t >::value_type const &x){ self->insert(pos, n, x); }
9283 
9284 
9285   duplexT
my_duplexfold(std::string s1,std::string s2)9286   my_duplexfold(std::string s1,
9287                 std::string s2)
9288   {
9289     return duplexfold(s1.c_str(), s2.c_str());
9290   }
9291 
9292   std::vector<duplex_list_t>
my_duplex_subopt(std::string s1,std::string s2,int delta,int w)9293   my_duplex_subopt( std::string s1,
9294                     std::string s2,
9295                     int         delta,
9296                     int         w)
9297   {
9298     std::vector<duplex_list_t> ret;
9299     duplexT *list, *ptr;
9300     list = duplex_subopt(s1.c_str(), s2.c_str(), delta, w);
9301 
9302     for (ptr = list; ptr->structure != NULL; ptr++) {
9303       duplex_list_t a;
9304       a.i         = ptr->i;
9305       a.j         = ptr->j;
9306       a.energy    = ptr->energy;
9307       a.structure = ptr->structure;
9308       ret.push_back(a);
9309     }
9310     free(list);
9311 
9312     return ret;
9313   }
9314 
9315   duplexT
my_aliduplexfold(std::vector<std::string> alignment1,std::vector<std::string> alignment2)9316   my_aliduplexfold(std::vector<std::string> alignment1,
9317                    std::vector<std::string> alignment2)
9318   {
9319     std::vector<const char*> aln_vec1;
9320     std::transform(alignment1.begin(), alignment1.end(), std::back_inserter(aln_vec1), convert_vecstring2veccharcp);
9321     aln_vec1.push_back(NULL); /* mark end of sequences */
9322     std::vector<const char*> aln_vec2;
9323     std::transform(alignment2.begin(), alignment2.end(), std::back_inserter(aln_vec2), convert_vecstring2veccharcp);
9324     aln_vec2.push_back(NULL); /* mark end of sequences */
9325 
9326     return aliduplexfold((const char **)&aln_vec1[0], (const char **)&aln_vec2[0]);
9327   }
9328 
9329   std::vector<duplex_list_t>
aliduplex_subopt(std::vector<std::string> alignment1,std::vector<std::string> alignment2,int delta,int w)9330   aliduplex_subopt(std::vector<std::string> alignment1,
9331                    std::vector<std::string> alignment2,
9332                    int                      delta,
9333                    int                      w)
9334   {
9335     std::vector<duplex_list_t> ret;
9336     duplexT *list, *ptr;
9337     std::vector<const char*> aln_vec1;
9338     std::transform(alignment1.begin(), alignment1.end(), std::back_inserter(aln_vec1), convert_vecstring2veccharcp);
9339     aln_vec1.push_back(NULL); /* mark end of sequences */
9340     std::vector<const char*> aln_vec2;
9341     std::transform(alignment2.begin(), alignment2.end(), std::back_inserter(aln_vec2), convert_vecstring2veccharcp);
9342     aln_vec2.push_back(NULL); /* mark end of sequences */
9343 
9344     list = aliduplex_subopt((const char **)&aln_vec1[0], (const char **)&aln_vec2[0], delta, w);
9345     for (ptr = list; ptr->structure != NULL; ptr++) {
9346       duplex_list_t a;
9347       a.i         = ptr->i;
9348       a.j         = ptr->j;
9349       a.energy    = ptr->energy;
9350       a.structure = ptr->structure;
9351       ret.push_back(a);
9352     }
9353     free(list);
9354 
9355     return ret;
9356   }
9357 
9358 
9359 #include <sstream>
9360 
new_vrna_move_t(int pos_5=0,int pos_3=0)9361 SWIGINTERN vrna_move_t *new_vrna_move_t(int pos_5=0,int pos_3=0){
9362     vrna_move_t *m = (vrna_move_t *)vrna_alloc(sizeof(vrna_move_t));
9363     *m = vrna_move_init(pos_5, pos_3);
9364     return m;
9365   }
delete_vrna_move_t(vrna_move_t * self)9366 SWIGINTERN void delete_vrna_move_t(vrna_move_t *self){
9367     vrna_move_list_free(self->next);
9368     free(self);
9369   }
vrna_move_t_is_removal(vrna_move_t * self)9370 SWIGINTERN int vrna_move_t_is_removal(vrna_move_t *self){
9371     return vrna_move_is_removal((const vrna_move_t *)self);
9372   }
vrna_move_t_is_insertion(vrna_move_t * self)9373 SWIGINTERN int vrna_move_t_is_insertion(vrna_move_t *self){
9374     return vrna_move_is_insertion((const vrna_move_t *)self);
9375   }
vrna_move_t_is_shift(vrna_move_t * self)9376 SWIGINTERN int vrna_move_t_is_shift(vrna_move_t *self){
9377     return vrna_move_is_shift((const vrna_move_t *)self);
9378   }
vrna_move_t_compare(vrna_move_t * self,vrna_move_t const * b,std::vector<int,std::allocator<int>> const pt=std::vector<int> ())9379 SWIGINTERN int vrna_move_t_compare(vrna_move_t *self,vrna_move_t const *b,std::vector< int,std::allocator< int > > const pt=std::vector< int >()){
9380     int result;
9381     std::vector<short> vs;
9382     transform(pt.begin(), pt.end(), back_inserter(vs), convert_vecint2vecshort);
9383 
9384     result =  vrna_move_compare(self,
9385                                 b,
9386                                 (const short *)&vs[0]);
9387 
9388     return result;
9389   }
vrna_move_t___str__(vrna_move_t * self)9390 SWIGINTERN std::string vrna_move_t___str__(vrna_move_t *self){
9391     std::ostringstream out;
9392     out << "{ pos_5: " << self->pos_5;
9393     out << ", pos_3: " << self->pos_3;
9394     out << " }";
9395 
9396     return std::string(out.str());
9397   }
9398 
9399 #include <sstream>
9400 
new_vrna_path_t(double en,std::string s="",vrna_move_t * move=NULL,unsigned int type=VRNA_PATH_TYPE_DOT_BRACKET)9401 SWIGINTERN vrna_path_t *new_vrna_path_t(double en,std::string s="",vrna_move_t *move=NULL,unsigned int type=VRNA_PATH_TYPE_DOT_BRACKET){
9402     vrna_path_t *step = (vrna_path_t *)vrna_alloc(sizeof(vrna_path_t));
9403 
9404     step->type  = type;
9405     step->en    = en;
9406 
9407     if ((s == "") && (move))
9408       type = VRNA_PATH_TYPE_MOVES;
9409 
9410     switch (type) {
9411       case VRNA_PATH_TYPE_DOT_BRACKET:
9412         if (s != "") {
9413           step->s = (char *)vrna_alloc(sizeof(char) * (s.length() + 1));
9414           memcpy(step->s, s.c_str(), sizeof(char) * s.length());
9415         } else {
9416           step->s = NULL;
9417         }
9418         break;
9419 
9420       case VRNA_PATH_TYPE_MOVES:
9421         if (move) {
9422           step->move.pos_5 = move->pos_5;
9423           step->move.pos_3 = move->pos_3;
9424         } else {
9425           step->move.pos_5 = 0;
9426           step->move.pos_3 = 0;
9427         }
9428         break;
9429 
9430       default:
9431         break;
9432     }
9433 
9434 
9435     return step;
9436   }
delete_vrna_path_t(vrna_path_t * self)9437 SWIGINTERN void delete_vrna_path_t(vrna_path_t *self){
9438     free(self->s);
9439     free(self);
9440   }
vrna_path_t___str__(vrna_path_t * self)9441 SWIGINTERN std::string vrna_path_t___str__(vrna_path_t *self){
9442     std::ostringstream out;
9443     out << "{ type: " << self->type;
9444     switch(self->type) {
9445       case VRNA_PATH_TYPE_MOVES:
9446         out << ", s: None";
9447         break;
9448 
9449       case VRNA_PATH_TYPE_DOT_BRACKET:
9450         if (self->s)
9451           out << ", s: \"" << self->s << "\"";
9452         else
9453           out << ", s: None";
9454         break;
9455 
9456       default:
9457         out << ", s: None";
9458         break;
9459     }
9460 
9461     out << ", en: " << self->en;
9462 
9463     if (self->type == VRNA_PATH_TYPE_MOVES)
9464       out << ", move: { pos_5: " << self->move.pos_5 << ", pos_3: " << self->move.pos_3 << "}";
9465     else
9466       out << ", move: None";
9467 
9468     out << " }";
9469 
9470     return std::string(out.str());
9471   }
new_vrna_path_options_s()9472 SWIGINTERN vrna_path_options_s *new_vrna_path_options_s(){
9473     return NULL;
9474   }
delete_vrna_path_options_s(vrna_path_options_s * self)9475 SWIGINTERN void delete_vrna_path_options_s(vrna_path_options_s *self){
9476     vrna_path_options_free(self);
9477   }
9478 
9479   struct vrna_path_options_s *
my_path_options_findpath(int width=10,unsigned int type=VRNA_PATH_TYPE_DOT_BRACKET)9480   my_path_options_findpath(int          width = 10,
9481                            unsigned int type  = VRNA_PATH_TYPE_DOT_BRACKET)
9482   {
9483     return vrna_path_options_findpath(width, type);
9484   }
9485 
9486 
9487   std::vector<vrna_path_t>
my_get_path(std::string seq,std::string s1,std::string s2,int maxkeep)9488   my_get_path(std::string seq,
9489               std::string s1,
9490               std::string s2,
9491               int         maxkeep)
9492   {
9493     std::vector<vrna_path_t>  v; /* fill vector with returned vrna_path_t*/
9494     vrna_path_t *path_t, *ptr;
9495 
9496     path_t = ptr = get_path(seq.c_str(), s1.c_str(), s2.c_str(), maxkeep);
9497 
9498     while (ptr->s != NULL)
9499     {
9500         vrna_path_t p;
9501 
9502         p.type  = VRNA_PATH_TYPE_DOT_BRACKET;
9503         p.en    = ptr->en;
9504         p.s     = ptr->s;
9505 
9506         v.push_back(p);
9507         ptr++;
9508 
9509     }
9510     free(path_t);
9511     return v;
9512   }
9513 
9514 
9515 
9516 extern "C" {
9517   typedef struct {
9518     float temperature;    /**< @brief   The temperature in &deg;C */
9519     float heat_capacity;  /**< @brief   The specific heat at this temperature in Kcal/(Mol * K) */
9520   } heat_capacity_result;
9521 }
9522 
9523 
heat_capacity_result___str__(heat_capacity_result * self)9524 SWIGINTERN std::string heat_capacity_result___str__(heat_capacity_result *self){
9525     std::ostringstream out;
9526     out << "{ temperature: \"" << self->temperature << "\"";
9527     out << ", heat_capacity: " << self->heat_capacity;
9528     out << " }";
9529 
9530     return std::string(out.str());
9531   }
9532 
9533   namespace swig {
9534     template <>  struct traits< heat_capacity_result > {
9535       typedef pointer_category category;
type_nameswig::traits9536       static const char* type_name() { return"heat_capacity_result"; }
9537     };
9538   }
9539 
9540 
9541       namespace swig {
9542 	template <>  struct traits<std::vector< heat_capacity_result, std::allocator< heat_capacity_result > > > {
9543 	  typedef pointer_category category;
type_nameswig::traits9544 	  static const char* type_name() {
9545 	    return "std::vector<" "heat_capacity_result" "," "std::allocator< heat_capacity_result >" " >";
9546 	  }
9547 	};
9548       }
9549 
std_vector_Sl_heat_capacity_result_Sg__iterator(std::vector<heat_capacity_result> * self,PyObject ** PYTHON_SELF)9550 SWIGINTERN swig::SwigPyIterator *std_vector_Sl_heat_capacity_result_Sg__iterator(std::vector< heat_capacity_result > *self,PyObject **PYTHON_SELF){
9551       return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
9552     }
std_vector_Sl_heat_capacity_result_Sg____nonzero__(std::vector<heat_capacity_result> const * self)9553 SWIGINTERN bool std_vector_Sl_heat_capacity_result_Sg____nonzero__(std::vector< heat_capacity_result > const *self){
9554       return !(self->empty());
9555     }
std_vector_Sl_heat_capacity_result_Sg____bool__(std::vector<heat_capacity_result> const * self)9556 SWIGINTERN bool std_vector_Sl_heat_capacity_result_Sg____bool__(std::vector< heat_capacity_result > const *self){
9557       return !(self->empty());
9558     }
std_vector_Sl_heat_capacity_result_Sg____len__(std::vector<heat_capacity_result> const * self)9559 SWIGINTERN std::vector< heat_capacity_result >::size_type std_vector_Sl_heat_capacity_result_Sg____len__(std::vector< heat_capacity_result > const *self){
9560       return self->size();
9561     }
std_vector_Sl_heat_capacity_result_Sg____getslice__(std::vector<heat_capacity_result> * self,std::vector<heat_capacity_result>::difference_type i,std::vector<heat_capacity_result>::difference_type j)9562 SWIGINTERN std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > *std_vector_Sl_heat_capacity_result_Sg____getslice__(std::vector< heat_capacity_result > *self,std::vector< heat_capacity_result >::difference_type i,std::vector< heat_capacity_result >::difference_type j){
9563       return swig::getslice(self, i, j, 1);
9564     }
std_vector_Sl_heat_capacity_result_Sg____setslice____SWIG_0(std::vector<heat_capacity_result> * self,std::vector<heat_capacity_result>::difference_type i,std::vector<heat_capacity_result>::difference_type j)9565 SWIGINTERN void std_vector_Sl_heat_capacity_result_Sg____setslice____SWIG_0(std::vector< heat_capacity_result > *self,std::vector< heat_capacity_result >::difference_type i,std::vector< heat_capacity_result >::difference_type j){
9566       swig::setslice(self, i, j, 1, std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >());
9567     }
std_vector_Sl_heat_capacity_result_Sg____setslice____SWIG_1(std::vector<heat_capacity_result> * self,std::vector<heat_capacity_result>::difference_type i,std::vector<heat_capacity_result>::difference_type j,std::vector<heat_capacity_result,std::allocator<heat_capacity_result>> const & v)9568 SWIGINTERN void std_vector_Sl_heat_capacity_result_Sg____setslice____SWIG_1(std::vector< heat_capacity_result > *self,std::vector< heat_capacity_result >::difference_type i,std::vector< heat_capacity_result >::difference_type j,std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > const &v){
9569       swig::setslice(self, i, j, 1, v);
9570     }
std_vector_Sl_heat_capacity_result_Sg____delslice__(std::vector<heat_capacity_result> * self,std::vector<heat_capacity_result>::difference_type i,std::vector<heat_capacity_result>::difference_type j)9571 SWIGINTERN void std_vector_Sl_heat_capacity_result_Sg____delslice__(std::vector< heat_capacity_result > *self,std::vector< heat_capacity_result >::difference_type i,std::vector< heat_capacity_result >::difference_type j){
9572       swig::delslice(self, i, j, 1);
9573     }
std_vector_Sl_heat_capacity_result_Sg____delitem____SWIG_0(std::vector<heat_capacity_result> * self,std::vector<heat_capacity_result>::difference_type i)9574 SWIGINTERN void std_vector_Sl_heat_capacity_result_Sg____delitem____SWIG_0(std::vector< heat_capacity_result > *self,std::vector< heat_capacity_result >::difference_type i){
9575       swig::erase(self, swig::getpos(self, i));
9576     }
std_vector_Sl_heat_capacity_result_Sg____getitem____SWIG_0(std::vector<heat_capacity_result> * self,PySliceObject * slice)9577 SWIGINTERN std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > *std_vector_Sl_heat_capacity_result_Sg____getitem____SWIG_0(std::vector< heat_capacity_result > *self,PySliceObject *slice){
9578       Py_ssize_t i, j, step;
9579       if( !PySlice_Check(slice) ) {
9580         SWIG_Error(SWIG_TypeError, "Slice object expected.");
9581         return NULL;
9582       }
9583       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
9584       std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >::difference_type id = i;
9585       std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >::difference_type jd = j;
9586       return swig::getslice(self, id, jd, step);
9587     }
std_vector_Sl_heat_capacity_result_Sg____setitem____SWIG_0(std::vector<heat_capacity_result> * self,PySliceObject * slice,std::vector<heat_capacity_result,std::allocator<heat_capacity_result>> const & v)9588 SWIGINTERN void std_vector_Sl_heat_capacity_result_Sg____setitem____SWIG_0(std::vector< heat_capacity_result > *self,PySliceObject *slice,std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > const &v){
9589       Py_ssize_t i, j, step;
9590       if( !PySlice_Check(slice) ) {
9591         SWIG_Error(SWIG_TypeError, "Slice object expected.");
9592         return;
9593       }
9594       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
9595       std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >::difference_type id = i;
9596       std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >::difference_type jd = j;
9597       swig::setslice(self, id, jd, step, v);
9598     }
std_vector_Sl_heat_capacity_result_Sg____setitem____SWIG_1(std::vector<heat_capacity_result> * self,PySliceObject * slice)9599 SWIGINTERN void std_vector_Sl_heat_capacity_result_Sg____setitem____SWIG_1(std::vector< heat_capacity_result > *self,PySliceObject *slice){
9600       Py_ssize_t i, j, step;
9601       if( !PySlice_Check(slice) ) {
9602         SWIG_Error(SWIG_TypeError, "Slice object expected.");
9603         return;
9604       }
9605       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
9606       std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >::difference_type id = i;
9607       std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >::difference_type jd = j;
9608       swig::delslice(self, id, jd, step);
9609     }
std_vector_Sl_heat_capacity_result_Sg____delitem____SWIG_1(std::vector<heat_capacity_result> * self,PySliceObject * slice)9610 SWIGINTERN void std_vector_Sl_heat_capacity_result_Sg____delitem____SWIG_1(std::vector< heat_capacity_result > *self,PySliceObject *slice){
9611       Py_ssize_t i, j, step;
9612       if( !PySlice_Check(slice) ) {
9613         SWIG_Error(SWIG_TypeError, "Slice object expected.");
9614         return;
9615       }
9616       PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
9617       std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >::difference_type id = i;
9618       std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >::difference_type jd = j;
9619       swig::delslice(self, id, jd, step);
9620     }
std_vector_Sl_heat_capacity_result_Sg____getitem____SWIG_1(std::vector<heat_capacity_result> const * self,std::vector<heat_capacity_result>::difference_type i)9621 SWIGINTERN std::vector< heat_capacity_result >::value_type const &std_vector_Sl_heat_capacity_result_Sg____getitem____SWIG_1(std::vector< heat_capacity_result > const *self,std::vector< heat_capacity_result >::difference_type i){
9622       return *(swig::cgetpos(self, i));
9623     }
std_vector_Sl_heat_capacity_result_Sg____setitem____SWIG_2(std::vector<heat_capacity_result> * self,std::vector<heat_capacity_result>::difference_type i,std::vector<heat_capacity_result>::value_type const & x)9624 SWIGINTERN void std_vector_Sl_heat_capacity_result_Sg____setitem____SWIG_2(std::vector< heat_capacity_result > *self,std::vector< heat_capacity_result >::difference_type i,std::vector< heat_capacity_result >::value_type const &x){
9625       *(swig::getpos(self,i)) = x;
9626     }
std_vector_Sl_heat_capacity_result_Sg__pop(std::vector<heat_capacity_result> * self)9627 SWIGINTERN std::vector< heat_capacity_result >::value_type std_vector_Sl_heat_capacity_result_Sg__pop(std::vector< heat_capacity_result > *self){
9628       if (self->size() == 0)
9629 	throw std::out_of_range("pop from empty container");
9630       std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >::value_type x = self->back();
9631       self->pop_back();
9632       return x;
9633     }
std_vector_Sl_heat_capacity_result_Sg__append(std::vector<heat_capacity_result> * self,std::vector<heat_capacity_result>::value_type const & x)9634 SWIGINTERN void std_vector_Sl_heat_capacity_result_Sg__append(std::vector< heat_capacity_result > *self,std::vector< heat_capacity_result >::value_type const &x){
9635       self->push_back(x);
9636     }
std_vector_Sl_heat_capacity_result_Sg__erase__SWIG_0(std::vector<heat_capacity_result> * self,std::vector<heat_capacity_result>::iterator pos)9637 SWIGINTERN std::vector< heat_capacity_result >::iterator std_vector_Sl_heat_capacity_result_Sg__erase__SWIG_0(std::vector< heat_capacity_result > *self,std::vector< heat_capacity_result >::iterator pos){ return self->erase(pos); }
std_vector_Sl_heat_capacity_result_Sg__erase__SWIG_1(std::vector<heat_capacity_result> * self,std::vector<heat_capacity_result>::iterator first,std::vector<heat_capacity_result>::iterator last)9638 SWIGINTERN std::vector< heat_capacity_result >::iterator std_vector_Sl_heat_capacity_result_Sg__erase__SWIG_1(std::vector< heat_capacity_result > *self,std::vector< heat_capacity_result >::iterator first,std::vector< heat_capacity_result >::iterator last){ return self->erase(first, last); }
std_vector_Sl_heat_capacity_result_Sg__insert__SWIG_0(std::vector<heat_capacity_result> * self,std::vector<heat_capacity_result>::iterator pos,std::vector<heat_capacity_result>::value_type const & x)9639 SWIGINTERN std::vector< heat_capacity_result >::iterator std_vector_Sl_heat_capacity_result_Sg__insert__SWIG_0(std::vector< heat_capacity_result > *self,std::vector< heat_capacity_result >::iterator pos,std::vector< heat_capacity_result >::value_type const &x){ return self->insert(pos, x); }
std_vector_Sl_heat_capacity_result_Sg__insert__SWIG_1(std::vector<heat_capacity_result> * self,std::vector<heat_capacity_result>::iterator pos,std::vector<heat_capacity_result>::size_type n,std::vector<heat_capacity_result>::value_type const & x)9640 SWIGINTERN void std_vector_Sl_heat_capacity_result_Sg__insert__SWIG_1(std::vector< heat_capacity_result > *self,std::vector< heat_capacity_result >::iterator pos,std::vector< heat_capacity_result >::size_type n,std::vector< heat_capacity_result >::value_type const &x){ self->insert(pos, n, x); }
9641 
9642   std::vector<heat_capacity_result>
my_heat_capacity(std::string sequence,float T_min=0.,float T_max=100.,float T_increment=1.,unsigned int mpoints=2U)9643   my_heat_capacity(std::string   sequence,
9644                    float         T_min        = 0.,
9645                    float         T_max        = 100.,
9646                    float         T_increment  = 1.,
9647                    unsigned int  mpoints      = 2U)
9648   {
9649     vrna_heat_capacity_t              *result_c;
9650     std::vector<heat_capacity_result> result;
9651 
9652     result_c = vrna_heat_capacity_simple(sequence.c_str(), T_min, T_max, T_increment, mpoints);
9653 
9654     if (result_c) {
9655       for (size_t i = 0; result_c[i].temperature >= T_min; i++) {
9656         heat_capacity_result r;
9657         r.temperature = result_c[i].temperature;
9658         r.heat_capacity = result_c[i].heat_capacity;
9659         result.push_back(r);
9660       }
9661     }
9662 
9663     free(result_c);
9664 
9665     return result;
9666   }
9667 
9668 
9669 
9670 #include <stdexcept>
9671 
9672 typedef struct {
9673   PyObject  *cb;
9674   PyObject  *data;
9675   PyObject  *delete_data;
9676 } pycallback_t;
9677 
9678 static void
9679 py_wrap_fc_status_callback(unsigned char status,
9680                            void          *data);
9681 
9682 
9683 static void
delete_pydata(pycallback_t * cb)9684 delete_pydata(pycallback_t *cb)
9685 {
9686   if(cb->data != Py_None){
9687     if(cb->delete_data != Py_None){
9688       /* call user-defined data destructor */
9689       PyObject *func, *arglist, *result, *err;
9690       func = cb->delete_data;
9691       arglist = Py_BuildValue("O", cb->data);
9692       result  = PyObject_CallObject(func, arglist);
9693 
9694       /* BEGIN recognizing errors in callback execution */
9695       if (result == NULL) {
9696         if ((err = PyErr_Occurred())) {
9697           /* print error message */
9698           PyErr_Print();
9699           /* we only treat TypeErrors differently here, as they indicate that the callback does not follow requirements! */
9700           if (PyErr_GivenExceptionMatches(err, PyExc_TypeError)) {
9701             throw std::runtime_error( "Fold compound delete_data() callback must take exactly 1 argument" );
9702           } else {
9703             throw std::runtime_error( "Some error occurred while executing fold compound delete_data() callback" );
9704           }
9705         }
9706         PyErr_Clear();
9707       }
9708       /* END recognizing errors in callback execution */
9709 
9710       Py_DECREF(arglist);
9711       Py_XDECREF(result);
9712     }
9713   }
9714 
9715   Py_DECREF(cb->data);
9716   Py_DECREF(cb->delete_data);
9717 }
9718 
9719 
9720 static void
delete_pycallback(void * data)9721 delete_pycallback(void * data)
9722 {
9723   pycallback_t *cb = (pycallback_t *)data;
9724   /* first delete user data */
9725   delete_pydata(cb);
9726 
9727   /* now dispose of the callback */
9728   Py_DECREF(cb->cb);
9729 
9730   /* finally free pycallback */
9731   free(cb);
9732 }
9733 
9734 static void
fc_add_pycallback(vrna_fold_compound_t * vc,PyObject * PyFunc)9735 fc_add_pycallback(vrna_fold_compound_t *vc,
9736                   PyObject             *PyFunc)
9737 {
9738   /* try to dispose of previous callback */
9739   pycallback_t * cb;
9740   if(vc->auxdata){
9741     cb = (pycallback_t *)vc->auxdata;
9742     /* release previous callback */
9743     Py_XDECREF(cb->cb);
9744   } else {
9745     cb = (pycallback_t *)vrna_alloc(sizeof(pycallback_t));
9746 
9747     Py_INCREF(Py_None);
9748     cb->data = Py_None;
9749 
9750     Py_INCREF(Py_None);
9751     cb->delete_data = Py_None;
9752   }
9753   cb->cb = PyFunc;    /* remember callback */
9754   Py_XINCREF(PyFunc); /* Increase referenc counter */
9755 
9756   /* finaly bind callback wrapper to fold compound */
9757   vc->auxdata = (void *)cb;
9758   if(!vc->free_auxdata)
9759     vc->free_auxdata = &delete_pycallback;
9760 
9761   vrna_fold_compound_add_callback(vc, &py_wrap_fc_status_callback);
9762 }
9763 
9764 static void
fc_add_pydata(vrna_fold_compound_t * vc,PyObject * data,PyObject * PyFunc)9765 fc_add_pydata(vrna_fold_compound_t *vc,
9766               PyObject             *data,
9767               PyObject             *PyFunc)
9768 {
9769   pycallback_t * cb;
9770   /* try to dispose of previous data */
9771   if(vc->auxdata){
9772     cb = (pycallback_t *)vc->auxdata;
9773     delete_pydata(cb);
9774   } else {
9775     cb = (pycallback_t *)vrna_alloc(sizeof(pycallback_t));
9776 
9777     Py_INCREF(Py_None);
9778     cb->cb = Py_None;
9779   }
9780   cb->data        = data;   /* remember data */
9781   cb->delete_data = PyFunc; /* remember delete data function */
9782 
9783   /* increase reference counter */
9784   Py_INCREF(data);
9785   Py_INCREF(PyFunc);
9786 
9787   vc->auxdata = (void *)cb;
9788 
9789   if(!vc->free_auxdata)
9790     vc->free_auxdata = &delete_pycallback;
9791 }
9792 
9793 static void
py_wrap_fc_status_callback(unsigned char status,void * data)9794 py_wrap_fc_status_callback( unsigned char status,
9795                             void          *data)
9796 {
9797   PyObject *func, *arglist, *result, *err;
9798   pycallback_t *cb = (pycallback_t *)data;
9799 
9800   func = cb->cb;
9801   /* compose argument list */
9802   arglist = Py_BuildValue("(B,O)", status, (cb->data) ? cb->data : Py_None);
9803   result =  PyObject_CallObject(func, arglist);
9804 
9805   /* BEGIN recognizing errors in callback execution */
9806   if (result == NULL) {
9807     if ((err = PyErr_Occurred())) {
9808       /* print error message */
9809       PyErr_Print();
9810       /* we only treat TypeErrors differently here, as they indicate that the callback does not follow requirements! */
9811       if (PyErr_GivenExceptionMatches(err, PyExc_TypeError)) {
9812         throw std::runtime_error( "Fold compound callback must take exactly 2 arguments" );
9813       } else {
9814         throw std::runtime_error( "Some error occurred while executing fold compound callback" );
9815       }
9816     }
9817     PyErr_Clear();
9818   }
9819   /* END recognizing errors in callback execution */
9820 
9821   Py_DECREF(arglist);
9822   Py_XDECREF(result);
9823   return /*void*/;
9824 }
9825 
9826 
9827 
9828 
9829 #include <stdexcept>
9830 
9831   typedef struct {
9832     PyObject  *cb_f;
9833     PyObject  *cb_bt;
9834     PyObject  *cb_exp_f;
9835     PyObject  *data;
9836     PyObject  *delete_data;
9837   } py_sc_callback_t;
9838 
9839   static int
9840   py_wrap_sc_f_callback(int           i,
9841                         int           j,
9842                         int           k,
9843                         int           l,
9844                         unsigned char d,
9845                         void          *data);
9846 
9847 
9848   static vrna_basepair_t *
9849   py_wrap_sc_bt_callback(int            i,
9850                          int            j,
9851                          int            k,
9852                          int            l,
9853                          unsigned char  d,
9854                          void           *data);
9855 
9856 
9857   static FLT_OR_DBL
9858   py_wrap_sc_exp_f_callback(int           i,
9859                             int           j,
9860                             int           k,
9861                             int           l,
9862                             unsigned char d,
9863                             void          *data);
9864 
9865 
9866   static void
delete_py_sc_data(py_sc_callback_t * cb)9867   delete_py_sc_data(py_sc_callback_t *cb)
9868   {
9869     if ((cb->data != Py_None) &&
9870         (cb->delete_data != Py_None)) {
9871       PyObject *func, *arglist, *result, *err;
9872       func    = cb->delete_data;
9873       arglist = Py_BuildValue("O", cb->data);
9874       result  = PyObject_CallObject(func, arglist);
9875 
9876       /* BEGIN recognizing errors in callback execution */
9877       if (result == NULL) {
9878         if ((err = PyErr_Occurred())) {
9879           /* print error message */
9880           PyErr_Print();
9881           /* we only treat TypeErrors differently here, as they indicate that the callback does not follow requirements! */
9882           if (PyErr_GivenExceptionMatches(err, PyExc_TypeError))
9883             throw
9884             std::runtime_error(
9885               "Generic soft constraint delete_data() callback must take exactly 1 argument");
9886 
9887 
9888           else
9889             throw
9890             std::runtime_error(
9891               "Some error occurred while executing generic soft constraint delete_data() callback");
9892         }
9893 
9894         PyErr_Clear();
9895       }
9896 
9897       /* END recognizing errors in callback execution */
9898 
9899       Py_DECREF(arglist);
9900       Py_XDECREF(result);
9901     }
9902 
9903     Py_DECREF(cb->data);
9904     Py_DECREF(cb->delete_data);
9905   }
9906 
9907 
9908   static void
delete_py_sc_callback(void * data)9909   delete_py_sc_callback(void *data)
9910   {
9911     py_sc_callback_t *cb = (py_sc_callback_t *)data;
9912 
9913     /* first delete user data */
9914     delete_py_sc_data(cb);
9915 
9916     /* now dispose of the registered callbacks */
9917     Py_DECREF(cb->cb_f);
9918     Py_DECREF(cb->cb_bt);
9919     Py_DECREF(cb->cb_exp_f);
9920 
9921     /* finally free pycallback */
9922     free(cb);
9923   }
9924 
9925 
9926   static py_sc_callback_t *
reuse_or_new_cb_f(vrna_sc_t * sc)9927   reuse_or_new_cb_f(vrna_sc_t *sc)
9928   {
9929     py_sc_callback_t *cb;
9930 
9931     cb =
9932       (sc->data) ? (py_sc_callback_t *)sc->data : (py_sc_callback_t *)vrna_alloc(
9933         sizeof(py_sc_callback_t));
9934 
9935     if (cb->cb_f) {
9936       /* release previous callback */
9937       Py_DECREF(cb->cb_f);
9938     } else {
9939       /* initialize the remaining soft constraint callbacks */
9940       Py_INCREF(Py_None);
9941       cb->cb_bt = Py_None;
9942 
9943       Py_INCREF(Py_None);
9944       cb->cb_exp_f = Py_None;
9945 
9946       Py_INCREF(Py_None);
9947       cb->data = Py_None;
9948 
9949       Py_INCREF(Py_None);
9950       cb->delete_data = Py_None;
9951     }
9952 
9953     return cb;
9954   }
9955 
9956 
9957   static py_sc_callback_t *
reuse_or_new_cb_exp_f(vrna_sc_t * sc)9958   reuse_or_new_cb_exp_f(vrna_sc_t *sc)
9959   {
9960     py_sc_callback_t *cb;
9961 
9962     cb =
9963       (sc->data) ? (py_sc_callback_t *)sc->data : (py_sc_callback_t *)vrna_alloc(
9964         sizeof(py_sc_callback_t));
9965 
9966     if (cb->cb_exp_f) {
9967       /* release previous callback */
9968       Py_DECREF(cb->cb_exp_f);
9969     } else {
9970       /* initialize the remaining soft constraint callbacks */
9971       Py_INCREF(Py_None);
9972       cb->cb_f = Py_None;
9973 
9974       Py_INCREF(Py_None);
9975       cb->cb_bt = Py_None;
9976 
9977       Py_INCREF(Py_None);
9978       cb->data = Py_None;
9979 
9980       Py_INCREF(Py_None);
9981       cb->delete_data = Py_None;
9982     }
9983 
9984     return cb;
9985   }
9986 
9987 
9988   static py_sc_callback_t *
reuse_or_new_cb_data(vrna_sc_t * sc)9989   reuse_or_new_cb_data(vrna_sc_t *sc)
9990   {
9991     py_sc_callback_t *cb;
9992 
9993     cb =
9994       (sc->data) ? (py_sc_callback_t *)sc->data : (py_sc_callback_t *)vrna_alloc(
9995         sizeof(py_sc_callback_t));
9996 
9997     if (cb->data) {
9998       /* release previous callback */
9999       delete_py_sc_data(cb);
10000     } else {
10001       /* initialize the remaining soft constraint callbacks */
10002       Py_INCREF(Py_None);
10003       cb->cb_f = Py_None;
10004 
10005       Py_INCREF(Py_None);
10006       cb->cb_bt = Py_None;
10007 
10008       Py_INCREF(Py_None);
10009       cb->cb_exp_f = Py_None;
10010     }
10011 
10012     return cb;
10013   }
10014 
10015 
10016   static int
sc_add_f_pycallback(vrna_fold_compound_t * vc,PyObject * func)10017   sc_add_f_pycallback(vrna_fold_compound_t  *vc,
10018                       PyObject              *func)
10019   {
10020     unsigned char     func_is_tuple, func_is_list;
10021     unsigned int      s;
10022     /* try to dispose of previous callback */
10023     py_sc_callback_t  *cb;
10024     PyObject          *f, *err;
10025 
10026     switch (vc->type) {
10027       case VRNA_FC_TYPE_SINGLE:
10028         if (!PyCallable_Check(func)) {
10029           PyErr_SetString(PyExc_TypeError, "Need a callable object!");
10030         } else if (vrna_sc_add_f(vc, &py_wrap_sc_f_callback)) {
10031           /*
10032            *  The above call returns 0 on any error.
10033            *  Otherwise it binds the wrapper function and
10034            *  prepares the soft constraint data structure
10035            *  inside vc
10036            */
10037 
10038           /* now bind the python function to the wrapper structure */
10039           cb = reuse_or_new_cb_f(vc->sc);
10040 
10041           Py_INCREF(func);  /* Increase referenc counter */
10042           cb->cb_f = func;  /* remember callback */
10043 
10044           /* finaly bind callback wrapper to fold compound */
10045           vc->sc->data = (void *)cb;
10046 
10047           /* also (re-)bind the free-callback-data function */
10048           vc->sc->free_data = &delete_py_sc_callback;
10049 
10050           return 1;
10051         }
10052 
10053         break;
10054 
10055       case VRNA_FC_TYPE_COMPARATIVE:
10056         /* first check, whether data and PyFunc are of correct type */
10057         func_is_tuple = PyTuple_Check(func);
10058         func_is_list  = PyList_Check(func);
10059 
10060         if (func_is_tuple || func_is_list) {
10061           if (!vc->scs)
10062             vrna_sc_init(vc);
10063 
10064           for (s = 0; s < vc->n_seq; s++) {
10065             f = (func_is_tuple) ? PyTuple_GetItem(func, s) : PyList_GetItem(func, s);
10066 
10067             if (f == NULL) {
10068               /* an error occurred */
10069               if ((err = PyErr_Occurred())) {
10070                 /* print error message */
10071                 PyErr_Print();
10072                 /* we only treat IndexErrors differently here, as they indicate that the callback list is too short! */
10073                 if (PyErr_GivenExceptionMatches(err, PyExc_IndexError))
10074                   throw
10075                   std::runtime_error(
10076                     "sc_add_f(): Comparative prediction callback list or tuple must have an entry for each sequence in the alignment");
10077 
10078 
10079                 else
10080                   throw
10081                   std::runtime_error(
10082                     "sc_add_f(): Some error occurred while accessing generic soft constraint callback for sequence alignment");
10083               }
10084 
10085               PyErr_Clear();
10086             } else if (!PyCallable_Check(f)) {
10087               PyErr_SetString(PyExc_TypeError, "Need a callable object!");
10088             } else {
10089               cb = reuse_or_new_cb_f(vc->scs[s]);
10090 
10091               Py_INCREF(f); /* Increase reference counter */
10092               cb->cb_f = f; /* remember callback */
10093 
10094               /* finaly bind callback wrapper to fold compound */
10095               vc->scs[s]->data = (void *)cb;
10096 
10097               /* also (re-)bind the free-callback-data function */
10098               vc->scs[s]->free_data = &delete_py_sc_callback;
10099 
10100               /* finally, we bind the callback wrapper */
10101               vc->scs[s]->f = &py_wrap_sc_f_callback;
10102             }
10103           }
10104 
10105           return 1;
10106         } else {
10107           throw
10108           std::runtime_error(
10109             "sc_add_f(): Comparative prediction callbacks must be provided as list or tuple");
10110         }
10111 
10112         break;
10113     }
10114 
10115     return 0;
10116   }
10117 
10118 
10119   static int
sc_add_exp_f_pycallback(vrna_fold_compound_t * vc,PyObject * func)10120   sc_add_exp_f_pycallback(vrna_fold_compound_t  *vc,
10121                           PyObject              *func)
10122   {
10123     unsigned char     func_is_tuple, func_is_list;
10124     unsigned int      s;
10125     /* try to dispose of previous callback */
10126     py_sc_callback_t  *cb;
10127     PyObject          *f, *err;
10128 
10129     switch (vc->type) {
10130       case VRNA_FC_TYPE_SINGLE:
10131         if (!PyCallable_Check(func)) {
10132           PyErr_SetString(PyExc_TypeError, "Need a callable object!");
10133         } else if (vrna_sc_add_exp_f(vc, &py_wrap_sc_exp_f_callback)) {
10134           /*
10135            *  The above call returns 0 on any error.
10136            *  Otherwise it binds the wrapper function and
10137            *  prepares the soft constraint data structure
10138            *  inside vc
10139            */
10140 
10141           /* now bind the python function to the wrapper structure */
10142           cb = reuse_or_new_cb_exp_f(vc->sc);
10143 
10144           Py_INCREF(func);      /* Increase referenc counter */
10145           cb->cb_exp_f = func;  /* remember callback */
10146 
10147           /* finaly bind callback wrapper to fold compound */
10148           vc->sc->data = (void *)cb;
10149 
10150           /* also (re-)bind the free-callback-data function */
10151           vc->sc->free_data = &delete_py_sc_callback;
10152 
10153           return 1;
10154         }
10155 
10156         break;
10157 
10158       case VRNA_FC_TYPE_COMPARATIVE:
10159         /* first check, whether data and PyFunc are of correct type */
10160         func_is_tuple = PyTuple_Check(func);
10161         func_is_list  = PyList_Check(func);
10162 
10163         if (func_is_tuple || func_is_list) {
10164           if (!vc->scs)
10165             vrna_sc_init(vc);
10166 
10167           for (s = 0; s < vc->n_seq; s++) {
10168             f = (func_is_tuple) ? PyTuple_GetItem(func, s) : PyList_GetItem(func, s);
10169 
10170             if (f == NULL) {
10171               /* an error occurred */
10172               if ((err = PyErr_Occurred())) {
10173                 /* print error message */
10174                 PyErr_Print();
10175                 /* we only treat IndexErrors differently here, as they indicate that the callback list is too short! */
10176                 if (PyErr_GivenExceptionMatches(err, PyExc_IndexError))
10177                   throw
10178                   std::runtime_error(
10179                     "sc_add_exp_f(): Comparative prediction callback list or tuple must have an entry for each sequence in the alignment");
10180 
10181 
10182                 else
10183                   throw
10184                   std::runtime_error(
10185                     "sc_add_exp_f(): Some error occurred while accessing generic soft constraint callback for sequence alignment");
10186               }
10187 
10188               PyErr_Clear();
10189             } else if (!PyCallable_Check(f)) {
10190               PyErr_SetString(PyExc_TypeError, "Need a callable object!");
10191             } else {
10192               cb = reuse_or_new_cb_exp_f(vc->scs[s]);
10193 
10194               Py_INCREF(f);     /* Increase reference counter */
10195               cb->cb_exp_f = f; /* remember callback */
10196 
10197               /* finaly bind callback wrapper to fold compound */
10198               vc->scs[s]->data = (void *)cb;
10199 
10200               /* also (re-)bind the free-callback-data function */
10201               vc->scs[s]->free_data = &delete_py_sc_callback;
10202 
10203               /* finally, we bind the callback wrapper */
10204               vc->scs[s]->f = &py_wrap_sc_f_callback;
10205             }
10206           }
10207 
10208           return 1;
10209         } else {
10210           throw
10211           std::runtime_error(
10212             "sc_add_exp_f(): Comparative prediction callbacks must be provided as list or tuple");
10213         }
10214 
10215         break;
10216     }
10217 
10218     return 0;
10219   }
10220 
10221 
10222   static int
sc_add_bt_pycallback(vrna_fold_compound_t * vc,PyObject * PyFunc)10223   sc_add_bt_pycallback(vrna_fold_compound_t *vc,
10224                        PyObject             *PyFunc)
10225   {
10226     /* try to dispose of previous callback */
10227     py_sc_callback_t *cb;
10228 
10229     if (vrna_sc_add_bt(vc, &py_wrap_sc_bt_callback)) {
10230       /*
10231        *  The above call returns 0 on any error.
10232        *  Otherwise it binds the wrapper function and
10233        *  prepares the soft constraint data structure
10234        *  inside vc
10235        */
10236 
10237       /* now bind the python function to the wrapper structure */
10238       if (vc->sc->data) {
10239         /* re-use previously bound wrapper data structure */
10240         cb = (py_sc_callback_t *)vc->sc->data;
10241         /* release previous callback */
10242         Py_DECREF(cb->cb_bt);
10243       } else {
10244         cb = (py_sc_callback_t *)vrna_alloc(sizeof(py_sc_callback_t));
10245         Py_INCREF(Py_None);
10246         cb->cb_f = Py_None;
10247         Py_INCREF(Py_None);
10248         cb->cb_exp_f = Py_None;
10249         Py_INCREF(Py_None);
10250         cb->data = Py_None;
10251         Py_INCREF(Py_None);
10252         cb->delete_data = Py_None;
10253       }
10254 
10255       Py_XINCREF(PyFunc); /* Increase referenc counter */
10256       cb->cb_bt = PyFunc; /* remember callback */
10257 
10258       /* finaly bind callback wrapper to fold compound */
10259       vc->sc->data = (void *)cb;
10260 
10261       /* also (re-)bind the free-callback-data function */
10262       vc->sc->free_data = &delete_py_sc_callback;
10263 
10264       return 1;
10265     }
10266 
10267     return 0;
10268   }
10269 
10270 
10271   static int
sc_add_pydata(vrna_fold_compound_t * vc,PyObject * data,PyObject * free_data_cb)10272   sc_add_pydata(vrna_fold_compound_t  *vc,
10273                 PyObject              *data,
10274                 PyObject              *free_data_cb)
10275   {
10276     unsigned char     data_is_tuple, data_is_list, func_is_tuple, func_is_list;
10277     unsigned int      s;
10278     py_sc_callback_t  *cb;
10279     PyObject          *err;
10280 
10281     switch (vc->type) {
10282       case VRNA_FC_TYPE_SINGLE:
10283         /* create soft constraints data structure */
10284         if (!vc->sc)
10285           vrna_sc_init(vc);
10286 
10287         cb = reuse_or_new_cb_data(vc->sc);
10288 
10289         /* increase reference counters */
10290         Py_INCREF(data);
10291         cb->data = data;        /* remember data */
10292 
10293         if ((free_data_cb != Py_None) && (!PyCallable_Check(free_data_cb))) {
10294           PyErr_SetString(PyExc_TypeError, "Require a callable object for free_data_cb!");
10295         } else {
10296           Py_INCREF(free_data_cb);
10297           cb->delete_data = free_data_cb; /* remember delete data function */
10298         }
10299 
10300         vc->sc->data = (void *)cb;
10301 
10302         /* also (re-)bind the free-callback-data function */
10303         vc->sc->free_data = &delete_py_sc_callback;
10304 
10305         return 1;
10306 
10307       case VRNA_FC_TYPE_COMPARATIVE:
10308         /* first check, whether data and PyFunc are of correct type */
10309         data_is_tuple = PyTuple_Check(data);
10310         data_is_list  = PyList_Check(data);
10311         func_is_tuple = PyTuple_Check(free_data_cb);
10312         func_is_list  = PyList_Check(free_data_cb);
10313 
10314         if (data_is_tuple || data_is_list) {
10315           if (!vc->scs)
10316             vrna_sc_init(vc);
10317 
10318           /* try to dispose of previous data */
10319           for (s = 0; s < vc->n_seq; s++) {
10320             cb = reuse_or_new_cb_data(vc->scs[s]);
10321 
10322             /* increase reference counters */
10323             PyObject *d, *f;
10324 
10325             d = (data_is_tuple) ? PyTuple_GetItem(data, s) : PyList_GetItem(data, s);
10326 
10327             if (d == NULL) {
10328               /* an error occurred */
10329               if ((err = PyErr_Occurred())) {
10330                 /* print error message */
10331                 PyErr_Print();
10332                 /* we only treat IndexErrors differently here, as they indicate that the callback list is too short! */
10333                 if (PyErr_GivenExceptionMatches(err, PyExc_IndexError))
10334                   throw
10335                   std::runtime_error(
10336                     "sc_add_data(): Comparative prediction callback data list or tuple must have an entry for each sequence in the alignment");
10337 
10338 
10339                 else
10340                   throw
10341                   std::runtime_error(
10342                     "sc_add_data(): Some error occurred while accessing generic soft constraint callback data list for sequence alignment");
10343               }
10344 
10345               PyErr_Clear();
10346             } else {
10347               Py_INCREF(d);
10348               cb->data = d; /* remember data */
10349 
10350               if (func_is_tuple || func_is_list) {
10351                 f = (func_is_tuple) ? PyTuple_GetItem(free_data_cb, s) : PyList_GetItem(
10352                   free_data_cb,
10353                   s);
10354                 if (f == NULL) {
10355                   /* an error occurred */
10356                   if ((err = PyErr_Occurred())) {
10357                     /* print error message */
10358                     PyErr_Print();
10359                     /* we only treat IndexErrors differently here, as they indicate that the callback list is too short! */
10360                     if (PyErr_GivenExceptionMatches(err, PyExc_IndexError))
10361                       throw
10362                       std::runtime_error(
10363                         "sc_add_data(): Comparative prediction callback data free() list or tuple must have an entry for each sequence in the alignment");
10364 
10365 
10366                     else
10367                       throw
10368                       std::runtime_error(
10369                         "sc_add_data(): Some error occurred while accessing generic soft constraint callback data free() list for sequence alignment");
10370                   }
10371 
10372                   PyErr_Clear();
10373                 } else if ((f != Py_None) && (!PyCallable_Check(f))) {
10374                   PyErr_SetString(PyExc_TypeError, "Require a callable object for free_data_cb!");
10375                   cb->delete_data = Py_None;
10376                   Py_INCREF(Py_None);
10377                 } else {
10378                   cb->delete_data = f; /* remember delete data function */
10379                   Py_INCREF(f);
10380                 }
10381               } else {
10382                 cb->delete_data = Py_None;
10383                 Py_INCREF(Py_None);
10384               }
10385             }
10386 
10387             vc->scs[s]->data = (void *)cb;
10388 
10389             /* also (re-)bind the free-callback-data function */
10390             vc->scs[s]->free_data = &delete_py_sc_callback;
10391           }
10392 
10393           return 1;
10394         } else {
10395           throw
10396           std::runtime_error(
10397             "sc_add_data(): Comparative prediction data must be provided as list or tuple");
10398         }
10399 
10400         break;
10401     }
10402 
10403     return 0;
10404   }
10405 
10406 
10407   static int
py_wrap_sc_f_callback(int i,int j,int k,int l,unsigned char d,void * data)10408   py_wrap_sc_f_callback(int           i,
10409                         int           j,
10410                         int           k,
10411                         int           l,
10412                         unsigned char d,
10413                         void          *data)
10414   {
10415     int               ret;
10416     PyObject          *func, *arglist, *result, *err;
10417     py_sc_callback_t  *cb = (py_sc_callback_t *)data;
10418 
10419     ret   = 0;
10420     func  = cb->cb_f;
10421 
10422     /* compose argument list */
10423     PyObject *py_i, *py_j, *py_k, *py_l, *py_d;
10424 
10425     py_i    = PyInt_FromLong(i);
10426     py_j    = PyInt_FromLong(j);
10427     py_k    = PyInt_FromLong(k);
10428     py_l    = PyInt_FromLong(l);
10429     py_d    = PyInt_FromLong(d);
10430     result  = PyObject_CallFunctionObjArgs(func,
10431                                            py_i,
10432                                            py_j,
10433                                            py_k,
10434                                            py_l,
10435                                            py_d,
10436                                            (cb->data) ? cb->data : Py_None,
10437                                            NULL);
10438 
10439     Py_DECREF(py_i);
10440     Py_DECREF(py_j);
10441     Py_DECREF(py_k);
10442     Py_DECREF(py_l);
10443     Py_DECREF(py_d);
10444 
10445     /* BEGIN recognizing errors in callback execution */
10446     if (result == NULL) {
10447       if ((err = PyErr_Occurred())) {
10448         /* print error message */
10449         PyErr_Print();
10450         /* we only treat TypeErrors differently here, as they indicate that the callback does not follow requirements! */
10451         if (PyErr_GivenExceptionMatches(err, PyExc_TypeError))
10452           throw
10453           std::runtime_error("Generic soft constraint callbacks must take exactly 6 arguments");
10454 
10455 
10456         else
10457           throw
10458           std::runtime_error(
10459             "Some error occurred while executing generic soft constraint callback");
10460       }
10461 
10462       PyErr_Clear();
10463     } else if (PyInt_Check(result)) {
10464       ret = (int)PyInt_AsLong(result);
10465     } else if (PyLong_Check(result)) {
10466       ret = (int)PyLong_AsLong(result);
10467     } else {
10468       throw
10469       std::runtime_error(
10470         "Generic soft constraint callback must return pseudo energy value in 10 cal/mol");
10471     }
10472 
10473     /* END recognizing errors in callback execution */
10474 
10475     Py_XDECREF(result);
10476 
10477     return ret;
10478   }
10479 
10480 
10481   static vrna_basepair_t *
py_wrap_sc_bt_callback(int i,int j,int k,int l,unsigned char d,void * data)10482   py_wrap_sc_bt_callback(int            i,
10483                          int            j,
10484                          int            k,
10485                          int            l,
10486                          unsigned char  d,
10487                          void           *data)
10488   {
10489     int               c, len, num_pairs;
10490     PyObject          *func, *arglist, *result, *bp, *err;
10491     py_sc_callback_t  *cb;
10492     vrna_basepair_t   *ptr, *pairs;
10493 
10494     cb    = (py_sc_callback_t *)data;
10495     pairs = NULL;
10496     func  = cb->cb_bt;
10497     /* compose argument list */
10498     PyObject *py_i, *py_j, *py_k, *py_l, *py_d;
10499 
10500     py_i    = PyInt_FromLong(i);
10501     py_j    = PyInt_FromLong(j);
10502     py_k    = PyInt_FromLong(k);
10503     py_l    = PyInt_FromLong(l);
10504     py_d    = PyInt_FromLong(d);
10505     result  = PyObject_CallFunctionObjArgs(func,
10506                                            py_i,
10507                                            py_j,
10508                                            py_k,
10509                                            py_l,
10510                                            py_d,
10511                                            (cb->data) ? cb->data : Py_None,
10512                                            NULL);
10513 
10514     Py_DECREF(py_i);
10515     Py_DECREF(py_j);
10516     Py_DECREF(py_k);
10517     Py_DECREF(py_l);
10518     Py_DECREF(py_d);
10519 
10520     /* BEGIN recognizing errors in callback execution */
10521     if (result == NULL) {
10522       if ((err = PyErr_Occurred())) {
10523         /* print error message */
10524         PyErr_Print();
10525         /* we only treat TypeErrors differently here, as they indicate that the callback does not follow requirements! */
10526         if (PyErr_GivenExceptionMatches(err, PyExc_TypeError))
10527           throw
10528           std::runtime_error("Generic soft constraint callbacks must take exactly 6 arguments");
10529 
10530 
10531         else
10532           throw
10533           std::runtime_error(
10534             "Some error occurred while executing generic soft constraint callback");
10535       }
10536 
10537       PyErr_Clear();
10538       return NULL;
10539     }
10540 
10541     /* END recognizing errors in callback execution */
10542 
10543     if (PyList_Check(result)) {
10544       len       = 10;
10545       num_pairs = 0;
10546       pairs     = (vrna_basepair_t *)vrna_alloc(sizeof(vrna_basepair_t) * len);
10547 
10548       /* result should be list of pairs */
10549       for (c = 0; c < PyList_Size(result); c++) {
10550         bp = PyList_GetItem(result, c);
10551         /* maybe the user was so kind to create a list of vrna_basepair_t? */
10552         if (SWIG_ConvertPtr(bp, (void **)&ptr, SWIGTYPE_p_vrna_basepair_t,
10553                             SWIG_POINTER_EXCEPTION) == 0) {
10554           pairs[num_pairs] = *ptr;
10555           num_pairs++;
10556         }
10557         /* users may also specify base pairs as tuples of size 2 */
10558         else if (PyTuple_Check(bp)) {
10559           if ((PyTuple_Size(bp) == 2)
10560               && PyInt_Check(PyTuple_GetItem(bp, 0))
10561               && PyInt_Check(PyTuple_GetItem(bp, 1))) {
10562             pairs[num_pairs].i  = (int)PyInt_AsLong(PyTuple_GetItem(bp, 0));
10563             pairs[num_pairs].j  = (int)PyInt_AsLong(PyTuple_GetItem(bp, 1));
10564             num_pairs++;
10565           }
10566         }
10567         /* or is it even a dictionary with i j keys? */
10568         else if (PyDict_Check(bp)) {
10569           /* check whether the dictionary actually contains the correct keys */
10570           PyObject *bp_i, *bp_j;
10571           bp_i  = PyDict_GetItemString(bp, "i");
10572           bp_j  = PyDict_GetItemString(bp, "j");
10573           /* both dictionary keys must be present and the corresponding values have to be integer types */
10574           if (bp_i && bp_j && PyInt_Check(bp_i) && PyInt_Check(bp_j)) {
10575             pairs[num_pairs].i  = (int)PyInt_AsLong(bp_i);
10576             pairs[num_pairs].j  = (int)PyInt_AsLong(bp_j);
10577             num_pairs++;
10578           }
10579         } else {
10580           continue;
10581         }
10582 
10583         /* increase length if necessary */
10584         if (num_pairs == len) {
10585           len   = (int)(1.2 * len);
10586           pairs = (vrna_basepair_t *)vrna_realloc(pairs, sizeof(vrna_basepair_t) * len);
10587         }
10588       }
10589       /* put end marker in list */
10590       pairs[num_pairs].i  = pairs[num_pairs].j = 0;
10591       pairs               =
10592         (vrna_basepair_t *)vrna_realloc(pairs, sizeof(vrna_basepair_t) * (num_pairs + 1));
10593     }
10594 
10595     Py_XDECREF(result);
10596     return pairs;
10597   }
10598 
10599 
10600   static FLT_OR_DBL
py_wrap_sc_exp_f_callback(int i,int j,int k,int l,unsigned char d,void * data)10601   py_wrap_sc_exp_f_callback(int           i,
10602                             int           j,
10603                             int           k,
10604                             int           l,
10605                             unsigned char d,
10606                             void          *data)
10607   {
10608     FLT_OR_DBL        ret;
10609     PyObject          *func, *arglist, *result, *err;
10610     py_sc_callback_t  *cb;
10611 
10612     cb    = (py_sc_callback_t *)data;
10613     ret   = 1.;
10614     func  = cb->cb_exp_f;
10615     /* compose argument list */
10616     PyObject *py_i, *py_j, *py_k, *py_l, *py_d;
10617 
10618     py_i  = PyInt_FromLong(i);
10619     py_j  = PyInt_FromLong(j);
10620     py_k  = PyInt_FromLong(k);
10621     py_l  = PyInt_FromLong(l);
10622     py_d  = PyInt_FromLong(d);
10623 
10624     result = PyObject_CallFunctionObjArgs(func,
10625                                           py_i,
10626                                           py_j,
10627                                           py_k,
10628                                           py_l,
10629                                           py_d,
10630                                           (cb->data) ? cb->data : Py_None,
10631                                           NULL);
10632     Py_DECREF(py_i);
10633     Py_DECREF(py_j);
10634     Py_DECREF(py_k);
10635     Py_DECREF(py_l);
10636     Py_DECREF(py_d);
10637 
10638     /* BEGIN recognizing errors in callback execution */
10639     if (result == NULL) {
10640       if ((err = PyErr_Occurred())) {
10641         /* print error message */
10642         PyErr_Print();
10643         /* we only treat TypeErrors differently here, as they indicate that the callback does not follow requirements! */
10644         if (PyErr_GivenExceptionMatches(err, PyExc_TypeError))
10645           throw
10646           std::runtime_error(
10647             "Generic soft constraint callbacks (partition function) must take exactly 6 arguments");
10648 
10649 
10650         else
10651           throw
10652           std::runtime_error(
10653             "Some error occurred while executing generic soft constraint callback (partition function)");
10654       }
10655 
10656       PyErr_Clear();
10657     } else if (result == Py_None) {
10658       throw
10659       std::runtime_error(
10660         "Generic soft constraint callback (partition function) must return Boltzmann weighted pseudo energy value");
10661     } else {
10662       ret = (FLT_OR_DBL)PyFloat_AsDouble(result);
10663     }
10664 
10665     /* END recognizing errors in callback execution */
10666 
10667     Py_XDECREF(result);
10668     return ret;
10669   }
10670 
10671 
10672 
10673 
10674 
10675 #include <stdexcept>
10676 
10677 typedef struct {
10678   PyObject  *prod_rule;
10679   PyObject  *exp_prod_rule;
10680   PyObject  *energy;
10681   PyObject  *exp_energy;
10682   PyObject  *data;
10683   PyObject  *delete_data;
10684   PyObject  *prob_add;
10685   PyObject  *prob_get;
10686 } py_ud_callback_t;
10687 
10688 static vrna_callback_ud_production      py_wrap_ud_prod_rule;
10689 static vrna_callback_ud_exp_production  py_wrap_ud_exp_prod_rule;
10690 static vrna_callback_ud_energy          py_wrap_ud_energy;
10691 static vrna_callback_ud_exp_energy      py_wrap_ud_exp_energy;
10692 static vrna_callback_ud_probs_add       py_wrap_ud_prob_add;
10693 static vrna_callback_ud_probs_get       py_wrap_ud_prob_get;
10694 
10695 static py_ud_callback_t *
new_py_ud_cb(void)10696 new_py_ud_cb(void){
10697 
10698   py_ud_callback_t *cb = (py_ud_callback_t *)vrna_alloc(sizeof(py_ud_callback_t));
10699 
10700   Py_INCREF(Py_None);
10701   cb->prod_rule     = Py_None;
10702   Py_INCREF(Py_None);
10703   cb->exp_prod_rule = Py_None;
10704   Py_INCREF(Py_None);
10705   cb->energy        = Py_None;
10706   Py_INCREF(Py_None);
10707   cb->exp_energy    = Py_None;
10708   Py_INCREF(Py_None);
10709   cb->data          = Py_None;
10710   Py_INCREF(Py_None);
10711   cb->delete_data   = Py_None;
10712   Py_INCREF(Py_None);
10713   cb->prob_add      = Py_None;
10714   Py_INCREF(Py_None);
10715   cb->prob_get      = Py_None;
10716 
10717   return cb;
10718 }
10719 
10720 
10721 static void
delete_py_ud_data(py_ud_callback_t * cb)10722 delete_py_ud_data(py_ud_callback_t *cb)
10723 {
10724   if ((cb->data != Py_None) &&
10725       (cb->delete_data != Py_None)) {
10726     PyObject *func, *arglist, *result, *err;
10727     func = cb->delete_data;
10728     arglist = Py_BuildValue("O", cb->data);
10729     result  = PyObject_CallObject(func, arglist);
10730 
10731     /* BEGIN recognizing errors in callback execution */
10732     if (result == NULL) {
10733       if ((err = PyErr_Occurred())) {
10734         /* print error message */
10735         PyErr_Print();
10736         /* we only treat TypeErrors differently here, as they indicate that the callback does not follow requirements! */
10737         if (PyErr_GivenExceptionMatches(err, PyExc_TypeError)) {
10738           throw std::runtime_error( "Unstructured domains delete_data() callback must take exactly 1 argument" );
10739         } else {
10740           throw std::runtime_error( "Some error occurred while executing unstructured domains delete_data() callback" );
10741         }
10742       }
10743       PyErr_Clear();
10744     }
10745     /* END recognizing errors in callback execution */
10746 
10747     Py_DECREF(arglist);
10748     Py_XDECREF(result);
10749   }
10750 
10751   Py_DECREF(cb->data);
10752   Py_DECREF(cb->delete_data);
10753 }
10754 
10755 
10756 static void
delete_py_ud_callback(void * data)10757 delete_py_ud_callback(void * data)
10758 {
10759   py_ud_callback_t *cb = (py_ud_callback_t *)data;
10760   /* first delete user data */
10761   delete_py_ud_data(cb);
10762 
10763   /* now dispose of the registered callbacks */
10764   Py_DECREF(cb->prod_rule);
10765   Py_DECREF(cb->exp_prod_rule);
10766   Py_DECREF(cb->energy);
10767   Py_DECREF(cb->exp_energy);
10768   Py_DECREF(cb->prob_add);
10769   Py_DECREF(cb->prob_get);
10770 
10771   /* finally free pycallback */
10772   free(cb);
10773 }
10774 
10775 
10776 static void
ud_set_pydata(vrna_fold_compound_t * vc,PyObject * data,PyObject * PyFunc)10777 ud_set_pydata(vrna_fold_compound_t *vc,
10778               PyObject             *data,
10779               PyObject             *PyFunc)
10780 {
10781   py_ud_callback_t * cb;
10782 
10783   if ((vc->domains_up) &&
10784       (vc->domains_up->data)) {
10785     cb = (py_ud_callback_t *)vc->domains_up->data;
10786   } else {
10787     cb = new_py_ud_cb();
10788   }
10789 
10790   /* try to dispose of previous data */
10791   delete_py_ud_data(cb);
10792 
10793   /* increase reference counter */
10794   Py_INCREF(data);
10795   Py_INCREF(PyFunc);
10796 
10797   cb->data        = data;   /* remember data */
10798   cb->delete_data = PyFunc; /* remember delete data function */
10799 
10800   /* bind callback wrapper to fold compound */
10801   vrna_ud_set_data(vc, (void *)cb, &delete_py_ud_callback);
10802 }
10803 
10804 
10805 static void
ud_set_prod_cb(vrna_fold_compound_t * vc,PyObject * prod_cb,PyObject * eval_cb)10806 ud_set_prod_cb(vrna_fold_compound_t *vc,
10807                PyObject             *prod_cb,
10808                PyObject             *eval_cb)
10809 {
10810   /* try to dispose of previous callback */
10811   py_ud_callback_t * cb;
10812 
10813   if(vc->domains_up && vc->domains_up->data){
10814     cb = (py_ud_callback_t *)vc->domains_up->data;
10815   } else {
10816     cb = new_py_ud_cb();
10817     /* bind callback wrapper to fold compound */
10818     vrna_ud_set_data(vc, (void *)cb, &delete_py_ud_callback);
10819   }
10820 
10821   /* release previous callback */
10822   Py_DECREF(cb->prod_rule);
10823   Py_DECREF(cb->energy);
10824 
10825   Py_XINCREF(prod_cb);     /* Increase reference counter */
10826   Py_XINCREF(eval_cb);     /* Increase reference counter */
10827 
10828   cb->prod_rule = prod_cb; /* remember callback */
10829   cb->energy    = eval_cb; /* remember callback */
10830 
10831   vrna_ud_set_prod_rule_cb(vc, &py_wrap_ud_prod_rule, &py_wrap_ud_energy);
10832 }
10833 
10834 
10835 static void
ud_set_exp_prod_cb(vrna_fold_compound_t * vc,PyObject * prod_cb,PyObject * eval_cb)10836 ud_set_exp_prod_cb(vrna_fold_compound_t *vc,
10837                    PyObject             *prod_cb,
10838                    PyObject             *eval_cb)
10839 {
10840   /* try to dispose of previous callback */
10841   py_ud_callback_t *cb;
10842 
10843   /* now bind the python function to the wrapper structure */
10844   if ((vc->domains_up) &&
10845       (vc->domains_up->data)) {
10846     cb = (py_ud_callback_t *)vc->domains_up->data;
10847   } else {
10848     cb = new_py_ud_cb();
10849     /* bind callback wrapper to fold compound */
10850     vrna_ud_set_data(vc, (void *)cb, &delete_py_ud_callback);
10851   }
10852 
10853   /* release previous callback */
10854   Py_DECREF(cb->exp_prod_rule);
10855   Py_DECREF(cb->exp_energy);
10856 
10857   Py_INCREF(prod_cb); /* Increase reference counter */
10858   Py_INCREF(eval_cb); /* Increase reference counter */
10859 
10860   cb->exp_prod_rule = prod_cb;
10861   cb->exp_energy    = eval_cb;
10862 
10863   vrna_ud_set_exp_prod_rule_cb(vc, &py_wrap_ud_exp_prod_rule, &py_wrap_ud_exp_energy);
10864 }
10865 
10866 
10867 static void
ud_set_prob_cb(vrna_fold_compound_t * vc,PyObject * setter,PyObject * getter)10868 ud_set_prob_cb(vrna_fold_compound_t *vc,
10869                PyObject             *setter,
10870                PyObject             *getter)
10871 {
10872   py_ud_callback_t *cb;
10873 
10874   /* now bind the python function to the wrapper structure */
10875   if ((vc->domains_up) &&
10876       (vc->domains_up->data)) {
10877     cb = (py_ud_callback_t *)vc->domains_up->data;
10878   } else {
10879     cb = new_py_ud_cb();
10880     /* bind callback wrapper to fold compound */
10881     vrna_ud_set_data(vc, (void *)cb, &delete_py_ud_callback);
10882   }
10883 
10884   /* release previous callbacks */
10885   Py_DECREF(cb->prob_add);
10886   Py_DECREF(cb->prob_get);
10887 
10888   Py_INCREF(setter); /* Increase reference counter */
10889   Py_INCREF(getter); /* Increase reference counter */
10890 
10891   cb->prob_add = setter;
10892   cb->prob_get = getter;
10893 
10894   vrna_ud_set_prob_cb(vc, &py_wrap_ud_prob_add, &py_wrap_ud_prob_get);
10895 }
10896 
10897 
10898 static void
py_wrap_ud_prod_rule(vrna_fold_compound_t * vc,void * data)10899 py_wrap_ud_prod_rule(vrna_fold_compound_t *vc,
10900                      void                 *data)
10901 {
10902   PyObject          *func, *arglist, *result, *err;
10903   py_ud_callback_t  *cb;
10904 
10905   cb    = (py_ud_callback_t *)data;
10906   func  = cb->prod_rule;
10907 
10908   /* compose argument list */
10909   arglist = Py_BuildValue("(O,O)", vc, (cb->data) ? cb->data : Py_None);
10910   result =  PyObject_CallObject(func, arglist);
10911 
10912   /* BEGIN recognizing errors in callback execution */
10913   if (result == NULL) {
10914     if ((err = PyErr_Occurred())) {
10915       /* print error message */
10916       PyErr_Print();
10917       /* we only treat TypeErrors differently here, as they indicate that the callback does not follow requirements! */
10918       if (PyErr_GivenExceptionMatches(err, PyExc_TypeError)) {
10919         throw std::runtime_error( "Unstructured domains production rule callback must take exactly 2 arguments" );
10920       } else {
10921         throw std::runtime_error( "Some error occurred while executing unstructured domains production rule callback" );
10922       }
10923     }
10924     PyErr_Clear();
10925   }
10926   /* END recognizing errors in callback execution */
10927 
10928   Py_DECREF(arglist);
10929   Py_XDECREF(result);
10930   return /*void*/;
10931 }
10932 
10933 
10934 static void
py_wrap_ud_exp_prod_rule(vrna_fold_compound_t * vc,void * data)10935 py_wrap_ud_exp_prod_rule(vrna_fold_compound_t *vc,
10936                          void                 *data)
10937 {
10938   PyObject          *func, *arglist, *result, *err;
10939   py_ud_callback_t  *cb;
10940 
10941   cb    = (py_ud_callback_t *)data;
10942   func  = cb->exp_prod_rule;
10943 
10944   /* compose argument list */
10945   arglist = Py_BuildValue("(O,O)", vc, (cb->data) ? cb->data : Py_None);
10946   result =  PyObject_CallObject(func, arglist);
10947 
10948   /* BEGIN recognizing errors in callback execution */
10949   if (result == NULL) {
10950     if ((err = PyErr_Occurred())) {
10951       /* print error message */
10952       PyErr_Print();
10953       /* we only treat TypeErrors differently here, as they indicate that the callback does not follow requirements! */
10954       if (PyErr_GivenExceptionMatches(err, PyExc_TypeError)) {
10955         throw std::runtime_error( "Unstructured domains production rule callback (partition function) must take exactly 2 arguments" );
10956       } else {
10957         throw std::runtime_error( "Some error occurred while executing unstructured domains production rule callback (partition function)" );
10958       }
10959     }
10960     PyErr_Clear();
10961   }
10962   /* END recognizing errors in callback execution */
10963 
10964   Py_DECREF(arglist);
10965   Py_XDECREF(result);
10966   return /*void*/;
10967 }
10968 
10969 
10970 static int
py_wrap_ud_energy(vrna_fold_compound_t * vc,int i,int j,unsigned int looptype,void * data)10971 py_wrap_ud_energy(vrna_fold_compound_t *vc,
10972                   int                  i,
10973                   int                  j,
10974                   unsigned int         looptype,
10975                   void                 *data)
10976 {
10977   int               ret;
10978   PyObject          *func, *arglist, *result, *err, *py_vc, *py_i, *py_j, *py_looptype;
10979   py_ud_callback_t  *cb;
10980 
10981   ret   = 0;
10982   cb    = (py_ud_callback_t *)data;
10983   func  = cb->energy;
10984 
10985   /* compose argument list */
10986   py_vc       = SWIG_NewPointerObj(SWIG_as_voidptr(vc),
10987                                    SWIGTYPE_p_vrna_fold_compound_t,
10988                                    SWIG_POINTER_NEW);
10989   py_i        = PyInt_FromLong(i);
10990   py_j        = PyInt_FromLong(j);
10991   py_looptype = PyInt_FromLong(looptype);
10992   result      = PyObject_CallFunctionObjArgs(func,
10993                                              py_vc,
10994                                              py_i,
10995                                              py_j,
10996                                              py_looptype,
10997                                              (cb->data) ? cb->data : Py_None,
10998                                              NULL);
10999 
11000   Py_DECREF(py_vc);
11001   Py_DECREF(py_i);
11002   Py_DECREF(py_j);
11003   Py_DECREF(py_looptype);
11004 
11005   /* BEGIN recognizing errors in callback execution */
11006   if (result == NULL) {
11007     if ((err = PyErr_Occurred())) {
11008       /* print error message */
11009       PyErr_Print();
11010       /* we only treat TypeErrors differently here, as they indicate that the callback does not follow requirements! */
11011       if (PyErr_GivenExceptionMatches(err, PyExc_TypeError)) {
11012         throw std::runtime_error( "Unstructured domains energy callback must take exactly 5 arguments" );
11013       } else {
11014         throw std::runtime_error( "Some error occurred while executing unstructured domains energy callback" );
11015       }
11016     }
11017     PyErr_Clear();
11018   } else if (result == Py_None) {
11019     throw std::runtime_error( "Unstructured domains energy callback must return pseudo energy value" );
11020   } else {
11021     ret = (int)PyInt_AsLong(result);
11022   }
11023   /* END recognizing errors in callback execution */
11024 
11025   Py_XDECREF(result);
11026   return ret;
11027 }
11028 
11029 
11030 static FLT_OR_DBL
py_wrap_ud_exp_energy(vrna_fold_compound_t * vc,int i,int j,unsigned int looptype,void * data)11031 py_wrap_ud_exp_energy(vrna_fold_compound_t *vc,
11032                       int                  i,
11033                       int                  j,
11034                       unsigned int         looptype,
11035                       void                 *data)
11036 {
11037   FLT_OR_DBL        ret;
11038   PyObject          *func, *arglist, *result, *err, *py_vc, *py_i, *py_j, *py_looptype;
11039   py_ud_callback_t  *cb;
11040 
11041   ret   = 1.;
11042   cb    = (py_ud_callback_t *)data;
11043   func  = cb->exp_energy;
11044 
11045   /* compose argument list */
11046   py_vc       = SWIG_NewPointerObj(SWIG_as_voidptr(vc),
11047                                    SWIGTYPE_p_vrna_fold_compound_t,
11048                                    SWIG_POINTER_NEW);
11049   py_i        = PyInt_FromLong(i);
11050   py_j        = PyInt_FromLong(j);
11051   py_looptype = PyInt_FromLong(looptype);
11052   result      = PyObject_CallFunctionObjArgs(func,
11053                                              py_vc,
11054                                              py_i,
11055                                              py_j,
11056                                              py_looptype,
11057                                              (cb->data) ? cb->data : Py_None,
11058                                              NULL);
11059 
11060   Py_DECREF(py_vc);
11061   Py_DECREF(py_i);
11062   Py_DECREF(py_j);
11063   Py_DECREF(py_looptype);
11064 
11065   /* BEGIN recognizing errors in callback execution */
11066   if (result == NULL) {
11067     if ((err = PyErr_Occurred())) {
11068       /* print error message */
11069       PyErr_Print();
11070       /* we only treat TypeErrors differently here, as they indicate that the callback does not follow requirements! */
11071       if (PyErr_GivenExceptionMatches(err, PyExc_TypeError)) {
11072         throw std::runtime_error( "Unstructured domains energy callback (partition function) must take exactly 5 arguments" );
11073       } else {
11074         throw std::runtime_error( "Some error occurred while executing unstructured domains energy callback (partition function)" );
11075       }
11076     }
11077     PyErr_Clear();
11078   } else if (result == Py_None) {
11079     throw std::runtime_error( "Unstructured domains energy callback (partition function) must return Boltzmann weighted pseudo energy value" );
11080   } else {
11081     ret = (FLT_OR_DBL)PyFloat_AsDouble(result);
11082   }
11083   /* END recognizing errors in callback execution */
11084 
11085   Py_XDECREF(result);
11086   return ret;
11087 }
11088 
11089 
11090 static void
py_wrap_ud_prob_add(vrna_fold_compound_t * vc,int i,int j,unsigned int looptype,FLT_OR_DBL prob,void * data)11091 py_wrap_ud_prob_add(vrna_fold_compound_t *vc,
11092                     int                  i,
11093                     int                  j,
11094                     unsigned int         looptype,
11095                     FLT_OR_DBL           prob,
11096                     void                 *data)
11097 {
11098   PyObject          *func, *arglist, *result, *err, *py_vc, *py_i, *py_j, *py_looptype, *py_prob;
11099   py_ud_callback_t  *cb;
11100 
11101   cb    = (py_ud_callback_t *)data;
11102   func  = cb->prob_add;
11103 
11104   /* compose argument list */
11105   py_vc       = SWIG_NewPointerObj(SWIG_as_voidptr(vc),
11106                                    SWIGTYPE_p_vrna_fold_compound_t,
11107                                    SWIG_POINTER_NEW);
11108   py_i        = PyInt_FromLong(i);
11109   py_j        = PyInt_FromLong(j);
11110   py_looptype = PyInt_FromLong(looptype);
11111   py_prob     = PyFloat_FromDouble((double)prob);
11112   result      = PyObject_CallFunctionObjArgs(func,
11113                                              py_vc,
11114                                              py_i,
11115                                              py_j,
11116                                              py_looptype,
11117                                              py_prob,
11118                                              (cb->data) ? cb->data : Py_None,
11119                                              NULL);
11120 
11121   Py_DECREF(py_vc);
11122   Py_DECREF(py_i);
11123   Py_DECREF(py_j);
11124   Py_DECREF(py_looptype);
11125   Py_DECREF(py_prob);
11126 
11127   /* BEGIN recognizing errors in callback execution */
11128   if (result == NULL) {
11129     if ((err = PyErr_Occurred())) {
11130       /* print error message */
11131       PyErr_Print();
11132       /* we only treat TypeErrors differently here, as they indicate that the callback does not follow requirements! */
11133       if (PyErr_GivenExceptionMatches(err, PyExc_TypeError)) {
11134         throw std::runtime_error( "Unstructured domains add_probability() callback must take exactly 6 arguments" );
11135       } else {
11136         throw std::runtime_error( "Some error occurred while executing unstructured domains add_probability() callback" );
11137       }
11138     }
11139     PyErr_Clear();
11140   }
11141   /* END recognizing errors in callback execution */
11142 
11143   Py_XDECREF(result);
11144   return;
11145 }
11146 
11147 
11148 static FLT_OR_DBL
py_wrap_ud_prob_get(vrna_fold_compound_t * vc,int i,int j,unsigned int looptype,int motif,void * data)11149 py_wrap_ud_prob_get(vrna_fold_compound_t *vc,
11150                     int                  i,
11151                     int                  j,
11152                     unsigned int         looptype,
11153                     int                  motif,
11154                     void                 *data)
11155 {
11156   FLT_OR_DBL        ret;
11157   PyObject          *func, *arglist, *result, *err, *py_vc, *py_i, *py_j, *py_looptype, *py_motif;
11158   py_ud_callback_t  *cb;
11159 
11160   ret   = 1.;
11161   cb    = (py_ud_callback_t *)data;
11162   func  = cb->prob_get;
11163 
11164   /* compose argument list */
11165   py_vc       = SWIG_NewPointerObj(SWIG_as_voidptr(vc),
11166                                    SWIGTYPE_p_vrna_fold_compound_t,
11167                                    SWIG_POINTER_NEW);
11168   py_i        = PyInt_FromLong(i);
11169   py_j        = PyInt_FromLong(j);
11170   py_looptype = PyInt_FromLong(looptype);
11171   py_motif    = PyInt_FromLong(motif);
11172   result      = PyObject_CallFunctionObjArgs(func,
11173                                              py_vc,
11174                                              py_i,
11175                                              py_j,
11176                                              py_looptype,
11177                                              py_motif,
11178                                              (cb->data) ? cb->data : Py_None,
11179                                              NULL);
11180 
11181   Py_DECREF(py_vc);
11182   Py_DECREF(py_i);
11183   Py_DECREF(py_j);
11184   Py_DECREF(py_looptype);
11185   Py_DECREF(py_motif);
11186 
11187   /* BEGIN recognizing errors in callback execution */
11188   if (result == NULL) {
11189     if ((err = PyErr_Occurred())) {
11190       /* print error message */
11191       PyErr_Print();
11192       /* we only treat TypeErrors differently here, as they indicate that the callback does not follow requirements! */
11193       if (PyErr_GivenExceptionMatches(err, PyExc_TypeError)) {
11194         throw std::runtime_error( "Unstructured domains get_probability() callback must take exactly 6 arguments" );
11195       } else {
11196         throw std::runtime_error( "Some error occurred while executing unstructured domains get_probability() callback" );
11197       }
11198     }
11199     PyErr_Clear();
11200   } else if (result == Py_None) {
11201     throw std::runtime_error( "Unstructured domains get_probability() callback must return probability" );
11202   } else {
11203     ret = (FLT_OR_DBL)PyFloat_AsDouble(result);
11204   }
11205   /* END recognizing errors in callback execution */
11206 
11207   Py_XDECREF(result);
11208   return ret;
11209 }
11210 
11211 
11212 
11213 
11214 #include <stdexcept>
11215 
11216 typedef struct {
11217   PyObject *cb;
11218   PyObject *data;
11219 } python_subopt_callback_t;
11220 
11221 static python_subopt_callback_t *
11222 bind_subopt_callback(PyObject *PyFunc,
11223                      PyObject *data);
11224 
11225 static void
11226 python_wrap_subopt_cb(const char *structure,
11227                       float      energy,
11228                       void       *data);
11229 
11230 static python_subopt_callback_t *
bind_subopt_callback(PyObject * PyFunc,PyObject * data)11231 bind_subopt_callback(PyObject *PyFunc,
11232                      PyObject *data)
11233 {
11234   python_subopt_callback_t *cb = (python_subopt_callback_t *)vrna_alloc(sizeof(python_subopt_callback_t));
11235 
11236   Py_INCREF(PyFunc);
11237   Py_INCREF(data);
11238 
11239   cb->cb    = PyFunc;  /* store callback */
11240   cb->data  = data;    /* bind data */
11241 
11242   return cb;
11243 }
11244 
11245 static void
release_subopt_callback(python_subopt_callback_t * cb)11246 release_subopt_callback(python_subopt_callback_t *cb)
11247 {
11248   Py_DECREF(cb->cb);
11249   Py_DECREF(cb->data);
11250   free(cb);
11251 }
11252 
11253 
11254 static void
python_wrap_subopt_cb(const char * structure,float energy,void * data)11255 python_wrap_subopt_cb(const char *structure,
11256                       float      energy,
11257                       void       *data)
11258 {
11259   PyObject                  *func, *arglist, *result, *err, *py_structure, *py_energy;
11260   python_subopt_callback_t  *cb;
11261 
11262   cb    = (python_subopt_callback_t *)data;
11263   func  = cb->cb;
11264 
11265   /* compose argument list */
11266   py_structure = (structure) ? PyString_FromString(structure) : Py_None;
11267   py_energy    = PyFloat_FromDouble((double)energy);
11268   result       = PyObject_CallFunctionObjArgs(func,
11269                                               py_structure,
11270                                               py_energy,
11271                                               (cb->data) ? cb->data : Py_None,
11272                                               NULL);
11273 
11274   if (py_structure != Py_None)
11275     Py_DECREF(py_structure);
11276 
11277   Py_DECREF(py_energy);
11278 
11279   /* BEGIN recognizing errors in callback execution */
11280   if (result == NULL) {
11281     if ((err = PyErr_Occurred())) {
11282       /* print error message */
11283       PyErr_Print();
11284       /* we only treat TypeErrors differently here, as they indicate that the callback does not follow requirements! */
11285       if (PyErr_GivenExceptionMatches(err, PyExc_TypeError)) {
11286         throw std::runtime_error( "Subopt callback must take exactly 3 arguments" );
11287       } else {
11288         throw std::runtime_error( "Some error occurred while executing subopt callback" );
11289       }
11290     }
11291     PyErr_Clear();
11292   }
11293   /* END recognizing errors in callback execution */
11294 
11295   Py_XDECREF(result);
11296 
11297   return /*void*/;
11298 }
11299 
11300 
11301 
11302 
11303 #include <stdexcept>
11304 
11305 typedef struct {
11306   PyObject *cb;
11307   PyObject *data;
11308 } python_bs_callback_t;
11309 
11310 static python_bs_callback_t *
11311 bind_bs_callback(PyObject *PyFunc,
11312                  PyObject *data);
11313 
11314 static void
11315 python_wrap_bs_cb(const char *structure,
11316                   void       *data);
11317 
11318 static python_bs_callback_t *
bind_bs_callback(PyObject * PyFunc,PyObject * data)11319 bind_bs_callback(PyObject *PyFunc,
11320                  PyObject *data)
11321 {
11322   python_bs_callback_t *cb = (python_bs_callback_t *)vrna_alloc(sizeof(python_bs_callback_t));
11323 
11324   Py_INCREF(PyFunc);
11325   Py_INCREF(data);
11326 
11327   cb->cb    = PyFunc;  /* store callback */
11328   cb->data  = data;    /* bind data */
11329 
11330   return cb;
11331 }
11332 
11333 
11334 static void
release_bs_callback(python_bs_callback_t * cb)11335 release_bs_callback(python_bs_callback_t *cb)
11336 {
11337   Py_DECREF(cb->cb);
11338   Py_DECREF(cb->data);
11339   free(cb);
11340 }
11341 
11342 
11343 static void
python_wrap_bs_cb(const char * structure,void * data)11344 python_wrap_bs_cb(const char *structure,
11345                   void       *data)
11346 {
11347   PyObject *func, *arglist, *result, *err;
11348   python_bs_callback_t *cb = (python_bs_callback_t *)data;
11349 
11350   func = cb->cb;
11351   /* compose argument list */
11352   PyObject *py_structure, *py_energy;
11353   py_structure = (structure) ? PyString_FromString(structure) : Py_None;
11354   result       = PyObject_CallFunctionObjArgs(func,
11355                                               py_structure,
11356                                               (cb->data) ? cb->data : Py_None,
11357                                               NULL);
11358 
11359   if (py_structure != Py_None)
11360     Py_DECREF(py_structure);
11361 
11362   /* BEGIN recognizing errors in callback execution */
11363   if (result == NULL) {
11364     if ((err = PyErr_Occurred())) {
11365       /* print error message */
11366       PyErr_Print();
11367       /* we only treat TypeErrors differently here, as they indicate that the callback does not follow requirements! */
11368       if (PyErr_GivenExceptionMatches(err, PyExc_TypeError)) {
11369         throw std::runtime_error( "Boltzmann sampling callback must take exactly 2 arguments" );
11370       } else {
11371         throw std::runtime_error( "Some error occurred while executing Boltzmann sampling callback" );
11372       }
11373     }
11374     PyErr_Clear();
11375   }
11376   /* END recognizing errors in callback execution */
11377 
11378   Py_XDECREF(result);
11379 
11380   return /*void*/;
11381 }
11382 
11383 
11384 
11385 
11386 #include <stdexcept>
11387 
11388 typedef struct {
11389   PyObject *cb;
11390   PyObject *data;
11391 } python_mfe_window_callback_t;
11392 
11393 static python_mfe_window_callback_t *
11394 bind_mfe_window_callback(PyObject *PyFunc,
11395                          PyObject *data);
11396 
11397 
11398 static void
11399 python_wrap_mfe_window_cb(int         start,
11400                           int         end,
11401                           const char  *structure,
11402                           float       energy,
11403                           void        *data);
11404 
11405 #ifdef VRNA_WITH_SVM
11406 static void
11407 python_wrap_mfe_window_zscore_cb(int        start,
11408                                  int        end,
11409                                  const char *structure,
11410                                  float      energy,
11411                                  float      zscore,
11412                                  void       *data);
11413 #endif
11414 
11415 static python_mfe_window_callback_t *
bind_mfe_window_callback(PyObject * PyFunc,PyObject * data)11416 bind_mfe_window_callback(PyObject *PyFunc,
11417                          PyObject *data)
11418 {
11419   python_mfe_window_callback_t *cb = (python_mfe_window_callback_t *)vrna_alloc(sizeof(python_mfe_window_callback_t));
11420 
11421   Py_INCREF(PyFunc);
11422   Py_INCREF(data);
11423 
11424   cb->cb    = PyFunc;  /* store callback */
11425   cb->data  = data;    /* bind data */
11426 
11427   return cb;
11428 }
11429 
11430 
11431 static void
release_mfe_window_callback(python_mfe_window_callback_t * cb)11432 release_mfe_window_callback(python_mfe_window_callback_t *cb)
11433 {
11434   Py_DECREF(cb->cb);
11435   Py_DECREF(cb->data);
11436   free(cb);
11437 }
11438 
11439 
11440 static void
python_wrap_mfe_window_cb(int start,int end,const char * structure,float energy,void * data)11441 python_wrap_mfe_window_cb(int         start,
11442                           int         end,
11443                           const char  *structure,
11444                           float       energy,
11445                           void        *data)
11446 {
11447   PyObject *func, *arglist, *result, *err;
11448   python_mfe_window_callback_t *cb = (python_mfe_window_callback_t *)data;
11449 
11450   func = cb->cb;
11451   /* compose argument list */
11452   PyObject *py_start, *py_end, *py_structure, *py_energy;
11453   py_start      = PyInt_FromLong(start);
11454   py_end        = PyInt_FromLong(end);
11455   py_structure  = PyString_FromString(structure);
11456   py_energy     = PyFloat_FromDouble((double)energy);
11457   result        = PyObject_CallFunctionObjArgs(func,
11458                                                py_start,
11459                                                py_end,
11460                                                py_structure,
11461                                                py_energy,
11462                                                (cb->data) ? cb->data : Py_None,
11463                                                NULL);
11464 
11465   Py_DECREF(py_start);
11466   Py_DECREF(py_end);
11467   Py_DECREF(py_structure);
11468   Py_DECREF(py_energy);
11469 
11470   /* BEGIN recognizing errors in callback execution */
11471   if (result == NULL) {
11472     if ((err = PyErr_Occurred())) {
11473       /* print error message */
11474       PyErr_Print();
11475       /* we only treat TypeErrors differently here, as they indicate that the callback does not follow requirements! */
11476       if (PyErr_GivenExceptionMatches(err, PyExc_TypeError)) {
11477         throw std::runtime_error( "Sliding window MFE callback must take exactly 5 arguments" );
11478       } else {
11479         throw std::runtime_error( "Some error occurred while executing sliding window MFE callback" );
11480       }
11481     }
11482     PyErr_Clear();
11483   }
11484   /* END recognizing errors in callback execution */
11485 
11486   Py_XDECREF(result);
11487 
11488   return /*void*/;
11489 }
11490 
11491 #ifdef VRNA_WITH_SVM
11492 static void
python_wrap_mfe_window_zscore_cb(int start,int end,const char * structure,float energy,float zscore,void * data)11493 python_wrap_mfe_window_zscore_cb(int        start,
11494                                  int        end,
11495                                  const char *structure,
11496                                  float      energy,
11497                                  float      zscore,
11498                                  void       *data)
11499 {
11500   PyObject *func, *arglist, *result, *err;
11501   python_mfe_window_callback_t *cb = (python_mfe_window_callback_t *)data;
11502 
11503   func = cb->cb;
11504   /* compose argument list */
11505   PyObject *py_start, *py_end, *py_structure, *py_energy, *py_zscore;
11506   py_start      = PyInt_FromLong(start);
11507   py_end        = PyInt_FromLong(end);
11508   py_structure  = PyString_FromString(structure);
11509   py_energy     = PyFloat_FromDouble((double)energy);
11510   py_zscore     = PyFloat_FromDouble((double)zscore);
11511   result        = PyObject_CallFunctionObjArgs(func,
11512                                                py_start,
11513                                                py_end,
11514                                                py_structure,
11515                                                py_energy,
11516                                                py_zscore,
11517                                                (cb->data) ? cb->data : Py_None,
11518                                                NULL);
11519 
11520   Py_DECREF(py_start);
11521   Py_DECREF(py_end);
11522   Py_DECREF(py_structure);
11523   Py_DECREF(py_energy);
11524   Py_DECREF(py_zscore);
11525 
11526   /* BEGIN recognizing errors in callback execution */
11527   if (result == NULL) {
11528     if ((err = PyErr_Occurred())) {
11529       /* print error message */
11530       PyErr_Print();
11531       /* we only treat TypeErrors differently here, as they indicate that the callback does not follow requirements! */
11532       if (PyErr_GivenExceptionMatches(err, PyExc_TypeError)) {
11533         throw std::runtime_error( "Sliding window MFE callback (z-score) must take exactly 6 arguments" );
11534       } else {
11535         throw std::runtime_error( "Some error occurred while executing sliding window MFE callback (z-score)" );
11536       }
11537     }
11538     PyErr_Clear();
11539   }
11540   /* END recognizing errors in callback execution */
11541 
11542   Py_XDECREF(result);
11543 
11544   return /*void*/;
11545 }
11546 #endif
11547 
11548 
11549 
11550   float
my_Lfold_cb(char * string,int window_size,PyObject * PyFunc,PyObject * data=Py_None)11551   my_Lfold_cb(char      *string,
11552               int       window_size,
11553               PyObject  *PyFunc,
11554               PyObject  *data = Py_None)
11555   {
11556     float en;
11557     python_mfe_window_callback_t *cb = bind_mfe_window_callback(PyFunc, data);
11558     en = vrna_Lfold_cb(string, window_size, &python_wrap_mfe_window_cb, (void *)cb);
11559     release_mfe_window_callback(cb);
11560     return en;
11561   }
11562 
11563 #ifdef VRNA_WITH_SVM
11564   float
my_Lfoldz_cb(char * string,int window_size,double min_z,PyObject * PyFunc,PyObject * data=Py_None)11565   my_Lfoldz_cb(char *   string,
11566                int      window_size,
11567                double   min_z,
11568                PyObject *PyFunc,
11569                PyObject *data = Py_None)
11570   {
11571     float en;
11572     python_mfe_window_callback_t *cb = bind_mfe_window_callback(PyFunc, data);
11573     en = vrna_Lfoldz_cb(string, window_size, min_z, &python_wrap_mfe_window_zscore_cb, (void *)cb);
11574     release_mfe_window_callback(cb);
11575     return en;
11576   }
11577 #endif
11578 
11579   float
my_aliLfold_cb(std::vector<std::string> alignment,int window_size,PyObject * PyFunc,PyObject * data=Py_None)11580   my_aliLfold_cb(std::vector<std::string> alignment,
11581                  int                      window_size,
11582                  PyObject                 *PyFunc,
11583                  PyObject                 *data = Py_None)
11584   {
11585     float en;
11586     python_mfe_window_callback_t *cb = bind_mfe_window_callback(PyFunc, data);
11587     std::vector<const char*>  vc;
11588     std::transform(alignment.begin(), alignment.end(), std::back_inserter(vc), convert_vecstring2veccharcp);
11589     vc.push_back(NULL); /* mark end of sequences */
11590     en = vrna_aliLfold_cb((const char **)&vc[0], window_size, &python_wrap_mfe_window_cb, (void *)cb);
11591     release_mfe_window_callback(cb);
11592     return en;
11593   }
11594 
11595 
11596 
11597 
11598 #include <stdexcept>
11599 
11600 typedef struct {
11601   PyObject *cb;
11602   PyObject *data;
11603 } python_pf_window_callback_t;
11604 
11605 
11606 static python_pf_window_callback_t *
11607 bind_pf_window_callback(PyObject *PyFunc,
11608                         PyObject *data);
11609 
11610 
11611 static void
11612 python_wrap_pf_window_cb(FLT_OR_DBL   *pr,
11613                          int          pr_size,
11614                          int          i,
11615                          int          max,
11616                          unsigned int type,
11617                          void         *data);
11618 
11619 
11620 static python_pf_window_callback_t *
bind_pf_window_callback(PyObject * PyFunc,PyObject * data)11621 bind_pf_window_callback(PyObject *PyFunc,
11622                         PyObject *data)
11623 {
11624   python_pf_window_callback_t *cb = (python_pf_window_callback_t *)vrna_alloc(sizeof(python_pf_window_callback_t));
11625 
11626   Py_INCREF(PyFunc);
11627   Py_INCREF(data);
11628 
11629   cb->cb    = PyFunc;  /* store callback */
11630   cb->data  = data;    /* bind data */
11631 
11632   return cb;
11633 }
11634 
11635 
11636 static void
release_pf_window_callback(python_pf_window_callback_t * cb)11637 release_pf_window_callback(python_pf_window_callback_t *cb)
11638 {
11639   Py_DECREF(cb->cb);
11640   Py_DECREF(cb->data);
11641   free(cb);
11642 }
11643 
11644 
11645 static void
python_wrap_pf_window_cb(FLT_OR_DBL * pr,int pr_size,int i,int max,unsigned int type,void * data)11646 python_wrap_pf_window_cb(FLT_OR_DBL   *pr,
11647                          int          pr_size,
11648                          int          i,
11649                          int          max,
11650                          unsigned int type,
11651                          void *data)
11652 {
11653   PyObject *func, *arglist, *result, *pr_list, *err;
11654   python_pf_window_callback_t *cb = (python_pf_window_callback_t *)data;
11655 
11656   func = cb->cb;
11657 
11658   if (type & VRNA_PROBS_WINDOW_UP) { /* We distinguish output for unpaired probabilities */
11659 
11660     /* create PYTHON list for unpaired probabilities */
11661     pr_list = PyList_New((Py_ssize_t) max + 1);
11662 
11663     /* 0th element */
11664     Py_INCREF(Py_None);
11665     PyList_SET_ITEM(pr_list, 0, Py_None);
11666 
11667     /* actual values in range [1, MIN(i, max)] */
11668     for (int cnt = 1; cnt <= pr_size; cnt++)
11669       PyList_SET_ITEM(pr_list, (Py_ssize_t) cnt, PyFloat_FromDouble(pr[cnt]));
11670 
11671     /* empty values in range [0,i - 1] */
11672     for (int cnt = pr_size + 1; cnt <= max; cnt++) {
11673       Py_INCREF(Py_None);
11674       PyList_SET_ITEM(pr_list, (Py_ssize_t) cnt, Py_None);
11675     }
11676   } else { /* and pairing/stacking probabilities for pair (i, j) or ensemble free energies for subsegment [i, j] */
11677 
11678     /* create PYTHON list for pr values */
11679     pr_list = PyList_New((Py_ssize_t) (pr_size + 1));
11680 
11681     /* empty values in range [0, i] */
11682     for (int cnt = 0; cnt <= i; cnt++) {
11683       Py_INCREF(Py_None);
11684       PyList_SET_ITEM(pr_list, (Py_ssize_t) cnt, Py_None);
11685     }
11686 
11687     /* actual values in range [i + 1, pr_size] */
11688     for (int cnt = i + 1; cnt <= pr_size; cnt++)
11689       PyList_SET_ITEM(pr_list, (Py_ssize_t) cnt, PyFloat_FromDouble(pr[cnt]));
11690   }
11691 
11692   /* compose argument list */
11693   PyObject *py_size, *py_i, *py_max, *py_type;
11694   py_size = PyInt_FromLong(pr_size);
11695   py_i    = PyInt_FromLong(i);
11696   py_max  = PyInt_FromLong(max);
11697   py_type = PyInt_FromLong(type);
11698   result  = PyObject_CallFunctionObjArgs(func,
11699                                          pr_list,
11700                                          py_size,
11701                                          py_i,
11702                                          py_max,
11703                                          py_type,
11704                                          (cb->data) ? cb->data : Py_None,
11705                                          NULL);
11706 
11707   Py_DECREF(py_size);
11708   Py_DECREF(py_i);
11709   Py_DECREF(py_max);
11710   Py_DECREF(py_type);
11711   Py_DECREF(pr_list);
11712 
11713   /* BEGIN recognizing errors in callback execution */
11714   if (result == NULL) {
11715     if ((err = PyErr_Occurred())) {
11716       /* print error message */
11717       PyErr_Print();
11718       /* we only treat TypeErrors differently here, as they indicate that the callback does not follow requirements! */
11719       if (PyErr_GivenExceptionMatches(err, PyExc_TypeError)) {
11720         throw std::runtime_error( "Sliding window partition function callback must take exactly 6 arguments" );
11721       } else {
11722         throw std::runtime_error( "Some error occurred while executing sliding window partition function callback" );
11723       }
11724     }
11725     PyErr_Clear();
11726   }
11727   /* END recognizing errors in callback execution */
11728 
11729   Py_XDECREF(result);
11730 
11731   return /*void*/;
11732 }
11733 
11734 
11735 
11736 
11737   int
pfl_fold_cb(std::string sequence,int window_size,int max_bp_span,PyObject * PyFunc,PyObject * data=Py_None)11738   pfl_fold_cb(std::string sequence,
11739               int         window_size,
11740               int         max_bp_span,
11741               PyObject    *PyFunc,
11742               PyObject    *data = Py_None)
11743   {
11744     python_pf_window_callback_t *cb = bind_pf_window_callback(PyFunc, data);
11745     int r = vrna_pfl_fold_cb(sequence.c_str(), window_size, max_bp_span, &python_wrap_pf_window_cb, (void *)cb);
11746     release_pf_window_callback(cb);
11747     return r;
11748   }
11749 
11750   int
pfl_fold_up_cb(std::string sequence,int ulength,int window_size,int max_bp_span,PyObject * PyFunc,PyObject * data=Py_None)11751   pfl_fold_up_cb(std::string  sequence,
11752                  int          ulength,
11753                  int          window_size,
11754                  int          max_bp_span,
11755                  PyObject     *PyFunc,
11756                  PyObject     *data = Py_None)
11757   {
11758     python_pf_window_callback_t *cb = bind_pf_window_callback(PyFunc, data);
11759     int r = vrna_pfl_fold_up_cb(sequence.c_str(), ulength, window_size, max_bp_span, &python_wrap_pf_window_cb, (void *)cb);
11760     release_pf_window_callback(cb);
11761     return r;
11762   }
11763 
11764 
11765 
11766 
11767 #include <stdexcept>
11768 
11769 typedef struct {
11770   PyObject *cb;
11771   PyObject *data;
11772 } python_heat_capacity_callback_t;
11773 
11774 static python_heat_capacity_callback_t *
11775 bind_heat_capacity_callback(PyObject *PyFunc,
11776                             PyObject *data);
11777 
11778 static void
11779 python_wrap_heat_capacity_cb(float      temp,
11780                              float      hc,
11781                              void       *data);
11782 
11783 static python_heat_capacity_callback_t *
bind_heat_capacity_callback(PyObject * PyFunc,PyObject * data)11784 bind_heat_capacity_callback(PyObject *PyFunc,
11785                             PyObject *data)
11786 {
11787 
11788   python_heat_capacity_callback_t *cb = (python_heat_capacity_callback_t *)vrna_alloc(sizeof(python_heat_capacity_callback_t));
11789 
11790   Py_INCREF(PyFunc);
11791   Py_INCREF(data);
11792   cb->cb    = PyFunc;  /* store callback */
11793   cb->data  = data;    /* bind data */
11794 
11795   return cb;
11796 }
11797 
11798 static void
release_heat_capacity_callback(python_heat_capacity_callback_t * cb)11799 release_heat_capacity_callback(python_heat_capacity_callback_t *cb)
11800 {
11801   Py_DECREF(cb->cb);
11802   Py_DECREF(cb->data);
11803   free(cb);
11804 }
11805 
11806 
11807 static void
python_wrap_heat_capacity_cb(float temp,float hc,void * data)11808 python_wrap_heat_capacity_cb(float temp,
11809                              float hc,
11810                              void  *data)
11811 {
11812   PyObject                        *func, *arglist, *result, *err, *py_temp, *py_hc;
11813   python_heat_capacity_callback_t *cb;
11814 
11815   cb    = (python_heat_capacity_callback_t *)data;
11816   func  = cb->cb;
11817 
11818   /* compose argument list */
11819   py_temp = PyFloat_FromDouble((double)temp);
11820   py_hc   = PyFloat_FromDouble((double)hc);
11821   result  = PyObject_CallFunctionObjArgs(func,
11822                                          py_temp,
11823                                          py_hc,
11824                                          (cb->data) ? cb->data : Py_None,
11825                                          NULL);
11826 
11827   Py_DECREF(py_temp);
11828   Py_DECREF(py_hc);
11829 
11830   /* BEGIN recognizing errors in callback execution */
11831   if (result == NULL) {
11832     if ((err = PyErr_Occurred())) {
11833       /* print error message */
11834       PyErr_Print();
11835       /* we only treat TypeErrors differently here, as they indicate that the callback does not follow requirements! */
11836       if (PyErr_GivenExceptionMatches(err, PyExc_TypeError)) {
11837         throw std::runtime_error( "heat_capacity callback must take exactly 3 arguments" );
11838       } else {
11839         throw std::runtime_error( "Some error occurred while executing heat_capacity callback" );
11840       }
11841     }
11842     PyErr_Clear();
11843   }
11844   /* END recognizing errors in callback execution */
11845 
11846   Py_XDECREF(result);
11847 
11848   return /*void*/;
11849 }
11850 
11851 
11852 
11853   typedef enum {
11854     FC_TYPE_SINGLE      = VRNA_FC_TYPE_SINGLE,
11855     FC_TYPE_COMPARATIVE = VRNA_FC_TYPE_COMPARATIVE
11856   } my_fc_type_e;
11857 
vrna_fold_compound_t_params_reset(vrna_fold_compound_t * self,vrna_md_t * md=NULL)11858 SWIGINTERN void vrna_fold_compound_t_params_reset(vrna_fold_compound_t *self,vrna_md_t *md=NULL){
11859     vrna_params_reset(self, md);
11860   }
vrna_fold_compound_t_params_subst(vrna_fold_compound_t * self,vrna_param_t * par=NULL)11861 SWIGINTERN void vrna_fold_compound_t_params_subst(vrna_fold_compound_t *self,vrna_param_t *par=NULL){
11862     vrna_params_subst(self, par);
11863   }
vrna_fold_compound_t_exp_params_rescale__SWIG_0(vrna_fold_compound_t * self)11864 SWIGINTERN void vrna_fold_compound_t_exp_params_rescale__SWIG_0(vrna_fold_compound_t *self){
11865     vrna_exp_params_rescale(self, NULL);
11866   }
vrna_fold_compound_t_exp_params_rescale__SWIG_1(vrna_fold_compound_t * self,double fe)11867 SWIGINTERN void vrna_fold_compound_t_exp_params_rescale__SWIG_1(vrna_fold_compound_t *self,double fe){
11868     vrna_exp_params_rescale(self, &fe);
11869   }
vrna_fold_compound_t_exp_params_reset(vrna_fold_compound_t * self,vrna_md_t * md=NULL)11870 SWIGINTERN void vrna_fold_compound_t_exp_params_reset(vrna_fold_compound_t *self,vrna_md_t *md=NULL){
11871     vrna_exp_params_reset(self, md);
11872   }
vrna_fold_compound_t_exp_params_subst(vrna_fold_compound_t * self,vrna_exp_param_t * par)11873 SWIGINTERN void vrna_fold_compound_t_exp_params_subst(vrna_fold_compound_t *self,vrna_exp_param_t *par){
11874     vrna_exp_params_subst(self, par);
11875   }
vrna_fold_compound_t_plist_from_probs(vrna_fold_compound_t * self,double cutoff)11876 SWIGINTERN std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > vrna_fold_compound_t_plist_from_probs(vrna_fold_compound_t *self,double cutoff){
11877     std::vector<vrna_ep_t > ep_v;
11878     vrna_ep_t               *ptr, *plist;
11879 
11880     plist = vrna_plist_from_probs(self, cutoff);
11881 
11882     for (ptr = plist; ptr->i && ptr->j; ptr++) {
11883       vrna_ep_t pl;
11884       pl.i = ptr->i;
11885       pl.j = ptr->j;
11886       pl.p = ptr->p;
11887       pl.type = ptr->type;
11888       ep_v.push_back(pl);
11889     }
11890 
11891     free(plist);
11892 
11893     return ep_v;
11894   }
vrna_fold_compound_t_constraints_add(vrna_fold_compound_t * self,char const * constraint,unsigned int options=VRNA_OPTION_MFE)11895 SWIGINTERN void vrna_fold_compound_t_constraints_add(vrna_fold_compound_t *self,char const *constraint,unsigned int options=VRNA_OPTION_MFE){
11896     vrna_constraints_add(self,constraint, options);
11897   }
vrna_fold_compound_t_hc_init(vrna_fold_compound_t * self)11898 SWIGINTERN void vrna_fold_compound_t_hc_init(vrna_fold_compound_t *self){
11899     vrna_hc_init(self);
11900   }
vrna_fold_compound_t_hc_add_up(vrna_fold_compound_t * self,int i,unsigned int option=VRNA_CONSTRAINT_CONTEXT_ALL_LOOPS)11901 SWIGINTERN void vrna_fold_compound_t_hc_add_up(vrna_fold_compound_t *self,int i,unsigned int option=VRNA_CONSTRAINT_CONTEXT_ALL_LOOPS){
11902     vrna_hc_add_up(self,i, (unsigned char)option);
11903   }
vrna_fold_compound_t_hc_add_bp_nonspecific(vrna_fold_compound_t * self,int i,int d,unsigned int option=VRNA_CONSTRAINT_CONTEXT_ALL_LOOPS)11904 SWIGINTERN void vrna_fold_compound_t_hc_add_bp_nonspecific(vrna_fold_compound_t *self,int i,int d,unsigned int option=VRNA_CONSTRAINT_CONTEXT_ALL_LOOPS){
11905     vrna_hc_add_bp_nonspecific(self,i,d, (unsigned char)option);
11906   }
vrna_fold_compound_t_hc_add_bp(vrna_fold_compound_t * self,int i,int j,unsigned int option=VRNA_CONSTRAINT_CONTEXT_ALL_LOOPS)11907 SWIGINTERN void vrna_fold_compound_t_hc_add_bp(vrna_fold_compound_t *self,int i,int j,unsigned int option=VRNA_CONSTRAINT_CONTEXT_ALL_LOOPS){
11908     vrna_hc_add_bp(self,i,j,(unsigned char)option);
11909   }
vrna_fold_compound_t_hc_add_from_db(vrna_fold_compound_t * self,char const * constraint,unsigned int options=VRNA_CONSTRAINT_DB_DEFAULT)11910 SWIGINTERN int vrna_fold_compound_t_hc_add_from_db(vrna_fold_compound_t *self,char const *constraint,unsigned int options=VRNA_CONSTRAINT_DB_DEFAULT){
11911     return vrna_hc_add_from_db(self,constraint, options);
11912   }
vrna_fold_compound_t_sc_remove(vrna_fold_compound_t * self)11913 SWIGINTERN void vrna_fold_compound_t_sc_remove(vrna_fold_compound_t *self){
11914     vrna_sc_remove(self);
11915   }
vrna_fold_compound_t_sc_init(vrna_fold_compound_t * self)11916 SWIGINTERN void vrna_fold_compound_t_sc_init(vrna_fold_compound_t *self){
11917     vrna_sc_init(self);
11918   }
vrna_fold_compound_t_sc_add_up__SWIG_0(vrna_fold_compound_t * self,int i,double energy,unsigned int options=VRNA_OPTION_DEFAULT)11919 SWIGINTERN int vrna_fold_compound_t_sc_add_up__SWIG_0(vrna_fold_compound_t *self,int i,double energy,unsigned int options=VRNA_OPTION_DEFAULT){
11920     return vrna_sc_add_up(self, i, energy, options);
11921   }
vrna_fold_compound_t_sc_add_up__SWIG_1(vrna_fold_compound_t * self,std::vector<double,std::allocator<double>> constraints,unsigned int options=VRNA_OPTION_DEFAULT)11922 SWIGINTERN int vrna_fold_compound_t_sc_add_up__SWIG_1(vrna_fold_compound_t *self,std::vector< double,std::allocator< double > > constraints,unsigned int options=VRNA_OPTION_DEFAULT){
11923     std::vector<double>::iterator it;
11924     int i = 1, ret = 1;
11925     it = constraints.begin();
11926     for(it++; it != constraints.end(); it++, i++){
11927       ret &= (vrna_sc_add_up(self, i, *it, options)) ? 1 : 0;
11928     }
11929 
11930     return ret;
11931   }
vrna_fold_compound_t_sc_add_bp__SWIG_0(vrna_fold_compound_t * self,int i,int j,double energy,unsigned int options=VRNA_OPTION_DEFAULT)11932 SWIGINTERN int vrna_fold_compound_t_sc_add_bp__SWIG_0(vrna_fold_compound_t *self,int i,int j,double energy,unsigned int options=VRNA_OPTION_DEFAULT){
11933     return vrna_sc_add_bp(self, i, j, energy, options);
11934   }
vrna_fold_compound_t_sc_add_bp__SWIG_1(vrna_fold_compound_t * self,std::vector<std::vector<double,std::allocator<double>>,std::allocator<std::vector<double,std::allocator<double>>>> constraints,unsigned int options=VRNA_OPTION_DEFAULT)11935 SWIGINTERN int vrna_fold_compound_t_sc_add_bp__SWIG_1(vrna_fold_compound_t *self,std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > constraints,unsigned int options=VRNA_OPTION_DEFAULT){
11936     std::vector<std::vector<double> >::iterator it;
11937     std::vector<double>::iterator it2;
11938     int i, j, ret;
11939 
11940     i = 1;
11941     ret = 1;
11942     it = constraints.begin();
11943     for(it++; it != constraints.end(); it++, i++){
11944       it2 = (*it).begin();
11945       j   = 1;
11946       for(it2++; it2 != (*it).end(); it2++, j++){
11947         ret &= (vrna_sc_add_bp(self, i, j, *it2, options)) ? 1 : 0;
11948       }
11949     }
11950 
11951     return ret;
11952   }
vrna_fold_compound_t_sc_set_bp(vrna_fold_compound_t * self,std::vector<std::vector<double,std::allocator<double>>,std::allocator<std::vector<double,std::allocator<double>>>> constraints,unsigned int options=VRNA_OPTION_DEFAULT)11953 SWIGINTERN int vrna_fold_compound_t_sc_set_bp(vrna_fold_compound_t *self,std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > constraints,unsigned int options=VRNA_OPTION_DEFAULT){
11954     int ret = 0;
11955 
11956     /* make sure that the constraints matrix is large enough */
11957     FLT_OR_DBL **c = (FLT_OR_DBL **)vrna_alloc(sizeof(FLT_OR_DBL *) * (self->length + 1));
11958     for(unsigned int i = 0; i <= self->length; i++)
11959       c[i] = (FLT_OR_DBL *)vrna_alloc(sizeof(FLT_OR_DBL) * (self->length + 1));
11960 
11961     /* copy input data (missing values have value 0 */
11962     for(unsigned int i = 0; (i < constraints.size()) && (i <= self->length); i++)
11963       for(unsigned int j = i; (j < constraints[i].size()) && (j <= self->length); j++)
11964         c[i][j] = (FLT_OR_DBL)constraints[i][j];
11965 
11966     ret = vrna_sc_set_bp(self, (const FLT_OR_DBL **)c, options);
11967 
11968     /* cleanup */
11969     for(unsigned int i = 0; i <= self->length; i++)
11970       free(c[i]);
11971     free(c);
11972 
11973     return ret;
11974   }
vrna_fold_compound_t_sc_set_up(vrna_fold_compound_t * self,std::vector<double,std::allocator<double>> constraints,unsigned int options=VRNA_OPTION_DEFAULT)11975 SWIGINTERN int vrna_fold_compound_t_sc_set_up(vrna_fold_compound_t *self,std::vector< double,std::allocator< double > > constraints,unsigned int options=VRNA_OPTION_DEFAULT){
11976     std::vector<FLT_OR_DBL>  v;
11977     transform(constraints.begin(), constraints.end(), std::back_inserter(v), convert_vecdbl2vecFLR_OR_DBL);
11978     return vrna_sc_set_up(self, (const FLT_OR_DBL *)&v[0], options);
11979   }
vrna_fold_compound_t_sc_set_stack__SWIG_0(vrna_fold_compound_t * self,std::vector<double,std::allocator<double>> constraints,unsigned int options=VRNA_OPTION_DEFAULT)11980 SWIGINTERN int vrna_fold_compound_t_sc_set_stack__SWIG_0(vrna_fold_compound_t *self,std::vector< double,std::allocator< double > > constraints,unsigned int options=VRNA_OPTION_DEFAULT){
11981     std::vector<FLT_OR_DBL>  v;
11982     transform(constraints.begin(), constraints.end(), std::back_inserter(v), convert_vecdbl2vecFLR_OR_DBL);
11983     return vrna_sc_set_stack(self, (const FLT_OR_DBL *)&v[0], options);
11984   }
vrna_fold_compound_t_sc_set_stack__SWIG_1(vrna_fold_compound_t * self,std::vector<std::vector<double,std::allocator<double>>,std::allocator<std::vector<double,std::allocator<double>>>> constraints,unsigned int options=VRNA_OPTION_DEFAULT)11985 SWIGINTERN int vrna_fold_compound_t_sc_set_stack__SWIG_1(vrna_fold_compound_t *self,std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > constraints,unsigned int options=VRNA_OPTION_DEFAULT){
11986     int ret = 0;
11987 
11988     if (self->type == VRNA_FC_TYPE_COMPARATIVE) {
11989       FLT_OR_DBL **c = (FLT_OR_DBL **)vrna_alloc(sizeof(FLT_OR_DBL *) * (self->n_seq + 1));
11990 
11991       for(unsigned int s = 0; s <= self->n_seq; s++)
11992         c[s] = (FLT_OR_DBL *)vrna_alloc(sizeof(FLT_OR_DBL) * (self->length + 1));
11993 
11994       /* copy input data (missing values have value 0 */
11995       for(unsigned int s = 0; (s < constraints.size()) && (s <= self->n_seq); s++)
11996         for(unsigned int i = 1; (i < constraints[s].size()) && (i <= self->length); i++)
11997           c[s][i] = (FLT_OR_DBL)constraints[s][i];
11998 
11999       ret = vrna_sc_set_stack_comparative(self, (const FLT_OR_DBL **)c, options);
12000 
12001       /* cleanup */
12002       for(unsigned int i = 0; i <= self->length; i++)
12003         free(c[i]);
12004       free(c);
12005     }
12006 
12007     return ret;
12008   }
vrna_fold_compound_t_sc_add_stack__SWIG_0(vrna_fold_compound_t * self,int i,double energy,unsigned int options=VRNA_OPTION_DEFAULT)12009 SWIGINTERN int vrna_fold_compound_t_sc_add_stack__SWIG_0(vrna_fold_compound_t *self,int i,double energy,unsigned int options=VRNA_OPTION_DEFAULT){
12010     return vrna_sc_add_stack(self, i, energy, options);
12011   }
vrna_fold_compound_t_sc_add_stack__SWIG_1(vrna_fold_compound_t * self,int i,std::vector<double,std::allocator<double>> energies,unsigned int options=VRNA_OPTION_DEFAULT)12012 SWIGINTERN int vrna_fold_compound_t_sc_add_stack__SWIG_1(vrna_fold_compound_t *self,int i,std::vector< double,std::allocator< double > > energies,unsigned int options=VRNA_OPTION_DEFAULT){
12013     std::vector<FLT_OR_DBL>  v;
12014     transform(energies.begin(), energies.end(), std::back_inserter(v), convert_vecdbl2vecFLR_OR_DBL);
12015     return vrna_sc_add_stack_comparative(self, i, (const FLT_OR_DBL *)&v[0], options);
12016   }
vrna_fold_compound_t_sc_add_SHAPE_deigan(vrna_fold_compound_t * self,std::vector<double,std::allocator<double>> reactivities,double m,double b,unsigned int options=VRNA_OPTION_DEFAULT)12017 SWIGINTERN int vrna_fold_compound_t_sc_add_SHAPE_deigan(vrna_fold_compound_t *self,std::vector< double,std::allocator< double > > reactivities,double m,double b,unsigned int options=VRNA_OPTION_DEFAULT){
12018     return vrna_sc_add_SHAPE_deigan(self, (const double *)&reactivities[0], m, b, options);
12019   }
vrna_fold_compound_t_sc_add_SHAPE_deigan_ali(vrna_fold_compound_t * self,std::vector<std::string,std::allocator<std::string>> shape_files,std::vector<int,std::allocator<int>> shape_file_association,double m,double b,unsigned int options=VRNA_OPTION_DEFAULT)12020 SWIGINTERN int vrna_fold_compound_t_sc_add_SHAPE_deigan_ali(vrna_fold_compound_t *self,std::vector< std::string,std::allocator< std::string > > shape_files,std::vector< int,std::allocator< int > > shape_file_association,double m,double b,unsigned int options=VRNA_OPTION_DEFAULT){
12021     std::vector<const char*>  vc;
12022     transform(shape_files.begin(), shape_files.end(), back_inserter(vc), convert_vecstring2veccharcp);
12023     vc.push_back(NULL); /* mark end of vector */
12024     return vrna_sc_add_SHAPE_deigan_ali(self, (const char **) &vc[0], (const int *) &shape_file_association[0], m, b, options);
12025   }
vrna_fold_compound_t_sc_add_SHAPE_zarringhalam(vrna_fold_compound_t * self,std::vector<double,std::allocator<double>> reactivities,double b,double default_value,char const * shape_conversion,unsigned int options=VRNA_OPTION_DEFAULT)12026 SWIGINTERN int vrna_fold_compound_t_sc_add_SHAPE_zarringhalam(vrna_fold_compound_t *self,std::vector< double,std::allocator< double > > reactivities,double b,double default_value,char const *shape_conversion,unsigned int options=VRNA_OPTION_DEFAULT){
12027     return vrna_sc_add_SHAPE_zarringhalam(self, (const double *) &reactivities[0], b, default_value, shape_conversion, options);
12028   }
vrna_fold_compound_t_sc_add_hi_motif(vrna_fold_compound_t * self,char const * seq,char const * structure,FLT_OR_DBL energy,unsigned int options=VRNA_OPTION_DEFAULT)12029 SWIGINTERN int vrna_fold_compound_t_sc_add_hi_motif(vrna_fold_compound_t *self,char const *seq,char const *structure,FLT_OR_DBL energy,unsigned int options=VRNA_OPTION_DEFAULT){
12030     return vrna_sc_add_hi_motif(self, seq, structure, energy,options);
12031   }
vrna_fold_compound_t_eval_structure(vrna_fold_compound_t * self,char const * structure)12032 SWIGINTERN float vrna_fold_compound_t_eval_structure(vrna_fold_compound_t *self,char const *structure){
12033     return vrna_eval_structure(self,structure);
12034   }
vrna_fold_compound_t_eval_structure_pt(vrna_fold_compound_t * self,std::vector<int,std::allocator<int>> pt)12035 SWIGINTERN int vrna_fold_compound_t_eval_structure_pt(vrna_fold_compound_t *self,std::vector< int,std::allocator< int > > pt){
12036     std::vector<short> vc;
12037     transform(pt.begin(), pt.end(), back_inserter(vc), convert_vecint2vecshort);
12038     return vrna_eval_structure_pt(self, (const short*)&vc[0]);
12039   }
vrna_fold_compound_t_eval_structure_verbose(vrna_fold_compound_t * self,char * structure,FILE * nullfile=NULL)12040 SWIGINTERN float vrna_fold_compound_t_eval_structure_verbose(vrna_fold_compound_t *self,char *structure,FILE *nullfile=NULL){
12041     return vrna_eval_structure_verbose(self, structure, nullfile);
12042   }
vrna_fold_compound_t_eval_structure_pt_verbose(vrna_fold_compound_t * self,std::vector<int,std::allocator<int>> pt,FILE * nullfile=NULL)12043 SWIGINTERN int vrna_fold_compound_t_eval_structure_pt_verbose(vrna_fold_compound_t *self,std::vector< int,std::allocator< int > > pt,FILE *nullfile=NULL){
12044     std::vector<short> vc;
12045     transform(pt.begin(), pt.end(), back_inserter(vc), convert_vecint2vecshort);
12046     return vrna_eval_structure_pt_verbose(self, (const short*)&vc[0], nullfile);
12047   }
vrna_fold_compound_t_eval_covar_structure(vrna_fold_compound_t * self,char * structure)12048 SWIGINTERN float vrna_fold_compound_t_eval_covar_structure(vrna_fold_compound_t *self,char *structure){
12049     return vrna_eval_covar_structure(self, structure);
12050   }
vrna_fold_compound_t_eval_loop_pt(vrna_fold_compound_t * self,int i,std::vector<int,std::allocator<int>> pt)12051 SWIGINTERN int vrna_fold_compound_t_eval_loop_pt(vrna_fold_compound_t *self,int i,std::vector< int,std::allocator< int > > pt){
12052     std::vector<short> vc;
12053     transform(pt.begin(), pt.end(), back_inserter(vc), convert_vecint2vecshort);
12054     return vrna_eval_loop_pt(self, i, (const short*)&vc[0]);
12055   }
vrna_fold_compound_t_eval_move(vrna_fold_compound_t * self,char const * structure,int m1,int m2)12056 SWIGINTERN float vrna_fold_compound_t_eval_move(vrna_fold_compound_t *self,char const *structure,int m1,int m2){
12057     return vrna_eval_move(self, structure, m1, m2);
12058   }
vrna_fold_compound_t_eval_move_pt(vrna_fold_compound_t * self,std::vector<int,std::allocator<int>> pt,int m1,int m2)12059 SWIGINTERN int vrna_fold_compound_t_eval_move_pt(vrna_fold_compound_t *self,std::vector< int,std::allocator< int > > pt,int m1,int m2){
12060     std::vector<short> vc;
12061     transform(pt.begin(), pt.end(), back_inserter(vc), convert_vecint2vecshort);
12062     return vrna_eval_move_pt(self, ((short*)&vc[0]), m1, m2);   /*attention here no const short* as argument*/
12063   }
vrna_fold_compound_t_E_ext_loop(vrna_fold_compound_t * self,int i,int j)12064 SWIGINTERN int vrna_fold_compound_t_E_ext_loop(vrna_fold_compound_t *self,int i,int j){
12065     return vrna_E_ext_loop(self, i, j);
12066   }
vrna_fold_compound_t_E_hp_loop(vrna_fold_compound_t * self,int i,int j)12067 SWIGINTERN int vrna_fold_compound_t_E_hp_loop(vrna_fold_compound_t *self,int i,int j){
12068     return vrna_E_hp_loop(self, i, j);
12069   }
vrna_fold_compound_t_E_ext_hp_loop(vrna_fold_compound_t * self,int i,int j)12070 SWIGINTERN int vrna_fold_compound_t_E_ext_hp_loop(vrna_fold_compound_t *self,int i,int j){
12071     return vrna_E_ext_hp_loop(self, i, j);
12072   }
vrna_fold_compound_t_eval_ext_hp_loop(vrna_fold_compound_t * self,int i,int j)12073 SWIGINTERN int vrna_fold_compound_t_eval_ext_hp_loop(vrna_fold_compound_t *self,int i,int j){
12074     return vrna_eval_ext_hp_loop(self, i, j);
12075   }
vrna_fold_compound_t_eval_hp_loop(vrna_fold_compound_t * self,int i,int j)12076 SWIGINTERN int vrna_fold_compound_t_eval_hp_loop(vrna_fold_compound_t *self,int i,int j){
12077     return vrna_eval_hp_loop(self, i, j);
12078   }
vrna_fold_compound_t_exp_E_hp_loop(vrna_fold_compound_t * self,int i,int j)12079 SWIGINTERN double vrna_fold_compound_t_exp_E_hp_loop(vrna_fold_compound_t *self,int i,int j){
12080     return (double)vrna_exp_E_hp_loop(self, i, j);
12081   }
vrna_fold_compound_t_E_int_loop(vrna_fold_compound_t * self,int i,int j)12082 SWIGINTERN int vrna_fold_compound_t_E_int_loop(vrna_fold_compound_t *self,int i,int j){
12083     return vrna_E_int_loop(self, i, j);
12084   }
vrna_fold_compound_t_eval_int_loop(vrna_fold_compound_t * self,int i,int j,int k,int l)12085 SWIGINTERN int vrna_fold_compound_t_eval_int_loop(vrna_fold_compound_t *self,int i,int j,int k,int l){
12086     return vrna_eval_int_loop(self, i, j, k, l);
12087   }
vrna_fold_compound_t_E_ext_int_loop(vrna_fold_compound_t * self,int i,int j,int * ip,int * iq)12088 SWIGINTERN int vrna_fold_compound_t_E_ext_int_loop(vrna_fold_compound_t *self,int i,int j,int *ip,int *iq){
12089     return vrna_E_ext_int_loop(self, i, j, ip, iq);
12090   }
vrna_fold_compound_t_E_stack(vrna_fold_compound_t * self,int i,int j)12091 SWIGINTERN int vrna_fold_compound_t_E_stack(vrna_fold_compound_t *self,int i,int j){
12092     return vrna_E_stack(self, i, j);
12093   }
vrna_fold_compound_t_exp_E_int_loop(vrna_fold_compound_t * self,int i,int j)12094 SWIGINTERN double vrna_fold_compound_t_exp_E_int_loop(vrna_fold_compound_t *self,int i,int j){
12095     return (double)vrna_exp_E_int_loop(self, i, j);
12096   }
vrna_fold_compound_t_exp_E_interior_loop(vrna_fold_compound_t * self,int i,int j,int k,int l)12097 SWIGINTERN double vrna_fold_compound_t_exp_E_interior_loop(vrna_fold_compound_t *self,int i,int j,int k,int l){
12098     return (double)vrna_exp_E_interior_loop(self, i, j, k, l);
12099   }
vrna_fold_compound_t_maxmimum_matching(vrna_fold_compound_t * self)12100 SWIGINTERN int vrna_fold_compound_t_maxmimum_matching(vrna_fold_compound_t *self){
12101     return vrna_maximum_matching(self);
12102   }
vrna_fold_compound_t_mfe(vrna_fold_compound_t * self,float * OUTPUT)12103 SWIGINTERN char *vrna_fold_compound_t_mfe(vrna_fold_compound_t *self,float *OUTPUT){
12104 
12105     char *structure = (char *)vrna_alloc(sizeof(char) * (self->length + 1));
12106     *OUTPUT = vrna_mfe(self, structure);
12107     return structure;
12108   }
vrna_fold_compound_t_mfe_dimer(vrna_fold_compound_t * self,float * OUTPUT)12109 SWIGINTERN char *vrna_fold_compound_t_mfe_dimer(vrna_fold_compound_t *self,float *OUTPUT){
12110 
12111     char *structure = (char*)vrna_alloc(sizeof(char) * (self->length + 1));
12112     *OUTPUT = vrna_mfe_dimer(self, structure);
12113     return structure;
12114   }
vrna_fold_compound_t_backtrack__SWIG_0(vrna_fold_compound_t * self,unsigned int length,float * OUTPUT)12115 SWIGINTERN char *vrna_fold_compound_t_backtrack__SWIG_0(vrna_fold_compound_t *self,unsigned int length,float *OUTPUT){
12116     char *structure = (char *)vrna_alloc(sizeof(char) * (length + 1));
12117     *OUTPUT = vrna_backtrack5(self, length, structure);
12118     return structure;
12119   }
vrna_fold_compound_t_backtrack__SWIG_1(vrna_fold_compound_t * self,float * OUTPUT)12120 SWIGINTERN char *vrna_fold_compound_t_backtrack__SWIG_1(vrna_fold_compound_t *self,float *OUTPUT){
12121     char *structure = (char *)vrna_alloc(sizeof(char) * (self->length + 1));
12122     *OUTPUT = vrna_backtrack5(self, self->length, structure);
12123     return structure;
12124   }
vrna_fold_compound_t_mfe_window(vrna_fold_compound_t * self,FILE * nullfile=NULL)12125 SWIGINTERN float vrna_fold_compound_t_mfe_window(vrna_fold_compound_t *self,FILE *nullfile=NULL){
12126     return vrna_mfe_window(self, nullfile);
12127   }
vrna_fold_compound_t_mfe_window_zscore(vrna_fold_compound_t * self,double min_z,FILE * nullfile=NULL)12128 SWIGINTERN float vrna_fold_compound_t_mfe_window_zscore(vrna_fold_compound_t *self,double min_z,FILE *nullfile=NULL){
12129     return vrna_mfe_window_zscore(self, min_z, nullfile);
12130   }
vrna_fold_compound_t_zsc_filter_init(vrna_fold_compound_t * self,double min_z=-2.0,unsigned int options=VRNA_ZSCORE_SETTINGS_DEFAULT)12131 SWIGINTERN int vrna_fold_compound_t_zsc_filter_init(vrna_fold_compound_t *self,double min_z=-2.0,unsigned int options=VRNA_ZSCORE_SETTINGS_DEFAULT){
12132     return vrna_zsc_filter_init(self, min_z, options);
12133   }
vrna_fold_compound_t_zsc_filter_update(vrna_fold_compound_t * self,double min_z,unsigned int options=VRNA_ZSCORE_OPTIONS_NONE)12134 SWIGINTERN int vrna_fold_compound_t_zsc_filter_update(vrna_fold_compound_t *self,double min_z,unsigned int options=VRNA_ZSCORE_OPTIONS_NONE){
12135     return vrna_zsc_filter_update(self, min_z, options);
12136   }
vrna_fold_compound_t_zsc_filter_free(vrna_fold_compound_t * self)12137 SWIGINTERN void vrna_fold_compound_t_zsc_filter_free(vrna_fold_compound_t *self){
12138     vrna_zsc_filter_free(self);
12139   }
vrna_fold_compound_t_zsc_filter_on(vrna_fold_compound_t * self)12140 SWIGINTERN int vrna_fold_compound_t_zsc_filter_on(vrna_fold_compound_t *self){
12141     return vrna_zsc_filter_on(self);
12142   }
vrna_fold_compound_t_zsc_filter_threshold(vrna_fold_compound_t * self)12143 SWIGINTERN double vrna_fold_compound_t_zsc_filter_threshold(vrna_fold_compound_t *self){
12144     return vrna_zsc_filter_threshold(self);
12145   }
vrna_fold_compound_t_zsc_compute(vrna_fold_compound_t * self,unsigned int i,unsigned int j,int e)12146 SWIGINTERN double vrna_fold_compound_t_zsc_compute(vrna_fold_compound_t *self,unsigned int i,unsigned int j,int e){
12147     return vrna_zsc_compute(self, i, j, e);
12148   }
vrna_fold_compound_t_pf(vrna_fold_compound_t * self,float * OUTPUT)12149 SWIGINTERN char *vrna_fold_compound_t_pf(vrna_fold_compound_t *self,float *OUTPUT){
12150     char *structure = (char *)vrna_alloc(sizeof(char) * (self->length + 1)); /*output is a structure pointer*/
12151     *OUTPUT= vrna_pf(self, structure);
12152     return structure;
12153   }
vrna_fold_compound_t_mean_bp_distance(vrna_fold_compound_t * self)12154 SWIGINTERN double vrna_fold_compound_t_mean_bp_distance(vrna_fold_compound_t *self){
12155     return vrna_mean_bp_distance(self);
12156   }
vrna_fold_compound_t_ensemble_defect__SWIG_0(vrna_fold_compound_t * self,std::string structure,unsigned int options=8U)12157 SWIGINTERN double vrna_fold_compound_t_ensemble_defect__SWIG_0(vrna_fold_compound_t *self,std::string structure,unsigned int options=8U){
12158     double ed;
12159     short int         *pt;
12160 
12161     pt = vrna_ptable_from_string(structure.c_str(), options);
12162 
12163     ed = vrna_ensemble_defect_pt(self, pt);
12164 
12165     free(pt);
12166 
12167     return ed;
12168   }
vrna_fold_compound_t_ensemble_defect__SWIG_1(vrna_fold_compound_t * self,std::vector<int,std::allocator<int>> pair_table)12169 SWIGINTERN double vrna_fold_compound_t_ensemble_defect__SWIG_1(vrna_fold_compound_t *self,std::vector< int,std::allocator< int > > pair_table){
12170     double ed;
12171 
12172     std::vector<short> pt_v_short;
12173     transform(pair_table.begin(), pair_table.end(), back_inserter(pt_v_short), convert_vecint2vecshort);
12174     return vrna_ensemble_defect_pt(self, (short*)&pt_v_short[0]);
12175   }
vrna_fold_compound_t_positional_entropy(vrna_fold_compound_t * self)12176 SWIGINTERN std::vector< double,std::allocator< double > > vrna_fold_compound_t_positional_entropy(vrna_fold_compound_t *self){
12177     unsigned int        n;
12178     double              *pos_ent;
12179     std::vector<double> dv;
12180 
12181     n       = self->length;
12182     pos_ent = vrna_positional_entropy(self);
12183 
12184     if (pos_ent)
12185       dv.assign(pos_ent, pos_ent + (n + 1));
12186 
12187     return dv;
12188   }
vrna_fold_compound_t_pr_structure(vrna_fold_compound_t * self,std::string structure)12189 SWIGINTERN double vrna_fold_compound_t_pr_structure(vrna_fold_compound_t *self,std::string structure){
12190     return vrna_pr_structure(self, structure.c_str());
12191   }
vrna_fold_compound_t_pr_energy(vrna_fold_compound_t * self,double e)12192 SWIGINTERN double vrna_fold_compound_t_pr_energy(vrna_fold_compound_t *self,double e){
12193     return vrna_pr_energy(self, e);
12194   }
vrna_fold_compound_t_pf_dimer(vrna_fold_compound_t * self,float * FA,float * FB,float * FcAB,float * FAB)12195 SWIGINTERN char *vrna_fold_compound_t_pf_dimer(vrna_fold_compound_t *self,float *FA,float *FB,float *FcAB,float *FAB){
12196     char *structure = (char *)vrna_alloc(sizeof(char) * (self->length + 1)); /*output is a structure pointer*/
12197     vrna_dimer_pf_t temp = vrna_pf_dimer(self, structure);
12198     *FAB  = (float)temp.FAB;
12199     *FcAB = (float)temp.FcAB;
12200     *FA   = (float)temp.FA;
12201     *FB   = (float)temp.FB;
12202     return structure;
12203   }
vrna_fold_compound_t_bpp(vrna_fold_compound_t * self)12204 SWIGINTERN std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > vrna_fold_compound_t_bpp(vrna_fold_compound_t *self){
12205     std::vector<std::vector<double> > probabilities;
12206     vrna_fold_compound_t *vc = self;
12207     if(vc->exp_matrices && vc->exp_matrices->probs){
12208       int turn, i, j, *idx, n;
12209       FLT_OR_DBL *probs;
12210 
12211       n     = vc->length;
12212       idx   = vc->iindx;
12213       turn  = vc->exp_params->model_details.min_loop_size;
12214       probs = vc->exp_matrices->probs;
12215 
12216       probabilities.push_back(std::vector<double>(n+1, 0.));
12217       for(i=1; i <= n; i++){
12218         int u = ((i + turn + 1) < (n) ? (i + turn + 1) : (n));
12219         probabilities.push_back(std::vector<double>(u, 0.));
12220         for(j = u; j <= n; j++)
12221           probabilities[i].push_back((double)probs[idx[i] - j]);
12222       }
12223     }
12224     return probabilities;
12225   }
vrna_fold_compound_t_centroid(vrna_fold_compound_t * self,double * OUTPUT)12226 SWIGINTERN char *vrna_fold_compound_t_centroid(vrna_fold_compound_t *self,double *OUTPUT){
12227     return vrna_centroid(self, OUTPUT);
12228   }
vrna_fold_compound_t_MEA__SWIG_0(vrna_fold_compound_t * self,float * OUTPUT)12229 SWIGINTERN char *vrna_fold_compound_t_MEA__SWIG_0(vrna_fold_compound_t *self,float *OUTPUT){
12230     return vrna_MEA(self, 1., OUTPUT);
12231   }
vrna_fold_compound_t_MEA__SWIG_1(vrna_fold_compound_t * self,double gamma,float * OUTPUT)12232 SWIGINTERN char *vrna_fold_compound_t_MEA__SWIG_1(vrna_fold_compound_t *self,double gamma,float *OUTPUT){
12233     return vrna_MEA(self, gamma, OUTPUT);
12234   }
vrna_fold_compound_t_pbacktrack__SWIG_0(vrna_fold_compound_t * self)12235 SWIGINTERN char *vrna_fold_compound_t_pbacktrack__SWIG_0(vrna_fold_compound_t *self){
12236     return vrna_pbacktrack(self);
12237   }
vrna_fold_compound_t_pbacktrack5__SWIG_0(vrna_fold_compound_t * self,unsigned int length)12238 SWIGINTERN char *vrna_fold_compound_t_pbacktrack5__SWIG_0(vrna_fold_compound_t *self,unsigned int length){
12239     return vrna_pbacktrack5(self, length);
12240   }
vrna_fold_compound_t_pbacktrack__SWIG_1(vrna_fold_compound_t * self,unsigned int num_samples,unsigned int options=VRNA_PBACKTRACK_DEFAULT)12241 SWIGINTERN std::vector< std::string,std::allocator< std::string > > vrna_fold_compound_t_pbacktrack__SWIG_1(vrna_fold_compound_t *self,unsigned int num_samples,unsigned int options=VRNA_PBACKTRACK_DEFAULT){
12242     std::vector<std::string> str_vec;
12243     char  **ptr, **output;
12244 
12245     output = vrna_pbacktrack_num(self, num_samples, options);
12246 
12247     if (output) {
12248       for (ptr = output; *ptr != NULL; ptr++) {
12249         str_vec.push_back(std::string(*ptr));
12250         free(*ptr);
12251       }
12252 
12253       free(output);
12254     }
12255 
12256     return str_vec;
12257   }
vrna_fold_compound_t_pbacktrack5__SWIG_1(vrna_fold_compound_t * self,unsigned int num_samples,unsigned int length,unsigned int options=VRNA_PBACKTRACK_DEFAULT)12258 SWIGINTERN std::vector< std::string,std::allocator< std::string > > vrna_fold_compound_t_pbacktrack5__SWIG_1(vrna_fold_compound_t *self,unsigned int num_samples,unsigned int length,unsigned int options=VRNA_PBACKTRACK_DEFAULT){
12259     std::vector<std::string> str_vec;
12260     char  **ptr, **output;
12261 
12262     output = vrna_pbacktrack5_num(self, num_samples, length, options);
12263 
12264     if (output) {
12265       for (ptr = output; *ptr != NULL; ptr++) {
12266         str_vec.push_back(std::string(*ptr));
12267         free(*ptr);
12268       }
12269 
12270       free(output);
12271     }
12272 
12273     return str_vec;
12274   }
vrna_fold_compound_t_pbacktrack__SWIG_2(vrna_fold_compound_t * self,unsigned int num_samples,vrna_pbacktrack_mem_t * nr_memory,unsigned int options=VRNA_PBACKTRACK_DEFAULT)12275 SWIGINTERN std::vector< std::string,std::allocator< std::string > > vrna_fold_compound_t_pbacktrack__SWIG_2(vrna_fold_compound_t *self,unsigned int num_samples,vrna_pbacktrack_mem_t *nr_memory,unsigned int options=VRNA_PBACKTRACK_DEFAULT){
12276     std::vector<std::string> str_vec;
12277 
12278     char **ptr, **output = vrna_pbacktrack_resume(self,
12279                                                   num_samples,
12280                                                   nr_memory,
12281                                                   options);
12282 
12283     if (output) {
12284       for (ptr = output; *ptr != NULL; ptr++) {
12285         str_vec.push_back(std::string(*ptr));
12286         free(*ptr);
12287       }
12288 
12289       free(output);
12290     }
12291 
12292     return str_vec;
12293   }
vrna_fold_compound_t_pbacktrack5__SWIG_2(vrna_fold_compound_t * self,unsigned int num_samples,unsigned int length,vrna_pbacktrack_mem_t * nr_memory,unsigned int options=VRNA_PBACKTRACK_DEFAULT)12294 SWIGINTERN std::vector< std::string,std::allocator< std::string > > vrna_fold_compound_t_pbacktrack5__SWIG_2(vrna_fold_compound_t *self,unsigned int num_samples,unsigned int length,vrna_pbacktrack_mem_t *nr_memory,unsigned int options=VRNA_PBACKTRACK_DEFAULT){
12295     std::vector<std::string> str_vec;
12296 
12297     char **ptr, **output;
12298 
12299     output = vrna_pbacktrack5_resume(self,
12300                                      num_samples,
12301                                      length,
12302                                      nr_memory,
12303                                      options);
12304 
12305     if (output) {
12306       for (ptr = output; *ptr != NULL; ptr++) {
12307         str_vec.push_back(std::string(*ptr));
12308         free(*ptr);
12309       }
12310 
12311       free(output);
12312     }
12313 
12314     return str_vec;
12315   }
vrna_fold_compound_t_subopt(vrna_fold_compound_t * self,int delta,int sorted=1,FILE * nullfile=NULL)12316 SWIGINTERN std::vector< subopt_solution,std::allocator< subopt_solution > > vrna_fold_compound_t_subopt(vrna_fold_compound_t *self,int delta,int sorted=1,FILE *nullfile=NULL){
12317     std::vector<subopt_solution> ret;
12318     SOLUTION *sol = vrna_subopt(self, delta, sorted, nullfile);
12319     if (sol)
12320       for(int i = 0; sol[i].structure != NULL; i++){
12321         subopt_solution a;
12322         a.energy = sol[i].energy;
12323         a.structure = sol[i].structure;
12324         ret.push_back(a);
12325       }
12326 
12327     free(sol);
12328     /* The memory occupied by the individual structures will be free'd automatically
12329        by swig, when the vector is destroyed
12330     */
12331     return ret;
12332   }
vrna_fold_compound_t_subopt_zuker(vrna_fold_compound_t * self)12333 SWIGINTERN std::vector< subopt_solution,std::allocator< subopt_solution > > vrna_fold_compound_t_subopt_zuker(vrna_fold_compound_t *self){
12334     std::vector<subopt_solution> ret;
12335     SOLUTION *sol = vrna_subopt_zuker(self);
12336     if (sol)
12337       for(int i = 0; sol[i].structure != NULL; i++){
12338         subopt_solution a;
12339         a.energy = sol[i].energy;
12340         a.structure = sol[i].structure;
12341         ret.push_back(a);
12342       }
12343 
12344     free(sol);
12345     /* The memory occupied by the individual structures will be free'd automatically
12346        by swig, when the vector is destroyed
12347     */
12348     return ret;
12349   }
vrna_fold_compound_t_sequence_add(vrna_fold_compound_t * self,std::string sequence,unsigned int options=VRNA_SEQUENCE_RNA)12350 SWIGINTERN int vrna_fold_compound_t_sequence_add(vrna_fold_compound_t *self,std::string sequence,unsigned int options=VRNA_SEQUENCE_RNA){
12351     return vrna_sequence_add(self,
12352                              sequence.c_str(),
12353                              options);
12354   }
vrna_fold_compound_t_sequence_remove(vrna_fold_compound_t * self,unsigned int i)12355 SWIGINTERN int vrna_fold_compound_t_sequence_remove(vrna_fold_compound_t *self,unsigned int i){
12356     return vrna_sequence_remove(self,
12357                                 i);
12358   }
vrna_fold_compound_t_sequence_remove_all(vrna_fold_compound_t * self)12359 SWIGINTERN void vrna_fold_compound_t_sequence_remove_all(vrna_fold_compound_t *self){
12360     vrna_sequence_remove_all(self);
12361   }
vrna_fold_compound_t_sequence_prepare(vrna_fold_compound_t * self)12362 SWIGINTERN void vrna_fold_compound_t_sequence_prepare(vrna_fold_compound_t *self){
12363     vrna_sequence_prepare(self);
12364   }
vrna_fold_compound_t_ud_add_motif(vrna_fold_compound_t * self,std::string motif,double motif_en,std::string name="",unsigned int options=VRNA_UNSTRUCTURED_DOMAIN_ALL_LOOPS)12365 SWIGINTERN void vrna_fold_compound_t_ud_add_motif(vrna_fold_compound_t *self,std::string motif,double motif_en,std::string name="",unsigned int options=VRNA_UNSTRUCTURED_DOMAIN_ALL_LOOPS){
12366     if (name == "")
12367       vrna_ud_add_motif(self, motif.c_str(), motif_en, NULL, options);
12368     else
12369       vrna_ud_add_motif(self, motif.c_str(), motif_en, name.c_str(), options);
12370   }
vrna_fold_compound_t_ud_remove(vrna_fold_compound_t * self)12371 SWIGINTERN void vrna_fold_compound_t_ud_remove(vrna_fold_compound_t *self){
12372     vrna_ud_remove(self);
12373   }
vrna_fold_compound_t_commands_apply(vrna_fold_compound_t * self,vrna_command_s * commands,unsigned int options=VRNA_CMD_PARSE_DEFAULTS)12374 SWIGINTERN int vrna_fold_compound_t_commands_apply(vrna_fold_compound_t *self,vrna_command_s *commands,unsigned int options=VRNA_CMD_PARSE_DEFAULTS){
12375     return vrna_commands_apply(self,
12376                                commands,
12377                                options);
12378   }
vrna_fold_compound_t_file_commands_apply(vrna_fold_compound_t * self,std::string filename,unsigned int options=VRNA_CMD_PARSE_DEFAULTS)12379 SWIGINTERN int vrna_fold_compound_t_file_commands_apply(vrna_fold_compound_t *self,std::string filename,unsigned int options=VRNA_CMD_PARSE_DEFAULTS){
12380     return vrna_file_commands_apply(self,
12381                                     filename.c_str(),
12382                                     options);
12383   }
vrna_fold_compound_t_rotational_symmetry_db(vrna_fold_compound_t * self,std::string structure)12384 SWIGINTERN std::vector< unsigned int,std::allocator< unsigned int > > vrna_fold_compound_t_rotational_symmetry_db(vrna_fold_compound_t *self,std::string structure){
12385     std::vector<unsigned int> positions;
12386     unsigned int i, r, *pos;
12387 
12388     r = vrna_rotational_symmetry_db_pos(self, structure.c_str(), &pos);
12389 
12390     if (r)
12391       for (i = 0; i < r; i++)
12392         positions.push_back(pos[i]);
12393 
12394     free(pos);
12395 
12396     return positions;
12397   }
vrna_fold_compound_t_neighbors(vrna_fold_compound_t * self,std::vector<int,std::allocator<int>> pt,unsigned int options=(4|8))12398 SWIGINTERN std::vector< vrna_move_t,std::allocator< vrna_move_t > > vrna_fold_compound_t_neighbors(vrna_fold_compound_t *self,std::vector< int,std::allocator< int > > pt,unsigned int options=(4|8)){
12399     std::vector<vrna_move_t>  v; /* fill vector with returned vrna_move_t */
12400     vrna_move_t *move_t, *ptr;
12401     std::vector<short> vc;
12402 
12403     transform(pt.begin(), pt.end(), back_inserter(vc), convert_vecint2vecshort);
12404 
12405     move_t = ptr = vrna_neighbors(self, (short*)&vc[0], options);
12406 
12407     if (ptr)
12408       while ((ptr->pos_5 != 0) && (ptr->pos_3 != 0)) {
12409         vrna_move_t m;
12410         m = vrna_move_init(ptr->pos_5, ptr->pos_3);
12411         v.push_back(m);
12412         ptr++;
12413       }
12414 
12415     free(move_t);
12416     return v;
12417   }
vrna_fold_compound_t_path(vrna_fold_compound_t * self,std::vector<int,std::allocator<int>> & pt,unsigned int steps,unsigned int options=VRNA_PATH_DEFAULT)12418 SWIGINTERN std::vector< vrna_move_t,std::allocator< vrna_move_t > > vrna_fold_compound_t_path(vrna_fold_compound_t *self,std::vector< int,std::allocator< int > > &pt,unsigned int steps,unsigned int options=VRNA_PATH_DEFAULT){
12419     int i;
12420     std::vector<short>::iterator it;
12421     std::vector<vrna_move_t>  v; /* fill vector with returned vrna_move_t */
12422     vrna_move_t *move_t, *ptr;
12423     std::vector<short> vc;
12424 
12425     transform(pt.begin(), pt.end(), back_inserter(vc), convert_vecint2vecshort);
12426 
12427     move_t = ptr = vrna_path(self, (short*)&vc[0], steps, options);
12428 
12429     if (ptr)
12430       while ((ptr->pos_5 != 0) && (ptr->pos_3 != 0)) {
12431         vrna_move_t m;
12432         m = vrna_move_init(ptr->pos_5, ptr->pos_3);
12433         v.push_back(m);
12434         ptr++;
12435       }
12436 
12437     /* copy over the values from vc to pt */
12438     for (i = 0, it = vc.begin(); it != vc.end(); ++it, i++)
12439       pt[i] = *it;
12440 
12441     free(move_t);
12442     return v;
12443   }
vrna_fold_compound_t_path_gradient(vrna_fold_compound_t * self,std::vector<int,std::allocator<int>> & pt,unsigned int options=VRNA_PATH_DEFAULT)12444 SWIGINTERN std::vector< vrna_move_t,std::allocator< vrna_move_t > > vrna_fold_compound_t_path_gradient(vrna_fold_compound_t *self,std::vector< int,std::allocator< int > > &pt,unsigned int options=VRNA_PATH_DEFAULT){
12445     int i;
12446     std::vector<short>::iterator it;
12447     std::vector<vrna_move_t>  v; /* fill vector with returned vrna_move_t */
12448     vrna_move_t *move_t, *ptr;
12449 
12450     std::vector<short> vc;
12451     transform(pt.begin(), pt.end(), back_inserter(vc), convert_vecint2vecshort);
12452 
12453     move_t = ptr = vrna_path_gradient(self, (short*)&vc[0], options);
12454 
12455     if (ptr)
12456       while ((ptr->pos_5 != 0) && (ptr->pos_3 != 0)) {
12457         vrna_move_t m;
12458         m = vrna_move_init(ptr->pos_5, ptr->pos_3);
12459         v.push_back(m);
12460         ptr++;
12461       }
12462 
12463     /* copy over the values from vc to pt */
12464     for (i = 0, it = vc.begin(); it != vc.end(); ++it, i++)
12465       pt[i] = *it;
12466 
12467     free(move_t);
12468     return v;
12469   }
vrna_fold_compound_t_path_random(vrna_fold_compound_t * self,std::vector<int,std::allocator<int>> & pt,unsigned int steps,unsigned int options=VRNA_PATH_DEFAULT)12470 SWIGINTERN std::vector< vrna_move_t,std::allocator< vrna_move_t > > vrna_fold_compound_t_path_random(vrna_fold_compound_t *self,std::vector< int,std::allocator< int > > &pt,unsigned int steps,unsigned int options=VRNA_PATH_DEFAULT){
12471     int i;
12472     std::vector<short>::iterator it;
12473     std::vector<vrna_move_t>  v; /* fill vector with returned vrna_move_t */
12474     vrna_move_t *move_t, *ptr;
12475 
12476     std::vector<short> vc;
12477     transform(pt.begin(), pt.end(), back_inserter(vc), convert_vecint2vecshort);
12478 
12479     move_t = ptr = vrna_path_random(self, (short*)&vc[0], steps, options);
12480 
12481     if (ptr)
12482       while ((ptr->pos_5 != 0) && (ptr->pos_3 != 0)) {
12483         vrna_move_t m;
12484         m = vrna_move_init(ptr->pos_5, ptr->pos_3);
12485         v.push_back(m);
12486         ptr++;
12487       }
12488 
12489     /* copy over the values from vc to pt */
12490     for (i = 0, it = vc.begin(); it != vc.end(); ++it, i++)
12491       pt[i] = *it;
12492 
12493     free(move_t);
12494     return v;
12495   }
vrna_fold_compound_t_path_findpath_saddle(vrna_fold_compound_t * self,std::string s1,std::string s2,int width=1,int maxE=INT_MAX)12496 SWIGINTERN PyObject *vrna_fold_compound_t_path_findpath_saddle(vrna_fold_compound_t *self,std::string s1,std::string s2,int width=1,int maxE=INT_MAX){
12497     PyObject *E_obj = Py_None;
12498 
12499     int E = vrna_path_findpath_saddle_ub(self, s1.c_str(), s2.c_str(), width, maxE);
12500 
12501     if (E < maxE)
12502       E_obj = Py_BuildValue("i", E);
12503     else
12504       Py_INCREF(Py_None); /* increase reference count for Py_None */
12505 
12506     return E_obj;
12507   }
vrna_fold_compound_t_path_findpath(vrna_fold_compound_t * self,std::string s1,std::string s2,int width=1,int maxE=INT_MAX-1)12508 SWIGINTERN std::vector< vrna_path_t,std::allocator< vrna_path_t > > vrna_fold_compound_t_path_findpath(vrna_fold_compound_t *self,std::string s1,std::string s2,int width=1,int maxE=INT_MAX-1){
12509       std::vector<vrna_path_t>  v; /* fill vector with returned vrna_path_t*/
12510       vrna_path_t *path_t, *ptr;
12511       path_t = ptr = vrna_path_findpath_ub(self, s1.c_str(), s2.c_str(), width, maxE);
12512 
12513       if (ptr) {
12514         while (ptr->s != NULL)
12515         {
12516             vrna_path_t p;
12517 
12518             p.type  = VRNA_PATH_TYPE_DOT_BRACKET;
12519             p.en    = ptr->en;
12520             p.s     = ptr->s;
12521 
12522             v.push_back(p);
12523             ptr++;
12524         }
12525         free(path_t);
12526       }
12527       return v;
12528   }
vrna_fold_compound_t_path_direct(vrna_fold_compound_t * self,std::string s1,std::string s2,int maxE=INT_MAX-1,vrna_path_options_s * options=NULL)12529 SWIGINTERN std::vector< vrna_path_t,std::allocator< vrna_path_t > > vrna_fold_compound_t_path_direct(vrna_fold_compound_t *self,std::string s1,std::string s2,int maxE=INT_MAX-1,vrna_path_options_s *options=NULL){
12530       std::vector<vrna_path_t>  v; /* fill vector with returned vrna_path_t*/
12531       vrna_path_t *path_t, *ptr;
12532       path_t = ptr = vrna_path_direct_ub(self, s1.c_str(), s2.c_str(), maxE, options);
12533 
12534       if (ptr) {
12535         if (ptr->type == VRNA_PATH_TYPE_DOT_BRACKET)
12536           for (; ptr->s != NULL; ptr++) {
12537             vrna_path_t p;
12538             p.type = ptr->type;
12539             p.en   = ptr->en;
12540             p.s    = ptr->s;
12541             p.move = ptr->move;
12542             v.push_back(p);
12543           }
12544         else if (ptr->type == VRNA_PATH_TYPE_MOVES)
12545           for (; ptr->move.pos_5 != 0; ptr++) {
12546             vrna_path_t p;
12547             p.type = ptr->type;
12548             p.en   = ptr->en;
12549             p.s    = ptr->s;
12550             p.move = ptr->move;
12551             v.push_back(p);
12552           }
12553       }
12554 
12555       free(path_t);
12556 
12557       return v;
12558   }
vrna_fold_compound_t_heat_capacity(vrna_fold_compound_t * self,float T_min=0.,float T_max=100.,float T_increment=1.,unsigned int mpoints=2U)12559 SWIGINTERN std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > vrna_fold_compound_t_heat_capacity(vrna_fold_compound_t *self,float T_min=0.,float T_max=100.,float T_increment=1.,unsigned int mpoints=2U){
12560     vrna_heat_capacity_t              *result_c;
12561     std::vector<heat_capacity_result> result;
12562 
12563     result_c = vrna_heat_capacity(self, T_min, T_max, T_increment, mpoints);
12564 
12565     if (result_c) {
12566       for (size_t i = 0; result_c[i].temperature >= T_min; i++) {
12567         heat_capacity_result r;
12568         r.temperature = result_c[i].temperature;
12569         r.heat_capacity = result_c[i].heat_capacity;
12570         result.push_back(r);
12571       }
12572     }
12573 
12574     free(result_c);
12575 
12576     return result;
12577   }
vrna_fold_compound_t_add_auxdata(vrna_fold_compound_t * self,PyObject * data,PyObject * PyFuncOrNone=Py_None)12578 SWIGINTERN PyObject *vrna_fold_compound_t_add_auxdata(vrna_fold_compound_t *self,PyObject *data,PyObject *PyFuncOrNone=Py_None){
12579     fc_add_pydata(self, data, PyFuncOrNone);
12580     Py_RETURN_NONE;
12581   }
vrna_fold_compound_t_add_callback(vrna_fold_compound_t * self,PyObject * PyFunc)12582 SWIGINTERN PyObject *vrna_fold_compound_t_add_callback(vrna_fold_compound_t *self,PyObject *PyFunc){
12583     fc_add_pycallback(self, PyFunc);
12584     Py_RETURN_NONE;
12585   }
vrna_fold_compound_t_sc_add_data(vrna_fold_compound_t * self,PyObject * data,PyObject * callback=Py_None)12586 SWIGINTERN int vrna_fold_compound_t_sc_add_data(vrna_fold_compound_t *self,PyObject *data,PyObject *callback=Py_None){
12587     return sc_add_pydata(self, data, callback);
12588   }
vrna_fold_compound_t_sc_add_f(vrna_fold_compound_t * self,PyObject * callback)12589 SWIGINTERN int vrna_fold_compound_t_sc_add_f(vrna_fold_compound_t *self,PyObject *callback){
12590     return sc_add_f_pycallback(self, callback);
12591   }
vrna_fold_compound_t_sc_add_bt(vrna_fold_compound_t * self,PyObject * PyFunc)12592 SWIGINTERN int vrna_fold_compound_t_sc_add_bt(vrna_fold_compound_t *self,PyObject *PyFunc){
12593     return sc_add_bt_pycallback(self, PyFunc);
12594   }
vrna_fold_compound_t_sc_add_exp_f(vrna_fold_compound_t * self,PyObject * PyFunc)12595 SWIGINTERN int vrna_fold_compound_t_sc_add_exp_f(vrna_fold_compound_t *self,PyObject *PyFunc){
12596     return sc_add_exp_f_pycallback(self, PyFunc);
12597   }
vrna_fold_compound_t_ud_set_data(vrna_fold_compound_t * self,PyObject * data,PyObject * PyFuncOrNone=Py_None)12598 SWIGINTERN PyObject *vrna_fold_compound_t_ud_set_data(vrna_fold_compound_t *self,PyObject *data,PyObject *PyFuncOrNone=Py_None){
12599     ud_set_pydata(self, data, PyFuncOrNone);
12600     Py_RETURN_NONE;
12601   }
vrna_fold_compound_t_ud_set_prod_rule_cb(vrna_fold_compound_t * self,PyObject * prod_cb,PyObject * eval_cb)12602 SWIGINTERN PyObject *vrna_fold_compound_t_ud_set_prod_rule_cb(vrna_fold_compound_t *self,PyObject *prod_cb,PyObject *eval_cb){
12603     if (!PyCallable_Check(prod_cb)) {
12604       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
12605       Py_RETURN_NONE;
12606     } else if (!PyCallable_Check(eval_cb)) {
12607       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
12608       Py_RETURN_NONE;
12609     }
12610     ud_set_prod_cb(self, prod_cb, eval_cb);
12611     Py_RETURN_NONE;
12612   }
vrna_fold_compound_t_ud_set_exp_prod_rule_cb(vrna_fold_compound_t * self,PyObject * prod_cb,PyObject * eval_cb)12613 SWIGINTERN PyObject *vrna_fold_compound_t_ud_set_exp_prod_rule_cb(vrna_fold_compound_t *self,PyObject *prod_cb,PyObject *eval_cb){
12614     if (!PyCallable_Check(prod_cb)) {
12615       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
12616       Py_RETURN_NONE;
12617     } else if (!PyCallable_Check(eval_cb)) {
12618       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
12619       Py_RETURN_NONE;
12620     }
12621     ud_set_exp_prod_cb(self, prod_cb, eval_cb);
12622     Py_RETURN_NONE;
12623   }
vrna_fold_compound_t_ud_set_prob_cb(vrna_fold_compound_t * self,PyObject * setter,PyObject * getter)12624 SWIGINTERN PyObject *vrna_fold_compound_t_ud_set_prob_cb(vrna_fold_compound_t *self,PyObject *setter,PyObject *getter){
12625     if (!PyCallable_Check(setter)) {
12626       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
12627       Py_RETURN_NONE;
12628     } else if (!PyCallable_Check(getter)) {
12629       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
12630       Py_RETURN_NONE;
12631     }
12632     ud_set_prob_cb(self, setter, getter);
12633     Py_RETURN_NONE;
12634   }
vrna_fold_compound_t_subopt_cb(vrna_fold_compound_t * self,int delta,PyObject * PyFunc,PyObject * data=Py_None)12635 SWIGINTERN PyObject *vrna_fold_compound_t_subopt_cb(vrna_fold_compound_t *self,int delta,PyObject *PyFunc,PyObject *data=Py_None){
12636     python_subopt_callback_t *cb = bind_subopt_callback(PyFunc, data);
12637     vrna_subopt_cb(self, delta, &python_wrap_subopt_cb, (void *)cb);
12638     release_subopt_callback(cb);
12639     Py_RETURN_NONE;
12640   }
vrna_fold_compound_t_pbacktrack5__SWIG_3(vrna_fold_compound_t * self,unsigned int num_samples,unsigned int length,PyObject * PyFunc,PyObject * data=Py_None,unsigned int options=0)12641 SWIGINTERN unsigned int vrna_fold_compound_t_pbacktrack5__SWIG_3(vrna_fold_compound_t *self,unsigned int num_samples,unsigned int length,PyObject *PyFunc,PyObject *data=Py_None,unsigned int options=0){
12642     unsigned int i;
12643     python_bs_callback_t *cb = bind_bs_callback(PyFunc, data);
12644 
12645     i = vrna_pbacktrack5_cb(self,
12646                             num_samples,
12647                             length,
12648                             &python_wrap_bs_cb,
12649                             (void *)cb,
12650                             options);
12651 
12652     release_bs_callback(cb);
12653 
12654     return i;
12655   }
vrna_fold_compound_t_pbacktrack__SWIG_3(vrna_fold_compound_t * self,unsigned int num_samples,PyObject * PyFunc,PyObject * data=Py_None,unsigned int options=0)12656 SWIGINTERN unsigned int vrna_fold_compound_t_pbacktrack__SWIG_3(vrna_fold_compound_t *self,unsigned int num_samples,PyObject *PyFunc,PyObject *data=Py_None,unsigned int options=0){
12657     unsigned int i;
12658     python_bs_callback_t *cb = bind_bs_callback(PyFunc, data);
12659 
12660     i = vrna_pbacktrack_cb(self,
12661                            num_samples,
12662                            &python_wrap_bs_cb,
12663                            (void *)cb,
12664                            options);
12665 
12666     release_bs_callback(cb);
12667 
12668     return i;
12669   }
vrna_fold_compound_t_pbacktrack__SWIG_4(vrna_fold_compound_t * self,unsigned int num_samples,PyObject * PyFunc,PyObject * data,vrna_pbacktrack_mem_t * nr_memory,unsigned int options=0)12670 SWIGINTERN unsigned int vrna_fold_compound_t_pbacktrack__SWIG_4(vrna_fold_compound_t *self,unsigned int num_samples,PyObject *PyFunc,PyObject *data,vrna_pbacktrack_mem_t *nr_memory,unsigned int options=0){
12671     unsigned int i;
12672     python_bs_callback_t *cb = bind_bs_callback(PyFunc, data);
12673 
12674     i = vrna_pbacktrack_resume_cb(self,
12675                                   num_samples,
12676                                   &python_wrap_bs_cb,
12677                                   (void *)cb,
12678                                   nr_memory,
12679                                   options);
12680 
12681     release_bs_callback(cb);
12682 
12683     return i;
12684   }
vrna_fold_compound_t_pbacktrack5__SWIG_4(vrna_fold_compound_t * self,unsigned int num_samples,unsigned int length,PyObject * PyFunc,PyObject * data,vrna_pbacktrack_mem_t * nr_memory,unsigned int options=0)12685 SWIGINTERN unsigned int vrna_fold_compound_t_pbacktrack5__SWIG_4(vrna_fold_compound_t *self,unsigned int num_samples,unsigned int length,PyObject *PyFunc,PyObject *data,vrna_pbacktrack_mem_t *nr_memory,unsigned int options=0){
12686     unsigned int i;
12687     python_bs_callback_t *cb = bind_bs_callback(PyFunc, data);
12688 
12689     i = vrna_pbacktrack5_resume_cb(self,
12690                                    num_samples,
12691                                    length,
12692                                    &python_wrap_bs_cb,
12693                                    (void *)cb,
12694                                    nr_memory,
12695                                    options);
12696 
12697     release_bs_callback(cb);
12698 
12699     return i;
12700   }
vrna_fold_compound_t_mfe_window_cb(vrna_fold_compound_t * self,PyObject * PyFunc,PyObject * data=Py_None)12701 SWIGINTERN float vrna_fold_compound_t_mfe_window_cb(vrna_fold_compound_t *self,PyObject *PyFunc,PyObject *data=Py_None){
12702     float en;
12703     python_mfe_window_callback_t *cb = bind_mfe_window_callback(PyFunc, data);
12704     en = vrna_mfe_window_cb(self, &python_wrap_mfe_window_cb, (void *)cb);
12705     release_mfe_window_callback(cb);
12706     return en;
12707   }
vrna_fold_compound_t_mfe_window_score_cb(vrna_fold_compound_t * self,double min_z,PyObject * PyFunc,PyObject * data=Py_None)12708 SWIGINTERN float vrna_fold_compound_t_mfe_window_score_cb(vrna_fold_compound_t *self,double min_z,PyObject *PyFunc,PyObject *data=Py_None){
12709     float en;
12710     python_mfe_window_callback_t *cb = bind_mfe_window_callback(PyFunc, data);
12711     en = vrna_mfe_window_zscore_cb(self, min_z, &python_wrap_mfe_window_zscore_cb, (void *)cb);
12712     release_mfe_window_callback(cb);
12713     return en;
12714   }
vrna_fold_compound_t_probs_window(vrna_fold_compound_t * self,int ulength,unsigned int options,PyObject * PyFunc,PyObject * data=Py_None)12715 SWIGINTERN int vrna_fold_compound_t_probs_window(vrna_fold_compound_t *self,int ulength,unsigned int options,PyObject *PyFunc,PyObject *data=Py_None){
12716     python_pf_window_callback_t *cb = bind_pf_window_callback(PyFunc, data);
12717     int r = vrna_probs_window(self, ulength, options, &python_wrap_pf_window_cb, (void *)cb);
12718     release_pf_window_callback(cb);
12719     return r;
12720   }
vrna_fold_compound_t_heat_capacity_cb(vrna_fold_compound_t * self,float T_min,float T_max,float T_increment,unsigned int mpoints,PyObject * PyFunc,PyObject * data=Py_None)12721 SWIGINTERN PyObject *vrna_fold_compound_t_heat_capacity_cb(vrna_fold_compound_t *self,float T_min,float T_max,float T_increment,unsigned int mpoints,PyObject *PyFunc,PyObject *data=Py_None){
12722     python_heat_capacity_callback_t *cb = bind_heat_capacity_callback(PyFunc, data);
12723     vrna_heat_capacity_cb(self, T_min, T_max, T_increment, mpoints, &python_wrap_heat_capacity_cb, (void *)cb);
12724     release_heat_capacity_callback(cb);
12725     Py_RETURN_NONE;
12726   }
new_vrna_fold_compound_t__SWIG_0(char const * sequence,vrna_md_t * md=NULL,unsigned int options=VRNA_OPTION_DEFAULT)12727 SWIGINTERN vrna_fold_compound_t *new_vrna_fold_compound_t__SWIG_0(char const *sequence,vrna_md_t *md=NULL,unsigned int options=VRNA_OPTION_DEFAULT){
12728     return vrna_fold_compound(sequence, md, options);
12729   }
new_vrna_fold_compound_t__SWIG_1(std::vector<std::string,std::allocator<std::string>> alignment,vrna_md_t * md=NULL,unsigned int options=VRNA_OPTION_DEFAULT)12730 SWIGINTERN vrna_fold_compound_t *new_vrna_fold_compound_t__SWIG_1(std::vector< std::string,std::allocator< std::string > > alignment,vrna_md_t *md=NULL,unsigned int options=VRNA_OPTION_DEFAULT){
12731     std::vector<const char*>  vc;
12732     transform(alignment.begin(), alignment.end(), back_inserter(vc), convert_vecstring2veccharcp);
12733     vc.push_back(NULL); /* mark end of sequences */
12734     return vrna_fold_compound_comparative((const char **)&vc[0], md, options);
12735   }
new_vrna_fold_compound_t__SWIG_2(char const * sequence,char * s1,char * s2,vrna_md_t * md=NULL,unsigned int options=VRNA_OPTION_DEFAULT)12736 SWIGINTERN vrna_fold_compound_t *new_vrna_fold_compound_t__SWIG_2(char const *sequence,char *s1,char *s2,vrna_md_t *md=NULL,unsigned int options=VRNA_OPTION_DEFAULT){
12737     return vrna_fold_compound_TwoD(sequence,s1,s2, md, options);
12738   }
delete_vrna_fold_compound_t(vrna_fold_compound_t * self)12739 SWIGINTERN void delete_vrna_fold_compound_t(vrna_fold_compound_t *self){
12740     vrna_fold_compound_free(self);
12741   }
vrna_fold_compound_t___str__(vrna_fold_compound_t * self)12742 SWIGINTERN std::string vrna_fold_compound_t___str__(vrna_fold_compound_t *self){
12743     std::ostringstream out;
12744 
12745     out << "{ ";
12746 
12747     if (self->type == VRNA_FC_TYPE_SINGLE) {
12748       out << "sequence: \"" << self->sequence << "\"";
12749     } else {
12750       out << "sequences: (" << "\"" << self->sequences[0] << "\"";
12751       for (size_t i = 1; i < self->n_seq; i++)
12752         out << ", \"" << self->sequences[i] << "\"";
12753       out << ")";
12754     }
12755     out << ", length: " << self->length;
12756     out << ", strands: " << self->strands;
12757     out << " }";
12758 
12759     return std::string(out.str());
12760   }
12761 
12762 SWIGINTERNINLINE PyObject *
SWIG_From_unsigned_SS_char(unsigned char value)12763 SWIG_From_unsigned_SS_char  (unsigned char value)
12764 {
12765   return SWIG_From_unsigned_SS_long  (value);
12766 }
12767 
12768 #ifdef __cplusplus
12769 extern "C" {
12770 #endif
_wrap_new_intP(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)12771 SWIGINTERN PyObject *_wrap_new_intP(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12772   PyObject *resultobj = 0;
12773   size_t arg1 ;
12774   size_t val1 ;
12775   int ecode1 = 0 ;
12776   PyObject * obj0 = 0 ;
12777   char * kwnames[] = {
12778     (char *)"nelements",  NULL
12779   };
12780   int *result = 0 ;
12781 
12782   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:new_intP", kwnames, &obj0)) SWIG_fail;
12783   ecode1 = SWIG_AsVal_size_t(obj0, &val1);
12784   if (!SWIG_IsOK(ecode1)) {
12785     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_intP" "', argument " "1"" of type '" "size_t""'");
12786   }
12787   arg1 = static_cast< size_t >(val1);
12788   result = (int *)new_intP(arg1);
12789   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 |  0 );
12790   return resultobj;
12791 fail:
12792   return NULL;
12793 }
12794 
12795 
_wrap_delete_intP(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)12796 SWIGINTERN PyObject *_wrap_delete_intP(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12797   PyObject *resultobj = 0;
12798   int *arg1 = (int *) 0 ;
12799   void *argp1 = 0 ;
12800   int res1 = 0 ;
12801   PyObject * obj0 = 0 ;
12802   char * kwnames[] = {
12803     (char *)"ary",  NULL
12804   };
12805 
12806   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:delete_intP", kwnames, &obj0)) SWIG_fail;
12807   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 |  0 );
12808   if (!SWIG_IsOK(res1)) {
12809     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_intP" "', argument " "1"" of type '" "int *""'");
12810   }
12811   arg1 = reinterpret_cast< int * >(argp1);
12812   delete_intP(arg1);
12813   resultobj = SWIG_Py_Void();
12814   return resultobj;
12815 fail:
12816   return NULL;
12817 }
12818 
12819 
_wrap_intP_getitem(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)12820 SWIGINTERN PyObject *_wrap_intP_getitem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12821   PyObject *resultobj = 0;
12822   int *arg1 = (int *) 0 ;
12823   size_t arg2 ;
12824   void *argp1 = 0 ;
12825   int res1 = 0 ;
12826   size_t val2 ;
12827   int ecode2 = 0 ;
12828   PyObject * obj0 = 0 ;
12829   PyObject * obj1 = 0 ;
12830   char * kwnames[] = {
12831     (char *)"ary",  (char *)"index",  NULL
12832   };
12833   int result;
12834 
12835   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:intP_getitem", kwnames, &obj0, &obj1)) SWIG_fail;
12836   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 |  0 );
12837   if (!SWIG_IsOK(res1)) {
12838     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "intP_getitem" "', argument " "1"" of type '" "int *""'");
12839   }
12840   arg1 = reinterpret_cast< int * >(argp1);
12841   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
12842   if (!SWIG_IsOK(ecode2)) {
12843     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "intP_getitem" "', argument " "2"" of type '" "size_t""'");
12844   }
12845   arg2 = static_cast< size_t >(val2);
12846   result = (int)intP_getitem(arg1,arg2);
12847   resultobj = SWIG_From_int(static_cast< int >(result));
12848   return resultobj;
12849 fail:
12850   return NULL;
12851 }
12852 
12853 
_wrap_intP_setitem(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)12854 SWIGINTERN PyObject *_wrap_intP_setitem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12855   PyObject *resultobj = 0;
12856   int *arg1 = (int *) 0 ;
12857   size_t arg2 ;
12858   int arg3 ;
12859   void *argp1 = 0 ;
12860   int res1 = 0 ;
12861   size_t val2 ;
12862   int ecode2 = 0 ;
12863   int val3 ;
12864   int ecode3 = 0 ;
12865   PyObject * obj0 = 0 ;
12866   PyObject * obj1 = 0 ;
12867   PyObject * obj2 = 0 ;
12868   char * kwnames[] = {
12869     (char *)"ary",  (char *)"index",  (char *)"value",  NULL
12870   };
12871 
12872   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:intP_setitem", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
12873   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 |  0 );
12874   if (!SWIG_IsOK(res1)) {
12875     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "intP_setitem" "', argument " "1"" of type '" "int *""'");
12876   }
12877   arg1 = reinterpret_cast< int * >(argp1);
12878   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
12879   if (!SWIG_IsOK(ecode2)) {
12880     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "intP_setitem" "', argument " "2"" of type '" "size_t""'");
12881   }
12882   arg2 = static_cast< size_t >(val2);
12883   ecode3 = SWIG_AsVal_int(obj2, &val3);
12884   if (!SWIG_IsOK(ecode3)) {
12885     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "intP_setitem" "', argument " "3"" of type '" "int""'");
12886   }
12887   arg3 = static_cast< int >(val3);
12888   intP_setitem(arg1,arg2,arg3);
12889   resultobj = SWIG_Py_Void();
12890   return resultobj;
12891 fail:
12892   return NULL;
12893 }
12894 
12895 
_wrap_new_intArray(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)12896 SWIGINTERN PyObject *_wrap_new_intArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12897   PyObject *resultobj = 0;
12898   size_t arg1 ;
12899   size_t val1 ;
12900   int ecode1 = 0 ;
12901   PyObject * obj0 = 0 ;
12902   char * kwnames[] = {
12903     (char *)"nelements",  NULL
12904   };
12905   intArray *result = 0 ;
12906 
12907   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:new_intArray", kwnames, &obj0)) SWIG_fail;
12908   ecode1 = SWIG_AsVal_size_t(obj0, &val1);
12909   if (!SWIG_IsOK(ecode1)) {
12910     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_intArray" "', argument " "1"" of type '" "size_t""'");
12911   }
12912   arg1 = static_cast< size_t >(val1);
12913   result = (intArray *)new_intArray(arg1);
12914   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_intArray, SWIG_POINTER_NEW |  0 );
12915   return resultobj;
12916 fail:
12917   return NULL;
12918 }
12919 
12920 
_wrap_delete_intArray(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12921 SWIGINTERN PyObject *_wrap_delete_intArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12922   PyObject *resultobj = 0;
12923   intArray *arg1 = (intArray *) 0 ;
12924   void *argp1 = 0 ;
12925   int res1 = 0 ;
12926   PyObject *swig_obj[1] ;
12927 
12928   if (!args) SWIG_fail;
12929   swig_obj[0] = args;
12930   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_intArray, SWIG_POINTER_DISOWN |  0 );
12931   if (!SWIG_IsOK(res1)) {
12932     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_intArray" "', argument " "1"" of type '" "intArray *""'");
12933   }
12934   arg1 = reinterpret_cast< intArray * >(argp1);
12935   delete_intArray(arg1);
12936   resultobj = SWIG_Py_Void();
12937   return resultobj;
12938 fail:
12939   return NULL;
12940 }
12941 
12942 
_wrap_intArray___getitem__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)12943 SWIGINTERN PyObject *_wrap_intArray___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12944   PyObject *resultobj = 0;
12945   intArray *arg1 = (intArray *) 0 ;
12946   size_t arg2 ;
12947   void *argp1 = 0 ;
12948   int res1 = 0 ;
12949   size_t val2 ;
12950   int ecode2 = 0 ;
12951   PyObject * obj0 = 0 ;
12952   PyObject * obj1 = 0 ;
12953   char * kwnames[] = {
12954     (char *)"self",  (char *)"index",  NULL
12955   };
12956   int result;
12957 
12958   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:intArray___getitem__", kwnames, &obj0, &obj1)) SWIG_fail;
12959   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_intArray, 0 |  0 );
12960   if (!SWIG_IsOK(res1)) {
12961     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "intArray___getitem__" "', argument " "1"" of type '" "intArray *""'");
12962   }
12963   arg1 = reinterpret_cast< intArray * >(argp1);
12964   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
12965   if (!SWIG_IsOK(ecode2)) {
12966     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "intArray___getitem__" "', argument " "2"" of type '" "size_t""'");
12967   }
12968   arg2 = static_cast< size_t >(val2);
12969   result = (int)intArray___getitem__(arg1,arg2);
12970   resultobj = SWIG_From_int(static_cast< int >(result));
12971   return resultobj;
12972 fail:
12973   return NULL;
12974 }
12975 
12976 
_wrap_intArray___setitem__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)12977 SWIGINTERN PyObject *_wrap_intArray___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12978   PyObject *resultobj = 0;
12979   intArray *arg1 = (intArray *) 0 ;
12980   size_t arg2 ;
12981   int arg3 ;
12982   void *argp1 = 0 ;
12983   int res1 = 0 ;
12984   size_t val2 ;
12985   int ecode2 = 0 ;
12986   int val3 ;
12987   int ecode3 = 0 ;
12988   PyObject * obj0 = 0 ;
12989   PyObject * obj1 = 0 ;
12990   PyObject * obj2 = 0 ;
12991   char * kwnames[] = {
12992     (char *)"self",  (char *)"index",  (char *)"value",  NULL
12993   };
12994 
12995   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:intArray___setitem__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
12996   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_intArray, 0 |  0 );
12997   if (!SWIG_IsOK(res1)) {
12998     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "intArray___setitem__" "', argument " "1"" of type '" "intArray *""'");
12999   }
13000   arg1 = reinterpret_cast< intArray * >(argp1);
13001   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13002   if (!SWIG_IsOK(ecode2)) {
13003     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "intArray___setitem__" "', argument " "2"" of type '" "size_t""'");
13004   }
13005   arg2 = static_cast< size_t >(val2);
13006   ecode3 = SWIG_AsVal_int(obj2, &val3);
13007   if (!SWIG_IsOK(ecode3)) {
13008     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "intArray___setitem__" "', argument " "3"" of type '" "int""'");
13009   }
13010   arg3 = static_cast< int >(val3);
13011   intArray___setitem__(arg1,arg2,arg3);
13012   resultobj = SWIG_Py_Void();
13013   return resultobj;
13014 fail:
13015   return NULL;
13016 }
13017 
13018 
_wrap_intArray_cast(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13019 SWIGINTERN PyObject *_wrap_intArray_cast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13020   PyObject *resultobj = 0;
13021   intArray *arg1 = (intArray *) 0 ;
13022   void *argp1 = 0 ;
13023   int res1 = 0 ;
13024   PyObject *swig_obj[1] ;
13025   int *result = 0 ;
13026 
13027   if (!args) SWIG_fail;
13028   swig_obj[0] = args;
13029   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_intArray, 0 |  0 );
13030   if (!SWIG_IsOK(res1)) {
13031     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "intArray_cast" "', argument " "1"" of type '" "intArray *""'");
13032   }
13033   arg1 = reinterpret_cast< intArray * >(argp1);
13034   result = (int *)intArray_cast(arg1);
13035   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 |  0 );
13036   return resultobj;
13037 fail:
13038   return NULL;
13039 }
13040 
13041 
_wrap_intArray_frompointer(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13042 SWIGINTERN PyObject *_wrap_intArray_frompointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13043   PyObject *resultobj = 0;
13044   int *arg1 = (int *) 0 ;
13045   void *argp1 = 0 ;
13046   int res1 = 0 ;
13047   PyObject * obj0 = 0 ;
13048   char * kwnames[] = {
13049     (char *)"t",  NULL
13050   };
13051   intArray *result = 0 ;
13052 
13053   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:intArray_frompointer", kwnames, &obj0)) SWIG_fail;
13054   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 |  0 );
13055   if (!SWIG_IsOK(res1)) {
13056     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "intArray_frompointer" "', argument " "1"" of type '" "int *""'");
13057   }
13058   arg1 = reinterpret_cast< int * >(argp1);
13059   result = (intArray *)intArray_frompointer(arg1);
13060   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_intArray, 0 |  0 );
13061   return resultobj;
13062 fail:
13063   return NULL;
13064 }
13065 
13066 
intArray_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13067 SWIGINTERN PyObject *intArray_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13068   PyObject *obj;
13069   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
13070   SWIG_TypeNewClientData(SWIGTYPE_p_intArray, SWIG_NewClientData(obj));
13071   return SWIG_Py_Void();
13072 }
13073 
intArray_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13074 SWIGINTERN PyObject *intArray_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13075   return SWIG_Python_InitShadowInstance(args);
13076 }
13077 
_wrap_new_floatP(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13078 SWIGINTERN PyObject *_wrap_new_floatP(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13079   PyObject *resultobj = 0;
13080   size_t arg1 ;
13081   size_t val1 ;
13082   int ecode1 = 0 ;
13083   PyObject * obj0 = 0 ;
13084   char * kwnames[] = {
13085     (char *)"nelements",  NULL
13086   };
13087   float *result = 0 ;
13088 
13089   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:new_floatP", kwnames, &obj0)) SWIG_fail;
13090   ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13091   if (!SWIG_IsOK(ecode1)) {
13092     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_floatP" "', argument " "1"" of type '" "size_t""'");
13093   }
13094   arg1 = static_cast< size_t >(val1);
13095   result = (float *)new_floatP(arg1);
13096   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 |  0 );
13097   return resultobj;
13098 fail:
13099   return NULL;
13100 }
13101 
13102 
_wrap_delete_floatP(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13103 SWIGINTERN PyObject *_wrap_delete_floatP(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13104   PyObject *resultobj = 0;
13105   float *arg1 = (float *) 0 ;
13106   void *argp1 = 0 ;
13107   int res1 = 0 ;
13108   PyObject * obj0 = 0 ;
13109   char * kwnames[] = {
13110     (char *)"ary",  NULL
13111   };
13112 
13113   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:delete_floatP", kwnames, &obj0)) SWIG_fail;
13114   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 |  0 );
13115   if (!SWIG_IsOK(res1)) {
13116     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_floatP" "', argument " "1"" of type '" "float *""'");
13117   }
13118   arg1 = reinterpret_cast< float * >(argp1);
13119   delete_floatP(arg1);
13120   resultobj = SWIG_Py_Void();
13121   return resultobj;
13122 fail:
13123   return NULL;
13124 }
13125 
13126 
_wrap_floatP_getitem(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13127 SWIGINTERN PyObject *_wrap_floatP_getitem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13128   PyObject *resultobj = 0;
13129   float *arg1 = (float *) 0 ;
13130   size_t arg2 ;
13131   void *argp1 = 0 ;
13132   int res1 = 0 ;
13133   size_t val2 ;
13134   int ecode2 = 0 ;
13135   PyObject * obj0 = 0 ;
13136   PyObject * obj1 = 0 ;
13137   char * kwnames[] = {
13138     (char *)"ary",  (char *)"index",  NULL
13139   };
13140   float result;
13141 
13142   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:floatP_getitem", kwnames, &obj0, &obj1)) SWIG_fail;
13143   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 |  0 );
13144   if (!SWIG_IsOK(res1)) {
13145     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "floatP_getitem" "', argument " "1"" of type '" "float *""'");
13146   }
13147   arg1 = reinterpret_cast< float * >(argp1);
13148   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13149   if (!SWIG_IsOK(ecode2)) {
13150     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "floatP_getitem" "', argument " "2"" of type '" "size_t""'");
13151   }
13152   arg2 = static_cast< size_t >(val2);
13153   result = (float)floatP_getitem(arg1,arg2);
13154   resultobj = SWIG_From_float(static_cast< float >(result));
13155   return resultobj;
13156 fail:
13157   return NULL;
13158 }
13159 
13160 
_wrap_floatP_setitem(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13161 SWIGINTERN PyObject *_wrap_floatP_setitem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13162   PyObject *resultobj = 0;
13163   float *arg1 = (float *) 0 ;
13164   size_t arg2 ;
13165   float arg3 ;
13166   void *argp1 = 0 ;
13167   int res1 = 0 ;
13168   size_t val2 ;
13169   int ecode2 = 0 ;
13170   float val3 ;
13171   int ecode3 = 0 ;
13172   PyObject * obj0 = 0 ;
13173   PyObject * obj1 = 0 ;
13174   PyObject * obj2 = 0 ;
13175   char * kwnames[] = {
13176     (char *)"ary",  (char *)"index",  (char *)"value",  NULL
13177   };
13178 
13179   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:floatP_setitem", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
13180   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 |  0 );
13181   if (!SWIG_IsOK(res1)) {
13182     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "floatP_setitem" "', argument " "1"" of type '" "float *""'");
13183   }
13184   arg1 = reinterpret_cast< float * >(argp1);
13185   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13186   if (!SWIG_IsOK(ecode2)) {
13187     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "floatP_setitem" "', argument " "2"" of type '" "size_t""'");
13188   }
13189   arg2 = static_cast< size_t >(val2);
13190   ecode3 = SWIG_AsVal_float(obj2, &val3);
13191   if (!SWIG_IsOK(ecode3)) {
13192     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "floatP_setitem" "', argument " "3"" of type '" "float""'");
13193   }
13194   arg3 = static_cast< float >(val3);
13195   floatP_setitem(arg1,arg2,arg3);
13196   resultobj = SWIG_Py_Void();
13197   return resultobj;
13198 fail:
13199   return NULL;
13200 }
13201 
13202 
_wrap_new_floatArray(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13203 SWIGINTERN PyObject *_wrap_new_floatArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13204   PyObject *resultobj = 0;
13205   size_t arg1 ;
13206   size_t val1 ;
13207   int ecode1 = 0 ;
13208   PyObject * obj0 = 0 ;
13209   char * kwnames[] = {
13210     (char *)"nelements",  NULL
13211   };
13212   floatArray *result = 0 ;
13213 
13214   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:new_floatArray", kwnames, &obj0)) SWIG_fail;
13215   ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13216   if (!SWIG_IsOK(ecode1)) {
13217     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_floatArray" "', argument " "1"" of type '" "size_t""'");
13218   }
13219   arg1 = static_cast< size_t >(val1);
13220   result = (floatArray *)new_floatArray(arg1);
13221   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_floatArray, SWIG_POINTER_NEW |  0 );
13222   return resultobj;
13223 fail:
13224   return NULL;
13225 }
13226 
13227 
_wrap_delete_floatArray(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13228 SWIGINTERN PyObject *_wrap_delete_floatArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13229   PyObject *resultobj = 0;
13230   floatArray *arg1 = (floatArray *) 0 ;
13231   void *argp1 = 0 ;
13232   int res1 = 0 ;
13233   PyObject *swig_obj[1] ;
13234 
13235   if (!args) SWIG_fail;
13236   swig_obj[0] = args;
13237   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_floatArray, SWIG_POINTER_DISOWN |  0 );
13238   if (!SWIG_IsOK(res1)) {
13239     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_floatArray" "', argument " "1"" of type '" "floatArray *""'");
13240   }
13241   arg1 = reinterpret_cast< floatArray * >(argp1);
13242   delete_floatArray(arg1);
13243   resultobj = SWIG_Py_Void();
13244   return resultobj;
13245 fail:
13246   return NULL;
13247 }
13248 
13249 
_wrap_floatArray___getitem__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13250 SWIGINTERN PyObject *_wrap_floatArray___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13251   PyObject *resultobj = 0;
13252   floatArray *arg1 = (floatArray *) 0 ;
13253   size_t arg2 ;
13254   void *argp1 = 0 ;
13255   int res1 = 0 ;
13256   size_t val2 ;
13257   int ecode2 = 0 ;
13258   PyObject * obj0 = 0 ;
13259   PyObject * obj1 = 0 ;
13260   char * kwnames[] = {
13261     (char *)"self",  (char *)"index",  NULL
13262   };
13263   float result;
13264 
13265   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:floatArray___getitem__", kwnames, &obj0, &obj1)) SWIG_fail;
13266   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_floatArray, 0 |  0 );
13267   if (!SWIG_IsOK(res1)) {
13268     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "floatArray___getitem__" "', argument " "1"" of type '" "floatArray *""'");
13269   }
13270   arg1 = reinterpret_cast< floatArray * >(argp1);
13271   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13272   if (!SWIG_IsOK(ecode2)) {
13273     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "floatArray___getitem__" "', argument " "2"" of type '" "size_t""'");
13274   }
13275   arg2 = static_cast< size_t >(val2);
13276   result = (float)floatArray___getitem__(arg1,arg2);
13277   resultobj = SWIG_From_float(static_cast< float >(result));
13278   return resultobj;
13279 fail:
13280   return NULL;
13281 }
13282 
13283 
_wrap_floatArray___setitem__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13284 SWIGINTERN PyObject *_wrap_floatArray___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13285   PyObject *resultobj = 0;
13286   floatArray *arg1 = (floatArray *) 0 ;
13287   size_t arg2 ;
13288   float arg3 ;
13289   void *argp1 = 0 ;
13290   int res1 = 0 ;
13291   size_t val2 ;
13292   int ecode2 = 0 ;
13293   float val3 ;
13294   int ecode3 = 0 ;
13295   PyObject * obj0 = 0 ;
13296   PyObject * obj1 = 0 ;
13297   PyObject * obj2 = 0 ;
13298   char * kwnames[] = {
13299     (char *)"self",  (char *)"index",  (char *)"value",  NULL
13300   };
13301 
13302   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:floatArray___setitem__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
13303   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_floatArray, 0 |  0 );
13304   if (!SWIG_IsOK(res1)) {
13305     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "floatArray___setitem__" "', argument " "1"" of type '" "floatArray *""'");
13306   }
13307   arg1 = reinterpret_cast< floatArray * >(argp1);
13308   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13309   if (!SWIG_IsOK(ecode2)) {
13310     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "floatArray___setitem__" "', argument " "2"" of type '" "size_t""'");
13311   }
13312   arg2 = static_cast< size_t >(val2);
13313   ecode3 = SWIG_AsVal_float(obj2, &val3);
13314   if (!SWIG_IsOK(ecode3)) {
13315     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "floatArray___setitem__" "', argument " "3"" of type '" "float""'");
13316   }
13317   arg3 = static_cast< float >(val3);
13318   floatArray___setitem__(arg1,arg2,arg3);
13319   resultobj = SWIG_Py_Void();
13320   return resultobj;
13321 fail:
13322   return NULL;
13323 }
13324 
13325 
_wrap_floatArray_cast(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13326 SWIGINTERN PyObject *_wrap_floatArray_cast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13327   PyObject *resultobj = 0;
13328   floatArray *arg1 = (floatArray *) 0 ;
13329   void *argp1 = 0 ;
13330   int res1 = 0 ;
13331   PyObject *swig_obj[1] ;
13332   float *result = 0 ;
13333 
13334   if (!args) SWIG_fail;
13335   swig_obj[0] = args;
13336   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_floatArray, 0 |  0 );
13337   if (!SWIG_IsOK(res1)) {
13338     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "floatArray_cast" "', argument " "1"" of type '" "floatArray *""'");
13339   }
13340   arg1 = reinterpret_cast< floatArray * >(argp1);
13341   result = (float *)floatArray_cast(arg1);
13342   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 |  0 );
13343   return resultobj;
13344 fail:
13345   return NULL;
13346 }
13347 
13348 
_wrap_floatArray_frompointer(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13349 SWIGINTERN PyObject *_wrap_floatArray_frompointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13350   PyObject *resultobj = 0;
13351   float *arg1 = (float *) 0 ;
13352   void *argp1 = 0 ;
13353   int res1 = 0 ;
13354   PyObject * obj0 = 0 ;
13355   char * kwnames[] = {
13356     (char *)"t",  NULL
13357   };
13358   floatArray *result = 0 ;
13359 
13360   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:floatArray_frompointer", kwnames, &obj0)) SWIG_fail;
13361   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 |  0 );
13362   if (!SWIG_IsOK(res1)) {
13363     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "floatArray_frompointer" "', argument " "1"" of type '" "float *""'");
13364   }
13365   arg1 = reinterpret_cast< float * >(argp1);
13366   result = (floatArray *)floatArray_frompointer(arg1);
13367   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_floatArray, 0 |  0 );
13368   return resultobj;
13369 fail:
13370   return NULL;
13371 }
13372 
13373 
floatArray_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13374 SWIGINTERN PyObject *floatArray_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13375   PyObject *obj;
13376   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
13377   SWIG_TypeNewClientData(SWIGTYPE_p_floatArray, SWIG_NewClientData(obj));
13378   return SWIG_Py_Void();
13379 }
13380 
floatArray_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13381 SWIGINTERN PyObject *floatArray_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13382   return SWIG_Python_InitShadowInstance(args);
13383 }
13384 
_wrap_new_doubleP(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13385 SWIGINTERN PyObject *_wrap_new_doubleP(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13386   PyObject *resultobj = 0;
13387   size_t arg1 ;
13388   size_t val1 ;
13389   int ecode1 = 0 ;
13390   PyObject * obj0 = 0 ;
13391   char * kwnames[] = {
13392     (char *)"nelements",  NULL
13393   };
13394   double *result = 0 ;
13395 
13396   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:new_doubleP", kwnames, &obj0)) SWIG_fail;
13397   ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13398   if (!SWIG_IsOK(ecode1)) {
13399     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_doubleP" "', argument " "1"" of type '" "size_t""'");
13400   }
13401   arg1 = static_cast< size_t >(val1);
13402   result = (double *)new_doubleP(arg1);
13403   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 |  0 );
13404   return resultobj;
13405 fail:
13406   return NULL;
13407 }
13408 
13409 
_wrap_delete_doubleP(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13410 SWIGINTERN PyObject *_wrap_delete_doubleP(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13411   PyObject *resultobj = 0;
13412   double *arg1 = (double *) 0 ;
13413   void *argp1 = 0 ;
13414   int res1 = 0 ;
13415   PyObject * obj0 = 0 ;
13416   char * kwnames[] = {
13417     (char *)"ary",  NULL
13418   };
13419 
13420   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:delete_doubleP", kwnames, &obj0)) SWIG_fail;
13421   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_double, 0 |  0 );
13422   if (!SWIG_IsOK(res1)) {
13423     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_doubleP" "', argument " "1"" of type '" "double *""'");
13424   }
13425   arg1 = reinterpret_cast< double * >(argp1);
13426   delete_doubleP(arg1);
13427   resultobj = SWIG_Py_Void();
13428   return resultobj;
13429 fail:
13430   return NULL;
13431 }
13432 
13433 
_wrap_doubleP_getitem(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13434 SWIGINTERN PyObject *_wrap_doubleP_getitem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13435   PyObject *resultobj = 0;
13436   double *arg1 = (double *) 0 ;
13437   size_t arg2 ;
13438   void *argp1 = 0 ;
13439   int res1 = 0 ;
13440   size_t val2 ;
13441   int ecode2 = 0 ;
13442   PyObject * obj0 = 0 ;
13443   PyObject * obj1 = 0 ;
13444   char * kwnames[] = {
13445     (char *)"ary",  (char *)"index",  NULL
13446   };
13447   double result;
13448 
13449   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:doubleP_getitem", kwnames, &obj0, &obj1)) SWIG_fail;
13450   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_double, 0 |  0 );
13451   if (!SWIG_IsOK(res1)) {
13452     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "doubleP_getitem" "', argument " "1"" of type '" "double *""'");
13453   }
13454   arg1 = reinterpret_cast< double * >(argp1);
13455   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13456   if (!SWIG_IsOK(ecode2)) {
13457     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "doubleP_getitem" "', argument " "2"" of type '" "size_t""'");
13458   }
13459   arg2 = static_cast< size_t >(val2);
13460   result = (double)doubleP_getitem(arg1,arg2);
13461   resultobj = SWIG_From_double(static_cast< double >(result));
13462   return resultobj;
13463 fail:
13464   return NULL;
13465 }
13466 
13467 
_wrap_doubleP_setitem(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13468 SWIGINTERN PyObject *_wrap_doubleP_setitem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13469   PyObject *resultobj = 0;
13470   double *arg1 = (double *) 0 ;
13471   size_t arg2 ;
13472   double arg3 ;
13473   void *argp1 = 0 ;
13474   int res1 = 0 ;
13475   size_t val2 ;
13476   int ecode2 = 0 ;
13477   double val3 ;
13478   int ecode3 = 0 ;
13479   PyObject * obj0 = 0 ;
13480   PyObject * obj1 = 0 ;
13481   PyObject * obj2 = 0 ;
13482   char * kwnames[] = {
13483     (char *)"ary",  (char *)"index",  (char *)"value",  NULL
13484   };
13485 
13486   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:doubleP_setitem", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
13487   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_double, 0 |  0 );
13488   if (!SWIG_IsOK(res1)) {
13489     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "doubleP_setitem" "', argument " "1"" of type '" "double *""'");
13490   }
13491   arg1 = reinterpret_cast< double * >(argp1);
13492   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13493   if (!SWIG_IsOK(ecode2)) {
13494     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "doubleP_setitem" "', argument " "2"" of type '" "size_t""'");
13495   }
13496   arg2 = static_cast< size_t >(val2);
13497   ecode3 = SWIG_AsVal_double(obj2, &val3);
13498   if (!SWIG_IsOK(ecode3)) {
13499     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "doubleP_setitem" "', argument " "3"" of type '" "double""'");
13500   }
13501   arg3 = static_cast< double >(val3);
13502   doubleP_setitem(arg1,arg2,arg3);
13503   resultobj = SWIG_Py_Void();
13504   return resultobj;
13505 fail:
13506   return NULL;
13507 }
13508 
13509 
_wrap_new_doubleArray(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13510 SWIGINTERN PyObject *_wrap_new_doubleArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13511   PyObject *resultobj = 0;
13512   size_t arg1 ;
13513   size_t val1 ;
13514   int ecode1 = 0 ;
13515   PyObject * obj0 = 0 ;
13516   char * kwnames[] = {
13517     (char *)"nelements",  NULL
13518   };
13519   doubleArray *result = 0 ;
13520 
13521   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:new_doubleArray", kwnames, &obj0)) SWIG_fail;
13522   ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13523   if (!SWIG_IsOK(ecode1)) {
13524     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_doubleArray" "', argument " "1"" of type '" "size_t""'");
13525   }
13526   arg1 = static_cast< size_t >(val1);
13527   result = (doubleArray *)new_doubleArray(arg1);
13528   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_doubleArray, SWIG_POINTER_NEW |  0 );
13529   return resultobj;
13530 fail:
13531   return NULL;
13532 }
13533 
13534 
_wrap_delete_doubleArray(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13535 SWIGINTERN PyObject *_wrap_delete_doubleArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13536   PyObject *resultobj = 0;
13537   doubleArray *arg1 = (doubleArray *) 0 ;
13538   void *argp1 = 0 ;
13539   int res1 = 0 ;
13540   PyObject *swig_obj[1] ;
13541 
13542   if (!args) SWIG_fail;
13543   swig_obj[0] = args;
13544   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_doubleArray, SWIG_POINTER_DISOWN |  0 );
13545   if (!SWIG_IsOK(res1)) {
13546     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_doubleArray" "', argument " "1"" of type '" "doubleArray *""'");
13547   }
13548   arg1 = reinterpret_cast< doubleArray * >(argp1);
13549   delete_doubleArray(arg1);
13550   resultobj = SWIG_Py_Void();
13551   return resultobj;
13552 fail:
13553   return NULL;
13554 }
13555 
13556 
_wrap_doubleArray___getitem__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13557 SWIGINTERN PyObject *_wrap_doubleArray___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13558   PyObject *resultobj = 0;
13559   doubleArray *arg1 = (doubleArray *) 0 ;
13560   size_t arg2 ;
13561   void *argp1 = 0 ;
13562   int res1 = 0 ;
13563   size_t val2 ;
13564   int ecode2 = 0 ;
13565   PyObject * obj0 = 0 ;
13566   PyObject * obj1 = 0 ;
13567   char * kwnames[] = {
13568     (char *)"self",  (char *)"index",  NULL
13569   };
13570   double result;
13571 
13572   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:doubleArray___getitem__", kwnames, &obj0, &obj1)) SWIG_fail;
13573   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_doubleArray, 0 |  0 );
13574   if (!SWIG_IsOK(res1)) {
13575     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "doubleArray___getitem__" "', argument " "1"" of type '" "doubleArray *""'");
13576   }
13577   arg1 = reinterpret_cast< doubleArray * >(argp1);
13578   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13579   if (!SWIG_IsOK(ecode2)) {
13580     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "doubleArray___getitem__" "', argument " "2"" of type '" "size_t""'");
13581   }
13582   arg2 = static_cast< size_t >(val2);
13583   result = (double)doubleArray___getitem__(arg1,arg2);
13584   resultobj = SWIG_From_double(static_cast< double >(result));
13585   return resultobj;
13586 fail:
13587   return NULL;
13588 }
13589 
13590 
_wrap_doubleArray___setitem__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13591 SWIGINTERN PyObject *_wrap_doubleArray___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13592   PyObject *resultobj = 0;
13593   doubleArray *arg1 = (doubleArray *) 0 ;
13594   size_t arg2 ;
13595   double arg3 ;
13596   void *argp1 = 0 ;
13597   int res1 = 0 ;
13598   size_t val2 ;
13599   int ecode2 = 0 ;
13600   double val3 ;
13601   int ecode3 = 0 ;
13602   PyObject * obj0 = 0 ;
13603   PyObject * obj1 = 0 ;
13604   PyObject * obj2 = 0 ;
13605   char * kwnames[] = {
13606     (char *)"self",  (char *)"index",  (char *)"value",  NULL
13607   };
13608 
13609   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:doubleArray___setitem__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
13610   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_doubleArray, 0 |  0 );
13611   if (!SWIG_IsOK(res1)) {
13612     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "doubleArray___setitem__" "', argument " "1"" of type '" "doubleArray *""'");
13613   }
13614   arg1 = reinterpret_cast< doubleArray * >(argp1);
13615   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13616   if (!SWIG_IsOK(ecode2)) {
13617     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "doubleArray___setitem__" "', argument " "2"" of type '" "size_t""'");
13618   }
13619   arg2 = static_cast< size_t >(val2);
13620   ecode3 = SWIG_AsVal_double(obj2, &val3);
13621   if (!SWIG_IsOK(ecode3)) {
13622     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "doubleArray___setitem__" "', argument " "3"" of type '" "double""'");
13623   }
13624   arg3 = static_cast< double >(val3);
13625   doubleArray___setitem__(arg1,arg2,arg3);
13626   resultobj = SWIG_Py_Void();
13627   return resultobj;
13628 fail:
13629   return NULL;
13630 }
13631 
13632 
_wrap_doubleArray_cast(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13633 SWIGINTERN PyObject *_wrap_doubleArray_cast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13634   PyObject *resultobj = 0;
13635   doubleArray *arg1 = (doubleArray *) 0 ;
13636   void *argp1 = 0 ;
13637   int res1 = 0 ;
13638   PyObject *swig_obj[1] ;
13639   double *result = 0 ;
13640 
13641   if (!args) SWIG_fail;
13642   swig_obj[0] = args;
13643   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_doubleArray, 0 |  0 );
13644   if (!SWIG_IsOK(res1)) {
13645     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "doubleArray_cast" "', argument " "1"" of type '" "doubleArray *""'");
13646   }
13647   arg1 = reinterpret_cast< doubleArray * >(argp1);
13648   result = (double *)doubleArray_cast(arg1);
13649   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 |  0 );
13650   return resultobj;
13651 fail:
13652   return NULL;
13653 }
13654 
13655 
_wrap_doubleArray_frompointer(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13656 SWIGINTERN PyObject *_wrap_doubleArray_frompointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13657   PyObject *resultobj = 0;
13658   double *arg1 = (double *) 0 ;
13659   void *argp1 = 0 ;
13660   int res1 = 0 ;
13661   PyObject * obj0 = 0 ;
13662   char * kwnames[] = {
13663     (char *)"t",  NULL
13664   };
13665   doubleArray *result = 0 ;
13666 
13667   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:doubleArray_frompointer", kwnames, &obj0)) SWIG_fail;
13668   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_double, 0 |  0 );
13669   if (!SWIG_IsOK(res1)) {
13670     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "doubleArray_frompointer" "', argument " "1"" of type '" "double *""'");
13671   }
13672   arg1 = reinterpret_cast< double * >(argp1);
13673   result = (doubleArray *)doubleArray_frompointer(arg1);
13674   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_doubleArray, 0 |  0 );
13675   return resultobj;
13676 fail:
13677   return NULL;
13678 }
13679 
13680 
doubleArray_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13681 SWIGINTERN PyObject *doubleArray_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13682   PyObject *obj;
13683   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
13684   SWIG_TypeNewClientData(SWIGTYPE_p_doubleArray, SWIG_NewClientData(obj));
13685   return SWIG_Py_Void();
13686 }
13687 
doubleArray_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13688 SWIGINTERN PyObject *doubleArray_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13689   return SWIG_Python_InitShadowInstance(args);
13690 }
13691 
_wrap_new_ushortP(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13692 SWIGINTERN PyObject *_wrap_new_ushortP(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13693   PyObject *resultobj = 0;
13694   size_t arg1 ;
13695   size_t val1 ;
13696   int ecode1 = 0 ;
13697   PyObject * obj0 = 0 ;
13698   char * kwnames[] = {
13699     (char *)"nelements",  NULL
13700   };
13701   unsigned short *result = 0 ;
13702 
13703   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:new_ushortP", kwnames, &obj0)) SWIG_fail;
13704   ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13705   if (!SWIG_IsOK(ecode1)) {
13706     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ushortP" "', argument " "1"" of type '" "size_t""'");
13707   }
13708   arg1 = static_cast< size_t >(val1);
13709   result = (unsigned short *)new_ushortP(arg1);
13710   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 |  0 );
13711   return resultobj;
13712 fail:
13713   return NULL;
13714 }
13715 
13716 
_wrap_delete_ushortP(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13717 SWIGINTERN PyObject *_wrap_delete_ushortP(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13718   PyObject *resultobj = 0;
13719   unsigned short *arg1 = (unsigned short *) 0 ;
13720   void *argp1 = 0 ;
13721   int res1 = 0 ;
13722   PyObject * obj0 = 0 ;
13723   char * kwnames[] = {
13724     (char *)"ary",  NULL
13725   };
13726 
13727   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:delete_ushortP", kwnames, &obj0)) SWIG_fail;
13728   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_short, 0 |  0 );
13729   if (!SWIG_IsOK(res1)) {
13730     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ushortP" "', argument " "1"" of type '" "unsigned short *""'");
13731   }
13732   arg1 = reinterpret_cast< unsigned short * >(argp1);
13733   delete_ushortP(arg1);
13734   resultobj = SWIG_Py_Void();
13735   return resultobj;
13736 fail:
13737   return NULL;
13738 }
13739 
13740 
_wrap_ushortP_getitem(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13741 SWIGINTERN PyObject *_wrap_ushortP_getitem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13742   PyObject *resultobj = 0;
13743   unsigned short *arg1 = (unsigned short *) 0 ;
13744   size_t arg2 ;
13745   void *argp1 = 0 ;
13746   int res1 = 0 ;
13747   size_t val2 ;
13748   int ecode2 = 0 ;
13749   PyObject * obj0 = 0 ;
13750   PyObject * obj1 = 0 ;
13751   char * kwnames[] = {
13752     (char *)"ary",  (char *)"index",  NULL
13753   };
13754   unsigned short result;
13755 
13756   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:ushortP_getitem", kwnames, &obj0, &obj1)) SWIG_fail;
13757   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_short, 0 |  0 );
13758   if (!SWIG_IsOK(res1)) {
13759     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ushortP_getitem" "', argument " "1"" of type '" "unsigned short *""'");
13760   }
13761   arg1 = reinterpret_cast< unsigned short * >(argp1);
13762   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13763   if (!SWIG_IsOK(ecode2)) {
13764     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ushortP_getitem" "', argument " "2"" of type '" "size_t""'");
13765   }
13766   arg2 = static_cast< size_t >(val2);
13767   result = (unsigned short)ushortP_getitem(arg1,arg2);
13768   resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result));
13769   return resultobj;
13770 fail:
13771   return NULL;
13772 }
13773 
13774 
_wrap_ushortP_setitem(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13775 SWIGINTERN PyObject *_wrap_ushortP_setitem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13776   PyObject *resultobj = 0;
13777   unsigned short *arg1 = (unsigned short *) 0 ;
13778   size_t arg2 ;
13779   unsigned short arg3 ;
13780   void *argp1 = 0 ;
13781   int res1 = 0 ;
13782   size_t val2 ;
13783   int ecode2 = 0 ;
13784   unsigned short val3 ;
13785   int ecode3 = 0 ;
13786   PyObject * obj0 = 0 ;
13787   PyObject * obj1 = 0 ;
13788   PyObject * obj2 = 0 ;
13789   char * kwnames[] = {
13790     (char *)"ary",  (char *)"index",  (char *)"value",  NULL
13791   };
13792 
13793   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:ushortP_setitem", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
13794   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_short, 0 |  0 );
13795   if (!SWIG_IsOK(res1)) {
13796     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ushortP_setitem" "', argument " "1"" of type '" "unsigned short *""'");
13797   }
13798   arg1 = reinterpret_cast< unsigned short * >(argp1);
13799   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13800   if (!SWIG_IsOK(ecode2)) {
13801     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ushortP_setitem" "', argument " "2"" of type '" "size_t""'");
13802   }
13803   arg2 = static_cast< size_t >(val2);
13804   ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3);
13805   if (!SWIG_IsOK(ecode3)) {
13806     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ushortP_setitem" "', argument " "3"" of type '" "unsigned short""'");
13807   }
13808   arg3 = static_cast< unsigned short >(val3);
13809   ushortP_setitem(arg1,arg2,arg3);
13810   resultobj = SWIG_Py_Void();
13811   return resultobj;
13812 fail:
13813   return NULL;
13814 }
13815 
13816 
_wrap_new_shortP(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13817 SWIGINTERN PyObject *_wrap_new_shortP(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13818   PyObject *resultobj = 0;
13819   size_t arg1 ;
13820   size_t val1 ;
13821   int ecode1 = 0 ;
13822   PyObject * obj0 = 0 ;
13823   char * kwnames[] = {
13824     (char *)"nelements",  NULL
13825   };
13826   short *result = 0 ;
13827 
13828   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:new_shortP", kwnames, &obj0)) SWIG_fail;
13829   ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13830   if (!SWIG_IsOK(ecode1)) {
13831     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_shortP" "', argument " "1"" of type '" "size_t""'");
13832   }
13833   arg1 = static_cast< size_t >(val1);
13834   result = (short *)new_shortP(arg1);
13835   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_short, 0 |  0 );
13836   return resultobj;
13837 fail:
13838   return NULL;
13839 }
13840 
13841 
_wrap_delete_shortP(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13842 SWIGINTERN PyObject *_wrap_delete_shortP(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13843   PyObject *resultobj = 0;
13844   short *arg1 = (short *) 0 ;
13845   void *argp1 = 0 ;
13846   int res1 = 0 ;
13847   PyObject * obj0 = 0 ;
13848   char * kwnames[] = {
13849     (char *)"ary",  NULL
13850   };
13851 
13852   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:delete_shortP", kwnames, &obj0)) SWIG_fail;
13853   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_short, 0 |  0 );
13854   if (!SWIG_IsOK(res1)) {
13855     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_shortP" "', argument " "1"" of type '" "short *""'");
13856   }
13857   arg1 = reinterpret_cast< short * >(argp1);
13858   delete_shortP(arg1);
13859   resultobj = SWIG_Py_Void();
13860   return resultobj;
13861 fail:
13862   return NULL;
13863 }
13864 
13865 
_wrap_shortP_getitem(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13866 SWIGINTERN PyObject *_wrap_shortP_getitem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13867   PyObject *resultobj = 0;
13868   short *arg1 = (short *) 0 ;
13869   size_t arg2 ;
13870   void *argp1 = 0 ;
13871   int res1 = 0 ;
13872   size_t val2 ;
13873   int ecode2 = 0 ;
13874   PyObject * obj0 = 0 ;
13875   PyObject * obj1 = 0 ;
13876   char * kwnames[] = {
13877     (char *)"ary",  (char *)"index",  NULL
13878   };
13879   short result;
13880 
13881   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:shortP_getitem", kwnames, &obj0, &obj1)) SWIG_fail;
13882   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_short, 0 |  0 );
13883   if (!SWIG_IsOK(res1)) {
13884     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shortP_getitem" "', argument " "1"" of type '" "short *""'");
13885   }
13886   arg1 = reinterpret_cast< short * >(argp1);
13887   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13888   if (!SWIG_IsOK(ecode2)) {
13889     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shortP_getitem" "', argument " "2"" of type '" "size_t""'");
13890   }
13891   arg2 = static_cast< size_t >(val2);
13892   result = (short)shortP_getitem(arg1,arg2);
13893   resultobj = SWIG_From_short(static_cast< short >(result));
13894   return resultobj;
13895 fail:
13896   return NULL;
13897 }
13898 
13899 
_wrap_shortP_setitem(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13900 SWIGINTERN PyObject *_wrap_shortP_setitem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13901   PyObject *resultobj = 0;
13902   short *arg1 = (short *) 0 ;
13903   size_t arg2 ;
13904   short arg3 ;
13905   void *argp1 = 0 ;
13906   int res1 = 0 ;
13907   size_t val2 ;
13908   int ecode2 = 0 ;
13909   short val3 ;
13910   int ecode3 = 0 ;
13911   PyObject * obj0 = 0 ;
13912   PyObject * obj1 = 0 ;
13913   PyObject * obj2 = 0 ;
13914   char * kwnames[] = {
13915     (char *)"ary",  (char *)"index",  (char *)"value",  NULL
13916   };
13917 
13918   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:shortP_setitem", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
13919   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_short, 0 |  0 );
13920   if (!SWIG_IsOK(res1)) {
13921     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shortP_setitem" "', argument " "1"" of type '" "short *""'");
13922   }
13923   arg1 = reinterpret_cast< short * >(argp1);
13924   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13925   if (!SWIG_IsOK(ecode2)) {
13926     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shortP_setitem" "', argument " "2"" of type '" "size_t""'");
13927   }
13928   arg2 = static_cast< size_t >(val2);
13929   ecode3 = SWIG_AsVal_short(obj2, &val3);
13930   if (!SWIG_IsOK(ecode3)) {
13931     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "shortP_setitem" "', argument " "3"" of type '" "short""'");
13932   }
13933   arg3 = static_cast< short >(val3);
13934   shortP_setitem(arg1,arg2,arg3);
13935   resultobj = SWIG_Py_Void();
13936   return resultobj;
13937 fail:
13938   return NULL;
13939 }
13940 
13941 
_wrap_cdata(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13942 SWIGINTERN PyObject *_wrap_cdata(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13943   PyObject *resultobj = 0;
13944   void *arg1 = (void *) 0 ;
13945   size_t arg2 = (size_t) 1 ;
13946   int res1 ;
13947   size_t val2 ;
13948   int ecode2 = 0 ;
13949   PyObject * obj0 = 0 ;
13950   PyObject * obj1 = 0 ;
13951   char * kwnames[] = {
13952     (char *)"ptr",  (char *)"nelements",  NULL
13953   };
13954   SWIGCDATA result;
13955 
13956   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:cdata", kwnames, &obj0, &obj1)) SWIG_fail;
13957   res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
13958   if (!SWIG_IsOK(res1)) {
13959     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cdata" "', argument " "1"" of type '" "void *""'");
13960   }
13961   if (obj1) {
13962     ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13963     if (!SWIG_IsOK(ecode2)) {
13964       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cdata" "', argument " "2"" of type '" "size_t""'");
13965     }
13966     arg2 = static_cast< size_t >(val2);
13967   }
13968   result = cdata_void(arg1,arg2);
13969   resultobj = SWIG_FromCharPtrAndSize((&result)->data,(&result)->len);
13970   return resultobj;
13971 fail:
13972   return NULL;
13973 }
13974 
13975 
_wrap_memmove(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)13976 SWIGINTERN PyObject *_wrap_memmove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13977   PyObject *resultobj = 0;
13978   void *arg1 = (void *) 0 ;
13979   void *arg2 = (void *) 0 ;
13980   size_t arg3 ;
13981   int res1 ;
13982   int res2 ;
13983   char *buf2 = 0 ;
13984   size_t size2 = 0 ;
13985   int alloc2 = 0 ;
13986   PyObject * obj0 = 0 ;
13987   PyObject * obj1 = 0 ;
13988   char * kwnames[] = {
13989     (char *)"data",  (char *)"indata",  NULL
13990   };
13991 
13992   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:memmove", kwnames, &obj0, &obj1)) SWIG_fail;
13993   res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
13994   if (!SWIG_IsOK(res1)) {
13995     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memmove" "', argument " "1"" of type '" "void *""'");
13996   }
13997   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, &size2, &alloc2);
13998   if (!SWIG_IsOK(res2)) {
13999     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memmove" "', argument " "2"" of type '" "void const *""'");
14000   }
14001   arg2 = reinterpret_cast< void * >(buf2);
14002   arg3 = static_cast< size_t >(size2);
14003   memmove(arg1,(void const *)arg2,arg3);
14004   resultobj = SWIG_Py_Void();
14005   return resultobj;
14006 fail:
14007   return NULL;
14008 }
14009 
14010 
_wrap_delete_SwigPyIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14011 SWIGINTERN PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14012   PyObject *resultobj = 0;
14013   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
14014   void *argp1 = 0 ;
14015   int res1 = 0 ;
14016   PyObject *swig_obj[1] ;
14017 
14018   if (!args) SWIG_fail;
14019   swig_obj[0] = args;
14020   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN |  0 );
14021   if (!SWIG_IsOK(res1)) {
14022     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwigPyIterator" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
14023   }
14024   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
14025   {
14026     try {
14027       delete arg1;
14028     } catch (const std::exception& e) {
14029       SWIG_exception(SWIG_RuntimeError, e.what());
14030     }
14031   }
14032   resultobj = SWIG_Py_Void();
14033   return resultobj;
14034 fail:
14035   return NULL;
14036 }
14037 
14038 
_wrap_SwigPyIterator_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14039 SWIGINTERN PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14040   PyObject *resultobj = 0;
14041   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
14042   void *argp1 = 0 ;
14043   int res1 = 0 ;
14044   PyObject *swig_obj[1] ;
14045   PyObject *result = 0 ;
14046 
14047   if (!args) SWIG_fail;
14048   swig_obj[0] = args;
14049   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
14050   if (!SWIG_IsOK(res1)) {
14051     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_value" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
14052   }
14053   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
14054   {
14055     try {
14056       try {
14057         result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value();
14058       } catch(swig::stop_iteration &_e) {
14059         {
14060           (void)_e;
14061           SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
14062           SWIG_fail;
14063         }
14064       }
14065     } catch (const std::exception& e) {
14066       SWIG_exception(SWIG_RuntimeError, e.what());
14067     }
14068   }
14069   resultobj = result;
14070   return resultobj;
14071 fail:
14072   return NULL;
14073 }
14074 
14075 
_wrap_SwigPyIterator_incr(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)14076 SWIGINTERN PyObject *_wrap_SwigPyIterator_incr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14077   PyObject *resultobj = 0;
14078   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
14079   size_t arg2 = (size_t) 1 ;
14080   void *argp1 = 0 ;
14081   int res1 = 0 ;
14082   size_t val2 ;
14083   int ecode2 = 0 ;
14084   PyObject * obj0 = 0 ;
14085   PyObject * obj1 = 0 ;
14086   char * kwnames[] = {
14087     (char *)"self",  (char *)"n",  NULL
14088   };
14089   swig::SwigPyIterator *result = 0 ;
14090 
14091   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:SwigPyIterator_incr", kwnames, &obj0, &obj1)) SWIG_fail;
14092   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
14093   if (!SWIG_IsOK(res1)) {
14094     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
14095   }
14096   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
14097   if (obj1) {
14098     ecode2 = SWIG_AsVal_size_t(obj1, &val2);
14099     if (!SWIG_IsOK(ecode2)) {
14100       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_incr" "', argument " "2"" of type '" "size_t""'");
14101     }
14102     arg2 = static_cast< size_t >(val2);
14103   }
14104   {
14105     try {
14106       try {
14107         result = (swig::SwigPyIterator *)(arg1)->incr(arg2);
14108       } catch(swig::stop_iteration &_e) {
14109         {
14110           (void)_e;
14111           SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
14112           SWIG_fail;
14113         }
14114       }
14115     } catch (const std::exception& e) {
14116       SWIG_exception(SWIG_RuntimeError, e.what());
14117     }
14118   }
14119   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
14120   return resultobj;
14121 fail:
14122   return NULL;
14123 }
14124 
14125 
_wrap_SwigPyIterator_decr(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)14126 SWIGINTERN PyObject *_wrap_SwigPyIterator_decr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14127   PyObject *resultobj = 0;
14128   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
14129   size_t arg2 = (size_t) 1 ;
14130   void *argp1 = 0 ;
14131   int res1 = 0 ;
14132   size_t val2 ;
14133   int ecode2 = 0 ;
14134   PyObject * obj0 = 0 ;
14135   PyObject * obj1 = 0 ;
14136   char * kwnames[] = {
14137     (char *)"self",  (char *)"n",  NULL
14138   };
14139   swig::SwigPyIterator *result = 0 ;
14140 
14141   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:SwigPyIterator_decr", kwnames, &obj0, &obj1)) SWIG_fail;
14142   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
14143   if (!SWIG_IsOK(res1)) {
14144     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
14145   }
14146   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
14147   if (obj1) {
14148     ecode2 = SWIG_AsVal_size_t(obj1, &val2);
14149     if (!SWIG_IsOK(ecode2)) {
14150       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_decr" "', argument " "2"" of type '" "size_t""'");
14151     }
14152     arg2 = static_cast< size_t >(val2);
14153   }
14154   {
14155     try {
14156       try {
14157         result = (swig::SwigPyIterator *)(arg1)->decr(arg2);
14158       } catch(swig::stop_iteration &_e) {
14159         {
14160           (void)_e;
14161           SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
14162           SWIG_fail;
14163         }
14164       }
14165     } catch (const std::exception& e) {
14166       SWIG_exception(SWIG_RuntimeError, e.what());
14167     }
14168   }
14169   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
14170   return resultobj;
14171 fail:
14172   return NULL;
14173 }
14174 
14175 
_wrap_SwigPyIterator_distance(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)14176 SWIGINTERN PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14177   PyObject *resultobj = 0;
14178   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
14179   swig::SwigPyIterator *arg2 = 0 ;
14180   void *argp1 = 0 ;
14181   int res1 = 0 ;
14182   void *argp2 = 0 ;
14183   int res2 = 0 ;
14184   PyObject * obj0 = 0 ;
14185   PyObject * obj1 = 0 ;
14186   char * kwnames[] = {
14187     (char *)"self",  (char *)"x",  NULL
14188   };
14189   ptrdiff_t result;
14190 
14191   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:SwigPyIterator_distance", kwnames, &obj0, &obj1)) SWIG_fail;
14192   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
14193   if (!SWIG_IsOK(res1)) {
14194     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_distance" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
14195   }
14196   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
14197   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
14198   if (!SWIG_IsOK(res2)) {
14199     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
14200   }
14201   if (!argp2) {
14202     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
14203   }
14204   arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
14205   {
14206     try {
14207       try {
14208         result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2);
14209       } catch(std::invalid_argument &_e) {
14210         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_fail;
14211       }
14212     } catch (const std::exception& e) {
14213       SWIG_exception(SWIG_RuntimeError, e.what());
14214     }
14215   }
14216   resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
14217   return resultobj;
14218 fail:
14219   return NULL;
14220 }
14221 
14222 
_wrap_SwigPyIterator_equal(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)14223 SWIGINTERN PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14224   PyObject *resultobj = 0;
14225   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
14226   swig::SwigPyIterator *arg2 = 0 ;
14227   void *argp1 = 0 ;
14228   int res1 = 0 ;
14229   void *argp2 = 0 ;
14230   int res2 = 0 ;
14231   PyObject * obj0 = 0 ;
14232   PyObject * obj1 = 0 ;
14233   char * kwnames[] = {
14234     (char *)"self",  (char *)"x",  NULL
14235   };
14236   bool result;
14237 
14238   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:SwigPyIterator_equal", kwnames, &obj0, &obj1)) SWIG_fail;
14239   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
14240   if (!SWIG_IsOK(res1)) {
14241     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_equal" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
14242   }
14243   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
14244   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
14245   if (!SWIG_IsOK(res2)) {
14246     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
14247   }
14248   if (!argp2) {
14249     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
14250   }
14251   arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
14252   {
14253     try {
14254       try {
14255         result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2);
14256       } catch(std::invalid_argument &_e) {
14257         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_fail;
14258       }
14259     } catch (const std::exception& e) {
14260       SWIG_exception(SWIG_RuntimeError, e.what());
14261     }
14262   }
14263   resultobj = SWIG_From_bool(static_cast< bool >(result));
14264   return resultobj;
14265 fail:
14266   return NULL;
14267 }
14268 
14269 
_wrap_SwigPyIterator_copy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14270 SWIGINTERN PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14271   PyObject *resultobj = 0;
14272   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
14273   void *argp1 = 0 ;
14274   int res1 = 0 ;
14275   PyObject *swig_obj[1] ;
14276   swig::SwigPyIterator *result = 0 ;
14277 
14278   if (!args) SWIG_fail;
14279   swig_obj[0] = args;
14280   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
14281   if (!SWIG_IsOK(res1)) {
14282     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_copy" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
14283   }
14284   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
14285   {
14286     try {
14287       result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy();
14288     } catch (const std::exception& e) {
14289       SWIG_exception(SWIG_RuntimeError, e.what());
14290     }
14291   }
14292   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
14293   return resultobj;
14294 fail:
14295   return NULL;
14296 }
14297 
14298 
_wrap_SwigPyIterator_next(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14299 SWIGINTERN PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14300   PyObject *resultobj = 0;
14301   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
14302   void *argp1 = 0 ;
14303   int res1 = 0 ;
14304   PyObject *swig_obj[1] ;
14305   PyObject *result = 0 ;
14306 
14307   if (!args) SWIG_fail;
14308   swig_obj[0] = args;
14309   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
14310   if (!SWIG_IsOK(res1)) {
14311     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_next" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
14312   }
14313   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
14314   {
14315     try {
14316       try {
14317         result = (PyObject *)(arg1)->next();
14318       } catch(swig::stop_iteration &_e) {
14319         {
14320           (void)_e;
14321           SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
14322           SWIG_fail;
14323         }
14324       }
14325     } catch (const std::exception& e) {
14326       SWIG_exception(SWIG_RuntimeError, e.what());
14327     }
14328   }
14329   resultobj = result;
14330   return resultobj;
14331 fail:
14332   return NULL;
14333 }
14334 
14335 
_wrap_SwigPyIterator___next__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14336 SWIGINTERN PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14337   PyObject *resultobj = 0;
14338   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
14339   void *argp1 = 0 ;
14340   int res1 = 0 ;
14341   PyObject *swig_obj[1] ;
14342   PyObject *result = 0 ;
14343 
14344   if (!args) SWIG_fail;
14345   swig_obj[0] = args;
14346   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
14347   if (!SWIG_IsOK(res1)) {
14348     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___next__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
14349   }
14350   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
14351   {
14352     try {
14353       try {
14354         result = (PyObject *)(arg1)->__next__();
14355       } catch(swig::stop_iteration &_e) {
14356         {
14357           (void)_e;
14358           SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
14359           SWIG_fail;
14360         }
14361       }
14362     } catch (const std::exception& e) {
14363       SWIG_exception(SWIG_RuntimeError, e.what());
14364     }
14365   }
14366   resultobj = result;
14367   return resultobj;
14368 fail:
14369   return NULL;
14370 }
14371 
14372 
_wrap_SwigPyIterator_previous(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14373 SWIGINTERN PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14374   PyObject *resultobj = 0;
14375   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
14376   void *argp1 = 0 ;
14377   int res1 = 0 ;
14378   PyObject *swig_obj[1] ;
14379   PyObject *result = 0 ;
14380 
14381   if (!args) SWIG_fail;
14382   swig_obj[0] = args;
14383   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
14384   if (!SWIG_IsOK(res1)) {
14385     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_previous" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
14386   }
14387   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
14388   {
14389     try {
14390       try {
14391         result = (PyObject *)(arg1)->previous();
14392       } catch(swig::stop_iteration &_e) {
14393         {
14394           (void)_e;
14395           SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
14396           SWIG_fail;
14397         }
14398       }
14399     } catch (const std::exception& e) {
14400       SWIG_exception(SWIG_RuntimeError, e.what());
14401     }
14402   }
14403   resultobj = result;
14404   return resultobj;
14405 fail:
14406   return NULL;
14407 }
14408 
14409 
_wrap_SwigPyIterator_advance(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)14410 SWIGINTERN PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14411   PyObject *resultobj = 0;
14412   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
14413   ptrdiff_t arg2 ;
14414   void *argp1 = 0 ;
14415   int res1 = 0 ;
14416   ptrdiff_t val2 ;
14417   int ecode2 = 0 ;
14418   PyObject * obj0 = 0 ;
14419   PyObject * obj1 = 0 ;
14420   char * kwnames[] = {
14421     (char *)"self",  (char *)"n",  NULL
14422   };
14423   swig::SwigPyIterator *result = 0 ;
14424 
14425   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:SwigPyIterator_advance", kwnames, &obj0, &obj1)) SWIG_fail;
14426   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
14427   if (!SWIG_IsOK(res1)) {
14428     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_advance" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
14429   }
14430   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
14431   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
14432   if (!SWIG_IsOK(ecode2)) {
14433     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_advance" "', argument " "2"" of type '" "ptrdiff_t""'");
14434   }
14435   arg2 = static_cast< ptrdiff_t >(val2);
14436   {
14437     try {
14438       try {
14439         result = (swig::SwigPyIterator *)(arg1)->advance(arg2);
14440       } catch(swig::stop_iteration &_e) {
14441         {
14442           (void)_e;
14443           SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
14444           SWIG_fail;
14445         }
14446       }
14447     } catch (const std::exception& e) {
14448       SWIG_exception(SWIG_RuntimeError, e.what());
14449     }
14450   }
14451   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
14452   return resultobj;
14453 fail:
14454   return NULL;
14455 }
14456 
14457 
_wrap_SwigPyIterator___eq__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)14458 SWIGINTERN PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14459   PyObject *resultobj = 0;
14460   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
14461   swig::SwigPyIterator *arg2 = 0 ;
14462   void *argp1 = 0 ;
14463   int res1 = 0 ;
14464   void *argp2 = 0 ;
14465   int res2 = 0 ;
14466   PyObject * obj0 = 0 ;
14467   PyObject * obj1 = 0 ;
14468   char * kwnames[] = {
14469     (char *)"self",  (char *)"x",  NULL
14470   };
14471   bool result;
14472 
14473   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:SwigPyIterator___eq__", kwnames, &obj0, &obj1)) SWIG_fail;
14474   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
14475   if (!SWIG_IsOK(res1)) {
14476     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___eq__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
14477   }
14478   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
14479   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
14480   if (!SWIG_IsOK(res2)) {
14481     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
14482   }
14483   if (!argp2) {
14484     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
14485   }
14486   arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
14487   {
14488     try {
14489       result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2);
14490     } catch (const std::exception& e) {
14491       SWIG_exception(SWIG_RuntimeError, e.what());
14492     }
14493   }
14494   resultobj = SWIG_From_bool(static_cast< bool >(result));
14495   return resultobj;
14496 fail:
14497   PyErr_Clear();
14498   Py_INCREF(Py_NotImplemented);
14499   return Py_NotImplemented;
14500 }
14501 
14502 
_wrap_SwigPyIterator___ne__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)14503 SWIGINTERN PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14504   PyObject *resultobj = 0;
14505   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
14506   swig::SwigPyIterator *arg2 = 0 ;
14507   void *argp1 = 0 ;
14508   int res1 = 0 ;
14509   void *argp2 = 0 ;
14510   int res2 = 0 ;
14511   PyObject * obj0 = 0 ;
14512   PyObject * obj1 = 0 ;
14513   char * kwnames[] = {
14514     (char *)"self",  (char *)"x",  NULL
14515   };
14516   bool result;
14517 
14518   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:SwigPyIterator___ne__", kwnames, &obj0, &obj1)) SWIG_fail;
14519   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
14520   if (!SWIG_IsOK(res1)) {
14521     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___ne__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
14522   }
14523   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
14524   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
14525   if (!SWIG_IsOK(res2)) {
14526     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
14527   }
14528   if (!argp2) {
14529     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
14530   }
14531   arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
14532   {
14533     try {
14534       result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2);
14535     } catch (const std::exception& e) {
14536       SWIG_exception(SWIG_RuntimeError, e.what());
14537     }
14538   }
14539   resultobj = SWIG_From_bool(static_cast< bool >(result));
14540   return resultobj;
14541 fail:
14542   PyErr_Clear();
14543   Py_INCREF(Py_NotImplemented);
14544   return Py_NotImplemented;
14545 }
14546 
14547 
_wrap_SwigPyIterator___iadd__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)14548 SWIGINTERN PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14549   PyObject *resultobj = 0;
14550   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
14551   ptrdiff_t arg2 ;
14552   void *argp1 = 0 ;
14553   int res1 = 0 ;
14554   ptrdiff_t val2 ;
14555   int ecode2 = 0 ;
14556   PyObject * obj0 = 0 ;
14557   PyObject * obj1 = 0 ;
14558   char * kwnames[] = {
14559     (char *)"self",  (char *)"n",  NULL
14560   };
14561   swig::SwigPyIterator *result = 0 ;
14562 
14563   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:SwigPyIterator___iadd__", kwnames, &obj0, &obj1)) SWIG_fail;
14564   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN |  0 );
14565   if (!SWIG_IsOK(res1)) {
14566     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___iadd__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
14567   }
14568   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
14569   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
14570   if (!SWIG_IsOK(ecode2)) {
14571     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___iadd__" "', argument " "2"" of type '" "ptrdiff_t""'");
14572   }
14573   arg2 = static_cast< ptrdiff_t >(val2);
14574   {
14575     try {
14576       try {
14577         result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2);
14578       } catch(swig::stop_iteration &_e) {
14579         {
14580           (void)_e;
14581           SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
14582           SWIG_fail;
14583         }
14584       }
14585     } catch (const std::exception& e) {
14586       SWIG_exception(SWIG_RuntimeError, e.what());
14587     }
14588   }
14589   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
14590   return resultobj;
14591 fail:
14592   return NULL;
14593 }
14594 
14595 
_wrap_SwigPyIterator___isub__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)14596 SWIGINTERN PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14597   PyObject *resultobj = 0;
14598   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
14599   ptrdiff_t arg2 ;
14600   void *argp1 = 0 ;
14601   int res1 = 0 ;
14602   ptrdiff_t val2 ;
14603   int ecode2 = 0 ;
14604   PyObject * obj0 = 0 ;
14605   PyObject * obj1 = 0 ;
14606   char * kwnames[] = {
14607     (char *)"self",  (char *)"n",  NULL
14608   };
14609   swig::SwigPyIterator *result = 0 ;
14610 
14611   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:SwigPyIterator___isub__", kwnames, &obj0, &obj1)) SWIG_fail;
14612   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN |  0 );
14613   if (!SWIG_IsOK(res1)) {
14614     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___isub__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
14615   }
14616   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
14617   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
14618   if (!SWIG_IsOK(ecode2)) {
14619     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___isub__" "', argument " "2"" of type '" "ptrdiff_t""'");
14620   }
14621   arg2 = static_cast< ptrdiff_t >(val2);
14622   {
14623     try {
14624       try {
14625         result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2);
14626       } catch(swig::stop_iteration &_e) {
14627         {
14628           (void)_e;
14629           SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
14630           SWIG_fail;
14631         }
14632       }
14633     } catch (const std::exception& e) {
14634       SWIG_exception(SWIG_RuntimeError, e.what());
14635     }
14636   }
14637   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
14638   return resultobj;
14639 fail:
14640   return NULL;
14641 }
14642 
14643 
_wrap_SwigPyIterator___add__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)14644 SWIGINTERN PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14645   PyObject *resultobj = 0;
14646   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
14647   ptrdiff_t arg2 ;
14648   void *argp1 = 0 ;
14649   int res1 = 0 ;
14650   ptrdiff_t val2 ;
14651   int ecode2 = 0 ;
14652   PyObject * obj0 = 0 ;
14653   PyObject * obj1 = 0 ;
14654   char * kwnames[] = {
14655     (char *)"self",  (char *)"n",  NULL
14656   };
14657   swig::SwigPyIterator *result = 0 ;
14658 
14659   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:SwigPyIterator___add__", kwnames, &obj0, &obj1)) SWIG_fail;
14660   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
14661   if (!SWIG_IsOK(res1)) {
14662     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___add__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
14663   }
14664   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
14665   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
14666   if (!SWIG_IsOK(ecode2)) {
14667     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___add__" "', argument " "2"" of type '" "ptrdiff_t""'");
14668   }
14669   arg2 = static_cast< ptrdiff_t >(val2);
14670   {
14671     try {
14672       try {
14673         result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2);
14674       } catch(swig::stop_iteration &_e) {
14675         {
14676           (void)_e;
14677           SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
14678           SWIG_fail;
14679         }
14680       }
14681     } catch (const std::exception& e) {
14682       SWIG_exception(SWIG_RuntimeError, e.what());
14683     }
14684   }
14685   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
14686   return resultobj;
14687 fail:
14688   PyErr_Clear();
14689   Py_INCREF(Py_NotImplemented);
14690   return Py_NotImplemented;
14691 }
14692 
14693 
_wrap_SwigPyIterator___sub____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)14694 SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
14695   PyObject *resultobj = 0;
14696   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
14697   ptrdiff_t arg2 ;
14698   void *argp1 = 0 ;
14699   int res1 = 0 ;
14700   ptrdiff_t val2 ;
14701   int ecode2 = 0 ;
14702   swig::SwigPyIterator *result = 0 ;
14703 
14704   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
14705   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
14706   if (!SWIG_IsOK(res1)) {
14707     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
14708   }
14709   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
14710   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
14711   if (!SWIG_IsOK(ecode2)) {
14712     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "ptrdiff_t""'");
14713   }
14714   arg2 = static_cast< ptrdiff_t >(val2);
14715   {
14716     try {
14717       try {
14718         result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2);
14719       } catch(swig::stop_iteration &_e) {
14720         {
14721           (void)_e;
14722           SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
14723           SWIG_fail;
14724         }
14725       }
14726     } catch (const std::exception& e) {
14727       SWIG_exception(SWIG_RuntimeError, e.what());
14728     }
14729   }
14730   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
14731   return resultobj;
14732 fail:
14733   PyErr_Clear();
14734   Py_INCREF(Py_NotImplemented);
14735   return Py_NotImplemented;
14736 }
14737 
14738 
_wrap_SwigPyIterator___sub____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)14739 SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
14740   PyObject *resultobj = 0;
14741   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
14742   swig::SwigPyIterator *arg2 = 0 ;
14743   void *argp1 = 0 ;
14744   int res1 = 0 ;
14745   void *argp2 = 0 ;
14746   int res2 = 0 ;
14747   ptrdiff_t result;
14748 
14749   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
14750   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
14751   if (!SWIG_IsOK(res1)) {
14752     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
14753   }
14754   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
14755   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
14756   if (!SWIG_IsOK(res2)) {
14757     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
14758   }
14759   if (!argp2) {
14760     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
14761   }
14762   arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
14763   {
14764     try {
14765       result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2);
14766     } catch (const std::exception& e) {
14767       SWIG_exception(SWIG_RuntimeError, e.what());
14768     }
14769   }
14770   resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
14771   return resultobj;
14772 fail:
14773   PyErr_Clear();
14774   Py_INCREF(Py_NotImplemented);
14775   return Py_NotImplemented;
14776 }
14777 
14778 
_wrap_SwigPyIterator___sub__(PyObject * self,PyObject * args)14779 SWIGINTERN PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) {
14780   Py_ssize_t argc;
14781   PyObject *argv[3] = {
14782     0
14783   };
14784 
14785   if (!(argc = SWIG_Python_UnpackTuple(args, "SwigPyIterator___sub__", 0, 2, argv))) SWIG_fail;
14786   --argc;
14787   if (argc == 2) {
14788     int _v;
14789     void *vptr = 0;
14790     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0);
14791     _v = SWIG_CheckState(res);
14792     if (_v) {
14793       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_NO_NULL | 0);
14794       _v = SWIG_CheckState(res);
14795       if (_v) {
14796         return _wrap_SwigPyIterator___sub____SWIG_1(self, argc, argv);
14797       }
14798     }
14799   }
14800   if (argc == 2) {
14801     int _v;
14802     void *vptr = 0;
14803     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0);
14804     _v = SWIG_CheckState(res);
14805     if (_v) {
14806       {
14807         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
14808         _v = SWIG_CheckState(res);
14809       }
14810       if (_v) {
14811         return _wrap_SwigPyIterator___sub____SWIG_0(self, argc, argv);
14812       }
14813     }
14814   }
14815 
14816 fail:
14817   Py_INCREF(Py_NotImplemented);
14818   return Py_NotImplemented;
14819 }
14820 
14821 
SwigPyIterator_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14822 SWIGINTERN PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14823   PyObject *obj;
14824   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
14825   SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIterator, SWIG_NewClientData(obj));
14826   return SWIG_Py_Void();
14827 }
14828 
_wrap_new_DoublePair__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))14829 SWIGINTERN PyObject *_wrap_new_DoublePair__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
14830   PyObject *resultobj = 0;
14831   std::pair< double,double > *result = 0 ;
14832 
14833   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
14834   {
14835     try {
14836       result = (std::pair< double,double > *)new std::pair< double,double >();
14837     } catch (const std::exception& e) {
14838       SWIG_exception(SWIG_RuntimeError, e.what());
14839     }
14840   }
14841   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__pairT_double_double_t, SWIG_POINTER_NEW |  0 );
14842   return resultobj;
14843 fail:
14844   return NULL;
14845 }
14846 
14847 
_wrap_new_DoublePair__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)14848 SWIGINTERN PyObject *_wrap_new_DoublePair__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
14849   PyObject *resultobj = 0;
14850   double arg1 ;
14851   double arg2 ;
14852   double val1 ;
14853   int ecode1 = 0 ;
14854   double val2 ;
14855   int ecode2 = 0 ;
14856   std::pair< double,double > *result = 0 ;
14857 
14858   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
14859   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
14860   if (!SWIG_IsOK(ecode1)) {
14861     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DoublePair" "', argument " "1"" of type '" "double""'");
14862   }
14863   arg1 = static_cast< double >(val1);
14864   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
14865   if (!SWIG_IsOK(ecode2)) {
14866     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DoublePair" "', argument " "2"" of type '" "double""'");
14867   }
14868   arg2 = static_cast< double >(val2);
14869   {
14870     try {
14871       result = (std::pair< double,double > *)new std::pair< double,double >(arg1,arg2);
14872     } catch (const std::exception& e) {
14873       SWIG_exception(SWIG_RuntimeError, e.what());
14874     }
14875   }
14876   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__pairT_double_double_t, SWIG_POINTER_NEW |  0 );
14877   return resultobj;
14878 fail:
14879   return NULL;
14880 }
14881 
14882 
_wrap_new_DoublePair__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)14883 SWIGINTERN PyObject *_wrap_new_DoublePair__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
14884   PyObject *resultobj = 0;
14885   std::pair< double,double > *arg1 = 0 ;
14886   int res1 = SWIG_OLDOBJ ;
14887   std::pair< double,double > *result = 0 ;
14888 
14889   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14890   {
14891     std::pair< double,double > *ptr = (std::pair< double,double > *)0;
14892     res1 = swig::asptr(swig_obj[0], &ptr);
14893     if (!SWIG_IsOK(res1)) {
14894       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DoublePair" "', argument " "1"" of type '" "std::pair< double,double > const &""'");
14895     }
14896     if (!ptr) {
14897       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DoublePair" "', argument " "1"" of type '" "std::pair< double,double > const &""'");
14898     }
14899     arg1 = ptr;
14900   }
14901   {
14902     try {
14903       result = (std::pair< double,double > *)new std::pair< double,double >((std::pair< double,double > const &)*arg1);
14904     } catch (const std::exception& e) {
14905       SWIG_exception(SWIG_RuntimeError, e.what());
14906     }
14907   }
14908   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__pairT_double_double_t, SWIG_POINTER_NEW |  0 );
14909   if (SWIG_IsNewObj(res1)) delete arg1;
14910   return resultobj;
14911 fail:
14912   if (SWIG_IsNewObj(res1)) delete arg1;
14913   return NULL;
14914 }
14915 
14916 
_wrap_new_DoublePair(PyObject * self,PyObject * args)14917 SWIGINTERN PyObject *_wrap_new_DoublePair(PyObject *self, PyObject *args) {
14918   Py_ssize_t argc;
14919   PyObject *argv[3] = {
14920     0
14921   };
14922 
14923   if (!(argc = SWIG_Python_UnpackTuple(args, "new_DoublePair", 0, 2, argv))) SWIG_fail;
14924   --argc;
14925   if (argc == 0) {
14926     return _wrap_new_DoublePair__SWIG_0(self, argc, argv);
14927   }
14928   if (argc == 1) {
14929     int _v;
14930     int res = swig::asptr(argv[0], (std::pair< double,double >**)(0));
14931     _v = SWIG_CheckState(res);
14932     if (_v) {
14933       return _wrap_new_DoublePair__SWIG_2(self, argc, argv);
14934     }
14935   }
14936   if (argc == 2) {
14937     int _v;
14938     {
14939       int res = SWIG_AsVal_double(argv[0], NULL);
14940       _v = SWIG_CheckState(res);
14941     }
14942     if (_v) {
14943       {
14944         int res = SWIG_AsVal_double(argv[1], NULL);
14945         _v = SWIG_CheckState(res);
14946       }
14947       if (_v) {
14948         return _wrap_new_DoublePair__SWIG_1(self, argc, argv);
14949       }
14950     }
14951   }
14952 
14953 fail:
14954   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_DoublePair'.\n"
14955     "  Possible C/C++ prototypes are:\n"
14956     "    std::pair< double,double >::pair()\n"
14957     "    std::pair< double,double >::pair(double,double)\n"
14958     "    std::pair< double,double >::pair(std::pair< double,double > const &)\n");
14959   return 0;
14960 }
14961 
14962 
_wrap_DoublePair_first_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14963 SWIGINTERN PyObject *_wrap_DoublePair_first_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14964   PyObject *resultobj = 0;
14965   std::pair< double,double > *arg1 = (std::pair< double,double > *) 0 ;
14966   double arg2 ;
14967   void *argp1 = 0 ;
14968   int res1 = 0 ;
14969   double val2 ;
14970   int ecode2 = 0 ;
14971   PyObject *swig_obj[2] ;
14972 
14973   if (!SWIG_Python_UnpackTuple(args, "DoublePair_first_set", 2, 2, swig_obj)) SWIG_fail;
14974   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__pairT_double_double_t, 0 |  0 );
14975   if (!SWIG_IsOK(res1)) {
14976     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoublePair_first_set" "', argument " "1"" of type '" "std::pair< double,double > *""'");
14977   }
14978   arg1 = reinterpret_cast< std::pair< double,double > * >(argp1);
14979   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
14980   if (!SWIG_IsOK(ecode2)) {
14981     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoublePair_first_set" "', argument " "2"" of type '" "double""'");
14982   }
14983   arg2 = static_cast< double >(val2);
14984   if (arg1) (arg1)->first = arg2;
14985   resultobj = SWIG_Py_Void();
14986   return resultobj;
14987 fail:
14988   return NULL;
14989 }
14990 
14991 
_wrap_DoublePair_first_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14992 SWIGINTERN PyObject *_wrap_DoublePair_first_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14993   PyObject *resultobj = 0;
14994   std::pair< double,double > *arg1 = (std::pair< double,double > *) 0 ;
14995   void *argp1 = 0 ;
14996   int res1 = 0 ;
14997   PyObject *swig_obj[1] ;
14998   double result;
14999 
15000   if (!args) SWIG_fail;
15001   swig_obj[0] = args;
15002   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__pairT_double_double_t, 0 |  0 );
15003   if (!SWIG_IsOK(res1)) {
15004     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoublePair_first_get" "', argument " "1"" of type '" "std::pair< double,double > *""'");
15005   }
15006   arg1 = reinterpret_cast< std::pair< double,double > * >(argp1);
15007   result = (double) ((arg1)->first);
15008   resultobj = SWIG_From_double(static_cast< double >(result));
15009   return resultobj;
15010 fail:
15011   return NULL;
15012 }
15013 
15014 
_wrap_DoublePair_second_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15015 SWIGINTERN PyObject *_wrap_DoublePair_second_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15016   PyObject *resultobj = 0;
15017   std::pair< double,double > *arg1 = (std::pair< double,double > *) 0 ;
15018   double arg2 ;
15019   void *argp1 = 0 ;
15020   int res1 = 0 ;
15021   double val2 ;
15022   int ecode2 = 0 ;
15023   PyObject *swig_obj[2] ;
15024 
15025   if (!SWIG_Python_UnpackTuple(args, "DoublePair_second_set", 2, 2, swig_obj)) SWIG_fail;
15026   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__pairT_double_double_t, 0 |  0 );
15027   if (!SWIG_IsOK(res1)) {
15028     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoublePair_second_set" "', argument " "1"" of type '" "std::pair< double,double > *""'");
15029   }
15030   arg1 = reinterpret_cast< std::pair< double,double > * >(argp1);
15031   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
15032   if (!SWIG_IsOK(ecode2)) {
15033     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoublePair_second_set" "', argument " "2"" of type '" "double""'");
15034   }
15035   arg2 = static_cast< double >(val2);
15036   if (arg1) (arg1)->second = arg2;
15037   resultobj = SWIG_Py_Void();
15038   return resultobj;
15039 fail:
15040   return NULL;
15041 }
15042 
15043 
_wrap_DoublePair_second_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15044 SWIGINTERN PyObject *_wrap_DoublePair_second_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15045   PyObject *resultobj = 0;
15046   std::pair< double,double > *arg1 = (std::pair< double,double > *) 0 ;
15047   void *argp1 = 0 ;
15048   int res1 = 0 ;
15049   PyObject *swig_obj[1] ;
15050   double result;
15051 
15052   if (!args) SWIG_fail;
15053   swig_obj[0] = args;
15054   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__pairT_double_double_t, 0 |  0 );
15055   if (!SWIG_IsOK(res1)) {
15056     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoublePair_second_get" "', argument " "1"" of type '" "std::pair< double,double > *""'");
15057   }
15058   arg1 = reinterpret_cast< std::pair< double,double > * >(argp1);
15059   result = (double) ((arg1)->second);
15060   resultobj = SWIG_From_double(static_cast< double >(result));
15061   return resultobj;
15062 fail:
15063   return NULL;
15064 }
15065 
15066 
_wrap_delete_DoublePair(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15067 SWIGINTERN PyObject *_wrap_delete_DoublePair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15068   PyObject *resultobj = 0;
15069   std::pair< double,double > *arg1 = (std::pair< double,double > *) 0 ;
15070   void *argp1 = 0 ;
15071   int res1 = 0 ;
15072   PyObject *swig_obj[1] ;
15073 
15074   if (!args) SWIG_fail;
15075   swig_obj[0] = args;
15076   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__pairT_double_double_t, SWIG_POINTER_DISOWN |  0 );
15077   if (!SWIG_IsOK(res1)) {
15078     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DoublePair" "', argument " "1"" of type '" "std::pair< double,double > *""'");
15079   }
15080   arg1 = reinterpret_cast< std::pair< double,double > * >(argp1);
15081   {
15082     try {
15083       delete arg1;
15084     } catch (const std::exception& e) {
15085       SWIG_exception(SWIG_RuntimeError, e.what());
15086     }
15087   }
15088   resultobj = SWIG_Py_Void();
15089   return resultobj;
15090 fail:
15091   return NULL;
15092 }
15093 
15094 
DoublePair_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15095 SWIGINTERN PyObject *DoublePair_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15096   PyObject *obj;
15097   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
15098   SWIG_TypeNewClientData(SWIGTYPE_p_std__pairT_double_double_t, SWIG_NewClientData(obj));
15099   return SWIG_Py_Void();
15100 }
15101 
DoublePair_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15102 SWIGINTERN PyObject *DoublePair_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15103   return SWIG_Python_InitShadowInstance(args);
15104 }
15105 
_wrap_IntVector_iterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15106 SWIGINTERN PyObject *_wrap_IntVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15107   PyObject *resultobj = 0;
15108   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
15109   PyObject **arg2 = (PyObject **) 0 ;
15110   void *argp1 = 0 ;
15111   int res1 = 0 ;
15112   PyObject *swig_obj[1] ;
15113   swig::SwigPyIterator *result = 0 ;
15114 
15115   arg2 = &swig_obj[0];
15116   if (!args) SWIG_fail;
15117   swig_obj[0] = args;
15118   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
15119   if (!SWIG_IsOK(res1)) {
15120     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_iterator" "', argument " "1"" of type '" "std::vector< int > *""'");
15121   }
15122   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
15123   {
15124     try {
15125       result = (swig::SwigPyIterator *)std_vector_Sl_int_Sg__iterator(arg1,arg2);
15126     } catch (const std::exception& e) {
15127       SWIG_exception(SWIG_RuntimeError, e.what());
15128     }
15129   }
15130   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
15131   return resultobj;
15132 fail:
15133   return NULL;
15134 }
15135 
15136 
_wrap_IntVector___nonzero__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15137 SWIGINTERN PyObject *_wrap_IntVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15138   PyObject *resultobj = 0;
15139   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
15140   void *argp1 = 0 ;
15141   int res1 = 0 ;
15142   PyObject *swig_obj[1] ;
15143   bool result;
15144 
15145   if (!args) SWIG_fail;
15146   swig_obj[0] = args;
15147   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
15148   if (!SWIG_IsOK(res1)) {
15149     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___nonzero__" "', argument " "1"" of type '" "std::vector< int > const *""'");
15150   }
15151   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
15152   {
15153     try {
15154       result = (bool)std_vector_Sl_int_Sg____nonzero__((std::vector< int > const *)arg1);
15155     } catch (const std::exception& e) {
15156       SWIG_exception(SWIG_RuntimeError, e.what());
15157     }
15158   }
15159   resultobj = SWIG_From_bool(static_cast< bool >(result));
15160   return resultobj;
15161 fail:
15162   return NULL;
15163 }
15164 
15165 
_wrap_IntVector___bool__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15166 SWIGINTERN PyObject *_wrap_IntVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15167   PyObject *resultobj = 0;
15168   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
15169   void *argp1 = 0 ;
15170   int res1 = 0 ;
15171   PyObject *swig_obj[1] ;
15172   bool result;
15173 
15174   if (!args) SWIG_fail;
15175   swig_obj[0] = args;
15176   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
15177   if (!SWIG_IsOK(res1)) {
15178     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___bool__" "', argument " "1"" of type '" "std::vector< int > const *""'");
15179   }
15180   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
15181   {
15182     try {
15183       result = (bool)std_vector_Sl_int_Sg____bool__((std::vector< int > const *)arg1);
15184     } catch (const std::exception& e) {
15185       SWIG_exception(SWIG_RuntimeError, e.what());
15186     }
15187   }
15188   resultobj = SWIG_From_bool(static_cast< bool >(result));
15189   return resultobj;
15190 fail:
15191   return NULL;
15192 }
15193 
15194 
_wrap_IntVector___len__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15195 SWIGINTERN PyObject *_wrap_IntVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15196   PyObject *resultobj = 0;
15197   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
15198   void *argp1 = 0 ;
15199   int res1 = 0 ;
15200   PyObject *swig_obj[1] ;
15201   std::vector< int >::size_type result;
15202 
15203   if (!args) SWIG_fail;
15204   swig_obj[0] = args;
15205   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
15206   if (!SWIG_IsOK(res1)) {
15207     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___len__" "', argument " "1"" of type '" "std::vector< int > const *""'");
15208   }
15209   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
15210   {
15211     try {
15212       result = std_vector_Sl_int_Sg____len__((std::vector< int > const *)arg1);
15213     } catch (const std::exception& e) {
15214       SWIG_exception(SWIG_RuntimeError, e.what());
15215     }
15216   }
15217   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
15218   return resultobj;
15219 fail:
15220   return NULL;
15221 }
15222 
15223 
_wrap_IntVector___getslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)15224 SWIGINTERN PyObject *_wrap_IntVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15225   PyObject *resultobj = 0;
15226   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
15227   std::vector< int >::difference_type arg2 ;
15228   std::vector< int >::difference_type arg3 ;
15229   void *argp1 = 0 ;
15230   int res1 = 0 ;
15231   ptrdiff_t val2 ;
15232   int ecode2 = 0 ;
15233   ptrdiff_t val3 ;
15234   int ecode3 = 0 ;
15235   PyObject * obj0 = 0 ;
15236   PyObject * obj1 = 0 ;
15237   PyObject * obj2 = 0 ;
15238   char * kwnames[] = {
15239     (char *)"self",  (char *)"i",  (char *)"j",  NULL
15240   };
15241   std::vector< int,std::allocator< int > > *result = 0 ;
15242 
15243   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:IntVector___getslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
15244   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
15245   if (!SWIG_IsOK(res1)) {
15246     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___getslice__" "', argument " "1"" of type '" "std::vector< int > *""'");
15247   }
15248   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
15249   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
15250   if (!SWIG_IsOK(ecode2)) {
15251     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___getslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
15252   }
15253   arg2 = static_cast< std::vector< int >::difference_type >(val2);
15254   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
15255   if (!SWIG_IsOK(ecode3)) {
15256     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___getslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'");
15257   }
15258   arg3 = static_cast< std::vector< int >::difference_type >(val3);
15259   {
15260     try {
15261       try {
15262         result = (std::vector< int,std::allocator< int > > *)std_vector_Sl_int_Sg____getslice__(arg1,arg2,arg3);
15263       } catch(std::out_of_range &_e) {
15264         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
15265       } catch(std::invalid_argument &_e) {
15266         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
15267       }
15268     } catch (const std::exception& e) {
15269       SWIG_exception(SWIG_RuntimeError, e.what());
15270     }
15271   }
15272   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_OWN |  0 );
15273   return resultobj;
15274 fail:
15275   return NULL;
15276 }
15277 
15278 
_wrap_IntVector___setslice____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)15279 SWIGINTERN PyObject *_wrap_IntVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
15280   PyObject *resultobj = 0;
15281   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
15282   std::vector< int >::difference_type arg2 ;
15283   std::vector< int >::difference_type arg3 ;
15284   void *argp1 = 0 ;
15285   int res1 = 0 ;
15286   ptrdiff_t val2 ;
15287   int ecode2 = 0 ;
15288   ptrdiff_t val3 ;
15289   int ecode3 = 0 ;
15290 
15291   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
15292   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
15293   if (!SWIG_IsOK(res1)) {
15294     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setslice__" "', argument " "1"" of type '" "std::vector< int > *""'");
15295   }
15296   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
15297   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
15298   if (!SWIG_IsOK(ecode2)) {
15299     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___setslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
15300   }
15301   arg2 = static_cast< std::vector< int >::difference_type >(val2);
15302   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
15303   if (!SWIG_IsOK(ecode3)) {
15304     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___setslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'");
15305   }
15306   arg3 = static_cast< std::vector< int >::difference_type >(val3);
15307   {
15308     try {
15309       try {
15310         std_vector_Sl_int_Sg____setslice____SWIG_0(arg1,arg2,arg3);
15311       } catch(std::out_of_range &_e) {
15312         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
15313       } catch(std::invalid_argument &_e) {
15314         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
15315       }
15316     } catch (const std::exception& e) {
15317       SWIG_exception(SWIG_RuntimeError, e.what());
15318     }
15319   }
15320   resultobj = SWIG_Py_Void();
15321   return resultobj;
15322 fail:
15323   return NULL;
15324 }
15325 
15326 
_wrap_IntVector___setslice____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)15327 SWIGINTERN PyObject *_wrap_IntVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
15328   PyObject *resultobj = 0;
15329   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
15330   std::vector< int >::difference_type arg2 ;
15331   std::vector< int >::difference_type arg3 ;
15332   std::vector< int,std::allocator< int > > *arg4 = 0 ;
15333   void *argp1 = 0 ;
15334   int res1 = 0 ;
15335   ptrdiff_t val2 ;
15336   int ecode2 = 0 ;
15337   ptrdiff_t val3 ;
15338   int ecode3 = 0 ;
15339   int res4 = SWIG_OLDOBJ ;
15340 
15341   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
15342   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
15343   if (!SWIG_IsOK(res1)) {
15344     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setslice__" "', argument " "1"" of type '" "std::vector< int > *""'");
15345   }
15346   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
15347   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
15348   if (!SWIG_IsOK(ecode2)) {
15349     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___setslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
15350   }
15351   arg2 = static_cast< std::vector< int >::difference_type >(val2);
15352   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
15353   if (!SWIG_IsOK(ecode3)) {
15354     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___setslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'");
15355   }
15356   arg3 = static_cast< std::vector< int >::difference_type >(val3);
15357   {
15358     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
15359     res4 = swig::asptr(swig_obj[3], &ptr);
15360     if (!SWIG_IsOK(res4)) {
15361       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IntVector___setslice__" "', argument " "4"" of type '" "std::vector< int,std::allocator< int > > const &""'");
15362     }
15363     if (!ptr) {
15364       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVector___setslice__" "', argument " "4"" of type '" "std::vector< int,std::allocator< int > > const &""'");
15365     }
15366     arg4 = ptr;
15367   }
15368   {
15369     try {
15370       try {
15371         std_vector_Sl_int_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< int,std::allocator< int > > const &)*arg4);
15372       } catch(std::out_of_range &_e) {
15373         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
15374       } catch(std::invalid_argument &_e) {
15375         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
15376       }
15377     } catch (const std::exception& e) {
15378       SWIG_exception(SWIG_RuntimeError, e.what());
15379     }
15380   }
15381   resultobj = SWIG_Py_Void();
15382   if (SWIG_IsNewObj(res4)) delete arg4;
15383   return resultobj;
15384 fail:
15385   if (SWIG_IsNewObj(res4)) delete arg4;
15386   return NULL;
15387 }
15388 
15389 
_wrap_IntVector___setslice__(PyObject * self,PyObject * args)15390 SWIGINTERN PyObject *_wrap_IntVector___setslice__(PyObject *self, PyObject *args) {
15391   Py_ssize_t argc;
15392   PyObject *argv[5] = {
15393     0
15394   };
15395 
15396   if (!(argc = SWIG_Python_UnpackTuple(args, "IntVector___setslice__", 0, 4, argv))) SWIG_fail;
15397   --argc;
15398   if (argc == 3) {
15399     int _v;
15400     int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
15401     _v = SWIG_CheckState(res);
15402     if (_v) {
15403       {
15404         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
15405         _v = SWIG_CheckState(res);
15406       }
15407       if (_v) {
15408         {
15409           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
15410           _v = SWIG_CheckState(res);
15411         }
15412         if (_v) {
15413           return _wrap_IntVector___setslice____SWIG_0(self, argc, argv);
15414         }
15415       }
15416     }
15417   }
15418   if (argc == 4) {
15419     int _v;
15420     int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
15421     _v = SWIG_CheckState(res);
15422     if (_v) {
15423       {
15424         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
15425         _v = SWIG_CheckState(res);
15426       }
15427       if (_v) {
15428         {
15429           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
15430           _v = SWIG_CheckState(res);
15431         }
15432         if (_v) {
15433           int res = swig::asptr(argv[3], (std::vector< int,std::allocator< int > >**)(0));
15434           _v = SWIG_CheckState(res);
15435           if (_v) {
15436             return _wrap_IntVector___setslice____SWIG_1(self, argc, argv);
15437           }
15438         }
15439       }
15440     }
15441   }
15442 
15443 fail:
15444   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntVector___setslice__'.\n"
15445     "  Possible C/C++ prototypes are:\n"
15446     "    std::vector< int >::__setslice__(std::vector< int >::difference_type,std::vector< int >::difference_type)\n"
15447     "    std::vector< int >::__setslice__(std::vector< int >::difference_type,std::vector< int >::difference_type,std::vector< int,std::allocator< int > > const &)\n");
15448   return 0;
15449 }
15450 
15451 
_wrap_IntVector___delslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)15452 SWIGINTERN PyObject *_wrap_IntVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15453   PyObject *resultobj = 0;
15454   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
15455   std::vector< int >::difference_type arg2 ;
15456   std::vector< int >::difference_type arg3 ;
15457   void *argp1 = 0 ;
15458   int res1 = 0 ;
15459   ptrdiff_t val2 ;
15460   int ecode2 = 0 ;
15461   ptrdiff_t val3 ;
15462   int ecode3 = 0 ;
15463   PyObject * obj0 = 0 ;
15464   PyObject * obj1 = 0 ;
15465   PyObject * obj2 = 0 ;
15466   char * kwnames[] = {
15467     (char *)"self",  (char *)"i",  (char *)"j",  NULL
15468   };
15469 
15470   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:IntVector___delslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
15471   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
15472   if (!SWIG_IsOK(res1)) {
15473     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___delslice__" "', argument " "1"" of type '" "std::vector< int > *""'");
15474   }
15475   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
15476   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
15477   if (!SWIG_IsOK(ecode2)) {
15478     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___delslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
15479   }
15480   arg2 = static_cast< std::vector< int >::difference_type >(val2);
15481   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
15482   if (!SWIG_IsOK(ecode3)) {
15483     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___delslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'");
15484   }
15485   arg3 = static_cast< std::vector< int >::difference_type >(val3);
15486   {
15487     try {
15488       try {
15489         std_vector_Sl_int_Sg____delslice__(arg1,arg2,arg3);
15490       } catch(std::out_of_range &_e) {
15491         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
15492       } catch(std::invalid_argument &_e) {
15493         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
15494       }
15495     } catch (const std::exception& e) {
15496       SWIG_exception(SWIG_RuntimeError, e.what());
15497     }
15498   }
15499   resultobj = SWIG_Py_Void();
15500   return resultobj;
15501 fail:
15502   return NULL;
15503 }
15504 
15505 
_wrap_IntVector___delitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)15506 SWIGINTERN PyObject *_wrap_IntVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
15507   PyObject *resultobj = 0;
15508   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
15509   std::vector< int >::difference_type arg2 ;
15510   void *argp1 = 0 ;
15511   int res1 = 0 ;
15512   ptrdiff_t val2 ;
15513   int ecode2 = 0 ;
15514 
15515   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
15516   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
15517   if (!SWIG_IsOK(res1)) {
15518     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___delitem__" "', argument " "1"" of type '" "std::vector< int > *""'");
15519   }
15520   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
15521   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
15522   if (!SWIG_IsOK(ecode2)) {
15523     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___delitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
15524   }
15525   arg2 = static_cast< std::vector< int >::difference_type >(val2);
15526   {
15527     try {
15528       try {
15529         std_vector_Sl_int_Sg____delitem____SWIG_0(arg1,arg2);
15530       } catch(std::out_of_range &_e) {
15531         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
15532       } catch(std::invalid_argument &_e) {
15533         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
15534       }
15535     } catch (const std::exception& e) {
15536       SWIG_exception(SWIG_RuntimeError, e.what());
15537     }
15538   }
15539   resultobj = SWIG_Py_Void();
15540   return resultobj;
15541 fail:
15542   return NULL;
15543 }
15544 
15545 
_wrap_IntVector___getitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)15546 SWIGINTERN PyObject *_wrap_IntVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
15547   PyObject *resultobj = 0;
15548   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
15549   PySliceObject *arg2 = (PySliceObject *) 0 ;
15550   void *argp1 = 0 ;
15551   int res1 = 0 ;
15552   std::vector< int,std::allocator< int > > *result = 0 ;
15553 
15554   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
15555   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
15556   if (!SWIG_IsOK(res1)) {
15557     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___getitem__" "', argument " "1"" of type '" "std::vector< int > *""'");
15558   }
15559   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
15560   {
15561     if (!PySlice_Check(swig_obj[1])) {
15562       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
15563     }
15564     arg2 = (PySliceObject *) swig_obj[1];
15565   }
15566   {
15567     try {
15568       try {
15569         result = (std::vector< int,std::allocator< int > > *)std_vector_Sl_int_Sg____getitem____SWIG_0(arg1,arg2);
15570       } catch(std::out_of_range &_e) {
15571         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
15572       } catch(std::invalid_argument &_e) {
15573         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
15574       }
15575     } catch (const std::exception& e) {
15576       SWIG_exception(SWIG_RuntimeError, e.what());
15577     }
15578   }
15579   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_OWN |  0 );
15580   return resultobj;
15581 fail:
15582   return NULL;
15583 }
15584 
15585 
_wrap_IntVector___setitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)15586 SWIGINTERN PyObject *_wrap_IntVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
15587   PyObject *resultobj = 0;
15588   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
15589   PySliceObject *arg2 = (PySliceObject *) 0 ;
15590   std::vector< int,std::allocator< int > > *arg3 = 0 ;
15591   void *argp1 = 0 ;
15592   int res1 = 0 ;
15593   int res3 = SWIG_OLDOBJ ;
15594 
15595   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
15596   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
15597   if (!SWIG_IsOK(res1)) {
15598     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setitem__" "', argument " "1"" of type '" "std::vector< int > *""'");
15599   }
15600   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
15601   {
15602     if (!PySlice_Check(swig_obj[1])) {
15603       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
15604     }
15605     arg2 = (PySliceObject *) swig_obj[1];
15606   }
15607   {
15608     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
15609     res3 = swig::asptr(swig_obj[2], &ptr);
15610     if (!SWIG_IsOK(res3)) {
15611       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntVector___setitem__" "', argument " "3"" of type '" "std::vector< int,std::allocator< int > > const &""'");
15612     }
15613     if (!ptr) {
15614       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVector___setitem__" "', argument " "3"" of type '" "std::vector< int,std::allocator< int > > const &""'");
15615     }
15616     arg3 = ptr;
15617   }
15618   {
15619     try {
15620       try {
15621         std_vector_Sl_int_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< int,std::allocator< int > > const &)*arg3);
15622       } catch(std::out_of_range &_e) {
15623         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
15624       } catch(std::invalid_argument &_e) {
15625         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
15626       }
15627     } catch (const std::exception& e) {
15628       SWIG_exception(SWIG_RuntimeError, e.what());
15629     }
15630   }
15631   resultobj = SWIG_Py_Void();
15632   if (SWIG_IsNewObj(res3)) delete arg3;
15633   return resultobj;
15634 fail:
15635   if (SWIG_IsNewObj(res3)) delete arg3;
15636   return NULL;
15637 }
15638 
15639 
_wrap_IntVector___setitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)15640 SWIGINTERN PyObject *_wrap_IntVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
15641   PyObject *resultobj = 0;
15642   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
15643   PySliceObject *arg2 = (PySliceObject *) 0 ;
15644   void *argp1 = 0 ;
15645   int res1 = 0 ;
15646 
15647   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
15648   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
15649   if (!SWIG_IsOK(res1)) {
15650     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setitem__" "', argument " "1"" of type '" "std::vector< int > *""'");
15651   }
15652   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
15653   {
15654     if (!PySlice_Check(swig_obj[1])) {
15655       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
15656     }
15657     arg2 = (PySliceObject *) swig_obj[1];
15658   }
15659   {
15660     try {
15661       try {
15662         std_vector_Sl_int_Sg____setitem____SWIG_1(arg1,arg2);
15663       } catch(std::out_of_range &_e) {
15664         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
15665       } catch(std::invalid_argument &_e) {
15666         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
15667       }
15668     } catch (const std::exception& e) {
15669       SWIG_exception(SWIG_RuntimeError, e.what());
15670     }
15671   }
15672   resultobj = SWIG_Py_Void();
15673   return resultobj;
15674 fail:
15675   return NULL;
15676 }
15677 
15678 
_wrap_IntVector___delitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)15679 SWIGINTERN PyObject *_wrap_IntVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
15680   PyObject *resultobj = 0;
15681   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
15682   PySliceObject *arg2 = (PySliceObject *) 0 ;
15683   void *argp1 = 0 ;
15684   int res1 = 0 ;
15685 
15686   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
15687   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
15688   if (!SWIG_IsOK(res1)) {
15689     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___delitem__" "', argument " "1"" of type '" "std::vector< int > *""'");
15690   }
15691   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
15692   {
15693     if (!PySlice_Check(swig_obj[1])) {
15694       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
15695     }
15696     arg2 = (PySliceObject *) swig_obj[1];
15697   }
15698   {
15699     try {
15700       try {
15701         std_vector_Sl_int_Sg____delitem____SWIG_1(arg1,arg2);
15702       } catch(std::out_of_range &_e) {
15703         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
15704       } catch(std::invalid_argument &_e) {
15705         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
15706       }
15707     } catch (const std::exception& e) {
15708       SWIG_exception(SWIG_RuntimeError, e.what());
15709     }
15710   }
15711   resultobj = SWIG_Py_Void();
15712   return resultobj;
15713 fail:
15714   return NULL;
15715 }
15716 
15717 
_wrap_IntVector___delitem__(PyObject * self,PyObject * args)15718 SWIGINTERN PyObject *_wrap_IntVector___delitem__(PyObject *self, PyObject *args) {
15719   Py_ssize_t argc;
15720   PyObject *argv[3] = {
15721     0
15722   };
15723 
15724   if (!(argc = SWIG_Python_UnpackTuple(args, "IntVector___delitem__", 0, 2, argv))) SWIG_fail;
15725   --argc;
15726   if (argc == 2) {
15727     int _v;
15728     int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
15729     _v = SWIG_CheckState(res);
15730     if (_v) {
15731       {
15732         _v = PySlice_Check(argv[1]);
15733       }
15734       if (_v) {
15735         return _wrap_IntVector___delitem____SWIG_1(self, argc, argv);
15736       }
15737     }
15738   }
15739   if (argc == 2) {
15740     int _v;
15741     int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
15742     _v = SWIG_CheckState(res);
15743     if (_v) {
15744       {
15745         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
15746         _v = SWIG_CheckState(res);
15747       }
15748       if (_v) {
15749         return _wrap_IntVector___delitem____SWIG_0(self, argc, argv);
15750       }
15751     }
15752   }
15753 
15754 fail:
15755   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntVector___delitem__'.\n"
15756     "  Possible C/C++ prototypes are:\n"
15757     "    std::vector< int >::__delitem__(std::vector< int >::difference_type)\n"
15758     "    std::vector< int >::__delitem__(PySliceObject *)\n");
15759   return 0;
15760 }
15761 
15762 
_wrap_IntVector___getitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)15763 SWIGINTERN PyObject *_wrap_IntVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
15764   PyObject *resultobj = 0;
15765   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
15766   std::vector< int >::difference_type arg2 ;
15767   void *argp1 = 0 ;
15768   int res1 = 0 ;
15769   ptrdiff_t val2 ;
15770   int ecode2 = 0 ;
15771   std::vector< int >::value_type *result = 0 ;
15772 
15773   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
15774   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
15775   if (!SWIG_IsOK(res1)) {
15776     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___getitem__" "', argument " "1"" of type '" "std::vector< int > const *""'");
15777   }
15778   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
15779   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
15780   if (!SWIG_IsOK(ecode2)) {
15781     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___getitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
15782   }
15783   arg2 = static_cast< std::vector< int >::difference_type >(val2);
15784   {
15785     try {
15786       try {
15787         result = (std::vector< int >::value_type *) &std_vector_Sl_int_Sg____getitem____SWIG_1((std::vector< int > const *)arg1,arg2);
15788       } catch(std::out_of_range &_e) {
15789         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
15790       }
15791     } catch (const std::exception& e) {
15792       SWIG_exception(SWIG_RuntimeError, e.what());
15793     }
15794   }
15795   resultobj = SWIG_From_int(static_cast< int >(*result));
15796   (void)swig::container_owner<swig::traits<std::vector< int >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
15797   return resultobj;
15798 fail:
15799   return NULL;
15800 }
15801 
15802 
_wrap_IntVector___getitem__(PyObject * self,PyObject * args)15803 SWIGINTERN PyObject *_wrap_IntVector___getitem__(PyObject *self, PyObject *args) {
15804   Py_ssize_t argc;
15805   PyObject *argv[3] = {
15806     0
15807   };
15808 
15809   if (!(argc = SWIG_Python_UnpackTuple(args, "IntVector___getitem__", 0, 2, argv))) SWIG_fail;
15810   --argc;
15811   if (argc == 2) {
15812     int _v;
15813     int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
15814     _v = SWIG_CheckState(res);
15815     if (_v) {
15816       {
15817         _v = PySlice_Check(argv[1]);
15818       }
15819       if (_v) {
15820         return _wrap_IntVector___getitem____SWIG_0(self, argc, argv);
15821       }
15822     }
15823   }
15824   if (argc == 2) {
15825     int _v;
15826     int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
15827     _v = SWIG_CheckState(res);
15828     if (_v) {
15829       {
15830         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
15831         _v = SWIG_CheckState(res);
15832       }
15833       if (_v) {
15834         return _wrap_IntVector___getitem____SWIG_1(self, argc, argv);
15835       }
15836     }
15837   }
15838 
15839 fail:
15840   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntVector___getitem__'.\n"
15841     "  Possible C/C++ prototypes are:\n"
15842     "    std::vector< int >::__getitem__(PySliceObject *)\n"
15843     "    std::vector< int >::__getitem__(std::vector< int >::difference_type) const\n");
15844   return 0;
15845 }
15846 
15847 
_wrap_IntVector___setitem____SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)15848 SWIGINTERN PyObject *_wrap_IntVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
15849   PyObject *resultobj = 0;
15850   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
15851   std::vector< int >::difference_type arg2 ;
15852   std::vector< int >::value_type *arg3 = 0 ;
15853   void *argp1 = 0 ;
15854   int res1 = 0 ;
15855   ptrdiff_t val2 ;
15856   int ecode2 = 0 ;
15857   std::vector< int >::value_type temp3 ;
15858   int val3 ;
15859   int ecode3 = 0 ;
15860 
15861   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
15862   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
15863   if (!SWIG_IsOK(res1)) {
15864     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setitem__" "', argument " "1"" of type '" "std::vector< int > *""'");
15865   }
15866   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
15867   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
15868   if (!SWIG_IsOK(ecode2)) {
15869     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___setitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
15870   }
15871   arg2 = static_cast< std::vector< int >::difference_type >(val2);
15872   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
15873   if (!SWIG_IsOK(ecode3)) {
15874     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___setitem__" "', argument " "3"" of type '" "std::vector< int >::value_type""'");
15875   }
15876   temp3 = static_cast< std::vector< int >::value_type >(val3);
15877   arg3 = &temp3;
15878   {
15879     try {
15880       try {
15881         std_vector_Sl_int_Sg____setitem____SWIG_2(arg1,arg2,(int const &)*arg3);
15882       } catch(std::out_of_range &_e) {
15883         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
15884       }
15885     } catch (const std::exception& e) {
15886       SWIG_exception(SWIG_RuntimeError, e.what());
15887     }
15888   }
15889   resultobj = SWIG_Py_Void();
15890   return resultobj;
15891 fail:
15892   return NULL;
15893 }
15894 
15895 
_wrap_IntVector___setitem__(PyObject * self,PyObject * args)15896 SWIGINTERN PyObject *_wrap_IntVector___setitem__(PyObject *self, PyObject *args) {
15897   Py_ssize_t argc;
15898   PyObject *argv[4] = {
15899     0
15900   };
15901 
15902   if (!(argc = SWIG_Python_UnpackTuple(args, "IntVector___setitem__", 0, 3, argv))) SWIG_fail;
15903   --argc;
15904   if (argc == 2) {
15905     int _v;
15906     int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
15907     _v = SWIG_CheckState(res);
15908     if (_v) {
15909       {
15910         _v = PySlice_Check(argv[1]);
15911       }
15912       if (_v) {
15913         return _wrap_IntVector___setitem____SWIG_1(self, argc, argv);
15914       }
15915     }
15916   }
15917   if (argc == 3) {
15918     int _v;
15919     int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
15920     _v = SWIG_CheckState(res);
15921     if (_v) {
15922       {
15923         _v = PySlice_Check(argv[1]);
15924       }
15925       if (_v) {
15926         int res = swig::asptr(argv[2], (std::vector< int,std::allocator< int > >**)(0));
15927         _v = SWIG_CheckState(res);
15928         if (_v) {
15929           return _wrap_IntVector___setitem____SWIG_0(self, argc, argv);
15930         }
15931       }
15932     }
15933   }
15934   if (argc == 3) {
15935     int _v;
15936     int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
15937     _v = SWIG_CheckState(res);
15938     if (_v) {
15939       {
15940         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
15941         _v = SWIG_CheckState(res);
15942       }
15943       if (_v) {
15944         {
15945           int res = SWIG_AsVal_int(argv[2], NULL);
15946           _v = SWIG_CheckState(res);
15947         }
15948         if (_v) {
15949           return _wrap_IntVector___setitem____SWIG_2(self, argc, argv);
15950         }
15951       }
15952     }
15953   }
15954 
15955 fail:
15956   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntVector___setitem__'.\n"
15957     "  Possible C/C++ prototypes are:\n"
15958     "    std::vector< int >::__setitem__(PySliceObject *,std::vector< int,std::allocator< int > > const &)\n"
15959     "    std::vector< int >::__setitem__(PySliceObject *)\n"
15960     "    std::vector< int >::__setitem__(std::vector< int >::difference_type,std::vector< int >::value_type const &)\n");
15961   return 0;
15962 }
15963 
15964 
_wrap_IntVector_pop(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15965 SWIGINTERN PyObject *_wrap_IntVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15966   PyObject *resultobj = 0;
15967   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
15968   void *argp1 = 0 ;
15969   int res1 = 0 ;
15970   PyObject *swig_obj[1] ;
15971   std::vector< int >::value_type result;
15972 
15973   if (!args) SWIG_fail;
15974   swig_obj[0] = args;
15975   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
15976   if (!SWIG_IsOK(res1)) {
15977     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_pop" "', argument " "1"" of type '" "std::vector< int > *""'");
15978   }
15979   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
15980   {
15981     try {
15982       try {
15983         result = (std::vector< int >::value_type)std_vector_Sl_int_Sg__pop(arg1);
15984       } catch(std::out_of_range &_e) {
15985         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
15986       }
15987     } catch (const std::exception& e) {
15988       SWIG_exception(SWIG_RuntimeError, e.what());
15989     }
15990   }
15991   resultobj = SWIG_From_int(static_cast< int >(result));
15992   return resultobj;
15993 fail:
15994   return NULL;
15995 }
15996 
15997 
_wrap_IntVector_append(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)15998 SWIGINTERN PyObject *_wrap_IntVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15999   PyObject *resultobj = 0;
16000   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16001   std::vector< int >::value_type *arg2 = 0 ;
16002   void *argp1 = 0 ;
16003   int res1 = 0 ;
16004   std::vector< int >::value_type temp2 ;
16005   int val2 ;
16006   int ecode2 = 0 ;
16007   PyObject * obj0 = 0 ;
16008   PyObject * obj1 = 0 ;
16009   char * kwnames[] = {
16010     (char *)"self",  (char *)"x",  NULL
16011   };
16012 
16013   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:IntVector_append", kwnames, &obj0, &obj1)) SWIG_fail;
16014   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16015   if (!SWIG_IsOK(res1)) {
16016     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_append" "', argument " "1"" of type '" "std::vector< int > *""'");
16017   }
16018   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16019   ecode2 = SWIG_AsVal_int(obj1, &val2);
16020   if (!SWIG_IsOK(ecode2)) {
16021     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_append" "', argument " "2"" of type '" "std::vector< int >::value_type""'");
16022   }
16023   temp2 = static_cast< std::vector< int >::value_type >(val2);
16024   arg2 = &temp2;
16025   {
16026     try {
16027       std_vector_Sl_int_Sg__append(arg1,(int const &)*arg2);
16028     } catch (const std::exception& e) {
16029       SWIG_exception(SWIG_RuntimeError, e.what());
16030     }
16031   }
16032   resultobj = SWIG_Py_Void();
16033   return resultobj;
16034 fail:
16035   return NULL;
16036 }
16037 
16038 
_wrap_new_IntVector__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))16039 SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
16040   PyObject *resultobj = 0;
16041   std::vector< int > *result = 0 ;
16042 
16043   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
16044   {
16045     try {
16046       result = (std::vector< int > *)new std::vector< int >();
16047     } catch (const std::exception& e) {
16048       SWIG_exception(SWIG_RuntimeError, e.what());
16049     }
16050   }
16051   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW |  0 );
16052   return resultobj;
16053 fail:
16054   return NULL;
16055 }
16056 
16057 
_wrap_new_IntVector__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)16058 SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
16059   PyObject *resultobj = 0;
16060   std::vector< int > *arg1 = 0 ;
16061   int res1 = SWIG_OLDOBJ ;
16062   std::vector< int > *result = 0 ;
16063 
16064   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16065   {
16066     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
16067     res1 = swig::asptr(swig_obj[0], &ptr);
16068     if (!SWIG_IsOK(res1)) {
16069       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int > const &""'");
16070     }
16071     if (!ptr) {
16072       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int > const &""'");
16073     }
16074     arg1 = ptr;
16075   }
16076   {
16077     try {
16078       result = (std::vector< int > *)new std::vector< int >((std::vector< int > const &)*arg1);
16079     } catch (const std::exception& e) {
16080       SWIG_exception(SWIG_RuntimeError, e.what());
16081     }
16082   }
16083   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW |  0 );
16084   if (SWIG_IsNewObj(res1)) delete arg1;
16085   return resultobj;
16086 fail:
16087   if (SWIG_IsNewObj(res1)) delete arg1;
16088   return NULL;
16089 }
16090 
16091 
_wrap_IntVector_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16092 SWIGINTERN PyObject *_wrap_IntVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16093   PyObject *resultobj = 0;
16094   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16095   void *argp1 = 0 ;
16096   int res1 = 0 ;
16097   PyObject *swig_obj[1] ;
16098   bool result;
16099 
16100   if (!args) SWIG_fail;
16101   swig_obj[0] = args;
16102   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16103   if (!SWIG_IsOK(res1)) {
16104     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_empty" "', argument " "1"" of type '" "std::vector< int > const *""'");
16105   }
16106   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16107   {
16108     try {
16109       result = (bool)((std::vector< int > const *)arg1)->empty();
16110     } catch (const std::exception& e) {
16111       SWIG_exception(SWIG_RuntimeError, e.what());
16112     }
16113   }
16114   resultobj = SWIG_From_bool(static_cast< bool >(result));
16115   return resultobj;
16116 fail:
16117   return NULL;
16118 }
16119 
16120 
_wrap_IntVector_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16121 SWIGINTERN PyObject *_wrap_IntVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16122   PyObject *resultobj = 0;
16123   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16124   void *argp1 = 0 ;
16125   int res1 = 0 ;
16126   PyObject *swig_obj[1] ;
16127   std::vector< int >::size_type result;
16128 
16129   if (!args) SWIG_fail;
16130   swig_obj[0] = args;
16131   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16132   if (!SWIG_IsOK(res1)) {
16133     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_size" "', argument " "1"" of type '" "std::vector< int > const *""'");
16134   }
16135   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16136   {
16137     try {
16138       result = ((std::vector< int > const *)arg1)->size();
16139     } catch (const std::exception& e) {
16140       SWIG_exception(SWIG_RuntimeError, e.what());
16141     }
16142   }
16143   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16144   return resultobj;
16145 fail:
16146   return NULL;
16147 }
16148 
16149 
_wrap_IntVector_swap(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)16150 SWIGINTERN PyObject *_wrap_IntVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16151   PyObject *resultobj = 0;
16152   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16153   std::vector< int > *arg2 = 0 ;
16154   void *argp1 = 0 ;
16155   int res1 = 0 ;
16156   void *argp2 = 0 ;
16157   int res2 = 0 ;
16158   PyObject * obj0 = 0 ;
16159   PyObject * obj1 = 0 ;
16160   char * kwnames[] = {
16161     (char *)"self",  (char *)"v",  NULL
16162   };
16163 
16164   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:IntVector_swap", kwnames, &obj0, &obj1)) SWIG_fail;
16165   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16166   if (!SWIG_IsOK(res1)) {
16167     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_swap" "', argument " "1"" of type '" "std::vector< int > *""'");
16168   }
16169   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16170   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t,  0 );
16171   if (!SWIG_IsOK(res2)) {
16172     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntVector_swap" "', argument " "2"" of type '" "std::vector< int > &""'");
16173   }
16174   if (!argp2) {
16175     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVector_swap" "', argument " "2"" of type '" "std::vector< int > &""'");
16176   }
16177   arg2 = reinterpret_cast< std::vector< int > * >(argp2);
16178   {
16179     try {
16180       (arg1)->swap(*arg2);
16181     } catch (const std::exception& e) {
16182       SWIG_exception(SWIG_RuntimeError, e.what());
16183     }
16184   }
16185   resultobj = SWIG_Py_Void();
16186   return resultobj;
16187 fail:
16188   return NULL;
16189 }
16190 
16191 
_wrap_IntVector_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16192 SWIGINTERN PyObject *_wrap_IntVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16193   PyObject *resultobj = 0;
16194   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16195   void *argp1 = 0 ;
16196   int res1 = 0 ;
16197   PyObject *swig_obj[1] ;
16198   std::vector< int >::iterator result;
16199 
16200   if (!args) SWIG_fail;
16201   swig_obj[0] = args;
16202   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16203   if (!SWIG_IsOK(res1)) {
16204     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_begin" "', argument " "1"" of type '" "std::vector< int > *""'");
16205   }
16206   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16207   {
16208     try {
16209       result = (arg1)->begin();
16210     } catch (const std::exception& e) {
16211       SWIG_exception(SWIG_RuntimeError, e.what());
16212     }
16213   }
16214   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)),
16215     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
16216   return resultobj;
16217 fail:
16218   return NULL;
16219 }
16220 
16221 
_wrap_IntVector_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16222 SWIGINTERN PyObject *_wrap_IntVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16223   PyObject *resultobj = 0;
16224   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16225   void *argp1 = 0 ;
16226   int res1 = 0 ;
16227   PyObject *swig_obj[1] ;
16228   std::vector< int >::iterator result;
16229 
16230   if (!args) SWIG_fail;
16231   swig_obj[0] = args;
16232   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16233   if (!SWIG_IsOK(res1)) {
16234     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_end" "', argument " "1"" of type '" "std::vector< int > *""'");
16235   }
16236   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16237   {
16238     try {
16239       result = (arg1)->end();
16240     } catch (const std::exception& e) {
16241       SWIG_exception(SWIG_RuntimeError, e.what());
16242     }
16243   }
16244   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)),
16245     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
16246   return resultobj;
16247 fail:
16248   return NULL;
16249 }
16250 
16251 
_wrap_IntVector_rbegin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16252 SWIGINTERN PyObject *_wrap_IntVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16253   PyObject *resultobj = 0;
16254   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16255   void *argp1 = 0 ;
16256   int res1 = 0 ;
16257   PyObject *swig_obj[1] ;
16258   std::vector< int >::reverse_iterator result;
16259 
16260   if (!args) SWIG_fail;
16261   swig_obj[0] = args;
16262   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16263   if (!SWIG_IsOK(res1)) {
16264     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_rbegin" "', argument " "1"" of type '" "std::vector< int > *""'");
16265   }
16266   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16267   {
16268     try {
16269       result = (arg1)->rbegin();
16270     } catch (const std::exception& e) {
16271       SWIG_exception(SWIG_RuntimeError, e.what());
16272     }
16273   }
16274   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::reverse_iterator & >(result)),
16275     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
16276   return resultobj;
16277 fail:
16278   return NULL;
16279 }
16280 
16281 
_wrap_IntVector_rend(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16282 SWIGINTERN PyObject *_wrap_IntVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16283   PyObject *resultobj = 0;
16284   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16285   void *argp1 = 0 ;
16286   int res1 = 0 ;
16287   PyObject *swig_obj[1] ;
16288   std::vector< int >::reverse_iterator result;
16289 
16290   if (!args) SWIG_fail;
16291   swig_obj[0] = args;
16292   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16293   if (!SWIG_IsOK(res1)) {
16294     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_rend" "', argument " "1"" of type '" "std::vector< int > *""'");
16295   }
16296   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16297   {
16298     try {
16299       result = (arg1)->rend();
16300     } catch (const std::exception& e) {
16301       SWIG_exception(SWIG_RuntimeError, e.what());
16302     }
16303   }
16304   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::reverse_iterator & >(result)),
16305     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
16306   return resultobj;
16307 fail:
16308   return NULL;
16309 }
16310 
16311 
_wrap_IntVector_clear(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16312 SWIGINTERN PyObject *_wrap_IntVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16313   PyObject *resultobj = 0;
16314   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16315   void *argp1 = 0 ;
16316   int res1 = 0 ;
16317   PyObject *swig_obj[1] ;
16318 
16319   if (!args) SWIG_fail;
16320   swig_obj[0] = args;
16321   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16322   if (!SWIG_IsOK(res1)) {
16323     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_clear" "', argument " "1"" of type '" "std::vector< int > *""'");
16324   }
16325   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16326   {
16327     try {
16328       (arg1)->clear();
16329     } catch (const std::exception& e) {
16330       SWIG_exception(SWIG_RuntimeError, e.what());
16331     }
16332   }
16333   resultobj = SWIG_Py_Void();
16334   return resultobj;
16335 fail:
16336   return NULL;
16337 }
16338 
16339 
_wrap_IntVector_get_allocator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16340 SWIGINTERN PyObject *_wrap_IntVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16341   PyObject *resultobj = 0;
16342   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16343   void *argp1 = 0 ;
16344   int res1 = 0 ;
16345   PyObject *swig_obj[1] ;
16346   SwigValueWrapper< std::allocator< int > > result;
16347 
16348   if (!args) SWIG_fail;
16349   swig_obj[0] = args;
16350   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16351   if (!SWIG_IsOK(res1)) {
16352     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_get_allocator" "', argument " "1"" of type '" "std::vector< int > const *""'");
16353   }
16354   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16355   {
16356     try {
16357       result = ((std::vector< int > const *)arg1)->get_allocator();
16358     } catch (const std::exception& e) {
16359       SWIG_exception(SWIG_RuntimeError, e.what());
16360     }
16361   }
16362   resultobj = SWIG_NewPointerObj((new std::vector< int >::allocator_type(static_cast< const std::vector< int >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_int_t, SWIG_POINTER_OWN |  0 );
16363   return resultobj;
16364 fail:
16365   return NULL;
16366 }
16367 
16368 
_wrap_new_IntVector__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)16369 SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
16370   PyObject *resultobj = 0;
16371   std::vector< int >::size_type arg1 ;
16372   size_t val1 ;
16373   int ecode1 = 0 ;
16374   std::vector< int > *result = 0 ;
16375 
16376   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16377   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
16378   if (!SWIG_IsOK(ecode1)) {
16379     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int >::size_type""'");
16380   }
16381   arg1 = static_cast< std::vector< int >::size_type >(val1);
16382   {
16383     try {
16384       result = (std::vector< int > *)new std::vector< int >(arg1);
16385     } catch (const std::exception& e) {
16386       SWIG_exception(SWIG_RuntimeError, e.what());
16387     }
16388   }
16389   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW |  0 );
16390   return resultobj;
16391 fail:
16392   return NULL;
16393 }
16394 
16395 
_wrap_IntVector_pop_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16396 SWIGINTERN PyObject *_wrap_IntVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16397   PyObject *resultobj = 0;
16398   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16399   void *argp1 = 0 ;
16400   int res1 = 0 ;
16401   PyObject *swig_obj[1] ;
16402 
16403   if (!args) SWIG_fail;
16404   swig_obj[0] = args;
16405   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16406   if (!SWIG_IsOK(res1)) {
16407     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_pop_back" "', argument " "1"" of type '" "std::vector< int > *""'");
16408   }
16409   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16410   {
16411     try {
16412       (arg1)->pop_back();
16413     } catch (const std::exception& e) {
16414       SWIG_exception(SWIG_RuntimeError, e.what());
16415     }
16416   }
16417   resultobj = SWIG_Py_Void();
16418   return resultobj;
16419 fail:
16420   return NULL;
16421 }
16422 
16423 
_wrap_IntVector_resize__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)16424 SWIGINTERN PyObject *_wrap_IntVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
16425   PyObject *resultobj = 0;
16426   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16427   std::vector< int >::size_type arg2 ;
16428   void *argp1 = 0 ;
16429   int res1 = 0 ;
16430   size_t val2 ;
16431   int ecode2 = 0 ;
16432 
16433   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16434   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16435   if (!SWIG_IsOK(res1)) {
16436     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_resize" "', argument " "1"" of type '" "std::vector< int > *""'");
16437   }
16438   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16439   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
16440   if (!SWIG_IsOK(ecode2)) {
16441     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_resize" "', argument " "2"" of type '" "std::vector< int >::size_type""'");
16442   }
16443   arg2 = static_cast< std::vector< int >::size_type >(val2);
16444   {
16445     try {
16446       (arg1)->resize(arg2);
16447     } catch (const std::exception& e) {
16448       SWIG_exception(SWIG_RuntimeError, e.what());
16449     }
16450   }
16451   resultobj = SWIG_Py_Void();
16452   return resultobj;
16453 fail:
16454   return NULL;
16455 }
16456 
16457 
_wrap_IntVector_erase__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)16458 SWIGINTERN PyObject *_wrap_IntVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
16459   PyObject *resultobj = 0;
16460   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16461   std::vector< int >::iterator arg2 ;
16462   void *argp1 = 0 ;
16463   int res1 = 0 ;
16464   swig::SwigPyIterator *iter2 = 0 ;
16465   int res2 ;
16466   std::vector< int >::iterator result;
16467 
16468   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16469   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16470   if (!SWIG_IsOK(res1)) {
16471     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_erase" "', argument " "1"" of type '" "std::vector< int > *""'");
16472   }
16473   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16474   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
16475   if (!SWIG_IsOK(res2) || !iter2) {
16476     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
16477   } else {
16478     swig::SwigPyIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< int >::iterator > *>(iter2);
16479     if (iter_t) {
16480       arg2 = iter_t->get_current();
16481     } else {
16482       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
16483     }
16484   }
16485   {
16486     try {
16487       result = std_vector_Sl_int_Sg__erase__SWIG_0(arg1,arg2);
16488     } catch (const std::exception& e) {
16489       SWIG_exception(SWIG_RuntimeError, e.what());
16490     }
16491   }
16492   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)),
16493     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
16494   return resultobj;
16495 fail:
16496   return NULL;
16497 }
16498 
16499 
_wrap_IntVector_erase__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)16500 SWIGINTERN PyObject *_wrap_IntVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
16501   PyObject *resultobj = 0;
16502   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16503   std::vector< int >::iterator arg2 ;
16504   std::vector< int >::iterator arg3 ;
16505   void *argp1 = 0 ;
16506   int res1 = 0 ;
16507   swig::SwigPyIterator *iter2 = 0 ;
16508   int res2 ;
16509   swig::SwigPyIterator *iter3 = 0 ;
16510   int res3 ;
16511   std::vector< int >::iterator result;
16512 
16513   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16514   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16515   if (!SWIG_IsOK(res1)) {
16516     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_erase" "', argument " "1"" of type '" "std::vector< int > *""'");
16517   }
16518   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16519   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
16520   if (!SWIG_IsOK(res2) || !iter2) {
16521     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
16522   } else {
16523     swig::SwigPyIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< int >::iterator > *>(iter2);
16524     if (iter_t) {
16525       arg2 = iter_t->get_current();
16526     } else {
16527       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
16528     }
16529   }
16530   res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
16531   if (!SWIG_IsOK(res3) || !iter3) {
16532     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "3"" of type '" "std::vector< int >::iterator""'");
16533   } else {
16534     swig::SwigPyIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< int >::iterator > *>(iter3);
16535     if (iter_t) {
16536       arg3 = iter_t->get_current();
16537     } else {
16538       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "3"" of type '" "std::vector< int >::iterator""'");
16539     }
16540   }
16541   {
16542     try {
16543       result = std_vector_Sl_int_Sg__erase__SWIG_1(arg1,arg2,arg3);
16544     } catch (const std::exception& e) {
16545       SWIG_exception(SWIG_RuntimeError, e.what());
16546     }
16547   }
16548   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)),
16549     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
16550   return resultobj;
16551 fail:
16552   return NULL;
16553 }
16554 
16555 
_wrap_IntVector_erase(PyObject * self,PyObject * args)16556 SWIGINTERN PyObject *_wrap_IntVector_erase(PyObject *self, PyObject *args) {
16557   Py_ssize_t argc;
16558   PyObject *argv[4] = {
16559     0
16560   };
16561 
16562   if (!(argc = SWIG_Python_UnpackTuple(args, "IntVector_erase", 0, 3, argv))) SWIG_fail;
16563   --argc;
16564   if (argc == 2) {
16565     int _v;
16566     int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
16567     _v = SWIG_CheckState(res);
16568     if (_v) {
16569       swig::SwigPyIterator *iter = 0;
16570       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
16571       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< int >::iterator > *>(iter) != 0));
16572       if (_v) {
16573         return _wrap_IntVector_erase__SWIG_0(self, argc, argv);
16574       }
16575     }
16576   }
16577   if (argc == 3) {
16578     int _v;
16579     int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
16580     _v = SWIG_CheckState(res);
16581     if (_v) {
16582       swig::SwigPyIterator *iter = 0;
16583       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
16584       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< int >::iterator > *>(iter) != 0));
16585       if (_v) {
16586         swig::SwigPyIterator *iter = 0;
16587         int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
16588         _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< int >::iterator > *>(iter) != 0));
16589         if (_v) {
16590           return _wrap_IntVector_erase__SWIG_1(self, argc, argv);
16591         }
16592       }
16593     }
16594   }
16595 
16596 fail:
16597   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntVector_erase'.\n"
16598     "  Possible C/C++ prototypes are:\n"
16599     "    std::vector< int >::erase(std::vector< int >::iterator)\n"
16600     "    std::vector< int >::erase(std::vector< int >::iterator,std::vector< int >::iterator)\n");
16601   return 0;
16602 }
16603 
16604 
_wrap_new_IntVector__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)16605 SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
16606   PyObject *resultobj = 0;
16607   std::vector< int >::size_type arg1 ;
16608   std::vector< int >::value_type *arg2 = 0 ;
16609   size_t val1 ;
16610   int ecode1 = 0 ;
16611   std::vector< int >::value_type temp2 ;
16612   int val2 ;
16613   int ecode2 = 0 ;
16614   std::vector< int > *result = 0 ;
16615 
16616   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16617   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
16618   if (!SWIG_IsOK(ecode1)) {
16619     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int >::size_type""'");
16620   }
16621   arg1 = static_cast< std::vector< int >::size_type >(val1);
16622   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16623   if (!SWIG_IsOK(ecode2)) {
16624     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IntVector" "', argument " "2"" of type '" "std::vector< int >::value_type""'");
16625   }
16626   temp2 = static_cast< std::vector< int >::value_type >(val2);
16627   arg2 = &temp2;
16628   {
16629     try {
16630       result = (std::vector< int > *)new std::vector< int >(arg1,(std::vector< int >::value_type const &)*arg2);
16631     } catch (const std::exception& e) {
16632       SWIG_exception(SWIG_RuntimeError, e.what());
16633     }
16634   }
16635   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW |  0 );
16636   return resultobj;
16637 fail:
16638   return NULL;
16639 }
16640 
16641 
_wrap_new_IntVector(PyObject * self,PyObject * args)16642 SWIGINTERN PyObject *_wrap_new_IntVector(PyObject *self, PyObject *args) {
16643   Py_ssize_t argc;
16644   PyObject *argv[3] = {
16645     0
16646   };
16647 
16648   if (!(argc = SWIG_Python_UnpackTuple(args, "new_IntVector", 0, 2, argv))) SWIG_fail;
16649   --argc;
16650   if (argc == 0) {
16651     return _wrap_new_IntVector__SWIG_0(self, argc, argv);
16652   }
16653   if (argc == 1) {
16654     int _v;
16655     {
16656       int res = SWIG_AsVal_size_t(argv[0], NULL);
16657       _v = SWIG_CheckState(res);
16658     }
16659     if (_v) {
16660       return _wrap_new_IntVector__SWIG_2(self, argc, argv);
16661     }
16662   }
16663   if (argc == 1) {
16664     int _v;
16665     int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
16666     _v = SWIG_CheckState(res);
16667     if (_v) {
16668       return _wrap_new_IntVector__SWIG_1(self, argc, argv);
16669     }
16670   }
16671   if (argc == 2) {
16672     int _v;
16673     {
16674       int res = SWIG_AsVal_size_t(argv[0], NULL);
16675       _v = SWIG_CheckState(res);
16676     }
16677     if (_v) {
16678       {
16679         int res = SWIG_AsVal_int(argv[1], NULL);
16680         _v = SWIG_CheckState(res);
16681       }
16682       if (_v) {
16683         return _wrap_new_IntVector__SWIG_3(self, argc, argv);
16684       }
16685     }
16686   }
16687 
16688 fail:
16689   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_IntVector'.\n"
16690     "  Possible C/C++ prototypes are:\n"
16691     "    std::vector< int >::vector()\n"
16692     "    std::vector< int >::vector(std::vector< int > const &)\n"
16693     "    std::vector< int >::vector(std::vector< int >::size_type)\n"
16694     "    std::vector< int >::vector(std::vector< int >::size_type,std::vector< int >::value_type const &)\n");
16695   return 0;
16696 }
16697 
16698 
_wrap_IntVector_push_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)16699 SWIGINTERN PyObject *_wrap_IntVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16700   PyObject *resultobj = 0;
16701   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16702   std::vector< int >::value_type *arg2 = 0 ;
16703   void *argp1 = 0 ;
16704   int res1 = 0 ;
16705   std::vector< int >::value_type temp2 ;
16706   int val2 ;
16707   int ecode2 = 0 ;
16708   PyObject * obj0 = 0 ;
16709   PyObject * obj1 = 0 ;
16710   char * kwnames[] = {
16711     (char *)"self",  (char *)"x",  NULL
16712   };
16713 
16714   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:IntVector_push_back", kwnames, &obj0, &obj1)) SWIG_fail;
16715   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16716   if (!SWIG_IsOK(res1)) {
16717     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_push_back" "', argument " "1"" of type '" "std::vector< int > *""'");
16718   }
16719   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16720   ecode2 = SWIG_AsVal_int(obj1, &val2);
16721   if (!SWIG_IsOK(ecode2)) {
16722     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_push_back" "', argument " "2"" of type '" "std::vector< int >::value_type""'");
16723   }
16724   temp2 = static_cast< std::vector< int >::value_type >(val2);
16725   arg2 = &temp2;
16726   {
16727     try {
16728       (arg1)->push_back((std::vector< int >::value_type const &)*arg2);
16729     } catch (const std::exception& e) {
16730       SWIG_exception(SWIG_RuntimeError, e.what());
16731     }
16732   }
16733   resultobj = SWIG_Py_Void();
16734   return resultobj;
16735 fail:
16736   return NULL;
16737 }
16738 
16739 
_wrap_IntVector_front(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16740 SWIGINTERN PyObject *_wrap_IntVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16741   PyObject *resultobj = 0;
16742   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16743   void *argp1 = 0 ;
16744   int res1 = 0 ;
16745   PyObject *swig_obj[1] ;
16746   std::vector< int >::value_type *result = 0 ;
16747 
16748   if (!args) SWIG_fail;
16749   swig_obj[0] = args;
16750   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16751   if (!SWIG_IsOK(res1)) {
16752     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_front" "', argument " "1"" of type '" "std::vector< int > const *""'");
16753   }
16754   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16755   {
16756     try {
16757       result = (std::vector< int >::value_type *) &((std::vector< int > const *)arg1)->front();
16758     } catch (const std::exception& e) {
16759       SWIG_exception(SWIG_RuntimeError, e.what());
16760     }
16761   }
16762   resultobj = SWIG_From_int(static_cast< int >(*result));
16763   (void)swig::container_owner<swig::traits<std::vector< int >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
16764   return resultobj;
16765 fail:
16766   return NULL;
16767 }
16768 
16769 
_wrap_IntVector_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16770 SWIGINTERN PyObject *_wrap_IntVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16771   PyObject *resultobj = 0;
16772   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16773   void *argp1 = 0 ;
16774   int res1 = 0 ;
16775   PyObject *swig_obj[1] ;
16776   std::vector< int >::value_type *result = 0 ;
16777 
16778   if (!args) SWIG_fail;
16779   swig_obj[0] = args;
16780   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16781   if (!SWIG_IsOK(res1)) {
16782     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_back" "', argument " "1"" of type '" "std::vector< int > const *""'");
16783   }
16784   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16785   {
16786     try {
16787       result = (std::vector< int >::value_type *) &((std::vector< int > const *)arg1)->back();
16788     } catch (const std::exception& e) {
16789       SWIG_exception(SWIG_RuntimeError, e.what());
16790     }
16791   }
16792   resultobj = SWIG_From_int(static_cast< int >(*result));
16793   (void)swig::container_owner<swig::traits<std::vector< int >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
16794   return resultobj;
16795 fail:
16796   return NULL;
16797 }
16798 
16799 
_wrap_IntVector_assign(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)16800 SWIGINTERN PyObject *_wrap_IntVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16801   PyObject *resultobj = 0;
16802   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16803   std::vector< int >::size_type arg2 ;
16804   std::vector< int >::value_type *arg3 = 0 ;
16805   void *argp1 = 0 ;
16806   int res1 = 0 ;
16807   size_t val2 ;
16808   int ecode2 = 0 ;
16809   std::vector< int >::value_type temp3 ;
16810   int val3 ;
16811   int ecode3 = 0 ;
16812   PyObject * obj0 = 0 ;
16813   PyObject * obj1 = 0 ;
16814   PyObject * obj2 = 0 ;
16815   char * kwnames[] = {
16816     (char *)"self",  (char *)"n",  (char *)"x",  NULL
16817   };
16818 
16819   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:IntVector_assign", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
16820   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16821   if (!SWIG_IsOK(res1)) {
16822     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_assign" "', argument " "1"" of type '" "std::vector< int > *""'");
16823   }
16824   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16825   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
16826   if (!SWIG_IsOK(ecode2)) {
16827     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_assign" "', argument " "2"" of type '" "std::vector< int >::size_type""'");
16828   }
16829   arg2 = static_cast< std::vector< int >::size_type >(val2);
16830   ecode3 = SWIG_AsVal_int(obj2, &val3);
16831   if (!SWIG_IsOK(ecode3)) {
16832     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_assign" "', argument " "3"" of type '" "std::vector< int >::value_type""'");
16833   }
16834   temp3 = static_cast< std::vector< int >::value_type >(val3);
16835   arg3 = &temp3;
16836   {
16837     try {
16838       (arg1)->assign(arg2,(std::vector< int >::value_type const &)*arg3);
16839     } catch (const std::exception& e) {
16840       SWIG_exception(SWIG_RuntimeError, e.what());
16841     }
16842   }
16843   resultobj = SWIG_Py_Void();
16844   return resultobj;
16845 fail:
16846   return NULL;
16847 }
16848 
16849 
_wrap_IntVector_resize__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)16850 SWIGINTERN PyObject *_wrap_IntVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
16851   PyObject *resultobj = 0;
16852   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16853   std::vector< int >::size_type arg2 ;
16854   std::vector< int >::value_type *arg3 = 0 ;
16855   void *argp1 = 0 ;
16856   int res1 = 0 ;
16857   size_t val2 ;
16858   int ecode2 = 0 ;
16859   std::vector< int >::value_type temp3 ;
16860   int val3 ;
16861   int ecode3 = 0 ;
16862 
16863   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16864   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16865   if (!SWIG_IsOK(res1)) {
16866     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_resize" "', argument " "1"" of type '" "std::vector< int > *""'");
16867   }
16868   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16869   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
16870   if (!SWIG_IsOK(ecode2)) {
16871     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_resize" "', argument " "2"" of type '" "std::vector< int >::size_type""'");
16872   }
16873   arg2 = static_cast< std::vector< int >::size_type >(val2);
16874   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
16875   if (!SWIG_IsOK(ecode3)) {
16876     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_resize" "', argument " "3"" of type '" "std::vector< int >::value_type""'");
16877   }
16878   temp3 = static_cast< std::vector< int >::value_type >(val3);
16879   arg3 = &temp3;
16880   {
16881     try {
16882       (arg1)->resize(arg2,(std::vector< int >::value_type const &)*arg3);
16883     } catch (const std::exception& e) {
16884       SWIG_exception(SWIG_RuntimeError, e.what());
16885     }
16886   }
16887   resultobj = SWIG_Py_Void();
16888   return resultobj;
16889 fail:
16890   return NULL;
16891 }
16892 
16893 
_wrap_IntVector_resize(PyObject * self,PyObject * args)16894 SWIGINTERN PyObject *_wrap_IntVector_resize(PyObject *self, PyObject *args) {
16895   Py_ssize_t argc;
16896   PyObject *argv[4] = {
16897     0
16898   };
16899 
16900   if (!(argc = SWIG_Python_UnpackTuple(args, "IntVector_resize", 0, 3, argv))) SWIG_fail;
16901   --argc;
16902   if (argc == 2) {
16903     int _v;
16904     int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
16905     _v = SWIG_CheckState(res);
16906     if (_v) {
16907       {
16908         int res = SWIG_AsVal_size_t(argv[1], NULL);
16909         _v = SWIG_CheckState(res);
16910       }
16911       if (_v) {
16912         return _wrap_IntVector_resize__SWIG_0(self, argc, argv);
16913       }
16914     }
16915   }
16916   if (argc == 3) {
16917     int _v;
16918     int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
16919     _v = SWIG_CheckState(res);
16920     if (_v) {
16921       {
16922         int res = SWIG_AsVal_size_t(argv[1], NULL);
16923         _v = SWIG_CheckState(res);
16924       }
16925       if (_v) {
16926         {
16927           int res = SWIG_AsVal_int(argv[2], NULL);
16928           _v = SWIG_CheckState(res);
16929         }
16930         if (_v) {
16931           return _wrap_IntVector_resize__SWIG_1(self, argc, argv);
16932         }
16933       }
16934     }
16935   }
16936 
16937 fail:
16938   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntVector_resize'.\n"
16939     "  Possible C/C++ prototypes are:\n"
16940     "    std::vector< int >::resize(std::vector< int >::size_type)\n"
16941     "    std::vector< int >::resize(std::vector< int >::size_type,std::vector< int >::value_type const &)\n");
16942   return 0;
16943 }
16944 
16945 
_wrap_IntVector_insert__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)16946 SWIGINTERN PyObject *_wrap_IntVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
16947   PyObject *resultobj = 0;
16948   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
16949   std::vector< int >::iterator arg2 ;
16950   std::vector< int >::value_type *arg3 = 0 ;
16951   void *argp1 = 0 ;
16952   int res1 = 0 ;
16953   swig::SwigPyIterator *iter2 = 0 ;
16954   int res2 ;
16955   std::vector< int >::value_type temp3 ;
16956   int val3 ;
16957   int ecode3 = 0 ;
16958   std::vector< int >::iterator result;
16959 
16960   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16961   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
16962   if (!SWIG_IsOK(res1)) {
16963     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_insert" "', argument " "1"" of type '" "std::vector< int > *""'");
16964   }
16965   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
16966   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
16967   if (!SWIG_IsOK(res2) || !iter2) {
16968     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
16969   } else {
16970     swig::SwigPyIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< int >::iterator > *>(iter2);
16971     if (iter_t) {
16972       arg2 = iter_t->get_current();
16973     } else {
16974       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
16975     }
16976   }
16977   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
16978   if (!SWIG_IsOK(ecode3)) {
16979     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_insert" "', argument " "3"" of type '" "std::vector< int >::value_type""'");
16980   }
16981   temp3 = static_cast< std::vector< int >::value_type >(val3);
16982   arg3 = &temp3;
16983   {
16984     try {
16985       result = std_vector_Sl_int_Sg__insert__SWIG_0(arg1,arg2,(int const &)*arg3);
16986     } catch (const std::exception& e) {
16987       SWIG_exception(SWIG_RuntimeError, e.what());
16988     }
16989   }
16990   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)),
16991     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
16992   return resultobj;
16993 fail:
16994   return NULL;
16995 }
16996 
16997 
_wrap_IntVector_insert__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)16998 SWIGINTERN PyObject *_wrap_IntVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
16999   PyObject *resultobj = 0;
17000   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
17001   std::vector< int >::iterator arg2 ;
17002   std::vector< int >::size_type arg3 ;
17003   std::vector< int >::value_type *arg4 = 0 ;
17004   void *argp1 = 0 ;
17005   int res1 = 0 ;
17006   swig::SwigPyIterator *iter2 = 0 ;
17007   int res2 ;
17008   size_t val3 ;
17009   int ecode3 = 0 ;
17010   std::vector< int >::value_type temp4 ;
17011   int val4 ;
17012   int ecode4 = 0 ;
17013 
17014   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17015   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
17016   if (!SWIG_IsOK(res1)) {
17017     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_insert" "', argument " "1"" of type '" "std::vector< int > *""'");
17018   }
17019   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
17020   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
17021   if (!SWIG_IsOK(res2) || !iter2) {
17022     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
17023   } else {
17024     swig::SwigPyIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< int >::iterator > *>(iter2);
17025     if (iter_t) {
17026       arg2 = iter_t->get_current();
17027     } else {
17028       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
17029     }
17030   }
17031   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17032   if (!SWIG_IsOK(ecode3)) {
17033     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_insert" "', argument " "3"" of type '" "std::vector< int >::size_type""'");
17034   }
17035   arg3 = static_cast< std::vector< int >::size_type >(val3);
17036   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
17037   if (!SWIG_IsOK(ecode4)) {
17038     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IntVector_insert" "', argument " "4"" of type '" "std::vector< int >::value_type""'");
17039   }
17040   temp4 = static_cast< std::vector< int >::value_type >(val4);
17041   arg4 = &temp4;
17042   {
17043     try {
17044       std_vector_Sl_int_Sg__insert__SWIG_1(arg1,arg2,arg3,(int const &)*arg4);
17045     } catch (const std::exception& e) {
17046       SWIG_exception(SWIG_RuntimeError, e.what());
17047     }
17048   }
17049   resultobj = SWIG_Py_Void();
17050   return resultobj;
17051 fail:
17052   return NULL;
17053 }
17054 
17055 
_wrap_IntVector_insert(PyObject * self,PyObject * args)17056 SWIGINTERN PyObject *_wrap_IntVector_insert(PyObject *self, PyObject *args) {
17057   Py_ssize_t argc;
17058   PyObject *argv[5] = {
17059     0
17060   };
17061 
17062   if (!(argc = SWIG_Python_UnpackTuple(args, "IntVector_insert", 0, 4, argv))) SWIG_fail;
17063   --argc;
17064   if (argc == 3) {
17065     int _v;
17066     int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
17067     _v = SWIG_CheckState(res);
17068     if (_v) {
17069       swig::SwigPyIterator *iter = 0;
17070       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
17071       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< int >::iterator > *>(iter) != 0));
17072       if (_v) {
17073         {
17074           int res = SWIG_AsVal_int(argv[2], NULL);
17075           _v = SWIG_CheckState(res);
17076         }
17077         if (_v) {
17078           return _wrap_IntVector_insert__SWIG_0(self, argc, argv);
17079         }
17080       }
17081     }
17082   }
17083   if (argc == 4) {
17084     int _v;
17085     int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
17086     _v = SWIG_CheckState(res);
17087     if (_v) {
17088       swig::SwigPyIterator *iter = 0;
17089       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
17090       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< int >::iterator > *>(iter) != 0));
17091       if (_v) {
17092         {
17093           int res = SWIG_AsVal_size_t(argv[2], NULL);
17094           _v = SWIG_CheckState(res);
17095         }
17096         if (_v) {
17097           {
17098             int res = SWIG_AsVal_int(argv[3], NULL);
17099             _v = SWIG_CheckState(res);
17100           }
17101           if (_v) {
17102             return _wrap_IntVector_insert__SWIG_1(self, argc, argv);
17103           }
17104         }
17105       }
17106     }
17107   }
17108 
17109 fail:
17110   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntVector_insert'.\n"
17111     "  Possible C/C++ prototypes are:\n"
17112     "    std::vector< int >::insert(std::vector< int >::iterator,std::vector< int >::value_type const &)\n"
17113     "    std::vector< int >::insert(std::vector< int >::iterator,std::vector< int >::size_type,std::vector< int >::value_type const &)\n");
17114   return 0;
17115 }
17116 
17117 
_wrap_IntVector_reserve(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)17118 SWIGINTERN PyObject *_wrap_IntVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17119   PyObject *resultobj = 0;
17120   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
17121   std::vector< int >::size_type arg2 ;
17122   void *argp1 = 0 ;
17123   int res1 = 0 ;
17124   size_t val2 ;
17125   int ecode2 = 0 ;
17126   PyObject * obj0 = 0 ;
17127   PyObject * obj1 = 0 ;
17128   char * kwnames[] = {
17129     (char *)"self",  (char *)"n",  NULL
17130   };
17131 
17132   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:IntVector_reserve", kwnames, &obj0, &obj1)) SWIG_fail;
17133   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
17134   if (!SWIG_IsOK(res1)) {
17135     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_reserve" "', argument " "1"" of type '" "std::vector< int > *""'");
17136   }
17137   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
17138   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
17139   if (!SWIG_IsOK(ecode2)) {
17140     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_reserve" "', argument " "2"" of type '" "std::vector< int >::size_type""'");
17141   }
17142   arg2 = static_cast< std::vector< int >::size_type >(val2);
17143   {
17144     try {
17145       (arg1)->reserve(arg2);
17146     } catch (const std::exception& e) {
17147       SWIG_exception(SWIG_RuntimeError, e.what());
17148     }
17149   }
17150   resultobj = SWIG_Py_Void();
17151   return resultobj;
17152 fail:
17153   return NULL;
17154 }
17155 
17156 
_wrap_IntVector_capacity(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17157 SWIGINTERN PyObject *_wrap_IntVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17158   PyObject *resultobj = 0;
17159   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
17160   void *argp1 = 0 ;
17161   int res1 = 0 ;
17162   PyObject *swig_obj[1] ;
17163   std::vector< int >::size_type result;
17164 
17165   if (!args) SWIG_fail;
17166   swig_obj[0] = args;
17167   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
17168   if (!SWIG_IsOK(res1)) {
17169     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_capacity" "', argument " "1"" of type '" "std::vector< int > const *""'");
17170   }
17171   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
17172   {
17173     try {
17174       result = ((std::vector< int > const *)arg1)->capacity();
17175     } catch (const std::exception& e) {
17176       SWIG_exception(SWIG_RuntimeError, e.what());
17177     }
17178   }
17179   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
17180   return resultobj;
17181 fail:
17182   return NULL;
17183 }
17184 
17185 
_wrap_delete_IntVector(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17186 SWIGINTERN PyObject *_wrap_delete_IntVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17187   PyObject *resultobj = 0;
17188   std::vector< int > *arg1 = (std::vector< int > *) 0 ;
17189   void *argp1 = 0 ;
17190   int res1 = 0 ;
17191   PyObject *swig_obj[1] ;
17192 
17193   if (!args) SWIG_fail;
17194   swig_obj[0] = args;
17195   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_DISOWN |  0 );
17196   if (!SWIG_IsOK(res1)) {
17197     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntVector" "', argument " "1"" of type '" "std::vector< int > *""'");
17198   }
17199   arg1 = reinterpret_cast< std::vector< int > * >(argp1);
17200   {
17201     try {
17202       delete arg1;
17203     } catch (const std::exception& e) {
17204       SWIG_exception(SWIG_RuntimeError, e.what());
17205     }
17206   }
17207   resultobj = SWIG_Py_Void();
17208   return resultobj;
17209 fail:
17210   return NULL;
17211 }
17212 
17213 
IntVector_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17214 SWIGINTERN PyObject *IntVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17215   PyObject *obj;
17216   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
17217   SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_NewClientData(obj));
17218   return SWIG_Py_Void();
17219 }
17220 
IntVector_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17221 SWIGINTERN PyObject *IntVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17222   return SWIG_Python_InitShadowInstance(args);
17223 }
17224 
_wrap_UIntVector_iterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17225 SWIGINTERN PyObject *_wrap_UIntVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17226   PyObject *resultobj = 0;
17227   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
17228   PyObject **arg2 = (PyObject **) 0 ;
17229   void *argp1 = 0 ;
17230   int res1 = 0 ;
17231   PyObject *swig_obj[1] ;
17232   swig::SwigPyIterator *result = 0 ;
17233 
17234   arg2 = &swig_obj[0];
17235   if (!args) SWIG_fail;
17236   swig_obj[0] = args;
17237   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
17238   if (!SWIG_IsOK(res1)) {
17239     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_iterator" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
17240   }
17241   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
17242   {
17243     try {
17244       result = (swig::SwigPyIterator *)std_vector_Sl_unsigned_SS_int_Sg__iterator(arg1,arg2);
17245     } catch (const std::exception& e) {
17246       SWIG_exception(SWIG_RuntimeError, e.what());
17247     }
17248   }
17249   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
17250   return resultobj;
17251 fail:
17252   return NULL;
17253 }
17254 
17255 
_wrap_UIntVector___nonzero__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17256 SWIGINTERN PyObject *_wrap_UIntVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17257   PyObject *resultobj = 0;
17258   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
17259   void *argp1 = 0 ;
17260   int res1 = 0 ;
17261   PyObject *swig_obj[1] ;
17262   bool result;
17263 
17264   if (!args) SWIG_fail;
17265   swig_obj[0] = args;
17266   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
17267   if (!SWIG_IsOK(res1)) {
17268     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector___nonzero__" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'");
17269   }
17270   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
17271   {
17272     try {
17273       result = (bool)std_vector_Sl_unsigned_SS_int_Sg____nonzero__((std::vector< unsigned int > const *)arg1);
17274     } catch (const std::exception& e) {
17275       SWIG_exception(SWIG_RuntimeError, e.what());
17276     }
17277   }
17278   resultobj = SWIG_From_bool(static_cast< bool >(result));
17279   return resultobj;
17280 fail:
17281   return NULL;
17282 }
17283 
17284 
_wrap_UIntVector___bool__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17285 SWIGINTERN PyObject *_wrap_UIntVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17286   PyObject *resultobj = 0;
17287   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
17288   void *argp1 = 0 ;
17289   int res1 = 0 ;
17290   PyObject *swig_obj[1] ;
17291   bool result;
17292 
17293   if (!args) SWIG_fail;
17294   swig_obj[0] = args;
17295   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
17296   if (!SWIG_IsOK(res1)) {
17297     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector___bool__" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'");
17298   }
17299   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
17300   {
17301     try {
17302       result = (bool)std_vector_Sl_unsigned_SS_int_Sg____bool__((std::vector< unsigned int > const *)arg1);
17303     } catch (const std::exception& e) {
17304       SWIG_exception(SWIG_RuntimeError, e.what());
17305     }
17306   }
17307   resultobj = SWIG_From_bool(static_cast< bool >(result));
17308   return resultobj;
17309 fail:
17310   return NULL;
17311 }
17312 
17313 
_wrap_UIntVector___len__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17314 SWIGINTERN PyObject *_wrap_UIntVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17315   PyObject *resultobj = 0;
17316   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
17317   void *argp1 = 0 ;
17318   int res1 = 0 ;
17319   PyObject *swig_obj[1] ;
17320   std::vector< unsigned int >::size_type result;
17321 
17322   if (!args) SWIG_fail;
17323   swig_obj[0] = args;
17324   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
17325   if (!SWIG_IsOK(res1)) {
17326     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector___len__" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'");
17327   }
17328   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
17329   {
17330     try {
17331       result = std_vector_Sl_unsigned_SS_int_Sg____len__((std::vector< unsigned int > const *)arg1);
17332     } catch (const std::exception& e) {
17333       SWIG_exception(SWIG_RuntimeError, e.what());
17334     }
17335   }
17336   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
17337   return resultobj;
17338 fail:
17339   return NULL;
17340 }
17341 
17342 
_wrap_UIntVector___getslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)17343 SWIGINTERN PyObject *_wrap_UIntVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17344   PyObject *resultobj = 0;
17345   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
17346   std::vector< unsigned int >::difference_type arg2 ;
17347   std::vector< unsigned int >::difference_type arg3 ;
17348   void *argp1 = 0 ;
17349   int res1 = 0 ;
17350   ptrdiff_t val2 ;
17351   int ecode2 = 0 ;
17352   ptrdiff_t val3 ;
17353   int ecode3 = 0 ;
17354   PyObject * obj0 = 0 ;
17355   PyObject * obj1 = 0 ;
17356   PyObject * obj2 = 0 ;
17357   char * kwnames[] = {
17358     (char *)"self",  (char *)"i",  (char *)"j",  NULL
17359   };
17360   std::vector< unsigned int,std::allocator< unsigned int > > *result = 0 ;
17361 
17362   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:UIntVector___getslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
17363   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
17364   if (!SWIG_IsOK(res1)) {
17365     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector___getslice__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
17366   }
17367   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
17368   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
17369   if (!SWIG_IsOK(ecode2)) {
17370     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UIntVector___getslice__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'");
17371   }
17372   arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2);
17373   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
17374   if (!SWIG_IsOK(ecode3)) {
17375     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "UIntVector___getslice__" "', argument " "3"" of type '" "std::vector< unsigned int >::difference_type""'");
17376   }
17377   arg3 = static_cast< std::vector< unsigned int >::difference_type >(val3);
17378   {
17379     try {
17380       try {
17381         result = (std::vector< unsigned int,std::allocator< unsigned int > > *)std_vector_Sl_unsigned_SS_int_Sg____getslice__(arg1,arg2,arg3);
17382       } catch(std::out_of_range &_e) {
17383         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
17384       } catch(std::invalid_argument &_e) {
17385         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
17386       }
17387     } catch (const std::exception& e) {
17388       SWIG_exception(SWIG_RuntimeError, e.what());
17389     }
17390   }
17391   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_OWN |  0 );
17392   return resultobj;
17393 fail:
17394   return NULL;
17395 }
17396 
17397 
_wrap_UIntVector___setslice____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)17398 SWIGINTERN PyObject *_wrap_UIntVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
17399   PyObject *resultobj = 0;
17400   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
17401   std::vector< unsigned int >::difference_type arg2 ;
17402   std::vector< unsigned int >::difference_type arg3 ;
17403   void *argp1 = 0 ;
17404   int res1 = 0 ;
17405   ptrdiff_t val2 ;
17406   int ecode2 = 0 ;
17407   ptrdiff_t val3 ;
17408   int ecode3 = 0 ;
17409 
17410   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17411   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
17412   if (!SWIG_IsOK(res1)) {
17413     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector___setslice__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
17414   }
17415   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
17416   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
17417   if (!SWIG_IsOK(ecode2)) {
17418     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UIntVector___setslice__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'");
17419   }
17420   arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2);
17421   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
17422   if (!SWIG_IsOK(ecode3)) {
17423     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "UIntVector___setslice__" "', argument " "3"" of type '" "std::vector< unsigned int >::difference_type""'");
17424   }
17425   arg3 = static_cast< std::vector< unsigned int >::difference_type >(val3);
17426   {
17427     try {
17428       try {
17429         std_vector_Sl_unsigned_SS_int_Sg____setslice____SWIG_0(arg1,arg2,arg3);
17430       } catch(std::out_of_range &_e) {
17431         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
17432       } catch(std::invalid_argument &_e) {
17433         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
17434       }
17435     } catch (const std::exception& e) {
17436       SWIG_exception(SWIG_RuntimeError, e.what());
17437     }
17438   }
17439   resultobj = SWIG_Py_Void();
17440   return resultobj;
17441 fail:
17442   return NULL;
17443 }
17444 
17445 
_wrap_UIntVector___setslice____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)17446 SWIGINTERN PyObject *_wrap_UIntVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
17447   PyObject *resultobj = 0;
17448   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
17449   std::vector< unsigned int >::difference_type arg2 ;
17450   std::vector< unsigned int >::difference_type arg3 ;
17451   std::vector< unsigned int,std::allocator< unsigned int > > *arg4 = 0 ;
17452   void *argp1 = 0 ;
17453   int res1 = 0 ;
17454   ptrdiff_t val2 ;
17455   int ecode2 = 0 ;
17456   ptrdiff_t val3 ;
17457   int ecode3 = 0 ;
17458   int res4 = SWIG_OLDOBJ ;
17459 
17460   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17461   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
17462   if (!SWIG_IsOK(res1)) {
17463     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector___setslice__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
17464   }
17465   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
17466   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
17467   if (!SWIG_IsOK(ecode2)) {
17468     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UIntVector___setslice__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'");
17469   }
17470   arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2);
17471   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
17472   if (!SWIG_IsOK(ecode3)) {
17473     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "UIntVector___setslice__" "', argument " "3"" of type '" "std::vector< unsigned int >::difference_type""'");
17474   }
17475   arg3 = static_cast< std::vector< unsigned int >::difference_type >(val3);
17476   {
17477     std::vector< unsigned int,std::allocator< unsigned int > > *ptr = (std::vector< unsigned int,std::allocator< unsigned int > > *)0;
17478     res4 = swig::asptr(swig_obj[3], &ptr);
17479     if (!SWIG_IsOK(res4)) {
17480       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "UIntVector___setslice__" "', argument " "4"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'");
17481     }
17482     if (!ptr) {
17483       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "UIntVector___setslice__" "', argument " "4"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'");
17484     }
17485     arg4 = ptr;
17486   }
17487   {
17488     try {
17489       try {
17490         std_vector_Sl_unsigned_SS_int_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< unsigned int,std::allocator< unsigned int > > const &)*arg4);
17491       } catch(std::out_of_range &_e) {
17492         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
17493       } catch(std::invalid_argument &_e) {
17494         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
17495       }
17496     } catch (const std::exception& e) {
17497       SWIG_exception(SWIG_RuntimeError, e.what());
17498     }
17499   }
17500   resultobj = SWIG_Py_Void();
17501   if (SWIG_IsNewObj(res4)) delete arg4;
17502   return resultobj;
17503 fail:
17504   if (SWIG_IsNewObj(res4)) delete arg4;
17505   return NULL;
17506 }
17507 
17508 
_wrap_UIntVector___setslice__(PyObject * self,PyObject * args)17509 SWIGINTERN PyObject *_wrap_UIntVector___setslice__(PyObject *self, PyObject *args) {
17510   Py_ssize_t argc;
17511   PyObject *argv[5] = {
17512     0
17513   };
17514 
17515   if (!(argc = SWIG_Python_UnpackTuple(args, "UIntVector___setslice__", 0, 4, argv))) SWIG_fail;
17516   --argc;
17517   if (argc == 3) {
17518     int _v;
17519     int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
17520     _v = SWIG_CheckState(res);
17521     if (_v) {
17522       {
17523         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
17524         _v = SWIG_CheckState(res);
17525       }
17526       if (_v) {
17527         {
17528           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
17529           _v = SWIG_CheckState(res);
17530         }
17531         if (_v) {
17532           return _wrap_UIntVector___setslice____SWIG_0(self, argc, argv);
17533         }
17534       }
17535     }
17536   }
17537   if (argc == 4) {
17538     int _v;
17539     int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
17540     _v = SWIG_CheckState(res);
17541     if (_v) {
17542       {
17543         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
17544         _v = SWIG_CheckState(res);
17545       }
17546       if (_v) {
17547         {
17548           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
17549           _v = SWIG_CheckState(res);
17550         }
17551         if (_v) {
17552           int res = swig::asptr(argv[3], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
17553           _v = SWIG_CheckState(res);
17554           if (_v) {
17555             return _wrap_UIntVector___setslice____SWIG_1(self, argc, argv);
17556           }
17557         }
17558       }
17559     }
17560   }
17561 
17562 fail:
17563   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'UIntVector___setslice__'.\n"
17564     "  Possible C/C++ prototypes are:\n"
17565     "    std::vector< unsigned int >::__setslice__(std::vector< unsigned int >::difference_type,std::vector< unsigned int >::difference_type)\n"
17566     "    std::vector< unsigned int >::__setslice__(std::vector< unsigned int >::difference_type,std::vector< unsigned int >::difference_type,std::vector< unsigned int,std::allocator< unsigned int > > const &)\n");
17567   return 0;
17568 }
17569 
17570 
_wrap_UIntVector___delslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)17571 SWIGINTERN PyObject *_wrap_UIntVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17572   PyObject *resultobj = 0;
17573   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
17574   std::vector< unsigned int >::difference_type arg2 ;
17575   std::vector< unsigned int >::difference_type arg3 ;
17576   void *argp1 = 0 ;
17577   int res1 = 0 ;
17578   ptrdiff_t val2 ;
17579   int ecode2 = 0 ;
17580   ptrdiff_t val3 ;
17581   int ecode3 = 0 ;
17582   PyObject * obj0 = 0 ;
17583   PyObject * obj1 = 0 ;
17584   PyObject * obj2 = 0 ;
17585   char * kwnames[] = {
17586     (char *)"self",  (char *)"i",  (char *)"j",  NULL
17587   };
17588 
17589   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:UIntVector___delslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
17590   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
17591   if (!SWIG_IsOK(res1)) {
17592     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector___delslice__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
17593   }
17594   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
17595   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
17596   if (!SWIG_IsOK(ecode2)) {
17597     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UIntVector___delslice__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'");
17598   }
17599   arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2);
17600   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
17601   if (!SWIG_IsOK(ecode3)) {
17602     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "UIntVector___delslice__" "', argument " "3"" of type '" "std::vector< unsigned int >::difference_type""'");
17603   }
17604   arg3 = static_cast< std::vector< unsigned int >::difference_type >(val3);
17605   {
17606     try {
17607       try {
17608         std_vector_Sl_unsigned_SS_int_Sg____delslice__(arg1,arg2,arg3);
17609       } catch(std::out_of_range &_e) {
17610         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
17611       } catch(std::invalid_argument &_e) {
17612         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
17613       }
17614     } catch (const std::exception& e) {
17615       SWIG_exception(SWIG_RuntimeError, e.what());
17616     }
17617   }
17618   resultobj = SWIG_Py_Void();
17619   return resultobj;
17620 fail:
17621   return NULL;
17622 }
17623 
17624 
_wrap_UIntVector___delitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)17625 SWIGINTERN PyObject *_wrap_UIntVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
17626   PyObject *resultobj = 0;
17627   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
17628   std::vector< unsigned int >::difference_type arg2 ;
17629   void *argp1 = 0 ;
17630   int res1 = 0 ;
17631   ptrdiff_t val2 ;
17632   int ecode2 = 0 ;
17633 
17634   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17635   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
17636   if (!SWIG_IsOK(res1)) {
17637     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector___delitem__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
17638   }
17639   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
17640   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
17641   if (!SWIG_IsOK(ecode2)) {
17642     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UIntVector___delitem__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'");
17643   }
17644   arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2);
17645   {
17646     try {
17647       try {
17648         std_vector_Sl_unsigned_SS_int_Sg____delitem____SWIG_0(arg1,arg2);
17649       } catch(std::out_of_range &_e) {
17650         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
17651       } catch(std::invalid_argument &_e) {
17652         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
17653       }
17654     } catch (const std::exception& e) {
17655       SWIG_exception(SWIG_RuntimeError, e.what());
17656     }
17657   }
17658   resultobj = SWIG_Py_Void();
17659   return resultobj;
17660 fail:
17661   return NULL;
17662 }
17663 
17664 
_wrap_UIntVector___getitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)17665 SWIGINTERN PyObject *_wrap_UIntVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
17666   PyObject *resultobj = 0;
17667   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
17668   PySliceObject *arg2 = (PySliceObject *) 0 ;
17669   void *argp1 = 0 ;
17670   int res1 = 0 ;
17671   std::vector< unsigned int,std::allocator< unsigned int > > *result = 0 ;
17672 
17673   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17674   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
17675   if (!SWIG_IsOK(res1)) {
17676     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector___getitem__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
17677   }
17678   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
17679   {
17680     if (!PySlice_Check(swig_obj[1])) {
17681       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UIntVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
17682     }
17683     arg2 = (PySliceObject *) swig_obj[1];
17684   }
17685   {
17686     try {
17687       try {
17688         result = (std::vector< unsigned int,std::allocator< unsigned int > > *)std_vector_Sl_unsigned_SS_int_Sg____getitem____SWIG_0(arg1,arg2);
17689       } catch(std::out_of_range &_e) {
17690         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
17691       } catch(std::invalid_argument &_e) {
17692         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
17693       }
17694     } catch (const std::exception& e) {
17695       SWIG_exception(SWIG_RuntimeError, e.what());
17696     }
17697   }
17698   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_OWN |  0 );
17699   return resultobj;
17700 fail:
17701   return NULL;
17702 }
17703 
17704 
_wrap_UIntVector___setitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)17705 SWIGINTERN PyObject *_wrap_UIntVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
17706   PyObject *resultobj = 0;
17707   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
17708   PySliceObject *arg2 = (PySliceObject *) 0 ;
17709   std::vector< unsigned int,std::allocator< unsigned int > > *arg3 = 0 ;
17710   void *argp1 = 0 ;
17711   int res1 = 0 ;
17712   int res3 = SWIG_OLDOBJ ;
17713 
17714   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17715   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
17716   if (!SWIG_IsOK(res1)) {
17717     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector___setitem__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
17718   }
17719   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
17720   {
17721     if (!PySlice_Check(swig_obj[1])) {
17722       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UIntVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
17723     }
17724     arg2 = (PySliceObject *) swig_obj[1];
17725   }
17726   {
17727     std::vector< unsigned int,std::allocator< unsigned int > > *ptr = (std::vector< unsigned int,std::allocator< unsigned int > > *)0;
17728     res3 = swig::asptr(swig_obj[2], &ptr);
17729     if (!SWIG_IsOK(res3)) {
17730       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "UIntVector___setitem__" "', argument " "3"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'");
17731     }
17732     if (!ptr) {
17733       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "UIntVector___setitem__" "', argument " "3"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'");
17734     }
17735     arg3 = ptr;
17736   }
17737   {
17738     try {
17739       try {
17740         std_vector_Sl_unsigned_SS_int_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< unsigned int,std::allocator< unsigned int > > const &)*arg3);
17741       } catch(std::out_of_range &_e) {
17742         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
17743       } catch(std::invalid_argument &_e) {
17744         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
17745       }
17746     } catch (const std::exception& e) {
17747       SWIG_exception(SWIG_RuntimeError, e.what());
17748     }
17749   }
17750   resultobj = SWIG_Py_Void();
17751   if (SWIG_IsNewObj(res3)) delete arg3;
17752   return resultobj;
17753 fail:
17754   if (SWIG_IsNewObj(res3)) delete arg3;
17755   return NULL;
17756 }
17757 
17758 
_wrap_UIntVector___setitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)17759 SWIGINTERN PyObject *_wrap_UIntVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
17760   PyObject *resultobj = 0;
17761   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
17762   PySliceObject *arg2 = (PySliceObject *) 0 ;
17763   void *argp1 = 0 ;
17764   int res1 = 0 ;
17765 
17766   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17767   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
17768   if (!SWIG_IsOK(res1)) {
17769     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector___setitem__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
17770   }
17771   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
17772   {
17773     if (!PySlice_Check(swig_obj[1])) {
17774       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UIntVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
17775     }
17776     arg2 = (PySliceObject *) swig_obj[1];
17777   }
17778   {
17779     try {
17780       try {
17781         std_vector_Sl_unsigned_SS_int_Sg____setitem____SWIG_1(arg1,arg2);
17782       } catch(std::out_of_range &_e) {
17783         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
17784       } catch(std::invalid_argument &_e) {
17785         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
17786       }
17787     } catch (const std::exception& e) {
17788       SWIG_exception(SWIG_RuntimeError, e.what());
17789     }
17790   }
17791   resultobj = SWIG_Py_Void();
17792   return resultobj;
17793 fail:
17794   return NULL;
17795 }
17796 
17797 
_wrap_UIntVector___delitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)17798 SWIGINTERN PyObject *_wrap_UIntVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
17799   PyObject *resultobj = 0;
17800   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
17801   PySliceObject *arg2 = (PySliceObject *) 0 ;
17802   void *argp1 = 0 ;
17803   int res1 = 0 ;
17804 
17805   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17806   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
17807   if (!SWIG_IsOK(res1)) {
17808     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector___delitem__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
17809   }
17810   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
17811   {
17812     if (!PySlice_Check(swig_obj[1])) {
17813       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UIntVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
17814     }
17815     arg2 = (PySliceObject *) swig_obj[1];
17816   }
17817   {
17818     try {
17819       try {
17820         std_vector_Sl_unsigned_SS_int_Sg____delitem____SWIG_1(arg1,arg2);
17821       } catch(std::out_of_range &_e) {
17822         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
17823       } catch(std::invalid_argument &_e) {
17824         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
17825       }
17826     } catch (const std::exception& e) {
17827       SWIG_exception(SWIG_RuntimeError, e.what());
17828     }
17829   }
17830   resultobj = SWIG_Py_Void();
17831   return resultobj;
17832 fail:
17833   return NULL;
17834 }
17835 
17836 
_wrap_UIntVector___delitem__(PyObject * self,PyObject * args)17837 SWIGINTERN PyObject *_wrap_UIntVector___delitem__(PyObject *self, PyObject *args) {
17838   Py_ssize_t argc;
17839   PyObject *argv[3] = {
17840     0
17841   };
17842 
17843   if (!(argc = SWIG_Python_UnpackTuple(args, "UIntVector___delitem__", 0, 2, argv))) SWIG_fail;
17844   --argc;
17845   if (argc == 2) {
17846     int _v;
17847     int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
17848     _v = SWIG_CheckState(res);
17849     if (_v) {
17850       {
17851         _v = PySlice_Check(argv[1]);
17852       }
17853       if (_v) {
17854         return _wrap_UIntVector___delitem____SWIG_1(self, argc, argv);
17855       }
17856     }
17857   }
17858   if (argc == 2) {
17859     int _v;
17860     int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
17861     _v = SWIG_CheckState(res);
17862     if (_v) {
17863       {
17864         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
17865         _v = SWIG_CheckState(res);
17866       }
17867       if (_v) {
17868         return _wrap_UIntVector___delitem____SWIG_0(self, argc, argv);
17869       }
17870     }
17871   }
17872 
17873 fail:
17874   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'UIntVector___delitem__'.\n"
17875     "  Possible C/C++ prototypes are:\n"
17876     "    std::vector< unsigned int >::__delitem__(std::vector< unsigned int >::difference_type)\n"
17877     "    std::vector< unsigned int >::__delitem__(PySliceObject *)\n");
17878   return 0;
17879 }
17880 
17881 
_wrap_UIntVector___getitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)17882 SWIGINTERN PyObject *_wrap_UIntVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
17883   PyObject *resultobj = 0;
17884   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
17885   std::vector< unsigned int >::difference_type arg2 ;
17886   void *argp1 = 0 ;
17887   int res1 = 0 ;
17888   ptrdiff_t val2 ;
17889   int ecode2 = 0 ;
17890   std::vector< unsigned int >::value_type *result = 0 ;
17891 
17892   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17893   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
17894   if (!SWIG_IsOK(res1)) {
17895     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector___getitem__" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'");
17896   }
17897   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
17898   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
17899   if (!SWIG_IsOK(ecode2)) {
17900     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UIntVector___getitem__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'");
17901   }
17902   arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2);
17903   {
17904     try {
17905       try {
17906         result = (std::vector< unsigned int >::value_type *) &std_vector_Sl_unsigned_SS_int_Sg____getitem____SWIG_1((std::vector< unsigned int > const *)arg1,arg2);
17907       } catch(std::out_of_range &_e) {
17908         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
17909       }
17910     } catch (const std::exception& e) {
17911       SWIG_exception(SWIG_RuntimeError, e.what());
17912     }
17913   }
17914   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(*result));
17915   (void)swig::container_owner<swig::traits<std::vector< unsigned int >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
17916   return resultobj;
17917 fail:
17918   return NULL;
17919 }
17920 
17921 
_wrap_UIntVector___getitem__(PyObject * self,PyObject * args)17922 SWIGINTERN PyObject *_wrap_UIntVector___getitem__(PyObject *self, PyObject *args) {
17923   Py_ssize_t argc;
17924   PyObject *argv[3] = {
17925     0
17926   };
17927 
17928   if (!(argc = SWIG_Python_UnpackTuple(args, "UIntVector___getitem__", 0, 2, argv))) SWIG_fail;
17929   --argc;
17930   if (argc == 2) {
17931     int _v;
17932     int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
17933     _v = SWIG_CheckState(res);
17934     if (_v) {
17935       {
17936         _v = PySlice_Check(argv[1]);
17937       }
17938       if (_v) {
17939         return _wrap_UIntVector___getitem____SWIG_0(self, argc, argv);
17940       }
17941     }
17942   }
17943   if (argc == 2) {
17944     int _v;
17945     int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
17946     _v = SWIG_CheckState(res);
17947     if (_v) {
17948       {
17949         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
17950         _v = SWIG_CheckState(res);
17951       }
17952       if (_v) {
17953         return _wrap_UIntVector___getitem____SWIG_1(self, argc, argv);
17954       }
17955     }
17956   }
17957 
17958 fail:
17959   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'UIntVector___getitem__'.\n"
17960     "  Possible C/C++ prototypes are:\n"
17961     "    std::vector< unsigned int >::__getitem__(PySliceObject *)\n"
17962     "    std::vector< unsigned int >::__getitem__(std::vector< unsigned int >::difference_type) const\n");
17963   return 0;
17964 }
17965 
17966 
_wrap_UIntVector___setitem____SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)17967 SWIGINTERN PyObject *_wrap_UIntVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
17968   PyObject *resultobj = 0;
17969   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
17970   std::vector< unsigned int >::difference_type arg2 ;
17971   std::vector< unsigned int >::value_type *arg3 = 0 ;
17972   void *argp1 = 0 ;
17973   int res1 = 0 ;
17974   ptrdiff_t val2 ;
17975   int ecode2 = 0 ;
17976   std::vector< unsigned int >::value_type temp3 ;
17977   unsigned int val3 ;
17978   int ecode3 = 0 ;
17979 
17980   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17981   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
17982   if (!SWIG_IsOK(res1)) {
17983     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector___setitem__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
17984   }
17985   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
17986   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
17987   if (!SWIG_IsOK(ecode2)) {
17988     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UIntVector___setitem__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'");
17989   }
17990   arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2);
17991   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
17992   if (!SWIG_IsOK(ecode3)) {
17993     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "UIntVector___setitem__" "', argument " "3"" of type '" "std::vector< unsigned int >::value_type""'");
17994   }
17995   temp3 = static_cast< std::vector< unsigned int >::value_type >(val3);
17996   arg3 = &temp3;
17997   {
17998     try {
17999       try {
18000         std_vector_Sl_unsigned_SS_int_Sg____setitem____SWIG_2(arg1,arg2,(unsigned int const &)*arg3);
18001       } catch(std::out_of_range &_e) {
18002         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
18003       }
18004     } catch (const std::exception& e) {
18005       SWIG_exception(SWIG_RuntimeError, e.what());
18006     }
18007   }
18008   resultobj = SWIG_Py_Void();
18009   return resultobj;
18010 fail:
18011   return NULL;
18012 }
18013 
18014 
_wrap_UIntVector___setitem__(PyObject * self,PyObject * args)18015 SWIGINTERN PyObject *_wrap_UIntVector___setitem__(PyObject *self, PyObject *args) {
18016   Py_ssize_t argc;
18017   PyObject *argv[4] = {
18018     0
18019   };
18020 
18021   if (!(argc = SWIG_Python_UnpackTuple(args, "UIntVector___setitem__", 0, 3, argv))) SWIG_fail;
18022   --argc;
18023   if (argc == 2) {
18024     int _v;
18025     int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
18026     _v = SWIG_CheckState(res);
18027     if (_v) {
18028       {
18029         _v = PySlice_Check(argv[1]);
18030       }
18031       if (_v) {
18032         return _wrap_UIntVector___setitem____SWIG_1(self, argc, argv);
18033       }
18034     }
18035   }
18036   if (argc == 3) {
18037     int _v;
18038     int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
18039     _v = SWIG_CheckState(res);
18040     if (_v) {
18041       {
18042         _v = PySlice_Check(argv[1]);
18043       }
18044       if (_v) {
18045         int res = swig::asptr(argv[2], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
18046         _v = SWIG_CheckState(res);
18047         if (_v) {
18048           return _wrap_UIntVector___setitem____SWIG_0(self, argc, argv);
18049         }
18050       }
18051     }
18052   }
18053   if (argc == 3) {
18054     int _v;
18055     int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
18056     _v = SWIG_CheckState(res);
18057     if (_v) {
18058       {
18059         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
18060         _v = SWIG_CheckState(res);
18061       }
18062       if (_v) {
18063         {
18064           int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
18065           _v = SWIG_CheckState(res);
18066         }
18067         if (_v) {
18068           return _wrap_UIntVector___setitem____SWIG_2(self, argc, argv);
18069         }
18070       }
18071     }
18072   }
18073 
18074 fail:
18075   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'UIntVector___setitem__'.\n"
18076     "  Possible C/C++ prototypes are:\n"
18077     "    std::vector< unsigned int >::__setitem__(PySliceObject *,std::vector< unsigned int,std::allocator< unsigned int > > const &)\n"
18078     "    std::vector< unsigned int >::__setitem__(PySliceObject *)\n"
18079     "    std::vector< unsigned int >::__setitem__(std::vector< unsigned int >::difference_type,std::vector< unsigned int >::value_type const &)\n");
18080   return 0;
18081 }
18082 
18083 
_wrap_UIntVector_pop(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18084 SWIGINTERN PyObject *_wrap_UIntVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18085   PyObject *resultobj = 0;
18086   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18087   void *argp1 = 0 ;
18088   int res1 = 0 ;
18089   PyObject *swig_obj[1] ;
18090   std::vector< unsigned int >::value_type result;
18091 
18092   if (!args) SWIG_fail;
18093   swig_obj[0] = args;
18094   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18095   if (!SWIG_IsOK(res1)) {
18096     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_pop" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
18097   }
18098   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18099   {
18100     try {
18101       try {
18102         result = (std::vector< unsigned int >::value_type)std_vector_Sl_unsigned_SS_int_Sg__pop(arg1);
18103       } catch(std::out_of_range &_e) {
18104         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
18105       }
18106     } catch (const std::exception& e) {
18107       SWIG_exception(SWIG_RuntimeError, e.what());
18108     }
18109   }
18110   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
18111   return resultobj;
18112 fail:
18113   return NULL;
18114 }
18115 
18116 
_wrap_UIntVector_append(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)18117 SWIGINTERN PyObject *_wrap_UIntVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18118   PyObject *resultobj = 0;
18119   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18120   std::vector< unsigned int >::value_type *arg2 = 0 ;
18121   void *argp1 = 0 ;
18122   int res1 = 0 ;
18123   std::vector< unsigned int >::value_type temp2 ;
18124   unsigned int val2 ;
18125   int ecode2 = 0 ;
18126   PyObject * obj0 = 0 ;
18127   PyObject * obj1 = 0 ;
18128   char * kwnames[] = {
18129     (char *)"self",  (char *)"x",  NULL
18130   };
18131 
18132   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:UIntVector_append", kwnames, &obj0, &obj1)) SWIG_fail;
18133   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18134   if (!SWIG_IsOK(res1)) {
18135     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_append" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
18136   }
18137   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18138   ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
18139   if (!SWIG_IsOK(ecode2)) {
18140     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UIntVector_append" "', argument " "2"" of type '" "std::vector< unsigned int >::value_type""'");
18141   }
18142   temp2 = static_cast< std::vector< unsigned int >::value_type >(val2);
18143   arg2 = &temp2;
18144   {
18145     try {
18146       std_vector_Sl_unsigned_SS_int_Sg__append(arg1,(unsigned int const &)*arg2);
18147     } catch (const std::exception& e) {
18148       SWIG_exception(SWIG_RuntimeError, e.what());
18149     }
18150   }
18151   resultobj = SWIG_Py_Void();
18152   return resultobj;
18153 fail:
18154   return NULL;
18155 }
18156 
18157 
_wrap_new_UIntVector__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))18158 SWIGINTERN PyObject *_wrap_new_UIntVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
18159   PyObject *resultobj = 0;
18160   std::vector< unsigned int > *result = 0 ;
18161 
18162   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
18163   {
18164     try {
18165       result = (std::vector< unsigned int > *)new std::vector< unsigned int >();
18166     } catch (const std::exception& e) {
18167       SWIG_exception(SWIG_RuntimeError, e.what());
18168     }
18169   }
18170   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_NEW |  0 );
18171   return resultobj;
18172 fail:
18173   return NULL;
18174 }
18175 
18176 
_wrap_new_UIntVector__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)18177 SWIGINTERN PyObject *_wrap_new_UIntVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
18178   PyObject *resultobj = 0;
18179   std::vector< unsigned int > *arg1 = 0 ;
18180   int res1 = SWIG_OLDOBJ ;
18181   std::vector< unsigned int > *result = 0 ;
18182 
18183   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
18184   {
18185     std::vector< unsigned int,std::allocator< unsigned int > > *ptr = (std::vector< unsigned int,std::allocator< unsigned int > > *)0;
18186     res1 = swig::asptr(swig_obj[0], &ptr);
18187     if (!SWIG_IsOK(res1)) {
18188       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_UIntVector" "', argument " "1"" of type '" "std::vector< unsigned int > const &""'");
18189     }
18190     if (!ptr) {
18191       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UIntVector" "', argument " "1"" of type '" "std::vector< unsigned int > const &""'");
18192     }
18193     arg1 = ptr;
18194   }
18195   {
18196     try {
18197       result = (std::vector< unsigned int > *)new std::vector< unsigned int >((std::vector< unsigned int > const &)*arg1);
18198     } catch (const std::exception& e) {
18199       SWIG_exception(SWIG_RuntimeError, e.what());
18200     }
18201   }
18202   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_NEW |  0 );
18203   if (SWIG_IsNewObj(res1)) delete arg1;
18204   return resultobj;
18205 fail:
18206   if (SWIG_IsNewObj(res1)) delete arg1;
18207   return NULL;
18208 }
18209 
18210 
_wrap_UIntVector_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18211 SWIGINTERN PyObject *_wrap_UIntVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18212   PyObject *resultobj = 0;
18213   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18214   void *argp1 = 0 ;
18215   int res1 = 0 ;
18216   PyObject *swig_obj[1] ;
18217   bool result;
18218 
18219   if (!args) SWIG_fail;
18220   swig_obj[0] = args;
18221   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18222   if (!SWIG_IsOK(res1)) {
18223     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_empty" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'");
18224   }
18225   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18226   {
18227     try {
18228       result = (bool)((std::vector< unsigned int > const *)arg1)->empty();
18229     } catch (const std::exception& e) {
18230       SWIG_exception(SWIG_RuntimeError, e.what());
18231     }
18232   }
18233   resultobj = SWIG_From_bool(static_cast< bool >(result));
18234   return resultobj;
18235 fail:
18236   return NULL;
18237 }
18238 
18239 
_wrap_UIntVector_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18240 SWIGINTERN PyObject *_wrap_UIntVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18241   PyObject *resultobj = 0;
18242   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18243   void *argp1 = 0 ;
18244   int res1 = 0 ;
18245   PyObject *swig_obj[1] ;
18246   std::vector< unsigned int >::size_type result;
18247 
18248   if (!args) SWIG_fail;
18249   swig_obj[0] = args;
18250   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18251   if (!SWIG_IsOK(res1)) {
18252     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_size" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'");
18253   }
18254   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18255   {
18256     try {
18257       result = ((std::vector< unsigned int > const *)arg1)->size();
18258     } catch (const std::exception& e) {
18259       SWIG_exception(SWIG_RuntimeError, e.what());
18260     }
18261   }
18262   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18263   return resultobj;
18264 fail:
18265   return NULL;
18266 }
18267 
18268 
_wrap_UIntVector_swap(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)18269 SWIGINTERN PyObject *_wrap_UIntVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18270   PyObject *resultobj = 0;
18271   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18272   std::vector< unsigned int > *arg2 = 0 ;
18273   void *argp1 = 0 ;
18274   int res1 = 0 ;
18275   void *argp2 = 0 ;
18276   int res2 = 0 ;
18277   PyObject * obj0 = 0 ;
18278   PyObject * obj1 = 0 ;
18279   char * kwnames[] = {
18280     (char *)"self",  (char *)"v",  NULL
18281   };
18282 
18283   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:UIntVector_swap", kwnames, &obj0, &obj1)) SWIG_fail;
18284   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18285   if (!SWIG_IsOK(res1)) {
18286     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_swap" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
18287   }
18288   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18289   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t,  0 );
18290   if (!SWIG_IsOK(res2)) {
18291     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UIntVector_swap" "', argument " "2"" of type '" "std::vector< unsigned int > &""'");
18292   }
18293   if (!argp2) {
18294     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "UIntVector_swap" "', argument " "2"" of type '" "std::vector< unsigned int > &""'");
18295   }
18296   arg2 = reinterpret_cast< std::vector< unsigned int > * >(argp2);
18297   {
18298     try {
18299       (arg1)->swap(*arg2);
18300     } catch (const std::exception& e) {
18301       SWIG_exception(SWIG_RuntimeError, e.what());
18302     }
18303   }
18304   resultobj = SWIG_Py_Void();
18305   return resultobj;
18306 fail:
18307   return NULL;
18308 }
18309 
18310 
_wrap_UIntVector_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18311 SWIGINTERN PyObject *_wrap_UIntVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18312   PyObject *resultobj = 0;
18313   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18314   void *argp1 = 0 ;
18315   int res1 = 0 ;
18316   PyObject *swig_obj[1] ;
18317   std::vector< unsigned int >::iterator result;
18318 
18319   if (!args) SWIG_fail;
18320   swig_obj[0] = args;
18321   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18322   if (!SWIG_IsOK(res1)) {
18323     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_begin" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
18324   }
18325   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18326   {
18327     try {
18328       result = (arg1)->begin();
18329     } catch (const std::exception& e) {
18330       SWIG_exception(SWIG_RuntimeError, e.what());
18331     }
18332   }
18333   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< unsigned int >::iterator & >(result)),
18334     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
18335   return resultobj;
18336 fail:
18337   return NULL;
18338 }
18339 
18340 
_wrap_UIntVector_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18341 SWIGINTERN PyObject *_wrap_UIntVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18342   PyObject *resultobj = 0;
18343   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18344   void *argp1 = 0 ;
18345   int res1 = 0 ;
18346   PyObject *swig_obj[1] ;
18347   std::vector< unsigned int >::iterator result;
18348 
18349   if (!args) SWIG_fail;
18350   swig_obj[0] = args;
18351   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18352   if (!SWIG_IsOK(res1)) {
18353     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_end" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
18354   }
18355   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18356   {
18357     try {
18358       result = (arg1)->end();
18359     } catch (const std::exception& e) {
18360       SWIG_exception(SWIG_RuntimeError, e.what());
18361     }
18362   }
18363   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< unsigned int >::iterator & >(result)),
18364     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
18365   return resultobj;
18366 fail:
18367   return NULL;
18368 }
18369 
18370 
_wrap_UIntVector_rbegin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18371 SWIGINTERN PyObject *_wrap_UIntVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18372   PyObject *resultobj = 0;
18373   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18374   void *argp1 = 0 ;
18375   int res1 = 0 ;
18376   PyObject *swig_obj[1] ;
18377   std::vector< unsigned int >::reverse_iterator result;
18378 
18379   if (!args) SWIG_fail;
18380   swig_obj[0] = args;
18381   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18382   if (!SWIG_IsOK(res1)) {
18383     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_rbegin" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
18384   }
18385   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18386   {
18387     try {
18388       result = (arg1)->rbegin();
18389     } catch (const std::exception& e) {
18390       SWIG_exception(SWIG_RuntimeError, e.what());
18391     }
18392   }
18393   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< unsigned int >::reverse_iterator & >(result)),
18394     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
18395   return resultobj;
18396 fail:
18397   return NULL;
18398 }
18399 
18400 
_wrap_UIntVector_rend(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18401 SWIGINTERN PyObject *_wrap_UIntVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18402   PyObject *resultobj = 0;
18403   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18404   void *argp1 = 0 ;
18405   int res1 = 0 ;
18406   PyObject *swig_obj[1] ;
18407   std::vector< unsigned int >::reverse_iterator result;
18408 
18409   if (!args) SWIG_fail;
18410   swig_obj[0] = args;
18411   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18412   if (!SWIG_IsOK(res1)) {
18413     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_rend" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
18414   }
18415   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18416   {
18417     try {
18418       result = (arg1)->rend();
18419     } catch (const std::exception& e) {
18420       SWIG_exception(SWIG_RuntimeError, e.what());
18421     }
18422   }
18423   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< unsigned int >::reverse_iterator & >(result)),
18424     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
18425   return resultobj;
18426 fail:
18427   return NULL;
18428 }
18429 
18430 
_wrap_UIntVector_clear(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18431 SWIGINTERN PyObject *_wrap_UIntVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18432   PyObject *resultobj = 0;
18433   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18434   void *argp1 = 0 ;
18435   int res1 = 0 ;
18436   PyObject *swig_obj[1] ;
18437 
18438   if (!args) SWIG_fail;
18439   swig_obj[0] = args;
18440   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18441   if (!SWIG_IsOK(res1)) {
18442     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_clear" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
18443   }
18444   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18445   {
18446     try {
18447       (arg1)->clear();
18448     } catch (const std::exception& e) {
18449       SWIG_exception(SWIG_RuntimeError, e.what());
18450     }
18451   }
18452   resultobj = SWIG_Py_Void();
18453   return resultobj;
18454 fail:
18455   return NULL;
18456 }
18457 
18458 
_wrap_UIntVector_get_allocator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18459 SWIGINTERN PyObject *_wrap_UIntVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18460   PyObject *resultobj = 0;
18461   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18462   void *argp1 = 0 ;
18463   int res1 = 0 ;
18464   PyObject *swig_obj[1] ;
18465   SwigValueWrapper< std::allocator< unsigned int > > result;
18466 
18467   if (!args) SWIG_fail;
18468   swig_obj[0] = args;
18469   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18470   if (!SWIG_IsOK(res1)) {
18471     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_get_allocator" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'");
18472   }
18473   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18474   {
18475     try {
18476       result = ((std::vector< unsigned int > const *)arg1)->get_allocator();
18477     } catch (const std::exception& e) {
18478       SWIG_exception(SWIG_RuntimeError, e.what());
18479     }
18480   }
18481   resultobj = SWIG_NewPointerObj((new std::vector< unsigned int >::allocator_type(static_cast< const std::vector< unsigned int >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_unsigned_int_t, SWIG_POINTER_OWN |  0 );
18482   return resultobj;
18483 fail:
18484   return NULL;
18485 }
18486 
18487 
_wrap_new_UIntVector__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)18488 SWIGINTERN PyObject *_wrap_new_UIntVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
18489   PyObject *resultobj = 0;
18490   std::vector< unsigned int >::size_type arg1 ;
18491   size_t val1 ;
18492   int ecode1 = 0 ;
18493   std::vector< unsigned int > *result = 0 ;
18494 
18495   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
18496   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
18497   if (!SWIG_IsOK(ecode1)) {
18498     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UIntVector" "', argument " "1"" of type '" "std::vector< unsigned int >::size_type""'");
18499   }
18500   arg1 = static_cast< std::vector< unsigned int >::size_type >(val1);
18501   {
18502     try {
18503       result = (std::vector< unsigned int > *)new std::vector< unsigned int >(arg1);
18504     } catch (const std::exception& e) {
18505       SWIG_exception(SWIG_RuntimeError, e.what());
18506     }
18507   }
18508   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_NEW |  0 );
18509   return resultobj;
18510 fail:
18511   return NULL;
18512 }
18513 
18514 
_wrap_UIntVector_pop_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18515 SWIGINTERN PyObject *_wrap_UIntVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18516   PyObject *resultobj = 0;
18517   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18518   void *argp1 = 0 ;
18519   int res1 = 0 ;
18520   PyObject *swig_obj[1] ;
18521 
18522   if (!args) SWIG_fail;
18523   swig_obj[0] = args;
18524   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18525   if (!SWIG_IsOK(res1)) {
18526     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_pop_back" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
18527   }
18528   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18529   {
18530     try {
18531       (arg1)->pop_back();
18532     } catch (const std::exception& e) {
18533       SWIG_exception(SWIG_RuntimeError, e.what());
18534     }
18535   }
18536   resultobj = SWIG_Py_Void();
18537   return resultobj;
18538 fail:
18539   return NULL;
18540 }
18541 
18542 
_wrap_UIntVector_resize__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)18543 SWIGINTERN PyObject *_wrap_UIntVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
18544   PyObject *resultobj = 0;
18545   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18546   std::vector< unsigned int >::size_type arg2 ;
18547   void *argp1 = 0 ;
18548   int res1 = 0 ;
18549   size_t val2 ;
18550   int ecode2 = 0 ;
18551 
18552   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
18553   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18554   if (!SWIG_IsOK(res1)) {
18555     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_resize" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
18556   }
18557   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18558   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
18559   if (!SWIG_IsOK(ecode2)) {
18560     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UIntVector_resize" "', argument " "2"" of type '" "std::vector< unsigned int >::size_type""'");
18561   }
18562   arg2 = static_cast< std::vector< unsigned int >::size_type >(val2);
18563   {
18564     try {
18565       (arg1)->resize(arg2);
18566     } catch (const std::exception& e) {
18567       SWIG_exception(SWIG_RuntimeError, e.what());
18568     }
18569   }
18570   resultobj = SWIG_Py_Void();
18571   return resultobj;
18572 fail:
18573   return NULL;
18574 }
18575 
18576 
_wrap_UIntVector_erase__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)18577 SWIGINTERN PyObject *_wrap_UIntVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
18578   PyObject *resultobj = 0;
18579   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18580   std::vector< unsigned int >::iterator arg2 ;
18581   void *argp1 = 0 ;
18582   int res1 = 0 ;
18583   swig::SwigPyIterator *iter2 = 0 ;
18584   int res2 ;
18585   std::vector< unsigned int >::iterator result;
18586 
18587   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
18588   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18589   if (!SWIG_IsOK(res1)) {
18590     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_erase" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
18591   }
18592   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18593   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
18594   if (!SWIG_IsOK(res2) || !iter2) {
18595     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UIntVector_erase" "', argument " "2"" of type '" "std::vector< unsigned int >::iterator""'");
18596   } else {
18597     swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *>(iter2);
18598     if (iter_t) {
18599       arg2 = iter_t->get_current();
18600     } else {
18601       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UIntVector_erase" "', argument " "2"" of type '" "std::vector< unsigned int >::iterator""'");
18602     }
18603   }
18604   {
18605     try {
18606       result = std_vector_Sl_unsigned_SS_int_Sg__erase__SWIG_0(arg1,arg2);
18607     } catch (const std::exception& e) {
18608       SWIG_exception(SWIG_RuntimeError, e.what());
18609     }
18610   }
18611   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< unsigned int >::iterator & >(result)),
18612     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
18613   return resultobj;
18614 fail:
18615   return NULL;
18616 }
18617 
18618 
_wrap_UIntVector_erase__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)18619 SWIGINTERN PyObject *_wrap_UIntVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
18620   PyObject *resultobj = 0;
18621   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18622   std::vector< unsigned int >::iterator arg2 ;
18623   std::vector< unsigned int >::iterator arg3 ;
18624   void *argp1 = 0 ;
18625   int res1 = 0 ;
18626   swig::SwigPyIterator *iter2 = 0 ;
18627   int res2 ;
18628   swig::SwigPyIterator *iter3 = 0 ;
18629   int res3 ;
18630   std::vector< unsigned int >::iterator result;
18631 
18632   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
18633   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18634   if (!SWIG_IsOK(res1)) {
18635     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_erase" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
18636   }
18637   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18638   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
18639   if (!SWIG_IsOK(res2) || !iter2) {
18640     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UIntVector_erase" "', argument " "2"" of type '" "std::vector< unsigned int >::iterator""'");
18641   } else {
18642     swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *>(iter2);
18643     if (iter_t) {
18644       arg2 = iter_t->get_current();
18645     } else {
18646       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UIntVector_erase" "', argument " "2"" of type '" "std::vector< unsigned int >::iterator""'");
18647     }
18648   }
18649   res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
18650   if (!SWIG_IsOK(res3) || !iter3) {
18651     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UIntVector_erase" "', argument " "3"" of type '" "std::vector< unsigned int >::iterator""'");
18652   } else {
18653     swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *>(iter3);
18654     if (iter_t) {
18655       arg3 = iter_t->get_current();
18656     } else {
18657       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UIntVector_erase" "', argument " "3"" of type '" "std::vector< unsigned int >::iterator""'");
18658     }
18659   }
18660   {
18661     try {
18662       result = std_vector_Sl_unsigned_SS_int_Sg__erase__SWIG_1(arg1,arg2,arg3);
18663     } catch (const std::exception& e) {
18664       SWIG_exception(SWIG_RuntimeError, e.what());
18665     }
18666   }
18667   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< unsigned int >::iterator & >(result)),
18668     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
18669   return resultobj;
18670 fail:
18671   return NULL;
18672 }
18673 
18674 
_wrap_UIntVector_erase(PyObject * self,PyObject * args)18675 SWIGINTERN PyObject *_wrap_UIntVector_erase(PyObject *self, PyObject *args) {
18676   Py_ssize_t argc;
18677   PyObject *argv[4] = {
18678     0
18679   };
18680 
18681   if (!(argc = SWIG_Python_UnpackTuple(args, "UIntVector_erase", 0, 3, argv))) SWIG_fail;
18682   --argc;
18683   if (argc == 2) {
18684     int _v;
18685     int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
18686     _v = SWIG_CheckState(res);
18687     if (_v) {
18688       swig::SwigPyIterator *iter = 0;
18689       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
18690       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *>(iter) != 0));
18691       if (_v) {
18692         return _wrap_UIntVector_erase__SWIG_0(self, argc, argv);
18693       }
18694     }
18695   }
18696   if (argc == 3) {
18697     int _v;
18698     int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
18699     _v = SWIG_CheckState(res);
18700     if (_v) {
18701       swig::SwigPyIterator *iter = 0;
18702       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
18703       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *>(iter) != 0));
18704       if (_v) {
18705         swig::SwigPyIterator *iter = 0;
18706         int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
18707         _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *>(iter) != 0));
18708         if (_v) {
18709           return _wrap_UIntVector_erase__SWIG_1(self, argc, argv);
18710         }
18711       }
18712     }
18713   }
18714 
18715 fail:
18716   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'UIntVector_erase'.\n"
18717     "  Possible C/C++ prototypes are:\n"
18718     "    std::vector< unsigned int >::erase(std::vector< unsigned int >::iterator)\n"
18719     "    std::vector< unsigned int >::erase(std::vector< unsigned int >::iterator,std::vector< unsigned int >::iterator)\n");
18720   return 0;
18721 }
18722 
18723 
_wrap_new_UIntVector__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)18724 SWIGINTERN PyObject *_wrap_new_UIntVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
18725   PyObject *resultobj = 0;
18726   std::vector< unsigned int >::size_type arg1 ;
18727   std::vector< unsigned int >::value_type *arg2 = 0 ;
18728   size_t val1 ;
18729   int ecode1 = 0 ;
18730   std::vector< unsigned int >::value_type temp2 ;
18731   unsigned int val2 ;
18732   int ecode2 = 0 ;
18733   std::vector< unsigned int > *result = 0 ;
18734 
18735   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
18736   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
18737   if (!SWIG_IsOK(ecode1)) {
18738     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UIntVector" "', argument " "1"" of type '" "std::vector< unsigned int >::size_type""'");
18739   }
18740   arg1 = static_cast< std::vector< unsigned int >::size_type >(val1);
18741   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
18742   if (!SWIG_IsOK(ecode2)) {
18743     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_UIntVector" "', argument " "2"" of type '" "std::vector< unsigned int >::value_type""'");
18744   }
18745   temp2 = static_cast< std::vector< unsigned int >::value_type >(val2);
18746   arg2 = &temp2;
18747   {
18748     try {
18749       result = (std::vector< unsigned int > *)new std::vector< unsigned int >(arg1,(std::vector< unsigned int >::value_type const &)*arg2);
18750     } catch (const std::exception& e) {
18751       SWIG_exception(SWIG_RuntimeError, e.what());
18752     }
18753   }
18754   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_NEW |  0 );
18755   return resultobj;
18756 fail:
18757   return NULL;
18758 }
18759 
18760 
_wrap_new_UIntVector(PyObject * self,PyObject * args)18761 SWIGINTERN PyObject *_wrap_new_UIntVector(PyObject *self, PyObject *args) {
18762   Py_ssize_t argc;
18763   PyObject *argv[3] = {
18764     0
18765   };
18766 
18767   if (!(argc = SWIG_Python_UnpackTuple(args, "new_UIntVector", 0, 2, argv))) SWIG_fail;
18768   --argc;
18769   if (argc == 0) {
18770     return _wrap_new_UIntVector__SWIG_0(self, argc, argv);
18771   }
18772   if (argc == 1) {
18773     int _v;
18774     {
18775       int res = SWIG_AsVal_size_t(argv[0], NULL);
18776       _v = SWIG_CheckState(res);
18777     }
18778     if (_v) {
18779       return _wrap_new_UIntVector__SWIG_2(self, argc, argv);
18780     }
18781   }
18782   if (argc == 1) {
18783     int _v;
18784     int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
18785     _v = SWIG_CheckState(res);
18786     if (_v) {
18787       return _wrap_new_UIntVector__SWIG_1(self, argc, argv);
18788     }
18789   }
18790   if (argc == 2) {
18791     int _v;
18792     {
18793       int res = SWIG_AsVal_size_t(argv[0], NULL);
18794       _v = SWIG_CheckState(res);
18795     }
18796     if (_v) {
18797       {
18798         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
18799         _v = SWIG_CheckState(res);
18800       }
18801       if (_v) {
18802         return _wrap_new_UIntVector__SWIG_3(self, argc, argv);
18803       }
18804     }
18805   }
18806 
18807 fail:
18808   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_UIntVector'.\n"
18809     "  Possible C/C++ prototypes are:\n"
18810     "    std::vector< unsigned int >::vector()\n"
18811     "    std::vector< unsigned int >::vector(std::vector< unsigned int > const &)\n"
18812     "    std::vector< unsigned int >::vector(std::vector< unsigned int >::size_type)\n"
18813     "    std::vector< unsigned int >::vector(std::vector< unsigned int >::size_type,std::vector< unsigned int >::value_type const &)\n");
18814   return 0;
18815 }
18816 
18817 
_wrap_UIntVector_push_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)18818 SWIGINTERN PyObject *_wrap_UIntVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18819   PyObject *resultobj = 0;
18820   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18821   std::vector< unsigned int >::value_type *arg2 = 0 ;
18822   void *argp1 = 0 ;
18823   int res1 = 0 ;
18824   std::vector< unsigned int >::value_type temp2 ;
18825   unsigned int val2 ;
18826   int ecode2 = 0 ;
18827   PyObject * obj0 = 0 ;
18828   PyObject * obj1 = 0 ;
18829   char * kwnames[] = {
18830     (char *)"self",  (char *)"x",  NULL
18831   };
18832 
18833   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:UIntVector_push_back", kwnames, &obj0, &obj1)) SWIG_fail;
18834   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18835   if (!SWIG_IsOK(res1)) {
18836     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_push_back" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
18837   }
18838   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18839   ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
18840   if (!SWIG_IsOK(ecode2)) {
18841     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UIntVector_push_back" "', argument " "2"" of type '" "std::vector< unsigned int >::value_type""'");
18842   }
18843   temp2 = static_cast< std::vector< unsigned int >::value_type >(val2);
18844   arg2 = &temp2;
18845   {
18846     try {
18847       (arg1)->push_back((std::vector< unsigned int >::value_type const &)*arg2);
18848     } catch (const std::exception& e) {
18849       SWIG_exception(SWIG_RuntimeError, e.what());
18850     }
18851   }
18852   resultobj = SWIG_Py_Void();
18853   return resultobj;
18854 fail:
18855   return NULL;
18856 }
18857 
18858 
_wrap_UIntVector_front(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18859 SWIGINTERN PyObject *_wrap_UIntVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18860   PyObject *resultobj = 0;
18861   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18862   void *argp1 = 0 ;
18863   int res1 = 0 ;
18864   PyObject *swig_obj[1] ;
18865   std::vector< unsigned int >::value_type *result = 0 ;
18866 
18867   if (!args) SWIG_fail;
18868   swig_obj[0] = args;
18869   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18870   if (!SWIG_IsOK(res1)) {
18871     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_front" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'");
18872   }
18873   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18874   {
18875     try {
18876       result = (std::vector< unsigned int >::value_type *) &((std::vector< unsigned int > const *)arg1)->front();
18877     } catch (const std::exception& e) {
18878       SWIG_exception(SWIG_RuntimeError, e.what());
18879     }
18880   }
18881   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(*result));
18882   (void)swig::container_owner<swig::traits<std::vector< unsigned int >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
18883   return resultobj;
18884 fail:
18885   return NULL;
18886 }
18887 
18888 
_wrap_UIntVector_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18889 SWIGINTERN PyObject *_wrap_UIntVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18890   PyObject *resultobj = 0;
18891   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18892   void *argp1 = 0 ;
18893   int res1 = 0 ;
18894   PyObject *swig_obj[1] ;
18895   std::vector< unsigned int >::value_type *result = 0 ;
18896 
18897   if (!args) SWIG_fail;
18898   swig_obj[0] = args;
18899   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18900   if (!SWIG_IsOK(res1)) {
18901     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_back" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'");
18902   }
18903   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18904   {
18905     try {
18906       result = (std::vector< unsigned int >::value_type *) &((std::vector< unsigned int > const *)arg1)->back();
18907     } catch (const std::exception& e) {
18908       SWIG_exception(SWIG_RuntimeError, e.what());
18909     }
18910   }
18911   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(*result));
18912   (void)swig::container_owner<swig::traits<std::vector< unsigned int >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
18913   return resultobj;
18914 fail:
18915   return NULL;
18916 }
18917 
18918 
_wrap_UIntVector_assign(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)18919 SWIGINTERN PyObject *_wrap_UIntVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18920   PyObject *resultobj = 0;
18921   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18922   std::vector< unsigned int >::size_type arg2 ;
18923   std::vector< unsigned int >::value_type *arg3 = 0 ;
18924   void *argp1 = 0 ;
18925   int res1 = 0 ;
18926   size_t val2 ;
18927   int ecode2 = 0 ;
18928   std::vector< unsigned int >::value_type temp3 ;
18929   unsigned int val3 ;
18930   int ecode3 = 0 ;
18931   PyObject * obj0 = 0 ;
18932   PyObject * obj1 = 0 ;
18933   PyObject * obj2 = 0 ;
18934   char * kwnames[] = {
18935     (char *)"self",  (char *)"n",  (char *)"x",  NULL
18936   };
18937 
18938   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:UIntVector_assign", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
18939   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18940   if (!SWIG_IsOK(res1)) {
18941     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_assign" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
18942   }
18943   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18944   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18945   if (!SWIG_IsOK(ecode2)) {
18946     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UIntVector_assign" "', argument " "2"" of type '" "std::vector< unsigned int >::size_type""'");
18947   }
18948   arg2 = static_cast< std::vector< unsigned int >::size_type >(val2);
18949   ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
18950   if (!SWIG_IsOK(ecode3)) {
18951     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "UIntVector_assign" "', argument " "3"" of type '" "std::vector< unsigned int >::value_type""'");
18952   }
18953   temp3 = static_cast< std::vector< unsigned int >::value_type >(val3);
18954   arg3 = &temp3;
18955   {
18956     try {
18957       (arg1)->assign(arg2,(std::vector< unsigned int >::value_type const &)*arg3);
18958     } catch (const std::exception& e) {
18959       SWIG_exception(SWIG_RuntimeError, e.what());
18960     }
18961   }
18962   resultobj = SWIG_Py_Void();
18963   return resultobj;
18964 fail:
18965   return NULL;
18966 }
18967 
18968 
_wrap_UIntVector_resize__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)18969 SWIGINTERN PyObject *_wrap_UIntVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
18970   PyObject *resultobj = 0;
18971   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
18972   std::vector< unsigned int >::size_type arg2 ;
18973   std::vector< unsigned int >::value_type *arg3 = 0 ;
18974   void *argp1 = 0 ;
18975   int res1 = 0 ;
18976   size_t val2 ;
18977   int ecode2 = 0 ;
18978   std::vector< unsigned int >::value_type temp3 ;
18979   unsigned int val3 ;
18980   int ecode3 = 0 ;
18981 
18982   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
18983   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
18984   if (!SWIG_IsOK(res1)) {
18985     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_resize" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
18986   }
18987   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
18988   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
18989   if (!SWIG_IsOK(ecode2)) {
18990     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UIntVector_resize" "', argument " "2"" of type '" "std::vector< unsigned int >::size_type""'");
18991   }
18992   arg2 = static_cast< std::vector< unsigned int >::size_type >(val2);
18993   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
18994   if (!SWIG_IsOK(ecode3)) {
18995     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "UIntVector_resize" "', argument " "3"" of type '" "std::vector< unsigned int >::value_type""'");
18996   }
18997   temp3 = static_cast< std::vector< unsigned int >::value_type >(val3);
18998   arg3 = &temp3;
18999   {
19000     try {
19001       (arg1)->resize(arg2,(std::vector< unsigned int >::value_type const &)*arg3);
19002     } catch (const std::exception& e) {
19003       SWIG_exception(SWIG_RuntimeError, e.what());
19004     }
19005   }
19006   resultobj = SWIG_Py_Void();
19007   return resultobj;
19008 fail:
19009   return NULL;
19010 }
19011 
19012 
_wrap_UIntVector_resize(PyObject * self,PyObject * args)19013 SWIGINTERN PyObject *_wrap_UIntVector_resize(PyObject *self, PyObject *args) {
19014   Py_ssize_t argc;
19015   PyObject *argv[4] = {
19016     0
19017   };
19018 
19019   if (!(argc = SWIG_Python_UnpackTuple(args, "UIntVector_resize", 0, 3, argv))) SWIG_fail;
19020   --argc;
19021   if (argc == 2) {
19022     int _v;
19023     int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
19024     _v = SWIG_CheckState(res);
19025     if (_v) {
19026       {
19027         int res = SWIG_AsVal_size_t(argv[1], NULL);
19028         _v = SWIG_CheckState(res);
19029       }
19030       if (_v) {
19031         return _wrap_UIntVector_resize__SWIG_0(self, argc, argv);
19032       }
19033     }
19034   }
19035   if (argc == 3) {
19036     int _v;
19037     int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
19038     _v = SWIG_CheckState(res);
19039     if (_v) {
19040       {
19041         int res = SWIG_AsVal_size_t(argv[1], NULL);
19042         _v = SWIG_CheckState(res);
19043       }
19044       if (_v) {
19045         {
19046           int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
19047           _v = SWIG_CheckState(res);
19048         }
19049         if (_v) {
19050           return _wrap_UIntVector_resize__SWIG_1(self, argc, argv);
19051         }
19052       }
19053     }
19054   }
19055 
19056 fail:
19057   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'UIntVector_resize'.\n"
19058     "  Possible C/C++ prototypes are:\n"
19059     "    std::vector< unsigned int >::resize(std::vector< unsigned int >::size_type)\n"
19060     "    std::vector< unsigned int >::resize(std::vector< unsigned int >::size_type,std::vector< unsigned int >::value_type const &)\n");
19061   return 0;
19062 }
19063 
19064 
_wrap_UIntVector_insert__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)19065 SWIGINTERN PyObject *_wrap_UIntVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
19066   PyObject *resultobj = 0;
19067   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
19068   std::vector< unsigned int >::iterator arg2 ;
19069   std::vector< unsigned int >::value_type *arg3 = 0 ;
19070   void *argp1 = 0 ;
19071   int res1 = 0 ;
19072   swig::SwigPyIterator *iter2 = 0 ;
19073   int res2 ;
19074   std::vector< unsigned int >::value_type temp3 ;
19075   unsigned int val3 ;
19076   int ecode3 = 0 ;
19077   std::vector< unsigned int >::iterator result;
19078 
19079   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
19080   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
19081   if (!SWIG_IsOK(res1)) {
19082     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_insert" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
19083   }
19084   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
19085   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
19086   if (!SWIG_IsOK(res2) || !iter2) {
19087     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UIntVector_insert" "', argument " "2"" of type '" "std::vector< unsigned int >::iterator""'");
19088   } else {
19089     swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *>(iter2);
19090     if (iter_t) {
19091       arg2 = iter_t->get_current();
19092     } else {
19093       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UIntVector_insert" "', argument " "2"" of type '" "std::vector< unsigned int >::iterator""'");
19094     }
19095   }
19096   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
19097   if (!SWIG_IsOK(ecode3)) {
19098     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "UIntVector_insert" "', argument " "3"" of type '" "std::vector< unsigned int >::value_type""'");
19099   }
19100   temp3 = static_cast< std::vector< unsigned int >::value_type >(val3);
19101   arg3 = &temp3;
19102   {
19103     try {
19104       result = std_vector_Sl_unsigned_SS_int_Sg__insert__SWIG_0(arg1,arg2,(unsigned int const &)*arg3);
19105     } catch (const std::exception& e) {
19106       SWIG_exception(SWIG_RuntimeError, e.what());
19107     }
19108   }
19109   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< unsigned int >::iterator & >(result)),
19110     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
19111   return resultobj;
19112 fail:
19113   return NULL;
19114 }
19115 
19116 
_wrap_UIntVector_insert__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)19117 SWIGINTERN PyObject *_wrap_UIntVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
19118   PyObject *resultobj = 0;
19119   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
19120   std::vector< unsigned int >::iterator arg2 ;
19121   std::vector< unsigned int >::size_type arg3 ;
19122   std::vector< unsigned int >::value_type *arg4 = 0 ;
19123   void *argp1 = 0 ;
19124   int res1 = 0 ;
19125   swig::SwigPyIterator *iter2 = 0 ;
19126   int res2 ;
19127   size_t val3 ;
19128   int ecode3 = 0 ;
19129   std::vector< unsigned int >::value_type temp4 ;
19130   unsigned int val4 ;
19131   int ecode4 = 0 ;
19132 
19133   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
19134   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
19135   if (!SWIG_IsOK(res1)) {
19136     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_insert" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
19137   }
19138   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
19139   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
19140   if (!SWIG_IsOK(res2) || !iter2) {
19141     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UIntVector_insert" "', argument " "2"" of type '" "std::vector< unsigned int >::iterator""'");
19142   } else {
19143     swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *>(iter2);
19144     if (iter_t) {
19145       arg2 = iter_t->get_current();
19146     } else {
19147       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UIntVector_insert" "', argument " "2"" of type '" "std::vector< unsigned int >::iterator""'");
19148     }
19149   }
19150   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
19151   if (!SWIG_IsOK(ecode3)) {
19152     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "UIntVector_insert" "', argument " "3"" of type '" "std::vector< unsigned int >::size_type""'");
19153   }
19154   arg3 = static_cast< std::vector< unsigned int >::size_type >(val3);
19155   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
19156   if (!SWIG_IsOK(ecode4)) {
19157     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "UIntVector_insert" "', argument " "4"" of type '" "std::vector< unsigned int >::value_type""'");
19158   }
19159   temp4 = static_cast< std::vector< unsigned int >::value_type >(val4);
19160   arg4 = &temp4;
19161   {
19162     try {
19163       std_vector_Sl_unsigned_SS_int_Sg__insert__SWIG_1(arg1,arg2,arg3,(unsigned int const &)*arg4);
19164     } catch (const std::exception& e) {
19165       SWIG_exception(SWIG_RuntimeError, e.what());
19166     }
19167   }
19168   resultobj = SWIG_Py_Void();
19169   return resultobj;
19170 fail:
19171   return NULL;
19172 }
19173 
19174 
_wrap_UIntVector_insert(PyObject * self,PyObject * args)19175 SWIGINTERN PyObject *_wrap_UIntVector_insert(PyObject *self, PyObject *args) {
19176   Py_ssize_t argc;
19177   PyObject *argv[5] = {
19178     0
19179   };
19180 
19181   if (!(argc = SWIG_Python_UnpackTuple(args, "UIntVector_insert", 0, 4, argv))) SWIG_fail;
19182   --argc;
19183   if (argc == 3) {
19184     int _v;
19185     int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
19186     _v = SWIG_CheckState(res);
19187     if (_v) {
19188       swig::SwigPyIterator *iter = 0;
19189       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
19190       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *>(iter) != 0));
19191       if (_v) {
19192         {
19193           int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
19194           _v = SWIG_CheckState(res);
19195         }
19196         if (_v) {
19197           return _wrap_UIntVector_insert__SWIG_0(self, argc, argv);
19198         }
19199       }
19200     }
19201   }
19202   if (argc == 4) {
19203     int _v;
19204     int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
19205     _v = SWIG_CheckState(res);
19206     if (_v) {
19207       swig::SwigPyIterator *iter = 0;
19208       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
19209       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *>(iter) != 0));
19210       if (_v) {
19211         {
19212           int res = SWIG_AsVal_size_t(argv[2], NULL);
19213           _v = SWIG_CheckState(res);
19214         }
19215         if (_v) {
19216           {
19217             int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
19218             _v = SWIG_CheckState(res);
19219           }
19220           if (_v) {
19221             return _wrap_UIntVector_insert__SWIG_1(self, argc, argv);
19222           }
19223         }
19224       }
19225     }
19226   }
19227 
19228 fail:
19229   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'UIntVector_insert'.\n"
19230     "  Possible C/C++ prototypes are:\n"
19231     "    std::vector< unsigned int >::insert(std::vector< unsigned int >::iterator,std::vector< unsigned int >::value_type const &)\n"
19232     "    std::vector< unsigned int >::insert(std::vector< unsigned int >::iterator,std::vector< unsigned int >::size_type,std::vector< unsigned int >::value_type const &)\n");
19233   return 0;
19234 }
19235 
19236 
_wrap_UIntVector_reserve(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)19237 SWIGINTERN PyObject *_wrap_UIntVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19238   PyObject *resultobj = 0;
19239   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
19240   std::vector< unsigned int >::size_type arg2 ;
19241   void *argp1 = 0 ;
19242   int res1 = 0 ;
19243   size_t val2 ;
19244   int ecode2 = 0 ;
19245   PyObject * obj0 = 0 ;
19246   PyObject * obj1 = 0 ;
19247   char * kwnames[] = {
19248     (char *)"self",  (char *)"n",  NULL
19249   };
19250 
19251   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:UIntVector_reserve", kwnames, &obj0, &obj1)) SWIG_fail;
19252   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
19253   if (!SWIG_IsOK(res1)) {
19254     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_reserve" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
19255   }
19256   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
19257   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19258   if (!SWIG_IsOK(ecode2)) {
19259     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UIntVector_reserve" "', argument " "2"" of type '" "std::vector< unsigned int >::size_type""'");
19260   }
19261   arg2 = static_cast< std::vector< unsigned int >::size_type >(val2);
19262   {
19263     try {
19264       (arg1)->reserve(arg2);
19265     } catch (const std::exception& e) {
19266       SWIG_exception(SWIG_RuntimeError, e.what());
19267     }
19268   }
19269   resultobj = SWIG_Py_Void();
19270   return resultobj;
19271 fail:
19272   return NULL;
19273 }
19274 
19275 
_wrap_UIntVector_capacity(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19276 SWIGINTERN PyObject *_wrap_UIntVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19277   PyObject *resultobj = 0;
19278   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
19279   void *argp1 = 0 ;
19280   int res1 = 0 ;
19281   PyObject *swig_obj[1] ;
19282   std::vector< unsigned int >::size_type result;
19283 
19284   if (!args) SWIG_fail;
19285   swig_obj[0] = args;
19286   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
19287   if (!SWIG_IsOK(res1)) {
19288     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UIntVector_capacity" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'");
19289   }
19290   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
19291   {
19292     try {
19293       result = ((std::vector< unsigned int > const *)arg1)->capacity();
19294     } catch (const std::exception& e) {
19295       SWIG_exception(SWIG_RuntimeError, e.what());
19296     }
19297   }
19298   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19299   return resultobj;
19300 fail:
19301   return NULL;
19302 }
19303 
19304 
_wrap_delete_UIntVector(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19305 SWIGINTERN PyObject *_wrap_delete_UIntVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19306   PyObject *resultobj = 0;
19307   std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
19308   void *argp1 = 0 ;
19309   int res1 = 0 ;
19310   PyObject *swig_obj[1] ;
19311 
19312   if (!args) SWIG_fail;
19313   swig_obj[0] = args;
19314   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_DISOWN |  0 );
19315   if (!SWIG_IsOK(res1)) {
19316     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_UIntVector" "', argument " "1"" of type '" "std::vector< unsigned int > *""'");
19317   }
19318   arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
19319   {
19320     try {
19321       delete arg1;
19322     } catch (const std::exception& e) {
19323       SWIG_exception(SWIG_RuntimeError, e.what());
19324     }
19325   }
19326   resultobj = SWIG_Py_Void();
19327   return resultobj;
19328 fail:
19329   return NULL;
19330 }
19331 
19332 
UIntVector_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19333 SWIGINTERN PyObject *UIntVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19334   PyObject *obj;
19335   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
19336   SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_NewClientData(obj));
19337   return SWIG_Py_Void();
19338 }
19339 
UIntVector_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19340 SWIGINTERN PyObject *UIntVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19341   return SWIG_Python_InitShadowInstance(args);
19342 }
19343 
_wrap_DoubleVector_iterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19344 SWIGINTERN PyObject *_wrap_DoubleVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19345   PyObject *resultobj = 0;
19346   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
19347   PyObject **arg2 = (PyObject **) 0 ;
19348   void *argp1 = 0 ;
19349   int res1 = 0 ;
19350   PyObject *swig_obj[1] ;
19351   swig::SwigPyIterator *result = 0 ;
19352 
19353   arg2 = &swig_obj[0];
19354   if (!args) SWIG_fail;
19355   swig_obj[0] = args;
19356   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
19357   if (!SWIG_IsOK(res1)) {
19358     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_iterator" "', argument " "1"" of type '" "std::vector< double > *""'");
19359   }
19360   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
19361   {
19362     try {
19363       result = (swig::SwigPyIterator *)std_vector_Sl_double_Sg__iterator(arg1,arg2);
19364     } catch (const std::exception& e) {
19365       SWIG_exception(SWIG_RuntimeError, e.what());
19366     }
19367   }
19368   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
19369   return resultobj;
19370 fail:
19371   return NULL;
19372 }
19373 
19374 
_wrap_DoubleVector___nonzero__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19375 SWIGINTERN PyObject *_wrap_DoubleVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19376   PyObject *resultobj = 0;
19377   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
19378   void *argp1 = 0 ;
19379   int res1 = 0 ;
19380   PyObject *swig_obj[1] ;
19381   bool result;
19382 
19383   if (!args) SWIG_fail;
19384   swig_obj[0] = args;
19385   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
19386   if (!SWIG_IsOK(res1)) {
19387     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___nonzero__" "', argument " "1"" of type '" "std::vector< double > const *""'");
19388   }
19389   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
19390   {
19391     try {
19392       result = (bool)std_vector_Sl_double_Sg____nonzero__((std::vector< double > const *)arg1);
19393     } catch (const std::exception& e) {
19394       SWIG_exception(SWIG_RuntimeError, e.what());
19395     }
19396   }
19397   resultobj = SWIG_From_bool(static_cast< bool >(result));
19398   return resultobj;
19399 fail:
19400   return NULL;
19401 }
19402 
19403 
_wrap_DoubleVector___bool__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19404 SWIGINTERN PyObject *_wrap_DoubleVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19405   PyObject *resultobj = 0;
19406   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
19407   void *argp1 = 0 ;
19408   int res1 = 0 ;
19409   PyObject *swig_obj[1] ;
19410   bool result;
19411 
19412   if (!args) SWIG_fail;
19413   swig_obj[0] = args;
19414   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
19415   if (!SWIG_IsOK(res1)) {
19416     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___bool__" "', argument " "1"" of type '" "std::vector< double > const *""'");
19417   }
19418   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
19419   {
19420     try {
19421       result = (bool)std_vector_Sl_double_Sg____bool__((std::vector< double > const *)arg1);
19422     } catch (const std::exception& e) {
19423       SWIG_exception(SWIG_RuntimeError, e.what());
19424     }
19425   }
19426   resultobj = SWIG_From_bool(static_cast< bool >(result));
19427   return resultobj;
19428 fail:
19429   return NULL;
19430 }
19431 
19432 
_wrap_DoubleVector___len__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19433 SWIGINTERN PyObject *_wrap_DoubleVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19434   PyObject *resultobj = 0;
19435   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
19436   void *argp1 = 0 ;
19437   int res1 = 0 ;
19438   PyObject *swig_obj[1] ;
19439   std::vector< double >::size_type result;
19440 
19441   if (!args) SWIG_fail;
19442   swig_obj[0] = args;
19443   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
19444   if (!SWIG_IsOK(res1)) {
19445     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___len__" "', argument " "1"" of type '" "std::vector< double > const *""'");
19446   }
19447   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
19448   {
19449     try {
19450       result = std_vector_Sl_double_Sg____len__((std::vector< double > const *)arg1);
19451     } catch (const std::exception& e) {
19452       SWIG_exception(SWIG_RuntimeError, e.what());
19453     }
19454   }
19455   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19456   return resultobj;
19457 fail:
19458   return NULL;
19459 }
19460 
19461 
_wrap_DoubleVector___getslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)19462 SWIGINTERN PyObject *_wrap_DoubleVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19463   PyObject *resultobj = 0;
19464   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
19465   std::vector< double >::difference_type arg2 ;
19466   std::vector< double >::difference_type arg3 ;
19467   void *argp1 = 0 ;
19468   int res1 = 0 ;
19469   ptrdiff_t val2 ;
19470   int ecode2 = 0 ;
19471   ptrdiff_t val3 ;
19472   int ecode3 = 0 ;
19473   PyObject * obj0 = 0 ;
19474   PyObject * obj1 = 0 ;
19475   PyObject * obj2 = 0 ;
19476   char * kwnames[] = {
19477     (char *)"self",  (char *)"i",  (char *)"j",  NULL
19478   };
19479   std::vector< double,std::allocator< double > > *result = 0 ;
19480 
19481   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:DoubleVector___getslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
19482   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
19483   if (!SWIG_IsOK(res1)) {
19484     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___getslice__" "', argument " "1"" of type '" "std::vector< double > *""'");
19485   }
19486   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
19487   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
19488   if (!SWIG_IsOK(ecode2)) {
19489     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___getslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
19490   }
19491   arg2 = static_cast< std::vector< double >::difference_type >(val2);
19492   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
19493   if (!SWIG_IsOK(ecode3)) {
19494     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector___getslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'");
19495   }
19496   arg3 = static_cast< std::vector< double >::difference_type >(val3);
19497   {
19498     try {
19499       try {
19500         result = (std::vector< double,std::allocator< double > > *)std_vector_Sl_double_Sg____getslice__(arg1,arg2,arg3);
19501       } catch(std::out_of_range &_e) {
19502         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
19503       } catch(std::invalid_argument &_e) {
19504         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
19505       }
19506     } catch (const std::exception& e) {
19507       SWIG_exception(SWIG_RuntimeError, e.what());
19508     }
19509   }
19510   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_OWN |  0 );
19511   return resultobj;
19512 fail:
19513   return NULL;
19514 }
19515 
19516 
_wrap_DoubleVector___setslice____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)19517 SWIGINTERN PyObject *_wrap_DoubleVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
19518   PyObject *resultobj = 0;
19519   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
19520   std::vector< double >::difference_type arg2 ;
19521   std::vector< double >::difference_type arg3 ;
19522   void *argp1 = 0 ;
19523   int res1 = 0 ;
19524   ptrdiff_t val2 ;
19525   int ecode2 = 0 ;
19526   ptrdiff_t val3 ;
19527   int ecode3 = 0 ;
19528 
19529   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
19530   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
19531   if (!SWIG_IsOK(res1)) {
19532     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___setslice__" "', argument " "1"" of type '" "std::vector< double > *""'");
19533   }
19534   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
19535   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
19536   if (!SWIG_IsOK(ecode2)) {
19537     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___setslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
19538   }
19539   arg2 = static_cast< std::vector< double >::difference_type >(val2);
19540   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
19541   if (!SWIG_IsOK(ecode3)) {
19542     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector___setslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'");
19543   }
19544   arg3 = static_cast< std::vector< double >::difference_type >(val3);
19545   {
19546     try {
19547       try {
19548         std_vector_Sl_double_Sg____setslice____SWIG_0(arg1,arg2,arg3);
19549       } catch(std::out_of_range &_e) {
19550         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
19551       } catch(std::invalid_argument &_e) {
19552         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
19553       }
19554     } catch (const std::exception& e) {
19555       SWIG_exception(SWIG_RuntimeError, e.what());
19556     }
19557   }
19558   resultobj = SWIG_Py_Void();
19559   return resultobj;
19560 fail:
19561   return NULL;
19562 }
19563 
19564 
_wrap_DoubleVector___setslice____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)19565 SWIGINTERN PyObject *_wrap_DoubleVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
19566   PyObject *resultobj = 0;
19567   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
19568   std::vector< double >::difference_type arg2 ;
19569   std::vector< double >::difference_type arg3 ;
19570   std::vector< double,std::allocator< double > > *arg4 = 0 ;
19571   void *argp1 = 0 ;
19572   int res1 = 0 ;
19573   ptrdiff_t val2 ;
19574   int ecode2 = 0 ;
19575   ptrdiff_t val3 ;
19576   int ecode3 = 0 ;
19577   int res4 = SWIG_OLDOBJ ;
19578 
19579   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
19580   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
19581   if (!SWIG_IsOK(res1)) {
19582     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___setslice__" "', argument " "1"" of type '" "std::vector< double > *""'");
19583   }
19584   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
19585   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
19586   if (!SWIG_IsOK(ecode2)) {
19587     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___setslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
19588   }
19589   arg2 = static_cast< std::vector< double >::difference_type >(val2);
19590   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
19591   if (!SWIG_IsOK(ecode3)) {
19592     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector___setslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'");
19593   }
19594   arg3 = static_cast< std::vector< double >::difference_type >(val3);
19595   {
19596     std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
19597     res4 = swig::asptr(swig_obj[3], &ptr);
19598     if (!SWIG_IsOK(res4)) {
19599       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DoubleVector___setslice__" "', argument " "4"" of type '" "std::vector< double,std::allocator< double > > const &""'");
19600     }
19601     if (!ptr) {
19602       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleVector___setslice__" "', argument " "4"" of type '" "std::vector< double,std::allocator< double > > const &""'");
19603     }
19604     arg4 = ptr;
19605   }
19606   {
19607     try {
19608       try {
19609         std_vector_Sl_double_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< double,std::allocator< double > > const &)*arg4);
19610       } catch(std::out_of_range &_e) {
19611         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
19612       } catch(std::invalid_argument &_e) {
19613         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
19614       }
19615     } catch (const std::exception& e) {
19616       SWIG_exception(SWIG_RuntimeError, e.what());
19617     }
19618   }
19619   resultobj = SWIG_Py_Void();
19620   if (SWIG_IsNewObj(res4)) delete arg4;
19621   return resultobj;
19622 fail:
19623   if (SWIG_IsNewObj(res4)) delete arg4;
19624   return NULL;
19625 }
19626 
19627 
_wrap_DoubleVector___setslice__(PyObject * self,PyObject * args)19628 SWIGINTERN PyObject *_wrap_DoubleVector___setslice__(PyObject *self, PyObject *args) {
19629   Py_ssize_t argc;
19630   PyObject *argv[5] = {
19631     0
19632   };
19633 
19634   if (!(argc = SWIG_Python_UnpackTuple(args, "DoubleVector___setslice__", 0, 4, argv))) SWIG_fail;
19635   --argc;
19636   if (argc == 3) {
19637     int _v;
19638     int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
19639     _v = SWIG_CheckState(res);
19640     if (_v) {
19641       {
19642         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
19643         _v = SWIG_CheckState(res);
19644       }
19645       if (_v) {
19646         {
19647           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
19648           _v = SWIG_CheckState(res);
19649         }
19650         if (_v) {
19651           return _wrap_DoubleVector___setslice____SWIG_0(self, argc, argv);
19652         }
19653       }
19654     }
19655   }
19656   if (argc == 4) {
19657     int _v;
19658     int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
19659     _v = SWIG_CheckState(res);
19660     if (_v) {
19661       {
19662         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
19663         _v = SWIG_CheckState(res);
19664       }
19665       if (_v) {
19666         {
19667           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
19668           _v = SWIG_CheckState(res);
19669         }
19670         if (_v) {
19671           int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
19672           _v = SWIG_CheckState(res);
19673           if (_v) {
19674             return _wrap_DoubleVector___setslice____SWIG_1(self, argc, argv);
19675           }
19676         }
19677       }
19678     }
19679   }
19680 
19681 fail:
19682   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DoubleVector___setslice__'.\n"
19683     "  Possible C/C++ prototypes are:\n"
19684     "    std::vector< double >::__setslice__(std::vector< double >::difference_type,std::vector< double >::difference_type)\n"
19685     "    std::vector< double >::__setslice__(std::vector< double >::difference_type,std::vector< double >::difference_type,std::vector< double,std::allocator< double > > const &)\n");
19686   return 0;
19687 }
19688 
19689 
_wrap_DoubleVector___delslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)19690 SWIGINTERN PyObject *_wrap_DoubleVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19691   PyObject *resultobj = 0;
19692   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
19693   std::vector< double >::difference_type arg2 ;
19694   std::vector< double >::difference_type arg3 ;
19695   void *argp1 = 0 ;
19696   int res1 = 0 ;
19697   ptrdiff_t val2 ;
19698   int ecode2 = 0 ;
19699   ptrdiff_t val3 ;
19700   int ecode3 = 0 ;
19701   PyObject * obj0 = 0 ;
19702   PyObject * obj1 = 0 ;
19703   PyObject * obj2 = 0 ;
19704   char * kwnames[] = {
19705     (char *)"self",  (char *)"i",  (char *)"j",  NULL
19706   };
19707 
19708   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:DoubleVector___delslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
19709   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
19710   if (!SWIG_IsOK(res1)) {
19711     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___delslice__" "', argument " "1"" of type '" "std::vector< double > *""'");
19712   }
19713   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
19714   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
19715   if (!SWIG_IsOK(ecode2)) {
19716     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___delslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
19717   }
19718   arg2 = static_cast< std::vector< double >::difference_type >(val2);
19719   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
19720   if (!SWIG_IsOK(ecode3)) {
19721     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector___delslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'");
19722   }
19723   arg3 = static_cast< std::vector< double >::difference_type >(val3);
19724   {
19725     try {
19726       try {
19727         std_vector_Sl_double_Sg____delslice__(arg1,arg2,arg3);
19728       } catch(std::out_of_range &_e) {
19729         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
19730       } catch(std::invalid_argument &_e) {
19731         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
19732       }
19733     } catch (const std::exception& e) {
19734       SWIG_exception(SWIG_RuntimeError, e.what());
19735     }
19736   }
19737   resultobj = SWIG_Py_Void();
19738   return resultobj;
19739 fail:
19740   return NULL;
19741 }
19742 
19743 
_wrap_DoubleVector___delitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)19744 SWIGINTERN PyObject *_wrap_DoubleVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
19745   PyObject *resultobj = 0;
19746   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
19747   std::vector< double >::difference_type arg2 ;
19748   void *argp1 = 0 ;
19749   int res1 = 0 ;
19750   ptrdiff_t val2 ;
19751   int ecode2 = 0 ;
19752 
19753   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
19754   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
19755   if (!SWIG_IsOK(res1)) {
19756     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___delitem__" "', argument " "1"" of type '" "std::vector< double > *""'");
19757   }
19758   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
19759   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
19760   if (!SWIG_IsOK(ecode2)) {
19761     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___delitem__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
19762   }
19763   arg2 = static_cast< std::vector< double >::difference_type >(val2);
19764   {
19765     try {
19766       try {
19767         std_vector_Sl_double_Sg____delitem____SWIG_0(arg1,arg2);
19768       } catch(std::out_of_range &_e) {
19769         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
19770       } catch(std::invalid_argument &_e) {
19771         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
19772       }
19773     } catch (const std::exception& e) {
19774       SWIG_exception(SWIG_RuntimeError, e.what());
19775     }
19776   }
19777   resultobj = SWIG_Py_Void();
19778   return resultobj;
19779 fail:
19780   return NULL;
19781 }
19782 
19783 
_wrap_DoubleVector___getitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)19784 SWIGINTERN PyObject *_wrap_DoubleVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
19785   PyObject *resultobj = 0;
19786   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
19787   PySliceObject *arg2 = (PySliceObject *) 0 ;
19788   void *argp1 = 0 ;
19789   int res1 = 0 ;
19790   std::vector< double,std::allocator< double > > *result = 0 ;
19791 
19792   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
19793   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
19794   if (!SWIG_IsOK(res1)) {
19795     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___getitem__" "', argument " "1"" of type '" "std::vector< double > *""'");
19796   }
19797   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
19798   {
19799     if (!PySlice_Check(swig_obj[1])) {
19800       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
19801     }
19802     arg2 = (PySliceObject *) swig_obj[1];
19803   }
19804   {
19805     try {
19806       try {
19807         result = (std::vector< double,std::allocator< double > > *)std_vector_Sl_double_Sg____getitem____SWIG_0(arg1,arg2);
19808       } catch(std::out_of_range &_e) {
19809         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
19810       } catch(std::invalid_argument &_e) {
19811         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
19812       }
19813     } catch (const std::exception& e) {
19814       SWIG_exception(SWIG_RuntimeError, e.what());
19815     }
19816   }
19817   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_OWN |  0 );
19818   return resultobj;
19819 fail:
19820   return NULL;
19821 }
19822 
19823 
_wrap_DoubleVector___setitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)19824 SWIGINTERN PyObject *_wrap_DoubleVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
19825   PyObject *resultobj = 0;
19826   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
19827   PySliceObject *arg2 = (PySliceObject *) 0 ;
19828   std::vector< double,std::allocator< double > > *arg3 = 0 ;
19829   void *argp1 = 0 ;
19830   int res1 = 0 ;
19831   int res3 = SWIG_OLDOBJ ;
19832 
19833   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
19834   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
19835   if (!SWIG_IsOK(res1)) {
19836     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___setitem__" "', argument " "1"" of type '" "std::vector< double > *""'");
19837   }
19838   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
19839   {
19840     if (!PySlice_Check(swig_obj[1])) {
19841       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
19842     }
19843     arg2 = (PySliceObject *) swig_obj[1];
19844   }
19845   {
19846     std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
19847     res3 = swig::asptr(swig_obj[2], &ptr);
19848     if (!SWIG_IsOK(res3)) {
19849       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DoubleVector___setitem__" "', argument " "3"" of type '" "std::vector< double,std::allocator< double > > const &""'");
19850     }
19851     if (!ptr) {
19852       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleVector___setitem__" "', argument " "3"" of type '" "std::vector< double,std::allocator< double > > const &""'");
19853     }
19854     arg3 = ptr;
19855   }
19856   {
19857     try {
19858       try {
19859         std_vector_Sl_double_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< double,std::allocator< double > > const &)*arg3);
19860       } catch(std::out_of_range &_e) {
19861         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
19862       } catch(std::invalid_argument &_e) {
19863         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
19864       }
19865     } catch (const std::exception& e) {
19866       SWIG_exception(SWIG_RuntimeError, e.what());
19867     }
19868   }
19869   resultobj = SWIG_Py_Void();
19870   if (SWIG_IsNewObj(res3)) delete arg3;
19871   return resultobj;
19872 fail:
19873   if (SWIG_IsNewObj(res3)) delete arg3;
19874   return NULL;
19875 }
19876 
19877 
_wrap_DoubleVector___setitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)19878 SWIGINTERN PyObject *_wrap_DoubleVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
19879   PyObject *resultobj = 0;
19880   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
19881   PySliceObject *arg2 = (PySliceObject *) 0 ;
19882   void *argp1 = 0 ;
19883   int res1 = 0 ;
19884 
19885   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
19886   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
19887   if (!SWIG_IsOK(res1)) {
19888     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___setitem__" "', argument " "1"" of type '" "std::vector< double > *""'");
19889   }
19890   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
19891   {
19892     if (!PySlice_Check(swig_obj[1])) {
19893       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
19894     }
19895     arg2 = (PySliceObject *) swig_obj[1];
19896   }
19897   {
19898     try {
19899       try {
19900         std_vector_Sl_double_Sg____setitem____SWIG_1(arg1,arg2);
19901       } catch(std::out_of_range &_e) {
19902         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
19903       } catch(std::invalid_argument &_e) {
19904         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
19905       }
19906     } catch (const std::exception& e) {
19907       SWIG_exception(SWIG_RuntimeError, e.what());
19908     }
19909   }
19910   resultobj = SWIG_Py_Void();
19911   return resultobj;
19912 fail:
19913   return NULL;
19914 }
19915 
19916 
_wrap_DoubleVector___delitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)19917 SWIGINTERN PyObject *_wrap_DoubleVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
19918   PyObject *resultobj = 0;
19919   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
19920   PySliceObject *arg2 = (PySliceObject *) 0 ;
19921   void *argp1 = 0 ;
19922   int res1 = 0 ;
19923 
19924   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
19925   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
19926   if (!SWIG_IsOK(res1)) {
19927     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___delitem__" "', argument " "1"" of type '" "std::vector< double > *""'");
19928   }
19929   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
19930   {
19931     if (!PySlice_Check(swig_obj[1])) {
19932       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
19933     }
19934     arg2 = (PySliceObject *) swig_obj[1];
19935   }
19936   {
19937     try {
19938       try {
19939         std_vector_Sl_double_Sg____delitem____SWIG_1(arg1,arg2);
19940       } catch(std::out_of_range &_e) {
19941         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
19942       } catch(std::invalid_argument &_e) {
19943         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
19944       }
19945     } catch (const std::exception& e) {
19946       SWIG_exception(SWIG_RuntimeError, e.what());
19947     }
19948   }
19949   resultobj = SWIG_Py_Void();
19950   return resultobj;
19951 fail:
19952   return NULL;
19953 }
19954 
19955 
_wrap_DoubleVector___delitem__(PyObject * self,PyObject * args)19956 SWIGINTERN PyObject *_wrap_DoubleVector___delitem__(PyObject *self, PyObject *args) {
19957   Py_ssize_t argc;
19958   PyObject *argv[3] = {
19959     0
19960   };
19961 
19962   if (!(argc = SWIG_Python_UnpackTuple(args, "DoubleVector___delitem__", 0, 2, argv))) SWIG_fail;
19963   --argc;
19964   if (argc == 2) {
19965     int _v;
19966     int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
19967     _v = SWIG_CheckState(res);
19968     if (_v) {
19969       {
19970         _v = PySlice_Check(argv[1]);
19971       }
19972       if (_v) {
19973         return _wrap_DoubleVector___delitem____SWIG_1(self, argc, argv);
19974       }
19975     }
19976   }
19977   if (argc == 2) {
19978     int _v;
19979     int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
19980     _v = SWIG_CheckState(res);
19981     if (_v) {
19982       {
19983         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
19984         _v = SWIG_CheckState(res);
19985       }
19986       if (_v) {
19987         return _wrap_DoubleVector___delitem____SWIG_0(self, argc, argv);
19988       }
19989     }
19990   }
19991 
19992 fail:
19993   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DoubleVector___delitem__'.\n"
19994     "  Possible C/C++ prototypes are:\n"
19995     "    std::vector< double >::__delitem__(std::vector< double >::difference_type)\n"
19996     "    std::vector< double >::__delitem__(PySliceObject *)\n");
19997   return 0;
19998 }
19999 
20000 
_wrap_DoubleVector___getitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)20001 SWIGINTERN PyObject *_wrap_DoubleVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
20002   PyObject *resultobj = 0;
20003   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20004   std::vector< double >::difference_type arg2 ;
20005   void *argp1 = 0 ;
20006   int res1 = 0 ;
20007   ptrdiff_t val2 ;
20008   int ecode2 = 0 ;
20009   std::vector< double >::value_type *result = 0 ;
20010 
20011   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
20012   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
20013   if (!SWIG_IsOK(res1)) {
20014     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___getitem__" "', argument " "1"" of type '" "std::vector< double > const *""'");
20015   }
20016   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20017   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
20018   if (!SWIG_IsOK(ecode2)) {
20019     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___getitem__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
20020   }
20021   arg2 = static_cast< std::vector< double >::difference_type >(val2);
20022   {
20023     try {
20024       try {
20025         result = (std::vector< double >::value_type *) &std_vector_Sl_double_Sg____getitem____SWIG_1((std::vector< double > const *)arg1,arg2);
20026       } catch(std::out_of_range &_e) {
20027         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
20028       }
20029     } catch (const std::exception& e) {
20030       SWIG_exception(SWIG_RuntimeError, e.what());
20031     }
20032   }
20033   resultobj = SWIG_From_double(static_cast< double >(*result));
20034   (void)swig::container_owner<swig::traits<std::vector< double >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
20035   return resultobj;
20036 fail:
20037   return NULL;
20038 }
20039 
20040 
_wrap_DoubleVector___getitem__(PyObject * self,PyObject * args)20041 SWIGINTERN PyObject *_wrap_DoubleVector___getitem__(PyObject *self, PyObject *args) {
20042   Py_ssize_t argc;
20043   PyObject *argv[3] = {
20044     0
20045   };
20046 
20047   if (!(argc = SWIG_Python_UnpackTuple(args, "DoubleVector___getitem__", 0, 2, argv))) SWIG_fail;
20048   --argc;
20049   if (argc == 2) {
20050     int _v;
20051     int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
20052     _v = SWIG_CheckState(res);
20053     if (_v) {
20054       {
20055         _v = PySlice_Check(argv[1]);
20056       }
20057       if (_v) {
20058         return _wrap_DoubleVector___getitem____SWIG_0(self, argc, argv);
20059       }
20060     }
20061   }
20062   if (argc == 2) {
20063     int _v;
20064     int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
20065     _v = SWIG_CheckState(res);
20066     if (_v) {
20067       {
20068         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
20069         _v = SWIG_CheckState(res);
20070       }
20071       if (_v) {
20072         return _wrap_DoubleVector___getitem____SWIG_1(self, argc, argv);
20073       }
20074     }
20075   }
20076 
20077 fail:
20078   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DoubleVector___getitem__'.\n"
20079     "  Possible C/C++ prototypes are:\n"
20080     "    std::vector< double >::__getitem__(PySliceObject *)\n"
20081     "    std::vector< double >::__getitem__(std::vector< double >::difference_type) const\n");
20082   return 0;
20083 }
20084 
20085 
_wrap_DoubleVector___setitem____SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)20086 SWIGINTERN PyObject *_wrap_DoubleVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
20087   PyObject *resultobj = 0;
20088   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20089   std::vector< double >::difference_type arg2 ;
20090   std::vector< double >::value_type *arg3 = 0 ;
20091   void *argp1 = 0 ;
20092   int res1 = 0 ;
20093   ptrdiff_t val2 ;
20094   int ecode2 = 0 ;
20095   std::vector< double >::value_type temp3 ;
20096   double val3 ;
20097   int ecode3 = 0 ;
20098 
20099   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
20100   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
20101   if (!SWIG_IsOK(res1)) {
20102     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___setitem__" "', argument " "1"" of type '" "std::vector< double > *""'");
20103   }
20104   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20105   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
20106   if (!SWIG_IsOK(ecode2)) {
20107     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___setitem__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
20108   }
20109   arg2 = static_cast< std::vector< double >::difference_type >(val2);
20110   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
20111   if (!SWIG_IsOK(ecode3)) {
20112     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector___setitem__" "', argument " "3"" of type '" "std::vector< double >::value_type""'");
20113   }
20114   temp3 = static_cast< std::vector< double >::value_type >(val3);
20115   arg3 = &temp3;
20116   {
20117     try {
20118       try {
20119         std_vector_Sl_double_Sg____setitem____SWIG_2(arg1,arg2,(double const &)*arg3);
20120       } catch(std::out_of_range &_e) {
20121         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
20122       }
20123     } catch (const std::exception& e) {
20124       SWIG_exception(SWIG_RuntimeError, e.what());
20125     }
20126   }
20127   resultobj = SWIG_Py_Void();
20128   return resultobj;
20129 fail:
20130   return NULL;
20131 }
20132 
20133 
_wrap_DoubleVector___setitem__(PyObject * self,PyObject * args)20134 SWIGINTERN PyObject *_wrap_DoubleVector___setitem__(PyObject *self, PyObject *args) {
20135   Py_ssize_t argc;
20136   PyObject *argv[4] = {
20137     0
20138   };
20139 
20140   if (!(argc = SWIG_Python_UnpackTuple(args, "DoubleVector___setitem__", 0, 3, argv))) SWIG_fail;
20141   --argc;
20142   if (argc == 2) {
20143     int _v;
20144     int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
20145     _v = SWIG_CheckState(res);
20146     if (_v) {
20147       {
20148         _v = PySlice_Check(argv[1]);
20149       }
20150       if (_v) {
20151         return _wrap_DoubleVector___setitem____SWIG_1(self, argc, argv);
20152       }
20153     }
20154   }
20155   if (argc == 3) {
20156     int _v;
20157     int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
20158     _v = SWIG_CheckState(res);
20159     if (_v) {
20160       {
20161         _v = PySlice_Check(argv[1]);
20162       }
20163       if (_v) {
20164         int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
20165         _v = SWIG_CheckState(res);
20166         if (_v) {
20167           return _wrap_DoubleVector___setitem____SWIG_0(self, argc, argv);
20168         }
20169       }
20170     }
20171   }
20172   if (argc == 3) {
20173     int _v;
20174     int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
20175     _v = SWIG_CheckState(res);
20176     if (_v) {
20177       {
20178         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
20179         _v = SWIG_CheckState(res);
20180       }
20181       if (_v) {
20182         {
20183           int res = SWIG_AsVal_double(argv[2], NULL);
20184           _v = SWIG_CheckState(res);
20185         }
20186         if (_v) {
20187           return _wrap_DoubleVector___setitem____SWIG_2(self, argc, argv);
20188         }
20189       }
20190     }
20191   }
20192 
20193 fail:
20194   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DoubleVector___setitem__'.\n"
20195     "  Possible C/C++ prototypes are:\n"
20196     "    std::vector< double >::__setitem__(PySliceObject *,std::vector< double,std::allocator< double > > const &)\n"
20197     "    std::vector< double >::__setitem__(PySliceObject *)\n"
20198     "    std::vector< double >::__setitem__(std::vector< double >::difference_type,std::vector< double >::value_type const &)\n");
20199   return 0;
20200 }
20201 
20202 
_wrap_DoubleVector_pop(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20203 SWIGINTERN PyObject *_wrap_DoubleVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20204   PyObject *resultobj = 0;
20205   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20206   void *argp1 = 0 ;
20207   int res1 = 0 ;
20208   PyObject *swig_obj[1] ;
20209   std::vector< double >::value_type result;
20210 
20211   if (!args) SWIG_fail;
20212   swig_obj[0] = args;
20213   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
20214   if (!SWIG_IsOK(res1)) {
20215     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_pop" "', argument " "1"" of type '" "std::vector< double > *""'");
20216   }
20217   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20218   {
20219     try {
20220       try {
20221         result = (std::vector< double >::value_type)std_vector_Sl_double_Sg__pop(arg1);
20222       } catch(std::out_of_range &_e) {
20223         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
20224       }
20225     } catch (const std::exception& e) {
20226       SWIG_exception(SWIG_RuntimeError, e.what());
20227     }
20228   }
20229   resultobj = SWIG_From_double(static_cast< double >(result));
20230   return resultobj;
20231 fail:
20232   return NULL;
20233 }
20234 
20235 
_wrap_DoubleVector_append(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)20236 SWIGINTERN PyObject *_wrap_DoubleVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20237   PyObject *resultobj = 0;
20238   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20239   std::vector< double >::value_type *arg2 = 0 ;
20240   void *argp1 = 0 ;
20241   int res1 = 0 ;
20242   std::vector< double >::value_type temp2 ;
20243   double val2 ;
20244   int ecode2 = 0 ;
20245   PyObject * obj0 = 0 ;
20246   PyObject * obj1 = 0 ;
20247   char * kwnames[] = {
20248     (char *)"self",  (char *)"x",  NULL
20249   };
20250 
20251   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:DoubleVector_append", kwnames, &obj0, &obj1)) SWIG_fail;
20252   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
20253   if (!SWIG_IsOK(res1)) {
20254     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_append" "', argument " "1"" of type '" "std::vector< double > *""'");
20255   }
20256   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20257   ecode2 = SWIG_AsVal_double(obj1, &val2);
20258   if (!SWIG_IsOK(ecode2)) {
20259     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_append" "', argument " "2"" of type '" "std::vector< double >::value_type""'");
20260   }
20261   temp2 = static_cast< std::vector< double >::value_type >(val2);
20262   arg2 = &temp2;
20263   {
20264     try {
20265       std_vector_Sl_double_Sg__append(arg1,(double const &)*arg2);
20266     } catch (const std::exception& e) {
20267       SWIG_exception(SWIG_RuntimeError, e.what());
20268     }
20269   }
20270   resultobj = SWIG_Py_Void();
20271   return resultobj;
20272 fail:
20273   return NULL;
20274 }
20275 
20276 
_wrap_new_DoubleVector__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))20277 SWIGINTERN PyObject *_wrap_new_DoubleVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
20278   PyObject *resultobj = 0;
20279   std::vector< double > *result = 0 ;
20280 
20281   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
20282   {
20283     try {
20284       result = (std::vector< double > *)new std::vector< double >();
20285     } catch (const std::exception& e) {
20286       SWIG_exception(SWIG_RuntimeError, e.what());
20287     }
20288   }
20289   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_NEW |  0 );
20290   return resultobj;
20291 fail:
20292   return NULL;
20293 }
20294 
20295 
_wrap_new_DoubleVector__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)20296 SWIGINTERN PyObject *_wrap_new_DoubleVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
20297   PyObject *resultobj = 0;
20298   std::vector< double > *arg1 = 0 ;
20299   int res1 = SWIG_OLDOBJ ;
20300   std::vector< double > *result = 0 ;
20301 
20302   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
20303   {
20304     std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
20305     res1 = swig::asptr(swig_obj[0], &ptr);
20306     if (!SWIG_IsOK(res1)) {
20307       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DoubleVector" "', argument " "1"" of type '" "std::vector< double > const &""'");
20308     }
20309     if (!ptr) {
20310       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DoubleVector" "', argument " "1"" of type '" "std::vector< double > const &""'");
20311     }
20312     arg1 = ptr;
20313   }
20314   {
20315     try {
20316       result = (std::vector< double > *)new std::vector< double >((std::vector< double > const &)*arg1);
20317     } catch (const std::exception& e) {
20318       SWIG_exception(SWIG_RuntimeError, e.what());
20319     }
20320   }
20321   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_NEW |  0 );
20322   if (SWIG_IsNewObj(res1)) delete arg1;
20323   return resultobj;
20324 fail:
20325   if (SWIG_IsNewObj(res1)) delete arg1;
20326   return NULL;
20327 }
20328 
20329 
_wrap_DoubleVector_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20330 SWIGINTERN PyObject *_wrap_DoubleVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20331   PyObject *resultobj = 0;
20332   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20333   void *argp1 = 0 ;
20334   int res1 = 0 ;
20335   PyObject *swig_obj[1] ;
20336   bool result;
20337 
20338   if (!args) SWIG_fail;
20339   swig_obj[0] = args;
20340   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
20341   if (!SWIG_IsOK(res1)) {
20342     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_empty" "', argument " "1"" of type '" "std::vector< double > const *""'");
20343   }
20344   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20345   {
20346     try {
20347       result = (bool)((std::vector< double > const *)arg1)->empty();
20348     } catch (const std::exception& e) {
20349       SWIG_exception(SWIG_RuntimeError, e.what());
20350     }
20351   }
20352   resultobj = SWIG_From_bool(static_cast< bool >(result));
20353   return resultobj;
20354 fail:
20355   return NULL;
20356 }
20357 
20358 
_wrap_DoubleVector_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20359 SWIGINTERN PyObject *_wrap_DoubleVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20360   PyObject *resultobj = 0;
20361   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20362   void *argp1 = 0 ;
20363   int res1 = 0 ;
20364   PyObject *swig_obj[1] ;
20365   std::vector< double >::size_type result;
20366 
20367   if (!args) SWIG_fail;
20368   swig_obj[0] = args;
20369   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
20370   if (!SWIG_IsOK(res1)) {
20371     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_size" "', argument " "1"" of type '" "std::vector< double > const *""'");
20372   }
20373   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20374   {
20375     try {
20376       result = ((std::vector< double > const *)arg1)->size();
20377     } catch (const std::exception& e) {
20378       SWIG_exception(SWIG_RuntimeError, e.what());
20379     }
20380   }
20381   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
20382   return resultobj;
20383 fail:
20384   return NULL;
20385 }
20386 
20387 
_wrap_DoubleVector_swap(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)20388 SWIGINTERN PyObject *_wrap_DoubleVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20389   PyObject *resultobj = 0;
20390   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20391   std::vector< double > *arg2 = 0 ;
20392   void *argp1 = 0 ;
20393   int res1 = 0 ;
20394   void *argp2 = 0 ;
20395   int res2 = 0 ;
20396   PyObject * obj0 = 0 ;
20397   PyObject * obj1 = 0 ;
20398   char * kwnames[] = {
20399     (char *)"self",  (char *)"v",  NULL
20400   };
20401 
20402   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:DoubleVector_swap", kwnames, &obj0, &obj1)) SWIG_fail;
20403   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
20404   if (!SWIG_IsOK(res1)) {
20405     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_swap" "', argument " "1"" of type '" "std::vector< double > *""'");
20406   }
20407   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20408   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t,  0 );
20409   if (!SWIG_IsOK(res2)) {
20410     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DoubleVector_swap" "', argument " "2"" of type '" "std::vector< double > &""'");
20411   }
20412   if (!argp2) {
20413     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleVector_swap" "', argument " "2"" of type '" "std::vector< double > &""'");
20414   }
20415   arg2 = reinterpret_cast< std::vector< double > * >(argp2);
20416   {
20417     try {
20418       (arg1)->swap(*arg2);
20419     } catch (const std::exception& e) {
20420       SWIG_exception(SWIG_RuntimeError, e.what());
20421     }
20422   }
20423   resultobj = SWIG_Py_Void();
20424   return resultobj;
20425 fail:
20426   return NULL;
20427 }
20428 
20429 
_wrap_DoubleVector_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20430 SWIGINTERN PyObject *_wrap_DoubleVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20431   PyObject *resultobj = 0;
20432   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20433   void *argp1 = 0 ;
20434   int res1 = 0 ;
20435   PyObject *swig_obj[1] ;
20436   std::vector< double >::iterator result;
20437 
20438   if (!args) SWIG_fail;
20439   swig_obj[0] = args;
20440   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
20441   if (!SWIG_IsOK(res1)) {
20442     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_begin" "', argument " "1"" of type '" "std::vector< double > *""'");
20443   }
20444   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20445   {
20446     try {
20447       result = (arg1)->begin();
20448     } catch (const std::exception& e) {
20449       SWIG_exception(SWIG_RuntimeError, e.what());
20450     }
20451   }
20452   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)),
20453     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
20454   return resultobj;
20455 fail:
20456   return NULL;
20457 }
20458 
20459 
_wrap_DoubleVector_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20460 SWIGINTERN PyObject *_wrap_DoubleVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20461   PyObject *resultobj = 0;
20462   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20463   void *argp1 = 0 ;
20464   int res1 = 0 ;
20465   PyObject *swig_obj[1] ;
20466   std::vector< double >::iterator result;
20467 
20468   if (!args) SWIG_fail;
20469   swig_obj[0] = args;
20470   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
20471   if (!SWIG_IsOK(res1)) {
20472     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_end" "', argument " "1"" of type '" "std::vector< double > *""'");
20473   }
20474   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20475   {
20476     try {
20477       result = (arg1)->end();
20478     } catch (const std::exception& e) {
20479       SWIG_exception(SWIG_RuntimeError, e.what());
20480     }
20481   }
20482   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)),
20483     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
20484   return resultobj;
20485 fail:
20486   return NULL;
20487 }
20488 
20489 
_wrap_DoubleVector_rbegin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20490 SWIGINTERN PyObject *_wrap_DoubleVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20491   PyObject *resultobj = 0;
20492   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20493   void *argp1 = 0 ;
20494   int res1 = 0 ;
20495   PyObject *swig_obj[1] ;
20496   std::vector< double >::reverse_iterator result;
20497 
20498   if (!args) SWIG_fail;
20499   swig_obj[0] = args;
20500   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
20501   if (!SWIG_IsOK(res1)) {
20502     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_rbegin" "', argument " "1"" of type '" "std::vector< double > *""'");
20503   }
20504   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20505   {
20506     try {
20507       result = (arg1)->rbegin();
20508     } catch (const std::exception& e) {
20509       SWIG_exception(SWIG_RuntimeError, e.what());
20510     }
20511   }
20512   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::reverse_iterator & >(result)),
20513     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
20514   return resultobj;
20515 fail:
20516   return NULL;
20517 }
20518 
20519 
_wrap_DoubleVector_rend(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20520 SWIGINTERN PyObject *_wrap_DoubleVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20521   PyObject *resultobj = 0;
20522   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20523   void *argp1 = 0 ;
20524   int res1 = 0 ;
20525   PyObject *swig_obj[1] ;
20526   std::vector< double >::reverse_iterator result;
20527 
20528   if (!args) SWIG_fail;
20529   swig_obj[0] = args;
20530   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
20531   if (!SWIG_IsOK(res1)) {
20532     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_rend" "', argument " "1"" of type '" "std::vector< double > *""'");
20533   }
20534   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20535   {
20536     try {
20537       result = (arg1)->rend();
20538     } catch (const std::exception& e) {
20539       SWIG_exception(SWIG_RuntimeError, e.what());
20540     }
20541   }
20542   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::reverse_iterator & >(result)),
20543     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
20544   return resultobj;
20545 fail:
20546   return NULL;
20547 }
20548 
20549 
_wrap_DoubleVector_clear(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20550 SWIGINTERN PyObject *_wrap_DoubleVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20551   PyObject *resultobj = 0;
20552   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20553   void *argp1 = 0 ;
20554   int res1 = 0 ;
20555   PyObject *swig_obj[1] ;
20556 
20557   if (!args) SWIG_fail;
20558   swig_obj[0] = args;
20559   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
20560   if (!SWIG_IsOK(res1)) {
20561     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_clear" "', argument " "1"" of type '" "std::vector< double > *""'");
20562   }
20563   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20564   {
20565     try {
20566       (arg1)->clear();
20567     } catch (const std::exception& e) {
20568       SWIG_exception(SWIG_RuntimeError, e.what());
20569     }
20570   }
20571   resultobj = SWIG_Py_Void();
20572   return resultobj;
20573 fail:
20574   return NULL;
20575 }
20576 
20577 
_wrap_DoubleVector_get_allocator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20578 SWIGINTERN PyObject *_wrap_DoubleVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20579   PyObject *resultobj = 0;
20580   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20581   void *argp1 = 0 ;
20582   int res1 = 0 ;
20583   PyObject *swig_obj[1] ;
20584   SwigValueWrapper< std::allocator< double > > result;
20585 
20586   if (!args) SWIG_fail;
20587   swig_obj[0] = args;
20588   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
20589   if (!SWIG_IsOK(res1)) {
20590     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_get_allocator" "', argument " "1"" of type '" "std::vector< double > const *""'");
20591   }
20592   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20593   {
20594     try {
20595       result = ((std::vector< double > const *)arg1)->get_allocator();
20596     } catch (const std::exception& e) {
20597       SWIG_exception(SWIG_RuntimeError, e.what());
20598     }
20599   }
20600   resultobj = SWIG_NewPointerObj((new std::vector< double >::allocator_type(static_cast< const std::vector< double >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_double_t, SWIG_POINTER_OWN |  0 );
20601   return resultobj;
20602 fail:
20603   return NULL;
20604 }
20605 
20606 
_wrap_new_DoubleVector__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)20607 SWIGINTERN PyObject *_wrap_new_DoubleVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
20608   PyObject *resultobj = 0;
20609   std::vector< double >::size_type arg1 ;
20610   size_t val1 ;
20611   int ecode1 = 0 ;
20612   std::vector< double > *result = 0 ;
20613 
20614   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
20615   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
20616   if (!SWIG_IsOK(ecode1)) {
20617     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DoubleVector" "', argument " "1"" of type '" "std::vector< double >::size_type""'");
20618   }
20619   arg1 = static_cast< std::vector< double >::size_type >(val1);
20620   {
20621     try {
20622       result = (std::vector< double > *)new std::vector< double >(arg1);
20623     } catch (const std::exception& e) {
20624       SWIG_exception(SWIG_RuntimeError, e.what());
20625     }
20626   }
20627   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_NEW |  0 );
20628   return resultobj;
20629 fail:
20630   return NULL;
20631 }
20632 
20633 
_wrap_DoubleVector_pop_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20634 SWIGINTERN PyObject *_wrap_DoubleVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20635   PyObject *resultobj = 0;
20636   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20637   void *argp1 = 0 ;
20638   int res1 = 0 ;
20639   PyObject *swig_obj[1] ;
20640 
20641   if (!args) SWIG_fail;
20642   swig_obj[0] = args;
20643   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
20644   if (!SWIG_IsOK(res1)) {
20645     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_pop_back" "', argument " "1"" of type '" "std::vector< double > *""'");
20646   }
20647   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20648   {
20649     try {
20650       (arg1)->pop_back();
20651     } catch (const std::exception& e) {
20652       SWIG_exception(SWIG_RuntimeError, e.what());
20653     }
20654   }
20655   resultobj = SWIG_Py_Void();
20656   return resultobj;
20657 fail:
20658   return NULL;
20659 }
20660 
20661 
_wrap_DoubleVector_resize__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)20662 SWIGINTERN PyObject *_wrap_DoubleVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
20663   PyObject *resultobj = 0;
20664   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20665   std::vector< double >::size_type arg2 ;
20666   void *argp1 = 0 ;
20667   int res1 = 0 ;
20668   size_t val2 ;
20669   int ecode2 = 0 ;
20670 
20671   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
20672   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
20673   if (!SWIG_IsOK(res1)) {
20674     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_resize" "', argument " "1"" of type '" "std::vector< double > *""'");
20675   }
20676   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20677   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
20678   if (!SWIG_IsOK(ecode2)) {
20679     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_resize" "', argument " "2"" of type '" "std::vector< double >::size_type""'");
20680   }
20681   arg2 = static_cast< std::vector< double >::size_type >(val2);
20682   {
20683     try {
20684       (arg1)->resize(arg2);
20685     } catch (const std::exception& e) {
20686       SWIG_exception(SWIG_RuntimeError, e.what());
20687     }
20688   }
20689   resultobj = SWIG_Py_Void();
20690   return resultobj;
20691 fail:
20692   return NULL;
20693 }
20694 
20695 
_wrap_DoubleVector_erase__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)20696 SWIGINTERN PyObject *_wrap_DoubleVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
20697   PyObject *resultobj = 0;
20698   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20699   std::vector< double >::iterator arg2 ;
20700   void *argp1 = 0 ;
20701   int res1 = 0 ;
20702   swig::SwigPyIterator *iter2 = 0 ;
20703   int res2 ;
20704   std::vector< double >::iterator result;
20705 
20706   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
20707   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
20708   if (!SWIG_IsOK(res1)) {
20709     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_erase" "', argument " "1"" of type '" "std::vector< double > *""'");
20710   }
20711   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20712   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
20713   if (!SWIG_IsOK(res2) || !iter2) {
20714     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
20715   } else {
20716     swig::SwigPyIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< double >::iterator > *>(iter2);
20717     if (iter_t) {
20718       arg2 = iter_t->get_current();
20719     } else {
20720       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
20721     }
20722   }
20723   {
20724     try {
20725       result = std_vector_Sl_double_Sg__erase__SWIG_0(arg1,arg2);
20726     } catch (const std::exception& e) {
20727       SWIG_exception(SWIG_RuntimeError, e.what());
20728     }
20729   }
20730   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)),
20731     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
20732   return resultobj;
20733 fail:
20734   return NULL;
20735 }
20736 
20737 
_wrap_DoubleVector_erase__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)20738 SWIGINTERN PyObject *_wrap_DoubleVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
20739   PyObject *resultobj = 0;
20740   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20741   std::vector< double >::iterator arg2 ;
20742   std::vector< double >::iterator arg3 ;
20743   void *argp1 = 0 ;
20744   int res1 = 0 ;
20745   swig::SwigPyIterator *iter2 = 0 ;
20746   int res2 ;
20747   swig::SwigPyIterator *iter3 = 0 ;
20748   int res3 ;
20749   std::vector< double >::iterator result;
20750 
20751   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
20752   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
20753   if (!SWIG_IsOK(res1)) {
20754     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_erase" "', argument " "1"" of type '" "std::vector< double > *""'");
20755   }
20756   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20757   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
20758   if (!SWIG_IsOK(res2) || !iter2) {
20759     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
20760   } else {
20761     swig::SwigPyIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< double >::iterator > *>(iter2);
20762     if (iter_t) {
20763       arg2 = iter_t->get_current();
20764     } else {
20765       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
20766     }
20767   }
20768   res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
20769   if (!SWIG_IsOK(res3) || !iter3) {
20770     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "3"" of type '" "std::vector< double >::iterator""'");
20771   } else {
20772     swig::SwigPyIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< double >::iterator > *>(iter3);
20773     if (iter_t) {
20774       arg3 = iter_t->get_current();
20775     } else {
20776       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "3"" of type '" "std::vector< double >::iterator""'");
20777     }
20778   }
20779   {
20780     try {
20781       result = std_vector_Sl_double_Sg__erase__SWIG_1(arg1,arg2,arg3);
20782     } catch (const std::exception& e) {
20783       SWIG_exception(SWIG_RuntimeError, e.what());
20784     }
20785   }
20786   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)),
20787     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
20788   return resultobj;
20789 fail:
20790   return NULL;
20791 }
20792 
20793 
_wrap_DoubleVector_erase(PyObject * self,PyObject * args)20794 SWIGINTERN PyObject *_wrap_DoubleVector_erase(PyObject *self, PyObject *args) {
20795   Py_ssize_t argc;
20796   PyObject *argv[4] = {
20797     0
20798   };
20799 
20800   if (!(argc = SWIG_Python_UnpackTuple(args, "DoubleVector_erase", 0, 3, argv))) SWIG_fail;
20801   --argc;
20802   if (argc == 2) {
20803     int _v;
20804     int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
20805     _v = SWIG_CheckState(res);
20806     if (_v) {
20807       swig::SwigPyIterator *iter = 0;
20808       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
20809       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< double >::iterator > *>(iter) != 0));
20810       if (_v) {
20811         return _wrap_DoubleVector_erase__SWIG_0(self, argc, argv);
20812       }
20813     }
20814   }
20815   if (argc == 3) {
20816     int _v;
20817     int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
20818     _v = SWIG_CheckState(res);
20819     if (_v) {
20820       swig::SwigPyIterator *iter = 0;
20821       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
20822       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< double >::iterator > *>(iter) != 0));
20823       if (_v) {
20824         swig::SwigPyIterator *iter = 0;
20825         int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
20826         _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< double >::iterator > *>(iter) != 0));
20827         if (_v) {
20828           return _wrap_DoubleVector_erase__SWIG_1(self, argc, argv);
20829         }
20830       }
20831     }
20832   }
20833 
20834 fail:
20835   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DoubleVector_erase'.\n"
20836     "  Possible C/C++ prototypes are:\n"
20837     "    std::vector< double >::erase(std::vector< double >::iterator)\n"
20838     "    std::vector< double >::erase(std::vector< double >::iterator,std::vector< double >::iterator)\n");
20839   return 0;
20840 }
20841 
20842 
_wrap_new_DoubleVector__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)20843 SWIGINTERN PyObject *_wrap_new_DoubleVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
20844   PyObject *resultobj = 0;
20845   std::vector< double >::size_type arg1 ;
20846   std::vector< double >::value_type *arg2 = 0 ;
20847   size_t val1 ;
20848   int ecode1 = 0 ;
20849   std::vector< double >::value_type temp2 ;
20850   double val2 ;
20851   int ecode2 = 0 ;
20852   std::vector< double > *result = 0 ;
20853 
20854   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
20855   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
20856   if (!SWIG_IsOK(ecode1)) {
20857     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DoubleVector" "', argument " "1"" of type '" "std::vector< double >::size_type""'");
20858   }
20859   arg1 = static_cast< std::vector< double >::size_type >(val1);
20860   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
20861   if (!SWIG_IsOK(ecode2)) {
20862     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DoubleVector" "', argument " "2"" of type '" "std::vector< double >::value_type""'");
20863   }
20864   temp2 = static_cast< std::vector< double >::value_type >(val2);
20865   arg2 = &temp2;
20866   {
20867     try {
20868       result = (std::vector< double > *)new std::vector< double >(arg1,(std::vector< double >::value_type const &)*arg2);
20869     } catch (const std::exception& e) {
20870       SWIG_exception(SWIG_RuntimeError, e.what());
20871     }
20872   }
20873   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_NEW |  0 );
20874   return resultobj;
20875 fail:
20876   return NULL;
20877 }
20878 
20879 
_wrap_new_DoubleVector(PyObject * self,PyObject * args)20880 SWIGINTERN PyObject *_wrap_new_DoubleVector(PyObject *self, PyObject *args) {
20881   Py_ssize_t argc;
20882   PyObject *argv[3] = {
20883     0
20884   };
20885 
20886   if (!(argc = SWIG_Python_UnpackTuple(args, "new_DoubleVector", 0, 2, argv))) SWIG_fail;
20887   --argc;
20888   if (argc == 0) {
20889     return _wrap_new_DoubleVector__SWIG_0(self, argc, argv);
20890   }
20891   if (argc == 1) {
20892     int _v;
20893     {
20894       int res = SWIG_AsVal_size_t(argv[0], NULL);
20895       _v = SWIG_CheckState(res);
20896     }
20897     if (_v) {
20898       return _wrap_new_DoubleVector__SWIG_2(self, argc, argv);
20899     }
20900   }
20901   if (argc == 1) {
20902     int _v;
20903     int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
20904     _v = SWIG_CheckState(res);
20905     if (_v) {
20906       return _wrap_new_DoubleVector__SWIG_1(self, argc, argv);
20907     }
20908   }
20909   if (argc == 2) {
20910     int _v;
20911     {
20912       int res = SWIG_AsVal_size_t(argv[0], NULL);
20913       _v = SWIG_CheckState(res);
20914     }
20915     if (_v) {
20916       {
20917         int res = SWIG_AsVal_double(argv[1], NULL);
20918         _v = SWIG_CheckState(res);
20919       }
20920       if (_v) {
20921         return _wrap_new_DoubleVector__SWIG_3(self, argc, argv);
20922       }
20923     }
20924   }
20925 
20926 fail:
20927   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_DoubleVector'.\n"
20928     "  Possible C/C++ prototypes are:\n"
20929     "    std::vector< double >::vector()\n"
20930     "    std::vector< double >::vector(std::vector< double > const &)\n"
20931     "    std::vector< double >::vector(std::vector< double >::size_type)\n"
20932     "    std::vector< double >::vector(std::vector< double >::size_type,std::vector< double >::value_type const &)\n");
20933   return 0;
20934 }
20935 
20936 
_wrap_DoubleVector_push_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)20937 SWIGINTERN PyObject *_wrap_DoubleVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20938   PyObject *resultobj = 0;
20939   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20940   std::vector< double >::value_type *arg2 = 0 ;
20941   void *argp1 = 0 ;
20942   int res1 = 0 ;
20943   std::vector< double >::value_type temp2 ;
20944   double val2 ;
20945   int ecode2 = 0 ;
20946   PyObject * obj0 = 0 ;
20947   PyObject * obj1 = 0 ;
20948   char * kwnames[] = {
20949     (char *)"self",  (char *)"x",  NULL
20950   };
20951 
20952   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:DoubleVector_push_back", kwnames, &obj0, &obj1)) SWIG_fail;
20953   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
20954   if (!SWIG_IsOK(res1)) {
20955     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_push_back" "', argument " "1"" of type '" "std::vector< double > *""'");
20956   }
20957   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20958   ecode2 = SWIG_AsVal_double(obj1, &val2);
20959   if (!SWIG_IsOK(ecode2)) {
20960     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_push_back" "', argument " "2"" of type '" "std::vector< double >::value_type""'");
20961   }
20962   temp2 = static_cast< std::vector< double >::value_type >(val2);
20963   arg2 = &temp2;
20964   {
20965     try {
20966       (arg1)->push_back((std::vector< double >::value_type const &)*arg2);
20967     } catch (const std::exception& e) {
20968       SWIG_exception(SWIG_RuntimeError, e.what());
20969     }
20970   }
20971   resultobj = SWIG_Py_Void();
20972   return resultobj;
20973 fail:
20974   return NULL;
20975 }
20976 
20977 
_wrap_DoubleVector_front(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20978 SWIGINTERN PyObject *_wrap_DoubleVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20979   PyObject *resultobj = 0;
20980   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20981   void *argp1 = 0 ;
20982   int res1 = 0 ;
20983   PyObject *swig_obj[1] ;
20984   std::vector< double >::value_type *result = 0 ;
20985 
20986   if (!args) SWIG_fail;
20987   swig_obj[0] = args;
20988   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
20989   if (!SWIG_IsOK(res1)) {
20990     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_front" "', argument " "1"" of type '" "std::vector< double > const *""'");
20991   }
20992   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20993   {
20994     try {
20995       result = (std::vector< double >::value_type *) &((std::vector< double > const *)arg1)->front();
20996     } catch (const std::exception& e) {
20997       SWIG_exception(SWIG_RuntimeError, e.what());
20998     }
20999   }
21000   resultobj = SWIG_From_double(static_cast< double >(*result));
21001   (void)swig::container_owner<swig::traits<std::vector< double >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
21002   return resultobj;
21003 fail:
21004   return NULL;
21005 }
21006 
21007 
_wrap_DoubleVector_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21008 SWIGINTERN PyObject *_wrap_DoubleVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21009   PyObject *resultobj = 0;
21010   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21011   void *argp1 = 0 ;
21012   int res1 = 0 ;
21013   PyObject *swig_obj[1] ;
21014   std::vector< double >::value_type *result = 0 ;
21015 
21016   if (!args) SWIG_fail;
21017   swig_obj[0] = args;
21018   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
21019   if (!SWIG_IsOK(res1)) {
21020     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_back" "', argument " "1"" of type '" "std::vector< double > const *""'");
21021   }
21022   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21023   {
21024     try {
21025       result = (std::vector< double >::value_type *) &((std::vector< double > const *)arg1)->back();
21026     } catch (const std::exception& e) {
21027       SWIG_exception(SWIG_RuntimeError, e.what());
21028     }
21029   }
21030   resultobj = SWIG_From_double(static_cast< double >(*result));
21031   (void)swig::container_owner<swig::traits<std::vector< double >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
21032   return resultobj;
21033 fail:
21034   return NULL;
21035 }
21036 
21037 
_wrap_DoubleVector_assign(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)21038 SWIGINTERN PyObject *_wrap_DoubleVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21039   PyObject *resultobj = 0;
21040   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21041   std::vector< double >::size_type arg2 ;
21042   std::vector< double >::value_type *arg3 = 0 ;
21043   void *argp1 = 0 ;
21044   int res1 = 0 ;
21045   size_t val2 ;
21046   int ecode2 = 0 ;
21047   std::vector< double >::value_type temp3 ;
21048   double val3 ;
21049   int ecode3 = 0 ;
21050   PyObject * obj0 = 0 ;
21051   PyObject * obj1 = 0 ;
21052   PyObject * obj2 = 0 ;
21053   char * kwnames[] = {
21054     (char *)"self",  (char *)"n",  (char *)"x",  NULL
21055   };
21056 
21057   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:DoubleVector_assign", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
21058   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
21059   if (!SWIG_IsOK(res1)) {
21060     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_assign" "', argument " "1"" of type '" "std::vector< double > *""'");
21061   }
21062   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21063   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21064   if (!SWIG_IsOK(ecode2)) {
21065     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_assign" "', argument " "2"" of type '" "std::vector< double >::size_type""'");
21066   }
21067   arg2 = static_cast< std::vector< double >::size_type >(val2);
21068   ecode3 = SWIG_AsVal_double(obj2, &val3);
21069   if (!SWIG_IsOK(ecode3)) {
21070     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector_assign" "', argument " "3"" of type '" "std::vector< double >::value_type""'");
21071   }
21072   temp3 = static_cast< std::vector< double >::value_type >(val3);
21073   arg3 = &temp3;
21074   {
21075     try {
21076       (arg1)->assign(arg2,(std::vector< double >::value_type const &)*arg3);
21077     } catch (const std::exception& e) {
21078       SWIG_exception(SWIG_RuntimeError, e.what());
21079     }
21080   }
21081   resultobj = SWIG_Py_Void();
21082   return resultobj;
21083 fail:
21084   return NULL;
21085 }
21086 
21087 
_wrap_DoubleVector_resize__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)21088 SWIGINTERN PyObject *_wrap_DoubleVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
21089   PyObject *resultobj = 0;
21090   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21091   std::vector< double >::size_type arg2 ;
21092   std::vector< double >::value_type *arg3 = 0 ;
21093   void *argp1 = 0 ;
21094   int res1 = 0 ;
21095   size_t val2 ;
21096   int ecode2 = 0 ;
21097   std::vector< double >::value_type temp3 ;
21098   double val3 ;
21099   int ecode3 = 0 ;
21100 
21101   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
21102   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
21103   if (!SWIG_IsOK(res1)) {
21104     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_resize" "', argument " "1"" of type '" "std::vector< double > *""'");
21105   }
21106   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21107   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
21108   if (!SWIG_IsOK(ecode2)) {
21109     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_resize" "', argument " "2"" of type '" "std::vector< double >::size_type""'");
21110   }
21111   arg2 = static_cast< std::vector< double >::size_type >(val2);
21112   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
21113   if (!SWIG_IsOK(ecode3)) {
21114     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector_resize" "', argument " "3"" of type '" "std::vector< double >::value_type""'");
21115   }
21116   temp3 = static_cast< std::vector< double >::value_type >(val3);
21117   arg3 = &temp3;
21118   {
21119     try {
21120       (arg1)->resize(arg2,(std::vector< double >::value_type const &)*arg3);
21121     } catch (const std::exception& e) {
21122       SWIG_exception(SWIG_RuntimeError, e.what());
21123     }
21124   }
21125   resultobj = SWIG_Py_Void();
21126   return resultobj;
21127 fail:
21128   return NULL;
21129 }
21130 
21131 
_wrap_DoubleVector_resize(PyObject * self,PyObject * args)21132 SWIGINTERN PyObject *_wrap_DoubleVector_resize(PyObject *self, PyObject *args) {
21133   Py_ssize_t argc;
21134   PyObject *argv[4] = {
21135     0
21136   };
21137 
21138   if (!(argc = SWIG_Python_UnpackTuple(args, "DoubleVector_resize", 0, 3, argv))) SWIG_fail;
21139   --argc;
21140   if (argc == 2) {
21141     int _v;
21142     int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
21143     _v = SWIG_CheckState(res);
21144     if (_v) {
21145       {
21146         int res = SWIG_AsVal_size_t(argv[1], NULL);
21147         _v = SWIG_CheckState(res);
21148       }
21149       if (_v) {
21150         return _wrap_DoubleVector_resize__SWIG_0(self, argc, argv);
21151       }
21152     }
21153   }
21154   if (argc == 3) {
21155     int _v;
21156     int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
21157     _v = SWIG_CheckState(res);
21158     if (_v) {
21159       {
21160         int res = SWIG_AsVal_size_t(argv[1], NULL);
21161         _v = SWIG_CheckState(res);
21162       }
21163       if (_v) {
21164         {
21165           int res = SWIG_AsVal_double(argv[2], NULL);
21166           _v = SWIG_CheckState(res);
21167         }
21168         if (_v) {
21169           return _wrap_DoubleVector_resize__SWIG_1(self, argc, argv);
21170         }
21171       }
21172     }
21173   }
21174 
21175 fail:
21176   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DoubleVector_resize'.\n"
21177     "  Possible C/C++ prototypes are:\n"
21178     "    std::vector< double >::resize(std::vector< double >::size_type)\n"
21179     "    std::vector< double >::resize(std::vector< double >::size_type,std::vector< double >::value_type const &)\n");
21180   return 0;
21181 }
21182 
21183 
_wrap_DoubleVector_insert__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)21184 SWIGINTERN PyObject *_wrap_DoubleVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
21185   PyObject *resultobj = 0;
21186   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21187   std::vector< double >::iterator arg2 ;
21188   std::vector< double >::value_type *arg3 = 0 ;
21189   void *argp1 = 0 ;
21190   int res1 = 0 ;
21191   swig::SwigPyIterator *iter2 = 0 ;
21192   int res2 ;
21193   std::vector< double >::value_type temp3 ;
21194   double val3 ;
21195   int ecode3 = 0 ;
21196   std::vector< double >::iterator result;
21197 
21198   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
21199   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
21200   if (!SWIG_IsOK(res1)) {
21201     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_insert" "', argument " "1"" of type '" "std::vector< double > *""'");
21202   }
21203   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21204   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
21205   if (!SWIG_IsOK(res2) || !iter2) {
21206     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
21207   } else {
21208     swig::SwigPyIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< double >::iterator > *>(iter2);
21209     if (iter_t) {
21210       arg2 = iter_t->get_current();
21211     } else {
21212       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
21213     }
21214   }
21215   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
21216   if (!SWIG_IsOK(ecode3)) {
21217     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector_insert" "', argument " "3"" of type '" "std::vector< double >::value_type""'");
21218   }
21219   temp3 = static_cast< std::vector< double >::value_type >(val3);
21220   arg3 = &temp3;
21221   {
21222     try {
21223       result = std_vector_Sl_double_Sg__insert__SWIG_0(arg1,arg2,(double const &)*arg3);
21224     } catch (const std::exception& e) {
21225       SWIG_exception(SWIG_RuntimeError, e.what());
21226     }
21227   }
21228   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)),
21229     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
21230   return resultobj;
21231 fail:
21232   return NULL;
21233 }
21234 
21235 
_wrap_DoubleVector_insert__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)21236 SWIGINTERN PyObject *_wrap_DoubleVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
21237   PyObject *resultobj = 0;
21238   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21239   std::vector< double >::iterator arg2 ;
21240   std::vector< double >::size_type arg3 ;
21241   std::vector< double >::value_type *arg4 = 0 ;
21242   void *argp1 = 0 ;
21243   int res1 = 0 ;
21244   swig::SwigPyIterator *iter2 = 0 ;
21245   int res2 ;
21246   size_t val3 ;
21247   int ecode3 = 0 ;
21248   std::vector< double >::value_type temp4 ;
21249   double val4 ;
21250   int ecode4 = 0 ;
21251 
21252   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
21253   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
21254   if (!SWIG_IsOK(res1)) {
21255     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_insert" "', argument " "1"" of type '" "std::vector< double > *""'");
21256   }
21257   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21258   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
21259   if (!SWIG_IsOK(res2) || !iter2) {
21260     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
21261   } else {
21262     swig::SwigPyIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< double >::iterator > *>(iter2);
21263     if (iter_t) {
21264       arg2 = iter_t->get_current();
21265     } else {
21266       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
21267     }
21268   }
21269   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
21270   if (!SWIG_IsOK(ecode3)) {
21271     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector_insert" "', argument " "3"" of type '" "std::vector< double >::size_type""'");
21272   }
21273   arg3 = static_cast< std::vector< double >::size_type >(val3);
21274   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
21275   if (!SWIG_IsOK(ecode4)) {
21276     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DoubleVector_insert" "', argument " "4"" of type '" "std::vector< double >::value_type""'");
21277   }
21278   temp4 = static_cast< std::vector< double >::value_type >(val4);
21279   arg4 = &temp4;
21280   {
21281     try {
21282       std_vector_Sl_double_Sg__insert__SWIG_1(arg1,arg2,arg3,(double const &)*arg4);
21283     } catch (const std::exception& e) {
21284       SWIG_exception(SWIG_RuntimeError, e.what());
21285     }
21286   }
21287   resultobj = SWIG_Py_Void();
21288   return resultobj;
21289 fail:
21290   return NULL;
21291 }
21292 
21293 
_wrap_DoubleVector_insert(PyObject * self,PyObject * args)21294 SWIGINTERN PyObject *_wrap_DoubleVector_insert(PyObject *self, PyObject *args) {
21295   Py_ssize_t argc;
21296   PyObject *argv[5] = {
21297     0
21298   };
21299 
21300   if (!(argc = SWIG_Python_UnpackTuple(args, "DoubleVector_insert", 0, 4, argv))) SWIG_fail;
21301   --argc;
21302   if (argc == 3) {
21303     int _v;
21304     int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
21305     _v = SWIG_CheckState(res);
21306     if (_v) {
21307       swig::SwigPyIterator *iter = 0;
21308       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
21309       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< double >::iterator > *>(iter) != 0));
21310       if (_v) {
21311         {
21312           int res = SWIG_AsVal_double(argv[2], NULL);
21313           _v = SWIG_CheckState(res);
21314         }
21315         if (_v) {
21316           return _wrap_DoubleVector_insert__SWIG_0(self, argc, argv);
21317         }
21318       }
21319     }
21320   }
21321   if (argc == 4) {
21322     int _v;
21323     int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
21324     _v = SWIG_CheckState(res);
21325     if (_v) {
21326       swig::SwigPyIterator *iter = 0;
21327       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
21328       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< double >::iterator > *>(iter) != 0));
21329       if (_v) {
21330         {
21331           int res = SWIG_AsVal_size_t(argv[2], NULL);
21332           _v = SWIG_CheckState(res);
21333         }
21334         if (_v) {
21335           {
21336             int res = SWIG_AsVal_double(argv[3], NULL);
21337             _v = SWIG_CheckState(res);
21338           }
21339           if (_v) {
21340             return _wrap_DoubleVector_insert__SWIG_1(self, argc, argv);
21341           }
21342         }
21343       }
21344     }
21345   }
21346 
21347 fail:
21348   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DoubleVector_insert'.\n"
21349     "  Possible C/C++ prototypes are:\n"
21350     "    std::vector< double >::insert(std::vector< double >::iterator,std::vector< double >::value_type const &)\n"
21351     "    std::vector< double >::insert(std::vector< double >::iterator,std::vector< double >::size_type,std::vector< double >::value_type const &)\n");
21352   return 0;
21353 }
21354 
21355 
_wrap_DoubleVector_reserve(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)21356 SWIGINTERN PyObject *_wrap_DoubleVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21357   PyObject *resultobj = 0;
21358   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21359   std::vector< double >::size_type arg2 ;
21360   void *argp1 = 0 ;
21361   int res1 = 0 ;
21362   size_t val2 ;
21363   int ecode2 = 0 ;
21364   PyObject * obj0 = 0 ;
21365   PyObject * obj1 = 0 ;
21366   char * kwnames[] = {
21367     (char *)"self",  (char *)"n",  NULL
21368   };
21369 
21370   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:DoubleVector_reserve", kwnames, &obj0, &obj1)) SWIG_fail;
21371   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
21372   if (!SWIG_IsOK(res1)) {
21373     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_reserve" "', argument " "1"" of type '" "std::vector< double > *""'");
21374   }
21375   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21376   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21377   if (!SWIG_IsOK(ecode2)) {
21378     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_reserve" "', argument " "2"" of type '" "std::vector< double >::size_type""'");
21379   }
21380   arg2 = static_cast< std::vector< double >::size_type >(val2);
21381   {
21382     try {
21383       (arg1)->reserve(arg2);
21384     } catch (const std::exception& e) {
21385       SWIG_exception(SWIG_RuntimeError, e.what());
21386     }
21387   }
21388   resultobj = SWIG_Py_Void();
21389   return resultobj;
21390 fail:
21391   return NULL;
21392 }
21393 
21394 
_wrap_DoubleVector_capacity(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21395 SWIGINTERN PyObject *_wrap_DoubleVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21396   PyObject *resultobj = 0;
21397   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21398   void *argp1 = 0 ;
21399   int res1 = 0 ;
21400   PyObject *swig_obj[1] ;
21401   std::vector< double >::size_type result;
21402 
21403   if (!args) SWIG_fail;
21404   swig_obj[0] = args;
21405   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
21406   if (!SWIG_IsOK(res1)) {
21407     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_capacity" "', argument " "1"" of type '" "std::vector< double > const *""'");
21408   }
21409   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21410   {
21411     try {
21412       result = ((std::vector< double > const *)arg1)->capacity();
21413     } catch (const std::exception& e) {
21414       SWIG_exception(SWIG_RuntimeError, e.what());
21415     }
21416   }
21417   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
21418   return resultobj;
21419 fail:
21420   return NULL;
21421 }
21422 
21423 
_wrap_delete_DoubleVector(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21424 SWIGINTERN PyObject *_wrap_delete_DoubleVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21425   PyObject *resultobj = 0;
21426   std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21427   void *argp1 = 0 ;
21428   int res1 = 0 ;
21429   PyObject *swig_obj[1] ;
21430 
21431   if (!args) SWIG_fail;
21432   swig_obj[0] = args;
21433   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_DISOWN |  0 );
21434   if (!SWIG_IsOK(res1)) {
21435     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DoubleVector" "', argument " "1"" of type '" "std::vector< double > *""'");
21436   }
21437   arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21438   {
21439     try {
21440       delete arg1;
21441     } catch (const std::exception& e) {
21442       SWIG_exception(SWIG_RuntimeError, e.what());
21443     }
21444   }
21445   resultobj = SWIG_Py_Void();
21446   return resultobj;
21447 fail:
21448   return NULL;
21449 }
21450 
21451 
DoubleVector_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21452 SWIGINTERN PyObject *DoubleVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21453   PyObject *obj;
21454   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
21455   SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_NewClientData(obj));
21456   return SWIG_Py_Void();
21457 }
21458 
DoubleVector_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21459 SWIGINTERN PyObject *DoubleVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21460   return SWIG_Python_InitShadowInstance(args);
21461 }
21462 
_wrap_StringVector_iterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21463 SWIGINTERN PyObject *_wrap_StringVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21464   PyObject *resultobj = 0;
21465   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
21466   PyObject **arg2 = (PyObject **) 0 ;
21467   void *argp1 = 0 ;
21468   int res1 = 0 ;
21469   PyObject *swig_obj[1] ;
21470   swig::SwigPyIterator *result = 0 ;
21471 
21472   arg2 = &swig_obj[0];
21473   if (!args) SWIG_fail;
21474   swig_obj[0] = args;
21475   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
21476   if (!SWIG_IsOK(res1)) {
21477     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_iterator" "', argument " "1"" of type '" "std::vector< std::string > *""'");
21478   }
21479   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
21480   {
21481     try {
21482       result = (swig::SwigPyIterator *)std_vector_Sl_std_string_Sg__iterator(arg1,arg2);
21483     } catch (const std::exception& e) {
21484       SWIG_exception(SWIG_RuntimeError, e.what());
21485     }
21486   }
21487   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
21488   return resultobj;
21489 fail:
21490   return NULL;
21491 }
21492 
21493 
_wrap_StringVector___nonzero__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21494 SWIGINTERN PyObject *_wrap_StringVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21495   PyObject *resultobj = 0;
21496   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
21497   void *argp1 = 0 ;
21498   int res1 = 0 ;
21499   PyObject *swig_obj[1] ;
21500   bool result;
21501 
21502   if (!args) SWIG_fail;
21503   swig_obj[0] = args;
21504   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
21505   if (!SWIG_IsOK(res1)) {
21506     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___nonzero__" "', argument " "1"" of type '" "std::vector< std::string > const *""'");
21507   }
21508   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
21509   {
21510     try {
21511       result = (bool)std_vector_Sl_std_string_Sg____nonzero__((std::vector< std::string > const *)arg1);
21512     } catch (const std::exception& e) {
21513       SWIG_exception(SWIG_RuntimeError, e.what());
21514     }
21515   }
21516   resultobj = SWIG_From_bool(static_cast< bool >(result));
21517   return resultobj;
21518 fail:
21519   return NULL;
21520 }
21521 
21522 
_wrap_StringVector___bool__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21523 SWIGINTERN PyObject *_wrap_StringVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21524   PyObject *resultobj = 0;
21525   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
21526   void *argp1 = 0 ;
21527   int res1 = 0 ;
21528   PyObject *swig_obj[1] ;
21529   bool result;
21530 
21531   if (!args) SWIG_fail;
21532   swig_obj[0] = args;
21533   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
21534   if (!SWIG_IsOK(res1)) {
21535     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___bool__" "', argument " "1"" of type '" "std::vector< std::string > const *""'");
21536   }
21537   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
21538   {
21539     try {
21540       result = (bool)std_vector_Sl_std_string_Sg____bool__((std::vector< std::string > const *)arg1);
21541     } catch (const std::exception& e) {
21542       SWIG_exception(SWIG_RuntimeError, e.what());
21543     }
21544   }
21545   resultobj = SWIG_From_bool(static_cast< bool >(result));
21546   return resultobj;
21547 fail:
21548   return NULL;
21549 }
21550 
21551 
_wrap_StringVector___len__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21552 SWIGINTERN PyObject *_wrap_StringVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21553   PyObject *resultobj = 0;
21554   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
21555   void *argp1 = 0 ;
21556   int res1 = 0 ;
21557   PyObject *swig_obj[1] ;
21558   std::vector< std::string >::size_type result;
21559 
21560   if (!args) SWIG_fail;
21561   swig_obj[0] = args;
21562   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
21563   if (!SWIG_IsOK(res1)) {
21564     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___len__" "', argument " "1"" of type '" "std::vector< std::string > const *""'");
21565   }
21566   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
21567   {
21568     try {
21569       result = std_vector_Sl_std_string_Sg____len__((std::vector< std::string > const *)arg1);
21570     } catch (const std::exception& e) {
21571       SWIG_exception(SWIG_RuntimeError, e.what());
21572     }
21573   }
21574   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
21575   return resultobj;
21576 fail:
21577   return NULL;
21578 }
21579 
21580 
_wrap_StringVector___getslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)21581 SWIGINTERN PyObject *_wrap_StringVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21582   PyObject *resultobj = 0;
21583   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
21584   std::vector< std::string >::difference_type arg2 ;
21585   std::vector< std::string >::difference_type arg3 ;
21586   void *argp1 = 0 ;
21587   int res1 = 0 ;
21588   ptrdiff_t val2 ;
21589   int ecode2 = 0 ;
21590   ptrdiff_t val3 ;
21591   int ecode3 = 0 ;
21592   PyObject * obj0 = 0 ;
21593   PyObject * obj1 = 0 ;
21594   PyObject * obj2 = 0 ;
21595   char * kwnames[] = {
21596     (char *)"self",  (char *)"i",  (char *)"j",  NULL
21597   };
21598   std::vector< std::string,std::allocator< std::string > > *result = 0 ;
21599 
21600   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:StringVector___getslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
21601   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
21602   if (!SWIG_IsOK(res1)) {
21603     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___getslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'");
21604   }
21605   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
21606   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
21607   if (!SWIG_IsOK(ecode2)) {
21608     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector___getslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'");
21609   }
21610   arg2 = static_cast< std::vector< std::string >::difference_type >(val2);
21611   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
21612   if (!SWIG_IsOK(ecode3)) {
21613     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StringVector___getslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'");
21614   }
21615   arg3 = static_cast< std::vector< std::string >::difference_type >(val3);
21616   {
21617     try {
21618       try {
21619         result = (std::vector< std::string,std::allocator< std::string > > *)std_vector_Sl_std_string_Sg____getslice__(arg1,arg2,arg3);
21620       } catch(std::out_of_range &_e) {
21621         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
21622       } catch(std::invalid_argument &_e) {
21623         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
21624       }
21625     } catch (const std::exception& e) {
21626       SWIG_exception(SWIG_RuntimeError, e.what());
21627     }
21628   }
21629   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_OWN |  0 );
21630   return resultobj;
21631 fail:
21632   return NULL;
21633 }
21634 
21635 
_wrap_StringVector___setslice____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)21636 SWIGINTERN PyObject *_wrap_StringVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
21637   PyObject *resultobj = 0;
21638   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
21639   std::vector< std::string >::difference_type arg2 ;
21640   std::vector< std::string >::difference_type arg3 ;
21641   void *argp1 = 0 ;
21642   int res1 = 0 ;
21643   ptrdiff_t val2 ;
21644   int ecode2 = 0 ;
21645   ptrdiff_t val3 ;
21646   int ecode3 = 0 ;
21647 
21648   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
21649   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
21650   if (!SWIG_IsOK(res1)) {
21651     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___setslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'");
21652   }
21653   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
21654   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
21655   if (!SWIG_IsOK(ecode2)) {
21656     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector___setslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'");
21657   }
21658   arg2 = static_cast< std::vector< std::string >::difference_type >(val2);
21659   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
21660   if (!SWIG_IsOK(ecode3)) {
21661     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StringVector___setslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'");
21662   }
21663   arg3 = static_cast< std::vector< std::string >::difference_type >(val3);
21664   {
21665     try {
21666       try {
21667         std_vector_Sl_std_string_Sg____setslice____SWIG_0(arg1,arg2,arg3);
21668       } catch(std::out_of_range &_e) {
21669         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
21670       } catch(std::invalid_argument &_e) {
21671         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
21672       }
21673     } catch (const std::exception& e) {
21674       SWIG_exception(SWIG_RuntimeError, e.what());
21675     }
21676   }
21677   resultobj = SWIG_Py_Void();
21678   return resultobj;
21679 fail:
21680   return NULL;
21681 }
21682 
21683 
_wrap_StringVector___setslice____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)21684 SWIGINTERN PyObject *_wrap_StringVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
21685   PyObject *resultobj = 0;
21686   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
21687   std::vector< std::string >::difference_type arg2 ;
21688   std::vector< std::string >::difference_type arg3 ;
21689   std::vector< std::string,std::allocator< std::string > > *arg4 = 0 ;
21690   void *argp1 = 0 ;
21691   int res1 = 0 ;
21692   ptrdiff_t val2 ;
21693   int ecode2 = 0 ;
21694   ptrdiff_t val3 ;
21695   int ecode3 = 0 ;
21696   int res4 = SWIG_OLDOBJ ;
21697 
21698   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
21699   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
21700   if (!SWIG_IsOK(res1)) {
21701     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___setslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'");
21702   }
21703   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
21704   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
21705   if (!SWIG_IsOK(ecode2)) {
21706     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector___setslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'");
21707   }
21708   arg2 = static_cast< std::vector< std::string >::difference_type >(val2);
21709   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
21710   if (!SWIG_IsOK(ecode3)) {
21711     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StringVector___setslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'");
21712   }
21713   arg3 = static_cast< std::vector< std::string >::difference_type >(val3);
21714   {
21715     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
21716     res4 = swig::asptr(swig_obj[3], &ptr);
21717     if (!SWIG_IsOK(res4)) {
21718       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StringVector___setslice__" "', argument " "4"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'");
21719     }
21720     if (!ptr) {
21721       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector___setslice__" "', argument " "4"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'");
21722     }
21723     arg4 = ptr;
21724   }
21725   {
21726     try {
21727       try {
21728         std_vector_Sl_std_string_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< std::string,std::allocator< std::string > > const &)*arg4);
21729       } catch(std::out_of_range &_e) {
21730         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
21731       } catch(std::invalid_argument &_e) {
21732         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
21733       }
21734     } catch (const std::exception& e) {
21735       SWIG_exception(SWIG_RuntimeError, e.what());
21736     }
21737   }
21738   resultobj = SWIG_Py_Void();
21739   if (SWIG_IsNewObj(res4)) delete arg4;
21740   return resultobj;
21741 fail:
21742   if (SWIG_IsNewObj(res4)) delete arg4;
21743   return NULL;
21744 }
21745 
21746 
_wrap_StringVector___setslice__(PyObject * self,PyObject * args)21747 SWIGINTERN PyObject *_wrap_StringVector___setslice__(PyObject *self, PyObject *args) {
21748   Py_ssize_t argc;
21749   PyObject *argv[5] = {
21750     0
21751   };
21752 
21753   if (!(argc = SWIG_Python_UnpackTuple(args, "StringVector___setslice__", 0, 4, argv))) SWIG_fail;
21754   --argc;
21755   if (argc == 3) {
21756     int _v;
21757     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
21758     _v = SWIG_CheckState(res);
21759     if (_v) {
21760       {
21761         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
21762         _v = SWIG_CheckState(res);
21763       }
21764       if (_v) {
21765         {
21766           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
21767           _v = SWIG_CheckState(res);
21768         }
21769         if (_v) {
21770           return _wrap_StringVector___setslice____SWIG_0(self, argc, argv);
21771         }
21772       }
21773     }
21774   }
21775   if (argc == 4) {
21776     int _v;
21777     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
21778     _v = SWIG_CheckState(res);
21779     if (_v) {
21780       {
21781         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
21782         _v = SWIG_CheckState(res);
21783       }
21784       if (_v) {
21785         {
21786           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
21787           _v = SWIG_CheckState(res);
21788         }
21789         if (_v) {
21790           int res = swig::asptr(argv[3], (std::vector< std::string,std::allocator< std::string > >**)(0));
21791           _v = SWIG_CheckState(res);
21792           if (_v) {
21793             return _wrap_StringVector___setslice____SWIG_1(self, argc, argv);
21794           }
21795         }
21796       }
21797     }
21798   }
21799 
21800 fail:
21801   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'StringVector___setslice__'.\n"
21802     "  Possible C/C++ prototypes are:\n"
21803     "    std::vector< std::string >::__setslice__(std::vector< std::string >::difference_type,std::vector< std::string >::difference_type)\n"
21804     "    std::vector< std::string >::__setslice__(std::vector< std::string >::difference_type,std::vector< std::string >::difference_type,std::vector< std::string,std::allocator< std::string > > const &)\n");
21805   return 0;
21806 }
21807 
21808 
_wrap_StringVector___delslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)21809 SWIGINTERN PyObject *_wrap_StringVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21810   PyObject *resultobj = 0;
21811   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
21812   std::vector< std::string >::difference_type arg2 ;
21813   std::vector< std::string >::difference_type arg3 ;
21814   void *argp1 = 0 ;
21815   int res1 = 0 ;
21816   ptrdiff_t val2 ;
21817   int ecode2 = 0 ;
21818   ptrdiff_t val3 ;
21819   int ecode3 = 0 ;
21820   PyObject * obj0 = 0 ;
21821   PyObject * obj1 = 0 ;
21822   PyObject * obj2 = 0 ;
21823   char * kwnames[] = {
21824     (char *)"self",  (char *)"i",  (char *)"j",  NULL
21825   };
21826 
21827   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:StringVector___delslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
21828   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
21829   if (!SWIG_IsOK(res1)) {
21830     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___delslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'");
21831   }
21832   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
21833   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
21834   if (!SWIG_IsOK(ecode2)) {
21835     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector___delslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'");
21836   }
21837   arg2 = static_cast< std::vector< std::string >::difference_type >(val2);
21838   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
21839   if (!SWIG_IsOK(ecode3)) {
21840     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StringVector___delslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'");
21841   }
21842   arg3 = static_cast< std::vector< std::string >::difference_type >(val3);
21843   {
21844     try {
21845       try {
21846         std_vector_Sl_std_string_Sg____delslice__(arg1,arg2,arg3);
21847       } catch(std::out_of_range &_e) {
21848         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
21849       } catch(std::invalid_argument &_e) {
21850         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
21851       }
21852     } catch (const std::exception& e) {
21853       SWIG_exception(SWIG_RuntimeError, e.what());
21854     }
21855   }
21856   resultobj = SWIG_Py_Void();
21857   return resultobj;
21858 fail:
21859   return NULL;
21860 }
21861 
21862 
_wrap_StringVector___delitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)21863 SWIGINTERN PyObject *_wrap_StringVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
21864   PyObject *resultobj = 0;
21865   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
21866   std::vector< std::string >::difference_type arg2 ;
21867   void *argp1 = 0 ;
21868   int res1 = 0 ;
21869   ptrdiff_t val2 ;
21870   int ecode2 = 0 ;
21871 
21872   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
21873   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
21874   if (!SWIG_IsOK(res1)) {
21875     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___delitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'");
21876   }
21877   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
21878   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
21879   if (!SWIG_IsOK(ecode2)) {
21880     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector___delitem__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'");
21881   }
21882   arg2 = static_cast< std::vector< std::string >::difference_type >(val2);
21883   {
21884     try {
21885       try {
21886         std_vector_Sl_std_string_Sg____delitem____SWIG_0(arg1,arg2);
21887       } catch(std::out_of_range &_e) {
21888         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
21889       } catch(std::invalid_argument &_e) {
21890         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
21891       }
21892     } catch (const std::exception& e) {
21893       SWIG_exception(SWIG_RuntimeError, e.what());
21894     }
21895   }
21896   resultobj = SWIG_Py_Void();
21897   return resultobj;
21898 fail:
21899   return NULL;
21900 }
21901 
21902 
_wrap_StringVector___getitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)21903 SWIGINTERN PyObject *_wrap_StringVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
21904   PyObject *resultobj = 0;
21905   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
21906   PySliceObject *arg2 = (PySliceObject *) 0 ;
21907   void *argp1 = 0 ;
21908   int res1 = 0 ;
21909   std::vector< std::string,std::allocator< std::string > > *result = 0 ;
21910 
21911   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
21912   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
21913   if (!SWIG_IsOK(res1)) {
21914     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___getitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'");
21915   }
21916   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
21917   {
21918     if (!PySlice_Check(swig_obj[1])) {
21919       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
21920     }
21921     arg2 = (PySliceObject *) swig_obj[1];
21922   }
21923   {
21924     try {
21925       try {
21926         result = (std::vector< std::string,std::allocator< std::string > > *)std_vector_Sl_std_string_Sg____getitem____SWIG_0(arg1,arg2);
21927       } catch(std::out_of_range &_e) {
21928         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
21929       } catch(std::invalid_argument &_e) {
21930         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
21931       }
21932     } catch (const std::exception& e) {
21933       SWIG_exception(SWIG_RuntimeError, e.what());
21934     }
21935   }
21936   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_OWN |  0 );
21937   return resultobj;
21938 fail:
21939   return NULL;
21940 }
21941 
21942 
_wrap_StringVector___setitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)21943 SWIGINTERN PyObject *_wrap_StringVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
21944   PyObject *resultobj = 0;
21945   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
21946   PySliceObject *arg2 = (PySliceObject *) 0 ;
21947   std::vector< std::string,std::allocator< std::string > > *arg3 = 0 ;
21948   void *argp1 = 0 ;
21949   int res1 = 0 ;
21950   int res3 = SWIG_OLDOBJ ;
21951 
21952   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
21953   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
21954   if (!SWIG_IsOK(res1)) {
21955     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___setitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'");
21956   }
21957   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
21958   {
21959     if (!PySlice_Check(swig_obj[1])) {
21960       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
21961     }
21962     arg2 = (PySliceObject *) swig_obj[1];
21963   }
21964   {
21965     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
21966     res3 = swig::asptr(swig_obj[2], &ptr);
21967     if (!SWIG_IsOK(res3)) {
21968       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StringVector___setitem__" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'");
21969     }
21970     if (!ptr) {
21971       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector___setitem__" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'");
21972     }
21973     arg3 = ptr;
21974   }
21975   {
21976     try {
21977       try {
21978         std_vector_Sl_std_string_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< std::string,std::allocator< std::string > > const &)*arg3);
21979       } catch(std::out_of_range &_e) {
21980         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
21981       } catch(std::invalid_argument &_e) {
21982         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
21983       }
21984     } catch (const std::exception& e) {
21985       SWIG_exception(SWIG_RuntimeError, e.what());
21986     }
21987   }
21988   resultobj = SWIG_Py_Void();
21989   if (SWIG_IsNewObj(res3)) delete arg3;
21990   return resultobj;
21991 fail:
21992   if (SWIG_IsNewObj(res3)) delete arg3;
21993   return NULL;
21994 }
21995 
21996 
_wrap_StringVector___setitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)21997 SWIGINTERN PyObject *_wrap_StringVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
21998   PyObject *resultobj = 0;
21999   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
22000   PySliceObject *arg2 = (PySliceObject *) 0 ;
22001   void *argp1 = 0 ;
22002   int res1 = 0 ;
22003 
22004   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
22005   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
22006   if (!SWIG_IsOK(res1)) {
22007     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___setitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'");
22008   }
22009   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
22010   {
22011     if (!PySlice_Check(swig_obj[1])) {
22012       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
22013     }
22014     arg2 = (PySliceObject *) swig_obj[1];
22015   }
22016   {
22017     try {
22018       try {
22019         std_vector_Sl_std_string_Sg____setitem____SWIG_1(arg1,arg2);
22020       } catch(std::out_of_range &_e) {
22021         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
22022       } catch(std::invalid_argument &_e) {
22023         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
22024       }
22025     } catch (const std::exception& e) {
22026       SWIG_exception(SWIG_RuntimeError, e.what());
22027     }
22028   }
22029   resultobj = SWIG_Py_Void();
22030   return resultobj;
22031 fail:
22032   return NULL;
22033 }
22034 
22035 
_wrap_StringVector___delitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)22036 SWIGINTERN PyObject *_wrap_StringVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
22037   PyObject *resultobj = 0;
22038   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
22039   PySliceObject *arg2 = (PySliceObject *) 0 ;
22040   void *argp1 = 0 ;
22041   int res1 = 0 ;
22042 
22043   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
22044   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
22045   if (!SWIG_IsOK(res1)) {
22046     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___delitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'");
22047   }
22048   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
22049   {
22050     if (!PySlice_Check(swig_obj[1])) {
22051       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
22052     }
22053     arg2 = (PySliceObject *) swig_obj[1];
22054   }
22055   {
22056     try {
22057       try {
22058         std_vector_Sl_std_string_Sg____delitem____SWIG_1(arg1,arg2);
22059       } catch(std::out_of_range &_e) {
22060         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
22061       } catch(std::invalid_argument &_e) {
22062         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
22063       }
22064     } catch (const std::exception& e) {
22065       SWIG_exception(SWIG_RuntimeError, e.what());
22066     }
22067   }
22068   resultobj = SWIG_Py_Void();
22069   return resultobj;
22070 fail:
22071   return NULL;
22072 }
22073 
22074 
_wrap_StringVector___delitem__(PyObject * self,PyObject * args)22075 SWIGINTERN PyObject *_wrap_StringVector___delitem__(PyObject *self, PyObject *args) {
22076   Py_ssize_t argc;
22077   PyObject *argv[3] = {
22078     0
22079   };
22080 
22081   if (!(argc = SWIG_Python_UnpackTuple(args, "StringVector___delitem__", 0, 2, argv))) SWIG_fail;
22082   --argc;
22083   if (argc == 2) {
22084     int _v;
22085     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
22086     _v = SWIG_CheckState(res);
22087     if (_v) {
22088       {
22089         _v = PySlice_Check(argv[1]);
22090       }
22091       if (_v) {
22092         return _wrap_StringVector___delitem____SWIG_1(self, argc, argv);
22093       }
22094     }
22095   }
22096   if (argc == 2) {
22097     int _v;
22098     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
22099     _v = SWIG_CheckState(res);
22100     if (_v) {
22101       {
22102         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
22103         _v = SWIG_CheckState(res);
22104       }
22105       if (_v) {
22106         return _wrap_StringVector___delitem____SWIG_0(self, argc, argv);
22107       }
22108     }
22109   }
22110 
22111 fail:
22112   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'StringVector___delitem__'.\n"
22113     "  Possible C/C++ prototypes are:\n"
22114     "    std::vector< std::string >::__delitem__(std::vector< std::string >::difference_type)\n"
22115     "    std::vector< std::string >::__delitem__(PySliceObject *)\n");
22116   return 0;
22117 }
22118 
22119 
_wrap_StringVector___getitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)22120 SWIGINTERN PyObject *_wrap_StringVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
22121   PyObject *resultobj = 0;
22122   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
22123   std::vector< std::string >::difference_type arg2 ;
22124   void *argp1 = 0 ;
22125   int res1 = 0 ;
22126   ptrdiff_t val2 ;
22127   int ecode2 = 0 ;
22128   std::vector< std::string >::value_type *result = 0 ;
22129 
22130   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
22131   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
22132   if (!SWIG_IsOK(res1)) {
22133     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___getitem__" "', argument " "1"" of type '" "std::vector< std::string > const *""'");
22134   }
22135   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
22136   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
22137   if (!SWIG_IsOK(ecode2)) {
22138     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector___getitem__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'");
22139   }
22140   arg2 = static_cast< std::vector< std::string >::difference_type >(val2);
22141   {
22142     try {
22143       try {
22144         result = (std::vector< std::string >::value_type *) &std_vector_Sl_std_string_Sg____getitem____SWIG_1((std::vector< std::string > const *)arg1,arg2);
22145       } catch(std::out_of_range &_e) {
22146         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
22147       }
22148     } catch (const std::exception& e) {
22149       SWIG_exception(SWIG_RuntimeError, e.what());
22150     }
22151   }
22152   resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
22153   (void)swig::container_owner<swig::traits<std::vector< std::string >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
22154   return resultobj;
22155 fail:
22156   return NULL;
22157 }
22158 
22159 
_wrap_StringVector___getitem__(PyObject * self,PyObject * args)22160 SWIGINTERN PyObject *_wrap_StringVector___getitem__(PyObject *self, PyObject *args) {
22161   Py_ssize_t argc;
22162   PyObject *argv[3] = {
22163     0
22164   };
22165 
22166   if (!(argc = SWIG_Python_UnpackTuple(args, "StringVector___getitem__", 0, 2, argv))) SWIG_fail;
22167   --argc;
22168   if (argc == 2) {
22169     int _v;
22170     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
22171     _v = SWIG_CheckState(res);
22172     if (_v) {
22173       {
22174         _v = PySlice_Check(argv[1]);
22175       }
22176       if (_v) {
22177         return _wrap_StringVector___getitem____SWIG_0(self, argc, argv);
22178       }
22179     }
22180   }
22181   if (argc == 2) {
22182     int _v;
22183     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
22184     _v = SWIG_CheckState(res);
22185     if (_v) {
22186       {
22187         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
22188         _v = SWIG_CheckState(res);
22189       }
22190       if (_v) {
22191         return _wrap_StringVector___getitem____SWIG_1(self, argc, argv);
22192       }
22193     }
22194   }
22195 
22196 fail:
22197   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'StringVector___getitem__'.\n"
22198     "  Possible C/C++ prototypes are:\n"
22199     "    std::vector< std::string >::__getitem__(PySliceObject *)\n"
22200     "    std::vector< std::string >::__getitem__(std::vector< std::string >::difference_type) const\n");
22201   return 0;
22202 }
22203 
22204 
_wrap_StringVector___setitem____SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)22205 SWIGINTERN PyObject *_wrap_StringVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
22206   PyObject *resultobj = 0;
22207   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
22208   std::vector< std::string >::difference_type arg2 ;
22209   std::vector< std::string >::value_type *arg3 = 0 ;
22210   void *argp1 = 0 ;
22211   int res1 = 0 ;
22212   ptrdiff_t val2 ;
22213   int ecode2 = 0 ;
22214   int res3 = SWIG_OLDOBJ ;
22215 
22216   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
22217   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
22218   if (!SWIG_IsOK(res1)) {
22219     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector___setitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'");
22220   }
22221   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
22222   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
22223   if (!SWIG_IsOK(ecode2)) {
22224     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector___setitem__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'");
22225   }
22226   arg2 = static_cast< std::vector< std::string >::difference_type >(val2);
22227   {
22228     std::string *ptr = (std::string *)0;
22229     res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
22230     if (!SWIG_IsOK(res3)) {
22231       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StringVector___setitem__" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'");
22232     }
22233     if (!ptr) {
22234       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector___setitem__" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'");
22235     }
22236     arg3 = ptr;
22237   }
22238   {
22239     try {
22240       try {
22241         std_vector_Sl_std_string_Sg____setitem____SWIG_2(arg1,arg2,(std::string const &)*arg3);
22242       } catch(std::out_of_range &_e) {
22243         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
22244       }
22245     } catch (const std::exception& e) {
22246       SWIG_exception(SWIG_RuntimeError, e.what());
22247     }
22248   }
22249   resultobj = SWIG_Py_Void();
22250   if (SWIG_IsNewObj(res3)) delete arg3;
22251   return resultobj;
22252 fail:
22253   if (SWIG_IsNewObj(res3)) delete arg3;
22254   return NULL;
22255 }
22256 
22257 
_wrap_StringVector___setitem__(PyObject * self,PyObject * args)22258 SWIGINTERN PyObject *_wrap_StringVector___setitem__(PyObject *self, PyObject *args) {
22259   Py_ssize_t argc;
22260   PyObject *argv[4] = {
22261     0
22262   };
22263 
22264   if (!(argc = SWIG_Python_UnpackTuple(args, "StringVector___setitem__", 0, 3, argv))) SWIG_fail;
22265   --argc;
22266   if (argc == 2) {
22267     int _v;
22268     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
22269     _v = SWIG_CheckState(res);
22270     if (_v) {
22271       {
22272         _v = PySlice_Check(argv[1]);
22273       }
22274       if (_v) {
22275         return _wrap_StringVector___setitem____SWIG_1(self, argc, argv);
22276       }
22277     }
22278   }
22279   if (argc == 3) {
22280     int _v;
22281     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
22282     _v = SWIG_CheckState(res);
22283     if (_v) {
22284       {
22285         _v = PySlice_Check(argv[1]);
22286       }
22287       if (_v) {
22288         int res = swig::asptr(argv[2], (std::vector< std::string,std::allocator< std::string > >**)(0));
22289         _v = SWIG_CheckState(res);
22290         if (_v) {
22291           return _wrap_StringVector___setitem____SWIG_0(self, argc, argv);
22292         }
22293       }
22294     }
22295   }
22296   if (argc == 3) {
22297     int _v;
22298     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
22299     _v = SWIG_CheckState(res);
22300     if (_v) {
22301       {
22302         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
22303         _v = SWIG_CheckState(res);
22304       }
22305       if (_v) {
22306         int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
22307         _v = SWIG_CheckState(res);
22308         if (_v) {
22309           return _wrap_StringVector___setitem____SWIG_2(self, argc, argv);
22310         }
22311       }
22312     }
22313   }
22314 
22315 fail:
22316   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'StringVector___setitem__'.\n"
22317     "  Possible C/C++ prototypes are:\n"
22318     "    std::vector< std::string >::__setitem__(PySliceObject *,std::vector< std::string,std::allocator< std::string > > const &)\n"
22319     "    std::vector< std::string >::__setitem__(PySliceObject *)\n"
22320     "    std::vector< std::string >::__setitem__(std::vector< std::string >::difference_type,std::vector< std::string >::value_type const &)\n");
22321   return 0;
22322 }
22323 
22324 
_wrap_StringVector_pop(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22325 SWIGINTERN PyObject *_wrap_StringVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22326   PyObject *resultobj = 0;
22327   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
22328   void *argp1 = 0 ;
22329   int res1 = 0 ;
22330   PyObject *swig_obj[1] ;
22331   std::vector< std::string >::value_type result;
22332 
22333   if (!args) SWIG_fail;
22334   swig_obj[0] = args;
22335   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
22336   if (!SWIG_IsOK(res1)) {
22337     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_pop" "', argument " "1"" of type '" "std::vector< std::string > *""'");
22338   }
22339   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
22340   {
22341     try {
22342       try {
22343         result = std_vector_Sl_std_string_Sg__pop(arg1);
22344       } catch(std::out_of_range &_e) {
22345         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
22346       }
22347     } catch (const std::exception& e) {
22348       SWIG_exception(SWIG_RuntimeError, e.what());
22349     }
22350   }
22351   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
22352   return resultobj;
22353 fail:
22354   return NULL;
22355 }
22356 
22357 
_wrap_StringVector_append(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)22358 SWIGINTERN PyObject *_wrap_StringVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22359   PyObject *resultobj = 0;
22360   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
22361   std::vector< std::string >::value_type *arg2 = 0 ;
22362   void *argp1 = 0 ;
22363   int res1 = 0 ;
22364   int res2 = SWIG_OLDOBJ ;
22365   PyObject * obj0 = 0 ;
22366   PyObject * obj1 = 0 ;
22367   char * kwnames[] = {
22368     (char *)"self",  (char *)"x",  NULL
22369   };
22370 
22371   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:StringVector_append", kwnames, &obj0, &obj1)) SWIG_fail;
22372   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
22373   if (!SWIG_IsOK(res1)) {
22374     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_append" "', argument " "1"" of type '" "std::vector< std::string > *""'");
22375   }
22376   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
22377   {
22378     std::string *ptr = (std::string *)0;
22379     res2 = SWIG_AsPtr_std_string(obj1, &ptr);
22380     if (!SWIG_IsOK(res2)) {
22381       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringVector_append" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'");
22382     }
22383     if (!ptr) {
22384       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector_append" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'");
22385     }
22386     arg2 = ptr;
22387   }
22388   {
22389     try {
22390       std_vector_Sl_std_string_Sg__append(arg1,(std::string const &)*arg2);
22391     } catch (const std::exception& e) {
22392       SWIG_exception(SWIG_RuntimeError, e.what());
22393     }
22394   }
22395   resultobj = SWIG_Py_Void();
22396   if (SWIG_IsNewObj(res2)) delete arg2;
22397   return resultobj;
22398 fail:
22399   if (SWIG_IsNewObj(res2)) delete arg2;
22400   return NULL;
22401 }
22402 
22403 
_wrap_new_StringVector__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))22404 SWIGINTERN PyObject *_wrap_new_StringVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
22405   PyObject *resultobj = 0;
22406   std::vector< std::string > *result = 0 ;
22407 
22408   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
22409   {
22410     try {
22411       result = (std::vector< std::string > *)new std::vector< std::string >();
22412     } catch (const std::exception& e) {
22413       SWIG_exception(SWIG_RuntimeError, e.what());
22414     }
22415   }
22416   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_NEW |  0 );
22417   return resultobj;
22418 fail:
22419   return NULL;
22420 }
22421 
22422 
_wrap_new_StringVector__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)22423 SWIGINTERN PyObject *_wrap_new_StringVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
22424   PyObject *resultobj = 0;
22425   std::vector< std::string > *arg1 = 0 ;
22426   int res1 = SWIG_OLDOBJ ;
22427   std::vector< std::string > *result = 0 ;
22428 
22429   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
22430   {
22431     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
22432     res1 = swig::asptr(swig_obj[0], &ptr);
22433     if (!SWIG_IsOK(res1)) {
22434       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StringVector" "', argument " "1"" of type '" "std::vector< std::string > const &""'");
22435     }
22436     if (!ptr) {
22437       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StringVector" "', argument " "1"" of type '" "std::vector< std::string > const &""'");
22438     }
22439     arg1 = ptr;
22440   }
22441   {
22442     try {
22443       result = (std::vector< std::string > *)new std::vector< std::string >((std::vector< std::string > const &)*arg1);
22444     } catch (const std::exception& e) {
22445       SWIG_exception(SWIG_RuntimeError, e.what());
22446     }
22447   }
22448   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_NEW |  0 );
22449   if (SWIG_IsNewObj(res1)) delete arg1;
22450   return resultobj;
22451 fail:
22452   if (SWIG_IsNewObj(res1)) delete arg1;
22453   return NULL;
22454 }
22455 
22456 
_wrap_StringVector_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22457 SWIGINTERN PyObject *_wrap_StringVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22458   PyObject *resultobj = 0;
22459   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
22460   void *argp1 = 0 ;
22461   int res1 = 0 ;
22462   PyObject *swig_obj[1] ;
22463   bool result;
22464 
22465   if (!args) SWIG_fail;
22466   swig_obj[0] = args;
22467   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
22468   if (!SWIG_IsOK(res1)) {
22469     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_empty" "', argument " "1"" of type '" "std::vector< std::string > const *""'");
22470   }
22471   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
22472   {
22473     try {
22474       result = (bool)((std::vector< std::string > const *)arg1)->empty();
22475     } catch (const std::exception& e) {
22476       SWIG_exception(SWIG_RuntimeError, e.what());
22477     }
22478   }
22479   resultobj = SWIG_From_bool(static_cast< bool >(result));
22480   return resultobj;
22481 fail:
22482   return NULL;
22483 }
22484 
22485 
_wrap_StringVector_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22486 SWIGINTERN PyObject *_wrap_StringVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22487   PyObject *resultobj = 0;
22488   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
22489   void *argp1 = 0 ;
22490   int res1 = 0 ;
22491   PyObject *swig_obj[1] ;
22492   std::vector< std::string >::size_type result;
22493 
22494   if (!args) SWIG_fail;
22495   swig_obj[0] = args;
22496   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
22497   if (!SWIG_IsOK(res1)) {
22498     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_size" "', argument " "1"" of type '" "std::vector< std::string > const *""'");
22499   }
22500   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
22501   {
22502     try {
22503       result = ((std::vector< std::string > const *)arg1)->size();
22504     } catch (const std::exception& e) {
22505       SWIG_exception(SWIG_RuntimeError, e.what());
22506     }
22507   }
22508   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
22509   return resultobj;
22510 fail:
22511   return NULL;
22512 }
22513 
22514 
_wrap_StringVector_swap(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)22515 SWIGINTERN PyObject *_wrap_StringVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22516   PyObject *resultobj = 0;
22517   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
22518   std::vector< std::string > *arg2 = 0 ;
22519   void *argp1 = 0 ;
22520   int res1 = 0 ;
22521   void *argp2 = 0 ;
22522   int res2 = 0 ;
22523   PyObject * obj0 = 0 ;
22524   PyObject * obj1 = 0 ;
22525   char * kwnames[] = {
22526     (char *)"self",  (char *)"v",  NULL
22527   };
22528 
22529   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:StringVector_swap", kwnames, &obj0, &obj1)) SWIG_fail;
22530   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
22531   if (!SWIG_IsOK(res1)) {
22532     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_swap" "', argument " "1"" of type '" "std::vector< std::string > *""'");
22533   }
22534   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
22535   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t,  0 );
22536   if (!SWIG_IsOK(res2)) {
22537     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringVector_swap" "', argument " "2"" of type '" "std::vector< std::string > &""'");
22538   }
22539   if (!argp2) {
22540     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector_swap" "', argument " "2"" of type '" "std::vector< std::string > &""'");
22541   }
22542   arg2 = reinterpret_cast< std::vector< std::string > * >(argp2);
22543   {
22544     try {
22545       (arg1)->swap(*arg2);
22546     } catch (const std::exception& e) {
22547       SWIG_exception(SWIG_RuntimeError, e.what());
22548     }
22549   }
22550   resultobj = SWIG_Py_Void();
22551   return resultobj;
22552 fail:
22553   return NULL;
22554 }
22555 
22556 
_wrap_StringVector_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22557 SWIGINTERN PyObject *_wrap_StringVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22558   PyObject *resultobj = 0;
22559   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
22560   void *argp1 = 0 ;
22561   int res1 = 0 ;
22562   PyObject *swig_obj[1] ;
22563   std::vector< std::string >::iterator result;
22564 
22565   if (!args) SWIG_fail;
22566   swig_obj[0] = args;
22567   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
22568   if (!SWIG_IsOK(res1)) {
22569     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_begin" "', argument " "1"" of type '" "std::vector< std::string > *""'");
22570   }
22571   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
22572   {
22573     try {
22574       result = (arg1)->begin();
22575     } catch (const std::exception& e) {
22576       SWIG_exception(SWIG_RuntimeError, e.what());
22577     }
22578   }
22579   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)),
22580     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
22581   return resultobj;
22582 fail:
22583   return NULL;
22584 }
22585 
22586 
_wrap_StringVector_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22587 SWIGINTERN PyObject *_wrap_StringVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22588   PyObject *resultobj = 0;
22589   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
22590   void *argp1 = 0 ;
22591   int res1 = 0 ;
22592   PyObject *swig_obj[1] ;
22593   std::vector< std::string >::iterator result;
22594 
22595   if (!args) SWIG_fail;
22596   swig_obj[0] = args;
22597   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
22598   if (!SWIG_IsOK(res1)) {
22599     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_end" "', argument " "1"" of type '" "std::vector< std::string > *""'");
22600   }
22601   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
22602   {
22603     try {
22604       result = (arg1)->end();
22605     } catch (const std::exception& e) {
22606       SWIG_exception(SWIG_RuntimeError, e.what());
22607     }
22608   }
22609   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)),
22610     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
22611   return resultobj;
22612 fail:
22613   return NULL;
22614 }
22615 
22616 
_wrap_StringVector_rbegin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22617 SWIGINTERN PyObject *_wrap_StringVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22618   PyObject *resultobj = 0;
22619   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
22620   void *argp1 = 0 ;
22621   int res1 = 0 ;
22622   PyObject *swig_obj[1] ;
22623   std::vector< std::string >::reverse_iterator result;
22624 
22625   if (!args) SWIG_fail;
22626   swig_obj[0] = args;
22627   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
22628   if (!SWIG_IsOK(res1)) {
22629     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_rbegin" "', argument " "1"" of type '" "std::vector< std::string > *""'");
22630   }
22631   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
22632   {
22633     try {
22634       result = (arg1)->rbegin();
22635     } catch (const std::exception& e) {
22636       SWIG_exception(SWIG_RuntimeError, e.what());
22637     }
22638   }
22639   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::reverse_iterator & >(result)),
22640     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
22641   return resultobj;
22642 fail:
22643   return NULL;
22644 }
22645 
22646 
_wrap_StringVector_rend(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22647 SWIGINTERN PyObject *_wrap_StringVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22648   PyObject *resultobj = 0;
22649   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
22650   void *argp1 = 0 ;
22651   int res1 = 0 ;
22652   PyObject *swig_obj[1] ;
22653   std::vector< std::string >::reverse_iterator result;
22654 
22655   if (!args) SWIG_fail;
22656   swig_obj[0] = args;
22657   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
22658   if (!SWIG_IsOK(res1)) {
22659     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_rend" "', argument " "1"" of type '" "std::vector< std::string > *""'");
22660   }
22661   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
22662   {
22663     try {
22664       result = (arg1)->rend();
22665     } catch (const std::exception& e) {
22666       SWIG_exception(SWIG_RuntimeError, e.what());
22667     }
22668   }
22669   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::reverse_iterator & >(result)),
22670     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
22671   return resultobj;
22672 fail:
22673   return NULL;
22674 }
22675 
22676 
_wrap_StringVector_clear(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22677 SWIGINTERN PyObject *_wrap_StringVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22678   PyObject *resultobj = 0;
22679   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
22680   void *argp1 = 0 ;
22681   int res1 = 0 ;
22682   PyObject *swig_obj[1] ;
22683 
22684   if (!args) SWIG_fail;
22685   swig_obj[0] = args;
22686   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
22687   if (!SWIG_IsOK(res1)) {
22688     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_clear" "', argument " "1"" of type '" "std::vector< std::string > *""'");
22689   }
22690   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
22691   {
22692     try {
22693       (arg1)->clear();
22694     } catch (const std::exception& e) {
22695       SWIG_exception(SWIG_RuntimeError, e.what());
22696     }
22697   }
22698   resultobj = SWIG_Py_Void();
22699   return resultobj;
22700 fail:
22701   return NULL;
22702 }
22703 
22704 
_wrap_StringVector_get_allocator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22705 SWIGINTERN PyObject *_wrap_StringVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22706   PyObject *resultobj = 0;
22707   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
22708   void *argp1 = 0 ;
22709   int res1 = 0 ;
22710   PyObject *swig_obj[1] ;
22711   SwigValueWrapper< std::allocator< std::string > > result;
22712 
22713   if (!args) SWIG_fail;
22714   swig_obj[0] = args;
22715   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
22716   if (!SWIG_IsOK(res1)) {
22717     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_get_allocator" "', argument " "1"" of type '" "std::vector< std::string > const *""'");
22718   }
22719   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
22720   {
22721     try {
22722       result = ((std::vector< std::string > const *)arg1)->get_allocator();
22723     } catch (const std::exception& e) {
22724       SWIG_exception(SWIG_RuntimeError, e.what());
22725     }
22726   }
22727   resultobj = SWIG_NewPointerObj((new std::vector< std::string >::allocator_type(static_cast< const std::vector< std::string >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__string_t, SWIG_POINTER_OWN |  0 );
22728   return resultobj;
22729 fail:
22730   return NULL;
22731 }
22732 
22733 
_wrap_new_StringVector__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)22734 SWIGINTERN PyObject *_wrap_new_StringVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
22735   PyObject *resultobj = 0;
22736   std::vector< std::string >::size_type arg1 ;
22737   size_t val1 ;
22738   int ecode1 = 0 ;
22739   std::vector< std::string > *result = 0 ;
22740 
22741   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
22742   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
22743   if (!SWIG_IsOK(ecode1)) {
22744     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StringVector" "', argument " "1"" of type '" "std::vector< std::string >::size_type""'");
22745   }
22746   arg1 = static_cast< std::vector< std::string >::size_type >(val1);
22747   {
22748     try {
22749       result = (std::vector< std::string > *)new std::vector< std::string >(arg1);
22750     } catch (const std::exception& e) {
22751       SWIG_exception(SWIG_RuntimeError, e.what());
22752     }
22753   }
22754   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_NEW |  0 );
22755   return resultobj;
22756 fail:
22757   return NULL;
22758 }
22759 
22760 
_wrap_StringVector_pop_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22761 SWIGINTERN PyObject *_wrap_StringVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22762   PyObject *resultobj = 0;
22763   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
22764   void *argp1 = 0 ;
22765   int res1 = 0 ;
22766   PyObject *swig_obj[1] ;
22767 
22768   if (!args) SWIG_fail;
22769   swig_obj[0] = args;
22770   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
22771   if (!SWIG_IsOK(res1)) {
22772     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_pop_back" "', argument " "1"" of type '" "std::vector< std::string > *""'");
22773   }
22774   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
22775   {
22776     try {
22777       (arg1)->pop_back();
22778     } catch (const std::exception& e) {
22779       SWIG_exception(SWIG_RuntimeError, e.what());
22780     }
22781   }
22782   resultobj = SWIG_Py_Void();
22783   return resultobj;
22784 fail:
22785   return NULL;
22786 }
22787 
22788 
_wrap_StringVector_resize__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)22789 SWIGINTERN PyObject *_wrap_StringVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
22790   PyObject *resultobj = 0;
22791   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
22792   std::vector< std::string >::size_type arg2 ;
22793   void *argp1 = 0 ;
22794   int res1 = 0 ;
22795   size_t val2 ;
22796   int ecode2 = 0 ;
22797 
22798   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
22799   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
22800   if (!SWIG_IsOK(res1)) {
22801     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_resize" "', argument " "1"" of type '" "std::vector< std::string > *""'");
22802   }
22803   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
22804   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
22805   if (!SWIG_IsOK(ecode2)) {
22806     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector_resize" "', argument " "2"" of type '" "std::vector< std::string >::size_type""'");
22807   }
22808   arg2 = static_cast< std::vector< std::string >::size_type >(val2);
22809   {
22810     try {
22811       (arg1)->resize(arg2);
22812     } catch (const std::exception& e) {
22813       SWIG_exception(SWIG_RuntimeError, e.what());
22814     }
22815   }
22816   resultobj = SWIG_Py_Void();
22817   return resultobj;
22818 fail:
22819   return NULL;
22820 }
22821 
22822 
_wrap_StringVector_erase__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)22823 SWIGINTERN PyObject *_wrap_StringVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
22824   PyObject *resultobj = 0;
22825   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
22826   std::vector< std::string >::iterator arg2 ;
22827   void *argp1 = 0 ;
22828   int res1 = 0 ;
22829   swig::SwigPyIterator *iter2 = 0 ;
22830   int res2 ;
22831   std::vector< std::string >::iterator result;
22832 
22833   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
22834   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
22835   if (!SWIG_IsOK(res1)) {
22836     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_erase" "', argument " "1"" of type '" "std::vector< std::string > *""'");
22837   }
22838   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
22839   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
22840   if (!SWIG_IsOK(res2) || !iter2) {
22841     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_erase" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'");
22842   } else {
22843     swig::SwigPyIterator_T<std::vector< std::string >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::string >::iterator > *>(iter2);
22844     if (iter_t) {
22845       arg2 = iter_t->get_current();
22846     } else {
22847       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_erase" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'");
22848     }
22849   }
22850   {
22851     try {
22852       result = std_vector_Sl_std_string_Sg__erase__SWIG_0(arg1,arg2);
22853     } catch (const std::exception& e) {
22854       SWIG_exception(SWIG_RuntimeError, e.what());
22855     }
22856   }
22857   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)),
22858     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
22859   return resultobj;
22860 fail:
22861   return NULL;
22862 }
22863 
22864 
_wrap_StringVector_erase__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)22865 SWIGINTERN PyObject *_wrap_StringVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
22866   PyObject *resultobj = 0;
22867   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
22868   std::vector< std::string >::iterator arg2 ;
22869   std::vector< std::string >::iterator arg3 ;
22870   void *argp1 = 0 ;
22871   int res1 = 0 ;
22872   swig::SwigPyIterator *iter2 = 0 ;
22873   int res2 ;
22874   swig::SwigPyIterator *iter3 = 0 ;
22875   int res3 ;
22876   std::vector< std::string >::iterator result;
22877 
22878   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
22879   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
22880   if (!SWIG_IsOK(res1)) {
22881     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_erase" "', argument " "1"" of type '" "std::vector< std::string > *""'");
22882   }
22883   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
22884   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
22885   if (!SWIG_IsOK(res2) || !iter2) {
22886     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_erase" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'");
22887   } else {
22888     swig::SwigPyIterator_T<std::vector< std::string >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::string >::iterator > *>(iter2);
22889     if (iter_t) {
22890       arg2 = iter_t->get_current();
22891     } else {
22892       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_erase" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'");
22893     }
22894   }
22895   res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
22896   if (!SWIG_IsOK(res3) || !iter3) {
22897     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_erase" "', argument " "3"" of type '" "std::vector< std::string >::iterator""'");
22898   } else {
22899     swig::SwigPyIterator_T<std::vector< std::string >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::string >::iterator > *>(iter3);
22900     if (iter_t) {
22901       arg3 = iter_t->get_current();
22902     } else {
22903       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_erase" "', argument " "3"" of type '" "std::vector< std::string >::iterator""'");
22904     }
22905   }
22906   {
22907     try {
22908       result = std_vector_Sl_std_string_Sg__erase__SWIG_1(arg1,arg2,arg3);
22909     } catch (const std::exception& e) {
22910       SWIG_exception(SWIG_RuntimeError, e.what());
22911     }
22912   }
22913   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)),
22914     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
22915   return resultobj;
22916 fail:
22917   return NULL;
22918 }
22919 
22920 
_wrap_StringVector_erase(PyObject * self,PyObject * args)22921 SWIGINTERN PyObject *_wrap_StringVector_erase(PyObject *self, PyObject *args) {
22922   Py_ssize_t argc;
22923   PyObject *argv[4] = {
22924     0
22925   };
22926 
22927   if (!(argc = SWIG_Python_UnpackTuple(args, "StringVector_erase", 0, 3, argv))) SWIG_fail;
22928   --argc;
22929   if (argc == 2) {
22930     int _v;
22931     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
22932     _v = SWIG_CheckState(res);
22933     if (_v) {
22934       swig::SwigPyIterator *iter = 0;
22935       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
22936       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::string >::iterator > *>(iter) != 0));
22937       if (_v) {
22938         return _wrap_StringVector_erase__SWIG_0(self, argc, argv);
22939       }
22940     }
22941   }
22942   if (argc == 3) {
22943     int _v;
22944     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
22945     _v = SWIG_CheckState(res);
22946     if (_v) {
22947       swig::SwigPyIterator *iter = 0;
22948       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
22949       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::string >::iterator > *>(iter) != 0));
22950       if (_v) {
22951         swig::SwigPyIterator *iter = 0;
22952         int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
22953         _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::string >::iterator > *>(iter) != 0));
22954         if (_v) {
22955           return _wrap_StringVector_erase__SWIG_1(self, argc, argv);
22956         }
22957       }
22958     }
22959   }
22960 
22961 fail:
22962   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'StringVector_erase'.\n"
22963     "  Possible C/C++ prototypes are:\n"
22964     "    std::vector< std::string >::erase(std::vector< std::string >::iterator)\n"
22965     "    std::vector< std::string >::erase(std::vector< std::string >::iterator,std::vector< std::string >::iterator)\n");
22966   return 0;
22967 }
22968 
22969 
_wrap_new_StringVector__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)22970 SWIGINTERN PyObject *_wrap_new_StringVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
22971   PyObject *resultobj = 0;
22972   std::vector< std::string >::size_type arg1 ;
22973   std::vector< std::string >::value_type *arg2 = 0 ;
22974   size_t val1 ;
22975   int ecode1 = 0 ;
22976   int res2 = SWIG_OLDOBJ ;
22977   std::vector< std::string > *result = 0 ;
22978 
22979   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
22980   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
22981   if (!SWIG_IsOK(ecode1)) {
22982     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StringVector" "', argument " "1"" of type '" "std::vector< std::string >::size_type""'");
22983   }
22984   arg1 = static_cast< std::vector< std::string >::size_type >(val1);
22985   {
22986     std::string *ptr = (std::string *)0;
22987     res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
22988     if (!SWIG_IsOK(res2)) {
22989       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_StringVector" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'");
22990     }
22991     if (!ptr) {
22992       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StringVector" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'");
22993     }
22994     arg2 = ptr;
22995   }
22996   {
22997     try {
22998       result = (std::vector< std::string > *)new std::vector< std::string >(arg1,(std::vector< std::string >::value_type const &)*arg2);
22999     } catch (const std::exception& e) {
23000       SWIG_exception(SWIG_RuntimeError, e.what());
23001     }
23002   }
23003   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_NEW |  0 );
23004   if (SWIG_IsNewObj(res2)) delete arg2;
23005   return resultobj;
23006 fail:
23007   if (SWIG_IsNewObj(res2)) delete arg2;
23008   return NULL;
23009 }
23010 
23011 
_wrap_new_StringVector(PyObject * self,PyObject * args)23012 SWIGINTERN PyObject *_wrap_new_StringVector(PyObject *self, PyObject *args) {
23013   Py_ssize_t argc;
23014   PyObject *argv[3] = {
23015     0
23016   };
23017 
23018   if (!(argc = SWIG_Python_UnpackTuple(args, "new_StringVector", 0, 2, argv))) SWIG_fail;
23019   --argc;
23020   if (argc == 0) {
23021     return _wrap_new_StringVector__SWIG_0(self, argc, argv);
23022   }
23023   if (argc == 1) {
23024     int _v;
23025     {
23026       int res = SWIG_AsVal_size_t(argv[0], NULL);
23027       _v = SWIG_CheckState(res);
23028     }
23029     if (_v) {
23030       return _wrap_new_StringVector__SWIG_2(self, argc, argv);
23031     }
23032   }
23033   if (argc == 1) {
23034     int _v;
23035     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
23036     _v = SWIG_CheckState(res);
23037     if (_v) {
23038       return _wrap_new_StringVector__SWIG_1(self, argc, argv);
23039     }
23040   }
23041   if (argc == 2) {
23042     int _v;
23043     {
23044       int res = SWIG_AsVal_size_t(argv[0], NULL);
23045       _v = SWIG_CheckState(res);
23046     }
23047     if (_v) {
23048       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
23049       _v = SWIG_CheckState(res);
23050       if (_v) {
23051         return _wrap_new_StringVector__SWIG_3(self, argc, argv);
23052       }
23053     }
23054   }
23055 
23056 fail:
23057   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_StringVector'.\n"
23058     "  Possible C/C++ prototypes are:\n"
23059     "    std::vector< std::string >::vector()\n"
23060     "    std::vector< std::string >::vector(std::vector< std::string > const &)\n"
23061     "    std::vector< std::string >::vector(std::vector< std::string >::size_type)\n"
23062     "    std::vector< std::string >::vector(std::vector< std::string >::size_type,std::vector< std::string >::value_type const &)\n");
23063   return 0;
23064 }
23065 
23066 
_wrap_StringVector_push_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)23067 SWIGINTERN PyObject *_wrap_StringVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23068   PyObject *resultobj = 0;
23069   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
23070   std::vector< std::string >::value_type *arg2 = 0 ;
23071   void *argp1 = 0 ;
23072   int res1 = 0 ;
23073   int res2 = SWIG_OLDOBJ ;
23074   PyObject * obj0 = 0 ;
23075   PyObject * obj1 = 0 ;
23076   char * kwnames[] = {
23077     (char *)"self",  (char *)"x",  NULL
23078   };
23079 
23080   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:StringVector_push_back", kwnames, &obj0, &obj1)) SWIG_fail;
23081   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
23082   if (!SWIG_IsOK(res1)) {
23083     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_push_back" "', argument " "1"" of type '" "std::vector< std::string > *""'");
23084   }
23085   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
23086   {
23087     std::string *ptr = (std::string *)0;
23088     res2 = SWIG_AsPtr_std_string(obj1, &ptr);
23089     if (!SWIG_IsOK(res2)) {
23090       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringVector_push_back" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'");
23091     }
23092     if (!ptr) {
23093       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector_push_back" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'");
23094     }
23095     arg2 = ptr;
23096   }
23097   {
23098     try {
23099       (arg1)->push_back((std::vector< std::string >::value_type const &)*arg2);
23100     } catch (const std::exception& e) {
23101       SWIG_exception(SWIG_RuntimeError, e.what());
23102     }
23103   }
23104   resultobj = SWIG_Py_Void();
23105   if (SWIG_IsNewObj(res2)) delete arg2;
23106   return resultobj;
23107 fail:
23108   if (SWIG_IsNewObj(res2)) delete arg2;
23109   return NULL;
23110 }
23111 
23112 
_wrap_StringVector_front(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23113 SWIGINTERN PyObject *_wrap_StringVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23114   PyObject *resultobj = 0;
23115   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
23116   void *argp1 = 0 ;
23117   int res1 = 0 ;
23118   PyObject *swig_obj[1] ;
23119   std::vector< std::string >::value_type *result = 0 ;
23120 
23121   if (!args) SWIG_fail;
23122   swig_obj[0] = args;
23123   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
23124   if (!SWIG_IsOK(res1)) {
23125     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_front" "', argument " "1"" of type '" "std::vector< std::string > const *""'");
23126   }
23127   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
23128   {
23129     try {
23130       result = (std::vector< std::string >::value_type *) &((std::vector< std::string > const *)arg1)->front();
23131     } catch (const std::exception& e) {
23132       SWIG_exception(SWIG_RuntimeError, e.what());
23133     }
23134   }
23135   resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
23136   (void)swig::container_owner<swig::traits<std::vector< std::string >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
23137   return resultobj;
23138 fail:
23139   return NULL;
23140 }
23141 
23142 
_wrap_StringVector_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23143 SWIGINTERN PyObject *_wrap_StringVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23144   PyObject *resultobj = 0;
23145   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
23146   void *argp1 = 0 ;
23147   int res1 = 0 ;
23148   PyObject *swig_obj[1] ;
23149   std::vector< std::string >::value_type *result = 0 ;
23150 
23151   if (!args) SWIG_fail;
23152   swig_obj[0] = args;
23153   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
23154   if (!SWIG_IsOK(res1)) {
23155     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_back" "', argument " "1"" of type '" "std::vector< std::string > const *""'");
23156   }
23157   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
23158   {
23159     try {
23160       result = (std::vector< std::string >::value_type *) &((std::vector< std::string > const *)arg1)->back();
23161     } catch (const std::exception& e) {
23162       SWIG_exception(SWIG_RuntimeError, e.what());
23163     }
23164   }
23165   resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
23166   (void)swig::container_owner<swig::traits<std::vector< std::string >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
23167   return resultobj;
23168 fail:
23169   return NULL;
23170 }
23171 
23172 
_wrap_StringVector_assign(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)23173 SWIGINTERN PyObject *_wrap_StringVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23174   PyObject *resultobj = 0;
23175   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
23176   std::vector< std::string >::size_type arg2 ;
23177   std::vector< std::string >::value_type *arg3 = 0 ;
23178   void *argp1 = 0 ;
23179   int res1 = 0 ;
23180   size_t val2 ;
23181   int ecode2 = 0 ;
23182   int res3 = SWIG_OLDOBJ ;
23183   PyObject * obj0 = 0 ;
23184   PyObject * obj1 = 0 ;
23185   PyObject * obj2 = 0 ;
23186   char * kwnames[] = {
23187     (char *)"self",  (char *)"n",  (char *)"x",  NULL
23188   };
23189 
23190   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:StringVector_assign", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
23191   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
23192   if (!SWIG_IsOK(res1)) {
23193     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_assign" "', argument " "1"" of type '" "std::vector< std::string > *""'");
23194   }
23195   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
23196   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23197   if (!SWIG_IsOK(ecode2)) {
23198     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector_assign" "', argument " "2"" of type '" "std::vector< std::string >::size_type""'");
23199   }
23200   arg2 = static_cast< std::vector< std::string >::size_type >(val2);
23201   {
23202     std::string *ptr = (std::string *)0;
23203     res3 = SWIG_AsPtr_std_string(obj2, &ptr);
23204     if (!SWIG_IsOK(res3)) {
23205       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StringVector_assign" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'");
23206     }
23207     if (!ptr) {
23208       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector_assign" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'");
23209     }
23210     arg3 = ptr;
23211   }
23212   {
23213     try {
23214       (arg1)->assign(arg2,(std::vector< std::string >::value_type const &)*arg3);
23215     } catch (const std::exception& e) {
23216       SWIG_exception(SWIG_RuntimeError, e.what());
23217     }
23218   }
23219   resultobj = SWIG_Py_Void();
23220   if (SWIG_IsNewObj(res3)) delete arg3;
23221   return resultobj;
23222 fail:
23223   if (SWIG_IsNewObj(res3)) delete arg3;
23224   return NULL;
23225 }
23226 
23227 
_wrap_StringVector_resize__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)23228 SWIGINTERN PyObject *_wrap_StringVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
23229   PyObject *resultobj = 0;
23230   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
23231   std::vector< std::string >::size_type arg2 ;
23232   std::vector< std::string >::value_type *arg3 = 0 ;
23233   void *argp1 = 0 ;
23234   int res1 = 0 ;
23235   size_t val2 ;
23236   int ecode2 = 0 ;
23237   int res3 = SWIG_OLDOBJ ;
23238 
23239   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
23240   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
23241   if (!SWIG_IsOK(res1)) {
23242     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_resize" "', argument " "1"" of type '" "std::vector< std::string > *""'");
23243   }
23244   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
23245   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
23246   if (!SWIG_IsOK(ecode2)) {
23247     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector_resize" "', argument " "2"" of type '" "std::vector< std::string >::size_type""'");
23248   }
23249   arg2 = static_cast< std::vector< std::string >::size_type >(val2);
23250   {
23251     std::string *ptr = (std::string *)0;
23252     res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
23253     if (!SWIG_IsOK(res3)) {
23254       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StringVector_resize" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'");
23255     }
23256     if (!ptr) {
23257       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector_resize" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'");
23258     }
23259     arg3 = ptr;
23260   }
23261   {
23262     try {
23263       (arg1)->resize(arg2,(std::vector< std::string >::value_type const &)*arg3);
23264     } catch (const std::exception& e) {
23265       SWIG_exception(SWIG_RuntimeError, e.what());
23266     }
23267   }
23268   resultobj = SWIG_Py_Void();
23269   if (SWIG_IsNewObj(res3)) delete arg3;
23270   return resultobj;
23271 fail:
23272   if (SWIG_IsNewObj(res3)) delete arg3;
23273   return NULL;
23274 }
23275 
23276 
_wrap_StringVector_resize(PyObject * self,PyObject * args)23277 SWIGINTERN PyObject *_wrap_StringVector_resize(PyObject *self, PyObject *args) {
23278   Py_ssize_t argc;
23279   PyObject *argv[4] = {
23280     0
23281   };
23282 
23283   if (!(argc = SWIG_Python_UnpackTuple(args, "StringVector_resize", 0, 3, argv))) SWIG_fail;
23284   --argc;
23285   if (argc == 2) {
23286     int _v;
23287     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
23288     _v = SWIG_CheckState(res);
23289     if (_v) {
23290       {
23291         int res = SWIG_AsVal_size_t(argv[1], NULL);
23292         _v = SWIG_CheckState(res);
23293       }
23294       if (_v) {
23295         return _wrap_StringVector_resize__SWIG_0(self, argc, argv);
23296       }
23297     }
23298   }
23299   if (argc == 3) {
23300     int _v;
23301     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
23302     _v = SWIG_CheckState(res);
23303     if (_v) {
23304       {
23305         int res = SWIG_AsVal_size_t(argv[1], NULL);
23306         _v = SWIG_CheckState(res);
23307       }
23308       if (_v) {
23309         int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
23310         _v = SWIG_CheckState(res);
23311         if (_v) {
23312           return _wrap_StringVector_resize__SWIG_1(self, argc, argv);
23313         }
23314       }
23315     }
23316   }
23317 
23318 fail:
23319   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'StringVector_resize'.\n"
23320     "  Possible C/C++ prototypes are:\n"
23321     "    std::vector< std::string >::resize(std::vector< std::string >::size_type)\n"
23322     "    std::vector< std::string >::resize(std::vector< std::string >::size_type,std::vector< std::string >::value_type const &)\n");
23323   return 0;
23324 }
23325 
23326 
_wrap_StringVector_insert__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)23327 SWIGINTERN PyObject *_wrap_StringVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
23328   PyObject *resultobj = 0;
23329   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
23330   std::vector< std::string >::iterator arg2 ;
23331   std::vector< std::string >::value_type *arg3 = 0 ;
23332   void *argp1 = 0 ;
23333   int res1 = 0 ;
23334   swig::SwigPyIterator *iter2 = 0 ;
23335   int res2 ;
23336   int res3 = SWIG_OLDOBJ ;
23337   std::vector< std::string >::iterator result;
23338 
23339   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
23340   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
23341   if (!SWIG_IsOK(res1)) {
23342     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_insert" "', argument " "1"" of type '" "std::vector< std::string > *""'");
23343   }
23344   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
23345   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
23346   if (!SWIG_IsOK(res2) || !iter2) {
23347     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_insert" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'");
23348   } else {
23349     swig::SwigPyIterator_T<std::vector< std::string >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::string >::iterator > *>(iter2);
23350     if (iter_t) {
23351       arg2 = iter_t->get_current();
23352     } else {
23353       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_insert" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'");
23354     }
23355   }
23356   {
23357     std::string *ptr = (std::string *)0;
23358     res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
23359     if (!SWIG_IsOK(res3)) {
23360       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StringVector_insert" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'");
23361     }
23362     if (!ptr) {
23363       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector_insert" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'");
23364     }
23365     arg3 = ptr;
23366   }
23367   {
23368     try {
23369       result = std_vector_Sl_std_string_Sg__insert__SWIG_0(arg1,arg2,(std::string const &)*arg3);
23370     } catch (const std::exception& e) {
23371       SWIG_exception(SWIG_RuntimeError, e.what());
23372     }
23373   }
23374   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)),
23375     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
23376   if (SWIG_IsNewObj(res3)) delete arg3;
23377   return resultobj;
23378 fail:
23379   if (SWIG_IsNewObj(res3)) delete arg3;
23380   return NULL;
23381 }
23382 
23383 
_wrap_StringVector_insert__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)23384 SWIGINTERN PyObject *_wrap_StringVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
23385   PyObject *resultobj = 0;
23386   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
23387   std::vector< std::string >::iterator arg2 ;
23388   std::vector< std::string >::size_type arg3 ;
23389   std::vector< std::string >::value_type *arg4 = 0 ;
23390   void *argp1 = 0 ;
23391   int res1 = 0 ;
23392   swig::SwigPyIterator *iter2 = 0 ;
23393   int res2 ;
23394   size_t val3 ;
23395   int ecode3 = 0 ;
23396   int res4 = SWIG_OLDOBJ ;
23397 
23398   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
23399   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
23400   if (!SWIG_IsOK(res1)) {
23401     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_insert" "', argument " "1"" of type '" "std::vector< std::string > *""'");
23402   }
23403   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
23404   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
23405   if (!SWIG_IsOK(res2) || !iter2) {
23406     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_insert" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'");
23407   } else {
23408     swig::SwigPyIterator_T<std::vector< std::string >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::string >::iterator > *>(iter2);
23409     if (iter_t) {
23410       arg2 = iter_t->get_current();
23411     } else {
23412       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringVector_insert" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'");
23413     }
23414   }
23415   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
23416   if (!SWIG_IsOK(ecode3)) {
23417     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StringVector_insert" "', argument " "3"" of type '" "std::vector< std::string >::size_type""'");
23418   }
23419   arg3 = static_cast< std::vector< std::string >::size_type >(val3);
23420   {
23421     std::string *ptr = (std::string *)0;
23422     res4 = SWIG_AsPtr_std_string(swig_obj[3], &ptr);
23423     if (!SWIG_IsOK(res4)) {
23424       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StringVector_insert" "', argument " "4"" of type '" "std::vector< std::string >::value_type const &""'");
23425     }
23426     if (!ptr) {
23427       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringVector_insert" "', argument " "4"" of type '" "std::vector< std::string >::value_type const &""'");
23428     }
23429     arg4 = ptr;
23430   }
23431   {
23432     try {
23433       std_vector_Sl_std_string_Sg__insert__SWIG_1(arg1,arg2,arg3,(std::string const &)*arg4);
23434     } catch (const std::exception& e) {
23435       SWIG_exception(SWIG_RuntimeError, e.what());
23436     }
23437   }
23438   resultobj = SWIG_Py_Void();
23439   if (SWIG_IsNewObj(res4)) delete arg4;
23440   return resultobj;
23441 fail:
23442   if (SWIG_IsNewObj(res4)) delete arg4;
23443   return NULL;
23444 }
23445 
23446 
_wrap_StringVector_insert(PyObject * self,PyObject * args)23447 SWIGINTERN PyObject *_wrap_StringVector_insert(PyObject *self, PyObject *args) {
23448   Py_ssize_t argc;
23449   PyObject *argv[5] = {
23450     0
23451   };
23452 
23453   if (!(argc = SWIG_Python_UnpackTuple(args, "StringVector_insert", 0, 4, argv))) SWIG_fail;
23454   --argc;
23455   if (argc == 3) {
23456     int _v;
23457     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
23458     _v = SWIG_CheckState(res);
23459     if (_v) {
23460       swig::SwigPyIterator *iter = 0;
23461       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
23462       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::string >::iterator > *>(iter) != 0));
23463       if (_v) {
23464         int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
23465         _v = SWIG_CheckState(res);
23466         if (_v) {
23467           return _wrap_StringVector_insert__SWIG_0(self, argc, argv);
23468         }
23469       }
23470     }
23471   }
23472   if (argc == 4) {
23473     int _v;
23474     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
23475     _v = SWIG_CheckState(res);
23476     if (_v) {
23477       swig::SwigPyIterator *iter = 0;
23478       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
23479       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::string >::iterator > *>(iter) != 0));
23480       if (_v) {
23481         {
23482           int res = SWIG_AsVal_size_t(argv[2], NULL);
23483           _v = SWIG_CheckState(res);
23484         }
23485         if (_v) {
23486           int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
23487           _v = SWIG_CheckState(res);
23488           if (_v) {
23489             return _wrap_StringVector_insert__SWIG_1(self, argc, argv);
23490           }
23491         }
23492       }
23493     }
23494   }
23495 
23496 fail:
23497   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'StringVector_insert'.\n"
23498     "  Possible C/C++ prototypes are:\n"
23499     "    std::vector< std::string >::insert(std::vector< std::string >::iterator,std::vector< std::string >::value_type const &)\n"
23500     "    std::vector< std::string >::insert(std::vector< std::string >::iterator,std::vector< std::string >::size_type,std::vector< std::string >::value_type const &)\n");
23501   return 0;
23502 }
23503 
23504 
_wrap_StringVector_reserve(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)23505 SWIGINTERN PyObject *_wrap_StringVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23506   PyObject *resultobj = 0;
23507   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
23508   std::vector< std::string >::size_type arg2 ;
23509   void *argp1 = 0 ;
23510   int res1 = 0 ;
23511   size_t val2 ;
23512   int ecode2 = 0 ;
23513   PyObject * obj0 = 0 ;
23514   PyObject * obj1 = 0 ;
23515   char * kwnames[] = {
23516     (char *)"self",  (char *)"n",  NULL
23517   };
23518 
23519   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:StringVector_reserve", kwnames, &obj0, &obj1)) SWIG_fail;
23520   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
23521   if (!SWIG_IsOK(res1)) {
23522     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_reserve" "', argument " "1"" of type '" "std::vector< std::string > *""'");
23523   }
23524   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
23525   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23526   if (!SWIG_IsOK(ecode2)) {
23527     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringVector_reserve" "', argument " "2"" of type '" "std::vector< std::string >::size_type""'");
23528   }
23529   arg2 = static_cast< std::vector< std::string >::size_type >(val2);
23530   {
23531     try {
23532       (arg1)->reserve(arg2);
23533     } catch (const std::exception& e) {
23534       SWIG_exception(SWIG_RuntimeError, e.what());
23535     }
23536   }
23537   resultobj = SWIG_Py_Void();
23538   return resultobj;
23539 fail:
23540   return NULL;
23541 }
23542 
23543 
_wrap_StringVector_capacity(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23544 SWIGINTERN PyObject *_wrap_StringVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23545   PyObject *resultobj = 0;
23546   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
23547   void *argp1 = 0 ;
23548   int res1 = 0 ;
23549   PyObject *swig_obj[1] ;
23550   std::vector< std::string >::size_type result;
23551 
23552   if (!args) SWIG_fail;
23553   swig_obj[0] = args;
23554   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
23555   if (!SWIG_IsOK(res1)) {
23556     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringVector_capacity" "', argument " "1"" of type '" "std::vector< std::string > const *""'");
23557   }
23558   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
23559   {
23560     try {
23561       result = ((std::vector< std::string > const *)arg1)->capacity();
23562     } catch (const std::exception& e) {
23563       SWIG_exception(SWIG_RuntimeError, e.what());
23564     }
23565   }
23566   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
23567   return resultobj;
23568 fail:
23569   return NULL;
23570 }
23571 
23572 
_wrap_delete_StringVector(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23573 SWIGINTERN PyObject *_wrap_delete_StringVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23574   PyObject *resultobj = 0;
23575   std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
23576   void *argp1 = 0 ;
23577   int res1 = 0 ;
23578   PyObject *swig_obj[1] ;
23579 
23580   if (!args) SWIG_fail;
23581   swig_obj[0] = args;
23582   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_DISOWN |  0 );
23583   if (!SWIG_IsOK(res1)) {
23584     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StringVector" "', argument " "1"" of type '" "std::vector< std::string > *""'");
23585   }
23586   arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
23587   {
23588     try {
23589       delete arg1;
23590     } catch (const std::exception& e) {
23591       SWIG_exception(SWIG_RuntimeError, e.what());
23592     }
23593   }
23594   resultobj = SWIG_Py_Void();
23595   return resultobj;
23596 fail:
23597   return NULL;
23598 }
23599 
23600 
StringVector_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23601 SWIGINTERN PyObject *StringVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23602   PyObject *obj;
23603   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
23604   SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_NewClientData(obj));
23605   return SWIG_Py_Void();
23606 }
23607 
StringVector_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23608 SWIGINTERN PyObject *StringVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23609   return SWIG_Python_InitShadowInstance(args);
23610 }
23611 
_wrap_ConstCharVector_iterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23612 SWIGINTERN PyObject *_wrap_ConstCharVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23613   PyObject *resultobj = 0;
23614   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
23615   PyObject **arg2 = (PyObject **) 0 ;
23616   void *argp1 = 0 ;
23617   int res1 = 0 ;
23618   PyObject *swig_obj[1] ;
23619   swig::SwigPyIterator *result = 0 ;
23620 
23621   arg2 = &swig_obj[0];
23622   if (!args) SWIG_fail;
23623   swig_obj[0] = args;
23624   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
23625   if (!SWIG_IsOK(res1)) {
23626     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_iterator" "', argument " "1"" of type '" "std::vector< char const * > *""'");
23627   }
23628   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
23629   {
23630     try {
23631       result = (swig::SwigPyIterator *)std_vector_Sl_char_SS_const_Sm__Sg__iterator(arg1,arg2);
23632     } catch (const std::exception& e) {
23633       SWIG_exception(SWIG_RuntimeError, e.what());
23634     }
23635   }
23636   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
23637   return resultobj;
23638 fail:
23639   return NULL;
23640 }
23641 
23642 
_wrap_ConstCharVector___nonzero__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23643 SWIGINTERN PyObject *_wrap_ConstCharVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23644   PyObject *resultobj = 0;
23645   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
23646   void *argp1 = 0 ;
23647   int res1 = 0 ;
23648   PyObject *swig_obj[1] ;
23649   bool result;
23650 
23651   if (!args) SWIG_fail;
23652   swig_obj[0] = args;
23653   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
23654   if (!SWIG_IsOK(res1)) {
23655     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector___nonzero__" "', argument " "1"" of type '" "std::vector< char const * > const *""'");
23656   }
23657   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
23658   {
23659     try {
23660       result = (bool)std_vector_Sl_char_SS_const_Sm__Sg____nonzero__((std::vector< char const * > const *)arg1);
23661     } catch (const std::exception& e) {
23662       SWIG_exception(SWIG_RuntimeError, e.what());
23663     }
23664   }
23665   resultobj = SWIG_From_bool(static_cast< bool >(result));
23666   return resultobj;
23667 fail:
23668   return NULL;
23669 }
23670 
23671 
_wrap_ConstCharVector___bool__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23672 SWIGINTERN PyObject *_wrap_ConstCharVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23673   PyObject *resultobj = 0;
23674   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
23675   void *argp1 = 0 ;
23676   int res1 = 0 ;
23677   PyObject *swig_obj[1] ;
23678   bool result;
23679 
23680   if (!args) SWIG_fail;
23681   swig_obj[0] = args;
23682   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
23683   if (!SWIG_IsOK(res1)) {
23684     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector___bool__" "', argument " "1"" of type '" "std::vector< char const * > const *""'");
23685   }
23686   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
23687   {
23688     try {
23689       result = (bool)std_vector_Sl_char_SS_const_Sm__Sg____bool__((std::vector< char const * > const *)arg1);
23690     } catch (const std::exception& e) {
23691       SWIG_exception(SWIG_RuntimeError, e.what());
23692     }
23693   }
23694   resultobj = SWIG_From_bool(static_cast< bool >(result));
23695   return resultobj;
23696 fail:
23697   return NULL;
23698 }
23699 
23700 
_wrap_ConstCharVector___len__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23701 SWIGINTERN PyObject *_wrap_ConstCharVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23702   PyObject *resultobj = 0;
23703   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
23704   void *argp1 = 0 ;
23705   int res1 = 0 ;
23706   PyObject *swig_obj[1] ;
23707   std::vector< char const * >::size_type result;
23708 
23709   if (!args) SWIG_fail;
23710   swig_obj[0] = args;
23711   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
23712   if (!SWIG_IsOK(res1)) {
23713     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector___len__" "', argument " "1"" of type '" "std::vector< char const * > const *""'");
23714   }
23715   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
23716   {
23717     try {
23718       result = std_vector_Sl_char_SS_const_Sm__Sg____len__((std::vector< char const * > const *)arg1);
23719     } catch (const std::exception& e) {
23720       SWIG_exception(SWIG_RuntimeError, e.what());
23721     }
23722   }
23723   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
23724   return resultobj;
23725 fail:
23726   return NULL;
23727 }
23728 
23729 
_wrap_ConstCharVector___getslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)23730 SWIGINTERN PyObject *_wrap_ConstCharVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23731   PyObject *resultobj = 0;
23732   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
23733   std::vector< char const * >::difference_type arg2 ;
23734   std::vector< char const * >::difference_type arg3 ;
23735   void *argp1 = 0 ;
23736   int res1 = 0 ;
23737   ptrdiff_t val2 ;
23738   int ecode2 = 0 ;
23739   ptrdiff_t val3 ;
23740   int ecode3 = 0 ;
23741   PyObject * obj0 = 0 ;
23742   PyObject * obj1 = 0 ;
23743   PyObject * obj2 = 0 ;
23744   char * kwnames[] = {
23745     (char *)"self",  (char *)"i",  (char *)"j",  NULL
23746   };
23747   std::vector< char const *,std::allocator< char const * > > *result = 0 ;
23748 
23749   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:ConstCharVector___getslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
23750   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
23751   if (!SWIG_IsOK(res1)) {
23752     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector___getslice__" "', argument " "1"" of type '" "std::vector< char const * > *""'");
23753   }
23754   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
23755   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
23756   if (!SWIG_IsOK(ecode2)) {
23757     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConstCharVector___getslice__" "', argument " "2"" of type '" "std::vector< char const * >::difference_type""'");
23758   }
23759   arg2 = static_cast< std::vector< char const * >::difference_type >(val2);
23760   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
23761   if (!SWIG_IsOK(ecode3)) {
23762     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConstCharVector___getslice__" "', argument " "3"" of type '" "std::vector< char const * >::difference_type""'");
23763   }
23764   arg3 = static_cast< std::vector< char const * >::difference_type >(val3);
23765   {
23766     try {
23767       try {
23768         result = (std::vector< char const *,std::allocator< char const * > > *)std_vector_Sl_char_SS_const_Sm__Sg____getslice__(arg1,arg2,arg3);
23769       } catch(std::out_of_range &_e) {
23770         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
23771       } catch(std::invalid_argument &_e) {
23772         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
23773       }
23774     } catch (const std::exception& e) {
23775       SWIG_exception(SWIG_RuntimeError, e.what());
23776     }
23777   }
23778   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, SWIG_POINTER_OWN |  0 );
23779   return resultobj;
23780 fail:
23781   return NULL;
23782 }
23783 
23784 
_wrap_ConstCharVector___setslice____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)23785 SWIGINTERN PyObject *_wrap_ConstCharVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
23786   PyObject *resultobj = 0;
23787   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
23788   std::vector< char const * >::difference_type arg2 ;
23789   std::vector< char const * >::difference_type arg3 ;
23790   void *argp1 = 0 ;
23791   int res1 = 0 ;
23792   ptrdiff_t val2 ;
23793   int ecode2 = 0 ;
23794   ptrdiff_t val3 ;
23795   int ecode3 = 0 ;
23796 
23797   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
23798   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
23799   if (!SWIG_IsOK(res1)) {
23800     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector___setslice__" "', argument " "1"" of type '" "std::vector< char const * > *""'");
23801   }
23802   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
23803   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
23804   if (!SWIG_IsOK(ecode2)) {
23805     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConstCharVector___setslice__" "', argument " "2"" of type '" "std::vector< char const * >::difference_type""'");
23806   }
23807   arg2 = static_cast< std::vector< char const * >::difference_type >(val2);
23808   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
23809   if (!SWIG_IsOK(ecode3)) {
23810     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConstCharVector___setslice__" "', argument " "3"" of type '" "std::vector< char const * >::difference_type""'");
23811   }
23812   arg3 = static_cast< std::vector< char const * >::difference_type >(val3);
23813   {
23814     try {
23815       try {
23816         std_vector_Sl_char_SS_const_Sm__Sg____setslice____SWIG_0(arg1,arg2,arg3);
23817       } catch(std::out_of_range &_e) {
23818         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
23819       } catch(std::invalid_argument &_e) {
23820         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
23821       }
23822     } catch (const std::exception& e) {
23823       SWIG_exception(SWIG_RuntimeError, e.what());
23824     }
23825   }
23826   resultobj = SWIG_Py_Void();
23827   return resultobj;
23828 fail:
23829   return NULL;
23830 }
23831 
23832 
_wrap_ConstCharVector___setslice____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)23833 SWIGINTERN PyObject *_wrap_ConstCharVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
23834   PyObject *resultobj = 0;
23835   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
23836   std::vector< char const * >::difference_type arg2 ;
23837   std::vector< char const * >::difference_type arg3 ;
23838   std::vector< char const *,std::allocator< char const * > > *arg4 = 0 ;
23839   void *argp1 = 0 ;
23840   int res1 = 0 ;
23841   ptrdiff_t val2 ;
23842   int ecode2 = 0 ;
23843   ptrdiff_t val3 ;
23844   int ecode3 = 0 ;
23845   int res4 = SWIG_OLDOBJ ;
23846 
23847   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
23848   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
23849   if (!SWIG_IsOK(res1)) {
23850     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector___setslice__" "', argument " "1"" of type '" "std::vector< char const * > *""'");
23851   }
23852   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
23853   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
23854   if (!SWIG_IsOK(ecode2)) {
23855     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConstCharVector___setslice__" "', argument " "2"" of type '" "std::vector< char const * >::difference_type""'");
23856   }
23857   arg2 = static_cast< std::vector< char const * >::difference_type >(val2);
23858   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
23859   if (!SWIG_IsOK(ecode3)) {
23860     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConstCharVector___setslice__" "', argument " "3"" of type '" "std::vector< char const * >::difference_type""'");
23861   }
23862   arg3 = static_cast< std::vector< char const * >::difference_type >(val3);
23863   {
23864     std::vector< char const*,std::allocator< char const * > > *ptr = (std::vector< char const*,std::allocator< char const * > > *)0;
23865     res4 = swig::asptr(swig_obj[3], &ptr);
23866     if (!SWIG_IsOK(res4)) {
23867       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ConstCharVector___setslice__" "', argument " "4"" of type '" "std::vector< char const *,std::allocator< char const * > > const &""'");
23868     }
23869     if (!ptr) {
23870       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ConstCharVector___setslice__" "', argument " "4"" of type '" "std::vector< char const *,std::allocator< char const * > > const &""'");
23871     }
23872     arg4 = ptr;
23873   }
23874   {
23875     try {
23876       try {
23877         std_vector_Sl_char_SS_const_Sm__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< char const *,std::allocator< char const * > > const &)*arg4);
23878       } catch(std::out_of_range &_e) {
23879         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
23880       } catch(std::invalid_argument &_e) {
23881         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
23882       }
23883     } catch (const std::exception& e) {
23884       SWIG_exception(SWIG_RuntimeError, e.what());
23885     }
23886   }
23887   resultobj = SWIG_Py_Void();
23888   if (SWIG_IsNewObj(res4)) delete arg4;
23889   return resultobj;
23890 fail:
23891   if (SWIG_IsNewObj(res4)) delete arg4;
23892   return NULL;
23893 }
23894 
23895 
_wrap_ConstCharVector___setslice__(PyObject * self,PyObject * args)23896 SWIGINTERN PyObject *_wrap_ConstCharVector___setslice__(PyObject *self, PyObject *args) {
23897   Py_ssize_t argc;
23898   PyObject *argv[5] = {
23899     0
23900   };
23901 
23902   if (!(argc = SWIG_Python_UnpackTuple(args, "ConstCharVector___setslice__", 0, 4, argv))) SWIG_fail;
23903   --argc;
23904   if (argc == 3) {
23905     int _v;
23906     int res = swig::asptr(argv[0], (std::vector< char const*,std::allocator< char const * > >**)(0));
23907     _v = SWIG_CheckState(res);
23908     if (_v) {
23909       {
23910         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
23911         _v = SWIG_CheckState(res);
23912       }
23913       if (_v) {
23914         {
23915           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
23916           _v = SWIG_CheckState(res);
23917         }
23918         if (_v) {
23919           return _wrap_ConstCharVector___setslice____SWIG_0(self, argc, argv);
23920         }
23921       }
23922     }
23923   }
23924   if (argc == 4) {
23925     int _v;
23926     int res = swig::asptr(argv[0], (std::vector< char const*,std::allocator< char const * > >**)(0));
23927     _v = SWIG_CheckState(res);
23928     if (_v) {
23929       {
23930         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
23931         _v = SWIG_CheckState(res);
23932       }
23933       if (_v) {
23934         {
23935           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
23936           _v = SWIG_CheckState(res);
23937         }
23938         if (_v) {
23939           int res = swig::asptr(argv[3], (std::vector< char const*,std::allocator< char const * > >**)(0));
23940           _v = SWIG_CheckState(res);
23941           if (_v) {
23942             return _wrap_ConstCharVector___setslice____SWIG_1(self, argc, argv);
23943           }
23944         }
23945       }
23946     }
23947   }
23948 
23949 fail:
23950   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ConstCharVector___setslice__'.\n"
23951     "  Possible C/C++ prototypes are:\n"
23952     "    std::vector< char const * >::__setslice__(std::vector< char const * >::difference_type,std::vector< char const * >::difference_type)\n"
23953     "    std::vector< char const * >::__setslice__(std::vector< char const * >::difference_type,std::vector< char const * >::difference_type,std::vector< char const *,std::allocator< char const * > > const &)\n");
23954   return 0;
23955 }
23956 
23957 
_wrap_ConstCharVector___delslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)23958 SWIGINTERN PyObject *_wrap_ConstCharVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23959   PyObject *resultobj = 0;
23960   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
23961   std::vector< char const * >::difference_type arg2 ;
23962   std::vector< char const * >::difference_type arg3 ;
23963   void *argp1 = 0 ;
23964   int res1 = 0 ;
23965   ptrdiff_t val2 ;
23966   int ecode2 = 0 ;
23967   ptrdiff_t val3 ;
23968   int ecode3 = 0 ;
23969   PyObject * obj0 = 0 ;
23970   PyObject * obj1 = 0 ;
23971   PyObject * obj2 = 0 ;
23972   char * kwnames[] = {
23973     (char *)"self",  (char *)"i",  (char *)"j",  NULL
23974   };
23975 
23976   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:ConstCharVector___delslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
23977   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
23978   if (!SWIG_IsOK(res1)) {
23979     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector___delslice__" "', argument " "1"" of type '" "std::vector< char const * > *""'");
23980   }
23981   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
23982   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
23983   if (!SWIG_IsOK(ecode2)) {
23984     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConstCharVector___delslice__" "', argument " "2"" of type '" "std::vector< char const * >::difference_type""'");
23985   }
23986   arg2 = static_cast< std::vector< char const * >::difference_type >(val2);
23987   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
23988   if (!SWIG_IsOK(ecode3)) {
23989     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConstCharVector___delslice__" "', argument " "3"" of type '" "std::vector< char const * >::difference_type""'");
23990   }
23991   arg3 = static_cast< std::vector< char const * >::difference_type >(val3);
23992   {
23993     try {
23994       try {
23995         std_vector_Sl_char_SS_const_Sm__Sg____delslice__(arg1,arg2,arg3);
23996       } catch(std::out_of_range &_e) {
23997         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
23998       } catch(std::invalid_argument &_e) {
23999         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
24000       }
24001     } catch (const std::exception& e) {
24002       SWIG_exception(SWIG_RuntimeError, e.what());
24003     }
24004   }
24005   resultobj = SWIG_Py_Void();
24006   return resultobj;
24007 fail:
24008   return NULL;
24009 }
24010 
24011 
_wrap_ConstCharVector___delitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)24012 SWIGINTERN PyObject *_wrap_ConstCharVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
24013   PyObject *resultobj = 0;
24014   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24015   std::vector< char const * >::difference_type arg2 ;
24016   void *argp1 = 0 ;
24017   int res1 = 0 ;
24018   ptrdiff_t val2 ;
24019   int ecode2 = 0 ;
24020 
24021   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24022   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24023   if (!SWIG_IsOK(res1)) {
24024     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector___delitem__" "', argument " "1"" of type '" "std::vector< char const * > *""'");
24025   }
24026   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24027   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
24028   if (!SWIG_IsOK(ecode2)) {
24029     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConstCharVector___delitem__" "', argument " "2"" of type '" "std::vector< char const * >::difference_type""'");
24030   }
24031   arg2 = static_cast< std::vector< char const * >::difference_type >(val2);
24032   {
24033     try {
24034       try {
24035         std_vector_Sl_char_SS_const_Sm__Sg____delitem____SWIG_0(arg1,arg2);
24036       } catch(std::out_of_range &_e) {
24037         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
24038       } catch(std::invalid_argument &_e) {
24039         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
24040       }
24041     } catch (const std::exception& e) {
24042       SWIG_exception(SWIG_RuntimeError, e.what());
24043     }
24044   }
24045   resultobj = SWIG_Py_Void();
24046   return resultobj;
24047 fail:
24048   return NULL;
24049 }
24050 
24051 
_wrap_ConstCharVector___getitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)24052 SWIGINTERN PyObject *_wrap_ConstCharVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
24053   PyObject *resultobj = 0;
24054   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24055   PySliceObject *arg2 = (PySliceObject *) 0 ;
24056   void *argp1 = 0 ;
24057   int res1 = 0 ;
24058   std::vector< char const *,std::allocator< char const * > > *result = 0 ;
24059 
24060   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24061   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24062   if (!SWIG_IsOK(res1)) {
24063     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector___getitem__" "', argument " "1"" of type '" "std::vector< char const * > *""'");
24064   }
24065   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24066   {
24067     if (!PySlice_Check(swig_obj[1])) {
24068       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConstCharVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
24069     }
24070     arg2 = (PySliceObject *) swig_obj[1];
24071   }
24072   {
24073     try {
24074       try {
24075         result = (std::vector< char const *,std::allocator< char const * > > *)std_vector_Sl_char_SS_const_Sm__Sg____getitem____SWIG_0(arg1,arg2);
24076       } catch(std::out_of_range &_e) {
24077         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
24078       } catch(std::invalid_argument &_e) {
24079         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
24080       }
24081     } catch (const std::exception& e) {
24082       SWIG_exception(SWIG_RuntimeError, e.what());
24083     }
24084   }
24085   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, SWIG_POINTER_OWN |  0 );
24086   return resultobj;
24087 fail:
24088   return NULL;
24089 }
24090 
24091 
_wrap_ConstCharVector___setitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)24092 SWIGINTERN PyObject *_wrap_ConstCharVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
24093   PyObject *resultobj = 0;
24094   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24095   PySliceObject *arg2 = (PySliceObject *) 0 ;
24096   std::vector< char const *,std::allocator< char const * > > *arg3 = 0 ;
24097   void *argp1 = 0 ;
24098   int res1 = 0 ;
24099   int res3 = SWIG_OLDOBJ ;
24100 
24101   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
24102   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24103   if (!SWIG_IsOK(res1)) {
24104     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector___setitem__" "', argument " "1"" of type '" "std::vector< char const * > *""'");
24105   }
24106   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24107   {
24108     if (!PySlice_Check(swig_obj[1])) {
24109       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConstCharVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
24110     }
24111     arg2 = (PySliceObject *) swig_obj[1];
24112   }
24113   {
24114     std::vector< char const*,std::allocator< char const * > > *ptr = (std::vector< char const*,std::allocator< char const * > > *)0;
24115     res3 = swig::asptr(swig_obj[2], &ptr);
24116     if (!SWIG_IsOK(res3)) {
24117       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ConstCharVector___setitem__" "', argument " "3"" of type '" "std::vector< char const *,std::allocator< char const * > > const &""'");
24118     }
24119     if (!ptr) {
24120       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ConstCharVector___setitem__" "', argument " "3"" of type '" "std::vector< char const *,std::allocator< char const * > > const &""'");
24121     }
24122     arg3 = ptr;
24123   }
24124   {
24125     try {
24126       try {
24127         std_vector_Sl_char_SS_const_Sm__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< char const *,std::allocator< char const * > > const &)*arg3);
24128       } catch(std::out_of_range &_e) {
24129         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
24130       } catch(std::invalid_argument &_e) {
24131         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
24132       }
24133     } catch (const std::exception& e) {
24134       SWIG_exception(SWIG_RuntimeError, e.what());
24135     }
24136   }
24137   resultobj = SWIG_Py_Void();
24138   if (SWIG_IsNewObj(res3)) delete arg3;
24139   return resultobj;
24140 fail:
24141   if (SWIG_IsNewObj(res3)) delete arg3;
24142   return NULL;
24143 }
24144 
24145 
_wrap_ConstCharVector___setitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)24146 SWIGINTERN PyObject *_wrap_ConstCharVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
24147   PyObject *resultobj = 0;
24148   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24149   PySliceObject *arg2 = (PySliceObject *) 0 ;
24150   void *argp1 = 0 ;
24151   int res1 = 0 ;
24152 
24153   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24154   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24155   if (!SWIG_IsOK(res1)) {
24156     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector___setitem__" "', argument " "1"" of type '" "std::vector< char const * > *""'");
24157   }
24158   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24159   {
24160     if (!PySlice_Check(swig_obj[1])) {
24161       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConstCharVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
24162     }
24163     arg2 = (PySliceObject *) swig_obj[1];
24164   }
24165   {
24166     try {
24167       try {
24168         std_vector_Sl_char_SS_const_Sm__Sg____setitem____SWIG_1(arg1,arg2);
24169       } catch(std::out_of_range &_e) {
24170         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
24171       } catch(std::invalid_argument &_e) {
24172         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
24173       }
24174     } catch (const std::exception& e) {
24175       SWIG_exception(SWIG_RuntimeError, e.what());
24176     }
24177   }
24178   resultobj = SWIG_Py_Void();
24179   return resultobj;
24180 fail:
24181   return NULL;
24182 }
24183 
24184 
_wrap_ConstCharVector___delitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)24185 SWIGINTERN PyObject *_wrap_ConstCharVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
24186   PyObject *resultobj = 0;
24187   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24188   PySliceObject *arg2 = (PySliceObject *) 0 ;
24189   void *argp1 = 0 ;
24190   int res1 = 0 ;
24191 
24192   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24193   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24194   if (!SWIG_IsOK(res1)) {
24195     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector___delitem__" "', argument " "1"" of type '" "std::vector< char const * > *""'");
24196   }
24197   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24198   {
24199     if (!PySlice_Check(swig_obj[1])) {
24200       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConstCharVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
24201     }
24202     arg2 = (PySliceObject *) swig_obj[1];
24203   }
24204   {
24205     try {
24206       try {
24207         std_vector_Sl_char_SS_const_Sm__Sg____delitem____SWIG_1(arg1,arg2);
24208       } catch(std::out_of_range &_e) {
24209         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
24210       } catch(std::invalid_argument &_e) {
24211         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
24212       }
24213     } catch (const std::exception& e) {
24214       SWIG_exception(SWIG_RuntimeError, e.what());
24215     }
24216   }
24217   resultobj = SWIG_Py_Void();
24218   return resultobj;
24219 fail:
24220   return NULL;
24221 }
24222 
24223 
_wrap_ConstCharVector___delitem__(PyObject * self,PyObject * args)24224 SWIGINTERN PyObject *_wrap_ConstCharVector___delitem__(PyObject *self, PyObject *args) {
24225   Py_ssize_t argc;
24226   PyObject *argv[3] = {
24227     0
24228   };
24229 
24230   if (!(argc = SWIG_Python_UnpackTuple(args, "ConstCharVector___delitem__", 0, 2, argv))) SWIG_fail;
24231   --argc;
24232   if (argc == 2) {
24233     int _v;
24234     int res = swig::asptr(argv[0], (std::vector< char const*,std::allocator< char const * > >**)(0));
24235     _v = SWIG_CheckState(res);
24236     if (_v) {
24237       {
24238         _v = PySlice_Check(argv[1]);
24239       }
24240       if (_v) {
24241         return _wrap_ConstCharVector___delitem____SWIG_1(self, argc, argv);
24242       }
24243     }
24244   }
24245   if (argc == 2) {
24246     int _v;
24247     int res = swig::asptr(argv[0], (std::vector< char const*,std::allocator< char const * > >**)(0));
24248     _v = SWIG_CheckState(res);
24249     if (_v) {
24250       {
24251         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
24252         _v = SWIG_CheckState(res);
24253       }
24254       if (_v) {
24255         return _wrap_ConstCharVector___delitem____SWIG_0(self, argc, argv);
24256       }
24257     }
24258   }
24259 
24260 fail:
24261   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ConstCharVector___delitem__'.\n"
24262     "  Possible C/C++ prototypes are:\n"
24263     "    std::vector< char const * >::__delitem__(std::vector< char const * >::difference_type)\n"
24264     "    std::vector< char const * >::__delitem__(PySliceObject *)\n");
24265   return 0;
24266 }
24267 
24268 
_wrap_ConstCharVector___getitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)24269 SWIGINTERN PyObject *_wrap_ConstCharVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
24270   PyObject *resultobj = 0;
24271   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24272   std::vector< char const * >::difference_type arg2 ;
24273   void *argp1 = 0 ;
24274   int res1 = 0 ;
24275   ptrdiff_t val2 ;
24276   int ecode2 = 0 ;
24277   std::vector< char const * >::value_type result;
24278 
24279   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24280   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24281   if (!SWIG_IsOK(res1)) {
24282     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector___getitem__" "', argument " "1"" of type '" "std::vector< char const * > *""'");
24283   }
24284   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24285   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
24286   if (!SWIG_IsOK(ecode2)) {
24287     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConstCharVector___getitem__" "', argument " "2"" of type '" "std::vector< char const * >::difference_type""'");
24288   }
24289   arg2 = static_cast< std::vector< char const * >::difference_type >(val2);
24290   {
24291     try {
24292       try {
24293         result = (std::vector< char const * >::value_type)std_vector_Sl_char_SS_const_Sm__Sg____getitem____SWIG_1(arg1,arg2);
24294       } catch(std::out_of_range &_e) {
24295         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
24296       }
24297     } catch (const std::exception& e) {
24298       SWIG_exception(SWIG_RuntimeError, e.what());
24299     }
24300   }
24301   resultobj = SWIG_FromCharPtr((const char *)result);
24302   return resultobj;
24303 fail:
24304   return NULL;
24305 }
24306 
24307 
_wrap_ConstCharVector___getitem__(PyObject * self,PyObject * args)24308 SWIGINTERN PyObject *_wrap_ConstCharVector___getitem__(PyObject *self, PyObject *args) {
24309   Py_ssize_t argc;
24310   PyObject *argv[3] = {
24311     0
24312   };
24313 
24314   if (!(argc = SWIG_Python_UnpackTuple(args, "ConstCharVector___getitem__", 0, 2, argv))) SWIG_fail;
24315   --argc;
24316   if (argc == 2) {
24317     int _v;
24318     int res = swig::asptr(argv[0], (std::vector< char const*,std::allocator< char const * > >**)(0));
24319     _v = SWIG_CheckState(res);
24320     if (_v) {
24321       {
24322         _v = PySlice_Check(argv[1]);
24323       }
24324       if (_v) {
24325         return _wrap_ConstCharVector___getitem____SWIG_0(self, argc, argv);
24326       }
24327     }
24328   }
24329   if (argc == 2) {
24330     int _v;
24331     int res = swig::asptr(argv[0], (std::vector< char const*,std::allocator< char const * > >**)(0));
24332     _v = SWIG_CheckState(res);
24333     if (_v) {
24334       {
24335         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
24336         _v = SWIG_CheckState(res);
24337       }
24338       if (_v) {
24339         return _wrap_ConstCharVector___getitem____SWIG_1(self, argc, argv);
24340       }
24341     }
24342   }
24343 
24344 fail:
24345   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ConstCharVector___getitem__'.\n"
24346     "  Possible C/C++ prototypes are:\n"
24347     "    std::vector< char const * >::__getitem__(PySliceObject *)\n"
24348     "    std::vector< char const * >::__getitem__(std::vector< char const * >::difference_type)\n");
24349   return 0;
24350 }
24351 
24352 
_wrap_ConstCharVector___setitem____SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)24353 SWIGINTERN PyObject *_wrap_ConstCharVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
24354   PyObject *resultobj = 0;
24355   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24356   std::vector< char const * >::difference_type arg2 ;
24357   std::vector< char const * >::value_type arg3 = (std::vector< char const * >::value_type) 0 ;
24358   void *argp1 = 0 ;
24359   int res1 = 0 ;
24360   ptrdiff_t val2 ;
24361   int ecode2 = 0 ;
24362   int res3 ;
24363   char *buf3 = 0 ;
24364   int alloc3 = 0 ;
24365 
24366   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
24367   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24368   if (!SWIG_IsOK(res1)) {
24369     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector___setitem__" "', argument " "1"" of type '" "std::vector< char const * > *""'");
24370   }
24371   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24372   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
24373   if (!SWIG_IsOK(ecode2)) {
24374     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConstCharVector___setitem__" "', argument " "2"" of type '" "std::vector< char const * >::difference_type""'");
24375   }
24376   arg2 = static_cast< std::vector< char const * >::difference_type >(val2);
24377   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
24378   if (!SWIG_IsOK(res3)) {
24379     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ConstCharVector___setitem__" "', argument " "3"" of type '" "std::vector< char const * >::value_type""'");
24380   }
24381   arg3 = reinterpret_cast< std::vector< char const * >::value_type >(buf3);
24382   {
24383     try {
24384       try {
24385         std_vector_Sl_char_SS_const_Sm__Sg____setitem____SWIG_2(arg1,arg2,(char const *)arg3);
24386       } catch(std::out_of_range &_e) {
24387         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
24388       }
24389     } catch (const std::exception& e) {
24390       SWIG_exception(SWIG_RuntimeError, e.what());
24391     }
24392   }
24393   resultobj = SWIG_Py_Void();
24394   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
24395   return resultobj;
24396 fail:
24397   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
24398   return NULL;
24399 }
24400 
24401 
_wrap_ConstCharVector___setitem__(PyObject * self,PyObject * args)24402 SWIGINTERN PyObject *_wrap_ConstCharVector___setitem__(PyObject *self, PyObject *args) {
24403   Py_ssize_t argc;
24404   PyObject *argv[4] = {
24405     0
24406   };
24407 
24408   if (!(argc = SWIG_Python_UnpackTuple(args, "ConstCharVector___setitem__", 0, 3, argv))) SWIG_fail;
24409   --argc;
24410   if (argc == 2) {
24411     int _v;
24412     int res = swig::asptr(argv[0], (std::vector< char const*,std::allocator< char const * > >**)(0));
24413     _v = SWIG_CheckState(res);
24414     if (_v) {
24415       {
24416         _v = PySlice_Check(argv[1]);
24417       }
24418       if (_v) {
24419         return _wrap_ConstCharVector___setitem____SWIG_1(self, argc, argv);
24420       }
24421     }
24422   }
24423   if (argc == 3) {
24424     int _v;
24425     int res = swig::asptr(argv[0], (std::vector< char const*,std::allocator< char const * > >**)(0));
24426     _v = SWIG_CheckState(res);
24427     if (_v) {
24428       {
24429         _v = PySlice_Check(argv[1]);
24430       }
24431       if (_v) {
24432         int res = swig::asptr(argv[2], (std::vector< char const*,std::allocator< char const * > >**)(0));
24433         _v = SWIG_CheckState(res);
24434         if (_v) {
24435           return _wrap_ConstCharVector___setitem____SWIG_0(self, argc, argv);
24436         }
24437       }
24438     }
24439   }
24440   if (argc == 3) {
24441     int _v;
24442     int res = swig::asptr(argv[0], (std::vector< char const*,std::allocator< char const * > >**)(0));
24443     _v = SWIG_CheckState(res);
24444     if (_v) {
24445       {
24446         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
24447         _v = SWIG_CheckState(res);
24448       }
24449       if (_v) {
24450         int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
24451         _v = SWIG_CheckState(res);
24452         if (_v) {
24453           return _wrap_ConstCharVector___setitem____SWIG_2(self, argc, argv);
24454         }
24455       }
24456     }
24457   }
24458 
24459 fail:
24460   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ConstCharVector___setitem__'.\n"
24461     "  Possible C/C++ prototypes are:\n"
24462     "    std::vector< char const * >::__setitem__(PySliceObject *,std::vector< char const *,std::allocator< char const * > > const &)\n"
24463     "    std::vector< char const * >::__setitem__(PySliceObject *)\n"
24464     "    std::vector< char const * >::__setitem__(std::vector< char const * >::difference_type,std::vector< char const * >::value_type)\n");
24465   return 0;
24466 }
24467 
24468 
_wrap_ConstCharVector_pop(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24469 SWIGINTERN PyObject *_wrap_ConstCharVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24470   PyObject *resultobj = 0;
24471   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24472   void *argp1 = 0 ;
24473   int res1 = 0 ;
24474   PyObject *swig_obj[1] ;
24475   std::vector< char const * >::value_type result;
24476 
24477   if (!args) SWIG_fail;
24478   swig_obj[0] = args;
24479   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24480   if (!SWIG_IsOK(res1)) {
24481     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_pop" "', argument " "1"" of type '" "std::vector< char const * > *""'");
24482   }
24483   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24484   {
24485     try {
24486       try {
24487         result = (std::vector< char const * >::value_type)std_vector_Sl_char_SS_const_Sm__Sg__pop(arg1);
24488       } catch(std::out_of_range &_e) {
24489         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
24490       }
24491     } catch (const std::exception& e) {
24492       SWIG_exception(SWIG_RuntimeError, e.what());
24493     }
24494   }
24495   resultobj = SWIG_FromCharPtr((const char *)result);
24496   return resultobj;
24497 fail:
24498   return NULL;
24499 }
24500 
24501 
_wrap_ConstCharVector_append(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)24502 SWIGINTERN PyObject *_wrap_ConstCharVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24503   PyObject *resultobj = 0;
24504   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24505   std::vector< char const * >::value_type arg2 = (std::vector< char const * >::value_type) 0 ;
24506   void *argp1 = 0 ;
24507   int res1 = 0 ;
24508   int res2 ;
24509   char *buf2 = 0 ;
24510   int alloc2 = 0 ;
24511   PyObject * obj0 = 0 ;
24512   PyObject * obj1 = 0 ;
24513   char * kwnames[] = {
24514     (char *)"self",  (char *)"x",  NULL
24515   };
24516 
24517   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:ConstCharVector_append", kwnames, &obj0, &obj1)) SWIG_fail;
24518   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24519   if (!SWIG_IsOK(res1)) {
24520     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_append" "', argument " "1"" of type '" "std::vector< char const * > *""'");
24521   }
24522   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24523   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
24524   if (!SWIG_IsOK(res2)) {
24525     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConstCharVector_append" "', argument " "2"" of type '" "std::vector< char const * >::value_type""'");
24526   }
24527   arg2 = reinterpret_cast< std::vector< char const * >::value_type >(buf2);
24528   {
24529     try {
24530       std_vector_Sl_char_SS_const_Sm__Sg__append(arg1,(char const *)arg2);
24531     } catch (const std::exception& e) {
24532       SWIG_exception(SWIG_RuntimeError, e.what());
24533     }
24534   }
24535   resultobj = SWIG_Py_Void();
24536   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
24537   return resultobj;
24538 fail:
24539   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
24540   return NULL;
24541 }
24542 
24543 
_wrap_new_ConstCharVector__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))24544 SWIGINTERN PyObject *_wrap_new_ConstCharVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
24545   PyObject *resultobj = 0;
24546   std::vector< char const * > *result = 0 ;
24547 
24548   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
24549   {
24550     try {
24551       result = (std::vector< char const * > *)new std::vector< char const * >();
24552     } catch (const std::exception& e) {
24553       SWIG_exception(SWIG_RuntimeError, e.what());
24554     }
24555   }
24556   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, SWIG_POINTER_NEW |  0 );
24557   return resultobj;
24558 fail:
24559   return NULL;
24560 }
24561 
24562 
_wrap_new_ConstCharVector__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)24563 SWIGINTERN PyObject *_wrap_new_ConstCharVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
24564   PyObject *resultobj = 0;
24565   std::vector< char const * > *arg1 = 0 ;
24566   int res1 = SWIG_OLDOBJ ;
24567   std::vector< char const * > *result = 0 ;
24568 
24569   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
24570   {
24571     std::vector< char const*,std::allocator< char const * > > *ptr = (std::vector< char const*,std::allocator< char const * > > *)0;
24572     res1 = swig::asptr(swig_obj[0], &ptr);
24573     if (!SWIG_IsOK(res1)) {
24574       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConstCharVector" "', argument " "1"" of type '" "std::vector< char const * > const &""'");
24575     }
24576     if (!ptr) {
24577       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstCharVector" "', argument " "1"" of type '" "std::vector< char const * > const &""'");
24578     }
24579     arg1 = ptr;
24580   }
24581   {
24582     try {
24583       result = (std::vector< char const * > *)new std::vector< char const * >((std::vector< char const * > const &)*arg1);
24584     } catch (const std::exception& e) {
24585       SWIG_exception(SWIG_RuntimeError, e.what());
24586     }
24587   }
24588   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, SWIG_POINTER_NEW |  0 );
24589   if (SWIG_IsNewObj(res1)) delete arg1;
24590   return resultobj;
24591 fail:
24592   if (SWIG_IsNewObj(res1)) delete arg1;
24593   return NULL;
24594 }
24595 
24596 
_wrap_ConstCharVector_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24597 SWIGINTERN PyObject *_wrap_ConstCharVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24598   PyObject *resultobj = 0;
24599   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24600   void *argp1 = 0 ;
24601   int res1 = 0 ;
24602   PyObject *swig_obj[1] ;
24603   bool result;
24604 
24605   if (!args) SWIG_fail;
24606   swig_obj[0] = args;
24607   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24608   if (!SWIG_IsOK(res1)) {
24609     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_empty" "', argument " "1"" of type '" "std::vector< char const * > const *""'");
24610   }
24611   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24612   {
24613     try {
24614       result = (bool)((std::vector< char const * > const *)arg1)->empty();
24615     } catch (const std::exception& e) {
24616       SWIG_exception(SWIG_RuntimeError, e.what());
24617     }
24618   }
24619   resultobj = SWIG_From_bool(static_cast< bool >(result));
24620   return resultobj;
24621 fail:
24622   return NULL;
24623 }
24624 
24625 
_wrap_ConstCharVector_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24626 SWIGINTERN PyObject *_wrap_ConstCharVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24627   PyObject *resultobj = 0;
24628   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24629   void *argp1 = 0 ;
24630   int res1 = 0 ;
24631   PyObject *swig_obj[1] ;
24632   std::vector< char const * >::size_type result;
24633 
24634   if (!args) SWIG_fail;
24635   swig_obj[0] = args;
24636   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24637   if (!SWIG_IsOK(res1)) {
24638     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_size" "', argument " "1"" of type '" "std::vector< char const * > const *""'");
24639   }
24640   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24641   {
24642     try {
24643       result = ((std::vector< char const * > const *)arg1)->size();
24644     } catch (const std::exception& e) {
24645       SWIG_exception(SWIG_RuntimeError, e.what());
24646     }
24647   }
24648   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
24649   return resultobj;
24650 fail:
24651   return NULL;
24652 }
24653 
24654 
_wrap_ConstCharVector_swap(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)24655 SWIGINTERN PyObject *_wrap_ConstCharVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24656   PyObject *resultobj = 0;
24657   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24658   std::vector< char const * > *arg2 = 0 ;
24659   void *argp1 = 0 ;
24660   int res1 = 0 ;
24661   void *argp2 = 0 ;
24662   int res2 = 0 ;
24663   PyObject * obj0 = 0 ;
24664   PyObject * obj1 = 0 ;
24665   char * kwnames[] = {
24666     (char *)"self",  (char *)"v",  NULL
24667   };
24668 
24669   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:ConstCharVector_swap", kwnames, &obj0, &obj1)) SWIG_fail;
24670   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24671   if (!SWIG_IsOK(res1)) {
24672     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_swap" "', argument " "1"" of type '" "std::vector< char const * > *""'");
24673   }
24674   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24675   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t,  0 );
24676   if (!SWIG_IsOK(res2)) {
24677     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConstCharVector_swap" "', argument " "2"" of type '" "std::vector< char const * > &""'");
24678   }
24679   if (!argp2) {
24680     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ConstCharVector_swap" "', argument " "2"" of type '" "std::vector< char const * > &""'");
24681   }
24682   arg2 = reinterpret_cast< std::vector< char const * > * >(argp2);
24683   {
24684     try {
24685       (arg1)->swap(*arg2);
24686     } catch (const std::exception& e) {
24687       SWIG_exception(SWIG_RuntimeError, e.what());
24688     }
24689   }
24690   resultobj = SWIG_Py_Void();
24691   return resultobj;
24692 fail:
24693   return NULL;
24694 }
24695 
24696 
_wrap_ConstCharVector_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24697 SWIGINTERN PyObject *_wrap_ConstCharVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24698   PyObject *resultobj = 0;
24699   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24700   void *argp1 = 0 ;
24701   int res1 = 0 ;
24702   PyObject *swig_obj[1] ;
24703   std::vector< char const * >::iterator result;
24704 
24705   if (!args) SWIG_fail;
24706   swig_obj[0] = args;
24707   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24708   if (!SWIG_IsOK(res1)) {
24709     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_begin" "', argument " "1"" of type '" "std::vector< char const * > *""'");
24710   }
24711   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24712   {
24713     try {
24714       result = (arg1)->begin();
24715     } catch (const std::exception& e) {
24716       SWIG_exception(SWIG_RuntimeError, e.what());
24717     }
24718   }
24719   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< char const * >::iterator & >(result)),
24720     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
24721   return resultobj;
24722 fail:
24723   return NULL;
24724 }
24725 
24726 
_wrap_ConstCharVector_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24727 SWIGINTERN PyObject *_wrap_ConstCharVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24728   PyObject *resultobj = 0;
24729   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24730   void *argp1 = 0 ;
24731   int res1 = 0 ;
24732   PyObject *swig_obj[1] ;
24733   std::vector< char const * >::iterator result;
24734 
24735   if (!args) SWIG_fail;
24736   swig_obj[0] = args;
24737   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24738   if (!SWIG_IsOK(res1)) {
24739     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_end" "', argument " "1"" of type '" "std::vector< char const * > *""'");
24740   }
24741   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24742   {
24743     try {
24744       result = (arg1)->end();
24745     } catch (const std::exception& e) {
24746       SWIG_exception(SWIG_RuntimeError, e.what());
24747     }
24748   }
24749   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< char const * >::iterator & >(result)),
24750     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
24751   return resultobj;
24752 fail:
24753   return NULL;
24754 }
24755 
24756 
_wrap_ConstCharVector_rbegin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24757 SWIGINTERN PyObject *_wrap_ConstCharVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24758   PyObject *resultobj = 0;
24759   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24760   void *argp1 = 0 ;
24761   int res1 = 0 ;
24762   PyObject *swig_obj[1] ;
24763   std::vector< char const * >::reverse_iterator result;
24764 
24765   if (!args) SWIG_fail;
24766   swig_obj[0] = args;
24767   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24768   if (!SWIG_IsOK(res1)) {
24769     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_rbegin" "', argument " "1"" of type '" "std::vector< char const * > *""'");
24770   }
24771   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24772   {
24773     try {
24774       result = (arg1)->rbegin();
24775     } catch (const std::exception& e) {
24776       SWIG_exception(SWIG_RuntimeError, e.what());
24777     }
24778   }
24779   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< char const * >::reverse_iterator & >(result)),
24780     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
24781   return resultobj;
24782 fail:
24783   return NULL;
24784 }
24785 
24786 
_wrap_ConstCharVector_rend(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24787 SWIGINTERN PyObject *_wrap_ConstCharVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24788   PyObject *resultobj = 0;
24789   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24790   void *argp1 = 0 ;
24791   int res1 = 0 ;
24792   PyObject *swig_obj[1] ;
24793   std::vector< char const * >::reverse_iterator result;
24794 
24795   if (!args) SWIG_fail;
24796   swig_obj[0] = args;
24797   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24798   if (!SWIG_IsOK(res1)) {
24799     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_rend" "', argument " "1"" of type '" "std::vector< char const * > *""'");
24800   }
24801   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24802   {
24803     try {
24804       result = (arg1)->rend();
24805     } catch (const std::exception& e) {
24806       SWIG_exception(SWIG_RuntimeError, e.what());
24807     }
24808   }
24809   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< char const * >::reverse_iterator & >(result)),
24810     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
24811   return resultobj;
24812 fail:
24813   return NULL;
24814 }
24815 
24816 
_wrap_ConstCharVector_clear(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24817 SWIGINTERN PyObject *_wrap_ConstCharVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24818   PyObject *resultobj = 0;
24819   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24820   void *argp1 = 0 ;
24821   int res1 = 0 ;
24822   PyObject *swig_obj[1] ;
24823 
24824   if (!args) SWIG_fail;
24825   swig_obj[0] = args;
24826   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24827   if (!SWIG_IsOK(res1)) {
24828     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_clear" "', argument " "1"" of type '" "std::vector< char const * > *""'");
24829   }
24830   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24831   {
24832     try {
24833       (arg1)->clear();
24834     } catch (const std::exception& e) {
24835       SWIG_exception(SWIG_RuntimeError, e.what());
24836     }
24837   }
24838   resultobj = SWIG_Py_Void();
24839   return resultobj;
24840 fail:
24841   return NULL;
24842 }
24843 
24844 
_wrap_ConstCharVector_get_allocator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24845 SWIGINTERN PyObject *_wrap_ConstCharVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24846   PyObject *resultobj = 0;
24847   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24848   void *argp1 = 0 ;
24849   int res1 = 0 ;
24850   PyObject *swig_obj[1] ;
24851   SwigValueWrapper< std::allocator< char const * > > result;
24852 
24853   if (!args) SWIG_fail;
24854   swig_obj[0] = args;
24855   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24856   if (!SWIG_IsOK(res1)) {
24857     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_get_allocator" "', argument " "1"" of type '" "std::vector< char const * > const *""'");
24858   }
24859   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24860   {
24861     try {
24862       result = ((std::vector< char const * > const *)arg1)->get_allocator();
24863     } catch (const std::exception& e) {
24864       SWIG_exception(SWIG_RuntimeError, e.what());
24865     }
24866   }
24867   resultobj = SWIG_NewPointerObj((new std::vector< char const * >::allocator_type(static_cast< const std::vector< char const * >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_char_const_p_t, SWIG_POINTER_OWN |  0 );
24868   return resultobj;
24869 fail:
24870   return NULL;
24871 }
24872 
24873 
_wrap_new_ConstCharVector__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)24874 SWIGINTERN PyObject *_wrap_new_ConstCharVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
24875   PyObject *resultobj = 0;
24876   std::vector< char const * >::size_type arg1 ;
24877   size_t val1 ;
24878   int ecode1 = 0 ;
24879   std::vector< char const * > *result = 0 ;
24880 
24881   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
24882   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
24883   if (!SWIG_IsOK(ecode1)) {
24884     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ConstCharVector" "', argument " "1"" of type '" "std::vector< char const * >::size_type""'");
24885   }
24886   arg1 = static_cast< std::vector< char const * >::size_type >(val1);
24887   {
24888     try {
24889       result = (std::vector< char const * > *)new std::vector< char const * >(arg1);
24890     } catch (const std::exception& e) {
24891       SWIG_exception(SWIG_RuntimeError, e.what());
24892     }
24893   }
24894   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, SWIG_POINTER_NEW |  0 );
24895   return resultobj;
24896 fail:
24897   return NULL;
24898 }
24899 
24900 
_wrap_ConstCharVector_pop_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24901 SWIGINTERN PyObject *_wrap_ConstCharVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24902   PyObject *resultobj = 0;
24903   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24904   void *argp1 = 0 ;
24905   int res1 = 0 ;
24906   PyObject *swig_obj[1] ;
24907 
24908   if (!args) SWIG_fail;
24909   swig_obj[0] = args;
24910   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24911   if (!SWIG_IsOK(res1)) {
24912     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_pop_back" "', argument " "1"" of type '" "std::vector< char const * > *""'");
24913   }
24914   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24915   {
24916     try {
24917       (arg1)->pop_back();
24918     } catch (const std::exception& e) {
24919       SWIG_exception(SWIG_RuntimeError, e.what());
24920     }
24921   }
24922   resultobj = SWIG_Py_Void();
24923   return resultobj;
24924 fail:
24925   return NULL;
24926 }
24927 
24928 
_wrap_ConstCharVector_resize__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)24929 SWIGINTERN PyObject *_wrap_ConstCharVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
24930   PyObject *resultobj = 0;
24931   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24932   std::vector< char const * >::size_type arg2 ;
24933   void *argp1 = 0 ;
24934   int res1 = 0 ;
24935   size_t val2 ;
24936   int ecode2 = 0 ;
24937 
24938   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24939   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24940   if (!SWIG_IsOK(res1)) {
24941     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_resize" "', argument " "1"" of type '" "std::vector< char const * > *""'");
24942   }
24943   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24944   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
24945   if (!SWIG_IsOK(ecode2)) {
24946     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConstCharVector_resize" "', argument " "2"" of type '" "std::vector< char const * >::size_type""'");
24947   }
24948   arg2 = static_cast< std::vector< char const * >::size_type >(val2);
24949   {
24950     try {
24951       (arg1)->resize(arg2);
24952     } catch (const std::exception& e) {
24953       SWIG_exception(SWIG_RuntimeError, e.what());
24954     }
24955   }
24956   resultobj = SWIG_Py_Void();
24957   return resultobj;
24958 fail:
24959   return NULL;
24960 }
24961 
24962 
_wrap_ConstCharVector_erase__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)24963 SWIGINTERN PyObject *_wrap_ConstCharVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
24964   PyObject *resultobj = 0;
24965   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
24966   std::vector< char const * >::iterator arg2 ;
24967   void *argp1 = 0 ;
24968   int res1 = 0 ;
24969   swig::SwigPyIterator *iter2 = 0 ;
24970   int res2 ;
24971   std::vector< char const * >::iterator result;
24972 
24973   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24974   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
24975   if (!SWIG_IsOK(res1)) {
24976     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_erase" "', argument " "1"" of type '" "std::vector< char const * > *""'");
24977   }
24978   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
24979   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
24980   if (!SWIG_IsOK(res2) || !iter2) {
24981     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConstCharVector_erase" "', argument " "2"" of type '" "std::vector< char const * >::iterator""'");
24982   } else {
24983     swig::SwigPyIterator_T<std::vector< char const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< char const * >::iterator > *>(iter2);
24984     if (iter_t) {
24985       arg2 = iter_t->get_current();
24986     } else {
24987       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConstCharVector_erase" "', argument " "2"" of type '" "std::vector< char const * >::iterator""'");
24988     }
24989   }
24990   {
24991     try {
24992       result = std_vector_Sl_char_SS_const_Sm__Sg__erase__SWIG_0(arg1,arg2);
24993     } catch (const std::exception& e) {
24994       SWIG_exception(SWIG_RuntimeError, e.what());
24995     }
24996   }
24997   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< char const * >::iterator & >(result)),
24998     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
24999   return resultobj;
25000 fail:
25001   return NULL;
25002 }
25003 
25004 
_wrap_ConstCharVector_erase__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)25005 SWIGINTERN PyObject *_wrap_ConstCharVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
25006   PyObject *resultobj = 0;
25007   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
25008   std::vector< char const * >::iterator arg2 ;
25009   std::vector< char const * >::iterator arg3 ;
25010   void *argp1 = 0 ;
25011   int res1 = 0 ;
25012   swig::SwigPyIterator *iter2 = 0 ;
25013   int res2 ;
25014   swig::SwigPyIterator *iter3 = 0 ;
25015   int res3 ;
25016   std::vector< char const * >::iterator result;
25017 
25018   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
25019   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
25020   if (!SWIG_IsOK(res1)) {
25021     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_erase" "', argument " "1"" of type '" "std::vector< char const * > *""'");
25022   }
25023   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
25024   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
25025   if (!SWIG_IsOK(res2) || !iter2) {
25026     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConstCharVector_erase" "', argument " "2"" of type '" "std::vector< char const * >::iterator""'");
25027   } else {
25028     swig::SwigPyIterator_T<std::vector< char const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< char const * >::iterator > *>(iter2);
25029     if (iter_t) {
25030       arg2 = iter_t->get_current();
25031     } else {
25032       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConstCharVector_erase" "', argument " "2"" of type '" "std::vector< char const * >::iterator""'");
25033     }
25034   }
25035   res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
25036   if (!SWIG_IsOK(res3) || !iter3) {
25037     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConstCharVector_erase" "', argument " "3"" of type '" "std::vector< char const * >::iterator""'");
25038   } else {
25039     swig::SwigPyIterator_T<std::vector< char const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< char const * >::iterator > *>(iter3);
25040     if (iter_t) {
25041       arg3 = iter_t->get_current();
25042     } else {
25043       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConstCharVector_erase" "', argument " "3"" of type '" "std::vector< char const * >::iterator""'");
25044     }
25045   }
25046   {
25047     try {
25048       result = std_vector_Sl_char_SS_const_Sm__Sg__erase__SWIG_1(arg1,arg2,arg3);
25049     } catch (const std::exception& e) {
25050       SWIG_exception(SWIG_RuntimeError, e.what());
25051     }
25052   }
25053   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< char const * >::iterator & >(result)),
25054     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
25055   return resultobj;
25056 fail:
25057   return NULL;
25058 }
25059 
25060 
_wrap_ConstCharVector_erase(PyObject * self,PyObject * args)25061 SWIGINTERN PyObject *_wrap_ConstCharVector_erase(PyObject *self, PyObject *args) {
25062   Py_ssize_t argc;
25063   PyObject *argv[4] = {
25064     0
25065   };
25066 
25067   if (!(argc = SWIG_Python_UnpackTuple(args, "ConstCharVector_erase", 0, 3, argv))) SWIG_fail;
25068   --argc;
25069   if (argc == 2) {
25070     int _v;
25071     int res = swig::asptr(argv[0], (std::vector< char const*,std::allocator< char const * > >**)(0));
25072     _v = SWIG_CheckState(res);
25073     if (_v) {
25074       swig::SwigPyIterator *iter = 0;
25075       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
25076       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< char const * >::iterator > *>(iter) != 0));
25077       if (_v) {
25078         return _wrap_ConstCharVector_erase__SWIG_0(self, argc, argv);
25079       }
25080     }
25081   }
25082   if (argc == 3) {
25083     int _v;
25084     int res = swig::asptr(argv[0], (std::vector< char const*,std::allocator< char const * > >**)(0));
25085     _v = SWIG_CheckState(res);
25086     if (_v) {
25087       swig::SwigPyIterator *iter = 0;
25088       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
25089       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< char const * >::iterator > *>(iter) != 0));
25090       if (_v) {
25091         swig::SwigPyIterator *iter = 0;
25092         int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
25093         _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< char const * >::iterator > *>(iter) != 0));
25094         if (_v) {
25095           return _wrap_ConstCharVector_erase__SWIG_1(self, argc, argv);
25096         }
25097       }
25098     }
25099   }
25100 
25101 fail:
25102   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ConstCharVector_erase'.\n"
25103     "  Possible C/C++ prototypes are:\n"
25104     "    std::vector< char const * >::erase(std::vector< char const * >::iterator)\n"
25105     "    std::vector< char const * >::erase(std::vector< char const * >::iterator,std::vector< char const * >::iterator)\n");
25106   return 0;
25107 }
25108 
25109 
_wrap_new_ConstCharVector__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)25110 SWIGINTERN PyObject *_wrap_new_ConstCharVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
25111   PyObject *resultobj = 0;
25112   std::vector< char const * >::size_type arg1 ;
25113   std::vector< char const * >::value_type arg2 = (std::vector< char const * >::value_type) 0 ;
25114   size_t val1 ;
25115   int ecode1 = 0 ;
25116   int res2 ;
25117   char *buf2 = 0 ;
25118   int alloc2 = 0 ;
25119   std::vector< char const * > *result = 0 ;
25120 
25121   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
25122   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
25123   if (!SWIG_IsOK(ecode1)) {
25124     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ConstCharVector" "', argument " "1"" of type '" "std::vector< char const * >::size_type""'");
25125   }
25126   arg1 = static_cast< std::vector< char const * >::size_type >(val1);
25127   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
25128   if (!SWIG_IsOK(res2)) {
25129     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstCharVector" "', argument " "2"" of type '" "std::vector< char const * >::value_type""'");
25130   }
25131   arg2 = reinterpret_cast< std::vector< char const * >::value_type >(buf2);
25132   {
25133     try {
25134       result = (std::vector< char const * > *)new std::vector< char const * >(arg1,arg2);
25135     } catch (const std::exception& e) {
25136       SWIG_exception(SWIG_RuntimeError, e.what());
25137     }
25138   }
25139   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, SWIG_POINTER_NEW |  0 );
25140   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
25141   return resultobj;
25142 fail:
25143   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
25144   return NULL;
25145 }
25146 
25147 
_wrap_new_ConstCharVector(PyObject * self,PyObject * args)25148 SWIGINTERN PyObject *_wrap_new_ConstCharVector(PyObject *self, PyObject *args) {
25149   Py_ssize_t argc;
25150   PyObject *argv[3] = {
25151     0
25152   };
25153 
25154   if (!(argc = SWIG_Python_UnpackTuple(args, "new_ConstCharVector", 0, 2, argv))) SWIG_fail;
25155   --argc;
25156   if (argc == 0) {
25157     return _wrap_new_ConstCharVector__SWIG_0(self, argc, argv);
25158   }
25159   if (argc == 1) {
25160     int _v;
25161     {
25162       int res = SWIG_AsVal_size_t(argv[0], NULL);
25163       _v = SWIG_CheckState(res);
25164     }
25165     if (_v) {
25166       return _wrap_new_ConstCharVector__SWIG_2(self, argc, argv);
25167     }
25168   }
25169   if (argc == 1) {
25170     int _v;
25171     int res = swig::asptr(argv[0], (std::vector< char const*,std::allocator< char const * > >**)(0));
25172     _v = SWIG_CheckState(res);
25173     if (_v) {
25174       return _wrap_new_ConstCharVector__SWIG_1(self, argc, argv);
25175     }
25176   }
25177   if (argc == 2) {
25178     int _v;
25179     {
25180       int res = SWIG_AsVal_size_t(argv[0], NULL);
25181       _v = SWIG_CheckState(res);
25182     }
25183     if (_v) {
25184       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
25185       _v = SWIG_CheckState(res);
25186       if (_v) {
25187         return _wrap_new_ConstCharVector__SWIG_3(self, argc, argv);
25188       }
25189     }
25190   }
25191 
25192 fail:
25193   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_ConstCharVector'.\n"
25194     "  Possible C/C++ prototypes are:\n"
25195     "    std::vector< char const * >::vector()\n"
25196     "    std::vector< char const * >::vector(std::vector< char const * > const &)\n"
25197     "    std::vector< char const * >::vector(std::vector< char const * >::size_type)\n"
25198     "    std::vector< char const * >::vector(std::vector< char const * >::size_type,std::vector< char const * >::value_type)\n");
25199   return 0;
25200 }
25201 
25202 
_wrap_ConstCharVector_push_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)25203 SWIGINTERN PyObject *_wrap_ConstCharVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25204   PyObject *resultobj = 0;
25205   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
25206   std::vector< char const * >::value_type arg2 = (std::vector< char const * >::value_type) 0 ;
25207   void *argp1 = 0 ;
25208   int res1 = 0 ;
25209   int res2 ;
25210   char *buf2 = 0 ;
25211   int alloc2 = 0 ;
25212   PyObject * obj0 = 0 ;
25213   PyObject * obj1 = 0 ;
25214   char * kwnames[] = {
25215     (char *)"self",  (char *)"x",  NULL
25216   };
25217 
25218   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:ConstCharVector_push_back", kwnames, &obj0, &obj1)) SWIG_fail;
25219   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
25220   if (!SWIG_IsOK(res1)) {
25221     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_push_back" "', argument " "1"" of type '" "std::vector< char const * > *""'");
25222   }
25223   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
25224   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
25225   if (!SWIG_IsOK(res2)) {
25226     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConstCharVector_push_back" "', argument " "2"" of type '" "std::vector< char const * >::value_type""'");
25227   }
25228   arg2 = reinterpret_cast< std::vector< char const * >::value_type >(buf2);
25229   {
25230     try {
25231       (arg1)->push_back(arg2);
25232     } catch (const std::exception& e) {
25233       SWIG_exception(SWIG_RuntimeError, e.what());
25234     }
25235   }
25236   resultobj = SWIG_Py_Void();
25237   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
25238   return resultobj;
25239 fail:
25240   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
25241   return NULL;
25242 }
25243 
25244 
_wrap_ConstCharVector_front(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25245 SWIGINTERN PyObject *_wrap_ConstCharVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25246   PyObject *resultobj = 0;
25247   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
25248   void *argp1 = 0 ;
25249   int res1 = 0 ;
25250   PyObject *swig_obj[1] ;
25251   std::vector< char const * >::value_type result;
25252 
25253   if (!args) SWIG_fail;
25254   swig_obj[0] = args;
25255   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
25256   if (!SWIG_IsOK(res1)) {
25257     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_front" "', argument " "1"" of type '" "std::vector< char const * > const *""'");
25258   }
25259   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
25260   {
25261     try {
25262       result = (std::vector< char const * >::value_type)((std::vector< char const * > const *)arg1)->front();
25263     } catch (const std::exception& e) {
25264       SWIG_exception(SWIG_RuntimeError, e.what());
25265     }
25266   }
25267   resultobj = SWIG_FromCharPtr((const char *)result);
25268   return resultobj;
25269 fail:
25270   return NULL;
25271 }
25272 
25273 
_wrap_ConstCharVector_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25274 SWIGINTERN PyObject *_wrap_ConstCharVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25275   PyObject *resultobj = 0;
25276   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
25277   void *argp1 = 0 ;
25278   int res1 = 0 ;
25279   PyObject *swig_obj[1] ;
25280   std::vector< char const * >::value_type result;
25281 
25282   if (!args) SWIG_fail;
25283   swig_obj[0] = args;
25284   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
25285   if (!SWIG_IsOK(res1)) {
25286     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_back" "', argument " "1"" of type '" "std::vector< char const * > const *""'");
25287   }
25288   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
25289   {
25290     try {
25291       result = (std::vector< char const * >::value_type)((std::vector< char const * > const *)arg1)->back();
25292     } catch (const std::exception& e) {
25293       SWIG_exception(SWIG_RuntimeError, e.what());
25294     }
25295   }
25296   resultobj = SWIG_FromCharPtr((const char *)result);
25297   return resultobj;
25298 fail:
25299   return NULL;
25300 }
25301 
25302 
_wrap_ConstCharVector_assign(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)25303 SWIGINTERN PyObject *_wrap_ConstCharVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25304   PyObject *resultobj = 0;
25305   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
25306   std::vector< char const * >::size_type arg2 ;
25307   std::vector< char const * >::value_type arg3 = (std::vector< char const * >::value_type) 0 ;
25308   void *argp1 = 0 ;
25309   int res1 = 0 ;
25310   size_t val2 ;
25311   int ecode2 = 0 ;
25312   int res3 ;
25313   char *buf3 = 0 ;
25314   int alloc3 = 0 ;
25315   PyObject * obj0 = 0 ;
25316   PyObject * obj1 = 0 ;
25317   PyObject * obj2 = 0 ;
25318   char * kwnames[] = {
25319     (char *)"self",  (char *)"n",  (char *)"x",  NULL
25320   };
25321 
25322   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:ConstCharVector_assign", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
25323   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
25324   if (!SWIG_IsOK(res1)) {
25325     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_assign" "', argument " "1"" of type '" "std::vector< char const * > *""'");
25326   }
25327   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
25328   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
25329   if (!SWIG_IsOK(ecode2)) {
25330     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConstCharVector_assign" "', argument " "2"" of type '" "std::vector< char const * >::size_type""'");
25331   }
25332   arg2 = static_cast< std::vector< char const * >::size_type >(val2);
25333   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
25334   if (!SWIG_IsOK(res3)) {
25335     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ConstCharVector_assign" "', argument " "3"" of type '" "std::vector< char const * >::value_type""'");
25336   }
25337   arg3 = reinterpret_cast< std::vector< char const * >::value_type >(buf3);
25338   {
25339     try {
25340       (arg1)->assign(arg2,arg3);
25341     } catch (const std::exception& e) {
25342       SWIG_exception(SWIG_RuntimeError, e.what());
25343     }
25344   }
25345   resultobj = SWIG_Py_Void();
25346   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
25347   return resultobj;
25348 fail:
25349   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
25350   return NULL;
25351 }
25352 
25353 
_wrap_ConstCharVector_resize__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)25354 SWIGINTERN PyObject *_wrap_ConstCharVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
25355   PyObject *resultobj = 0;
25356   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
25357   std::vector< char const * >::size_type arg2 ;
25358   std::vector< char const * >::value_type arg3 = (std::vector< char const * >::value_type) 0 ;
25359   void *argp1 = 0 ;
25360   int res1 = 0 ;
25361   size_t val2 ;
25362   int ecode2 = 0 ;
25363   int res3 ;
25364   char *buf3 = 0 ;
25365   int alloc3 = 0 ;
25366 
25367   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
25368   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
25369   if (!SWIG_IsOK(res1)) {
25370     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_resize" "', argument " "1"" of type '" "std::vector< char const * > *""'");
25371   }
25372   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
25373   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
25374   if (!SWIG_IsOK(ecode2)) {
25375     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConstCharVector_resize" "', argument " "2"" of type '" "std::vector< char const * >::size_type""'");
25376   }
25377   arg2 = static_cast< std::vector< char const * >::size_type >(val2);
25378   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
25379   if (!SWIG_IsOK(res3)) {
25380     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ConstCharVector_resize" "', argument " "3"" of type '" "std::vector< char const * >::value_type""'");
25381   }
25382   arg3 = reinterpret_cast< std::vector< char const * >::value_type >(buf3);
25383   {
25384     try {
25385       (arg1)->resize(arg2,arg3);
25386     } catch (const std::exception& e) {
25387       SWIG_exception(SWIG_RuntimeError, e.what());
25388     }
25389   }
25390   resultobj = SWIG_Py_Void();
25391   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
25392   return resultobj;
25393 fail:
25394   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
25395   return NULL;
25396 }
25397 
25398 
_wrap_ConstCharVector_resize(PyObject * self,PyObject * args)25399 SWIGINTERN PyObject *_wrap_ConstCharVector_resize(PyObject *self, PyObject *args) {
25400   Py_ssize_t argc;
25401   PyObject *argv[4] = {
25402     0
25403   };
25404 
25405   if (!(argc = SWIG_Python_UnpackTuple(args, "ConstCharVector_resize", 0, 3, argv))) SWIG_fail;
25406   --argc;
25407   if (argc == 2) {
25408     int _v;
25409     int res = swig::asptr(argv[0], (std::vector< char const*,std::allocator< char const * > >**)(0));
25410     _v = SWIG_CheckState(res);
25411     if (_v) {
25412       {
25413         int res = SWIG_AsVal_size_t(argv[1], NULL);
25414         _v = SWIG_CheckState(res);
25415       }
25416       if (_v) {
25417         return _wrap_ConstCharVector_resize__SWIG_0(self, argc, argv);
25418       }
25419     }
25420   }
25421   if (argc == 3) {
25422     int _v;
25423     int res = swig::asptr(argv[0], (std::vector< char const*,std::allocator< char const * > >**)(0));
25424     _v = SWIG_CheckState(res);
25425     if (_v) {
25426       {
25427         int res = SWIG_AsVal_size_t(argv[1], NULL);
25428         _v = SWIG_CheckState(res);
25429       }
25430       if (_v) {
25431         int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
25432         _v = SWIG_CheckState(res);
25433         if (_v) {
25434           return _wrap_ConstCharVector_resize__SWIG_1(self, argc, argv);
25435         }
25436       }
25437     }
25438   }
25439 
25440 fail:
25441   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ConstCharVector_resize'.\n"
25442     "  Possible C/C++ prototypes are:\n"
25443     "    std::vector< char const * >::resize(std::vector< char const * >::size_type)\n"
25444     "    std::vector< char const * >::resize(std::vector< char const * >::size_type,std::vector< char const * >::value_type)\n");
25445   return 0;
25446 }
25447 
25448 
_wrap_ConstCharVector_insert__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)25449 SWIGINTERN PyObject *_wrap_ConstCharVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
25450   PyObject *resultobj = 0;
25451   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
25452   std::vector< char const * >::iterator arg2 ;
25453   std::vector< char const * >::value_type arg3 = (std::vector< char const * >::value_type) 0 ;
25454   void *argp1 = 0 ;
25455   int res1 = 0 ;
25456   swig::SwigPyIterator *iter2 = 0 ;
25457   int res2 ;
25458   int res3 ;
25459   char *buf3 = 0 ;
25460   int alloc3 = 0 ;
25461   std::vector< char const * >::iterator result;
25462 
25463   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
25464   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
25465   if (!SWIG_IsOK(res1)) {
25466     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_insert" "', argument " "1"" of type '" "std::vector< char const * > *""'");
25467   }
25468   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
25469   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
25470   if (!SWIG_IsOK(res2) || !iter2) {
25471     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConstCharVector_insert" "', argument " "2"" of type '" "std::vector< char const * >::iterator""'");
25472   } else {
25473     swig::SwigPyIterator_T<std::vector< char const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< char const * >::iterator > *>(iter2);
25474     if (iter_t) {
25475       arg2 = iter_t->get_current();
25476     } else {
25477       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConstCharVector_insert" "', argument " "2"" of type '" "std::vector< char const * >::iterator""'");
25478     }
25479   }
25480   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
25481   if (!SWIG_IsOK(res3)) {
25482     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ConstCharVector_insert" "', argument " "3"" of type '" "std::vector< char const * >::value_type""'");
25483   }
25484   arg3 = reinterpret_cast< std::vector< char const * >::value_type >(buf3);
25485   {
25486     try {
25487       result = std_vector_Sl_char_SS_const_Sm__Sg__insert__SWIG_0(arg1,arg2,(char const *)arg3);
25488     } catch (const std::exception& e) {
25489       SWIG_exception(SWIG_RuntimeError, e.what());
25490     }
25491   }
25492   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< char const * >::iterator & >(result)),
25493     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
25494   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
25495   return resultobj;
25496 fail:
25497   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
25498   return NULL;
25499 }
25500 
25501 
_wrap_ConstCharVector_insert__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)25502 SWIGINTERN PyObject *_wrap_ConstCharVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
25503   PyObject *resultobj = 0;
25504   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
25505   std::vector< char const * >::iterator arg2 ;
25506   std::vector< char const * >::size_type arg3 ;
25507   std::vector< char const * >::value_type arg4 = (std::vector< char const * >::value_type) 0 ;
25508   void *argp1 = 0 ;
25509   int res1 = 0 ;
25510   swig::SwigPyIterator *iter2 = 0 ;
25511   int res2 ;
25512   size_t val3 ;
25513   int ecode3 = 0 ;
25514   int res4 ;
25515   char *buf4 = 0 ;
25516   int alloc4 = 0 ;
25517 
25518   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
25519   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
25520   if (!SWIG_IsOK(res1)) {
25521     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_insert" "', argument " "1"" of type '" "std::vector< char const * > *""'");
25522   }
25523   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
25524   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
25525   if (!SWIG_IsOK(res2) || !iter2) {
25526     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConstCharVector_insert" "', argument " "2"" of type '" "std::vector< char const * >::iterator""'");
25527   } else {
25528     swig::SwigPyIterator_T<std::vector< char const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< char const * >::iterator > *>(iter2);
25529     if (iter_t) {
25530       arg2 = iter_t->get_current();
25531     } else {
25532       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConstCharVector_insert" "', argument " "2"" of type '" "std::vector< char const * >::iterator""'");
25533     }
25534   }
25535   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
25536   if (!SWIG_IsOK(ecode3)) {
25537     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConstCharVector_insert" "', argument " "3"" of type '" "std::vector< char const * >::size_type""'");
25538   }
25539   arg3 = static_cast< std::vector< char const * >::size_type >(val3);
25540   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
25541   if (!SWIG_IsOK(res4)) {
25542     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ConstCharVector_insert" "', argument " "4"" of type '" "std::vector< char const * >::value_type""'");
25543   }
25544   arg4 = reinterpret_cast< std::vector< char const * >::value_type >(buf4);
25545   {
25546     try {
25547       std_vector_Sl_char_SS_const_Sm__Sg__insert__SWIG_1(arg1,arg2,arg3,(char const *)arg4);
25548     } catch (const std::exception& e) {
25549       SWIG_exception(SWIG_RuntimeError, e.what());
25550     }
25551   }
25552   resultobj = SWIG_Py_Void();
25553   if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
25554   return resultobj;
25555 fail:
25556   if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
25557   return NULL;
25558 }
25559 
25560 
_wrap_ConstCharVector_insert(PyObject * self,PyObject * args)25561 SWIGINTERN PyObject *_wrap_ConstCharVector_insert(PyObject *self, PyObject *args) {
25562   Py_ssize_t argc;
25563   PyObject *argv[5] = {
25564     0
25565   };
25566 
25567   if (!(argc = SWIG_Python_UnpackTuple(args, "ConstCharVector_insert", 0, 4, argv))) SWIG_fail;
25568   --argc;
25569   if (argc == 3) {
25570     int _v;
25571     int res = swig::asptr(argv[0], (std::vector< char const*,std::allocator< char const * > >**)(0));
25572     _v = SWIG_CheckState(res);
25573     if (_v) {
25574       swig::SwigPyIterator *iter = 0;
25575       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
25576       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< char const * >::iterator > *>(iter) != 0));
25577       if (_v) {
25578         int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
25579         _v = SWIG_CheckState(res);
25580         if (_v) {
25581           return _wrap_ConstCharVector_insert__SWIG_0(self, argc, argv);
25582         }
25583       }
25584     }
25585   }
25586   if (argc == 4) {
25587     int _v;
25588     int res = swig::asptr(argv[0], (std::vector< char const*,std::allocator< char const * > >**)(0));
25589     _v = SWIG_CheckState(res);
25590     if (_v) {
25591       swig::SwigPyIterator *iter = 0;
25592       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
25593       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< char const * >::iterator > *>(iter) != 0));
25594       if (_v) {
25595         {
25596           int res = SWIG_AsVal_size_t(argv[2], NULL);
25597           _v = SWIG_CheckState(res);
25598         }
25599         if (_v) {
25600           int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0);
25601           _v = SWIG_CheckState(res);
25602           if (_v) {
25603             return _wrap_ConstCharVector_insert__SWIG_1(self, argc, argv);
25604           }
25605         }
25606       }
25607     }
25608   }
25609 
25610 fail:
25611   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ConstCharVector_insert'.\n"
25612     "  Possible C/C++ prototypes are:\n"
25613     "    std::vector< char const * >::insert(std::vector< char const * >::iterator,std::vector< char const * >::value_type)\n"
25614     "    std::vector< char const * >::insert(std::vector< char const * >::iterator,std::vector< char const * >::size_type,std::vector< char const * >::value_type)\n");
25615   return 0;
25616 }
25617 
25618 
_wrap_ConstCharVector_reserve(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)25619 SWIGINTERN PyObject *_wrap_ConstCharVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25620   PyObject *resultobj = 0;
25621   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
25622   std::vector< char const * >::size_type arg2 ;
25623   void *argp1 = 0 ;
25624   int res1 = 0 ;
25625   size_t val2 ;
25626   int ecode2 = 0 ;
25627   PyObject * obj0 = 0 ;
25628   PyObject * obj1 = 0 ;
25629   char * kwnames[] = {
25630     (char *)"self",  (char *)"n",  NULL
25631   };
25632 
25633   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:ConstCharVector_reserve", kwnames, &obj0, &obj1)) SWIG_fail;
25634   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
25635   if (!SWIG_IsOK(res1)) {
25636     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_reserve" "', argument " "1"" of type '" "std::vector< char const * > *""'");
25637   }
25638   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
25639   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
25640   if (!SWIG_IsOK(ecode2)) {
25641     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConstCharVector_reserve" "', argument " "2"" of type '" "std::vector< char const * >::size_type""'");
25642   }
25643   arg2 = static_cast< std::vector< char const * >::size_type >(val2);
25644   {
25645     try {
25646       (arg1)->reserve(arg2);
25647     } catch (const std::exception& e) {
25648       SWIG_exception(SWIG_RuntimeError, e.what());
25649     }
25650   }
25651   resultobj = SWIG_Py_Void();
25652   return resultobj;
25653 fail:
25654   return NULL;
25655 }
25656 
25657 
_wrap_ConstCharVector_capacity(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25658 SWIGINTERN PyObject *_wrap_ConstCharVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25659   PyObject *resultobj = 0;
25660   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
25661   void *argp1 = 0 ;
25662   int res1 = 0 ;
25663   PyObject *swig_obj[1] ;
25664   std::vector< char const * >::size_type result;
25665 
25666   if (!args) SWIG_fail;
25667   swig_obj[0] = args;
25668   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0 |  0 );
25669   if (!SWIG_IsOK(res1)) {
25670     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstCharVector_capacity" "', argument " "1"" of type '" "std::vector< char const * > const *""'");
25671   }
25672   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
25673   {
25674     try {
25675       result = ((std::vector< char const * > const *)arg1)->capacity();
25676     } catch (const std::exception& e) {
25677       SWIG_exception(SWIG_RuntimeError, e.what());
25678     }
25679   }
25680   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25681   return resultobj;
25682 fail:
25683   return NULL;
25684 }
25685 
25686 
_wrap_delete_ConstCharVector(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25687 SWIGINTERN PyObject *_wrap_delete_ConstCharVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25688   PyObject *resultobj = 0;
25689   std::vector< char const * > *arg1 = (std::vector< char const * > *) 0 ;
25690   void *argp1 = 0 ;
25691   int res1 = 0 ;
25692   PyObject *swig_obj[1] ;
25693 
25694   if (!args) SWIG_fail;
25695   swig_obj[0] = args;
25696   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, SWIG_POINTER_DISOWN |  0 );
25697   if (!SWIG_IsOK(res1)) {
25698     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ConstCharVector" "', argument " "1"" of type '" "std::vector< char const * > *""'");
25699   }
25700   arg1 = reinterpret_cast< std::vector< char const * > * >(argp1);
25701   {
25702     try {
25703       delete arg1;
25704     } catch (const std::exception& e) {
25705       SWIG_exception(SWIG_RuntimeError, e.what());
25706     }
25707   }
25708   resultobj = SWIG_Py_Void();
25709   return resultobj;
25710 fail:
25711   return NULL;
25712 }
25713 
25714 
ConstCharVector_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25715 SWIGINTERN PyObject *ConstCharVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25716   PyObject *obj;
25717   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
25718   SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, SWIG_NewClientData(obj));
25719   return SWIG_Py_Void();
25720 }
25721 
ConstCharVector_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25722 SWIGINTERN PyObject *ConstCharVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25723   return SWIG_Python_InitShadowInstance(args);
25724 }
25725 
_wrap_SOLUTIONVector_iterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25726 SWIGINTERN PyObject *_wrap_SOLUTIONVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25727   PyObject *resultobj = 0;
25728   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
25729   PyObject **arg2 = (PyObject **) 0 ;
25730   void *argp1 = 0 ;
25731   int res1 = 0 ;
25732   PyObject *swig_obj[1] ;
25733   swig::SwigPyIterator *result = 0 ;
25734 
25735   arg2 = &swig_obj[0];
25736   if (!args) SWIG_fail;
25737   swig_obj[0] = args;
25738   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
25739   if (!SWIG_IsOK(res1)) {
25740     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_iterator" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
25741   }
25742   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
25743   {
25744     try {
25745       result = (swig::SwigPyIterator *)std_vector_Sl_SOLUTION_Sg__iterator(arg1,arg2);
25746     } catch (const std::exception& e) {
25747       SWIG_exception(SWIG_RuntimeError, e.what());
25748     }
25749   }
25750   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
25751   return resultobj;
25752 fail:
25753   return NULL;
25754 }
25755 
25756 
_wrap_SOLUTIONVector___nonzero__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25757 SWIGINTERN PyObject *_wrap_SOLUTIONVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25758   PyObject *resultobj = 0;
25759   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
25760   void *argp1 = 0 ;
25761   int res1 = 0 ;
25762   PyObject *swig_obj[1] ;
25763   bool result;
25764 
25765   if (!args) SWIG_fail;
25766   swig_obj[0] = args;
25767   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
25768   if (!SWIG_IsOK(res1)) {
25769     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector___nonzero__" "', argument " "1"" of type '" "std::vector< SOLUTION > const *""'");
25770   }
25771   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
25772   {
25773     try {
25774       result = (bool)std_vector_Sl_SOLUTION_Sg____nonzero__((std::vector< SOLUTION > const *)arg1);
25775     } catch (const std::exception& e) {
25776       SWIG_exception(SWIG_RuntimeError, e.what());
25777     }
25778   }
25779   resultobj = SWIG_From_bool(static_cast< bool >(result));
25780   return resultobj;
25781 fail:
25782   return NULL;
25783 }
25784 
25785 
_wrap_SOLUTIONVector___bool__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25786 SWIGINTERN PyObject *_wrap_SOLUTIONVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25787   PyObject *resultobj = 0;
25788   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
25789   void *argp1 = 0 ;
25790   int res1 = 0 ;
25791   PyObject *swig_obj[1] ;
25792   bool result;
25793 
25794   if (!args) SWIG_fail;
25795   swig_obj[0] = args;
25796   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
25797   if (!SWIG_IsOK(res1)) {
25798     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector___bool__" "', argument " "1"" of type '" "std::vector< SOLUTION > const *""'");
25799   }
25800   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
25801   {
25802     try {
25803       result = (bool)std_vector_Sl_SOLUTION_Sg____bool__((std::vector< SOLUTION > const *)arg1);
25804     } catch (const std::exception& e) {
25805       SWIG_exception(SWIG_RuntimeError, e.what());
25806     }
25807   }
25808   resultobj = SWIG_From_bool(static_cast< bool >(result));
25809   return resultobj;
25810 fail:
25811   return NULL;
25812 }
25813 
25814 
_wrap_SOLUTIONVector___len__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25815 SWIGINTERN PyObject *_wrap_SOLUTIONVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25816   PyObject *resultobj = 0;
25817   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
25818   void *argp1 = 0 ;
25819   int res1 = 0 ;
25820   PyObject *swig_obj[1] ;
25821   std::vector< SOLUTION >::size_type result;
25822 
25823   if (!args) SWIG_fail;
25824   swig_obj[0] = args;
25825   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
25826   if (!SWIG_IsOK(res1)) {
25827     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector___len__" "', argument " "1"" of type '" "std::vector< SOLUTION > const *""'");
25828   }
25829   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
25830   {
25831     try {
25832       result = std_vector_Sl_SOLUTION_Sg____len__((std::vector< SOLUTION > const *)arg1);
25833     } catch (const std::exception& e) {
25834       SWIG_exception(SWIG_RuntimeError, e.what());
25835     }
25836   }
25837   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25838   return resultobj;
25839 fail:
25840   return NULL;
25841 }
25842 
25843 
_wrap_SOLUTIONVector___getslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)25844 SWIGINTERN PyObject *_wrap_SOLUTIONVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25845   PyObject *resultobj = 0;
25846   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
25847   std::vector< SOLUTION >::difference_type arg2 ;
25848   std::vector< SOLUTION >::difference_type arg3 ;
25849   void *argp1 = 0 ;
25850   int res1 = 0 ;
25851   ptrdiff_t val2 ;
25852   int ecode2 = 0 ;
25853   ptrdiff_t val3 ;
25854   int ecode3 = 0 ;
25855   PyObject * obj0 = 0 ;
25856   PyObject * obj1 = 0 ;
25857   PyObject * obj2 = 0 ;
25858   char * kwnames[] = {
25859     (char *)"self",  (char *)"i",  (char *)"j",  NULL
25860   };
25861   std::vector< SOLUTION,std::allocator< SOLUTION > > *result = 0 ;
25862 
25863   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:SOLUTIONVector___getslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
25864   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
25865   if (!SWIG_IsOK(res1)) {
25866     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector___getslice__" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
25867   }
25868   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
25869   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
25870   if (!SWIG_IsOK(ecode2)) {
25871     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SOLUTIONVector___getslice__" "', argument " "2"" of type '" "std::vector< SOLUTION >::difference_type""'");
25872   }
25873   arg2 = static_cast< std::vector< SOLUTION >::difference_type >(val2);
25874   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
25875   if (!SWIG_IsOK(ecode3)) {
25876     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SOLUTIONVector___getslice__" "', argument " "3"" of type '" "std::vector< SOLUTION >::difference_type""'");
25877   }
25878   arg3 = static_cast< std::vector< SOLUTION >::difference_type >(val3);
25879   {
25880     try {
25881       try {
25882         result = (std::vector< SOLUTION,std::allocator< SOLUTION > > *)std_vector_Sl_SOLUTION_Sg____getslice__(arg1,arg2,arg3);
25883       } catch(std::out_of_range &_e) {
25884         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
25885       } catch(std::invalid_argument &_e) {
25886         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
25887       }
25888     } catch (const std::exception& e) {
25889       SWIG_exception(SWIG_RuntimeError, e.what());
25890     }
25891   }
25892   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, SWIG_POINTER_OWN |  0 );
25893   return resultobj;
25894 fail:
25895   return NULL;
25896 }
25897 
25898 
_wrap_SOLUTIONVector___setslice____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)25899 SWIGINTERN PyObject *_wrap_SOLUTIONVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
25900   PyObject *resultobj = 0;
25901   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
25902   std::vector< SOLUTION >::difference_type arg2 ;
25903   std::vector< SOLUTION >::difference_type arg3 ;
25904   void *argp1 = 0 ;
25905   int res1 = 0 ;
25906   ptrdiff_t val2 ;
25907   int ecode2 = 0 ;
25908   ptrdiff_t val3 ;
25909   int ecode3 = 0 ;
25910 
25911   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
25912   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
25913   if (!SWIG_IsOK(res1)) {
25914     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector___setslice__" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
25915   }
25916   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
25917   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
25918   if (!SWIG_IsOK(ecode2)) {
25919     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SOLUTIONVector___setslice__" "', argument " "2"" of type '" "std::vector< SOLUTION >::difference_type""'");
25920   }
25921   arg2 = static_cast< std::vector< SOLUTION >::difference_type >(val2);
25922   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
25923   if (!SWIG_IsOK(ecode3)) {
25924     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SOLUTIONVector___setslice__" "', argument " "3"" of type '" "std::vector< SOLUTION >::difference_type""'");
25925   }
25926   arg3 = static_cast< std::vector< SOLUTION >::difference_type >(val3);
25927   {
25928     try {
25929       try {
25930         std_vector_Sl_SOLUTION_Sg____setslice____SWIG_0(arg1,arg2,arg3);
25931       } catch(std::out_of_range &_e) {
25932         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
25933       } catch(std::invalid_argument &_e) {
25934         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
25935       }
25936     } catch (const std::exception& e) {
25937       SWIG_exception(SWIG_RuntimeError, e.what());
25938     }
25939   }
25940   resultobj = SWIG_Py_Void();
25941   return resultobj;
25942 fail:
25943   return NULL;
25944 }
25945 
25946 
_wrap_SOLUTIONVector___setslice____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)25947 SWIGINTERN PyObject *_wrap_SOLUTIONVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
25948   PyObject *resultobj = 0;
25949   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
25950   std::vector< SOLUTION >::difference_type arg2 ;
25951   std::vector< SOLUTION >::difference_type arg3 ;
25952   std::vector< SOLUTION,std::allocator< SOLUTION > > *arg4 = 0 ;
25953   void *argp1 = 0 ;
25954   int res1 = 0 ;
25955   ptrdiff_t val2 ;
25956   int ecode2 = 0 ;
25957   ptrdiff_t val3 ;
25958   int ecode3 = 0 ;
25959   int res4 = SWIG_OLDOBJ ;
25960 
25961   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
25962   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
25963   if (!SWIG_IsOK(res1)) {
25964     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector___setslice__" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
25965   }
25966   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
25967   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
25968   if (!SWIG_IsOK(ecode2)) {
25969     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SOLUTIONVector___setslice__" "', argument " "2"" of type '" "std::vector< SOLUTION >::difference_type""'");
25970   }
25971   arg2 = static_cast< std::vector< SOLUTION >::difference_type >(val2);
25972   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
25973   if (!SWIG_IsOK(ecode3)) {
25974     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SOLUTIONVector___setslice__" "', argument " "3"" of type '" "std::vector< SOLUTION >::difference_type""'");
25975   }
25976   arg3 = static_cast< std::vector< SOLUTION >::difference_type >(val3);
25977   {
25978     std::vector< SOLUTION,std::allocator< SOLUTION > > *ptr = (std::vector< SOLUTION,std::allocator< SOLUTION > > *)0;
25979     res4 = swig::asptr(swig_obj[3], &ptr);
25980     if (!SWIG_IsOK(res4)) {
25981       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SOLUTIONVector___setslice__" "', argument " "4"" of type '" "std::vector< SOLUTION,std::allocator< SOLUTION > > const &""'");
25982     }
25983     if (!ptr) {
25984       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SOLUTIONVector___setslice__" "', argument " "4"" of type '" "std::vector< SOLUTION,std::allocator< SOLUTION > > const &""'");
25985     }
25986     arg4 = ptr;
25987   }
25988   {
25989     try {
25990       try {
25991         std_vector_Sl_SOLUTION_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< SOLUTION,std::allocator< SOLUTION > > const &)*arg4);
25992       } catch(std::out_of_range &_e) {
25993         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
25994       } catch(std::invalid_argument &_e) {
25995         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
25996       }
25997     } catch (const std::exception& e) {
25998       SWIG_exception(SWIG_RuntimeError, e.what());
25999     }
26000   }
26001   resultobj = SWIG_Py_Void();
26002   if (SWIG_IsNewObj(res4)) delete arg4;
26003   return resultobj;
26004 fail:
26005   if (SWIG_IsNewObj(res4)) delete arg4;
26006   return NULL;
26007 }
26008 
26009 
_wrap_SOLUTIONVector___setslice__(PyObject * self,PyObject * args)26010 SWIGINTERN PyObject *_wrap_SOLUTIONVector___setslice__(PyObject *self, PyObject *args) {
26011   Py_ssize_t argc;
26012   PyObject *argv[5] = {
26013     0
26014   };
26015 
26016   if (!(argc = SWIG_Python_UnpackTuple(args, "SOLUTIONVector___setslice__", 0, 4, argv))) SWIG_fail;
26017   --argc;
26018   if (argc == 3) {
26019     int _v;
26020     int res = swig::asptr(argv[0], (std::vector< SOLUTION,std::allocator< SOLUTION > >**)(0));
26021     _v = SWIG_CheckState(res);
26022     if (_v) {
26023       {
26024         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
26025         _v = SWIG_CheckState(res);
26026       }
26027       if (_v) {
26028         {
26029           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
26030           _v = SWIG_CheckState(res);
26031         }
26032         if (_v) {
26033           return _wrap_SOLUTIONVector___setslice____SWIG_0(self, argc, argv);
26034         }
26035       }
26036     }
26037   }
26038   if (argc == 4) {
26039     int _v;
26040     int res = swig::asptr(argv[0], (std::vector< SOLUTION,std::allocator< SOLUTION > >**)(0));
26041     _v = SWIG_CheckState(res);
26042     if (_v) {
26043       {
26044         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
26045         _v = SWIG_CheckState(res);
26046       }
26047       if (_v) {
26048         {
26049           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
26050           _v = SWIG_CheckState(res);
26051         }
26052         if (_v) {
26053           int res = swig::asptr(argv[3], (std::vector< SOLUTION,std::allocator< SOLUTION > >**)(0));
26054           _v = SWIG_CheckState(res);
26055           if (_v) {
26056             return _wrap_SOLUTIONVector___setslice____SWIG_1(self, argc, argv);
26057           }
26058         }
26059       }
26060     }
26061   }
26062 
26063 fail:
26064   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SOLUTIONVector___setslice__'.\n"
26065     "  Possible C/C++ prototypes are:\n"
26066     "    std::vector< SOLUTION >::__setslice__(std::vector< SOLUTION >::difference_type,std::vector< SOLUTION >::difference_type)\n"
26067     "    std::vector< SOLUTION >::__setslice__(std::vector< SOLUTION >::difference_type,std::vector< SOLUTION >::difference_type,std::vector< SOLUTION,std::allocator< SOLUTION > > const &)\n");
26068   return 0;
26069 }
26070 
26071 
_wrap_SOLUTIONVector___delslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)26072 SWIGINTERN PyObject *_wrap_SOLUTIONVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26073   PyObject *resultobj = 0;
26074   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
26075   std::vector< SOLUTION >::difference_type arg2 ;
26076   std::vector< SOLUTION >::difference_type arg3 ;
26077   void *argp1 = 0 ;
26078   int res1 = 0 ;
26079   ptrdiff_t val2 ;
26080   int ecode2 = 0 ;
26081   ptrdiff_t val3 ;
26082   int ecode3 = 0 ;
26083   PyObject * obj0 = 0 ;
26084   PyObject * obj1 = 0 ;
26085   PyObject * obj2 = 0 ;
26086   char * kwnames[] = {
26087     (char *)"self",  (char *)"i",  (char *)"j",  NULL
26088   };
26089 
26090   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:SOLUTIONVector___delslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
26091   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
26092   if (!SWIG_IsOK(res1)) {
26093     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector___delslice__" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
26094   }
26095   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
26096   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
26097   if (!SWIG_IsOK(ecode2)) {
26098     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SOLUTIONVector___delslice__" "', argument " "2"" of type '" "std::vector< SOLUTION >::difference_type""'");
26099   }
26100   arg2 = static_cast< std::vector< SOLUTION >::difference_type >(val2);
26101   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
26102   if (!SWIG_IsOK(ecode3)) {
26103     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SOLUTIONVector___delslice__" "', argument " "3"" of type '" "std::vector< SOLUTION >::difference_type""'");
26104   }
26105   arg3 = static_cast< std::vector< SOLUTION >::difference_type >(val3);
26106   {
26107     try {
26108       try {
26109         std_vector_Sl_SOLUTION_Sg____delslice__(arg1,arg2,arg3);
26110       } catch(std::out_of_range &_e) {
26111         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
26112       } catch(std::invalid_argument &_e) {
26113         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
26114       }
26115     } catch (const std::exception& e) {
26116       SWIG_exception(SWIG_RuntimeError, e.what());
26117     }
26118   }
26119   resultobj = SWIG_Py_Void();
26120   return resultobj;
26121 fail:
26122   return NULL;
26123 }
26124 
26125 
_wrap_SOLUTIONVector___delitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)26126 SWIGINTERN PyObject *_wrap_SOLUTIONVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
26127   PyObject *resultobj = 0;
26128   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
26129   std::vector< SOLUTION >::difference_type arg2 ;
26130   void *argp1 = 0 ;
26131   int res1 = 0 ;
26132   ptrdiff_t val2 ;
26133   int ecode2 = 0 ;
26134 
26135   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26136   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
26137   if (!SWIG_IsOK(res1)) {
26138     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector___delitem__" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
26139   }
26140   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
26141   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
26142   if (!SWIG_IsOK(ecode2)) {
26143     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SOLUTIONVector___delitem__" "', argument " "2"" of type '" "std::vector< SOLUTION >::difference_type""'");
26144   }
26145   arg2 = static_cast< std::vector< SOLUTION >::difference_type >(val2);
26146   {
26147     try {
26148       try {
26149         std_vector_Sl_SOLUTION_Sg____delitem____SWIG_0(arg1,arg2);
26150       } catch(std::out_of_range &_e) {
26151         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
26152       } catch(std::invalid_argument &_e) {
26153         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
26154       }
26155     } catch (const std::exception& e) {
26156       SWIG_exception(SWIG_RuntimeError, e.what());
26157     }
26158   }
26159   resultobj = SWIG_Py_Void();
26160   return resultobj;
26161 fail:
26162   return NULL;
26163 }
26164 
26165 
_wrap_SOLUTIONVector___getitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)26166 SWIGINTERN PyObject *_wrap_SOLUTIONVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
26167   PyObject *resultobj = 0;
26168   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
26169   PySliceObject *arg2 = (PySliceObject *) 0 ;
26170   void *argp1 = 0 ;
26171   int res1 = 0 ;
26172   std::vector< SOLUTION,std::allocator< SOLUTION > > *result = 0 ;
26173 
26174   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26175   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
26176   if (!SWIG_IsOK(res1)) {
26177     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector___getitem__" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
26178   }
26179   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
26180   {
26181     if (!PySlice_Check(swig_obj[1])) {
26182       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SOLUTIONVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
26183     }
26184     arg2 = (PySliceObject *) swig_obj[1];
26185   }
26186   {
26187     try {
26188       try {
26189         result = (std::vector< SOLUTION,std::allocator< SOLUTION > > *)std_vector_Sl_SOLUTION_Sg____getitem____SWIG_0(arg1,arg2);
26190       } catch(std::out_of_range &_e) {
26191         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
26192       } catch(std::invalid_argument &_e) {
26193         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
26194       }
26195     } catch (const std::exception& e) {
26196       SWIG_exception(SWIG_RuntimeError, e.what());
26197     }
26198   }
26199   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, SWIG_POINTER_OWN |  0 );
26200   return resultobj;
26201 fail:
26202   return NULL;
26203 }
26204 
26205 
_wrap_SOLUTIONVector___setitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)26206 SWIGINTERN PyObject *_wrap_SOLUTIONVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
26207   PyObject *resultobj = 0;
26208   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
26209   PySliceObject *arg2 = (PySliceObject *) 0 ;
26210   std::vector< SOLUTION,std::allocator< SOLUTION > > *arg3 = 0 ;
26211   void *argp1 = 0 ;
26212   int res1 = 0 ;
26213   int res3 = SWIG_OLDOBJ ;
26214 
26215   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26216   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
26217   if (!SWIG_IsOK(res1)) {
26218     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector___setitem__" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
26219   }
26220   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
26221   {
26222     if (!PySlice_Check(swig_obj[1])) {
26223       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SOLUTIONVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
26224     }
26225     arg2 = (PySliceObject *) swig_obj[1];
26226   }
26227   {
26228     std::vector< SOLUTION,std::allocator< SOLUTION > > *ptr = (std::vector< SOLUTION,std::allocator< SOLUTION > > *)0;
26229     res3 = swig::asptr(swig_obj[2], &ptr);
26230     if (!SWIG_IsOK(res3)) {
26231       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SOLUTIONVector___setitem__" "', argument " "3"" of type '" "std::vector< SOLUTION,std::allocator< SOLUTION > > const &""'");
26232     }
26233     if (!ptr) {
26234       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SOLUTIONVector___setitem__" "', argument " "3"" of type '" "std::vector< SOLUTION,std::allocator< SOLUTION > > const &""'");
26235     }
26236     arg3 = ptr;
26237   }
26238   {
26239     try {
26240       try {
26241         std_vector_Sl_SOLUTION_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< SOLUTION,std::allocator< SOLUTION > > const &)*arg3);
26242       } catch(std::out_of_range &_e) {
26243         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
26244       } catch(std::invalid_argument &_e) {
26245         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
26246       }
26247     } catch (const std::exception& e) {
26248       SWIG_exception(SWIG_RuntimeError, e.what());
26249     }
26250   }
26251   resultobj = SWIG_Py_Void();
26252   if (SWIG_IsNewObj(res3)) delete arg3;
26253   return resultobj;
26254 fail:
26255   if (SWIG_IsNewObj(res3)) delete arg3;
26256   return NULL;
26257 }
26258 
26259 
_wrap_SOLUTIONVector___setitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)26260 SWIGINTERN PyObject *_wrap_SOLUTIONVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
26261   PyObject *resultobj = 0;
26262   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
26263   PySliceObject *arg2 = (PySliceObject *) 0 ;
26264   void *argp1 = 0 ;
26265   int res1 = 0 ;
26266 
26267   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26268   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
26269   if (!SWIG_IsOK(res1)) {
26270     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector___setitem__" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
26271   }
26272   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
26273   {
26274     if (!PySlice_Check(swig_obj[1])) {
26275       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SOLUTIONVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
26276     }
26277     arg2 = (PySliceObject *) swig_obj[1];
26278   }
26279   {
26280     try {
26281       try {
26282         std_vector_Sl_SOLUTION_Sg____setitem____SWIG_1(arg1,arg2);
26283       } catch(std::out_of_range &_e) {
26284         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
26285       } catch(std::invalid_argument &_e) {
26286         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
26287       }
26288     } catch (const std::exception& e) {
26289       SWIG_exception(SWIG_RuntimeError, e.what());
26290     }
26291   }
26292   resultobj = SWIG_Py_Void();
26293   return resultobj;
26294 fail:
26295   return NULL;
26296 }
26297 
26298 
_wrap_SOLUTIONVector___delitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)26299 SWIGINTERN PyObject *_wrap_SOLUTIONVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
26300   PyObject *resultobj = 0;
26301   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
26302   PySliceObject *arg2 = (PySliceObject *) 0 ;
26303   void *argp1 = 0 ;
26304   int res1 = 0 ;
26305 
26306   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26307   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
26308   if (!SWIG_IsOK(res1)) {
26309     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector___delitem__" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
26310   }
26311   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
26312   {
26313     if (!PySlice_Check(swig_obj[1])) {
26314       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SOLUTIONVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
26315     }
26316     arg2 = (PySliceObject *) swig_obj[1];
26317   }
26318   {
26319     try {
26320       try {
26321         std_vector_Sl_SOLUTION_Sg____delitem____SWIG_1(arg1,arg2);
26322       } catch(std::out_of_range &_e) {
26323         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
26324       } catch(std::invalid_argument &_e) {
26325         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
26326       }
26327     } catch (const std::exception& e) {
26328       SWIG_exception(SWIG_RuntimeError, e.what());
26329     }
26330   }
26331   resultobj = SWIG_Py_Void();
26332   return resultobj;
26333 fail:
26334   return NULL;
26335 }
26336 
26337 
_wrap_SOLUTIONVector___delitem__(PyObject * self,PyObject * args)26338 SWIGINTERN PyObject *_wrap_SOLUTIONVector___delitem__(PyObject *self, PyObject *args) {
26339   Py_ssize_t argc;
26340   PyObject *argv[3] = {
26341     0
26342   };
26343 
26344   if (!(argc = SWIG_Python_UnpackTuple(args, "SOLUTIONVector___delitem__", 0, 2, argv))) SWIG_fail;
26345   --argc;
26346   if (argc == 2) {
26347     int _v;
26348     int res = swig::asptr(argv[0], (std::vector< SOLUTION,std::allocator< SOLUTION > >**)(0));
26349     _v = SWIG_CheckState(res);
26350     if (_v) {
26351       {
26352         _v = PySlice_Check(argv[1]);
26353       }
26354       if (_v) {
26355         return _wrap_SOLUTIONVector___delitem____SWIG_1(self, argc, argv);
26356       }
26357     }
26358   }
26359   if (argc == 2) {
26360     int _v;
26361     int res = swig::asptr(argv[0], (std::vector< SOLUTION,std::allocator< SOLUTION > >**)(0));
26362     _v = SWIG_CheckState(res);
26363     if (_v) {
26364       {
26365         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
26366         _v = SWIG_CheckState(res);
26367       }
26368       if (_v) {
26369         return _wrap_SOLUTIONVector___delitem____SWIG_0(self, argc, argv);
26370       }
26371     }
26372   }
26373 
26374 fail:
26375   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SOLUTIONVector___delitem__'.\n"
26376     "  Possible C/C++ prototypes are:\n"
26377     "    std::vector< SOLUTION >::__delitem__(std::vector< SOLUTION >::difference_type)\n"
26378     "    std::vector< SOLUTION >::__delitem__(PySliceObject *)\n");
26379   return 0;
26380 }
26381 
26382 
_wrap_SOLUTIONVector___getitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)26383 SWIGINTERN PyObject *_wrap_SOLUTIONVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
26384   PyObject *resultobj = 0;
26385   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
26386   std::vector< SOLUTION >::difference_type arg2 ;
26387   void *argp1 = 0 ;
26388   int res1 = 0 ;
26389   ptrdiff_t val2 ;
26390   int ecode2 = 0 ;
26391   std::vector< SOLUTION >::value_type *result = 0 ;
26392 
26393   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26394   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
26395   if (!SWIG_IsOK(res1)) {
26396     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector___getitem__" "', argument " "1"" of type '" "std::vector< SOLUTION > const *""'");
26397   }
26398   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
26399   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
26400   if (!SWIG_IsOK(ecode2)) {
26401     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SOLUTIONVector___getitem__" "', argument " "2"" of type '" "std::vector< SOLUTION >::difference_type""'");
26402   }
26403   arg2 = static_cast< std::vector< SOLUTION >::difference_type >(val2);
26404   {
26405     try {
26406       try {
26407         result = (std::vector< SOLUTION >::value_type *) &std_vector_Sl_SOLUTION_Sg____getitem____SWIG_1((std::vector< SOLUTION > const *)arg1,arg2);
26408       } catch(std::out_of_range &_e) {
26409         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
26410       }
26411     } catch (const std::exception& e) {
26412       SWIG_exception(SWIG_RuntimeError, e.what());
26413     }
26414   }
26415   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SOLUTION, 0 |  0 );
26416   (void)swig::container_owner<swig::traits<std::vector< SOLUTION >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
26417   return resultobj;
26418 fail:
26419   return NULL;
26420 }
26421 
26422 
_wrap_SOLUTIONVector___getitem__(PyObject * self,PyObject * args)26423 SWIGINTERN PyObject *_wrap_SOLUTIONVector___getitem__(PyObject *self, PyObject *args) {
26424   Py_ssize_t argc;
26425   PyObject *argv[3] = {
26426     0
26427   };
26428 
26429   if (!(argc = SWIG_Python_UnpackTuple(args, "SOLUTIONVector___getitem__", 0, 2, argv))) SWIG_fail;
26430   --argc;
26431   if (argc == 2) {
26432     int _v;
26433     int res = swig::asptr(argv[0], (std::vector< SOLUTION,std::allocator< SOLUTION > >**)(0));
26434     _v = SWIG_CheckState(res);
26435     if (_v) {
26436       {
26437         _v = PySlice_Check(argv[1]);
26438       }
26439       if (_v) {
26440         return _wrap_SOLUTIONVector___getitem____SWIG_0(self, argc, argv);
26441       }
26442     }
26443   }
26444   if (argc == 2) {
26445     int _v;
26446     int res = swig::asptr(argv[0], (std::vector< SOLUTION,std::allocator< SOLUTION > >**)(0));
26447     _v = SWIG_CheckState(res);
26448     if (_v) {
26449       {
26450         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
26451         _v = SWIG_CheckState(res);
26452       }
26453       if (_v) {
26454         return _wrap_SOLUTIONVector___getitem____SWIG_1(self, argc, argv);
26455       }
26456     }
26457   }
26458 
26459 fail:
26460   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SOLUTIONVector___getitem__'.\n"
26461     "  Possible C/C++ prototypes are:\n"
26462     "    std::vector< SOLUTION >::__getitem__(PySliceObject *)\n"
26463     "    std::vector< SOLUTION >::__getitem__(std::vector< SOLUTION >::difference_type) const\n");
26464   return 0;
26465 }
26466 
26467 
_wrap_SOLUTIONVector___setitem____SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)26468 SWIGINTERN PyObject *_wrap_SOLUTIONVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
26469   PyObject *resultobj = 0;
26470   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
26471   std::vector< SOLUTION >::difference_type arg2 ;
26472   std::vector< SOLUTION >::value_type *arg3 = 0 ;
26473   void *argp1 = 0 ;
26474   int res1 = 0 ;
26475   ptrdiff_t val2 ;
26476   int ecode2 = 0 ;
26477   void *argp3 = 0 ;
26478   int res3 = 0 ;
26479 
26480   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26481   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
26482   if (!SWIG_IsOK(res1)) {
26483     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector___setitem__" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
26484   }
26485   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
26486   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
26487   if (!SWIG_IsOK(ecode2)) {
26488     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SOLUTIONVector___setitem__" "', argument " "2"" of type '" "std::vector< SOLUTION >::difference_type""'");
26489   }
26490   arg2 = static_cast< std::vector< SOLUTION >::difference_type >(val2);
26491   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_SOLUTION,  0  | 0);
26492   if (!SWIG_IsOK(res3)) {
26493     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SOLUTIONVector___setitem__" "', argument " "3"" of type '" "std::vector< SOLUTION >::value_type const &""'");
26494   }
26495   if (!argp3) {
26496     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SOLUTIONVector___setitem__" "', argument " "3"" of type '" "std::vector< SOLUTION >::value_type const &""'");
26497   }
26498   arg3 = reinterpret_cast< std::vector< SOLUTION >::value_type * >(argp3);
26499   {
26500     try {
26501       try {
26502         std_vector_Sl_SOLUTION_Sg____setitem____SWIG_2(arg1,arg2,(SOLUTION const &)*arg3);
26503       } catch(std::out_of_range &_e) {
26504         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
26505       }
26506     } catch (const std::exception& e) {
26507       SWIG_exception(SWIG_RuntimeError, e.what());
26508     }
26509   }
26510   resultobj = SWIG_Py_Void();
26511   return resultobj;
26512 fail:
26513   return NULL;
26514 }
26515 
26516 
_wrap_SOLUTIONVector___setitem__(PyObject * self,PyObject * args)26517 SWIGINTERN PyObject *_wrap_SOLUTIONVector___setitem__(PyObject *self, PyObject *args) {
26518   Py_ssize_t argc;
26519   PyObject *argv[4] = {
26520     0
26521   };
26522 
26523   if (!(argc = SWIG_Python_UnpackTuple(args, "SOLUTIONVector___setitem__", 0, 3, argv))) SWIG_fail;
26524   --argc;
26525   if (argc == 2) {
26526     int _v;
26527     int res = swig::asptr(argv[0], (std::vector< SOLUTION,std::allocator< SOLUTION > >**)(0));
26528     _v = SWIG_CheckState(res);
26529     if (_v) {
26530       {
26531         _v = PySlice_Check(argv[1]);
26532       }
26533       if (_v) {
26534         return _wrap_SOLUTIONVector___setitem____SWIG_1(self, argc, argv);
26535       }
26536     }
26537   }
26538   if (argc == 3) {
26539     int _v;
26540     int res = swig::asptr(argv[0], (std::vector< SOLUTION,std::allocator< SOLUTION > >**)(0));
26541     _v = SWIG_CheckState(res);
26542     if (_v) {
26543       {
26544         _v = PySlice_Check(argv[1]);
26545       }
26546       if (_v) {
26547         int res = swig::asptr(argv[2], (std::vector< SOLUTION,std::allocator< SOLUTION > >**)(0));
26548         _v = SWIG_CheckState(res);
26549         if (_v) {
26550           return _wrap_SOLUTIONVector___setitem____SWIG_0(self, argc, argv);
26551         }
26552       }
26553     }
26554   }
26555   if (argc == 3) {
26556     int _v;
26557     int res = swig::asptr(argv[0], (std::vector< SOLUTION,std::allocator< SOLUTION > >**)(0));
26558     _v = SWIG_CheckState(res);
26559     if (_v) {
26560       {
26561         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
26562         _v = SWIG_CheckState(res);
26563       }
26564       if (_v) {
26565         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_SOLUTION, SWIG_POINTER_NO_NULL | 0);
26566         _v = SWIG_CheckState(res);
26567         if (_v) {
26568           return _wrap_SOLUTIONVector___setitem____SWIG_2(self, argc, argv);
26569         }
26570       }
26571     }
26572   }
26573 
26574 fail:
26575   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SOLUTIONVector___setitem__'.\n"
26576     "  Possible C/C++ prototypes are:\n"
26577     "    std::vector< SOLUTION >::__setitem__(PySliceObject *,std::vector< SOLUTION,std::allocator< SOLUTION > > const &)\n"
26578     "    std::vector< SOLUTION >::__setitem__(PySliceObject *)\n"
26579     "    std::vector< SOLUTION >::__setitem__(std::vector< SOLUTION >::difference_type,std::vector< SOLUTION >::value_type const &)\n");
26580   return 0;
26581 }
26582 
26583 
_wrap_SOLUTIONVector_pop(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26584 SWIGINTERN PyObject *_wrap_SOLUTIONVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26585   PyObject *resultobj = 0;
26586   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
26587   void *argp1 = 0 ;
26588   int res1 = 0 ;
26589   PyObject *swig_obj[1] ;
26590   std::vector< SOLUTION >::value_type result;
26591 
26592   if (!args) SWIG_fail;
26593   swig_obj[0] = args;
26594   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
26595   if (!SWIG_IsOK(res1)) {
26596     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_pop" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
26597   }
26598   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
26599   {
26600     try {
26601       try {
26602         result = std_vector_Sl_SOLUTION_Sg__pop(arg1);
26603       } catch(std::out_of_range &_e) {
26604         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
26605       }
26606     } catch (const std::exception& e) {
26607       SWIG_exception(SWIG_RuntimeError, e.what());
26608     }
26609   }
26610   resultobj = SWIG_NewPointerObj((new std::vector< SOLUTION >::value_type(static_cast< const std::vector< SOLUTION >::value_type& >(result))), SWIGTYPE_p_SOLUTION, SWIG_POINTER_OWN |  0 );
26611   return resultobj;
26612 fail:
26613   return NULL;
26614 }
26615 
26616 
_wrap_SOLUTIONVector_append(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)26617 SWIGINTERN PyObject *_wrap_SOLUTIONVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26618   PyObject *resultobj = 0;
26619   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
26620   std::vector< SOLUTION >::value_type *arg2 = 0 ;
26621   void *argp1 = 0 ;
26622   int res1 = 0 ;
26623   void *argp2 = 0 ;
26624   int res2 = 0 ;
26625   PyObject * obj0 = 0 ;
26626   PyObject * obj1 = 0 ;
26627   char * kwnames[] = {
26628     (char *)"self",  (char *)"x",  NULL
26629   };
26630 
26631   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:SOLUTIONVector_append", kwnames, &obj0, &obj1)) SWIG_fail;
26632   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
26633   if (!SWIG_IsOK(res1)) {
26634     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_append" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
26635   }
26636   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
26637   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SOLUTION,  0  | 0);
26638   if (!SWIG_IsOK(res2)) {
26639     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SOLUTIONVector_append" "', argument " "2"" of type '" "std::vector< SOLUTION >::value_type const &""'");
26640   }
26641   if (!argp2) {
26642     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SOLUTIONVector_append" "', argument " "2"" of type '" "std::vector< SOLUTION >::value_type const &""'");
26643   }
26644   arg2 = reinterpret_cast< std::vector< SOLUTION >::value_type * >(argp2);
26645   {
26646     try {
26647       std_vector_Sl_SOLUTION_Sg__append(arg1,(SOLUTION const &)*arg2);
26648     } catch (const std::exception& e) {
26649       SWIG_exception(SWIG_RuntimeError, e.what());
26650     }
26651   }
26652   resultobj = SWIG_Py_Void();
26653   return resultobj;
26654 fail:
26655   return NULL;
26656 }
26657 
26658 
_wrap_new_SOLUTIONVector__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))26659 SWIGINTERN PyObject *_wrap_new_SOLUTIONVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
26660   PyObject *resultobj = 0;
26661   std::vector< SOLUTION > *result = 0 ;
26662 
26663   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
26664   {
26665     try {
26666       result = (std::vector< SOLUTION > *)new std::vector< SOLUTION >();
26667     } catch (const std::exception& e) {
26668       SWIG_exception(SWIG_RuntimeError, e.what());
26669     }
26670   }
26671   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, SWIG_POINTER_NEW |  0 );
26672   return resultobj;
26673 fail:
26674   return NULL;
26675 }
26676 
26677 
_wrap_new_SOLUTIONVector__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)26678 SWIGINTERN PyObject *_wrap_new_SOLUTIONVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
26679   PyObject *resultobj = 0;
26680   std::vector< SOLUTION > *arg1 = 0 ;
26681   int res1 = SWIG_OLDOBJ ;
26682   std::vector< SOLUTION > *result = 0 ;
26683 
26684   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
26685   {
26686     std::vector< SOLUTION,std::allocator< SOLUTION > > *ptr = (std::vector< SOLUTION,std::allocator< SOLUTION > > *)0;
26687     res1 = swig::asptr(swig_obj[0], &ptr);
26688     if (!SWIG_IsOK(res1)) {
26689       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SOLUTIONVector" "', argument " "1"" of type '" "std::vector< SOLUTION > const &""'");
26690     }
26691     if (!ptr) {
26692       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SOLUTIONVector" "', argument " "1"" of type '" "std::vector< SOLUTION > const &""'");
26693     }
26694     arg1 = ptr;
26695   }
26696   {
26697     try {
26698       result = (std::vector< SOLUTION > *)new std::vector< SOLUTION >((std::vector< SOLUTION > const &)*arg1);
26699     } catch (const std::exception& e) {
26700       SWIG_exception(SWIG_RuntimeError, e.what());
26701     }
26702   }
26703   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, SWIG_POINTER_NEW |  0 );
26704   if (SWIG_IsNewObj(res1)) delete arg1;
26705   return resultobj;
26706 fail:
26707   if (SWIG_IsNewObj(res1)) delete arg1;
26708   return NULL;
26709 }
26710 
26711 
_wrap_SOLUTIONVector_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26712 SWIGINTERN PyObject *_wrap_SOLUTIONVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26713   PyObject *resultobj = 0;
26714   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
26715   void *argp1 = 0 ;
26716   int res1 = 0 ;
26717   PyObject *swig_obj[1] ;
26718   bool result;
26719 
26720   if (!args) SWIG_fail;
26721   swig_obj[0] = args;
26722   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
26723   if (!SWIG_IsOK(res1)) {
26724     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_empty" "', argument " "1"" of type '" "std::vector< SOLUTION > const *""'");
26725   }
26726   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
26727   {
26728     try {
26729       result = (bool)((std::vector< SOLUTION > const *)arg1)->empty();
26730     } catch (const std::exception& e) {
26731       SWIG_exception(SWIG_RuntimeError, e.what());
26732     }
26733   }
26734   resultobj = SWIG_From_bool(static_cast< bool >(result));
26735   return resultobj;
26736 fail:
26737   return NULL;
26738 }
26739 
26740 
_wrap_SOLUTIONVector_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26741 SWIGINTERN PyObject *_wrap_SOLUTIONVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26742   PyObject *resultobj = 0;
26743   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
26744   void *argp1 = 0 ;
26745   int res1 = 0 ;
26746   PyObject *swig_obj[1] ;
26747   std::vector< SOLUTION >::size_type result;
26748 
26749   if (!args) SWIG_fail;
26750   swig_obj[0] = args;
26751   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
26752   if (!SWIG_IsOK(res1)) {
26753     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_size" "', argument " "1"" of type '" "std::vector< SOLUTION > const *""'");
26754   }
26755   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
26756   {
26757     try {
26758       result = ((std::vector< SOLUTION > const *)arg1)->size();
26759     } catch (const std::exception& e) {
26760       SWIG_exception(SWIG_RuntimeError, e.what());
26761     }
26762   }
26763   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
26764   return resultobj;
26765 fail:
26766   return NULL;
26767 }
26768 
26769 
_wrap_SOLUTIONVector_swap(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)26770 SWIGINTERN PyObject *_wrap_SOLUTIONVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26771   PyObject *resultobj = 0;
26772   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
26773   std::vector< SOLUTION > *arg2 = 0 ;
26774   void *argp1 = 0 ;
26775   int res1 = 0 ;
26776   void *argp2 = 0 ;
26777   int res2 = 0 ;
26778   PyObject * obj0 = 0 ;
26779   PyObject * obj1 = 0 ;
26780   char * kwnames[] = {
26781     (char *)"self",  (char *)"v",  NULL
26782   };
26783 
26784   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:SOLUTIONVector_swap", kwnames, &obj0, &obj1)) SWIG_fail;
26785   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
26786   if (!SWIG_IsOK(res1)) {
26787     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_swap" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
26788   }
26789   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
26790   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t,  0 );
26791   if (!SWIG_IsOK(res2)) {
26792     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SOLUTIONVector_swap" "', argument " "2"" of type '" "std::vector< SOLUTION > &""'");
26793   }
26794   if (!argp2) {
26795     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SOLUTIONVector_swap" "', argument " "2"" of type '" "std::vector< SOLUTION > &""'");
26796   }
26797   arg2 = reinterpret_cast< std::vector< SOLUTION > * >(argp2);
26798   {
26799     try {
26800       (arg1)->swap(*arg2);
26801     } catch (const std::exception& e) {
26802       SWIG_exception(SWIG_RuntimeError, e.what());
26803     }
26804   }
26805   resultobj = SWIG_Py_Void();
26806   return resultobj;
26807 fail:
26808   return NULL;
26809 }
26810 
26811 
_wrap_SOLUTIONVector_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26812 SWIGINTERN PyObject *_wrap_SOLUTIONVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26813   PyObject *resultobj = 0;
26814   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
26815   void *argp1 = 0 ;
26816   int res1 = 0 ;
26817   PyObject *swig_obj[1] ;
26818   std::vector< SOLUTION >::iterator result;
26819 
26820   if (!args) SWIG_fail;
26821   swig_obj[0] = args;
26822   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
26823   if (!SWIG_IsOK(res1)) {
26824     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_begin" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
26825   }
26826   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
26827   {
26828     try {
26829       result = (arg1)->begin();
26830     } catch (const std::exception& e) {
26831       SWIG_exception(SWIG_RuntimeError, e.what());
26832     }
26833   }
26834   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< SOLUTION >::iterator & >(result)),
26835     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
26836   return resultobj;
26837 fail:
26838   return NULL;
26839 }
26840 
26841 
_wrap_SOLUTIONVector_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26842 SWIGINTERN PyObject *_wrap_SOLUTIONVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26843   PyObject *resultobj = 0;
26844   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
26845   void *argp1 = 0 ;
26846   int res1 = 0 ;
26847   PyObject *swig_obj[1] ;
26848   std::vector< SOLUTION >::iterator result;
26849 
26850   if (!args) SWIG_fail;
26851   swig_obj[0] = args;
26852   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
26853   if (!SWIG_IsOK(res1)) {
26854     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_end" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
26855   }
26856   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
26857   {
26858     try {
26859       result = (arg1)->end();
26860     } catch (const std::exception& e) {
26861       SWIG_exception(SWIG_RuntimeError, e.what());
26862     }
26863   }
26864   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< SOLUTION >::iterator & >(result)),
26865     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
26866   return resultobj;
26867 fail:
26868   return NULL;
26869 }
26870 
26871 
_wrap_SOLUTIONVector_rbegin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26872 SWIGINTERN PyObject *_wrap_SOLUTIONVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26873   PyObject *resultobj = 0;
26874   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
26875   void *argp1 = 0 ;
26876   int res1 = 0 ;
26877   PyObject *swig_obj[1] ;
26878   std::vector< SOLUTION >::reverse_iterator result;
26879 
26880   if (!args) SWIG_fail;
26881   swig_obj[0] = args;
26882   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
26883   if (!SWIG_IsOK(res1)) {
26884     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_rbegin" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
26885   }
26886   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
26887   {
26888     try {
26889       result = (arg1)->rbegin();
26890     } catch (const std::exception& e) {
26891       SWIG_exception(SWIG_RuntimeError, e.what());
26892     }
26893   }
26894   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< SOLUTION >::reverse_iterator & >(result)),
26895     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
26896   return resultobj;
26897 fail:
26898   return NULL;
26899 }
26900 
26901 
_wrap_SOLUTIONVector_rend(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26902 SWIGINTERN PyObject *_wrap_SOLUTIONVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26903   PyObject *resultobj = 0;
26904   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
26905   void *argp1 = 0 ;
26906   int res1 = 0 ;
26907   PyObject *swig_obj[1] ;
26908   std::vector< SOLUTION >::reverse_iterator result;
26909 
26910   if (!args) SWIG_fail;
26911   swig_obj[0] = args;
26912   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
26913   if (!SWIG_IsOK(res1)) {
26914     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_rend" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
26915   }
26916   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
26917   {
26918     try {
26919       result = (arg1)->rend();
26920     } catch (const std::exception& e) {
26921       SWIG_exception(SWIG_RuntimeError, e.what());
26922     }
26923   }
26924   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< SOLUTION >::reverse_iterator & >(result)),
26925     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
26926   return resultobj;
26927 fail:
26928   return NULL;
26929 }
26930 
26931 
_wrap_SOLUTIONVector_clear(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26932 SWIGINTERN PyObject *_wrap_SOLUTIONVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26933   PyObject *resultobj = 0;
26934   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
26935   void *argp1 = 0 ;
26936   int res1 = 0 ;
26937   PyObject *swig_obj[1] ;
26938 
26939   if (!args) SWIG_fail;
26940   swig_obj[0] = args;
26941   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
26942   if (!SWIG_IsOK(res1)) {
26943     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_clear" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
26944   }
26945   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
26946   {
26947     try {
26948       (arg1)->clear();
26949     } catch (const std::exception& e) {
26950       SWIG_exception(SWIG_RuntimeError, e.what());
26951     }
26952   }
26953   resultobj = SWIG_Py_Void();
26954   return resultobj;
26955 fail:
26956   return NULL;
26957 }
26958 
26959 
_wrap_SOLUTIONVector_get_allocator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26960 SWIGINTERN PyObject *_wrap_SOLUTIONVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26961   PyObject *resultobj = 0;
26962   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
26963   void *argp1 = 0 ;
26964   int res1 = 0 ;
26965   PyObject *swig_obj[1] ;
26966   SwigValueWrapper< std::allocator< SOLUTION > > result;
26967 
26968   if (!args) SWIG_fail;
26969   swig_obj[0] = args;
26970   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
26971   if (!SWIG_IsOK(res1)) {
26972     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_get_allocator" "', argument " "1"" of type '" "std::vector< SOLUTION > const *""'");
26973   }
26974   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
26975   {
26976     try {
26977       result = ((std::vector< SOLUTION > const *)arg1)->get_allocator();
26978     } catch (const std::exception& e) {
26979       SWIG_exception(SWIG_RuntimeError, e.what());
26980     }
26981   }
26982   resultobj = SWIG_NewPointerObj((new std::vector< SOLUTION >::allocator_type(static_cast< const std::vector< SOLUTION >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_SOLUTION_t, SWIG_POINTER_OWN |  0 );
26983   return resultobj;
26984 fail:
26985   return NULL;
26986 }
26987 
26988 
_wrap_new_SOLUTIONVector__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)26989 SWIGINTERN PyObject *_wrap_new_SOLUTIONVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
26990   PyObject *resultobj = 0;
26991   std::vector< SOLUTION >::size_type arg1 ;
26992   size_t val1 ;
26993   int ecode1 = 0 ;
26994   std::vector< SOLUTION > *result = 0 ;
26995 
26996   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
26997   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
26998   if (!SWIG_IsOK(ecode1)) {
26999     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SOLUTIONVector" "', argument " "1"" of type '" "std::vector< SOLUTION >::size_type""'");
27000   }
27001   arg1 = static_cast< std::vector< SOLUTION >::size_type >(val1);
27002   {
27003     try {
27004       result = (std::vector< SOLUTION > *)new std::vector< SOLUTION >(arg1);
27005     } catch (const std::exception& e) {
27006       SWIG_exception(SWIG_RuntimeError, e.what());
27007     }
27008   }
27009   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, SWIG_POINTER_NEW |  0 );
27010   return resultobj;
27011 fail:
27012   return NULL;
27013 }
27014 
27015 
_wrap_SOLUTIONVector_pop_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27016 SWIGINTERN PyObject *_wrap_SOLUTIONVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27017   PyObject *resultobj = 0;
27018   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
27019   void *argp1 = 0 ;
27020   int res1 = 0 ;
27021   PyObject *swig_obj[1] ;
27022 
27023   if (!args) SWIG_fail;
27024   swig_obj[0] = args;
27025   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
27026   if (!SWIG_IsOK(res1)) {
27027     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_pop_back" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
27028   }
27029   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
27030   {
27031     try {
27032       (arg1)->pop_back();
27033     } catch (const std::exception& e) {
27034       SWIG_exception(SWIG_RuntimeError, e.what());
27035     }
27036   }
27037   resultobj = SWIG_Py_Void();
27038   return resultobj;
27039 fail:
27040   return NULL;
27041 }
27042 
27043 
_wrap_SOLUTIONVector_resize__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)27044 SWIGINTERN PyObject *_wrap_SOLUTIONVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
27045   PyObject *resultobj = 0;
27046   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
27047   std::vector< SOLUTION >::size_type arg2 ;
27048   void *argp1 = 0 ;
27049   int res1 = 0 ;
27050   size_t val2 ;
27051   int ecode2 = 0 ;
27052 
27053   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27054   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
27055   if (!SWIG_IsOK(res1)) {
27056     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_resize" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
27057   }
27058   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
27059   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
27060   if (!SWIG_IsOK(ecode2)) {
27061     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SOLUTIONVector_resize" "', argument " "2"" of type '" "std::vector< SOLUTION >::size_type""'");
27062   }
27063   arg2 = static_cast< std::vector< SOLUTION >::size_type >(val2);
27064   {
27065     try {
27066       (arg1)->resize(arg2);
27067     } catch (const std::exception& e) {
27068       SWIG_exception(SWIG_RuntimeError, e.what());
27069     }
27070   }
27071   resultobj = SWIG_Py_Void();
27072   return resultobj;
27073 fail:
27074   return NULL;
27075 }
27076 
27077 
_wrap_SOLUTIONVector_erase__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)27078 SWIGINTERN PyObject *_wrap_SOLUTIONVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
27079   PyObject *resultobj = 0;
27080   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
27081   std::vector< SOLUTION >::iterator arg2 ;
27082   void *argp1 = 0 ;
27083   int res1 = 0 ;
27084   swig::SwigPyIterator *iter2 = 0 ;
27085   int res2 ;
27086   std::vector< SOLUTION >::iterator result;
27087 
27088   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27089   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
27090   if (!SWIG_IsOK(res1)) {
27091     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_erase" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
27092   }
27093   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
27094   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
27095   if (!SWIG_IsOK(res2) || !iter2) {
27096     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SOLUTIONVector_erase" "', argument " "2"" of type '" "std::vector< SOLUTION >::iterator""'");
27097   } else {
27098     swig::SwigPyIterator_T<std::vector< SOLUTION >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< SOLUTION >::iterator > *>(iter2);
27099     if (iter_t) {
27100       arg2 = iter_t->get_current();
27101     } else {
27102       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SOLUTIONVector_erase" "', argument " "2"" of type '" "std::vector< SOLUTION >::iterator""'");
27103     }
27104   }
27105   {
27106     try {
27107       result = std_vector_Sl_SOLUTION_Sg__erase__SWIG_0(arg1,arg2);
27108     } catch (const std::exception& e) {
27109       SWIG_exception(SWIG_RuntimeError, e.what());
27110     }
27111   }
27112   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< SOLUTION >::iterator & >(result)),
27113     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
27114   return resultobj;
27115 fail:
27116   return NULL;
27117 }
27118 
27119 
_wrap_SOLUTIONVector_erase__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)27120 SWIGINTERN PyObject *_wrap_SOLUTIONVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
27121   PyObject *resultobj = 0;
27122   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
27123   std::vector< SOLUTION >::iterator arg2 ;
27124   std::vector< SOLUTION >::iterator arg3 ;
27125   void *argp1 = 0 ;
27126   int res1 = 0 ;
27127   swig::SwigPyIterator *iter2 = 0 ;
27128   int res2 ;
27129   swig::SwigPyIterator *iter3 = 0 ;
27130   int res3 ;
27131   std::vector< SOLUTION >::iterator result;
27132 
27133   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27134   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
27135   if (!SWIG_IsOK(res1)) {
27136     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_erase" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
27137   }
27138   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
27139   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
27140   if (!SWIG_IsOK(res2) || !iter2) {
27141     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SOLUTIONVector_erase" "', argument " "2"" of type '" "std::vector< SOLUTION >::iterator""'");
27142   } else {
27143     swig::SwigPyIterator_T<std::vector< SOLUTION >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< SOLUTION >::iterator > *>(iter2);
27144     if (iter_t) {
27145       arg2 = iter_t->get_current();
27146     } else {
27147       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SOLUTIONVector_erase" "', argument " "2"" of type '" "std::vector< SOLUTION >::iterator""'");
27148     }
27149   }
27150   res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
27151   if (!SWIG_IsOK(res3) || !iter3) {
27152     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SOLUTIONVector_erase" "', argument " "3"" of type '" "std::vector< SOLUTION >::iterator""'");
27153   } else {
27154     swig::SwigPyIterator_T<std::vector< SOLUTION >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< SOLUTION >::iterator > *>(iter3);
27155     if (iter_t) {
27156       arg3 = iter_t->get_current();
27157     } else {
27158       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SOLUTIONVector_erase" "', argument " "3"" of type '" "std::vector< SOLUTION >::iterator""'");
27159     }
27160   }
27161   {
27162     try {
27163       result = std_vector_Sl_SOLUTION_Sg__erase__SWIG_1(arg1,arg2,arg3);
27164     } catch (const std::exception& e) {
27165       SWIG_exception(SWIG_RuntimeError, e.what());
27166     }
27167   }
27168   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< SOLUTION >::iterator & >(result)),
27169     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
27170   return resultobj;
27171 fail:
27172   return NULL;
27173 }
27174 
27175 
_wrap_SOLUTIONVector_erase(PyObject * self,PyObject * args)27176 SWIGINTERN PyObject *_wrap_SOLUTIONVector_erase(PyObject *self, PyObject *args) {
27177   Py_ssize_t argc;
27178   PyObject *argv[4] = {
27179     0
27180   };
27181 
27182   if (!(argc = SWIG_Python_UnpackTuple(args, "SOLUTIONVector_erase", 0, 3, argv))) SWIG_fail;
27183   --argc;
27184   if (argc == 2) {
27185     int _v;
27186     int res = swig::asptr(argv[0], (std::vector< SOLUTION,std::allocator< SOLUTION > >**)(0));
27187     _v = SWIG_CheckState(res);
27188     if (_v) {
27189       swig::SwigPyIterator *iter = 0;
27190       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
27191       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< SOLUTION >::iterator > *>(iter) != 0));
27192       if (_v) {
27193         return _wrap_SOLUTIONVector_erase__SWIG_0(self, argc, argv);
27194       }
27195     }
27196   }
27197   if (argc == 3) {
27198     int _v;
27199     int res = swig::asptr(argv[0], (std::vector< SOLUTION,std::allocator< SOLUTION > >**)(0));
27200     _v = SWIG_CheckState(res);
27201     if (_v) {
27202       swig::SwigPyIterator *iter = 0;
27203       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
27204       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< SOLUTION >::iterator > *>(iter) != 0));
27205       if (_v) {
27206         swig::SwigPyIterator *iter = 0;
27207         int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
27208         _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< SOLUTION >::iterator > *>(iter) != 0));
27209         if (_v) {
27210           return _wrap_SOLUTIONVector_erase__SWIG_1(self, argc, argv);
27211         }
27212       }
27213     }
27214   }
27215 
27216 fail:
27217   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SOLUTIONVector_erase'.\n"
27218     "  Possible C/C++ prototypes are:\n"
27219     "    std::vector< SOLUTION >::erase(std::vector< SOLUTION >::iterator)\n"
27220     "    std::vector< SOLUTION >::erase(std::vector< SOLUTION >::iterator,std::vector< SOLUTION >::iterator)\n");
27221   return 0;
27222 }
27223 
27224 
_wrap_new_SOLUTIONVector__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)27225 SWIGINTERN PyObject *_wrap_new_SOLUTIONVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
27226   PyObject *resultobj = 0;
27227   std::vector< SOLUTION >::size_type arg1 ;
27228   std::vector< SOLUTION >::value_type *arg2 = 0 ;
27229   size_t val1 ;
27230   int ecode1 = 0 ;
27231   void *argp2 = 0 ;
27232   int res2 = 0 ;
27233   std::vector< SOLUTION > *result = 0 ;
27234 
27235   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27236   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
27237   if (!SWIG_IsOK(ecode1)) {
27238     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SOLUTIONVector" "', argument " "1"" of type '" "std::vector< SOLUTION >::size_type""'");
27239   }
27240   arg1 = static_cast< std::vector< SOLUTION >::size_type >(val1);
27241   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_SOLUTION,  0  | 0);
27242   if (!SWIG_IsOK(res2)) {
27243     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SOLUTIONVector" "', argument " "2"" of type '" "std::vector< SOLUTION >::value_type const &""'");
27244   }
27245   if (!argp2) {
27246     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SOLUTIONVector" "', argument " "2"" of type '" "std::vector< SOLUTION >::value_type const &""'");
27247   }
27248   arg2 = reinterpret_cast< std::vector< SOLUTION >::value_type * >(argp2);
27249   {
27250     try {
27251       result = (std::vector< SOLUTION > *)new std::vector< SOLUTION >(arg1,(std::vector< SOLUTION >::value_type const &)*arg2);
27252     } catch (const std::exception& e) {
27253       SWIG_exception(SWIG_RuntimeError, e.what());
27254     }
27255   }
27256   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, SWIG_POINTER_NEW |  0 );
27257   return resultobj;
27258 fail:
27259   return NULL;
27260 }
27261 
27262 
_wrap_new_SOLUTIONVector(PyObject * self,PyObject * args)27263 SWIGINTERN PyObject *_wrap_new_SOLUTIONVector(PyObject *self, PyObject *args) {
27264   Py_ssize_t argc;
27265   PyObject *argv[3] = {
27266     0
27267   };
27268 
27269   if (!(argc = SWIG_Python_UnpackTuple(args, "new_SOLUTIONVector", 0, 2, argv))) SWIG_fail;
27270   --argc;
27271   if (argc == 0) {
27272     return _wrap_new_SOLUTIONVector__SWIG_0(self, argc, argv);
27273   }
27274   if (argc == 1) {
27275     int _v;
27276     {
27277       int res = SWIG_AsVal_size_t(argv[0], NULL);
27278       _v = SWIG_CheckState(res);
27279     }
27280     if (_v) {
27281       return _wrap_new_SOLUTIONVector__SWIG_2(self, argc, argv);
27282     }
27283   }
27284   if (argc == 1) {
27285     int _v;
27286     int res = swig::asptr(argv[0], (std::vector< SOLUTION,std::allocator< SOLUTION > >**)(0));
27287     _v = SWIG_CheckState(res);
27288     if (_v) {
27289       return _wrap_new_SOLUTIONVector__SWIG_1(self, argc, argv);
27290     }
27291   }
27292   if (argc == 2) {
27293     int _v;
27294     {
27295       int res = SWIG_AsVal_size_t(argv[0], NULL);
27296       _v = SWIG_CheckState(res);
27297     }
27298     if (_v) {
27299       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SOLUTION, SWIG_POINTER_NO_NULL | 0);
27300       _v = SWIG_CheckState(res);
27301       if (_v) {
27302         return _wrap_new_SOLUTIONVector__SWIG_3(self, argc, argv);
27303       }
27304     }
27305   }
27306 
27307 fail:
27308   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_SOLUTIONVector'.\n"
27309     "  Possible C/C++ prototypes are:\n"
27310     "    std::vector< SOLUTION >::vector()\n"
27311     "    std::vector< SOLUTION >::vector(std::vector< SOLUTION > const &)\n"
27312     "    std::vector< SOLUTION >::vector(std::vector< SOLUTION >::size_type)\n"
27313     "    std::vector< SOLUTION >::vector(std::vector< SOLUTION >::size_type,std::vector< SOLUTION >::value_type const &)\n");
27314   return 0;
27315 }
27316 
27317 
_wrap_SOLUTIONVector_push_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)27318 SWIGINTERN PyObject *_wrap_SOLUTIONVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27319   PyObject *resultobj = 0;
27320   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
27321   std::vector< SOLUTION >::value_type *arg2 = 0 ;
27322   void *argp1 = 0 ;
27323   int res1 = 0 ;
27324   void *argp2 = 0 ;
27325   int res2 = 0 ;
27326   PyObject * obj0 = 0 ;
27327   PyObject * obj1 = 0 ;
27328   char * kwnames[] = {
27329     (char *)"self",  (char *)"x",  NULL
27330   };
27331 
27332   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:SOLUTIONVector_push_back", kwnames, &obj0, &obj1)) SWIG_fail;
27333   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
27334   if (!SWIG_IsOK(res1)) {
27335     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_push_back" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
27336   }
27337   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
27338   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SOLUTION,  0  | 0);
27339   if (!SWIG_IsOK(res2)) {
27340     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SOLUTIONVector_push_back" "', argument " "2"" of type '" "std::vector< SOLUTION >::value_type const &""'");
27341   }
27342   if (!argp2) {
27343     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SOLUTIONVector_push_back" "', argument " "2"" of type '" "std::vector< SOLUTION >::value_type const &""'");
27344   }
27345   arg2 = reinterpret_cast< std::vector< SOLUTION >::value_type * >(argp2);
27346   {
27347     try {
27348       (arg1)->push_back((std::vector< SOLUTION >::value_type const &)*arg2);
27349     } catch (const std::exception& e) {
27350       SWIG_exception(SWIG_RuntimeError, e.what());
27351     }
27352   }
27353   resultobj = SWIG_Py_Void();
27354   return resultobj;
27355 fail:
27356   return NULL;
27357 }
27358 
27359 
_wrap_SOLUTIONVector_front(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27360 SWIGINTERN PyObject *_wrap_SOLUTIONVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27361   PyObject *resultobj = 0;
27362   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
27363   void *argp1 = 0 ;
27364   int res1 = 0 ;
27365   PyObject *swig_obj[1] ;
27366   std::vector< SOLUTION >::value_type *result = 0 ;
27367 
27368   if (!args) SWIG_fail;
27369   swig_obj[0] = args;
27370   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
27371   if (!SWIG_IsOK(res1)) {
27372     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_front" "', argument " "1"" of type '" "std::vector< SOLUTION > const *""'");
27373   }
27374   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
27375   {
27376     try {
27377       result = (std::vector< SOLUTION >::value_type *) &((std::vector< SOLUTION > const *)arg1)->front();
27378     } catch (const std::exception& e) {
27379       SWIG_exception(SWIG_RuntimeError, e.what());
27380     }
27381   }
27382   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SOLUTION, 0 |  0 );
27383   (void)swig::container_owner<swig::traits<std::vector< SOLUTION >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
27384   return resultobj;
27385 fail:
27386   return NULL;
27387 }
27388 
27389 
_wrap_SOLUTIONVector_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27390 SWIGINTERN PyObject *_wrap_SOLUTIONVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27391   PyObject *resultobj = 0;
27392   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
27393   void *argp1 = 0 ;
27394   int res1 = 0 ;
27395   PyObject *swig_obj[1] ;
27396   std::vector< SOLUTION >::value_type *result = 0 ;
27397 
27398   if (!args) SWIG_fail;
27399   swig_obj[0] = args;
27400   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
27401   if (!SWIG_IsOK(res1)) {
27402     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_back" "', argument " "1"" of type '" "std::vector< SOLUTION > const *""'");
27403   }
27404   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
27405   {
27406     try {
27407       result = (std::vector< SOLUTION >::value_type *) &((std::vector< SOLUTION > const *)arg1)->back();
27408     } catch (const std::exception& e) {
27409       SWIG_exception(SWIG_RuntimeError, e.what());
27410     }
27411   }
27412   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SOLUTION, 0 |  0 );
27413   (void)swig::container_owner<swig::traits<std::vector< SOLUTION >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
27414   return resultobj;
27415 fail:
27416   return NULL;
27417 }
27418 
27419 
_wrap_SOLUTIONVector_assign(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)27420 SWIGINTERN PyObject *_wrap_SOLUTIONVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27421   PyObject *resultobj = 0;
27422   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
27423   std::vector< SOLUTION >::size_type arg2 ;
27424   std::vector< SOLUTION >::value_type *arg3 = 0 ;
27425   void *argp1 = 0 ;
27426   int res1 = 0 ;
27427   size_t val2 ;
27428   int ecode2 = 0 ;
27429   void *argp3 = 0 ;
27430   int res3 = 0 ;
27431   PyObject * obj0 = 0 ;
27432   PyObject * obj1 = 0 ;
27433   PyObject * obj2 = 0 ;
27434   char * kwnames[] = {
27435     (char *)"self",  (char *)"n",  (char *)"x",  NULL
27436   };
27437 
27438   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:SOLUTIONVector_assign", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
27439   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
27440   if (!SWIG_IsOK(res1)) {
27441     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_assign" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
27442   }
27443   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
27444   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
27445   if (!SWIG_IsOK(ecode2)) {
27446     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SOLUTIONVector_assign" "', argument " "2"" of type '" "std::vector< SOLUTION >::size_type""'");
27447   }
27448   arg2 = static_cast< std::vector< SOLUTION >::size_type >(val2);
27449   res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_SOLUTION,  0  | 0);
27450   if (!SWIG_IsOK(res3)) {
27451     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SOLUTIONVector_assign" "', argument " "3"" of type '" "std::vector< SOLUTION >::value_type const &""'");
27452   }
27453   if (!argp3) {
27454     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SOLUTIONVector_assign" "', argument " "3"" of type '" "std::vector< SOLUTION >::value_type const &""'");
27455   }
27456   arg3 = reinterpret_cast< std::vector< SOLUTION >::value_type * >(argp3);
27457   {
27458     try {
27459       (arg1)->assign(arg2,(std::vector< SOLUTION >::value_type const &)*arg3);
27460     } catch (const std::exception& e) {
27461       SWIG_exception(SWIG_RuntimeError, e.what());
27462     }
27463   }
27464   resultobj = SWIG_Py_Void();
27465   return resultobj;
27466 fail:
27467   return NULL;
27468 }
27469 
27470 
_wrap_SOLUTIONVector_resize__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)27471 SWIGINTERN PyObject *_wrap_SOLUTIONVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
27472   PyObject *resultobj = 0;
27473   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
27474   std::vector< SOLUTION >::size_type arg2 ;
27475   std::vector< SOLUTION >::value_type *arg3 = 0 ;
27476   void *argp1 = 0 ;
27477   int res1 = 0 ;
27478   size_t val2 ;
27479   int ecode2 = 0 ;
27480   void *argp3 = 0 ;
27481   int res3 = 0 ;
27482 
27483   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27484   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
27485   if (!SWIG_IsOK(res1)) {
27486     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_resize" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
27487   }
27488   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
27489   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
27490   if (!SWIG_IsOK(ecode2)) {
27491     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SOLUTIONVector_resize" "', argument " "2"" of type '" "std::vector< SOLUTION >::size_type""'");
27492   }
27493   arg2 = static_cast< std::vector< SOLUTION >::size_type >(val2);
27494   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_SOLUTION,  0  | 0);
27495   if (!SWIG_IsOK(res3)) {
27496     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SOLUTIONVector_resize" "', argument " "3"" of type '" "std::vector< SOLUTION >::value_type const &""'");
27497   }
27498   if (!argp3) {
27499     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SOLUTIONVector_resize" "', argument " "3"" of type '" "std::vector< SOLUTION >::value_type const &""'");
27500   }
27501   arg3 = reinterpret_cast< std::vector< SOLUTION >::value_type * >(argp3);
27502   {
27503     try {
27504       (arg1)->resize(arg2,(std::vector< SOLUTION >::value_type const &)*arg3);
27505     } catch (const std::exception& e) {
27506       SWIG_exception(SWIG_RuntimeError, e.what());
27507     }
27508   }
27509   resultobj = SWIG_Py_Void();
27510   return resultobj;
27511 fail:
27512   return NULL;
27513 }
27514 
27515 
_wrap_SOLUTIONVector_resize(PyObject * self,PyObject * args)27516 SWIGINTERN PyObject *_wrap_SOLUTIONVector_resize(PyObject *self, PyObject *args) {
27517   Py_ssize_t argc;
27518   PyObject *argv[4] = {
27519     0
27520   };
27521 
27522   if (!(argc = SWIG_Python_UnpackTuple(args, "SOLUTIONVector_resize", 0, 3, argv))) SWIG_fail;
27523   --argc;
27524   if (argc == 2) {
27525     int _v;
27526     int res = swig::asptr(argv[0], (std::vector< SOLUTION,std::allocator< SOLUTION > >**)(0));
27527     _v = SWIG_CheckState(res);
27528     if (_v) {
27529       {
27530         int res = SWIG_AsVal_size_t(argv[1], NULL);
27531         _v = SWIG_CheckState(res);
27532       }
27533       if (_v) {
27534         return _wrap_SOLUTIONVector_resize__SWIG_0(self, argc, argv);
27535       }
27536     }
27537   }
27538   if (argc == 3) {
27539     int _v;
27540     int res = swig::asptr(argv[0], (std::vector< SOLUTION,std::allocator< SOLUTION > >**)(0));
27541     _v = SWIG_CheckState(res);
27542     if (_v) {
27543       {
27544         int res = SWIG_AsVal_size_t(argv[1], NULL);
27545         _v = SWIG_CheckState(res);
27546       }
27547       if (_v) {
27548         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_SOLUTION, SWIG_POINTER_NO_NULL | 0);
27549         _v = SWIG_CheckState(res);
27550         if (_v) {
27551           return _wrap_SOLUTIONVector_resize__SWIG_1(self, argc, argv);
27552         }
27553       }
27554     }
27555   }
27556 
27557 fail:
27558   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SOLUTIONVector_resize'.\n"
27559     "  Possible C/C++ prototypes are:\n"
27560     "    std::vector< SOLUTION >::resize(std::vector< SOLUTION >::size_type)\n"
27561     "    std::vector< SOLUTION >::resize(std::vector< SOLUTION >::size_type,std::vector< SOLUTION >::value_type const &)\n");
27562   return 0;
27563 }
27564 
27565 
_wrap_SOLUTIONVector_insert__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)27566 SWIGINTERN PyObject *_wrap_SOLUTIONVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
27567   PyObject *resultobj = 0;
27568   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
27569   std::vector< SOLUTION >::iterator arg2 ;
27570   std::vector< SOLUTION >::value_type *arg3 = 0 ;
27571   void *argp1 = 0 ;
27572   int res1 = 0 ;
27573   swig::SwigPyIterator *iter2 = 0 ;
27574   int res2 ;
27575   void *argp3 = 0 ;
27576   int res3 = 0 ;
27577   std::vector< SOLUTION >::iterator result;
27578 
27579   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27580   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
27581   if (!SWIG_IsOK(res1)) {
27582     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_insert" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
27583   }
27584   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
27585   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
27586   if (!SWIG_IsOK(res2) || !iter2) {
27587     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SOLUTIONVector_insert" "', argument " "2"" of type '" "std::vector< SOLUTION >::iterator""'");
27588   } else {
27589     swig::SwigPyIterator_T<std::vector< SOLUTION >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< SOLUTION >::iterator > *>(iter2);
27590     if (iter_t) {
27591       arg2 = iter_t->get_current();
27592     } else {
27593       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SOLUTIONVector_insert" "', argument " "2"" of type '" "std::vector< SOLUTION >::iterator""'");
27594     }
27595   }
27596   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_SOLUTION,  0  | 0);
27597   if (!SWIG_IsOK(res3)) {
27598     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SOLUTIONVector_insert" "', argument " "3"" of type '" "std::vector< SOLUTION >::value_type const &""'");
27599   }
27600   if (!argp3) {
27601     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SOLUTIONVector_insert" "', argument " "3"" of type '" "std::vector< SOLUTION >::value_type const &""'");
27602   }
27603   arg3 = reinterpret_cast< std::vector< SOLUTION >::value_type * >(argp3);
27604   {
27605     try {
27606       result = std_vector_Sl_SOLUTION_Sg__insert__SWIG_0(arg1,arg2,(SOLUTION const &)*arg3);
27607     } catch (const std::exception& e) {
27608       SWIG_exception(SWIG_RuntimeError, e.what());
27609     }
27610   }
27611   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< SOLUTION >::iterator & >(result)),
27612     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
27613   return resultobj;
27614 fail:
27615   return NULL;
27616 }
27617 
27618 
_wrap_SOLUTIONVector_insert__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)27619 SWIGINTERN PyObject *_wrap_SOLUTIONVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
27620   PyObject *resultobj = 0;
27621   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
27622   std::vector< SOLUTION >::iterator arg2 ;
27623   std::vector< SOLUTION >::size_type arg3 ;
27624   std::vector< SOLUTION >::value_type *arg4 = 0 ;
27625   void *argp1 = 0 ;
27626   int res1 = 0 ;
27627   swig::SwigPyIterator *iter2 = 0 ;
27628   int res2 ;
27629   size_t val3 ;
27630   int ecode3 = 0 ;
27631   void *argp4 = 0 ;
27632   int res4 = 0 ;
27633 
27634   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
27635   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
27636   if (!SWIG_IsOK(res1)) {
27637     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_insert" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
27638   }
27639   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
27640   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
27641   if (!SWIG_IsOK(res2) || !iter2) {
27642     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SOLUTIONVector_insert" "', argument " "2"" of type '" "std::vector< SOLUTION >::iterator""'");
27643   } else {
27644     swig::SwigPyIterator_T<std::vector< SOLUTION >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< SOLUTION >::iterator > *>(iter2);
27645     if (iter_t) {
27646       arg2 = iter_t->get_current();
27647     } else {
27648       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SOLUTIONVector_insert" "', argument " "2"" of type '" "std::vector< SOLUTION >::iterator""'");
27649     }
27650   }
27651   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
27652   if (!SWIG_IsOK(ecode3)) {
27653     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SOLUTIONVector_insert" "', argument " "3"" of type '" "std::vector< SOLUTION >::size_type""'");
27654   }
27655   arg3 = static_cast< std::vector< SOLUTION >::size_type >(val3);
27656   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_SOLUTION,  0  | 0);
27657   if (!SWIG_IsOK(res4)) {
27658     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SOLUTIONVector_insert" "', argument " "4"" of type '" "std::vector< SOLUTION >::value_type const &""'");
27659   }
27660   if (!argp4) {
27661     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SOLUTIONVector_insert" "', argument " "4"" of type '" "std::vector< SOLUTION >::value_type const &""'");
27662   }
27663   arg4 = reinterpret_cast< std::vector< SOLUTION >::value_type * >(argp4);
27664   {
27665     try {
27666       std_vector_Sl_SOLUTION_Sg__insert__SWIG_1(arg1,arg2,arg3,(SOLUTION const &)*arg4);
27667     } catch (const std::exception& e) {
27668       SWIG_exception(SWIG_RuntimeError, e.what());
27669     }
27670   }
27671   resultobj = SWIG_Py_Void();
27672   return resultobj;
27673 fail:
27674   return NULL;
27675 }
27676 
27677 
_wrap_SOLUTIONVector_insert(PyObject * self,PyObject * args)27678 SWIGINTERN PyObject *_wrap_SOLUTIONVector_insert(PyObject *self, PyObject *args) {
27679   Py_ssize_t argc;
27680   PyObject *argv[5] = {
27681     0
27682   };
27683 
27684   if (!(argc = SWIG_Python_UnpackTuple(args, "SOLUTIONVector_insert", 0, 4, argv))) SWIG_fail;
27685   --argc;
27686   if (argc == 3) {
27687     int _v;
27688     int res = swig::asptr(argv[0], (std::vector< SOLUTION,std::allocator< SOLUTION > >**)(0));
27689     _v = SWIG_CheckState(res);
27690     if (_v) {
27691       swig::SwigPyIterator *iter = 0;
27692       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
27693       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< SOLUTION >::iterator > *>(iter) != 0));
27694       if (_v) {
27695         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_SOLUTION, SWIG_POINTER_NO_NULL | 0);
27696         _v = SWIG_CheckState(res);
27697         if (_v) {
27698           return _wrap_SOLUTIONVector_insert__SWIG_0(self, argc, argv);
27699         }
27700       }
27701     }
27702   }
27703   if (argc == 4) {
27704     int _v;
27705     int res = swig::asptr(argv[0], (std::vector< SOLUTION,std::allocator< SOLUTION > >**)(0));
27706     _v = SWIG_CheckState(res);
27707     if (_v) {
27708       swig::SwigPyIterator *iter = 0;
27709       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
27710       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< SOLUTION >::iterator > *>(iter) != 0));
27711       if (_v) {
27712         {
27713           int res = SWIG_AsVal_size_t(argv[2], NULL);
27714           _v = SWIG_CheckState(res);
27715         }
27716         if (_v) {
27717           int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_SOLUTION, SWIG_POINTER_NO_NULL | 0);
27718           _v = SWIG_CheckState(res);
27719           if (_v) {
27720             return _wrap_SOLUTIONVector_insert__SWIG_1(self, argc, argv);
27721           }
27722         }
27723       }
27724     }
27725   }
27726 
27727 fail:
27728   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SOLUTIONVector_insert'.\n"
27729     "  Possible C/C++ prototypes are:\n"
27730     "    std::vector< SOLUTION >::insert(std::vector< SOLUTION >::iterator,std::vector< SOLUTION >::value_type const &)\n"
27731     "    std::vector< SOLUTION >::insert(std::vector< SOLUTION >::iterator,std::vector< SOLUTION >::size_type,std::vector< SOLUTION >::value_type const &)\n");
27732   return 0;
27733 }
27734 
27735 
_wrap_SOLUTIONVector_reserve(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)27736 SWIGINTERN PyObject *_wrap_SOLUTIONVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27737   PyObject *resultobj = 0;
27738   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
27739   std::vector< SOLUTION >::size_type arg2 ;
27740   void *argp1 = 0 ;
27741   int res1 = 0 ;
27742   size_t val2 ;
27743   int ecode2 = 0 ;
27744   PyObject * obj0 = 0 ;
27745   PyObject * obj1 = 0 ;
27746   char * kwnames[] = {
27747     (char *)"self",  (char *)"n",  NULL
27748   };
27749 
27750   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:SOLUTIONVector_reserve", kwnames, &obj0, &obj1)) SWIG_fail;
27751   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
27752   if (!SWIG_IsOK(res1)) {
27753     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_reserve" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
27754   }
27755   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
27756   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
27757   if (!SWIG_IsOK(ecode2)) {
27758     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SOLUTIONVector_reserve" "', argument " "2"" of type '" "std::vector< SOLUTION >::size_type""'");
27759   }
27760   arg2 = static_cast< std::vector< SOLUTION >::size_type >(val2);
27761   {
27762     try {
27763       (arg1)->reserve(arg2);
27764     } catch (const std::exception& e) {
27765       SWIG_exception(SWIG_RuntimeError, e.what());
27766     }
27767   }
27768   resultobj = SWIG_Py_Void();
27769   return resultobj;
27770 fail:
27771   return NULL;
27772 }
27773 
27774 
_wrap_SOLUTIONVector_capacity(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27775 SWIGINTERN PyObject *_wrap_SOLUTIONVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27776   PyObject *resultobj = 0;
27777   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
27778   void *argp1 = 0 ;
27779   int res1 = 0 ;
27780   PyObject *swig_obj[1] ;
27781   std::vector< SOLUTION >::size_type result;
27782 
27783   if (!args) SWIG_fail;
27784   swig_obj[0] = args;
27785   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0 |  0 );
27786   if (!SWIG_IsOK(res1)) {
27787     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTIONVector_capacity" "', argument " "1"" of type '" "std::vector< SOLUTION > const *""'");
27788   }
27789   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
27790   {
27791     try {
27792       result = ((std::vector< SOLUTION > const *)arg1)->capacity();
27793     } catch (const std::exception& e) {
27794       SWIG_exception(SWIG_RuntimeError, e.what());
27795     }
27796   }
27797   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
27798   return resultobj;
27799 fail:
27800   return NULL;
27801 }
27802 
27803 
_wrap_delete_SOLUTIONVector(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27804 SWIGINTERN PyObject *_wrap_delete_SOLUTIONVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27805   PyObject *resultobj = 0;
27806   std::vector< SOLUTION > *arg1 = (std::vector< SOLUTION > *) 0 ;
27807   void *argp1 = 0 ;
27808   int res1 = 0 ;
27809   PyObject *swig_obj[1] ;
27810 
27811   if (!args) SWIG_fail;
27812   swig_obj[0] = args;
27813   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, SWIG_POINTER_DISOWN |  0 );
27814   if (!SWIG_IsOK(res1)) {
27815     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SOLUTIONVector" "', argument " "1"" of type '" "std::vector< SOLUTION > *""'");
27816   }
27817   arg1 = reinterpret_cast< std::vector< SOLUTION > * >(argp1);
27818   {
27819     try {
27820       delete arg1;
27821     } catch (const std::exception& e) {
27822       SWIG_exception(SWIG_RuntimeError, e.what());
27823     }
27824   }
27825   resultobj = SWIG_Py_Void();
27826   return resultobj;
27827 fail:
27828   return NULL;
27829 }
27830 
27831 
SOLUTIONVector_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27832 SWIGINTERN PyObject *SOLUTIONVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27833   PyObject *obj;
27834   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
27835   SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, SWIG_NewClientData(obj));
27836   return SWIG_Py_Void();
27837 }
27838 
SOLUTIONVector_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27839 SWIGINTERN PyObject *SOLUTIONVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27840   return SWIG_Python_InitShadowInstance(args);
27841 }
27842 
_wrap_CoordinateVector_iterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27843 SWIGINTERN PyObject *_wrap_CoordinateVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27844   PyObject *resultobj = 0;
27845   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
27846   PyObject **arg2 = (PyObject **) 0 ;
27847   void *argp1 = 0 ;
27848   int res1 = 0 ;
27849   PyObject *swig_obj[1] ;
27850   swig::SwigPyIterator *result = 0 ;
27851 
27852   arg2 = &swig_obj[0];
27853   if (!args) SWIG_fail;
27854   swig_obj[0] = args;
27855   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
27856   if (!SWIG_IsOK(res1)) {
27857     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_iterator" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
27858   }
27859   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
27860   {
27861     try {
27862       result = (swig::SwigPyIterator *)std_vector_Sl_COORDINATE_Sg__iterator(arg1,arg2);
27863     } catch (const std::exception& e) {
27864       SWIG_exception(SWIG_RuntimeError, e.what());
27865     }
27866   }
27867   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
27868   return resultobj;
27869 fail:
27870   return NULL;
27871 }
27872 
27873 
_wrap_CoordinateVector___nonzero__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27874 SWIGINTERN PyObject *_wrap_CoordinateVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27875   PyObject *resultobj = 0;
27876   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
27877   void *argp1 = 0 ;
27878   int res1 = 0 ;
27879   PyObject *swig_obj[1] ;
27880   bool result;
27881 
27882   if (!args) SWIG_fail;
27883   swig_obj[0] = args;
27884   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
27885   if (!SWIG_IsOK(res1)) {
27886     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector___nonzero__" "', argument " "1"" of type '" "std::vector< COORDINATE > const *""'");
27887   }
27888   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
27889   {
27890     try {
27891       result = (bool)std_vector_Sl_COORDINATE_Sg____nonzero__((std::vector< COORDINATE > const *)arg1);
27892     } catch (const std::exception& e) {
27893       SWIG_exception(SWIG_RuntimeError, e.what());
27894     }
27895   }
27896   resultobj = SWIG_From_bool(static_cast< bool >(result));
27897   return resultobj;
27898 fail:
27899   return NULL;
27900 }
27901 
27902 
_wrap_CoordinateVector___bool__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27903 SWIGINTERN PyObject *_wrap_CoordinateVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27904   PyObject *resultobj = 0;
27905   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
27906   void *argp1 = 0 ;
27907   int res1 = 0 ;
27908   PyObject *swig_obj[1] ;
27909   bool result;
27910 
27911   if (!args) SWIG_fail;
27912   swig_obj[0] = args;
27913   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
27914   if (!SWIG_IsOK(res1)) {
27915     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector___bool__" "', argument " "1"" of type '" "std::vector< COORDINATE > const *""'");
27916   }
27917   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
27918   {
27919     try {
27920       result = (bool)std_vector_Sl_COORDINATE_Sg____bool__((std::vector< COORDINATE > const *)arg1);
27921     } catch (const std::exception& e) {
27922       SWIG_exception(SWIG_RuntimeError, e.what());
27923     }
27924   }
27925   resultobj = SWIG_From_bool(static_cast< bool >(result));
27926   return resultobj;
27927 fail:
27928   return NULL;
27929 }
27930 
27931 
_wrap_CoordinateVector___len__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27932 SWIGINTERN PyObject *_wrap_CoordinateVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27933   PyObject *resultobj = 0;
27934   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
27935   void *argp1 = 0 ;
27936   int res1 = 0 ;
27937   PyObject *swig_obj[1] ;
27938   std::vector< COORDINATE >::size_type result;
27939 
27940   if (!args) SWIG_fail;
27941   swig_obj[0] = args;
27942   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
27943   if (!SWIG_IsOK(res1)) {
27944     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector___len__" "', argument " "1"" of type '" "std::vector< COORDINATE > const *""'");
27945   }
27946   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
27947   {
27948     try {
27949       result = std_vector_Sl_COORDINATE_Sg____len__((std::vector< COORDINATE > const *)arg1);
27950     } catch (const std::exception& e) {
27951       SWIG_exception(SWIG_RuntimeError, e.what());
27952     }
27953   }
27954   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
27955   return resultobj;
27956 fail:
27957   return NULL;
27958 }
27959 
27960 
_wrap_CoordinateVector___getslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)27961 SWIGINTERN PyObject *_wrap_CoordinateVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27962   PyObject *resultobj = 0;
27963   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
27964   std::vector< COORDINATE >::difference_type arg2 ;
27965   std::vector< COORDINATE >::difference_type arg3 ;
27966   void *argp1 = 0 ;
27967   int res1 = 0 ;
27968   ptrdiff_t val2 ;
27969   int ecode2 = 0 ;
27970   ptrdiff_t val3 ;
27971   int ecode3 = 0 ;
27972   PyObject * obj0 = 0 ;
27973   PyObject * obj1 = 0 ;
27974   PyObject * obj2 = 0 ;
27975   char * kwnames[] = {
27976     (char *)"self",  (char *)"i",  (char *)"j",  NULL
27977   };
27978   std::vector< COORDINATE,std::allocator< COORDINATE > > *result = 0 ;
27979 
27980   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:CoordinateVector___getslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
27981   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
27982   if (!SWIG_IsOK(res1)) {
27983     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector___getslice__" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
27984   }
27985   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
27986   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
27987   if (!SWIG_IsOK(ecode2)) {
27988     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CoordinateVector___getslice__" "', argument " "2"" of type '" "std::vector< COORDINATE >::difference_type""'");
27989   }
27990   arg2 = static_cast< std::vector< COORDINATE >::difference_type >(val2);
27991   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
27992   if (!SWIG_IsOK(ecode3)) {
27993     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CoordinateVector___getslice__" "', argument " "3"" of type '" "std::vector< COORDINATE >::difference_type""'");
27994   }
27995   arg3 = static_cast< std::vector< COORDINATE >::difference_type >(val3);
27996   {
27997     try {
27998       try {
27999         result = (std::vector< COORDINATE,std::allocator< COORDINATE > > *)std_vector_Sl_COORDINATE_Sg____getslice__(arg1,arg2,arg3);
28000       } catch(std::out_of_range &_e) {
28001         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
28002       } catch(std::invalid_argument &_e) {
28003         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
28004       }
28005     } catch (const std::exception& e) {
28006       SWIG_exception(SWIG_RuntimeError, e.what());
28007     }
28008   }
28009   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, SWIG_POINTER_OWN |  0 );
28010   return resultobj;
28011 fail:
28012   return NULL;
28013 }
28014 
28015 
_wrap_CoordinateVector___setslice____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)28016 SWIGINTERN PyObject *_wrap_CoordinateVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
28017   PyObject *resultobj = 0;
28018   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
28019   std::vector< COORDINATE >::difference_type arg2 ;
28020   std::vector< COORDINATE >::difference_type arg3 ;
28021   void *argp1 = 0 ;
28022   int res1 = 0 ;
28023   ptrdiff_t val2 ;
28024   int ecode2 = 0 ;
28025   ptrdiff_t val3 ;
28026   int ecode3 = 0 ;
28027 
28028   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
28029   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
28030   if (!SWIG_IsOK(res1)) {
28031     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector___setslice__" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
28032   }
28033   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
28034   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
28035   if (!SWIG_IsOK(ecode2)) {
28036     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CoordinateVector___setslice__" "', argument " "2"" of type '" "std::vector< COORDINATE >::difference_type""'");
28037   }
28038   arg2 = static_cast< std::vector< COORDINATE >::difference_type >(val2);
28039   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
28040   if (!SWIG_IsOK(ecode3)) {
28041     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CoordinateVector___setslice__" "', argument " "3"" of type '" "std::vector< COORDINATE >::difference_type""'");
28042   }
28043   arg3 = static_cast< std::vector< COORDINATE >::difference_type >(val3);
28044   {
28045     try {
28046       try {
28047         std_vector_Sl_COORDINATE_Sg____setslice____SWIG_0(arg1,arg2,arg3);
28048       } catch(std::out_of_range &_e) {
28049         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
28050       } catch(std::invalid_argument &_e) {
28051         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
28052       }
28053     } catch (const std::exception& e) {
28054       SWIG_exception(SWIG_RuntimeError, e.what());
28055     }
28056   }
28057   resultobj = SWIG_Py_Void();
28058   return resultobj;
28059 fail:
28060   return NULL;
28061 }
28062 
28063 
_wrap_CoordinateVector___setslice____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)28064 SWIGINTERN PyObject *_wrap_CoordinateVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
28065   PyObject *resultobj = 0;
28066   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
28067   std::vector< COORDINATE >::difference_type arg2 ;
28068   std::vector< COORDINATE >::difference_type arg3 ;
28069   std::vector< COORDINATE,std::allocator< COORDINATE > > *arg4 = 0 ;
28070   void *argp1 = 0 ;
28071   int res1 = 0 ;
28072   ptrdiff_t val2 ;
28073   int ecode2 = 0 ;
28074   ptrdiff_t val3 ;
28075   int ecode3 = 0 ;
28076   int res4 = SWIG_OLDOBJ ;
28077 
28078   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
28079   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
28080   if (!SWIG_IsOK(res1)) {
28081     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector___setslice__" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
28082   }
28083   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
28084   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
28085   if (!SWIG_IsOK(ecode2)) {
28086     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CoordinateVector___setslice__" "', argument " "2"" of type '" "std::vector< COORDINATE >::difference_type""'");
28087   }
28088   arg2 = static_cast< std::vector< COORDINATE >::difference_type >(val2);
28089   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
28090   if (!SWIG_IsOK(ecode3)) {
28091     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CoordinateVector___setslice__" "', argument " "3"" of type '" "std::vector< COORDINATE >::difference_type""'");
28092   }
28093   arg3 = static_cast< std::vector< COORDINATE >::difference_type >(val3);
28094   {
28095     std::vector< COORDINATE,std::allocator< COORDINATE > > *ptr = (std::vector< COORDINATE,std::allocator< COORDINATE > > *)0;
28096     res4 = swig::asptr(swig_obj[3], &ptr);
28097     if (!SWIG_IsOK(res4)) {
28098       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoordinateVector___setslice__" "', argument " "4"" of type '" "std::vector< COORDINATE,std::allocator< COORDINATE > > const &""'");
28099     }
28100     if (!ptr) {
28101       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CoordinateVector___setslice__" "', argument " "4"" of type '" "std::vector< COORDINATE,std::allocator< COORDINATE > > const &""'");
28102     }
28103     arg4 = ptr;
28104   }
28105   {
28106     try {
28107       try {
28108         std_vector_Sl_COORDINATE_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< COORDINATE,std::allocator< COORDINATE > > const &)*arg4);
28109       } catch(std::out_of_range &_e) {
28110         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
28111       } catch(std::invalid_argument &_e) {
28112         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
28113       }
28114     } catch (const std::exception& e) {
28115       SWIG_exception(SWIG_RuntimeError, e.what());
28116     }
28117   }
28118   resultobj = SWIG_Py_Void();
28119   if (SWIG_IsNewObj(res4)) delete arg4;
28120   return resultobj;
28121 fail:
28122   if (SWIG_IsNewObj(res4)) delete arg4;
28123   return NULL;
28124 }
28125 
28126 
_wrap_CoordinateVector___setslice__(PyObject * self,PyObject * args)28127 SWIGINTERN PyObject *_wrap_CoordinateVector___setslice__(PyObject *self, PyObject *args) {
28128   Py_ssize_t argc;
28129   PyObject *argv[5] = {
28130     0
28131   };
28132 
28133   if (!(argc = SWIG_Python_UnpackTuple(args, "CoordinateVector___setslice__", 0, 4, argv))) SWIG_fail;
28134   --argc;
28135   if (argc == 3) {
28136     int _v;
28137     int res = swig::asptr(argv[0], (std::vector< COORDINATE,std::allocator< COORDINATE > >**)(0));
28138     _v = SWIG_CheckState(res);
28139     if (_v) {
28140       {
28141         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
28142         _v = SWIG_CheckState(res);
28143       }
28144       if (_v) {
28145         {
28146           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
28147           _v = SWIG_CheckState(res);
28148         }
28149         if (_v) {
28150           return _wrap_CoordinateVector___setslice____SWIG_0(self, argc, argv);
28151         }
28152       }
28153     }
28154   }
28155   if (argc == 4) {
28156     int _v;
28157     int res = swig::asptr(argv[0], (std::vector< COORDINATE,std::allocator< COORDINATE > >**)(0));
28158     _v = SWIG_CheckState(res);
28159     if (_v) {
28160       {
28161         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
28162         _v = SWIG_CheckState(res);
28163       }
28164       if (_v) {
28165         {
28166           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
28167           _v = SWIG_CheckState(res);
28168         }
28169         if (_v) {
28170           int res = swig::asptr(argv[3], (std::vector< COORDINATE,std::allocator< COORDINATE > >**)(0));
28171           _v = SWIG_CheckState(res);
28172           if (_v) {
28173             return _wrap_CoordinateVector___setslice____SWIG_1(self, argc, argv);
28174           }
28175         }
28176       }
28177     }
28178   }
28179 
28180 fail:
28181   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CoordinateVector___setslice__'.\n"
28182     "  Possible C/C++ prototypes are:\n"
28183     "    std::vector< COORDINATE >::__setslice__(std::vector< COORDINATE >::difference_type,std::vector< COORDINATE >::difference_type)\n"
28184     "    std::vector< COORDINATE >::__setslice__(std::vector< COORDINATE >::difference_type,std::vector< COORDINATE >::difference_type,std::vector< COORDINATE,std::allocator< COORDINATE > > const &)\n");
28185   return 0;
28186 }
28187 
28188 
_wrap_CoordinateVector___delslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)28189 SWIGINTERN PyObject *_wrap_CoordinateVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28190   PyObject *resultobj = 0;
28191   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
28192   std::vector< COORDINATE >::difference_type arg2 ;
28193   std::vector< COORDINATE >::difference_type arg3 ;
28194   void *argp1 = 0 ;
28195   int res1 = 0 ;
28196   ptrdiff_t val2 ;
28197   int ecode2 = 0 ;
28198   ptrdiff_t val3 ;
28199   int ecode3 = 0 ;
28200   PyObject * obj0 = 0 ;
28201   PyObject * obj1 = 0 ;
28202   PyObject * obj2 = 0 ;
28203   char * kwnames[] = {
28204     (char *)"self",  (char *)"i",  (char *)"j",  NULL
28205   };
28206 
28207   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:CoordinateVector___delslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
28208   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
28209   if (!SWIG_IsOK(res1)) {
28210     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector___delslice__" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
28211   }
28212   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
28213   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
28214   if (!SWIG_IsOK(ecode2)) {
28215     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CoordinateVector___delslice__" "', argument " "2"" of type '" "std::vector< COORDINATE >::difference_type""'");
28216   }
28217   arg2 = static_cast< std::vector< COORDINATE >::difference_type >(val2);
28218   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
28219   if (!SWIG_IsOK(ecode3)) {
28220     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CoordinateVector___delslice__" "', argument " "3"" of type '" "std::vector< COORDINATE >::difference_type""'");
28221   }
28222   arg3 = static_cast< std::vector< COORDINATE >::difference_type >(val3);
28223   {
28224     try {
28225       try {
28226         std_vector_Sl_COORDINATE_Sg____delslice__(arg1,arg2,arg3);
28227       } catch(std::out_of_range &_e) {
28228         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
28229       } catch(std::invalid_argument &_e) {
28230         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
28231       }
28232     } catch (const std::exception& e) {
28233       SWIG_exception(SWIG_RuntimeError, e.what());
28234     }
28235   }
28236   resultobj = SWIG_Py_Void();
28237   return resultobj;
28238 fail:
28239   return NULL;
28240 }
28241 
28242 
_wrap_CoordinateVector___delitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)28243 SWIGINTERN PyObject *_wrap_CoordinateVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
28244   PyObject *resultobj = 0;
28245   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
28246   std::vector< COORDINATE >::difference_type arg2 ;
28247   void *argp1 = 0 ;
28248   int res1 = 0 ;
28249   ptrdiff_t val2 ;
28250   int ecode2 = 0 ;
28251 
28252   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28253   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
28254   if (!SWIG_IsOK(res1)) {
28255     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector___delitem__" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
28256   }
28257   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
28258   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
28259   if (!SWIG_IsOK(ecode2)) {
28260     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CoordinateVector___delitem__" "', argument " "2"" of type '" "std::vector< COORDINATE >::difference_type""'");
28261   }
28262   arg2 = static_cast< std::vector< COORDINATE >::difference_type >(val2);
28263   {
28264     try {
28265       try {
28266         std_vector_Sl_COORDINATE_Sg____delitem____SWIG_0(arg1,arg2);
28267       } catch(std::out_of_range &_e) {
28268         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
28269       } catch(std::invalid_argument &_e) {
28270         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
28271       }
28272     } catch (const std::exception& e) {
28273       SWIG_exception(SWIG_RuntimeError, e.what());
28274     }
28275   }
28276   resultobj = SWIG_Py_Void();
28277   return resultobj;
28278 fail:
28279   return NULL;
28280 }
28281 
28282 
_wrap_CoordinateVector___getitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)28283 SWIGINTERN PyObject *_wrap_CoordinateVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
28284   PyObject *resultobj = 0;
28285   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
28286   PySliceObject *arg2 = (PySliceObject *) 0 ;
28287   void *argp1 = 0 ;
28288   int res1 = 0 ;
28289   std::vector< COORDINATE,std::allocator< COORDINATE > > *result = 0 ;
28290 
28291   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28292   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
28293   if (!SWIG_IsOK(res1)) {
28294     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector___getitem__" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
28295   }
28296   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
28297   {
28298     if (!PySlice_Check(swig_obj[1])) {
28299       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CoordinateVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
28300     }
28301     arg2 = (PySliceObject *) swig_obj[1];
28302   }
28303   {
28304     try {
28305       try {
28306         result = (std::vector< COORDINATE,std::allocator< COORDINATE > > *)std_vector_Sl_COORDINATE_Sg____getitem____SWIG_0(arg1,arg2);
28307       } catch(std::out_of_range &_e) {
28308         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
28309       } catch(std::invalid_argument &_e) {
28310         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
28311       }
28312     } catch (const std::exception& e) {
28313       SWIG_exception(SWIG_RuntimeError, e.what());
28314     }
28315   }
28316   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, SWIG_POINTER_OWN |  0 );
28317   return resultobj;
28318 fail:
28319   return NULL;
28320 }
28321 
28322 
_wrap_CoordinateVector___setitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)28323 SWIGINTERN PyObject *_wrap_CoordinateVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
28324   PyObject *resultobj = 0;
28325   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
28326   PySliceObject *arg2 = (PySliceObject *) 0 ;
28327   std::vector< COORDINATE,std::allocator< COORDINATE > > *arg3 = 0 ;
28328   void *argp1 = 0 ;
28329   int res1 = 0 ;
28330   int res3 = SWIG_OLDOBJ ;
28331 
28332   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
28333   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
28334   if (!SWIG_IsOK(res1)) {
28335     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector___setitem__" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
28336   }
28337   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
28338   {
28339     if (!PySlice_Check(swig_obj[1])) {
28340       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CoordinateVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
28341     }
28342     arg2 = (PySliceObject *) swig_obj[1];
28343   }
28344   {
28345     std::vector< COORDINATE,std::allocator< COORDINATE > > *ptr = (std::vector< COORDINATE,std::allocator< COORDINATE > > *)0;
28346     res3 = swig::asptr(swig_obj[2], &ptr);
28347     if (!SWIG_IsOK(res3)) {
28348       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoordinateVector___setitem__" "', argument " "3"" of type '" "std::vector< COORDINATE,std::allocator< COORDINATE > > const &""'");
28349     }
28350     if (!ptr) {
28351       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CoordinateVector___setitem__" "', argument " "3"" of type '" "std::vector< COORDINATE,std::allocator< COORDINATE > > const &""'");
28352     }
28353     arg3 = ptr;
28354   }
28355   {
28356     try {
28357       try {
28358         std_vector_Sl_COORDINATE_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< COORDINATE,std::allocator< COORDINATE > > const &)*arg3);
28359       } catch(std::out_of_range &_e) {
28360         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
28361       } catch(std::invalid_argument &_e) {
28362         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
28363       }
28364     } catch (const std::exception& e) {
28365       SWIG_exception(SWIG_RuntimeError, e.what());
28366     }
28367   }
28368   resultobj = SWIG_Py_Void();
28369   if (SWIG_IsNewObj(res3)) delete arg3;
28370   return resultobj;
28371 fail:
28372   if (SWIG_IsNewObj(res3)) delete arg3;
28373   return NULL;
28374 }
28375 
28376 
_wrap_CoordinateVector___setitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)28377 SWIGINTERN PyObject *_wrap_CoordinateVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
28378   PyObject *resultobj = 0;
28379   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
28380   PySliceObject *arg2 = (PySliceObject *) 0 ;
28381   void *argp1 = 0 ;
28382   int res1 = 0 ;
28383 
28384   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28385   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
28386   if (!SWIG_IsOK(res1)) {
28387     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector___setitem__" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
28388   }
28389   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
28390   {
28391     if (!PySlice_Check(swig_obj[1])) {
28392       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CoordinateVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
28393     }
28394     arg2 = (PySliceObject *) swig_obj[1];
28395   }
28396   {
28397     try {
28398       try {
28399         std_vector_Sl_COORDINATE_Sg____setitem____SWIG_1(arg1,arg2);
28400       } catch(std::out_of_range &_e) {
28401         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
28402       } catch(std::invalid_argument &_e) {
28403         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
28404       }
28405     } catch (const std::exception& e) {
28406       SWIG_exception(SWIG_RuntimeError, e.what());
28407     }
28408   }
28409   resultobj = SWIG_Py_Void();
28410   return resultobj;
28411 fail:
28412   return NULL;
28413 }
28414 
28415 
_wrap_CoordinateVector___delitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)28416 SWIGINTERN PyObject *_wrap_CoordinateVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
28417   PyObject *resultobj = 0;
28418   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
28419   PySliceObject *arg2 = (PySliceObject *) 0 ;
28420   void *argp1 = 0 ;
28421   int res1 = 0 ;
28422 
28423   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28424   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
28425   if (!SWIG_IsOK(res1)) {
28426     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector___delitem__" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
28427   }
28428   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
28429   {
28430     if (!PySlice_Check(swig_obj[1])) {
28431       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CoordinateVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
28432     }
28433     arg2 = (PySliceObject *) swig_obj[1];
28434   }
28435   {
28436     try {
28437       try {
28438         std_vector_Sl_COORDINATE_Sg____delitem____SWIG_1(arg1,arg2);
28439       } catch(std::out_of_range &_e) {
28440         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
28441       } catch(std::invalid_argument &_e) {
28442         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
28443       }
28444     } catch (const std::exception& e) {
28445       SWIG_exception(SWIG_RuntimeError, e.what());
28446     }
28447   }
28448   resultobj = SWIG_Py_Void();
28449   return resultobj;
28450 fail:
28451   return NULL;
28452 }
28453 
28454 
_wrap_CoordinateVector___delitem__(PyObject * self,PyObject * args)28455 SWIGINTERN PyObject *_wrap_CoordinateVector___delitem__(PyObject *self, PyObject *args) {
28456   Py_ssize_t argc;
28457   PyObject *argv[3] = {
28458     0
28459   };
28460 
28461   if (!(argc = SWIG_Python_UnpackTuple(args, "CoordinateVector___delitem__", 0, 2, argv))) SWIG_fail;
28462   --argc;
28463   if (argc == 2) {
28464     int _v;
28465     int res = swig::asptr(argv[0], (std::vector< COORDINATE,std::allocator< COORDINATE > >**)(0));
28466     _v = SWIG_CheckState(res);
28467     if (_v) {
28468       {
28469         _v = PySlice_Check(argv[1]);
28470       }
28471       if (_v) {
28472         return _wrap_CoordinateVector___delitem____SWIG_1(self, argc, argv);
28473       }
28474     }
28475   }
28476   if (argc == 2) {
28477     int _v;
28478     int res = swig::asptr(argv[0], (std::vector< COORDINATE,std::allocator< COORDINATE > >**)(0));
28479     _v = SWIG_CheckState(res);
28480     if (_v) {
28481       {
28482         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
28483         _v = SWIG_CheckState(res);
28484       }
28485       if (_v) {
28486         return _wrap_CoordinateVector___delitem____SWIG_0(self, argc, argv);
28487       }
28488     }
28489   }
28490 
28491 fail:
28492   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CoordinateVector___delitem__'.\n"
28493     "  Possible C/C++ prototypes are:\n"
28494     "    std::vector< COORDINATE >::__delitem__(std::vector< COORDINATE >::difference_type)\n"
28495     "    std::vector< COORDINATE >::__delitem__(PySliceObject *)\n");
28496   return 0;
28497 }
28498 
28499 
_wrap_CoordinateVector___getitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)28500 SWIGINTERN PyObject *_wrap_CoordinateVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
28501   PyObject *resultobj = 0;
28502   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
28503   std::vector< COORDINATE >::difference_type arg2 ;
28504   void *argp1 = 0 ;
28505   int res1 = 0 ;
28506   ptrdiff_t val2 ;
28507   int ecode2 = 0 ;
28508   std::vector< COORDINATE >::value_type *result = 0 ;
28509 
28510   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28511   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
28512   if (!SWIG_IsOK(res1)) {
28513     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector___getitem__" "', argument " "1"" of type '" "std::vector< COORDINATE > const *""'");
28514   }
28515   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
28516   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
28517   if (!SWIG_IsOK(ecode2)) {
28518     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CoordinateVector___getitem__" "', argument " "2"" of type '" "std::vector< COORDINATE >::difference_type""'");
28519   }
28520   arg2 = static_cast< std::vector< COORDINATE >::difference_type >(val2);
28521   {
28522     try {
28523       try {
28524         result = (std::vector< COORDINATE >::value_type *) &std_vector_Sl_COORDINATE_Sg____getitem____SWIG_1((std::vector< COORDINATE > const *)arg1,arg2);
28525       } catch(std::out_of_range &_e) {
28526         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
28527       }
28528     } catch (const std::exception& e) {
28529       SWIG_exception(SWIG_RuntimeError, e.what());
28530     }
28531   }
28532   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_COORDINATE, 0 |  0 );
28533   (void)swig::container_owner<swig::traits<std::vector< COORDINATE >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
28534   return resultobj;
28535 fail:
28536   return NULL;
28537 }
28538 
28539 
_wrap_CoordinateVector___getitem__(PyObject * self,PyObject * args)28540 SWIGINTERN PyObject *_wrap_CoordinateVector___getitem__(PyObject *self, PyObject *args) {
28541   Py_ssize_t argc;
28542   PyObject *argv[3] = {
28543     0
28544   };
28545 
28546   if (!(argc = SWIG_Python_UnpackTuple(args, "CoordinateVector___getitem__", 0, 2, argv))) SWIG_fail;
28547   --argc;
28548   if (argc == 2) {
28549     int _v;
28550     int res = swig::asptr(argv[0], (std::vector< COORDINATE,std::allocator< COORDINATE > >**)(0));
28551     _v = SWIG_CheckState(res);
28552     if (_v) {
28553       {
28554         _v = PySlice_Check(argv[1]);
28555       }
28556       if (_v) {
28557         return _wrap_CoordinateVector___getitem____SWIG_0(self, argc, argv);
28558       }
28559     }
28560   }
28561   if (argc == 2) {
28562     int _v;
28563     int res = swig::asptr(argv[0], (std::vector< COORDINATE,std::allocator< COORDINATE > >**)(0));
28564     _v = SWIG_CheckState(res);
28565     if (_v) {
28566       {
28567         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
28568         _v = SWIG_CheckState(res);
28569       }
28570       if (_v) {
28571         return _wrap_CoordinateVector___getitem____SWIG_1(self, argc, argv);
28572       }
28573     }
28574   }
28575 
28576 fail:
28577   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CoordinateVector___getitem__'.\n"
28578     "  Possible C/C++ prototypes are:\n"
28579     "    std::vector< COORDINATE >::__getitem__(PySliceObject *)\n"
28580     "    std::vector< COORDINATE >::__getitem__(std::vector< COORDINATE >::difference_type) const\n");
28581   return 0;
28582 }
28583 
28584 
_wrap_CoordinateVector___setitem____SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)28585 SWIGINTERN PyObject *_wrap_CoordinateVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
28586   PyObject *resultobj = 0;
28587   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
28588   std::vector< COORDINATE >::difference_type arg2 ;
28589   std::vector< COORDINATE >::value_type *arg3 = 0 ;
28590   void *argp1 = 0 ;
28591   int res1 = 0 ;
28592   ptrdiff_t val2 ;
28593   int ecode2 = 0 ;
28594   void *argp3 = 0 ;
28595   int res3 = 0 ;
28596 
28597   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
28598   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
28599   if (!SWIG_IsOK(res1)) {
28600     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector___setitem__" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
28601   }
28602   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
28603   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
28604   if (!SWIG_IsOK(ecode2)) {
28605     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CoordinateVector___setitem__" "', argument " "2"" of type '" "std::vector< COORDINATE >::difference_type""'");
28606   }
28607   arg2 = static_cast< std::vector< COORDINATE >::difference_type >(val2);
28608   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_COORDINATE,  0  | 0);
28609   if (!SWIG_IsOK(res3)) {
28610     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoordinateVector___setitem__" "', argument " "3"" of type '" "std::vector< COORDINATE >::value_type const &""'");
28611   }
28612   if (!argp3) {
28613     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CoordinateVector___setitem__" "', argument " "3"" of type '" "std::vector< COORDINATE >::value_type const &""'");
28614   }
28615   arg3 = reinterpret_cast< std::vector< COORDINATE >::value_type * >(argp3);
28616   {
28617     try {
28618       try {
28619         std_vector_Sl_COORDINATE_Sg____setitem____SWIG_2(arg1,arg2,(COORDINATE const &)*arg3);
28620       } catch(std::out_of_range &_e) {
28621         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
28622       }
28623     } catch (const std::exception& e) {
28624       SWIG_exception(SWIG_RuntimeError, e.what());
28625     }
28626   }
28627   resultobj = SWIG_Py_Void();
28628   return resultobj;
28629 fail:
28630   return NULL;
28631 }
28632 
28633 
_wrap_CoordinateVector___setitem__(PyObject * self,PyObject * args)28634 SWIGINTERN PyObject *_wrap_CoordinateVector___setitem__(PyObject *self, PyObject *args) {
28635   Py_ssize_t argc;
28636   PyObject *argv[4] = {
28637     0
28638   };
28639 
28640   if (!(argc = SWIG_Python_UnpackTuple(args, "CoordinateVector___setitem__", 0, 3, argv))) SWIG_fail;
28641   --argc;
28642   if (argc == 2) {
28643     int _v;
28644     int res = swig::asptr(argv[0], (std::vector< COORDINATE,std::allocator< COORDINATE > >**)(0));
28645     _v = SWIG_CheckState(res);
28646     if (_v) {
28647       {
28648         _v = PySlice_Check(argv[1]);
28649       }
28650       if (_v) {
28651         return _wrap_CoordinateVector___setitem____SWIG_1(self, argc, argv);
28652       }
28653     }
28654   }
28655   if (argc == 3) {
28656     int _v;
28657     int res = swig::asptr(argv[0], (std::vector< COORDINATE,std::allocator< COORDINATE > >**)(0));
28658     _v = SWIG_CheckState(res);
28659     if (_v) {
28660       {
28661         _v = PySlice_Check(argv[1]);
28662       }
28663       if (_v) {
28664         int res = swig::asptr(argv[2], (std::vector< COORDINATE,std::allocator< COORDINATE > >**)(0));
28665         _v = SWIG_CheckState(res);
28666         if (_v) {
28667           return _wrap_CoordinateVector___setitem____SWIG_0(self, argc, argv);
28668         }
28669       }
28670     }
28671   }
28672   if (argc == 3) {
28673     int _v;
28674     int res = swig::asptr(argv[0], (std::vector< COORDINATE,std::allocator< COORDINATE > >**)(0));
28675     _v = SWIG_CheckState(res);
28676     if (_v) {
28677       {
28678         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
28679         _v = SWIG_CheckState(res);
28680       }
28681       if (_v) {
28682         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_COORDINATE, SWIG_POINTER_NO_NULL | 0);
28683         _v = SWIG_CheckState(res);
28684         if (_v) {
28685           return _wrap_CoordinateVector___setitem____SWIG_2(self, argc, argv);
28686         }
28687       }
28688     }
28689   }
28690 
28691 fail:
28692   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CoordinateVector___setitem__'.\n"
28693     "  Possible C/C++ prototypes are:\n"
28694     "    std::vector< COORDINATE >::__setitem__(PySliceObject *,std::vector< COORDINATE,std::allocator< COORDINATE > > const &)\n"
28695     "    std::vector< COORDINATE >::__setitem__(PySliceObject *)\n"
28696     "    std::vector< COORDINATE >::__setitem__(std::vector< COORDINATE >::difference_type,std::vector< COORDINATE >::value_type const &)\n");
28697   return 0;
28698 }
28699 
28700 
_wrap_CoordinateVector_pop(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28701 SWIGINTERN PyObject *_wrap_CoordinateVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28702   PyObject *resultobj = 0;
28703   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
28704   void *argp1 = 0 ;
28705   int res1 = 0 ;
28706   PyObject *swig_obj[1] ;
28707   std::vector< COORDINATE >::value_type result;
28708 
28709   if (!args) SWIG_fail;
28710   swig_obj[0] = args;
28711   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
28712   if (!SWIG_IsOK(res1)) {
28713     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_pop" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
28714   }
28715   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
28716   {
28717     try {
28718       try {
28719         result = std_vector_Sl_COORDINATE_Sg__pop(arg1);
28720       } catch(std::out_of_range &_e) {
28721         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
28722       }
28723     } catch (const std::exception& e) {
28724       SWIG_exception(SWIG_RuntimeError, e.what());
28725     }
28726   }
28727   resultobj = SWIG_NewPointerObj((new std::vector< COORDINATE >::value_type(static_cast< const std::vector< COORDINATE >::value_type& >(result))), SWIGTYPE_p_COORDINATE, SWIG_POINTER_OWN |  0 );
28728   return resultobj;
28729 fail:
28730   return NULL;
28731 }
28732 
28733 
_wrap_CoordinateVector_append(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)28734 SWIGINTERN PyObject *_wrap_CoordinateVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28735   PyObject *resultobj = 0;
28736   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
28737   std::vector< COORDINATE >::value_type *arg2 = 0 ;
28738   void *argp1 = 0 ;
28739   int res1 = 0 ;
28740   void *argp2 = 0 ;
28741   int res2 = 0 ;
28742   PyObject * obj0 = 0 ;
28743   PyObject * obj1 = 0 ;
28744   char * kwnames[] = {
28745     (char *)"self",  (char *)"x",  NULL
28746   };
28747 
28748   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:CoordinateVector_append", kwnames, &obj0, &obj1)) SWIG_fail;
28749   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
28750   if (!SWIG_IsOK(res1)) {
28751     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_append" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
28752   }
28753   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
28754   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_COORDINATE,  0  | 0);
28755   if (!SWIG_IsOK(res2)) {
28756     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoordinateVector_append" "', argument " "2"" of type '" "std::vector< COORDINATE >::value_type const &""'");
28757   }
28758   if (!argp2) {
28759     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CoordinateVector_append" "', argument " "2"" of type '" "std::vector< COORDINATE >::value_type const &""'");
28760   }
28761   arg2 = reinterpret_cast< std::vector< COORDINATE >::value_type * >(argp2);
28762   {
28763     try {
28764       std_vector_Sl_COORDINATE_Sg__append(arg1,(COORDINATE const &)*arg2);
28765     } catch (const std::exception& e) {
28766       SWIG_exception(SWIG_RuntimeError, e.what());
28767     }
28768   }
28769   resultobj = SWIG_Py_Void();
28770   return resultobj;
28771 fail:
28772   return NULL;
28773 }
28774 
28775 
_wrap_new_CoordinateVector__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))28776 SWIGINTERN PyObject *_wrap_new_CoordinateVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
28777   PyObject *resultobj = 0;
28778   std::vector< COORDINATE > *result = 0 ;
28779 
28780   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
28781   {
28782     try {
28783       result = (std::vector< COORDINATE > *)new std::vector< COORDINATE >();
28784     } catch (const std::exception& e) {
28785       SWIG_exception(SWIG_RuntimeError, e.what());
28786     }
28787   }
28788   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, SWIG_POINTER_NEW |  0 );
28789   return resultobj;
28790 fail:
28791   return NULL;
28792 }
28793 
28794 
_wrap_new_CoordinateVector__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)28795 SWIGINTERN PyObject *_wrap_new_CoordinateVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
28796   PyObject *resultobj = 0;
28797   std::vector< COORDINATE > *arg1 = 0 ;
28798   int res1 = SWIG_OLDOBJ ;
28799   std::vector< COORDINATE > *result = 0 ;
28800 
28801   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28802   {
28803     std::vector< COORDINATE,std::allocator< COORDINATE > > *ptr = (std::vector< COORDINATE,std::allocator< COORDINATE > > *)0;
28804     res1 = swig::asptr(swig_obj[0], &ptr);
28805     if (!SWIG_IsOK(res1)) {
28806       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CoordinateVector" "', argument " "1"" of type '" "std::vector< COORDINATE > const &""'");
28807     }
28808     if (!ptr) {
28809       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CoordinateVector" "', argument " "1"" of type '" "std::vector< COORDINATE > const &""'");
28810     }
28811     arg1 = ptr;
28812   }
28813   {
28814     try {
28815       result = (std::vector< COORDINATE > *)new std::vector< COORDINATE >((std::vector< COORDINATE > const &)*arg1);
28816     } catch (const std::exception& e) {
28817       SWIG_exception(SWIG_RuntimeError, e.what());
28818     }
28819   }
28820   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, SWIG_POINTER_NEW |  0 );
28821   if (SWIG_IsNewObj(res1)) delete arg1;
28822   return resultobj;
28823 fail:
28824   if (SWIG_IsNewObj(res1)) delete arg1;
28825   return NULL;
28826 }
28827 
28828 
_wrap_CoordinateVector_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28829 SWIGINTERN PyObject *_wrap_CoordinateVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28830   PyObject *resultobj = 0;
28831   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
28832   void *argp1 = 0 ;
28833   int res1 = 0 ;
28834   PyObject *swig_obj[1] ;
28835   bool result;
28836 
28837   if (!args) SWIG_fail;
28838   swig_obj[0] = args;
28839   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
28840   if (!SWIG_IsOK(res1)) {
28841     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_empty" "', argument " "1"" of type '" "std::vector< COORDINATE > const *""'");
28842   }
28843   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
28844   {
28845     try {
28846       result = (bool)((std::vector< COORDINATE > const *)arg1)->empty();
28847     } catch (const std::exception& e) {
28848       SWIG_exception(SWIG_RuntimeError, e.what());
28849     }
28850   }
28851   resultobj = SWIG_From_bool(static_cast< bool >(result));
28852   return resultobj;
28853 fail:
28854   return NULL;
28855 }
28856 
28857 
_wrap_CoordinateVector_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28858 SWIGINTERN PyObject *_wrap_CoordinateVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28859   PyObject *resultobj = 0;
28860   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
28861   void *argp1 = 0 ;
28862   int res1 = 0 ;
28863   PyObject *swig_obj[1] ;
28864   std::vector< COORDINATE >::size_type result;
28865 
28866   if (!args) SWIG_fail;
28867   swig_obj[0] = args;
28868   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
28869   if (!SWIG_IsOK(res1)) {
28870     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_size" "', argument " "1"" of type '" "std::vector< COORDINATE > const *""'");
28871   }
28872   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
28873   {
28874     try {
28875       result = ((std::vector< COORDINATE > const *)arg1)->size();
28876     } catch (const std::exception& e) {
28877       SWIG_exception(SWIG_RuntimeError, e.what());
28878     }
28879   }
28880   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
28881   return resultobj;
28882 fail:
28883   return NULL;
28884 }
28885 
28886 
_wrap_CoordinateVector_swap(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)28887 SWIGINTERN PyObject *_wrap_CoordinateVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28888   PyObject *resultobj = 0;
28889   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
28890   std::vector< COORDINATE > *arg2 = 0 ;
28891   void *argp1 = 0 ;
28892   int res1 = 0 ;
28893   void *argp2 = 0 ;
28894   int res2 = 0 ;
28895   PyObject * obj0 = 0 ;
28896   PyObject * obj1 = 0 ;
28897   char * kwnames[] = {
28898     (char *)"self",  (char *)"v",  NULL
28899   };
28900 
28901   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:CoordinateVector_swap", kwnames, &obj0, &obj1)) SWIG_fail;
28902   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
28903   if (!SWIG_IsOK(res1)) {
28904     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_swap" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
28905   }
28906   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
28907   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t,  0 );
28908   if (!SWIG_IsOK(res2)) {
28909     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoordinateVector_swap" "', argument " "2"" of type '" "std::vector< COORDINATE > &""'");
28910   }
28911   if (!argp2) {
28912     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CoordinateVector_swap" "', argument " "2"" of type '" "std::vector< COORDINATE > &""'");
28913   }
28914   arg2 = reinterpret_cast< std::vector< COORDINATE > * >(argp2);
28915   {
28916     try {
28917       (arg1)->swap(*arg2);
28918     } catch (const std::exception& e) {
28919       SWIG_exception(SWIG_RuntimeError, e.what());
28920     }
28921   }
28922   resultobj = SWIG_Py_Void();
28923   return resultobj;
28924 fail:
28925   return NULL;
28926 }
28927 
28928 
_wrap_CoordinateVector_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28929 SWIGINTERN PyObject *_wrap_CoordinateVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28930   PyObject *resultobj = 0;
28931   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
28932   void *argp1 = 0 ;
28933   int res1 = 0 ;
28934   PyObject *swig_obj[1] ;
28935   std::vector< COORDINATE >::iterator result;
28936 
28937   if (!args) SWIG_fail;
28938   swig_obj[0] = args;
28939   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
28940   if (!SWIG_IsOK(res1)) {
28941     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_begin" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
28942   }
28943   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
28944   {
28945     try {
28946       result = (arg1)->begin();
28947     } catch (const std::exception& e) {
28948       SWIG_exception(SWIG_RuntimeError, e.what());
28949     }
28950   }
28951   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< COORDINATE >::iterator & >(result)),
28952     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
28953   return resultobj;
28954 fail:
28955   return NULL;
28956 }
28957 
28958 
_wrap_CoordinateVector_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28959 SWIGINTERN PyObject *_wrap_CoordinateVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28960   PyObject *resultobj = 0;
28961   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
28962   void *argp1 = 0 ;
28963   int res1 = 0 ;
28964   PyObject *swig_obj[1] ;
28965   std::vector< COORDINATE >::iterator result;
28966 
28967   if (!args) SWIG_fail;
28968   swig_obj[0] = args;
28969   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
28970   if (!SWIG_IsOK(res1)) {
28971     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_end" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
28972   }
28973   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
28974   {
28975     try {
28976       result = (arg1)->end();
28977     } catch (const std::exception& e) {
28978       SWIG_exception(SWIG_RuntimeError, e.what());
28979     }
28980   }
28981   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< COORDINATE >::iterator & >(result)),
28982     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
28983   return resultobj;
28984 fail:
28985   return NULL;
28986 }
28987 
28988 
_wrap_CoordinateVector_rbegin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28989 SWIGINTERN PyObject *_wrap_CoordinateVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28990   PyObject *resultobj = 0;
28991   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
28992   void *argp1 = 0 ;
28993   int res1 = 0 ;
28994   PyObject *swig_obj[1] ;
28995   std::vector< COORDINATE >::reverse_iterator result;
28996 
28997   if (!args) SWIG_fail;
28998   swig_obj[0] = args;
28999   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
29000   if (!SWIG_IsOK(res1)) {
29001     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_rbegin" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
29002   }
29003   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
29004   {
29005     try {
29006       result = (arg1)->rbegin();
29007     } catch (const std::exception& e) {
29008       SWIG_exception(SWIG_RuntimeError, e.what());
29009     }
29010   }
29011   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< COORDINATE >::reverse_iterator & >(result)),
29012     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
29013   return resultobj;
29014 fail:
29015   return NULL;
29016 }
29017 
29018 
_wrap_CoordinateVector_rend(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29019 SWIGINTERN PyObject *_wrap_CoordinateVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29020   PyObject *resultobj = 0;
29021   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
29022   void *argp1 = 0 ;
29023   int res1 = 0 ;
29024   PyObject *swig_obj[1] ;
29025   std::vector< COORDINATE >::reverse_iterator result;
29026 
29027   if (!args) SWIG_fail;
29028   swig_obj[0] = args;
29029   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
29030   if (!SWIG_IsOK(res1)) {
29031     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_rend" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
29032   }
29033   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
29034   {
29035     try {
29036       result = (arg1)->rend();
29037     } catch (const std::exception& e) {
29038       SWIG_exception(SWIG_RuntimeError, e.what());
29039     }
29040   }
29041   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< COORDINATE >::reverse_iterator & >(result)),
29042     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
29043   return resultobj;
29044 fail:
29045   return NULL;
29046 }
29047 
29048 
_wrap_CoordinateVector_clear(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29049 SWIGINTERN PyObject *_wrap_CoordinateVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29050   PyObject *resultobj = 0;
29051   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
29052   void *argp1 = 0 ;
29053   int res1 = 0 ;
29054   PyObject *swig_obj[1] ;
29055 
29056   if (!args) SWIG_fail;
29057   swig_obj[0] = args;
29058   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
29059   if (!SWIG_IsOK(res1)) {
29060     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_clear" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
29061   }
29062   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
29063   {
29064     try {
29065       (arg1)->clear();
29066     } catch (const std::exception& e) {
29067       SWIG_exception(SWIG_RuntimeError, e.what());
29068     }
29069   }
29070   resultobj = SWIG_Py_Void();
29071   return resultobj;
29072 fail:
29073   return NULL;
29074 }
29075 
29076 
_wrap_CoordinateVector_get_allocator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29077 SWIGINTERN PyObject *_wrap_CoordinateVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29078   PyObject *resultobj = 0;
29079   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
29080   void *argp1 = 0 ;
29081   int res1 = 0 ;
29082   PyObject *swig_obj[1] ;
29083   SwigValueWrapper< std::allocator< COORDINATE > > result;
29084 
29085   if (!args) SWIG_fail;
29086   swig_obj[0] = args;
29087   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
29088   if (!SWIG_IsOK(res1)) {
29089     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_get_allocator" "', argument " "1"" of type '" "std::vector< COORDINATE > const *""'");
29090   }
29091   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
29092   {
29093     try {
29094       result = ((std::vector< COORDINATE > const *)arg1)->get_allocator();
29095     } catch (const std::exception& e) {
29096       SWIG_exception(SWIG_RuntimeError, e.what());
29097     }
29098   }
29099   resultobj = SWIG_NewPointerObj((new std::vector< COORDINATE >::allocator_type(static_cast< const std::vector< COORDINATE >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_COORDINATE_t, SWIG_POINTER_OWN |  0 );
29100   return resultobj;
29101 fail:
29102   return NULL;
29103 }
29104 
29105 
_wrap_new_CoordinateVector__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)29106 SWIGINTERN PyObject *_wrap_new_CoordinateVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
29107   PyObject *resultobj = 0;
29108   std::vector< COORDINATE >::size_type arg1 ;
29109   size_t val1 ;
29110   int ecode1 = 0 ;
29111   std::vector< COORDINATE > *result = 0 ;
29112 
29113   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
29114   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
29115   if (!SWIG_IsOK(ecode1)) {
29116     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CoordinateVector" "', argument " "1"" of type '" "std::vector< COORDINATE >::size_type""'");
29117   }
29118   arg1 = static_cast< std::vector< COORDINATE >::size_type >(val1);
29119   {
29120     try {
29121       result = (std::vector< COORDINATE > *)new std::vector< COORDINATE >(arg1);
29122     } catch (const std::exception& e) {
29123       SWIG_exception(SWIG_RuntimeError, e.what());
29124     }
29125   }
29126   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, SWIG_POINTER_NEW |  0 );
29127   return resultobj;
29128 fail:
29129   return NULL;
29130 }
29131 
29132 
_wrap_CoordinateVector_pop_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29133 SWIGINTERN PyObject *_wrap_CoordinateVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29134   PyObject *resultobj = 0;
29135   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
29136   void *argp1 = 0 ;
29137   int res1 = 0 ;
29138   PyObject *swig_obj[1] ;
29139 
29140   if (!args) SWIG_fail;
29141   swig_obj[0] = args;
29142   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
29143   if (!SWIG_IsOK(res1)) {
29144     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_pop_back" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
29145   }
29146   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
29147   {
29148     try {
29149       (arg1)->pop_back();
29150     } catch (const std::exception& e) {
29151       SWIG_exception(SWIG_RuntimeError, e.what());
29152     }
29153   }
29154   resultobj = SWIG_Py_Void();
29155   return resultobj;
29156 fail:
29157   return NULL;
29158 }
29159 
29160 
_wrap_CoordinateVector_resize__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)29161 SWIGINTERN PyObject *_wrap_CoordinateVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
29162   PyObject *resultobj = 0;
29163   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
29164   std::vector< COORDINATE >::size_type arg2 ;
29165   void *argp1 = 0 ;
29166   int res1 = 0 ;
29167   size_t val2 ;
29168   int ecode2 = 0 ;
29169 
29170   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29171   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
29172   if (!SWIG_IsOK(res1)) {
29173     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_resize" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
29174   }
29175   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
29176   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
29177   if (!SWIG_IsOK(ecode2)) {
29178     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CoordinateVector_resize" "', argument " "2"" of type '" "std::vector< COORDINATE >::size_type""'");
29179   }
29180   arg2 = static_cast< std::vector< COORDINATE >::size_type >(val2);
29181   {
29182     try {
29183       (arg1)->resize(arg2);
29184     } catch (const std::exception& e) {
29185       SWIG_exception(SWIG_RuntimeError, e.what());
29186     }
29187   }
29188   resultobj = SWIG_Py_Void();
29189   return resultobj;
29190 fail:
29191   return NULL;
29192 }
29193 
29194 
_wrap_CoordinateVector_erase__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)29195 SWIGINTERN PyObject *_wrap_CoordinateVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
29196   PyObject *resultobj = 0;
29197   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
29198   std::vector< COORDINATE >::iterator arg2 ;
29199   void *argp1 = 0 ;
29200   int res1 = 0 ;
29201   swig::SwigPyIterator *iter2 = 0 ;
29202   int res2 ;
29203   std::vector< COORDINATE >::iterator result;
29204 
29205   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29206   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
29207   if (!SWIG_IsOK(res1)) {
29208     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_erase" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
29209   }
29210   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
29211   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
29212   if (!SWIG_IsOK(res2) || !iter2) {
29213     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CoordinateVector_erase" "', argument " "2"" of type '" "std::vector< COORDINATE >::iterator""'");
29214   } else {
29215     swig::SwigPyIterator_T<std::vector< COORDINATE >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< COORDINATE >::iterator > *>(iter2);
29216     if (iter_t) {
29217       arg2 = iter_t->get_current();
29218     } else {
29219       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CoordinateVector_erase" "', argument " "2"" of type '" "std::vector< COORDINATE >::iterator""'");
29220     }
29221   }
29222   {
29223     try {
29224       result = std_vector_Sl_COORDINATE_Sg__erase__SWIG_0(arg1,arg2);
29225     } catch (const std::exception& e) {
29226       SWIG_exception(SWIG_RuntimeError, e.what());
29227     }
29228   }
29229   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< COORDINATE >::iterator & >(result)),
29230     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
29231   return resultobj;
29232 fail:
29233   return NULL;
29234 }
29235 
29236 
_wrap_CoordinateVector_erase__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)29237 SWIGINTERN PyObject *_wrap_CoordinateVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
29238   PyObject *resultobj = 0;
29239   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
29240   std::vector< COORDINATE >::iterator arg2 ;
29241   std::vector< COORDINATE >::iterator arg3 ;
29242   void *argp1 = 0 ;
29243   int res1 = 0 ;
29244   swig::SwigPyIterator *iter2 = 0 ;
29245   int res2 ;
29246   swig::SwigPyIterator *iter3 = 0 ;
29247   int res3 ;
29248   std::vector< COORDINATE >::iterator result;
29249 
29250   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
29251   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
29252   if (!SWIG_IsOK(res1)) {
29253     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_erase" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
29254   }
29255   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
29256   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
29257   if (!SWIG_IsOK(res2) || !iter2) {
29258     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CoordinateVector_erase" "', argument " "2"" of type '" "std::vector< COORDINATE >::iterator""'");
29259   } else {
29260     swig::SwigPyIterator_T<std::vector< COORDINATE >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< COORDINATE >::iterator > *>(iter2);
29261     if (iter_t) {
29262       arg2 = iter_t->get_current();
29263     } else {
29264       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CoordinateVector_erase" "', argument " "2"" of type '" "std::vector< COORDINATE >::iterator""'");
29265     }
29266   }
29267   res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
29268   if (!SWIG_IsOK(res3) || !iter3) {
29269     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CoordinateVector_erase" "', argument " "3"" of type '" "std::vector< COORDINATE >::iterator""'");
29270   } else {
29271     swig::SwigPyIterator_T<std::vector< COORDINATE >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< COORDINATE >::iterator > *>(iter3);
29272     if (iter_t) {
29273       arg3 = iter_t->get_current();
29274     } else {
29275       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CoordinateVector_erase" "', argument " "3"" of type '" "std::vector< COORDINATE >::iterator""'");
29276     }
29277   }
29278   {
29279     try {
29280       result = std_vector_Sl_COORDINATE_Sg__erase__SWIG_1(arg1,arg2,arg3);
29281     } catch (const std::exception& e) {
29282       SWIG_exception(SWIG_RuntimeError, e.what());
29283     }
29284   }
29285   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< COORDINATE >::iterator & >(result)),
29286     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
29287   return resultobj;
29288 fail:
29289   return NULL;
29290 }
29291 
29292 
_wrap_CoordinateVector_erase(PyObject * self,PyObject * args)29293 SWIGINTERN PyObject *_wrap_CoordinateVector_erase(PyObject *self, PyObject *args) {
29294   Py_ssize_t argc;
29295   PyObject *argv[4] = {
29296     0
29297   };
29298 
29299   if (!(argc = SWIG_Python_UnpackTuple(args, "CoordinateVector_erase", 0, 3, argv))) SWIG_fail;
29300   --argc;
29301   if (argc == 2) {
29302     int _v;
29303     int res = swig::asptr(argv[0], (std::vector< COORDINATE,std::allocator< COORDINATE > >**)(0));
29304     _v = SWIG_CheckState(res);
29305     if (_v) {
29306       swig::SwigPyIterator *iter = 0;
29307       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
29308       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< COORDINATE >::iterator > *>(iter) != 0));
29309       if (_v) {
29310         return _wrap_CoordinateVector_erase__SWIG_0(self, argc, argv);
29311       }
29312     }
29313   }
29314   if (argc == 3) {
29315     int _v;
29316     int res = swig::asptr(argv[0], (std::vector< COORDINATE,std::allocator< COORDINATE > >**)(0));
29317     _v = SWIG_CheckState(res);
29318     if (_v) {
29319       swig::SwigPyIterator *iter = 0;
29320       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
29321       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< COORDINATE >::iterator > *>(iter) != 0));
29322       if (_v) {
29323         swig::SwigPyIterator *iter = 0;
29324         int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
29325         _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< COORDINATE >::iterator > *>(iter) != 0));
29326         if (_v) {
29327           return _wrap_CoordinateVector_erase__SWIG_1(self, argc, argv);
29328         }
29329       }
29330     }
29331   }
29332 
29333 fail:
29334   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CoordinateVector_erase'.\n"
29335     "  Possible C/C++ prototypes are:\n"
29336     "    std::vector< COORDINATE >::erase(std::vector< COORDINATE >::iterator)\n"
29337     "    std::vector< COORDINATE >::erase(std::vector< COORDINATE >::iterator,std::vector< COORDINATE >::iterator)\n");
29338   return 0;
29339 }
29340 
29341 
_wrap_new_CoordinateVector__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)29342 SWIGINTERN PyObject *_wrap_new_CoordinateVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
29343   PyObject *resultobj = 0;
29344   std::vector< COORDINATE >::size_type arg1 ;
29345   std::vector< COORDINATE >::value_type *arg2 = 0 ;
29346   size_t val1 ;
29347   int ecode1 = 0 ;
29348   void *argp2 = 0 ;
29349   int res2 = 0 ;
29350   std::vector< COORDINATE > *result = 0 ;
29351 
29352   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29353   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
29354   if (!SWIG_IsOK(ecode1)) {
29355     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CoordinateVector" "', argument " "1"" of type '" "std::vector< COORDINATE >::size_type""'");
29356   }
29357   arg1 = static_cast< std::vector< COORDINATE >::size_type >(val1);
29358   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_COORDINATE,  0  | 0);
29359   if (!SWIG_IsOK(res2)) {
29360     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CoordinateVector" "', argument " "2"" of type '" "std::vector< COORDINATE >::value_type const &""'");
29361   }
29362   if (!argp2) {
29363     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CoordinateVector" "', argument " "2"" of type '" "std::vector< COORDINATE >::value_type const &""'");
29364   }
29365   arg2 = reinterpret_cast< std::vector< COORDINATE >::value_type * >(argp2);
29366   {
29367     try {
29368       result = (std::vector< COORDINATE > *)new std::vector< COORDINATE >(arg1,(std::vector< COORDINATE >::value_type const &)*arg2);
29369     } catch (const std::exception& e) {
29370       SWIG_exception(SWIG_RuntimeError, e.what());
29371     }
29372   }
29373   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, SWIG_POINTER_NEW |  0 );
29374   return resultobj;
29375 fail:
29376   return NULL;
29377 }
29378 
29379 
_wrap_new_CoordinateVector(PyObject * self,PyObject * args)29380 SWIGINTERN PyObject *_wrap_new_CoordinateVector(PyObject *self, PyObject *args) {
29381   Py_ssize_t argc;
29382   PyObject *argv[3] = {
29383     0
29384   };
29385 
29386   if (!(argc = SWIG_Python_UnpackTuple(args, "new_CoordinateVector", 0, 2, argv))) SWIG_fail;
29387   --argc;
29388   if (argc == 0) {
29389     return _wrap_new_CoordinateVector__SWIG_0(self, argc, argv);
29390   }
29391   if (argc == 1) {
29392     int _v;
29393     {
29394       int res = SWIG_AsVal_size_t(argv[0], NULL);
29395       _v = SWIG_CheckState(res);
29396     }
29397     if (_v) {
29398       return _wrap_new_CoordinateVector__SWIG_2(self, argc, argv);
29399     }
29400   }
29401   if (argc == 1) {
29402     int _v;
29403     int res = swig::asptr(argv[0], (std::vector< COORDINATE,std::allocator< COORDINATE > >**)(0));
29404     _v = SWIG_CheckState(res);
29405     if (_v) {
29406       return _wrap_new_CoordinateVector__SWIG_1(self, argc, argv);
29407     }
29408   }
29409   if (argc == 2) {
29410     int _v;
29411     {
29412       int res = SWIG_AsVal_size_t(argv[0], NULL);
29413       _v = SWIG_CheckState(res);
29414     }
29415     if (_v) {
29416       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_COORDINATE, SWIG_POINTER_NO_NULL | 0);
29417       _v = SWIG_CheckState(res);
29418       if (_v) {
29419         return _wrap_new_CoordinateVector__SWIG_3(self, argc, argv);
29420       }
29421     }
29422   }
29423 
29424 fail:
29425   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_CoordinateVector'.\n"
29426     "  Possible C/C++ prototypes are:\n"
29427     "    std::vector< COORDINATE >::vector()\n"
29428     "    std::vector< COORDINATE >::vector(std::vector< COORDINATE > const &)\n"
29429     "    std::vector< COORDINATE >::vector(std::vector< COORDINATE >::size_type)\n"
29430     "    std::vector< COORDINATE >::vector(std::vector< COORDINATE >::size_type,std::vector< COORDINATE >::value_type const &)\n");
29431   return 0;
29432 }
29433 
29434 
_wrap_CoordinateVector_push_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)29435 SWIGINTERN PyObject *_wrap_CoordinateVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29436   PyObject *resultobj = 0;
29437   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
29438   std::vector< COORDINATE >::value_type *arg2 = 0 ;
29439   void *argp1 = 0 ;
29440   int res1 = 0 ;
29441   void *argp2 = 0 ;
29442   int res2 = 0 ;
29443   PyObject * obj0 = 0 ;
29444   PyObject * obj1 = 0 ;
29445   char * kwnames[] = {
29446     (char *)"self",  (char *)"x",  NULL
29447   };
29448 
29449   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:CoordinateVector_push_back", kwnames, &obj0, &obj1)) SWIG_fail;
29450   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
29451   if (!SWIG_IsOK(res1)) {
29452     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_push_back" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
29453   }
29454   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
29455   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_COORDINATE,  0  | 0);
29456   if (!SWIG_IsOK(res2)) {
29457     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoordinateVector_push_back" "', argument " "2"" of type '" "std::vector< COORDINATE >::value_type const &""'");
29458   }
29459   if (!argp2) {
29460     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CoordinateVector_push_back" "', argument " "2"" of type '" "std::vector< COORDINATE >::value_type const &""'");
29461   }
29462   arg2 = reinterpret_cast< std::vector< COORDINATE >::value_type * >(argp2);
29463   {
29464     try {
29465       (arg1)->push_back((std::vector< COORDINATE >::value_type const &)*arg2);
29466     } catch (const std::exception& e) {
29467       SWIG_exception(SWIG_RuntimeError, e.what());
29468     }
29469   }
29470   resultobj = SWIG_Py_Void();
29471   return resultobj;
29472 fail:
29473   return NULL;
29474 }
29475 
29476 
_wrap_CoordinateVector_front(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29477 SWIGINTERN PyObject *_wrap_CoordinateVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29478   PyObject *resultobj = 0;
29479   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
29480   void *argp1 = 0 ;
29481   int res1 = 0 ;
29482   PyObject *swig_obj[1] ;
29483   std::vector< COORDINATE >::value_type *result = 0 ;
29484 
29485   if (!args) SWIG_fail;
29486   swig_obj[0] = args;
29487   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
29488   if (!SWIG_IsOK(res1)) {
29489     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_front" "', argument " "1"" of type '" "std::vector< COORDINATE > const *""'");
29490   }
29491   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
29492   {
29493     try {
29494       result = (std::vector< COORDINATE >::value_type *) &((std::vector< COORDINATE > const *)arg1)->front();
29495     } catch (const std::exception& e) {
29496       SWIG_exception(SWIG_RuntimeError, e.what());
29497     }
29498   }
29499   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_COORDINATE, 0 |  0 );
29500   (void)swig::container_owner<swig::traits<std::vector< COORDINATE >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
29501   return resultobj;
29502 fail:
29503   return NULL;
29504 }
29505 
29506 
_wrap_CoordinateVector_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29507 SWIGINTERN PyObject *_wrap_CoordinateVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29508   PyObject *resultobj = 0;
29509   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
29510   void *argp1 = 0 ;
29511   int res1 = 0 ;
29512   PyObject *swig_obj[1] ;
29513   std::vector< COORDINATE >::value_type *result = 0 ;
29514 
29515   if (!args) SWIG_fail;
29516   swig_obj[0] = args;
29517   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
29518   if (!SWIG_IsOK(res1)) {
29519     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_back" "', argument " "1"" of type '" "std::vector< COORDINATE > const *""'");
29520   }
29521   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
29522   {
29523     try {
29524       result = (std::vector< COORDINATE >::value_type *) &((std::vector< COORDINATE > const *)arg1)->back();
29525     } catch (const std::exception& e) {
29526       SWIG_exception(SWIG_RuntimeError, e.what());
29527     }
29528   }
29529   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_COORDINATE, 0 |  0 );
29530   (void)swig::container_owner<swig::traits<std::vector< COORDINATE >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
29531   return resultobj;
29532 fail:
29533   return NULL;
29534 }
29535 
29536 
_wrap_CoordinateVector_assign(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)29537 SWIGINTERN PyObject *_wrap_CoordinateVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29538   PyObject *resultobj = 0;
29539   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
29540   std::vector< COORDINATE >::size_type arg2 ;
29541   std::vector< COORDINATE >::value_type *arg3 = 0 ;
29542   void *argp1 = 0 ;
29543   int res1 = 0 ;
29544   size_t val2 ;
29545   int ecode2 = 0 ;
29546   void *argp3 = 0 ;
29547   int res3 = 0 ;
29548   PyObject * obj0 = 0 ;
29549   PyObject * obj1 = 0 ;
29550   PyObject * obj2 = 0 ;
29551   char * kwnames[] = {
29552     (char *)"self",  (char *)"n",  (char *)"x",  NULL
29553   };
29554 
29555   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:CoordinateVector_assign", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
29556   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
29557   if (!SWIG_IsOK(res1)) {
29558     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_assign" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
29559   }
29560   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
29561   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
29562   if (!SWIG_IsOK(ecode2)) {
29563     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CoordinateVector_assign" "', argument " "2"" of type '" "std::vector< COORDINATE >::size_type""'");
29564   }
29565   arg2 = static_cast< std::vector< COORDINATE >::size_type >(val2);
29566   res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_COORDINATE,  0  | 0);
29567   if (!SWIG_IsOK(res3)) {
29568     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoordinateVector_assign" "', argument " "3"" of type '" "std::vector< COORDINATE >::value_type const &""'");
29569   }
29570   if (!argp3) {
29571     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CoordinateVector_assign" "', argument " "3"" of type '" "std::vector< COORDINATE >::value_type const &""'");
29572   }
29573   arg3 = reinterpret_cast< std::vector< COORDINATE >::value_type * >(argp3);
29574   {
29575     try {
29576       (arg1)->assign(arg2,(std::vector< COORDINATE >::value_type const &)*arg3);
29577     } catch (const std::exception& e) {
29578       SWIG_exception(SWIG_RuntimeError, e.what());
29579     }
29580   }
29581   resultobj = SWIG_Py_Void();
29582   return resultobj;
29583 fail:
29584   return NULL;
29585 }
29586 
29587 
_wrap_CoordinateVector_resize__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)29588 SWIGINTERN PyObject *_wrap_CoordinateVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
29589   PyObject *resultobj = 0;
29590   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
29591   std::vector< COORDINATE >::size_type arg2 ;
29592   std::vector< COORDINATE >::value_type *arg3 = 0 ;
29593   void *argp1 = 0 ;
29594   int res1 = 0 ;
29595   size_t val2 ;
29596   int ecode2 = 0 ;
29597   void *argp3 = 0 ;
29598   int res3 = 0 ;
29599 
29600   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
29601   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
29602   if (!SWIG_IsOK(res1)) {
29603     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_resize" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
29604   }
29605   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
29606   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
29607   if (!SWIG_IsOK(ecode2)) {
29608     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CoordinateVector_resize" "', argument " "2"" of type '" "std::vector< COORDINATE >::size_type""'");
29609   }
29610   arg2 = static_cast< std::vector< COORDINATE >::size_type >(val2);
29611   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_COORDINATE,  0  | 0);
29612   if (!SWIG_IsOK(res3)) {
29613     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoordinateVector_resize" "', argument " "3"" of type '" "std::vector< COORDINATE >::value_type const &""'");
29614   }
29615   if (!argp3) {
29616     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CoordinateVector_resize" "', argument " "3"" of type '" "std::vector< COORDINATE >::value_type const &""'");
29617   }
29618   arg3 = reinterpret_cast< std::vector< COORDINATE >::value_type * >(argp3);
29619   {
29620     try {
29621       (arg1)->resize(arg2,(std::vector< COORDINATE >::value_type const &)*arg3);
29622     } catch (const std::exception& e) {
29623       SWIG_exception(SWIG_RuntimeError, e.what());
29624     }
29625   }
29626   resultobj = SWIG_Py_Void();
29627   return resultobj;
29628 fail:
29629   return NULL;
29630 }
29631 
29632 
_wrap_CoordinateVector_resize(PyObject * self,PyObject * args)29633 SWIGINTERN PyObject *_wrap_CoordinateVector_resize(PyObject *self, PyObject *args) {
29634   Py_ssize_t argc;
29635   PyObject *argv[4] = {
29636     0
29637   };
29638 
29639   if (!(argc = SWIG_Python_UnpackTuple(args, "CoordinateVector_resize", 0, 3, argv))) SWIG_fail;
29640   --argc;
29641   if (argc == 2) {
29642     int _v;
29643     int res = swig::asptr(argv[0], (std::vector< COORDINATE,std::allocator< COORDINATE > >**)(0));
29644     _v = SWIG_CheckState(res);
29645     if (_v) {
29646       {
29647         int res = SWIG_AsVal_size_t(argv[1], NULL);
29648         _v = SWIG_CheckState(res);
29649       }
29650       if (_v) {
29651         return _wrap_CoordinateVector_resize__SWIG_0(self, argc, argv);
29652       }
29653     }
29654   }
29655   if (argc == 3) {
29656     int _v;
29657     int res = swig::asptr(argv[0], (std::vector< COORDINATE,std::allocator< COORDINATE > >**)(0));
29658     _v = SWIG_CheckState(res);
29659     if (_v) {
29660       {
29661         int res = SWIG_AsVal_size_t(argv[1], NULL);
29662         _v = SWIG_CheckState(res);
29663       }
29664       if (_v) {
29665         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_COORDINATE, SWIG_POINTER_NO_NULL | 0);
29666         _v = SWIG_CheckState(res);
29667         if (_v) {
29668           return _wrap_CoordinateVector_resize__SWIG_1(self, argc, argv);
29669         }
29670       }
29671     }
29672   }
29673 
29674 fail:
29675   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CoordinateVector_resize'.\n"
29676     "  Possible C/C++ prototypes are:\n"
29677     "    std::vector< COORDINATE >::resize(std::vector< COORDINATE >::size_type)\n"
29678     "    std::vector< COORDINATE >::resize(std::vector< COORDINATE >::size_type,std::vector< COORDINATE >::value_type const &)\n");
29679   return 0;
29680 }
29681 
29682 
_wrap_CoordinateVector_insert__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)29683 SWIGINTERN PyObject *_wrap_CoordinateVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
29684   PyObject *resultobj = 0;
29685   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
29686   std::vector< COORDINATE >::iterator arg2 ;
29687   std::vector< COORDINATE >::value_type *arg3 = 0 ;
29688   void *argp1 = 0 ;
29689   int res1 = 0 ;
29690   swig::SwigPyIterator *iter2 = 0 ;
29691   int res2 ;
29692   void *argp3 = 0 ;
29693   int res3 = 0 ;
29694   std::vector< COORDINATE >::iterator result;
29695 
29696   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
29697   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
29698   if (!SWIG_IsOK(res1)) {
29699     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_insert" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
29700   }
29701   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
29702   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
29703   if (!SWIG_IsOK(res2) || !iter2) {
29704     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CoordinateVector_insert" "', argument " "2"" of type '" "std::vector< COORDINATE >::iterator""'");
29705   } else {
29706     swig::SwigPyIterator_T<std::vector< COORDINATE >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< COORDINATE >::iterator > *>(iter2);
29707     if (iter_t) {
29708       arg2 = iter_t->get_current();
29709     } else {
29710       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CoordinateVector_insert" "', argument " "2"" of type '" "std::vector< COORDINATE >::iterator""'");
29711     }
29712   }
29713   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_COORDINATE,  0  | 0);
29714   if (!SWIG_IsOK(res3)) {
29715     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoordinateVector_insert" "', argument " "3"" of type '" "std::vector< COORDINATE >::value_type const &""'");
29716   }
29717   if (!argp3) {
29718     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CoordinateVector_insert" "', argument " "3"" of type '" "std::vector< COORDINATE >::value_type const &""'");
29719   }
29720   arg3 = reinterpret_cast< std::vector< COORDINATE >::value_type * >(argp3);
29721   {
29722     try {
29723       result = std_vector_Sl_COORDINATE_Sg__insert__SWIG_0(arg1,arg2,(COORDINATE const &)*arg3);
29724     } catch (const std::exception& e) {
29725       SWIG_exception(SWIG_RuntimeError, e.what());
29726     }
29727   }
29728   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< COORDINATE >::iterator & >(result)),
29729     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
29730   return resultobj;
29731 fail:
29732   return NULL;
29733 }
29734 
29735 
_wrap_CoordinateVector_insert__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)29736 SWIGINTERN PyObject *_wrap_CoordinateVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
29737   PyObject *resultobj = 0;
29738   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
29739   std::vector< COORDINATE >::iterator arg2 ;
29740   std::vector< COORDINATE >::size_type arg3 ;
29741   std::vector< COORDINATE >::value_type *arg4 = 0 ;
29742   void *argp1 = 0 ;
29743   int res1 = 0 ;
29744   swig::SwigPyIterator *iter2 = 0 ;
29745   int res2 ;
29746   size_t val3 ;
29747   int ecode3 = 0 ;
29748   void *argp4 = 0 ;
29749   int res4 = 0 ;
29750 
29751   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
29752   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
29753   if (!SWIG_IsOK(res1)) {
29754     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_insert" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
29755   }
29756   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
29757   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
29758   if (!SWIG_IsOK(res2) || !iter2) {
29759     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CoordinateVector_insert" "', argument " "2"" of type '" "std::vector< COORDINATE >::iterator""'");
29760   } else {
29761     swig::SwigPyIterator_T<std::vector< COORDINATE >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< COORDINATE >::iterator > *>(iter2);
29762     if (iter_t) {
29763       arg2 = iter_t->get_current();
29764     } else {
29765       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CoordinateVector_insert" "', argument " "2"" of type '" "std::vector< COORDINATE >::iterator""'");
29766     }
29767   }
29768   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
29769   if (!SWIG_IsOK(ecode3)) {
29770     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CoordinateVector_insert" "', argument " "3"" of type '" "std::vector< COORDINATE >::size_type""'");
29771   }
29772   arg3 = static_cast< std::vector< COORDINATE >::size_type >(val3);
29773   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_COORDINATE,  0  | 0);
29774   if (!SWIG_IsOK(res4)) {
29775     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CoordinateVector_insert" "', argument " "4"" of type '" "std::vector< COORDINATE >::value_type const &""'");
29776   }
29777   if (!argp4) {
29778     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CoordinateVector_insert" "', argument " "4"" of type '" "std::vector< COORDINATE >::value_type const &""'");
29779   }
29780   arg4 = reinterpret_cast< std::vector< COORDINATE >::value_type * >(argp4);
29781   {
29782     try {
29783       std_vector_Sl_COORDINATE_Sg__insert__SWIG_1(arg1,arg2,arg3,(COORDINATE const &)*arg4);
29784     } catch (const std::exception& e) {
29785       SWIG_exception(SWIG_RuntimeError, e.what());
29786     }
29787   }
29788   resultobj = SWIG_Py_Void();
29789   return resultobj;
29790 fail:
29791   return NULL;
29792 }
29793 
29794 
_wrap_CoordinateVector_insert(PyObject * self,PyObject * args)29795 SWIGINTERN PyObject *_wrap_CoordinateVector_insert(PyObject *self, PyObject *args) {
29796   Py_ssize_t argc;
29797   PyObject *argv[5] = {
29798     0
29799   };
29800 
29801   if (!(argc = SWIG_Python_UnpackTuple(args, "CoordinateVector_insert", 0, 4, argv))) SWIG_fail;
29802   --argc;
29803   if (argc == 3) {
29804     int _v;
29805     int res = swig::asptr(argv[0], (std::vector< COORDINATE,std::allocator< COORDINATE > >**)(0));
29806     _v = SWIG_CheckState(res);
29807     if (_v) {
29808       swig::SwigPyIterator *iter = 0;
29809       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
29810       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< COORDINATE >::iterator > *>(iter) != 0));
29811       if (_v) {
29812         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_COORDINATE, SWIG_POINTER_NO_NULL | 0);
29813         _v = SWIG_CheckState(res);
29814         if (_v) {
29815           return _wrap_CoordinateVector_insert__SWIG_0(self, argc, argv);
29816         }
29817       }
29818     }
29819   }
29820   if (argc == 4) {
29821     int _v;
29822     int res = swig::asptr(argv[0], (std::vector< COORDINATE,std::allocator< COORDINATE > >**)(0));
29823     _v = SWIG_CheckState(res);
29824     if (_v) {
29825       swig::SwigPyIterator *iter = 0;
29826       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
29827       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< COORDINATE >::iterator > *>(iter) != 0));
29828       if (_v) {
29829         {
29830           int res = SWIG_AsVal_size_t(argv[2], NULL);
29831           _v = SWIG_CheckState(res);
29832         }
29833         if (_v) {
29834           int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_COORDINATE, SWIG_POINTER_NO_NULL | 0);
29835           _v = SWIG_CheckState(res);
29836           if (_v) {
29837             return _wrap_CoordinateVector_insert__SWIG_1(self, argc, argv);
29838           }
29839         }
29840       }
29841     }
29842   }
29843 
29844 fail:
29845   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CoordinateVector_insert'.\n"
29846     "  Possible C/C++ prototypes are:\n"
29847     "    std::vector< COORDINATE >::insert(std::vector< COORDINATE >::iterator,std::vector< COORDINATE >::value_type const &)\n"
29848     "    std::vector< COORDINATE >::insert(std::vector< COORDINATE >::iterator,std::vector< COORDINATE >::size_type,std::vector< COORDINATE >::value_type const &)\n");
29849   return 0;
29850 }
29851 
29852 
_wrap_CoordinateVector_reserve(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)29853 SWIGINTERN PyObject *_wrap_CoordinateVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29854   PyObject *resultobj = 0;
29855   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
29856   std::vector< COORDINATE >::size_type arg2 ;
29857   void *argp1 = 0 ;
29858   int res1 = 0 ;
29859   size_t val2 ;
29860   int ecode2 = 0 ;
29861   PyObject * obj0 = 0 ;
29862   PyObject * obj1 = 0 ;
29863   char * kwnames[] = {
29864     (char *)"self",  (char *)"n",  NULL
29865   };
29866 
29867   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:CoordinateVector_reserve", kwnames, &obj0, &obj1)) SWIG_fail;
29868   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
29869   if (!SWIG_IsOK(res1)) {
29870     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_reserve" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
29871   }
29872   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
29873   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
29874   if (!SWIG_IsOK(ecode2)) {
29875     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CoordinateVector_reserve" "', argument " "2"" of type '" "std::vector< COORDINATE >::size_type""'");
29876   }
29877   arg2 = static_cast< std::vector< COORDINATE >::size_type >(val2);
29878   {
29879     try {
29880       (arg1)->reserve(arg2);
29881     } catch (const std::exception& e) {
29882       SWIG_exception(SWIG_RuntimeError, e.what());
29883     }
29884   }
29885   resultobj = SWIG_Py_Void();
29886   return resultobj;
29887 fail:
29888   return NULL;
29889 }
29890 
29891 
_wrap_CoordinateVector_capacity(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29892 SWIGINTERN PyObject *_wrap_CoordinateVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29893   PyObject *resultobj = 0;
29894   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
29895   void *argp1 = 0 ;
29896   int res1 = 0 ;
29897   PyObject *swig_obj[1] ;
29898   std::vector< COORDINATE >::size_type result;
29899 
29900   if (!args) SWIG_fail;
29901   swig_obj[0] = args;
29902   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0 |  0 );
29903   if (!SWIG_IsOK(res1)) {
29904     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordinateVector_capacity" "', argument " "1"" of type '" "std::vector< COORDINATE > const *""'");
29905   }
29906   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
29907   {
29908     try {
29909       result = ((std::vector< COORDINATE > const *)arg1)->capacity();
29910     } catch (const std::exception& e) {
29911       SWIG_exception(SWIG_RuntimeError, e.what());
29912     }
29913   }
29914   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
29915   return resultobj;
29916 fail:
29917   return NULL;
29918 }
29919 
29920 
_wrap_delete_CoordinateVector(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29921 SWIGINTERN PyObject *_wrap_delete_CoordinateVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29922   PyObject *resultobj = 0;
29923   std::vector< COORDINATE > *arg1 = (std::vector< COORDINATE > *) 0 ;
29924   void *argp1 = 0 ;
29925   int res1 = 0 ;
29926   PyObject *swig_obj[1] ;
29927 
29928   if (!args) SWIG_fail;
29929   swig_obj[0] = args;
29930   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, SWIG_POINTER_DISOWN |  0 );
29931   if (!SWIG_IsOK(res1)) {
29932     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CoordinateVector" "', argument " "1"" of type '" "std::vector< COORDINATE > *""'");
29933   }
29934   arg1 = reinterpret_cast< std::vector< COORDINATE > * >(argp1);
29935   {
29936     try {
29937       delete arg1;
29938     } catch (const std::exception& e) {
29939       SWIG_exception(SWIG_RuntimeError, e.what());
29940     }
29941   }
29942   resultobj = SWIG_Py_Void();
29943   return resultobj;
29944 fail:
29945   return NULL;
29946 }
29947 
29948 
CoordinateVector_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29949 SWIGINTERN PyObject *CoordinateVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29950   PyObject *obj;
29951   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
29952   SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, SWIG_NewClientData(obj));
29953   return SWIG_Py_Void();
29954 }
29955 
CoordinateVector_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29956 SWIGINTERN PyObject *CoordinateVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29957   return SWIG_Python_InitShadowInstance(args);
29958 }
29959 
_wrap_DoubleDoubleVector_iterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29960 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29961   PyObject *resultobj = 0;
29962   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
29963   PyObject **arg2 = (PyObject **) 0 ;
29964   void *argp1 = 0 ;
29965   int res1 = 0 ;
29966   PyObject *swig_obj[1] ;
29967   swig::SwigPyIterator *result = 0 ;
29968 
29969   arg2 = &swig_obj[0];
29970   if (!args) SWIG_fail;
29971   swig_obj[0] = args;
29972   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
29973   if (!SWIG_IsOK(res1)) {
29974     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_iterator" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
29975   }
29976   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
29977   {
29978     try {
29979       result = (swig::SwigPyIterator *)std_vector_Sl_std_vector_Sl_double_Sg__Sg__iterator(arg1,arg2);
29980     } catch (const std::exception& e) {
29981       SWIG_exception(SWIG_RuntimeError, e.what());
29982     }
29983   }
29984   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
29985   return resultobj;
29986 fail:
29987   return NULL;
29988 }
29989 
29990 
_wrap_DoubleDoubleVector___nonzero__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29991 SWIGINTERN PyObject *_wrap_DoubleDoubleVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29992   PyObject *resultobj = 0;
29993   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
29994   void *argp1 = 0 ;
29995   int res1 = 0 ;
29996   PyObject *swig_obj[1] ;
29997   bool result;
29998 
29999   if (!args) SWIG_fail;
30000   swig_obj[0] = args;
30001   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
30002   if (!SWIG_IsOK(res1)) {
30003     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector___nonzero__" "', argument " "1"" of type '" "std::vector< std::vector< double > > const *""'");
30004   }
30005   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
30006   {
30007     try {
30008       result = (bool)std_vector_Sl_std_vector_Sl_double_Sg__Sg____nonzero__((std::vector< std::vector< double > > const *)arg1);
30009     } catch (const std::exception& e) {
30010       SWIG_exception(SWIG_RuntimeError, e.what());
30011     }
30012   }
30013   resultobj = SWIG_From_bool(static_cast< bool >(result));
30014   return resultobj;
30015 fail:
30016   return NULL;
30017 }
30018 
30019 
_wrap_DoubleDoubleVector___bool__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30020 SWIGINTERN PyObject *_wrap_DoubleDoubleVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30021   PyObject *resultobj = 0;
30022   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
30023   void *argp1 = 0 ;
30024   int res1 = 0 ;
30025   PyObject *swig_obj[1] ;
30026   bool result;
30027 
30028   if (!args) SWIG_fail;
30029   swig_obj[0] = args;
30030   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
30031   if (!SWIG_IsOK(res1)) {
30032     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector___bool__" "', argument " "1"" of type '" "std::vector< std::vector< double > > const *""'");
30033   }
30034   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
30035   {
30036     try {
30037       result = (bool)std_vector_Sl_std_vector_Sl_double_Sg__Sg____bool__((std::vector< std::vector< double > > const *)arg1);
30038     } catch (const std::exception& e) {
30039       SWIG_exception(SWIG_RuntimeError, e.what());
30040     }
30041   }
30042   resultobj = SWIG_From_bool(static_cast< bool >(result));
30043   return resultobj;
30044 fail:
30045   return NULL;
30046 }
30047 
30048 
_wrap_DoubleDoubleVector___len__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30049 SWIGINTERN PyObject *_wrap_DoubleDoubleVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30050   PyObject *resultobj = 0;
30051   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
30052   void *argp1 = 0 ;
30053   int res1 = 0 ;
30054   PyObject *swig_obj[1] ;
30055   std::vector< std::vector< double > >::size_type result;
30056 
30057   if (!args) SWIG_fail;
30058   swig_obj[0] = args;
30059   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
30060   if (!SWIG_IsOK(res1)) {
30061     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector___len__" "', argument " "1"" of type '" "std::vector< std::vector< double > > const *""'");
30062   }
30063   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
30064   {
30065     try {
30066       result = std_vector_Sl_std_vector_Sl_double_Sg__Sg____len__((std::vector< std::vector< double > > const *)arg1);
30067     } catch (const std::exception& e) {
30068       SWIG_exception(SWIG_RuntimeError, e.what());
30069     }
30070   }
30071   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
30072   return resultobj;
30073 fail:
30074   return NULL;
30075 }
30076 
30077 
_wrap_DoubleDoubleVector___getslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)30078 SWIGINTERN PyObject *_wrap_DoubleDoubleVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30079   PyObject *resultobj = 0;
30080   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
30081   std::vector< std::vector< double > >::difference_type arg2 ;
30082   std::vector< std::vector< double > >::difference_type arg3 ;
30083   void *argp1 = 0 ;
30084   int res1 = 0 ;
30085   ptrdiff_t val2 ;
30086   int ecode2 = 0 ;
30087   ptrdiff_t val3 ;
30088   int ecode3 = 0 ;
30089   PyObject * obj0 = 0 ;
30090   PyObject * obj1 = 0 ;
30091   PyObject * obj2 = 0 ;
30092   char * kwnames[] = {
30093     (char *)"self",  (char *)"i",  (char *)"j",  NULL
30094   };
30095   std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *result = 0 ;
30096 
30097   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:DoubleDoubleVector___getslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
30098   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
30099   if (!SWIG_IsOK(res1)) {
30100     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector___getslice__" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
30101   }
30102   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
30103   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
30104   if (!SWIG_IsOK(ecode2)) {
30105     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleDoubleVector___getslice__" "', argument " "2"" of type '" "std::vector< std::vector< double > >::difference_type""'");
30106   }
30107   arg2 = static_cast< std::vector< std::vector< double > >::difference_type >(val2);
30108   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
30109   if (!SWIG_IsOK(ecode3)) {
30110     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleDoubleVector___getslice__" "', argument " "3"" of type '" "std::vector< std::vector< double > >::difference_type""'");
30111   }
30112   arg3 = static_cast< std::vector< std::vector< double > >::difference_type >(val3);
30113   {
30114     try {
30115       try {
30116         result = (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *)std_vector_Sl_std_vector_Sl_double_Sg__Sg____getslice__(arg1,arg2,arg3);
30117       } catch(std::out_of_range &_e) {
30118         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
30119       } catch(std::invalid_argument &_e) {
30120         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
30121       }
30122     } catch (const std::exception& e) {
30123       SWIG_exception(SWIG_RuntimeError, e.what());
30124     }
30125   }
30126   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, SWIG_POINTER_OWN |  0 );
30127   return resultobj;
30128 fail:
30129   return NULL;
30130 }
30131 
30132 
_wrap_DoubleDoubleVector___setslice____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)30133 SWIGINTERN PyObject *_wrap_DoubleDoubleVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
30134   PyObject *resultobj = 0;
30135   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
30136   std::vector< std::vector< double > >::difference_type arg2 ;
30137   std::vector< std::vector< double > >::difference_type arg3 ;
30138   void *argp1 = 0 ;
30139   int res1 = 0 ;
30140   ptrdiff_t val2 ;
30141   int ecode2 = 0 ;
30142   ptrdiff_t val3 ;
30143   int ecode3 = 0 ;
30144 
30145   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
30146   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
30147   if (!SWIG_IsOK(res1)) {
30148     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector___setslice__" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
30149   }
30150   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
30151   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
30152   if (!SWIG_IsOK(ecode2)) {
30153     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleDoubleVector___setslice__" "', argument " "2"" of type '" "std::vector< std::vector< double > >::difference_type""'");
30154   }
30155   arg2 = static_cast< std::vector< std::vector< double > >::difference_type >(val2);
30156   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
30157   if (!SWIG_IsOK(ecode3)) {
30158     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleDoubleVector___setslice__" "', argument " "3"" of type '" "std::vector< std::vector< double > >::difference_type""'");
30159   }
30160   arg3 = static_cast< std::vector< std::vector< double > >::difference_type >(val3);
30161   {
30162     try {
30163       try {
30164         std_vector_Sl_std_vector_Sl_double_Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3);
30165       } catch(std::out_of_range &_e) {
30166         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
30167       } catch(std::invalid_argument &_e) {
30168         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
30169       }
30170     } catch (const std::exception& e) {
30171       SWIG_exception(SWIG_RuntimeError, e.what());
30172     }
30173   }
30174   resultobj = SWIG_Py_Void();
30175   return resultobj;
30176 fail:
30177   return NULL;
30178 }
30179 
30180 
_wrap_DoubleDoubleVector___setslice____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)30181 SWIGINTERN PyObject *_wrap_DoubleDoubleVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
30182   PyObject *resultobj = 0;
30183   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
30184   std::vector< std::vector< double > >::difference_type arg2 ;
30185   std::vector< std::vector< double > >::difference_type arg3 ;
30186   std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *arg4 = 0 ;
30187   void *argp1 = 0 ;
30188   int res1 = 0 ;
30189   ptrdiff_t val2 ;
30190   int ecode2 = 0 ;
30191   ptrdiff_t val3 ;
30192   int ecode3 = 0 ;
30193   int res4 = SWIG_OLDOBJ ;
30194 
30195   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
30196   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
30197   if (!SWIG_IsOK(res1)) {
30198     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector___setslice__" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
30199   }
30200   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
30201   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
30202   if (!SWIG_IsOK(ecode2)) {
30203     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleDoubleVector___setslice__" "', argument " "2"" of type '" "std::vector< std::vector< double > >::difference_type""'");
30204   }
30205   arg2 = static_cast< std::vector< std::vector< double > >::difference_type >(val2);
30206   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
30207   if (!SWIG_IsOK(ecode3)) {
30208     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleDoubleVector___setslice__" "', argument " "3"" of type '" "std::vector< std::vector< double > >::difference_type""'");
30209   }
30210   arg3 = static_cast< std::vector< std::vector< double > >::difference_type >(val3);
30211   {
30212     std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *ptr = (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *)0;
30213     res4 = swig::asptr(swig_obj[3], &ptr);
30214     if (!SWIG_IsOK(res4)) {
30215       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DoubleDoubleVector___setslice__" "', argument " "4"" of type '" "std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > const &""'");
30216     }
30217     if (!ptr) {
30218       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleDoubleVector___setslice__" "', argument " "4"" of type '" "std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > const &""'");
30219     }
30220     arg4 = ptr;
30221   }
30222   {
30223     try {
30224       try {
30225         std_vector_Sl_std_vector_Sl_double_Sg__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > const &)*arg4);
30226       } catch(std::out_of_range &_e) {
30227         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
30228       } catch(std::invalid_argument &_e) {
30229         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
30230       }
30231     } catch (const std::exception& e) {
30232       SWIG_exception(SWIG_RuntimeError, e.what());
30233     }
30234   }
30235   resultobj = SWIG_Py_Void();
30236   if (SWIG_IsNewObj(res4)) delete arg4;
30237   return resultobj;
30238 fail:
30239   if (SWIG_IsNewObj(res4)) delete arg4;
30240   return NULL;
30241 }
30242 
30243 
_wrap_DoubleDoubleVector___setslice__(PyObject * self,PyObject * args)30244 SWIGINTERN PyObject *_wrap_DoubleDoubleVector___setslice__(PyObject *self, PyObject *args) {
30245   Py_ssize_t argc;
30246   PyObject *argv[5] = {
30247     0
30248   };
30249 
30250   if (!(argc = SWIG_Python_UnpackTuple(args, "DoubleDoubleVector___setslice__", 0, 4, argv))) SWIG_fail;
30251   --argc;
30252   if (argc == 3) {
30253     int _v;
30254     int res = swig::asptr(argv[0], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
30255     _v = SWIG_CheckState(res);
30256     if (_v) {
30257       {
30258         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
30259         _v = SWIG_CheckState(res);
30260       }
30261       if (_v) {
30262         {
30263           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
30264           _v = SWIG_CheckState(res);
30265         }
30266         if (_v) {
30267           return _wrap_DoubleDoubleVector___setslice____SWIG_0(self, argc, argv);
30268         }
30269       }
30270     }
30271   }
30272   if (argc == 4) {
30273     int _v;
30274     int res = swig::asptr(argv[0], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
30275     _v = SWIG_CheckState(res);
30276     if (_v) {
30277       {
30278         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
30279         _v = SWIG_CheckState(res);
30280       }
30281       if (_v) {
30282         {
30283           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
30284           _v = SWIG_CheckState(res);
30285         }
30286         if (_v) {
30287           int res = swig::asptr(argv[3], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
30288           _v = SWIG_CheckState(res);
30289           if (_v) {
30290             return _wrap_DoubleDoubleVector___setslice____SWIG_1(self, argc, argv);
30291           }
30292         }
30293       }
30294     }
30295   }
30296 
30297 fail:
30298   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DoubleDoubleVector___setslice__'.\n"
30299     "  Possible C/C++ prototypes are:\n"
30300     "    std::vector< std::vector< double > >::__setslice__(std::vector< std::vector< double > >::difference_type,std::vector< std::vector< double > >::difference_type)\n"
30301     "    std::vector< std::vector< double > >::__setslice__(std::vector< std::vector< double > >::difference_type,std::vector< std::vector< double > >::difference_type,std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > const &)\n");
30302   return 0;
30303 }
30304 
30305 
_wrap_DoubleDoubleVector___delslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)30306 SWIGINTERN PyObject *_wrap_DoubleDoubleVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30307   PyObject *resultobj = 0;
30308   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
30309   std::vector< std::vector< double > >::difference_type arg2 ;
30310   std::vector< std::vector< double > >::difference_type arg3 ;
30311   void *argp1 = 0 ;
30312   int res1 = 0 ;
30313   ptrdiff_t val2 ;
30314   int ecode2 = 0 ;
30315   ptrdiff_t val3 ;
30316   int ecode3 = 0 ;
30317   PyObject * obj0 = 0 ;
30318   PyObject * obj1 = 0 ;
30319   PyObject * obj2 = 0 ;
30320   char * kwnames[] = {
30321     (char *)"self",  (char *)"i",  (char *)"j",  NULL
30322   };
30323 
30324   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:DoubleDoubleVector___delslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
30325   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
30326   if (!SWIG_IsOK(res1)) {
30327     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector___delslice__" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
30328   }
30329   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
30330   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
30331   if (!SWIG_IsOK(ecode2)) {
30332     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleDoubleVector___delslice__" "', argument " "2"" of type '" "std::vector< std::vector< double > >::difference_type""'");
30333   }
30334   arg2 = static_cast< std::vector< std::vector< double > >::difference_type >(val2);
30335   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
30336   if (!SWIG_IsOK(ecode3)) {
30337     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleDoubleVector___delslice__" "', argument " "3"" of type '" "std::vector< std::vector< double > >::difference_type""'");
30338   }
30339   arg3 = static_cast< std::vector< std::vector< double > >::difference_type >(val3);
30340   {
30341     try {
30342       try {
30343         std_vector_Sl_std_vector_Sl_double_Sg__Sg____delslice__(arg1,arg2,arg3);
30344       } catch(std::out_of_range &_e) {
30345         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
30346       } catch(std::invalid_argument &_e) {
30347         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
30348       }
30349     } catch (const std::exception& e) {
30350       SWIG_exception(SWIG_RuntimeError, e.what());
30351     }
30352   }
30353   resultobj = SWIG_Py_Void();
30354   return resultobj;
30355 fail:
30356   return NULL;
30357 }
30358 
30359 
_wrap_DoubleDoubleVector___delitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)30360 SWIGINTERN PyObject *_wrap_DoubleDoubleVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
30361   PyObject *resultobj = 0;
30362   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
30363   std::vector< std::vector< double > >::difference_type arg2 ;
30364   void *argp1 = 0 ;
30365   int res1 = 0 ;
30366   ptrdiff_t val2 ;
30367   int ecode2 = 0 ;
30368 
30369   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30370   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
30371   if (!SWIG_IsOK(res1)) {
30372     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector___delitem__" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
30373   }
30374   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
30375   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
30376   if (!SWIG_IsOK(ecode2)) {
30377     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleDoubleVector___delitem__" "', argument " "2"" of type '" "std::vector< std::vector< double > >::difference_type""'");
30378   }
30379   arg2 = static_cast< std::vector< std::vector< double > >::difference_type >(val2);
30380   {
30381     try {
30382       try {
30383         std_vector_Sl_std_vector_Sl_double_Sg__Sg____delitem____SWIG_0(arg1,arg2);
30384       } catch(std::out_of_range &_e) {
30385         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
30386       } catch(std::invalid_argument &_e) {
30387         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
30388       }
30389     } catch (const std::exception& e) {
30390       SWIG_exception(SWIG_RuntimeError, e.what());
30391     }
30392   }
30393   resultobj = SWIG_Py_Void();
30394   return resultobj;
30395 fail:
30396   return NULL;
30397 }
30398 
30399 
_wrap_DoubleDoubleVector___getitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)30400 SWIGINTERN PyObject *_wrap_DoubleDoubleVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
30401   PyObject *resultobj = 0;
30402   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
30403   PySliceObject *arg2 = (PySliceObject *) 0 ;
30404   void *argp1 = 0 ;
30405   int res1 = 0 ;
30406   std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *result = 0 ;
30407 
30408   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30409   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
30410   if (!SWIG_IsOK(res1)) {
30411     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector___getitem__" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
30412   }
30413   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
30414   {
30415     if (!PySlice_Check(swig_obj[1])) {
30416       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleDoubleVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
30417     }
30418     arg2 = (PySliceObject *) swig_obj[1];
30419   }
30420   {
30421     try {
30422       try {
30423         result = (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *)std_vector_Sl_std_vector_Sl_double_Sg__Sg____getitem____SWIG_0(arg1,arg2);
30424       } catch(std::out_of_range &_e) {
30425         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
30426       } catch(std::invalid_argument &_e) {
30427         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
30428       }
30429     } catch (const std::exception& e) {
30430       SWIG_exception(SWIG_RuntimeError, e.what());
30431     }
30432   }
30433   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, SWIG_POINTER_OWN |  0 );
30434   return resultobj;
30435 fail:
30436   return NULL;
30437 }
30438 
30439 
_wrap_DoubleDoubleVector___setitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)30440 SWIGINTERN PyObject *_wrap_DoubleDoubleVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
30441   PyObject *resultobj = 0;
30442   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
30443   PySliceObject *arg2 = (PySliceObject *) 0 ;
30444   std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *arg3 = 0 ;
30445   void *argp1 = 0 ;
30446   int res1 = 0 ;
30447   int res3 = SWIG_OLDOBJ ;
30448 
30449   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
30450   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
30451   if (!SWIG_IsOK(res1)) {
30452     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector___setitem__" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
30453   }
30454   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
30455   {
30456     if (!PySlice_Check(swig_obj[1])) {
30457       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleDoubleVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
30458     }
30459     arg2 = (PySliceObject *) swig_obj[1];
30460   }
30461   {
30462     std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *ptr = (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *)0;
30463     res3 = swig::asptr(swig_obj[2], &ptr);
30464     if (!SWIG_IsOK(res3)) {
30465       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DoubleDoubleVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > const &""'");
30466     }
30467     if (!ptr) {
30468       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleDoubleVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > const &""'");
30469     }
30470     arg3 = ptr;
30471   }
30472   {
30473     try {
30474       try {
30475         std_vector_Sl_std_vector_Sl_double_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > const &)*arg3);
30476       } catch(std::out_of_range &_e) {
30477         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
30478       } catch(std::invalid_argument &_e) {
30479         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
30480       }
30481     } catch (const std::exception& e) {
30482       SWIG_exception(SWIG_RuntimeError, e.what());
30483     }
30484   }
30485   resultobj = SWIG_Py_Void();
30486   if (SWIG_IsNewObj(res3)) delete arg3;
30487   return resultobj;
30488 fail:
30489   if (SWIG_IsNewObj(res3)) delete arg3;
30490   return NULL;
30491 }
30492 
30493 
_wrap_DoubleDoubleVector___setitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)30494 SWIGINTERN PyObject *_wrap_DoubleDoubleVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
30495   PyObject *resultobj = 0;
30496   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
30497   PySliceObject *arg2 = (PySliceObject *) 0 ;
30498   void *argp1 = 0 ;
30499   int res1 = 0 ;
30500 
30501   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30502   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
30503   if (!SWIG_IsOK(res1)) {
30504     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector___setitem__" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
30505   }
30506   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
30507   {
30508     if (!PySlice_Check(swig_obj[1])) {
30509       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleDoubleVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
30510     }
30511     arg2 = (PySliceObject *) swig_obj[1];
30512   }
30513   {
30514     try {
30515       try {
30516         std_vector_Sl_std_vector_Sl_double_Sg__Sg____setitem____SWIG_1(arg1,arg2);
30517       } catch(std::out_of_range &_e) {
30518         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
30519       } catch(std::invalid_argument &_e) {
30520         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
30521       }
30522     } catch (const std::exception& e) {
30523       SWIG_exception(SWIG_RuntimeError, e.what());
30524     }
30525   }
30526   resultobj = SWIG_Py_Void();
30527   return resultobj;
30528 fail:
30529   return NULL;
30530 }
30531 
30532 
_wrap_DoubleDoubleVector___delitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)30533 SWIGINTERN PyObject *_wrap_DoubleDoubleVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
30534   PyObject *resultobj = 0;
30535   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
30536   PySliceObject *arg2 = (PySliceObject *) 0 ;
30537   void *argp1 = 0 ;
30538   int res1 = 0 ;
30539 
30540   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30541   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
30542   if (!SWIG_IsOK(res1)) {
30543     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector___delitem__" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
30544   }
30545   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
30546   {
30547     if (!PySlice_Check(swig_obj[1])) {
30548       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleDoubleVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
30549     }
30550     arg2 = (PySliceObject *) swig_obj[1];
30551   }
30552   {
30553     try {
30554       try {
30555         std_vector_Sl_std_vector_Sl_double_Sg__Sg____delitem____SWIG_1(arg1,arg2);
30556       } catch(std::out_of_range &_e) {
30557         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
30558       } catch(std::invalid_argument &_e) {
30559         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
30560       }
30561     } catch (const std::exception& e) {
30562       SWIG_exception(SWIG_RuntimeError, e.what());
30563     }
30564   }
30565   resultobj = SWIG_Py_Void();
30566   return resultobj;
30567 fail:
30568   return NULL;
30569 }
30570 
30571 
_wrap_DoubleDoubleVector___delitem__(PyObject * self,PyObject * args)30572 SWIGINTERN PyObject *_wrap_DoubleDoubleVector___delitem__(PyObject *self, PyObject *args) {
30573   Py_ssize_t argc;
30574   PyObject *argv[3] = {
30575     0
30576   };
30577 
30578   if (!(argc = SWIG_Python_UnpackTuple(args, "DoubleDoubleVector___delitem__", 0, 2, argv))) SWIG_fail;
30579   --argc;
30580   if (argc == 2) {
30581     int _v;
30582     int res = swig::asptr(argv[0], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
30583     _v = SWIG_CheckState(res);
30584     if (_v) {
30585       {
30586         _v = PySlice_Check(argv[1]);
30587       }
30588       if (_v) {
30589         return _wrap_DoubleDoubleVector___delitem____SWIG_1(self, argc, argv);
30590       }
30591     }
30592   }
30593   if (argc == 2) {
30594     int _v;
30595     int res = swig::asptr(argv[0], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
30596     _v = SWIG_CheckState(res);
30597     if (_v) {
30598       {
30599         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
30600         _v = SWIG_CheckState(res);
30601       }
30602       if (_v) {
30603         return _wrap_DoubleDoubleVector___delitem____SWIG_0(self, argc, argv);
30604       }
30605     }
30606   }
30607 
30608 fail:
30609   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DoubleDoubleVector___delitem__'.\n"
30610     "  Possible C/C++ prototypes are:\n"
30611     "    std::vector< std::vector< double > >::__delitem__(std::vector< std::vector< double > >::difference_type)\n"
30612     "    std::vector< std::vector< double > >::__delitem__(PySliceObject *)\n");
30613   return 0;
30614 }
30615 
30616 
_wrap_DoubleDoubleVector___getitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)30617 SWIGINTERN PyObject *_wrap_DoubleDoubleVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
30618   PyObject *resultobj = 0;
30619   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
30620   std::vector< std::vector< double > >::difference_type arg2 ;
30621   void *argp1 = 0 ;
30622   int res1 = 0 ;
30623   ptrdiff_t val2 ;
30624   int ecode2 = 0 ;
30625   std::vector< std::vector< double > >::value_type *result = 0 ;
30626 
30627   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30628   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
30629   if (!SWIG_IsOK(res1)) {
30630     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector___getitem__" "', argument " "1"" of type '" "std::vector< std::vector< double > > const *""'");
30631   }
30632   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
30633   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
30634   if (!SWIG_IsOK(ecode2)) {
30635     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleDoubleVector___getitem__" "', argument " "2"" of type '" "std::vector< std::vector< double > >::difference_type""'");
30636   }
30637   arg2 = static_cast< std::vector< std::vector< double > >::difference_type >(val2);
30638   {
30639     try {
30640       try {
30641         result = (std::vector< std::vector< double > >::value_type *) &std_vector_Sl_std_vector_Sl_double_Sg__Sg____getitem____SWIG_1((std::vector< std::vector< double > > const *)arg1,arg2);
30642       } catch(std::out_of_range &_e) {
30643         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
30644       }
30645     } catch (const std::exception& e) {
30646       SWIG_exception(SWIG_RuntimeError, e.what());
30647     }
30648   }
30649   resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
30650   (void)swig::container_owner<swig::traits<std::vector< std::vector< double > >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
30651   return resultobj;
30652 fail:
30653   return NULL;
30654 }
30655 
30656 
_wrap_DoubleDoubleVector___getitem__(PyObject * self,PyObject * args)30657 SWIGINTERN PyObject *_wrap_DoubleDoubleVector___getitem__(PyObject *self, PyObject *args) {
30658   Py_ssize_t argc;
30659   PyObject *argv[3] = {
30660     0
30661   };
30662 
30663   if (!(argc = SWIG_Python_UnpackTuple(args, "DoubleDoubleVector___getitem__", 0, 2, argv))) SWIG_fail;
30664   --argc;
30665   if (argc == 2) {
30666     int _v;
30667     int res = swig::asptr(argv[0], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
30668     _v = SWIG_CheckState(res);
30669     if (_v) {
30670       {
30671         _v = PySlice_Check(argv[1]);
30672       }
30673       if (_v) {
30674         return _wrap_DoubleDoubleVector___getitem____SWIG_0(self, argc, argv);
30675       }
30676     }
30677   }
30678   if (argc == 2) {
30679     int _v;
30680     int res = swig::asptr(argv[0], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
30681     _v = SWIG_CheckState(res);
30682     if (_v) {
30683       {
30684         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
30685         _v = SWIG_CheckState(res);
30686       }
30687       if (_v) {
30688         return _wrap_DoubleDoubleVector___getitem____SWIG_1(self, argc, argv);
30689       }
30690     }
30691   }
30692 
30693 fail:
30694   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DoubleDoubleVector___getitem__'.\n"
30695     "  Possible C/C++ prototypes are:\n"
30696     "    std::vector< std::vector< double > >::__getitem__(PySliceObject *)\n"
30697     "    std::vector< std::vector< double > >::__getitem__(std::vector< std::vector< double > >::difference_type) const\n");
30698   return 0;
30699 }
30700 
30701 
_wrap_DoubleDoubleVector___setitem____SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)30702 SWIGINTERN PyObject *_wrap_DoubleDoubleVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
30703   PyObject *resultobj = 0;
30704   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
30705   std::vector< std::vector< double > >::difference_type arg2 ;
30706   std::vector< std::vector< double > >::value_type *arg3 = 0 ;
30707   void *argp1 = 0 ;
30708   int res1 = 0 ;
30709   ptrdiff_t val2 ;
30710   int ecode2 = 0 ;
30711   int res3 = SWIG_OLDOBJ ;
30712 
30713   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
30714   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
30715   if (!SWIG_IsOK(res1)) {
30716     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector___setitem__" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
30717   }
30718   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
30719   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
30720   if (!SWIG_IsOK(ecode2)) {
30721     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleDoubleVector___setitem__" "', argument " "2"" of type '" "std::vector< std::vector< double > >::difference_type""'");
30722   }
30723   arg2 = static_cast< std::vector< std::vector< double > >::difference_type >(val2);
30724   {
30725     std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
30726     res3 = swig::asptr(swig_obj[2], &ptr);
30727     if (!SWIG_IsOK(res3)) {
30728       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DoubleDoubleVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< double > >::value_type const &""'");
30729     }
30730     if (!ptr) {
30731       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleDoubleVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< double > >::value_type const &""'");
30732     }
30733     arg3 = ptr;
30734   }
30735   {
30736     try {
30737       try {
30738         std_vector_Sl_std_vector_Sl_double_Sg__Sg____setitem____SWIG_2(arg1,arg2,(std::vector< double,std::allocator< double > > const &)*arg3);
30739       } catch(std::out_of_range &_e) {
30740         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
30741       }
30742     } catch (const std::exception& e) {
30743       SWIG_exception(SWIG_RuntimeError, e.what());
30744     }
30745   }
30746   resultobj = SWIG_Py_Void();
30747   if (SWIG_IsNewObj(res3)) delete arg3;
30748   return resultobj;
30749 fail:
30750   if (SWIG_IsNewObj(res3)) delete arg3;
30751   return NULL;
30752 }
30753 
30754 
_wrap_DoubleDoubleVector___setitem__(PyObject * self,PyObject * args)30755 SWIGINTERN PyObject *_wrap_DoubleDoubleVector___setitem__(PyObject *self, PyObject *args) {
30756   Py_ssize_t argc;
30757   PyObject *argv[4] = {
30758     0
30759   };
30760 
30761   if (!(argc = SWIG_Python_UnpackTuple(args, "DoubleDoubleVector___setitem__", 0, 3, argv))) SWIG_fail;
30762   --argc;
30763   if (argc == 2) {
30764     int _v;
30765     int res = swig::asptr(argv[0], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
30766     _v = SWIG_CheckState(res);
30767     if (_v) {
30768       {
30769         _v = PySlice_Check(argv[1]);
30770       }
30771       if (_v) {
30772         return _wrap_DoubleDoubleVector___setitem____SWIG_1(self, argc, argv);
30773       }
30774     }
30775   }
30776   if (argc == 3) {
30777     int _v;
30778     int res = swig::asptr(argv[0], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
30779     _v = SWIG_CheckState(res);
30780     if (_v) {
30781       {
30782         _v = PySlice_Check(argv[1]);
30783       }
30784       if (_v) {
30785         int res = swig::asptr(argv[2], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
30786         _v = SWIG_CheckState(res);
30787         if (_v) {
30788           return _wrap_DoubleDoubleVector___setitem____SWIG_0(self, argc, argv);
30789         }
30790       }
30791     }
30792   }
30793   if (argc == 3) {
30794     int _v;
30795     int res = swig::asptr(argv[0], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
30796     _v = SWIG_CheckState(res);
30797     if (_v) {
30798       {
30799         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
30800         _v = SWIG_CheckState(res);
30801       }
30802       if (_v) {
30803         int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
30804         _v = SWIG_CheckState(res);
30805         if (_v) {
30806           return _wrap_DoubleDoubleVector___setitem____SWIG_2(self, argc, argv);
30807         }
30808       }
30809     }
30810   }
30811 
30812 fail:
30813   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DoubleDoubleVector___setitem__'.\n"
30814     "  Possible C/C++ prototypes are:\n"
30815     "    std::vector< std::vector< double > >::__setitem__(PySliceObject *,std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > const &)\n"
30816     "    std::vector< std::vector< double > >::__setitem__(PySliceObject *)\n"
30817     "    std::vector< std::vector< double > >::__setitem__(std::vector< std::vector< double > >::difference_type,std::vector< std::vector< double > >::value_type const &)\n");
30818   return 0;
30819 }
30820 
30821 
_wrap_DoubleDoubleVector_pop(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30822 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30823   PyObject *resultobj = 0;
30824   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
30825   void *argp1 = 0 ;
30826   int res1 = 0 ;
30827   PyObject *swig_obj[1] ;
30828   std::vector< std::vector< double > >::value_type result;
30829 
30830   if (!args) SWIG_fail;
30831   swig_obj[0] = args;
30832   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
30833   if (!SWIG_IsOK(res1)) {
30834     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_pop" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
30835   }
30836   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
30837   {
30838     try {
30839       try {
30840         result = std_vector_Sl_std_vector_Sl_double_Sg__Sg__pop(arg1);
30841       } catch(std::out_of_range &_e) {
30842         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
30843       }
30844     } catch (const std::exception& e) {
30845       SWIG_exception(SWIG_RuntimeError, e.what());
30846     }
30847   }
30848   resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
30849   return resultobj;
30850 fail:
30851   return NULL;
30852 }
30853 
30854 
_wrap_DoubleDoubleVector_append(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)30855 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30856   PyObject *resultobj = 0;
30857   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
30858   std::vector< std::vector< double > >::value_type *arg2 = 0 ;
30859   void *argp1 = 0 ;
30860   int res1 = 0 ;
30861   int res2 = SWIG_OLDOBJ ;
30862   PyObject * obj0 = 0 ;
30863   PyObject * obj1 = 0 ;
30864   char * kwnames[] = {
30865     (char *)"self",  (char *)"x",  NULL
30866   };
30867 
30868   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:DoubleDoubleVector_append", kwnames, &obj0, &obj1)) SWIG_fail;
30869   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
30870   if (!SWIG_IsOK(res1)) {
30871     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_append" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
30872   }
30873   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
30874   {
30875     std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
30876     res2 = swig::asptr(obj1, &ptr);
30877     if (!SWIG_IsOK(res2)) {
30878       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DoubleDoubleVector_append" "', argument " "2"" of type '" "std::vector< std::vector< double > >::value_type const &""'");
30879     }
30880     if (!ptr) {
30881       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleDoubleVector_append" "', argument " "2"" of type '" "std::vector< std::vector< double > >::value_type const &""'");
30882     }
30883     arg2 = ptr;
30884   }
30885   {
30886     try {
30887       std_vector_Sl_std_vector_Sl_double_Sg__Sg__append(arg1,(std::vector< double,std::allocator< double > > const &)*arg2);
30888     } catch (const std::exception& e) {
30889       SWIG_exception(SWIG_RuntimeError, e.what());
30890     }
30891   }
30892   resultobj = SWIG_Py_Void();
30893   if (SWIG_IsNewObj(res2)) delete arg2;
30894   return resultobj;
30895 fail:
30896   if (SWIG_IsNewObj(res2)) delete arg2;
30897   return NULL;
30898 }
30899 
30900 
_wrap_new_DoubleDoubleVector__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))30901 SWIGINTERN PyObject *_wrap_new_DoubleDoubleVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
30902   PyObject *resultobj = 0;
30903   std::vector< std::vector< double > > *result = 0 ;
30904 
30905   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
30906   {
30907     try {
30908       result = (std::vector< std::vector< double > > *)new std::vector< std::vector< double > >();
30909     } catch (const std::exception& e) {
30910       SWIG_exception(SWIG_RuntimeError, e.what());
30911     }
30912   }
30913   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, SWIG_POINTER_NEW |  0 );
30914   return resultobj;
30915 fail:
30916   return NULL;
30917 }
30918 
30919 
_wrap_new_DoubleDoubleVector__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)30920 SWIGINTERN PyObject *_wrap_new_DoubleDoubleVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
30921   PyObject *resultobj = 0;
30922   std::vector< std::vector< double,std::allocator< double > > > *arg1 = 0 ;
30923   int res1 = SWIG_OLDOBJ ;
30924   std::vector< std::vector< double > > *result = 0 ;
30925 
30926   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30927   {
30928     std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *ptr = (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *)0;
30929     res1 = swig::asptr(swig_obj[0], &ptr);
30930     if (!SWIG_IsOK(res1)) {
30931       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DoubleDoubleVector" "', argument " "1"" of type '" "std::vector< std::vector< double,std::allocator< double > > > const &""'");
30932     }
30933     if (!ptr) {
30934       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DoubleDoubleVector" "', argument " "1"" of type '" "std::vector< std::vector< double,std::allocator< double > > > const &""'");
30935     }
30936     arg1 = ptr;
30937   }
30938   {
30939     try {
30940       result = (std::vector< std::vector< double > > *)new std::vector< std::vector< double > >((std::vector< std::vector< double,std::allocator< double > > > const &)*arg1);
30941     } catch (const std::exception& e) {
30942       SWIG_exception(SWIG_RuntimeError, e.what());
30943     }
30944   }
30945   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, SWIG_POINTER_NEW |  0 );
30946   if (SWIG_IsNewObj(res1)) delete arg1;
30947   return resultobj;
30948 fail:
30949   if (SWIG_IsNewObj(res1)) delete arg1;
30950   return NULL;
30951 }
30952 
30953 
_wrap_DoubleDoubleVector_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30954 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30955   PyObject *resultobj = 0;
30956   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
30957   void *argp1 = 0 ;
30958   int res1 = 0 ;
30959   PyObject *swig_obj[1] ;
30960   bool result;
30961 
30962   if (!args) SWIG_fail;
30963   swig_obj[0] = args;
30964   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
30965   if (!SWIG_IsOK(res1)) {
30966     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_empty" "', argument " "1"" of type '" "std::vector< std::vector< double > > const *""'");
30967   }
30968   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
30969   {
30970     try {
30971       result = (bool)((std::vector< std::vector< double > > const *)arg1)->empty();
30972     } catch (const std::exception& e) {
30973       SWIG_exception(SWIG_RuntimeError, e.what());
30974     }
30975   }
30976   resultobj = SWIG_From_bool(static_cast< bool >(result));
30977   return resultobj;
30978 fail:
30979   return NULL;
30980 }
30981 
30982 
_wrap_DoubleDoubleVector_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30983 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30984   PyObject *resultobj = 0;
30985   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
30986   void *argp1 = 0 ;
30987   int res1 = 0 ;
30988   PyObject *swig_obj[1] ;
30989   std::vector< std::vector< double > >::size_type result;
30990 
30991   if (!args) SWIG_fail;
30992   swig_obj[0] = args;
30993   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
30994   if (!SWIG_IsOK(res1)) {
30995     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_size" "', argument " "1"" of type '" "std::vector< std::vector< double > > const *""'");
30996   }
30997   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
30998   {
30999     try {
31000       result = ((std::vector< std::vector< double > > const *)arg1)->size();
31001     } catch (const std::exception& e) {
31002       SWIG_exception(SWIG_RuntimeError, e.what());
31003     }
31004   }
31005   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
31006   return resultobj;
31007 fail:
31008   return NULL;
31009 }
31010 
31011 
_wrap_DoubleDoubleVector_swap(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)31012 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31013   PyObject *resultobj = 0;
31014   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
31015   std::vector< std::vector< double,std::allocator< double > > > *arg2 = 0 ;
31016   void *argp1 = 0 ;
31017   int res1 = 0 ;
31018   void *argp2 = 0 ;
31019   int res2 = 0 ;
31020   PyObject * obj0 = 0 ;
31021   PyObject * obj1 = 0 ;
31022   char * kwnames[] = {
31023     (char *)"self",  (char *)"v",  NULL
31024   };
31025 
31026   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:DoubleDoubleVector_swap", kwnames, &obj0, &obj1)) SWIG_fail;
31027   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
31028   if (!SWIG_IsOK(res1)) {
31029     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_swap" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
31030   }
31031   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
31032   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t,  0 );
31033   if (!SWIG_IsOK(res2)) {
31034     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DoubleDoubleVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< double,std::allocator< double > > > &""'");
31035   }
31036   if (!argp2) {
31037     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleDoubleVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< double,std::allocator< double > > > &""'");
31038   }
31039   arg2 = reinterpret_cast< std::vector< std::vector< double,std::allocator< double > > > * >(argp2);
31040   {
31041     try {
31042       (arg1)->swap(*arg2);
31043     } catch (const std::exception& e) {
31044       SWIG_exception(SWIG_RuntimeError, e.what());
31045     }
31046   }
31047   resultobj = SWIG_Py_Void();
31048   return resultobj;
31049 fail:
31050   return NULL;
31051 }
31052 
31053 
_wrap_DoubleDoubleVector_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31054 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31055   PyObject *resultobj = 0;
31056   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
31057   void *argp1 = 0 ;
31058   int res1 = 0 ;
31059   PyObject *swig_obj[1] ;
31060   std::vector< std::vector< double > >::iterator result;
31061 
31062   if (!args) SWIG_fail;
31063   swig_obj[0] = args;
31064   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
31065   if (!SWIG_IsOK(res1)) {
31066     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_begin" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
31067   }
31068   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
31069   {
31070     try {
31071       result = (arg1)->begin();
31072     } catch (const std::exception& e) {
31073       SWIG_exception(SWIG_RuntimeError, e.what());
31074     }
31075   }
31076   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< double > >::iterator & >(result)),
31077     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
31078   return resultobj;
31079 fail:
31080   return NULL;
31081 }
31082 
31083 
_wrap_DoubleDoubleVector_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31084 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31085   PyObject *resultobj = 0;
31086   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
31087   void *argp1 = 0 ;
31088   int res1 = 0 ;
31089   PyObject *swig_obj[1] ;
31090   std::vector< std::vector< double > >::iterator result;
31091 
31092   if (!args) SWIG_fail;
31093   swig_obj[0] = args;
31094   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
31095   if (!SWIG_IsOK(res1)) {
31096     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_end" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
31097   }
31098   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
31099   {
31100     try {
31101       result = (arg1)->end();
31102     } catch (const std::exception& e) {
31103       SWIG_exception(SWIG_RuntimeError, e.what());
31104     }
31105   }
31106   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< double > >::iterator & >(result)),
31107     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
31108   return resultobj;
31109 fail:
31110   return NULL;
31111 }
31112 
31113 
_wrap_DoubleDoubleVector_rbegin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31114 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31115   PyObject *resultobj = 0;
31116   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
31117   void *argp1 = 0 ;
31118   int res1 = 0 ;
31119   PyObject *swig_obj[1] ;
31120   std::vector< std::vector< double > >::reverse_iterator result;
31121 
31122   if (!args) SWIG_fail;
31123   swig_obj[0] = args;
31124   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
31125   if (!SWIG_IsOK(res1)) {
31126     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_rbegin" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
31127   }
31128   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
31129   {
31130     try {
31131       result = (arg1)->rbegin();
31132     } catch (const std::exception& e) {
31133       SWIG_exception(SWIG_RuntimeError, e.what());
31134     }
31135   }
31136   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< double > >::reverse_iterator & >(result)),
31137     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
31138   return resultobj;
31139 fail:
31140   return NULL;
31141 }
31142 
31143 
_wrap_DoubleDoubleVector_rend(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31144 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31145   PyObject *resultobj = 0;
31146   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
31147   void *argp1 = 0 ;
31148   int res1 = 0 ;
31149   PyObject *swig_obj[1] ;
31150   std::vector< std::vector< double > >::reverse_iterator result;
31151 
31152   if (!args) SWIG_fail;
31153   swig_obj[0] = args;
31154   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
31155   if (!SWIG_IsOK(res1)) {
31156     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_rend" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
31157   }
31158   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
31159   {
31160     try {
31161       result = (arg1)->rend();
31162     } catch (const std::exception& e) {
31163       SWIG_exception(SWIG_RuntimeError, e.what());
31164     }
31165   }
31166   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< double > >::reverse_iterator & >(result)),
31167     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
31168   return resultobj;
31169 fail:
31170   return NULL;
31171 }
31172 
31173 
_wrap_DoubleDoubleVector_clear(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31174 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31175   PyObject *resultobj = 0;
31176   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
31177   void *argp1 = 0 ;
31178   int res1 = 0 ;
31179   PyObject *swig_obj[1] ;
31180 
31181   if (!args) SWIG_fail;
31182   swig_obj[0] = args;
31183   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
31184   if (!SWIG_IsOK(res1)) {
31185     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_clear" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
31186   }
31187   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
31188   {
31189     try {
31190       (arg1)->clear();
31191     } catch (const std::exception& e) {
31192       SWIG_exception(SWIG_RuntimeError, e.what());
31193     }
31194   }
31195   resultobj = SWIG_Py_Void();
31196   return resultobj;
31197 fail:
31198   return NULL;
31199 }
31200 
31201 
_wrap_DoubleDoubleVector_get_allocator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31202 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31203   PyObject *resultobj = 0;
31204   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
31205   void *argp1 = 0 ;
31206   int res1 = 0 ;
31207   PyObject *swig_obj[1] ;
31208   SwigValueWrapper< std::allocator< std::vector< double,std::allocator< double > > > > result;
31209 
31210   if (!args) SWIG_fail;
31211   swig_obj[0] = args;
31212   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
31213   if (!SWIG_IsOK(res1)) {
31214     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_get_allocator" "', argument " "1"" of type '" "std::vector< std::vector< double > > const *""'");
31215   }
31216   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
31217   {
31218     try {
31219       result = ((std::vector< std::vector< double > > const *)arg1)->get_allocator();
31220     } catch (const std::exception& e) {
31221       SWIG_exception(SWIG_RuntimeError, e.what());
31222     }
31223   }
31224   resultobj = SWIG_NewPointerObj((new std::vector< std::vector< double > >::allocator_type(static_cast< const std::vector< std::vector< double > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t, SWIG_POINTER_OWN |  0 );
31225   return resultobj;
31226 fail:
31227   return NULL;
31228 }
31229 
31230 
_wrap_new_DoubleDoubleVector__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)31231 SWIGINTERN PyObject *_wrap_new_DoubleDoubleVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
31232   PyObject *resultobj = 0;
31233   std::vector< std::vector< double > >::size_type arg1 ;
31234   size_t val1 ;
31235   int ecode1 = 0 ;
31236   std::vector< std::vector< double > > *result = 0 ;
31237 
31238   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31239   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
31240   if (!SWIG_IsOK(ecode1)) {
31241     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DoubleDoubleVector" "', argument " "1"" of type '" "std::vector< std::vector< double > >::size_type""'");
31242   }
31243   arg1 = static_cast< std::vector< std::vector< double > >::size_type >(val1);
31244   {
31245     try {
31246       result = (std::vector< std::vector< double > > *)new std::vector< std::vector< double > >(arg1);
31247     } catch (const std::exception& e) {
31248       SWIG_exception(SWIG_RuntimeError, e.what());
31249     }
31250   }
31251   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, SWIG_POINTER_NEW |  0 );
31252   return resultobj;
31253 fail:
31254   return NULL;
31255 }
31256 
31257 
_wrap_DoubleDoubleVector_pop_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31258 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31259   PyObject *resultobj = 0;
31260   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
31261   void *argp1 = 0 ;
31262   int res1 = 0 ;
31263   PyObject *swig_obj[1] ;
31264 
31265   if (!args) SWIG_fail;
31266   swig_obj[0] = args;
31267   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
31268   if (!SWIG_IsOK(res1)) {
31269     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_pop_back" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
31270   }
31271   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
31272   {
31273     try {
31274       (arg1)->pop_back();
31275     } catch (const std::exception& e) {
31276       SWIG_exception(SWIG_RuntimeError, e.what());
31277     }
31278   }
31279   resultobj = SWIG_Py_Void();
31280   return resultobj;
31281 fail:
31282   return NULL;
31283 }
31284 
31285 
_wrap_DoubleDoubleVector_resize__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)31286 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
31287   PyObject *resultobj = 0;
31288   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
31289   std::vector< std::vector< double > >::size_type arg2 ;
31290   void *argp1 = 0 ;
31291   int res1 = 0 ;
31292   size_t val2 ;
31293   int ecode2 = 0 ;
31294 
31295   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31296   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
31297   if (!SWIG_IsOK(res1)) {
31298     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_resize" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
31299   }
31300   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
31301   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
31302   if (!SWIG_IsOK(ecode2)) {
31303     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleDoubleVector_resize" "', argument " "2"" of type '" "std::vector< std::vector< double > >::size_type""'");
31304   }
31305   arg2 = static_cast< std::vector< std::vector< double > >::size_type >(val2);
31306   {
31307     try {
31308       (arg1)->resize(arg2);
31309     } catch (const std::exception& e) {
31310       SWIG_exception(SWIG_RuntimeError, e.what());
31311     }
31312   }
31313   resultobj = SWIG_Py_Void();
31314   return resultobj;
31315 fail:
31316   return NULL;
31317 }
31318 
31319 
_wrap_DoubleDoubleVector_erase__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)31320 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
31321   PyObject *resultobj = 0;
31322   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
31323   std::vector< std::vector< double > >::iterator arg2 ;
31324   void *argp1 = 0 ;
31325   int res1 = 0 ;
31326   swig::SwigPyIterator *iter2 = 0 ;
31327   int res2 ;
31328   std::vector< std::vector< double > >::iterator result;
31329 
31330   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31331   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
31332   if (!SWIG_IsOK(res1)) {
31333     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_erase" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
31334   }
31335   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
31336   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
31337   if (!SWIG_IsOK(res2) || !iter2) {
31338     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleDoubleVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< double > >::iterator""'");
31339   } else {
31340     swig::SwigPyIterator_T<std::vector< std::vector< double > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< double > >::iterator > *>(iter2);
31341     if (iter_t) {
31342       arg2 = iter_t->get_current();
31343     } else {
31344       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleDoubleVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< double > >::iterator""'");
31345     }
31346   }
31347   {
31348     try {
31349       result = std_vector_Sl_std_vector_Sl_double_Sg__Sg__erase__SWIG_0(arg1,arg2);
31350     } catch (const std::exception& e) {
31351       SWIG_exception(SWIG_RuntimeError, e.what());
31352     }
31353   }
31354   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< double > >::iterator & >(result)),
31355     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
31356   return resultobj;
31357 fail:
31358   return NULL;
31359 }
31360 
31361 
_wrap_DoubleDoubleVector_erase__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)31362 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
31363   PyObject *resultobj = 0;
31364   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
31365   std::vector< std::vector< double > >::iterator arg2 ;
31366   std::vector< std::vector< double > >::iterator arg3 ;
31367   void *argp1 = 0 ;
31368   int res1 = 0 ;
31369   swig::SwigPyIterator *iter2 = 0 ;
31370   int res2 ;
31371   swig::SwigPyIterator *iter3 = 0 ;
31372   int res3 ;
31373   std::vector< std::vector< double > >::iterator result;
31374 
31375   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
31376   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
31377   if (!SWIG_IsOK(res1)) {
31378     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_erase" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
31379   }
31380   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
31381   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
31382   if (!SWIG_IsOK(res2) || !iter2) {
31383     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleDoubleVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< double > >::iterator""'");
31384   } else {
31385     swig::SwigPyIterator_T<std::vector< std::vector< double > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< double > >::iterator > *>(iter2);
31386     if (iter_t) {
31387       arg2 = iter_t->get_current();
31388     } else {
31389       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleDoubleVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< double > >::iterator""'");
31390     }
31391   }
31392   res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
31393   if (!SWIG_IsOK(res3) || !iter3) {
31394     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleDoubleVector_erase" "', argument " "3"" of type '" "std::vector< std::vector< double > >::iterator""'");
31395   } else {
31396     swig::SwigPyIterator_T<std::vector< std::vector< double > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< double > >::iterator > *>(iter3);
31397     if (iter_t) {
31398       arg3 = iter_t->get_current();
31399     } else {
31400       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleDoubleVector_erase" "', argument " "3"" of type '" "std::vector< std::vector< double > >::iterator""'");
31401     }
31402   }
31403   {
31404     try {
31405       result = std_vector_Sl_std_vector_Sl_double_Sg__Sg__erase__SWIG_1(arg1,arg2,arg3);
31406     } catch (const std::exception& e) {
31407       SWIG_exception(SWIG_RuntimeError, e.what());
31408     }
31409   }
31410   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< double > >::iterator & >(result)),
31411     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
31412   return resultobj;
31413 fail:
31414   return NULL;
31415 }
31416 
31417 
_wrap_DoubleDoubleVector_erase(PyObject * self,PyObject * args)31418 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_erase(PyObject *self, PyObject *args) {
31419   Py_ssize_t argc;
31420   PyObject *argv[4] = {
31421     0
31422   };
31423 
31424   if (!(argc = SWIG_Python_UnpackTuple(args, "DoubleDoubleVector_erase", 0, 3, argv))) SWIG_fail;
31425   --argc;
31426   if (argc == 2) {
31427     int _v;
31428     int res = swig::asptr(argv[0], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
31429     _v = SWIG_CheckState(res);
31430     if (_v) {
31431       swig::SwigPyIterator *iter = 0;
31432       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
31433       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< double > >::iterator > *>(iter) != 0));
31434       if (_v) {
31435         return _wrap_DoubleDoubleVector_erase__SWIG_0(self, argc, argv);
31436       }
31437     }
31438   }
31439   if (argc == 3) {
31440     int _v;
31441     int res = swig::asptr(argv[0], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
31442     _v = SWIG_CheckState(res);
31443     if (_v) {
31444       swig::SwigPyIterator *iter = 0;
31445       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
31446       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< double > >::iterator > *>(iter) != 0));
31447       if (_v) {
31448         swig::SwigPyIterator *iter = 0;
31449         int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
31450         _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< double > >::iterator > *>(iter) != 0));
31451         if (_v) {
31452           return _wrap_DoubleDoubleVector_erase__SWIG_1(self, argc, argv);
31453         }
31454       }
31455     }
31456   }
31457 
31458 fail:
31459   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DoubleDoubleVector_erase'.\n"
31460     "  Possible C/C++ prototypes are:\n"
31461     "    std::vector< std::vector< double > >::erase(std::vector< std::vector< double > >::iterator)\n"
31462     "    std::vector< std::vector< double > >::erase(std::vector< std::vector< double > >::iterator,std::vector< std::vector< double > >::iterator)\n");
31463   return 0;
31464 }
31465 
31466 
_wrap_new_DoubleDoubleVector__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)31467 SWIGINTERN PyObject *_wrap_new_DoubleDoubleVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
31468   PyObject *resultobj = 0;
31469   std::vector< std::vector< double > >::size_type arg1 ;
31470   std::vector< std::vector< double > >::value_type *arg2 = 0 ;
31471   size_t val1 ;
31472   int ecode1 = 0 ;
31473   int res2 = SWIG_OLDOBJ ;
31474   std::vector< std::vector< double > > *result = 0 ;
31475 
31476   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31477   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
31478   if (!SWIG_IsOK(ecode1)) {
31479     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DoubleDoubleVector" "', argument " "1"" of type '" "std::vector< std::vector< double > >::size_type""'");
31480   }
31481   arg1 = static_cast< std::vector< std::vector< double > >::size_type >(val1);
31482   {
31483     std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
31484     res2 = swig::asptr(swig_obj[1], &ptr);
31485     if (!SWIG_IsOK(res2)) {
31486       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DoubleDoubleVector" "', argument " "2"" of type '" "std::vector< std::vector< double > >::value_type const &""'");
31487     }
31488     if (!ptr) {
31489       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DoubleDoubleVector" "', argument " "2"" of type '" "std::vector< std::vector< double > >::value_type const &""'");
31490     }
31491     arg2 = ptr;
31492   }
31493   {
31494     try {
31495       result = (std::vector< std::vector< double > > *)new std::vector< std::vector< double > >(arg1,(std::vector< std::vector< double > >::value_type const &)*arg2);
31496     } catch (const std::exception& e) {
31497       SWIG_exception(SWIG_RuntimeError, e.what());
31498     }
31499   }
31500   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, SWIG_POINTER_NEW |  0 );
31501   if (SWIG_IsNewObj(res2)) delete arg2;
31502   return resultobj;
31503 fail:
31504   if (SWIG_IsNewObj(res2)) delete arg2;
31505   return NULL;
31506 }
31507 
31508 
_wrap_new_DoubleDoubleVector(PyObject * self,PyObject * args)31509 SWIGINTERN PyObject *_wrap_new_DoubleDoubleVector(PyObject *self, PyObject *args) {
31510   Py_ssize_t argc;
31511   PyObject *argv[3] = {
31512     0
31513   };
31514 
31515   if (!(argc = SWIG_Python_UnpackTuple(args, "new_DoubleDoubleVector", 0, 2, argv))) SWIG_fail;
31516   --argc;
31517   if (argc == 0) {
31518     return _wrap_new_DoubleDoubleVector__SWIG_0(self, argc, argv);
31519   }
31520   if (argc == 1) {
31521     int _v;
31522     {
31523       int res = SWIG_AsVal_size_t(argv[0], NULL);
31524       _v = SWIG_CheckState(res);
31525     }
31526     if (_v) {
31527       return _wrap_new_DoubleDoubleVector__SWIG_2(self, argc, argv);
31528     }
31529   }
31530   if (argc == 1) {
31531     int _v;
31532     int res = swig::asptr(argv[0], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
31533     _v = SWIG_CheckState(res);
31534     if (_v) {
31535       return _wrap_new_DoubleDoubleVector__SWIG_1(self, argc, argv);
31536     }
31537   }
31538   if (argc == 2) {
31539     int _v;
31540     {
31541       int res = SWIG_AsVal_size_t(argv[0], NULL);
31542       _v = SWIG_CheckState(res);
31543     }
31544     if (_v) {
31545       int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
31546       _v = SWIG_CheckState(res);
31547       if (_v) {
31548         return _wrap_new_DoubleDoubleVector__SWIG_3(self, argc, argv);
31549       }
31550     }
31551   }
31552 
31553 fail:
31554   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_DoubleDoubleVector'.\n"
31555     "  Possible C/C++ prototypes are:\n"
31556     "    std::vector< std::vector< double > >::vector()\n"
31557     "    std::vector< std::vector< double > >::vector(std::vector< std::vector< double,std::allocator< double > > > const &)\n"
31558     "    std::vector< std::vector< double > >::vector(std::vector< std::vector< double > >::size_type)\n"
31559     "    std::vector< std::vector< double > >::vector(std::vector< std::vector< double > >::size_type,std::vector< std::vector< double > >::value_type const &)\n");
31560   return 0;
31561 }
31562 
31563 
_wrap_DoubleDoubleVector_push_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)31564 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31565   PyObject *resultobj = 0;
31566   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
31567   std::vector< std::vector< double > >::value_type *arg2 = 0 ;
31568   void *argp1 = 0 ;
31569   int res1 = 0 ;
31570   int res2 = SWIG_OLDOBJ ;
31571   PyObject * obj0 = 0 ;
31572   PyObject * obj1 = 0 ;
31573   char * kwnames[] = {
31574     (char *)"self",  (char *)"x",  NULL
31575   };
31576 
31577   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:DoubleDoubleVector_push_back", kwnames, &obj0, &obj1)) SWIG_fail;
31578   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
31579   if (!SWIG_IsOK(res1)) {
31580     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_push_back" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
31581   }
31582   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
31583   {
31584     std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
31585     res2 = swig::asptr(obj1, &ptr);
31586     if (!SWIG_IsOK(res2)) {
31587       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DoubleDoubleVector_push_back" "', argument " "2"" of type '" "std::vector< std::vector< double > >::value_type const &""'");
31588     }
31589     if (!ptr) {
31590       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleDoubleVector_push_back" "', argument " "2"" of type '" "std::vector< std::vector< double > >::value_type const &""'");
31591     }
31592     arg2 = ptr;
31593   }
31594   {
31595     try {
31596       (arg1)->push_back((std::vector< std::vector< double > >::value_type const &)*arg2);
31597     } catch (const std::exception& e) {
31598       SWIG_exception(SWIG_RuntimeError, e.what());
31599     }
31600   }
31601   resultobj = SWIG_Py_Void();
31602   if (SWIG_IsNewObj(res2)) delete arg2;
31603   return resultobj;
31604 fail:
31605   if (SWIG_IsNewObj(res2)) delete arg2;
31606   return NULL;
31607 }
31608 
31609 
_wrap_DoubleDoubleVector_front(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31610 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31611   PyObject *resultobj = 0;
31612   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
31613   void *argp1 = 0 ;
31614   int res1 = 0 ;
31615   PyObject *swig_obj[1] ;
31616   std::vector< std::vector< double > >::value_type *result = 0 ;
31617 
31618   if (!args) SWIG_fail;
31619   swig_obj[0] = args;
31620   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
31621   if (!SWIG_IsOK(res1)) {
31622     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_front" "', argument " "1"" of type '" "std::vector< std::vector< double > > const *""'");
31623   }
31624   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
31625   {
31626     try {
31627       result = (std::vector< std::vector< double > >::value_type *) &((std::vector< std::vector< double > > const *)arg1)->front();
31628     } catch (const std::exception& e) {
31629       SWIG_exception(SWIG_RuntimeError, e.what());
31630     }
31631   }
31632   resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
31633   (void)swig::container_owner<swig::traits<std::vector< std::vector< double > >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
31634   return resultobj;
31635 fail:
31636   return NULL;
31637 }
31638 
31639 
_wrap_DoubleDoubleVector_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31640 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31641   PyObject *resultobj = 0;
31642   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
31643   void *argp1 = 0 ;
31644   int res1 = 0 ;
31645   PyObject *swig_obj[1] ;
31646   std::vector< std::vector< double > >::value_type *result = 0 ;
31647 
31648   if (!args) SWIG_fail;
31649   swig_obj[0] = args;
31650   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
31651   if (!SWIG_IsOK(res1)) {
31652     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_back" "', argument " "1"" of type '" "std::vector< std::vector< double > > const *""'");
31653   }
31654   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
31655   {
31656     try {
31657       result = (std::vector< std::vector< double > >::value_type *) &((std::vector< std::vector< double > > const *)arg1)->back();
31658     } catch (const std::exception& e) {
31659       SWIG_exception(SWIG_RuntimeError, e.what());
31660     }
31661   }
31662   resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
31663   (void)swig::container_owner<swig::traits<std::vector< std::vector< double > >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
31664   return resultobj;
31665 fail:
31666   return NULL;
31667 }
31668 
31669 
_wrap_DoubleDoubleVector_assign(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)31670 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31671   PyObject *resultobj = 0;
31672   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
31673   std::vector< std::vector< double > >::size_type arg2 ;
31674   std::vector< std::vector< double > >::value_type *arg3 = 0 ;
31675   void *argp1 = 0 ;
31676   int res1 = 0 ;
31677   size_t val2 ;
31678   int ecode2 = 0 ;
31679   int res3 = SWIG_OLDOBJ ;
31680   PyObject * obj0 = 0 ;
31681   PyObject * obj1 = 0 ;
31682   PyObject * obj2 = 0 ;
31683   char * kwnames[] = {
31684     (char *)"self",  (char *)"n",  (char *)"x",  NULL
31685   };
31686 
31687   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:DoubleDoubleVector_assign", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
31688   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
31689   if (!SWIG_IsOK(res1)) {
31690     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_assign" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
31691   }
31692   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
31693   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
31694   if (!SWIG_IsOK(ecode2)) {
31695     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleDoubleVector_assign" "', argument " "2"" of type '" "std::vector< std::vector< double > >::size_type""'");
31696   }
31697   arg2 = static_cast< std::vector< std::vector< double > >::size_type >(val2);
31698   {
31699     std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
31700     res3 = swig::asptr(obj2, &ptr);
31701     if (!SWIG_IsOK(res3)) {
31702       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DoubleDoubleVector_assign" "', argument " "3"" of type '" "std::vector< std::vector< double > >::value_type const &""'");
31703     }
31704     if (!ptr) {
31705       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleDoubleVector_assign" "', argument " "3"" of type '" "std::vector< std::vector< double > >::value_type const &""'");
31706     }
31707     arg3 = ptr;
31708   }
31709   {
31710     try {
31711       (arg1)->assign(arg2,(std::vector< std::vector< double > >::value_type const &)*arg3);
31712     } catch (const std::exception& e) {
31713       SWIG_exception(SWIG_RuntimeError, e.what());
31714     }
31715   }
31716   resultobj = SWIG_Py_Void();
31717   if (SWIG_IsNewObj(res3)) delete arg3;
31718   return resultobj;
31719 fail:
31720   if (SWIG_IsNewObj(res3)) delete arg3;
31721   return NULL;
31722 }
31723 
31724 
_wrap_DoubleDoubleVector_resize__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)31725 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
31726   PyObject *resultobj = 0;
31727   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
31728   std::vector< std::vector< double > >::size_type arg2 ;
31729   std::vector< std::vector< double > >::value_type *arg3 = 0 ;
31730   void *argp1 = 0 ;
31731   int res1 = 0 ;
31732   size_t val2 ;
31733   int ecode2 = 0 ;
31734   int res3 = SWIG_OLDOBJ ;
31735 
31736   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
31737   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
31738   if (!SWIG_IsOK(res1)) {
31739     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_resize" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
31740   }
31741   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
31742   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
31743   if (!SWIG_IsOK(ecode2)) {
31744     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleDoubleVector_resize" "', argument " "2"" of type '" "std::vector< std::vector< double > >::size_type""'");
31745   }
31746   arg2 = static_cast< std::vector< std::vector< double > >::size_type >(val2);
31747   {
31748     std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
31749     res3 = swig::asptr(swig_obj[2], &ptr);
31750     if (!SWIG_IsOK(res3)) {
31751       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DoubleDoubleVector_resize" "', argument " "3"" of type '" "std::vector< std::vector< double > >::value_type const &""'");
31752     }
31753     if (!ptr) {
31754       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleDoubleVector_resize" "', argument " "3"" of type '" "std::vector< std::vector< double > >::value_type const &""'");
31755     }
31756     arg3 = ptr;
31757   }
31758   {
31759     try {
31760       (arg1)->resize(arg2,(std::vector< std::vector< double > >::value_type const &)*arg3);
31761     } catch (const std::exception& e) {
31762       SWIG_exception(SWIG_RuntimeError, e.what());
31763     }
31764   }
31765   resultobj = SWIG_Py_Void();
31766   if (SWIG_IsNewObj(res3)) delete arg3;
31767   return resultobj;
31768 fail:
31769   if (SWIG_IsNewObj(res3)) delete arg3;
31770   return NULL;
31771 }
31772 
31773 
_wrap_DoubleDoubleVector_resize(PyObject * self,PyObject * args)31774 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_resize(PyObject *self, PyObject *args) {
31775   Py_ssize_t argc;
31776   PyObject *argv[4] = {
31777     0
31778   };
31779 
31780   if (!(argc = SWIG_Python_UnpackTuple(args, "DoubleDoubleVector_resize", 0, 3, argv))) SWIG_fail;
31781   --argc;
31782   if (argc == 2) {
31783     int _v;
31784     int res = swig::asptr(argv[0], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
31785     _v = SWIG_CheckState(res);
31786     if (_v) {
31787       {
31788         int res = SWIG_AsVal_size_t(argv[1], NULL);
31789         _v = SWIG_CheckState(res);
31790       }
31791       if (_v) {
31792         return _wrap_DoubleDoubleVector_resize__SWIG_0(self, argc, argv);
31793       }
31794     }
31795   }
31796   if (argc == 3) {
31797     int _v;
31798     int res = swig::asptr(argv[0], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
31799     _v = SWIG_CheckState(res);
31800     if (_v) {
31801       {
31802         int res = SWIG_AsVal_size_t(argv[1], NULL);
31803         _v = SWIG_CheckState(res);
31804       }
31805       if (_v) {
31806         int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
31807         _v = SWIG_CheckState(res);
31808         if (_v) {
31809           return _wrap_DoubleDoubleVector_resize__SWIG_1(self, argc, argv);
31810         }
31811       }
31812     }
31813   }
31814 
31815 fail:
31816   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DoubleDoubleVector_resize'.\n"
31817     "  Possible C/C++ prototypes are:\n"
31818     "    std::vector< std::vector< double > >::resize(std::vector< std::vector< double > >::size_type)\n"
31819     "    std::vector< std::vector< double > >::resize(std::vector< std::vector< double > >::size_type,std::vector< std::vector< double > >::value_type const &)\n");
31820   return 0;
31821 }
31822 
31823 
_wrap_DoubleDoubleVector_insert__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)31824 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
31825   PyObject *resultobj = 0;
31826   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
31827   std::vector< std::vector< double > >::iterator arg2 ;
31828   std::vector< std::vector< double > >::value_type *arg3 = 0 ;
31829   void *argp1 = 0 ;
31830   int res1 = 0 ;
31831   swig::SwigPyIterator *iter2 = 0 ;
31832   int res2 ;
31833   int res3 = SWIG_OLDOBJ ;
31834   std::vector< std::vector< double > >::iterator result;
31835 
31836   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
31837   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
31838   if (!SWIG_IsOK(res1)) {
31839     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_insert" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
31840   }
31841   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
31842   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
31843   if (!SWIG_IsOK(res2) || !iter2) {
31844     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleDoubleVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< double > >::iterator""'");
31845   } else {
31846     swig::SwigPyIterator_T<std::vector< std::vector< double > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< double > >::iterator > *>(iter2);
31847     if (iter_t) {
31848       arg2 = iter_t->get_current();
31849     } else {
31850       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleDoubleVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< double > >::iterator""'");
31851     }
31852   }
31853   {
31854     std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
31855     res3 = swig::asptr(swig_obj[2], &ptr);
31856     if (!SWIG_IsOK(res3)) {
31857       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DoubleDoubleVector_insert" "', argument " "3"" of type '" "std::vector< std::vector< double > >::value_type const &""'");
31858     }
31859     if (!ptr) {
31860       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleDoubleVector_insert" "', argument " "3"" of type '" "std::vector< std::vector< double > >::value_type const &""'");
31861     }
31862     arg3 = ptr;
31863   }
31864   {
31865     try {
31866       result = std_vector_Sl_std_vector_Sl_double_Sg__Sg__insert__SWIG_0(arg1,arg2,(std::vector< double,std::allocator< double > > const &)*arg3);
31867     } catch (const std::exception& e) {
31868       SWIG_exception(SWIG_RuntimeError, e.what());
31869     }
31870   }
31871   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< double > >::iterator & >(result)),
31872     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
31873   if (SWIG_IsNewObj(res3)) delete arg3;
31874   return resultobj;
31875 fail:
31876   if (SWIG_IsNewObj(res3)) delete arg3;
31877   return NULL;
31878 }
31879 
31880 
_wrap_DoubleDoubleVector_insert__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)31881 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
31882   PyObject *resultobj = 0;
31883   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
31884   std::vector< std::vector< double > >::iterator arg2 ;
31885   std::vector< std::vector< double > >::size_type arg3 ;
31886   std::vector< std::vector< double > >::value_type *arg4 = 0 ;
31887   void *argp1 = 0 ;
31888   int res1 = 0 ;
31889   swig::SwigPyIterator *iter2 = 0 ;
31890   int res2 ;
31891   size_t val3 ;
31892   int ecode3 = 0 ;
31893   int res4 = SWIG_OLDOBJ ;
31894 
31895   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
31896   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
31897   if (!SWIG_IsOK(res1)) {
31898     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_insert" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
31899   }
31900   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
31901   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
31902   if (!SWIG_IsOK(res2) || !iter2) {
31903     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleDoubleVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< double > >::iterator""'");
31904   } else {
31905     swig::SwigPyIterator_T<std::vector< std::vector< double > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< double > >::iterator > *>(iter2);
31906     if (iter_t) {
31907       arg2 = iter_t->get_current();
31908     } else {
31909       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleDoubleVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< double > >::iterator""'");
31910     }
31911   }
31912   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
31913   if (!SWIG_IsOK(ecode3)) {
31914     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleDoubleVector_insert" "', argument " "3"" of type '" "std::vector< std::vector< double > >::size_type""'");
31915   }
31916   arg3 = static_cast< std::vector< std::vector< double > >::size_type >(val3);
31917   {
31918     std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
31919     res4 = swig::asptr(swig_obj[3], &ptr);
31920     if (!SWIG_IsOK(res4)) {
31921       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DoubleDoubleVector_insert" "', argument " "4"" of type '" "std::vector< std::vector< double > >::value_type const &""'");
31922     }
31923     if (!ptr) {
31924       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleDoubleVector_insert" "', argument " "4"" of type '" "std::vector< std::vector< double > >::value_type const &""'");
31925     }
31926     arg4 = ptr;
31927   }
31928   {
31929     try {
31930       std_vector_Sl_std_vector_Sl_double_Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(std::vector< double,std::allocator< double > > const &)*arg4);
31931     } catch (const std::exception& e) {
31932       SWIG_exception(SWIG_RuntimeError, e.what());
31933     }
31934   }
31935   resultobj = SWIG_Py_Void();
31936   if (SWIG_IsNewObj(res4)) delete arg4;
31937   return resultobj;
31938 fail:
31939   if (SWIG_IsNewObj(res4)) delete arg4;
31940   return NULL;
31941 }
31942 
31943 
_wrap_DoubleDoubleVector_insert(PyObject * self,PyObject * args)31944 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_insert(PyObject *self, PyObject *args) {
31945   Py_ssize_t argc;
31946   PyObject *argv[5] = {
31947     0
31948   };
31949 
31950   if (!(argc = SWIG_Python_UnpackTuple(args, "DoubleDoubleVector_insert", 0, 4, argv))) SWIG_fail;
31951   --argc;
31952   if (argc == 3) {
31953     int _v;
31954     int res = swig::asptr(argv[0], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
31955     _v = SWIG_CheckState(res);
31956     if (_v) {
31957       swig::SwigPyIterator *iter = 0;
31958       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
31959       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< double > >::iterator > *>(iter) != 0));
31960       if (_v) {
31961         int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
31962         _v = SWIG_CheckState(res);
31963         if (_v) {
31964           return _wrap_DoubleDoubleVector_insert__SWIG_0(self, argc, argv);
31965         }
31966       }
31967     }
31968   }
31969   if (argc == 4) {
31970     int _v;
31971     int res = swig::asptr(argv[0], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
31972     _v = SWIG_CheckState(res);
31973     if (_v) {
31974       swig::SwigPyIterator *iter = 0;
31975       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
31976       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< double > >::iterator > *>(iter) != 0));
31977       if (_v) {
31978         {
31979           int res = SWIG_AsVal_size_t(argv[2], NULL);
31980           _v = SWIG_CheckState(res);
31981         }
31982         if (_v) {
31983           int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
31984           _v = SWIG_CheckState(res);
31985           if (_v) {
31986             return _wrap_DoubleDoubleVector_insert__SWIG_1(self, argc, argv);
31987           }
31988         }
31989       }
31990     }
31991   }
31992 
31993 fail:
31994   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DoubleDoubleVector_insert'.\n"
31995     "  Possible C/C++ prototypes are:\n"
31996     "    std::vector< std::vector< double > >::insert(std::vector< std::vector< double > >::iterator,std::vector< std::vector< double > >::value_type const &)\n"
31997     "    std::vector< std::vector< double > >::insert(std::vector< std::vector< double > >::iterator,std::vector< std::vector< double > >::size_type,std::vector< std::vector< double > >::value_type const &)\n");
31998   return 0;
31999 }
32000 
32001 
_wrap_DoubleDoubleVector_reserve(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)32002 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32003   PyObject *resultobj = 0;
32004   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
32005   std::vector< std::vector< double > >::size_type arg2 ;
32006   void *argp1 = 0 ;
32007   int res1 = 0 ;
32008   size_t val2 ;
32009   int ecode2 = 0 ;
32010   PyObject * obj0 = 0 ;
32011   PyObject * obj1 = 0 ;
32012   char * kwnames[] = {
32013     (char *)"self",  (char *)"n",  NULL
32014   };
32015 
32016   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:DoubleDoubleVector_reserve", kwnames, &obj0, &obj1)) SWIG_fail;
32017   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
32018   if (!SWIG_IsOK(res1)) {
32019     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_reserve" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
32020   }
32021   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
32022   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
32023   if (!SWIG_IsOK(ecode2)) {
32024     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleDoubleVector_reserve" "', argument " "2"" of type '" "std::vector< std::vector< double > >::size_type""'");
32025   }
32026   arg2 = static_cast< std::vector< std::vector< double > >::size_type >(val2);
32027   {
32028     try {
32029       (arg1)->reserve(arg2);
32030     } catch (const std::exception& e) {
32031       SWIG_exception(SWIG_RuntimeError, e.what());
32032     }
32033   }
32034   resultobj = SWIG_Py_Void();
32035   return resultobj;
32036 fail:
32037   return NULL;
32038 }
32039 
32040 
_wrap_DoubleDoubleVector_capacity(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32041 SWIGINTERN PyObject *_wrap_DoubleDoubleVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32042   PyObject *resultobj = 0;
32043   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
32044   void *argp1 = 0 ;
32045   int res1 = 0 ;
32046   PyObject *swig_obj[1] ;
32047   std::vector< std::vector< double > >::size_type result;
32048 
32049   if (!args) SWIG_fail;
32050   swig_obj[0] = args;
32051   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0 |  0 );
32052   if (!SWIG_IsOK(res1)) {
32053     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleDoubleVector_capacity" "', argument " "1"" of type '" "std::vector< std::vector< double > > const *""'");
32054   }
32055   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
32056   {
32057     try {
32058       result = ((std::vector< std::vector< double > > const *)arg1)->capacity();
32059     } catch (const std::exception& e) {
32060       SWIG_exception(SWIG_RuntimeError, e.what());
32061     }
32062   }
32063   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
32064   return resultobj;
32065 fail:
32066   return NULL;
32067 }
32068 
32069 
_wrap_delete_DoubleDoubleVector(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32070 SWIGINTERN PyObject *_wrap_delete_DoubleDoubleVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32071   PyObject *resultobj = 0;
32072   std::vector< std::vector< double > > *arg1 = (std::vector< std::vector< double > > *) 0 ;
32073   void *argp1 = 0 ;
32074   int res1 = 0 ;
32075   PyObject *swig_obj[1] ;
32076 
32077   if (!args) SWIG_fail;
32078   swig_obj[0] = args;
32079   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, SWIG_POINTER_DISOWN |  0 );
32080   if (!SWIG_IsOK(res1)) {
32081     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DoubleDoubleVector" "', argument " "1"" of type '" "std::vector< std::vector< double > > *""'");
32082   }
32083   arg1 = reinterpret_cast< std::vector< std::vector< double > > * >(argp1);
32084   {
32085     try {
32086       delete arg1;
32087     } catch (const std::exception& e) {
32088       SWIG_exception(SWIG_RuntimeError, e.what());
32089     }
32090   }
32091   resultobj = SWIG_Py_Void();
32092   return resultobj;
32093 fail:
32094   return NULL;
32095 }
32096 
32097 
DoubleDoubleVector_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32098 SWIGINTERN PyObject *DoubleDoubleVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32099   PyObject *obj;
32100   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
32101   SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, SWIG_NewClientData(obj));
32102   return SWIG_Py_Void();
32103 }
32104 
DoubleDoubleVector_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32105 SWIGINTERN PyObject *DoubleDoubleVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32106   return SWIG_Python_InitShadowInstance(args);
32107 }
32108 
_wrap_IntIntVector_iterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32109 SWIGINTERN PyObject *_wrap_IntIntVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32110   PyObject *resultobj = 0;
32111   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
32112   PyObject **arg2 = (PyObject **) 0 ;
32113   void *argp1 = 0 ;
32114   int res1 = 0 ;
32115   PyObject *swig_obj[1] ;
32116   swig::SwigPyIterator *result = 0 ;
32117 
32118   arg2 = &swig_obj[0];
32119   if (!args) SWIG_fail;
32120   swig_obj[0] = args;
32121   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
32122   if (!SWIG_IsOK(res1)) {
32123     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_iterator" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
32124   }
32125   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
32126   {
32127     try {
32128       result = (swig::SwigPyIterator *)std_vector_Sl_std_vector_Sl_int_Sg__Sg__iterator(arg1,arg2);
32129     } catch (const std::exception& e) {
32130       SWIG_exception(SWIG_RuntimeError, e.what());
32131     }
32132   }
32133   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
32134   return resultobj;
32135 fail:
32136   return NULL;
32137 }
32138 
32139 
_wrap_IntIntVector___nonzero__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32140 SWIGINTERN PyObject *_wrap_IntIntVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32141   PyObject *resultobj = 0;
32142   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
32143   void *argp1 = 0 ;
32144   int res1 = 0 ;
32145   PyObject *swig_obj[1] ;
32146   bool result;
32147 
32148   if (!args) SWIG_fail;
32149   swig_obj[0] = args;
32150   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
32151   if (!SWIG_IsOK(res1)) {
32152     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector___nonzero__" "', argument " "1"" of type '" "std::vector< std::vector< int > > const *""'");
32153   }
32154   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
32155   {
32156     try {
32157       result = (bool)std_vector_Sl_std_vector_Sl_int_Sg__Sg____nonzero__((std::vector< std::vector< int > > const *)arg1);
32158     } catch (const std::exception& e) {
32159       SWIG_exception(SWIG_RuntimeError, e.what());
32160     }
32161   }
32162   resultobj = SWIG_From_bool(static_cast< bool >(result));
32163   return resultobj;
32164 fail:
32165   return NULL;
32166 }
32167 
32168 
_wrap_IntIntVector___bool__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32169 SWIGINTERN PyObject *_wrap_IntIntVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32170   PyObject *resultobj = 0;
32171   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
32172   void *argp1 = 0 ;
32173   int res1 = 0 ;
32174   PyObject *swig_obj[1] ;
32175   bool result;
32176 
32177   if (!args) SWIG_fail;
32178   swig_obj[0] = args;
32179   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
32180   if (!SWIG_IsOK(res1)) {
32181     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector___bool__" "', argument " "1"" of type '" "std::vector< std::vector< int > > const *""'");
32182   }
32183   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
32184   {
32185     try {
32186       result = (bool)std_vector_Sl_std_vector_Sl_int_Sg__Sg____bool__((std::vector< std::vector< int > > const *)arg1);
32187     } catch (const std::exception& e) {
32188       SWIG_exception(SWIG_RuntimeError, e.what());
32189     }
32190   }
32191   resultobj = SWIG_From_bool(static_cast< bool >(result));
32192   return resultobj;
32193 fail:
32194   return NULL;
32195 }
32196 
32197 
_wrap_IntIntVector___len__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32198 SWIGINTERN PyObject *_wrap_IntIntVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32199   PyObject *resultobj = 0;
32200   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
32201   void *argp1 = 0 ;
32202   int res1 = 0 ;
32203   PyObject *swig_obj[1] ;
32204   std::vector< std::vector< int > >::size_type result;
32205 
32206   if (!args) SWIG_fail;
32207   swig_obj[0] = args;
32208   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
32209   if (!SWIG_IsOK(res1)) {
32210     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector___len__" "', argument " "1"" of type '" "std::vector< std::vector< int > > const *""'");
32211   }
32212   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
32213   {
32214     try {
32215       result = std_vector_Sl_std_vector_Sl_int_Sg__Sg____len__((std::vector< std::vector< int > > const *)arg1);
32216     } catch (const std::exception& e) {
32217       SWIG_exception(SWIG_RuntimeError, e.what());
32218     }
32219   }
32220   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
32221   return resultobj;
32222 fail:
32223   return NULL;
32224 }
32225 
32226 
_wrap_IntIntVector___getslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)32227 SWIGINTERN PyObject *_wrap_IntIntVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32228   PyObject *resultobj = 0;
32229   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
32230   std::vector< std::vector< int > >::difference_type arg2 ;
32231   std::vector< std::vector< int > >::difference_type arg3 ;
32232   void *argp1 = 0 ;
32233   int res1 = 0 ;
32234   ptrdiff_t val2 ;
32235   int ecode2 = 0 ;
32236   ptrdiff_t val3 ;
32237   int ecode3 = 0 ;
32238   PyObject * obj0 = 0 ;
32239   PyObject * obj1 = 0 ;
32240   PyObject * obj2 = 0 ;
32241   char * kwnames[] = {
32242     (char *)"self",  (char *)"i",  (char *)"j",  NULL
32243   };
32244   std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *result = 0 ;
32245 
32246   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:IntIntVector___getslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
32247   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
32248   if (!SWIG_IsOK(res1)) {
32249     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector___getslice__" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
32250   }
32251   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
32252   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
32253   if (!SWIG_IsOK(ecode2)) {
32254     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntIntVector___getslice__" "', argument " "2"" of type '" "std::vector< std::vector< int > >::difference_type""'");
32255   }
32256   arg2 = static_cast< std::vector< std::vector< int > >::difference_type >(val2);
32257   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
32258   if (!SWIG_IsOK(ecode3)) {
32259     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntIntVector___getslice__" "', argument " "3"" of type '" "std::vector< std::vector< int > >::difference_type""'");
32260   }
32261   arg3 = static_cast< std::vector< std::vector< int > >::difference_type >(val3);
32262   {
32263     try {
32264       try {
32265         result = (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *)std_vector_Sl_std_vector_Sl_int_Sg__Sg____getslice__(arg1,arg2,arg3);
32266       } catch(std::out_of_range &_e) {
32267         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
32268       } catch(std::invalid_argument &_e) {
32269         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
32270       }
32271     } catch (const std::exception& e) {
32272       SWIG_exception(SWIG_RuntimeError, e.what());
32273     }
32274   }
32275   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, SWIG_POINTER_OWN |  0 );
32276   return resultobj;
32277 fail:
32278   return NULL;
32279 }
32280 
32281 
_wrap_IntIntVector___setslice____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)32282 SWIGINTERN PyObject *_wrap_IntIntVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
32283   PyObject *resultobj = 0;
32284   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
32285   std::vector< std::vector< int > >::difference_type arg2 ;
32286   std::vector< std::vector< int > >::difference_type arg3 ;
32287   void *argp1 = 0 ;
32288   int res1 = 0 ;
32289   ptrdiff_t val2 ;
32290   int ecode2 = 0 ;
32291   ptrdiff_t val3 ;
32292   int ecode3 = 0 ;
32293 
32294   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
32295   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
32296   if (!SWIG_IsOK(res1)) {
32297     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector___setslice__" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
32298   }
32299   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
32300   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
32301   if (!SWIG_IsOK(ecode2)) {
32302     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntIntVector___setslice__" "', argument " "2"" of type '" "std::vector< std::vector< int > >::difference_type""'");
32303   }
32304   arg2 = static_cast< std::vector< std::vector< int > >::difference_type >(val2);
32305   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
32306   if (!SWIG_IsOK(ecode3)) {
32307     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntIntVector___setslice__" "', argument " "3"" of type '" "std::vector< std::vector< int > >::difference_type""'");
32308   }
32309   arg3 = static_cast< std::vector< std::vector< int > >::difference_type >(val3);
32310   {
32311     try {
32312       try {
32313         std_vector_Sl_std_vector_Sl_int_Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3);
32314       } catch(std::out_of_range &_e) {
32315         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
32316       } catch(std::invalid_argument &_e) {
32317         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
32318       }
32319     } catch (const std::exception& e) {
32320       SWIG_exception(SWIG_RuntimeError, e.what());
32321     }
32322   }
32323   resultobj = SWIG_Py_Void();
32324   return resultobj;
32325 fail:
32326   return NULL;
32327 }
32328 
32329 
_wrap_IntIntVector___setslice____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)32330 SWIGINTERN PyObject *_wrap_IntIntVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
32331   PyObject *resultobj = 0;
32332   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
32333   std::vector< std::vector< int > >::difference_type arg2 ;
32334   std::vector< std::vector< int > >::difference_type arg3 ;
32335   std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *arg4 = 0 ;
32336   void *argp1 = 0 ;
32337   int res1 = 0 ;
32338   ptrdiff_t val2 ;
32339   int ecode2 = 0 ;
32340   ptrdiff_t val3 ;
32341   int ecode3 = 0 ;
32342   int res4 = SWIG_OLDOBJ ;
32343 
32344   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
32345   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
32346   if (!SWIG_IsOK(res1)) {
32347     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector___setslice__" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
32348   }
32349   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
32350   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
32351   if (!SWIG_IsOK(ecode2)) {
32352     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntIntVector___setslice__" "', argument " "2"" of type '" "std::vector< std::vector< int > >::difference_type""'");
32353   }
32354   arg2 = static_cast< std::vector< std::vector< int > >::difference_type >(val2);
32355   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
32356   if (!SWIG_IsOK(ecode3)) {
32357     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntIntVector___setslice__" "', argument " "3"" of type '" "std::vector< std::vector< int > >::difference_type""'");
32358   }
32359   arg3 = static_cast< std::vector< std::vector< int > >::difference_type >(val3);
32360   {
32361     std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *ptr = (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *)0;
32362     res4 = swig::asptr(swig_obj[3], &ptr);
32363     if (!SWIG_IsOK(res4)) {
32364       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IntIntVector___setslice__" "', argument " "4"" of type '" "std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > const &""'");
32365     }
32366     if (!ptr) {
32367       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntIntVector___setslice__" "', argument " "4"" of type '" "std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > const &""'");
32368     }
32369     arg4 = ptr;
32370   }
32371   {
32372     try {
32373       try {
32374         std_vector_Sl_std_vector_Sl_int_Sg__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > const &)*arg4);
32375       } catch(std::out_of_range &_e) {
32376         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
32377       } catch(std::invalid_argument &_e) {
32378         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
32379       }
32380     } catch (const std::exception& e) {
32381       SWIG_exception(SWIG_RuntimeError, e.what());
32382     }
32383   }
32384   resultobj = SWIG_Py_Void();
32385   if (SWIG_IsNewObj(res4)) delete arg4;
32386   return resultobj;
32387 fail:
32388   if (SWIG_IsNewObj(res4)) delete arg4;
32389   return NULL;
32390 }
32391 
32392 
_wrap_IntIntVector___setslice__(PyObject * self,PyObject * args)32393 SWIGINTERN PyObject *_wrap_IntIntVector___setslice__(PyObject *self, PyObject *args) {
32394   Py_ssize_t argc;
32395   PyObject *argv[5] = {
32396     0
32397   };
32398 
32399   if (!(argc = SWIG_Python_UnpackTuple(args, "IntIntVector___setslice__", 0, 4, argv))) SWIG_fail;
32400   --argc;
32401   if (argc == 3) {
32402     int _v;
32403     int res = swig::asptr(argv[0], (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >**)(0));
32404     _v = SWIG_CheckState(res);
32405     if (_v) {
32406       {
32407         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
32408         _v = SWIG_CheckState(res);
32409       }
32410       if (_v) {
32411         {
32412           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
32413           _v = SWIG_CheckState(res);
32414         }
32415         if (_v) {
32416           return _wrap_IntIntVector___setslice____SWIG_0(self, argc, argv);
32417         }
32418       }
32419     }
32420   }
32421   if (argc == 4) {
32422     int _v;
32423     int res = swig::asptr(argv[0], (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >**)(0));
32424     _v = SWIG_CheckState(res);
32425     if (_v) {
32426       {
32427         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
32428         _v = SWIG_CheckState(res);
32429       }
32430       if (_v) {
32431         {
32432           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
32433           _v = SWIG_CheckState(res);
32434         }
32435         if (_v) {
32436           int res = swig::asptr(argv[3], (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >**)(0));
32437           _v = SWIG_CheckState(res);
32438           if (_v) {
32439             return _wrap_IntIntVector___setslice____SWIG_1(self, argc, argv);
32440           }
32441         }
32442       }
32443     }
32444   }
32445 
32446 fail:
32447   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntIntVector___setslice__'.\n"
32448     "  Possible C/C++ prototypes are:\n"
32449     "    std::vector< std::vector< int > >::__setslice__(std::vector< std::vector< int > >::difference_type,std::vector< std::vector< int > >::difference_type)\n"
32450     "    std::vector< std::vector< int > >::__setslice__(std::vector< std::vector< int > >::difference_type,std::vector< std::vector< int > >::difference_type,std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > const &)\n");
32451   return 0;
32452 }
32453 
32454 
_wrap_IntIntVector___delslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)32455 SWIGINTERN PyObject *_wrap_IntIntVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32456   PyObject *resultobj = 0;
32457   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
32458   std::vector< std::vector< int > >::difference_type arg2 ;
32459   std::vector< std::vector< int > >::difference_type arg3 ;
32460   void *argp1 = 0 ;
32461   int res1 = 0 ;
32462   ptrdiff_t val2 ;
32463   int ecode2 = 0 ;
32464   ptrdiff_t val3 ;
32465   int ecode3 = 0 ;
32466   PyObject * obj0 = 0 ;
32467   PyObject * obj1 = 0 ;
32468   PyObject * obj2 = 0 ;
32469   char * kwnames[] = {
32470     (char *)"self",  (char *)"i",  (char *)"j",  NULL
32471   };
32472 
32473   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:IntIntVector___delslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
32474   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
32475   if (!SWIG_IsOK(res1)) {
32476     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector___delslice__" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
32477   }
32478   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
32479   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
32480   if (!SWIG_IsOK(ecode2)) {
32481     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntIntVector___delslice__" "', argument " "2"" of type '" "std::vector< std::vector< int > >::difference_type""'");
32482   }
32483   arg2 = static_cast< std::vector< std::vector< int > >::difference_type >(val2);
32484   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
32485   if (!SWIG_IsOK(ecode3)) {
32486     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntIntVector___delslice__" "', argument " "3"" of type '" "std::vector< std::vector< int > >::difference_type""'");
32487   }
32488   arg3 = static_cast< std::vector< std::vector< int > >::difference_type >(val3);
32489   {
32490     try {
32491       try {
32492         std_vector_Sl_std_vector_Sl_int_Sg__Sg____delslice__(arg1,arg2,arg3);
32493       } catch(std::out_of_range &_e) {
32494         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
32495       } catch(std::invalid_argument &_e) {
32496         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
32497       }
32498     } catch (const std::exception& e) {
32499       SWIG_exception(SWIG_RuntimeError, e.what());
32500     }
32501   }
32502   resultobj = SWIG_Py_Void();
32503   return resultobj;
32504 fail:
32505   return NULL;
32506 }
32507 
32508 
_wrap_IntIntVector___delitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)32509 SWIGINTERN PyObject *_wrap_IntIntVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
32510   PyObject *resultobj = 0;
32511   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
32512   std::vector< std::vector< int > >::difference_type arg2 ;
32513   void *argp1 = 0 ;
32514   int res1 = 0 ;
32515   ptrdiff_t val2 ;
32516   int ecode2 = 0 ;
32517 
32518   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
32519   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
32520   if (!SWIG_IsOK(res1)) {
32521     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector___delitem__" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
32522   }
32523   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
32524   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
32525   if (!SWIG_IsOK(ecode2)) {
32526     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntIntVector___delitem__" "', argument " "2"" of type '" "std::vector< std::vector< int > >::difference_type""'");
32527   }
32528   arg2 = static_cast< std::vector< std::vector< int > >::difference_type >(val2);
32529   {
32530     try {
32531       try {
32532         std_vector_Sl_std_vector_Sl_int_Sg__Sg____delitem____SWIG_0(arg1,arg2);
32533       } catch(std::out_of_range &_e) {
32534         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
32535       } catch(std::invalid_argument &_e) {
32536         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
32537       }
32538     } catch (const std::exception& e) {
32539       SWIG_exception(SWIG_RuntimeError, e.what());
32540     }
32541   }
32542   resultobj = SWIG_Py_Void();
32543   return resultobj;
32544 fail:
32545   return NULL;
32546 }
32547 
32548 
_wrap_IntIntVector___getitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)32549 SWIGINTERN PyObject *_wrap_IntIntVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
32550   PyObject *resultobj = 0;
32551   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
32552   PySliceObject *arg2 = (PySliceObject *) 0 ;
32553   void *argp1 = 0 ;
32554   int res1 = 0 ;
32555   std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *result = 0 ;
32556 
32557   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
32558   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
32559   if (!SWIG_IsOK(res1)) {
32560     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector___getitem__" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
32561   }
32562   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
32563   {
32564     if (!PySlice_Check(swig_obj[1])) {
32565       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntIntVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
32566     }
32567     arg2 = (PySliceObject *) swig_obj[1];
32568   }
32569   {
32570     try {
32571       try {
32572         result = (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *)std_vector_Sl_std_vector_Sl_int_Sg__Sg____getitem____SWIG_0(arg1,arg2);
32573       } catch(std::out_of_range &_e) {
32574         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
32575       } catch(std::invalid_argument &_e) {
32576         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
32577       }
32578     } catch (const std::exception& e) {
32579       SWIG_exception(SWIG_RuntimeError, e.what());
32580     }
32581   }
32582   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, SWIG_POINTER_OWN |  0 );
32583   return resultobj;
32584 fail:
32585   return NULL;
32586 }
32587 
32588 
_wrap_IntIntVector___setitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)32589 SWIGINTERN PyObject *_wrap_IntIntVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
32590   PyObject *resultobj = 0;
32591   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
32592   PySliceObject *arg2 = (PySliceObject *) 0 ;
32593   std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *arg3 = 0 ;
32594   void *argp1 = 0 ;
32595   int res1 = 0 ;
32596   int res3 = SWIG_OLDOBJ ;
32597 
32598   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
32599   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
32600   if (!SWIG_IsOK(res1)) {
32601     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector___setitem__" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
32602   }
32603   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
32604   {
32605     if (!PySlice_Check(swig_obj[1])) {
32606       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntIntVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
32607     }
32608     arg2 = (PySliceObject *) swig_obj[1];
32609   }
32610   {
32611     std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *ptr = (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *)0;
32612     res3 = swig::asptr(swig_obj[2], &ptr);
32613     if (!SWIG_IsOK(res3)) {
32614       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntIntVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > const &""'");
32615     }
32616     if (!ptr) {
32617       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntIntVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > const &""'");
32618     }
32619     arg3 = ptr;
32620   }
32621   {
32622     try {
32623       try {
32624         std_vector_Sl_std_vector_Sl_int_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > const &)*arg3);
32625       } catch(std::out_of_range &_e) {
32626         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
32627       } catch(std::invalid_argument &_e) {
32628         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
32629       }
32630     } catch (const std::exception& e) {
32631       SWIG_exception(SWIG_RuntimeError, e.what());
32632     }
32633   }
32634   resultobj = SWIG_Py_Void();
32635   if (SWIG_IsNewObj(res3)) delete arg3;
32636   return resultobj;
32637 fail:
32638   if (SWIG_IsNewObj(res3)) delete arg3;
32639   return NULL;
32640 }
32641 
32642 
_wrap_IntIntVector___setitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)32643 SWIGINTERN PyObject *_wrap_IntIntVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
32644   PyObject *resultobj = 0;
32645   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
32646   PySliceObject *arg2 = (PySliceObject *) 0 ;
32647   void *argp1 = 0 ;
32648   int res1 = 0 ;
32649 
32650   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
32651   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
32652   if (!SWIG_IsOK(res1)) {
32653     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector___setitem__" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
32654   }
32655   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
32656   {
32657     if (!PySlice_Check(swig_obj[1])) {
32658       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntIntVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
32659     }
32660     arg2 = (PySliceObject *) swig_obj[1];
32661   }
32662   {
32663     try {
32664       try {
32665         std_vector_Sl_std_vector_Sl_int_Sg__Sg____setitem____SWIG_1(arg1,arg2);
32666       } catch(std::out_of_range &_e) {
32667         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
32668       } catch(std::invalid_argument &_e) {
32669         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
32670       }
32671     } catch (const std::exception& e) {
32672       SWIG_exception(SWIG_RuntimeError, e.what());
32673     }
32674   }
32675   resultobj = SWIG_Py_Void();
32676   return resultobj;
32677 fail:
32678   return NULL;
32679 }
32680 
32681 
_wrap_IntIntVector___delitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)32682 SWIGINTERN PyObject *_wrap_IntIntVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
32683   PyObject *resultobj = 0;
32684   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
32685   PySliceObject *arg2 = (PySliceObject *) 0 ;
32686   void *argp1 = 0 ;
32687   int res1 = 0 ;
32688 
32689   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
32690   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
32691   if (!SWIG_IsOK(res1)) {
32692     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector___delitem__" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
32693   }
32694   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
32695   {
32696     if (!PySlice_Check(swig_obj[1])) {
32697       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntIntVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
32698     }
32699     arg2 = (PySliceObject *) swig_obj[1];
32700   }
32701   {
32702     try {
32703       try {
32704         std_vector_Sl_std_vector_Sl_int_Sg__Sg____delitem____SWIG_1(arg1,arg2);
32705       } catch(std::out_of_range &_e) {
32706         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
32707       } catch(std::invalid_argument &_e) {
32708         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
32709       }
32710     } catch (const std::exception& e) {
32711       SWIG_exception(SWIG_RuntimeError, e.what());
32712     }
32713   }
32714   resultobj = SWIG_Py_Void();
32715   return resultobj;
32716 fail:
32717   return NULL;
32718 }
32719 
32720 
_wrap_IntIntVector___delitem__(PyObject * self,PyObject * args)32721 SWIGINTERN PyObject *_wrap_IntIntVector___delitem__(PyObject *self, PyObject *args) {
32722   Py_ssize_t argc;
32723   PyObject *argv[3] = {
32724     0
32725   };
32726 
32727   if (!(argc = SWIG_Python_UnpackTuple(args, "IntIntVector___delitem__", 0, 2, argv))) SWIG_fail;
32728   --argc;
32729   if (argc == 2) {
32730     int _v;
32731     int res = swig::asptr(argv[0], (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >**)(0));
32732     _v = SWIG_CheckState(res);
32733     if (_v) {
32734       {
32735         _v = PySlice_Check(argv[1]);
32736       }
32737       if (_v) {
32738         return _wrap_IntIntVector___delitem____SWIG_1(self, argc, argv);
32739       }
32740     }
32741   }
32742   if (argc == 2) {
32743     int _v;
32744     int res = swig::asptr(argv[0], (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >**)(0));
32745     _v = SWIG_CheckState(res);
32746     if (_v) {
32747       {
32748         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
32749         _v = SWIG_CheckState(res);
32750       }
32751       if (_v) {
32752         return _wrap_IntIntVector___delitem____SWIG_0(self, argc, argv);
32753       }
32754     }
32755   }
32756 
32757 fail:
32758   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntIntVector___delitem__'.\n"
32759     "  Possible C/C++ prototypes are:\n"
32760     "    std::vector< std::vector< int > >::__delitem__(std::vector< std::vector< int > >::difference_type)\n"
32761     "    std::vector< std::vector< int > >::__delitem__(PySliceObject *)\n");
32762   return 0;
32763 }
32764 
32765 
_wrap_IntIntVector___getitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)32766 SWIGINTERN PyObject *_wrap_IntIntVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
32767   PyObject *resultobj = 0;
32768   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
32769   std::vector< std::vector< int > >::difference_type arg2 ;
32770   void *argp1 = 0 ;
32771   int res1 = 0 ;
32772   ptrdiff_t val2 ;
32773   int ecode2 = 0 ;
32774   std::vector< std::vector< int > >::value_type *result = 0 ;
32775 
32776   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
32777   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
32778   if (!SWIG_IsOK(res1)) {
32779     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector___getitem__" "', argument " "1"" of type '" "std::vector< std::vector< int > > const *""'");
32780   }
32781   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
32782   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
32783   if (!SWIG_IsOK(ecode2)) {
32784     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntIntVector___getitem__" "', argument " "2"" of type '" "std::vector< std::vector< int > >::difference_type""'");
32785   }
32786   arg2 = static_cast< std::vector< std::vector< int > >::difference_type >(val2);
32787   {
32788     try {
32789       try {
32790         result = (std::vector< std::vector< int > >::value_type *) &std_vector_Sl_std_vector_Sl_int_Sg__Sg____getitem____SWIG_1((std::vector< std::vector< int > > const *)arg1,arg2);
32791       } catch(std::out_of_range &_e) {
32792         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
32793       }
32794     } catch (const std::exception& e) {
32795       SWIG_exception(SWIG_RuntimeError, e.what());
32796     }
32797   }
32798   resultobj = swig::from(static_cast< std::vector< int,std::allocator< int > > >(*result));
32799   (void)swig::container_owner<swig::traits<std::vector< std::vector< int > >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
32800   return resultobj;
32801 fail:
32802   return NULL;
32803 }
32804 
32805 
_wrap_IntIntVector___getitem__(PyObject * self,PyObject * args)32806 SWIGINTERN PyObject *_wrap_IntIntVector___getitem__(PyObject *self, PyObject *args) {
32807   Py_ssize_t argc;
32808   PyObject *argv[3] = {
32809     0
32810   };
32811 
32812   if (!(argc = SWIG_Python_UnpackTuple(args, "IntIntVector___getitem__", 0, 2, argv))) SWIG_fail;
32813   --argc;
32814   if (argc == 2) {
32815     int _v;
32816     int res = swig::asptr(argv[0], (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >**)(0));
32817     _v = SWIG_CheckState(res);
32818     if (_v) {
32819       {
32820         _v = PySlice_Check(argv[1]);
32821       }
32822       if (_v) {
32823         return _wrap_IntIntVector___getitem____SWIG_0(self, argc, argv);
32824       }
32825     }
32826   }
32827   if (argc == 2) {
32828     int _v;
32829     int res = swig::asptr(argv[0], (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >**)(0));
32830     _v = SWIG_CheckState(res);
32831     if (_v) {
32832       {
32833         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
32834         _v = SWIG_CheckState(res);
32835       }
32836       if (_v) {
32837         return _wrap_IntIntVector___getitem____SWIG_1(self, argc, argv);
32838       }
32839     }
32840   }
32841 
32842 fail:
32843   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntIntVector___getitem__'.\n"
32844     "  Possible C/C++ prototypes are:\n"
32845     "    std::vector< std::vector< int > >::__getitem__(PySliceObject *)\n"
32846     "    std::vector< std::vector< int > >::__getitem__(std::vector< std::vector< int > >::difference_type) const\n");
32847   return 0;
32848 }
32849 
32850 
_wrap_IntIntVector___setitem____SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)32851 SWIGINTERN PyObject *_wrap_IntIntVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
32852   PyObject *resultobj = 0;
32853   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
32854   std::vector< std::vector< int > >::difference_type arg2 ;
32855   std::vector< std::vector< int > >::value_type *arg3 = 0 ;
32856   void *argp1 = 0 ;
32857   int res1 = 0 ;
32858   ptrdiff_t val2 ;
32859   int ecode2 = 0 ;
32860   int res3 = SWIG_OLDOBJ ;
32861 
32862   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
32863   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
32864   if (!SWIG_IsOK(res1)) {
32865     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector___setitem__" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
32866   }
32867   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
32868   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
32869   if (!SWIG_IsOK(ecode2)) {
32870     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntIntVector___setitem__" "', argument " "2"" of type '" "std::vector< std::vector< int > >::difference_type""'");
32871   }
32872   arg2 = static_cast< std::vector< std::vector< int > >::difference_type >(val2);
32873   {
32874     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
32875     res3 = swig::asptr(swig_obj[2], &ptr);
32876     if (!SWIG_IsOK(res3)) {
32877       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntIntVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< int > >::value_type const &""'");
32878     }
32879     if (!ptr) {
32880       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntIntVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< int > >::value_type const &""'");
32881     }
32882     arg3 = ptr;
32883   }
32884   {
32885     try {
32886       try {
32887         std_vector_Sl_std_vector_Sl_int_Sg__Sg____setitem____SWIG_2(arg1,arg2,(std::vector< int,std::allocator< int > > const &)*arg3);
32888       } catch(std::out_of_range &_e) {
32889         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
32890       }
32891     } catch (const std::exception& e) {
32892       SWIG_exception(SWIG_RuntimeError, e.what());
32893     }
32894   }
32895   resultobj = SWIG_Py_Void();
32896   if (SWIG_IsNewObj(res3)) delete arg3;
32897   return resultobj;
32898 fail:
32899   if (SWIG_IsNewObj(res3)) delete arg3;
32900   return NULL;
32901 }
32902 
32903 
_wrap_IntIntVector___setitem__(PyObject * self,PyObject * args)32904 SWIGINTERN PyObject *_wrap_IntIntVector___setitem__(PyObject *self, PyObject *args) {
32905   Py_ssize_t argc;
32906   PyObject *argv[4] = {
32907     0
32908   };
32909 
32910   if (!(argc = SWIG_Python_UnpackTuple(args, "IntIntVector___setitem__", 0, 3, argv))) SWIG_fail;
32911   --argc;
32912   if (argc == 2) {
32913     int _v;
32914     int res = swig::asptr(argv[0], (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >**)(0));
32915     _v = SWIG_CheckState(res);
32916     if (_v) {
32917       {
32918         _v = PySlice_Check(argv[1]);
32919       }
32920       if (_v) {
32921         return _wrap_IntIntVector___setitem____SWIG_1(self, argc, argv);
32922       }
32923     }
32924   }
32925   if (argc == 3) {
32926     int _v;
32927     int res = swig::asptr(argv[0], (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >**)(0));
32928     _v = SWIG_CheckState(res);
32929     if (_v) {
32930       {
32931         _v = PySlice_Check(argv[1]);
32932       }
32933       if (_v) {
32934         int res = swig::asptr(argv[2], (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >**)(0));
32935         _v = SWIG_CheckState(res);
32936         if (_v) {
32937           return _wrap_IntIntVector___setitem____SWIG_0(self, argc, argv);
32938         }
32939       }
32940     }
32941   }
32942   if (argc == 3) {
32943     int _v;
32944     int res = swig::asptr(argv[0], (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >**)(0));
32945     _v = SWIG_CheckState(res);
32946     if (_v) {
32947       {
32948         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
32949         _v = SWIG_CheckState(res);
32950       }
32951       if (_v) {
32952         int res = swig::asptr(argv[2], (std::vector< int,std::allocator< int > >**)(0));
32953         _v = SWIG_CheckState(res);
32954         if (_v) {
32955           return _wrap_IntIntVector___setitem____SWIG_2(self, argc, argv);
32956         }
32957       }
32958     }
32959   }
32960 
32961 fail:
32962   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntIntVector___setitem__'.\n"
32963     "  Possible C/C++ prototypes are:\n"
32964     "    std::vector< std::vector< int > >::__setitem__(PySliceObject *,std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > const &)\n"
32965     "    std::vector< std::vector< int > >::__setitem__(PySliceObject *)\n"
32966     "    std::vector< std::vector< int > >::__setitem__(std::vector< std::vector< int > >::difference_type,std::vector< std::vector< int > >::value_type const &)\n");
32967   return 0;
32968 }
32969 
32970 
_wrap_IntIntVector_pop(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32971 SWIGINTERN PyObject *_wrap_IntIntVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32972   PyObject *resultobj = 0;
32973   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
32974   void *argp1 = 0 ;
32975   int res1 = 0 ;
32976   PyObject *swig_obj[1] ;
32977   std::vector< std::vector< int > >::value_type result;
32978 
32979   if (!args) SWIG_fail;
32980   swig_obj[0] = args;
32981   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
32982   if (!SWIG_IsOK(res1)) {
32983     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_pop" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
32984   }
32985   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
32986   {
32987     try {
32988       try {
32989         result = std_vector_Sl_std_vector_Sl_int_Sg__Sg__pop(arg1);
32990       } catch(std::out_of_range &_e) {
32991         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
32992       }
32993     } catch (const std::exception& e) {
32994       SWIG_exception(SWIG_RuntimeError, e.what());
32995     }
32996   }
32997   resultobj = swig::from(static_cast< std::vector< int,std::allocator< int > > >(result));
32998   return resultobj;
32999 fail:
33000   return NULL;
33001 }
33002 
33003 
_wrap_IntIntVector_append(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)33004 SWIGINTERN PyObject *_wrap_IntIntVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33005   PyObject *resultobj = 0;
33006   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33007   std::vector< std::vector< int > >::value_type *arg2 = 0 ;
33008   void *argp1 = 0 ;
33009   int res1 = 0 ;
33010   int res2 = SWIG_OLDOBJ ;
33011   PyObject * obj0 = 0 ;
33012   PyObject * obj1 = 0 ;
33013   char * kwnames[] = {
33014     (char *)"self",  (char *)"x",  NULL
33015   };
33016 
33017   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:IntIntVector_append", kwnames, &obj0, &obj1)) SWIG_fail;
33018   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33019   if (!SWIG_IsOK(res1)) {
33020     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_append" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
33021   }
33022   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33023   {
33024     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
33025     res2 = swig::asptr(obj1, &ptr);
33026     if (!SWIG_IsOK(res2)) {
33027       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntIntVector_append" "', argument " "2"" of type '" "std::vector< std::vector< int > >::value_type const &""'");
33028     }
33029     if (!ptr) {
33030       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntIntVector_append" "', argument " "2"" of type '" "std::vector< std::vector< int > >::value_type const &""'");
33031     }
33032     arg2 = ptr;
33033   }
33034   {
33035     try {
33036       std_vector_Sl_std_vector_Sl_int_Sg__Sg__append(arg1,(std::vector< int,std::allocator< int > > const &)*arg2);
33037     } catch (const std::exception& e) {
33038       SWIG_exception(SWIG_RuntimeError, e.what());
33039     }
33040   }
33041   resultobj = SWIG_Py_Void();
33042   if (SWIG_IsNewObj(res2)) delete arg2;
33043   return resultobj;
33044 fail:
33045   if (SWIG_IsNewObj(res2)) delete arg2;
33046   return NULL;
33047 }
33048 
33049 
_wrap_new_IntIntVector__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))33050 SWIGINTERN PyObject *_wrap_new_IntIntVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
33051   PyObject *resultobj = 0;
33052   std::vector< std::vector< int > > *result = 0 ;
33053 
33054   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
33055   {
33056     try {
33057       result = (std::vector< std::vector< int > > *)new std::vector< std::vector< int > >();
33058     } catch (const std::exception& e) {
33059       SWIG_exception(SWIG_RuntimeError, e.what());
33060     }
33061   }
33062   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, SWIG_POINTER_NEW |  0 );
33063   return resultobj;
33064 fail:
33065   return NULL;
33066 }
33067 
33068 
_wrap_new_IntIntVector__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)33069 SWIGINTERN PyObject *_wrap_new_IntIntVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
33070   PyObject *resultobj = 0;
33071   std::vector< std::vector< int,std::allocator< int > > > *arg1 = 0 ;
33072   int res1 = SWIG_OLDOBJ ;
33073   std::vector< std::vector< int > > *result = 0 ;
33074 
33075   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
33076   {
33077     std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *ptr = (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *)0;
33078     res1 = swig::asptr(swig_obj[0], &ptr);
33079     if (!SWIG_IsOK(res1)) {
33080       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IntIntVector" "', argument " "1"" of type '" "std::vector< std::vector< int,std::allocator< int > > > const &""'");
33081     }
33082     if (!ptr) {
33083       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntIntVector" "', argument " "1"" of type '" "std::vector< std::vector< int,std::allocator< int > > > const &""'");
33084     }
33085     arg1 = ptr;
33086   }
33087   {
33088     try {
33089       result = (std::vector< std::vector< int > > *)new std::vector< std::vector< int > >((std::vector< std::vector< int,std::allocator< int > > > const &)*arg1);
33090     } catch (const std::exception& e) {
33091       SWIG_exception(SWIG_RuntimeError, e.what());
33092     }
33093   }
33094   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, SWIG_POINTER_NEW |  0 );
33095   if (SWIG_IsNewObj(res1)) delete arg1;
33096   return resultobj;
33097 fail:
33098   if (SWIG_IsNewObj(res1)) delete arg1;
33099   return NULL;
33100 }
33101 
33102 
_wrap_IntIntVector_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33103 SWIGINTERN PyObject *_wrap_IntIntVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33104   PyObject *resultobj = 0;
33105   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33106   void *argp1 = 0 ;
33107   int res1 = 0 ;
33108   PyObject *swig_obj[1] ;
33109   bool result;
33110 
33111   if (!args) SWIG_fail;
33112   swig_obj[0] = args;
33113   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33114   if (!SWIG_IsOK(res1)) {
33115     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_empty" "', argument " "1"" of type '" "std::vector< std::vector< int > > const *""'");
33116   }
33117   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33118   {
33119     try {
33120       result = (bool)((std::vector< std::vector< int > > const *)arg1)->empty();
33121     } catch (const std::exception& e) {
33122       SWIG_exception(SWIG_RuntimeError, e.what());
33123     }
33124   }
33125   resultobj = SWIG_From_bool(static_cast< bool >(result));
33126   return resultobj;
33127 fail:
33128   return NULL;
33129 }
33130 
33131 
_wrap_IntIntVector_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33132 SWIGINTERN PyObject *_wrap_IntIntVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33133   PyObject *resultobj = 0;
33134   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33135   void *argp1 = 0 ;
33136   int res1 = 0 ;
33137   PyObject *swig_obj[1] ;
33138   std::vector< std::vector< int > >::size_type result;
33139 
33140   if (!args) SWIG_fail;
33141   swig_obj[0] = args;
33142   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33143   if (!SWIG_IsOK(res1)) {
33144     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_size" "', argument " "1"" of type '" "std::vector< std::vector< int > > const *""'");
33145   }
33146   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33147   {
33148     try {
33149       result = ((std::vector< std::vector< int > > const *)arg1)->size();
33150     } catch (const std::exception& e) {
33151       SWIG_exception(SWIG_RuntimeError, e.what());
33152     }
33153   }
33154   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
33155   return resultobj;
33156 fail:
33157   return NULL;
33158 }
33159 
33160 
_wrap_IntIntVector_swap(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)33161 SWIGINTERN PyObject *_wrap_IntIntVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33162   PyObject *resultobj = 0;
33163   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33164   std::vector< std::vector< int,std::allocator< int > > > *arg2 = 0 ;
33165   void *argp1 = 0 ;
33166   int res1 = 0 ;
33167   void *argp2 = 0 ;
33168   int res2 = 0 ;
33169   PyObject * obj0 = 0 ;
33170   PyObject * obj1 = 0 ;
33171   char * kwnames[] = {
33172     (char *)"self",  (char *)"v",  NULL
33173   };
33174 
33175   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:IntIntVector_swap", kwnames, &obj0, &obj1)) SWIG_fail;
33176   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33177   if (!SWIG_IsOK(res1)) {
33178     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_swap" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
33179   }
33180   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33181   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t,  0 );
33182   if (!SWIG_IsOK(res2)) {
33183     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntIntVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< int,std::allocator< int > > > &""'");
33184   }
33185   if (!argp2) {
33186     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntIntVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< int,std::allocator< int > > > &""'");
33187   }
33188   arg2 = reinterpret_cast< std::vector< std::vector< int,std::allocator< int > > > * >(argp2);
33189   {
33190     try {
33191       (arg1)->swap(*arg2);
33192     } catch (const std::exception& e) {
33193       SWIG_exception(SWIG_RuntimeError, e.what());
33194     }
33195   }
33196   resultobj = SWIG_Py_Void();
33197   return resultobj;
33198 fail:
33199   return NULL;
33200 }
33201 
33202 
_wrap_IntIntVector_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33203 SWIGINTERN PyObject *_wrap_IntIntVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33204   PyObject *resultobj = 0;
33205   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33206   void *argp1 = 0 ;
33207   int res1 = 0 ;
33208   PyObject *swig_obj[1] ;
33209   std::vector< std::vector< int > >::iterator result;
33210 
33211   if (!args) SWIG_fail;
33212   swig_obj[0] = args;
33213   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33214   if (!SWIG_IsOK(res1)) {
33215     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_begin" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
33216   }
33217   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33218   {
33219     try {
33220       result = (arg1)->begin();
33221     } catch (const std::exception& e) {
33222       SWIG_exception(SWIG_RuntimeError, e.what());
33223     }
33224   }
33225   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< int > >::iterator & >(result)),
33226     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
33227   return resultobj;
33228 fail:
33229   return NULL;
33230 }
33231 
33232 
_wrap_IntIntVector_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33233 SWIGINTERN PyObject *_wrap_IntIntVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33234   PyObject *resultobj = 0;
33235   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33236   void *argp1 = 0 ;
33237   int res1 = 0 ;
33238   PyObject *swig_obj[1] ;
33239   std::vector< std::vector< int > >::iterator result;
33240 
33241   if (!args) SWIG_fail;
33242   swig_obj[0] = args;
33243   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33244   if (!SWIG_IsOK(res1)) {
33245     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_end" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
33246   }
33247   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33248   {
33249     try {
33250       result = (arg1)->end();
33251     } catch (const std::exception& e) {
33252       SWIG_exception(SWIG_RuntimeError, e.what());
33253     }
33254   }
33255   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< int > >::iterator & >(result)),
33256     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
33257   return resultobj;
33258 fail:
33259   return NULL;
33260 }
33261 
33262 
_wrap_IntIntVector_rbegin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33263 SWIGINTERN PyObject *_wrap_IntIntVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33264   PyObject *resultobj = 0;
33265   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33266   void *argp1 = 0 ;
33267   int res1 = 0 ;
33268   PyObject *swig_obj[1] ;
33269   std::vector< std::vector< int > >::reverse_iterator result;
33270 
33271   if (!args) SWIG_fail;
33272   swig_obj[0] = args;
33273   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33274   if (!SWIG_IsOK(res1)) {
33275     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_rbegin" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
33276   }
33277   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33278   {
33279     try {
33280       result = (arg1)->rbegin();
33281     } catch (const std::exception& e) {
33282       SWIG_exception(SWIG_RuntimeError, e.what());
33283     }
33284   }
33285   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< int > >::reverse_iterator & >(result)),
33286     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
33287   return resultobj;
33288 fail:
33289   return NULL;
33290 }
33291 
33292 
_wrap_IntIntVector_rend(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33293 SWIGINTERN PyObject *_wrap_IntIntVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33294   PyObject *resultobj = 0;
33295   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33296   void *argp1 = 0 ;
33297   int res1 = 0 ;
33298   PyObject *swig_obj[1] ;
33299   std::vector< std::vector< int > >::reverse_iterator result;
33300 
33301   if (!args) SWIG_fail;
33302   swig_obj[0] = args;
33303   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33304   if (!SWIG_IsOK(res1)) {
33305     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_rend" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
33306   }
33307   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33308   {
33309     try {
33310       result = (arg1)->rend();
33311     } catch (const std::exception& e) {
33312       SWIG_exception(SWIG_RuntimeError, e.what());
33313     }
33314   }
33315   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< int > >::reverse_iterator & >(result)),
33316     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
33317   return resultobj;
33318 fail:
33319   return NULL;
33320 }
33321 
33322 
_wrap_IntIntVector_clear(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33323 SWIGINTERN PyObject *_wrap_IntIntVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33324   PyObject *resultobj = 0;
33325   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33326   void *argp1 = 0 ;
33327   int res1 = 0 ;
33328   PyObject *swig_obj[1] ;
33329 
33330   if (!args) SWIG_fail;
33331   swig_obj[0] = args;
33332   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33333   if (!SWIG_IsOK(res1)) {
33334     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_clear" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
33335   }
33336   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33337   {
33338     try {
33339       (arg1)->clear();
33340     } catch (const std::exception& e) {
33341       SWIG_exception(SWIG_RuntimeError, e.what());
33342     }
33343   }
33344   resultobj = SWIG_Py_Void();
33345   return resultobj;
33346 fail:
33347   return NULL;
33348 }
33349 
33350 
_wrap_IntIntVector_get_allocator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33351 SWIGINTERN PyObject *_wrap_IntIntVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33352   PyObject *resultobj = 0;
33353   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33354   void *argp1 = 0 ;
33355   int res1 = 0 ;
33356   PyObject *swig_obj[1] ;
33357   SwigValueWrapper< std::allocator< std::vector< int,std::allocator< int > > > > result;
33358 
33359   if (!args) SWIG_fail;
33360   swig_obj[0] = args;
33361   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33362   if (!SWIG_IsOK(res1)) {
33363     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_get_allocator" "', argument " "1"" of type '" "std::vector< std::vector< int > > const *""'");
33364   }
33365   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33366   {
33367     try {
33368       result = ((std::vector< std::vector< int > > const *)arg1)->get_allocator();
33369     } catch (const std::exception& e) {
33370       SWIG_exception(SWIG_RuntimeError, e.what());
33371     }
33372   }
33373   resultobj = SWIG_NewPointerObj((new std::vector< std::vector< int > >::allocator_type(static_cast< const std::vector< std::vector< int > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t, SWIG_POINTER_OWN |  0 );
33374   return resultobj;
33375 fail:
33376   return NULL;
33377 }
33378 
33379 
_wrap_new_IntIntVector__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)33380 SWIGINTERN PyObject *_wrap_new_IntIntVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
33381   PyObject *resultobj = 0;
33382   std::vector< std::vector< int > >::size_type arg1 ;
33383   size_t val1 ;
33384   int ecode1 = 0 ;
33385   std::vector< std::vector< int > > *result = 0 ;
33386 
33387   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
33388   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
33389   if (!SWIG_IsOK(ecode1)) {
33390     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IntIntVector" "', argument " "1"" of type '" "std::vector< std::vector< int > >::size_type""'");
33391   }
33392   arg1 = static_cast< std::vector< std::vector< int > >::size_type >(val1);
33393   {
33394     try {
33395       result = (std::vector< std::vector< int > > *)new std::vector< std::vector< int > >(arg1);
33396     } catch (const std::exception& e) {
33397       SWIG_exception(SWIG_RuntimeError, e.what());
33398     }
33399   }
33400   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, SWIG_POINTER_NEW |  0 );
33401   return resultobj;
33402 fail:
33403   return NULL;
33404 }
33405 
33406 
_wrap_IntIntVector_pop_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33407 SWIGINTERN PyObject *_wrap_IntIntVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33408   PyObject *resultobj = 0;
33409   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33410   void *argp1 = 0 ;
33411   int res1 = 0 ;
33412   PyObject *swig_obj[1] ;
33413 
33414   if (!args) SWIG_fail;
33415   swig_obj[0] = args;
33416   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33417   if (!SWIG_IsOK(res1)) {
33418     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_pop_back" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
33419   }
33420   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33421   {
33422     try {
33423       (arg1)->pop_back();
33424     } catch (const std::exception& e) {
33425       SWIG_exception(SWIG_RuntimeError, e.what());
33426     }
33427   }
33428   resultobj = SWIG_Py_Void();
33429   return resultobj;
33430 fail:
33431   return NULL;
33432 }
33433 
33434 
_wrap_IntIntVector_resize__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)33435 SWIGINTERN PyObject *_wrap_IntIntVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
33436   PyObject *resultobj = 0;
33437   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33438   std::vector< std::vector< int > >::size_type arg2 ;
33439   void *argp1 = 0 ;
33440   int res1 = 0 ;
33441   size_t val2 ;
33442   int ecode2 = 0 ;
33443 
33444   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
33445   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33446   if (!SWIG_IsOK(res1)) {
33447     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_resize" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
33448   }
33449   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33450   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
33451   if (!SWIG_IsOK(ecode2)) {
33452     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntIntVector_resize" "', argument " "2"" of type '" "std::vector< std::vector< int > >::size_type""'");
33453   }
33454   arg2 = static_cast< std::vector< std::vector< int > >::size_type >(val2);
33455   {
33456     try {
33457       (arg1)->resize(arg2);
33458     } catch (const std::exception& e) {
33459       SWIG_exception(SWIG_RuntimeError, e.what());
33460     }
33461   }
33462   resultobj = SWIG_Py_Void();
33463   return resultobj;
33464 fail:
33465   return NULL;
33466 }
33467 
33468 
_wrap_IntIntVector_erase__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)33469 SWIGINTERN PyObject *_wrap_IntIntVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
33470   PyObject *resultobj = 0;
33471   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33472   std::vector< std::vector< int > >::iterator arg2 ;
33473   void *argp1 = 0 ;
33474   int res1 = 0 ;
33475   swig::SwigPyIterator *iter2 = 0 ;
33476   int res2 ;
33477   std::vector< std::vector< int > >::iterator result;
33478 
33479   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
33480   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33481   if (!SWIG_IsOK(res1)) {
33482     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_erase" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
33483   }
33484   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33485   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
33486   if (!SWIG_IsOK(res2) || !iter2) {
33487     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntIntVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< int > >::iterator""'");
33488   } else {
33489     swig::SwigPyIterator_T<std::vector< std::vector< int > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< int > >::iterator > *>(iter2);
33490     if (iter_t) {
33491       arg2 = iter_t->get_current();
33492     } else {
33493       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntIntVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< int > >::iterator""'");
33494     }
33495   }
33496   {
33497     try {
33498       result = std_vector_Sl_std_vector_Sl_int_Sg__Sg__erase__SWIG_0(arg1,arg2);
33499     } catch (const std::exception& e) {
33500       SWIG_exception(SWIG_RuntimeError, e.what());
33501     }
33502   }
33503   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< int > >::iterator & >(result)),
33504     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
33505   return resultobj;
33506 fail:
33507   return NULL;
33508 }
33509 
33510 
_wrap_IntIntVector_erase__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)33511 SWIGINTERN PyObject *_wrap_IntIntVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
33512   PyObject *resultobj = 0;
33513   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33514   std::vector< std::vector< int > >::iterator arg2 ;
33515   std::vector< std::vector< int > >::iterator arg3 ;
33516   void *argp1 = 0 ;
33517   int res1 = 0 ;
33518   swig::SwigPyIterator *iter2 = 0 ;
33519   int res2 ;
33520   swig::SwigPyIterator *iter3 = 0 ;
33521   int res3 ;
33522   std::vector< std::vector< int > >::iterator result;
33523 
33524   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
33525   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33526   if (!SWIG_IsOK(res1)) {
33527     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_erase" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
33528   }
33529   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33530   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
33531   if (!SWIG_IsOK(res2) || !iter2) {
33532     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntIntVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< int > >::iterator""'");
33533   } else {
33534     swig::SwigPyIterator_T<std::vector< std::vector< int > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< int > >::iterator > *>(iter2);
33535     if (iter_t) {
33536       arg2 = iter_t->get_current();
33537     } else {
33538       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntIntVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< int > >::iterator""'");
33539     }
33540   }
33541   res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
33542   if (!SWIG_IsOK(res3) || !iter3) {
33543     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntIntVector_erase" "', argument " "3"" of type '" "std::vector< std::vector< int > >::iterator""'");
33544   } else {
33545     swig::SwigPyIterator_T<std::vector< std::vector< int > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< int > >::iterator > *>(iter3);
33546     if (iter_t) {
33547       arg3 = iter_t->get_current();
33548     } else {
33549       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntIntVector_erase" "', argument " "3"" of type '" "std::vector< std::vector< int > >::iterator""'");
33550     }
33551   }
33552   {
33553     try {
33554       result = std_vector_Sl_std_vector_Sl_int_Sg__Sg__erase__SWIG_1(arg1,arg2,arg3);
33555     } catch (const std::exception& e) {
33556       SWIG_exception(SWIG_RuntimeError, e.what());
33557     }
33558   }
33559   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< int > >::iterator & >(result)),
33560     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
33561   return resultobj;
33562 fail:
33563   return NULL;
33564 }
33565 
33566 
_wrap_IntIntVector_erase(PyObject * self,PyObject * args)33567 SWIGINTERN PyObject *_wrap_IntIntVector_erase(PyObject *self, PyObject *args) {
33568   Py_ssize_t argc;
33569   PyObject *argv[4] = {
33570     0
33571   };
33572 
33573   if (!(argc = SWIG_Python_UnpackTuple(args, "IntIntVector_erase", 0, 3, argv))) SWIG_fail;
33574   --argc;
33575   if (argc == 2) {
33576     int _v;
33577     int res = swig::asptr(argv[0], (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >**)(0));
33578     _v = SWIG_CheckState(res);
33579     if (_v) {
33580       swig::SwigPyIterator *iter = 0;
33581       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
33582       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< int > >::iterator > *>(iter) != 0));
33583       if (_v) {
33584         return _wrap_IntIntVector_erase__SWIG_0(self, argc, argv);
33585       }
33586     }
33587   }
33588   if (argc == 3) {
33589     int _v;
33590     int res = swig::asptr(argv[0], (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >**)(0));
33591     _v = SWIG_CheckState(res);
33592     if (_v) {
33593       swig::SwigPyIterator *iter = 0;
33594       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
33595       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< int > >::iterator > *>(iter) != 0));
33596       if (_v) {
33597         swig::SwigPyIterator *iter = 0;
33598         int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
33599         _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< int > >::iterator > *>(iter) != 0));
33600         if (_v) {
33601           return _wrap_IntIntVector_erase__SWIG_1(self, argc, argv);
33602         }
33603       }
33604     }
33605   }
33606 
33607 fail:
33608   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntIntVector_erase'.\n"
33609     "  Possible C/C++ prototypes are:\n"
33610     "    std::vector< std::vector< int > >::erase(std::vector< std::vector< int > >::iterator)\n"
33611     "    std::vector< std::vector< int > >::erase(std::vector< std::vector< int > >::iterator,std::vector< std::vector< int > >::iterator)\n");
33612   return 0;
33613 }
33614 
33615 
_wrap_new_IntIntVector__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)33616 SWIGINTERN PyObject *_wrap_new_IntIntVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
33617   PyObject *resultobj = 0;
33618   std::vector< std::vector< int > >::size_type arg1 ;
33619   std::vector< std::vector< int > >::value_type *arg2 = 0 ;
33620   size_t val1 ;
33621   int ecode1 = 0 ;
33622   int res2 = SWIG_OLDOBJ ;
33623   std::vector< std::vector< int > > *result = 0 ;
33624 
33625   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
33626   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
33627   if (!SWIG_IsOK(ecode1)) {
33628     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IntIntVector" "', argument " "1"" of type '" "std::vector< std::vector< int > >::size_type""'");
33629   }
33630   arg1 = static_cast< std::vector< std::vector< int > >::size_type >(val1);
33631   {
33632     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
33633     res2 = swig::asptr(swig_obj[1], &ptr);
33634     if (!SWIG_IsOK(res2)) {
33635       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_IntIntVector" "', argument " "2"" of type '" "std::vector< std::vector< int > >::value_type const &""'");
33636     }
33637     if (!ptr) {
33638       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntIntVector" "', argument " "2"" of type '" "std::vector< std::vector< int > >::value_type const &""'");
33639     }
33640     arg2 = ptr;
33641   }
33642   {
33643     try {
33644       result = (std::vector< std::vector< int > > *)new std::vector< std::vector< int > >(arg1,(std::vector< std::vector< int > >::value_type const &)*arg2);
33645     } catch (const std::exception& e) {
33646       SWIG_exception(SWIG_RuntimeError, e.what());
33647     }
33648   }
33649   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, SWIG_POINTER_NEW |  0 );
33650   if (SWIG_IsNewObj(res2)) delete arg2;
33651   return resultobj;
33652 fail:
33653   if (SWIG_IsNewObj(res2)) delete arg2;
33654   return NULL;
33655 }
33656 
33657 
_wrap_new_IntIntVector(PyObject * self,PyObject * args)33658 SWIGINTERN PyObject *_wrap_new_IntIntVector(PyObject *self, PyObject *args) {
33659   Py_ssize_t argc;
33660   PyObject *argv[3] = {
33661     0
33662   };
33663 
33664   if (!(argc = SWIG_Python_UnpackTuple(args, "new_IntIntVector", 0, 2, argv))) SWIG_fail;
33665   --argc;
33666   if (argc == 0) {
33667     return _wrap_new_IntIntVector__SWIG_0(self, argc, argv);
33668   }
33669   if (argc == 1) {
33670     int _v;
33671     {
33672       int res = SWIG_AsVal_size_t(argv[0], NULL);
33673       _v = SWIG_CheckState(res);
33674     }
33675     if (_v) {
33676       return _wrap_new_IntIntVector__SWIG_2(self, argc, argv);
33677     }
33678   }
33679   if (argc == 1) {
33680     int _v;
33681     int res = swig::asptr(argv[0], (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >**)(0));
33682     _v = SWIG_CheckState(res);
33683     if (_v) {
33684       return _wrap_new_IntIntVector__SWIG_1(self, argc, argv);
33685     }
33686   }
33687   if (argc == 2) {
33688     int _v;
33689     {
33690       int res = SWIG_AsVal_size_t(argv[0], NULL);
33691       _v = SWIG_CheckState(res);
33692     }
33693     if (_v) {
33694       int res = swig::asptr(argv[1], (std::vector< int,std::allocator< int > >**)(0));
33695       _v = SWIG_CheckState(res);
33696       if (_v) {
33697         return _wrap_new_IntIntVector__SWIG_3(self, argc, argv);
33698       }
33699     }
33700   }
33701 
33702 fail:
33703   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_IntIntVector'.\n"
33704     "  Possible C/C++ prototypes are:\n"
33705     "    std::vector< std::vector< int > >::vector()\n"
33706     "    std::vector< std::vector< int > >::vector(std::vector< std::vector< int,std::allocator< int > > > const &)\n"
33707     "    std::vector< std::vector< int > >::vector(std::vector< std::vector< int > >::size_type)\n"
33708     "    std::vector< std::vector< int > >::vector(std::vector< std::vector< int > >::size_type,std::vector< std::vector< int > >::value_type const &)\n");
33709   return 0;
33710 }
33711 
33712 
_wrap_IntIntVector_push_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)33713 SWIGINTERN PyObject *_wrap_IntIntVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33714   PyObject *resultobj = 0;
33715   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33716   std::vector< std::vector< int > >::value_type *arg2 = 0 ;
33717   void *argp1 = 0 ;
33718   int res1 = 0 ;
33719   int res2 = SWIG_OLDOBJ ;
33720   PyObject * obj0 = 0 ;
33721   PyObject * obj1 = 0 ;
33722   char * kwnames[] = {
33723     (char *)"self",  (char *)"x",  NULL
33724   };
33725 
33726   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:IntIntVector_push_back", kwnames, &obj0, &obj1)) SWIG_fail;
33727   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33728   if (!SWIG_IsOK(res1)) {
33729     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_push_back" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
33730   }
33731   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33732   {
33733     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
33734     res2 = swig::asptr(obj1, &ptr);
33735     if (!SWIG_IsOK(res2)) {
33736       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntIntVector_push_back" "', argument " "2"" of type '" "std::vector< std::vector< int > >::value_type const &""'");
33737     }
33738     if (!ptr) {
33739       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntIntVector_push_back" "', argument " "2"" of type '" "std::vector< std::vector< int > >::value_type const &""'");
33740     }
33741     arg2 = ptr;
33742   }
33743   {
33744     try {
33745       (arg1)->push_back((std::vector< std::vector< int > >::value_type const &)*arg2);
33746     } catch (const std::exception& e) {
33747       SWIG_exception(SWIG_RuntimeError, e.what());
33748     }
33749   }
33750   resultobj = SWIG_Py_Void();
33751   if (SWIG_IsNewObj(res2)) delete arg2;
33752   return resultobj;
33753 fail:
33754   if (SWIG_IsNewObj(res2)) delete arg2;
33755   return NULL;
33756 }
33757 
33758 
_wrap_IntIntVector_front(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33759 SWIGINTERN PyObject *_wrap_IntIntVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33760   PyObject *resultobj = 0;
33761   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33762   void *argp1 = 0 ;
33763   int res1 = 0 ;
33764   PyObject *swig_obj[1] ;
33765   std::vector< std::vector< int > >::value_type *result = 0 ;
33766 
33767   if (!args) SWIG_fail;
33768   swig_obj[0] = args;
33769   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33770   if (!SWIG_IsOK(res1)) {
33771     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_front" "', argument " "1"" of type '" "std::vector< std::vector< int > > const *""'");
33772   }
33773   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33774   {
33775     try {
33776       result = (std::vector< std::vector< int > >::value_type *) &((std::vector< std::vector< int > > const *)arg1)->front();
33777     } catch (const std::exception& e) {
33778       SWIG_exception(SWIG_RuntimeError, e.what());
33779     }
33780   }
33781   resultobj = swig::from(static_cast< std::vector< int,std::allocator< int > > >(*result));
33782   (void)swig::container_owner<swig::traits<std::vector< std::vector< int > >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
33783   return resultobj;
33784 fail:
33785   return NULL;
33786 }
33787 
33788 
_wrap_IntIntVector_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33789 SWIGINTERN PyObject *_wrap_IntIntVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33790   PyObject *resultobj = 0;
33791   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33792   void *argp1 = 0 ;
33793   int res1 = 0 ;
33794   PyObject *swig_obj[1] ;
33795   std::vector< std::vector< int > >::value_type *result = 0 ;
33796 
33797   if (!args) SWIG_fail;
33798   swig_obj[0] = args;
33799   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33800   if (!SWIG_IsOK(res1)) {
33801     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_back" "', argument " "1"" of type '" "std::vector< std::vector< int > > const *""'");
33802   }
33803   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33804   {
33805     try {
33806       result = (std::vector< std::vector< int > >::value_type *) &((std::vector< std::vector< int > > const *)arg1)->back();
33807     } catch (const std::exception& e) {
33808       SWIG_exception(SWIG_RuntimeError, e.what());
33809     }
33810   }
33811   resultobj = swig::from(static_cast< std::vector< int,std::allocator< int > > >(*result));
33812   (void)swig::container_owner<swig::traits<std::vector< std::vector< int > >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
33813   return resultobj;
33814 fail:
33815   return NULL;
33816 }
33817 
33818 
_wrap_IntIntVector_assign(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)33819 SWIGINTERN PyObject *_wrap_IntIntVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33820   PyObject *resultobj = 0;
33821   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33822   std::vector< std::vector< int > >::size_type arg2 ;
33823   std::vector< std::vector< int > >::value_type *arg3 = 0 ;
33824   void *argp1 = 0 ;
33825   int res1 = 0 ;
33826   size_t val2 ;
33827   int ecode2 = 0 ;
33828   int res3 = SWIG_OLDOBJ ;
33829   PyObject * obj0 = 0 ;
33830   PyObject * obj1 = 0 ;
33831   PyObject * obj2 = 0 ;
33832   char * kwnames[] = {
33833     (char *)"self",  (char *)"n",  (char *)"x",  NULL
33834   };
33835 
33836   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:IntIntVector_assign", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
33837   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33838   if (!SWIG_IsOK(res1)) {
33839     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_assign" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
33840   }
33841   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33842   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
33843   if (!SWIG_IsOK(ecode2)) {
33844     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntIntVector_assign" "', argument " "2"" of type '" "std::vector< std::vector< int > >::size_type""'");
33845   }
33846   arg2 = static_cast< std::vector< std::vector< int > >::size_type >(val2);
33847   {
33848     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
33849     res3 = swig::asptr(obj2, &ptr);
33850     if (!SWIG_IsOK(res3)) {
33851       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntIntVector_assign" "', argument " "3"" of type '" "std::vector< std::vector< int > >::value_type const &""'");
33852     }
33853     if (!ptr) {
33854       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntIntVector_assign" "', argument " "3"" of type '" "std::vector< std::vector< int > >::value_type const &""'");
33855     }
33856     arg3 = ptr;
33857   }
33858   {
33859     try {
33860       (arg1)->assign(arg2,(std::vector< std::vector< int > >::value_type const &)*arg3);
33861     } catch (const std::exception& e) {
33862       SWIG_exception(SWIG_RuntimeError, e.what());
33863     }
33864   }
33865   resultobj = SWIG_Py_Void();
33866   if (SWIG_IsNewObj(res3)) delete arg3;
33867   return resultobj;
33868 fail:
33869   if (SWIG_IsNewObj(res3)) delete arg3;
33870   return NULL;
33871 }
33872 
33873 
_wrap_IntIntVector_resize__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)33874 SWIGINTERN PyObject *_wrap_IntIntVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
33875   PyObject *resultobj = 0;
33876   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33877   std::vector< std::vector< int > >::size_type arg2 ;
33878   std::vector< std::vector< int > >::value_type *arg3 = 0 ;
33879   void *argp1 = 0 ;
33880   int res1 = 0 ;
33881   size_t val2 ;
33882   int ecode2 = 0 ;
33883   int res3 = SWIG_OLDOBJ ;
33884 
33885   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
33886   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33887   if (!SWIG_IsOK(res1)) {
33888     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_resize" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
33889   }
33890   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33891   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
33892   if (!SWIG_IsOK(ecode2)) {
33893     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntIntVector_resize" "', argument " "2"" of type '" "std::vector< std::vector< int > >::size_type""'");
33894   }
33895   arg2 = static_cast< std::vector< std::vector< int > >::size_type >(val2);
33896   {
33897     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
33898     res3 = swig::asptr(swig_obj[2], &ptr);
33899     if (!SWIG_IsOK(res3)) {
33900       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntIntVector_resize" "', argument " "3"" of type '" "std::vector< std::vector< int > >::value_type const &""'");
33901     }
33902     if (!ptr) {
33903       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntIntVector_resize" "', argument " "3"" of type '" "std::vector< std::vector< int > >::value_type const &""'");
33904     }
33905     arg3 = ptr;
33906   }
33907   {
33908     try {
33909       (arg1)->resize(arg2,(std::vector< std::vector< int > >::value_type const &)*arg3);
33910     } catch (const std::exception& e) {
33911       SWIG_exception(SWIG_RuntimeError, e.what());
33912     }
33913   }
33914   resultobj = SWIG_Py_Void();
33915   if (SWIG_IsNewObj(res3)) delete arg3;
33916   return resultobj;
33917 fail:
33918   if (SWIG_IsNewObj(res3)) delete arg3;
33919   return NULL;
33920 }
33921 
33922 
_wrap_IntIntVector_resize(PyObject * self,PyObject * args)33923 SWIGINTERN PyObject *_wrap_IntIntVector_resize(PyObject *self, PyObject *args) {
33924   Py_ssize_t argc;
33925   PyObject *argv[4] = {
33926     0
33927   };
33928 
33929   if (!(argc = SWIG_Python_UnpackTuple(args, "IntIntVector_resize", 0, 3, argv))) SWIG_fail;
33930   --argc;
33931   if (argc == 2) {
33932     int _v;
33933     int res = swig::asptr(argv[0], (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >**)(0));
33934     _v = SWIG_CheckState(res);
33935     if (_v) {
33936       {
33937         int res = SWIG_AsVal_size_t(argv[1], NULL);
33938         _v = SWIG_CheckState(res);
33939       }
33940       if (_v) {
33941         return _wrap_IntIntVector_resize__SWIG_0(self, argc, argv);
33942       }
33943     }
33944   }
33945   if (argc == 3) {
33946     int _v;
33947     int res = swig::asptr(argv[0], (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >**)(0));
33948     _v = SWIG_CheckState(res);
33949     if (_v) {
33950       {
33951         int res = SWIG_AsVal_size_t(argv[1], NULL);
33952         _v = SWIG_CheckState(res);
33953       }
33954       if (_v) {
33955         int res = swig::asptr(argv[2], (std::vector< int,std::allocator< int > >**)(0));
33956         _v = SWIG_CheckState(res);
33957         if (_v) {
33958           return _wrap_IntIntVector_resize__SWIG_1(self, argc, argv);
33959         }
33960       }
33961     }
33962   }
33963 
33964 fail:
33965   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntIntVector_resize'.\n"
33966     "  Possible C/C++ prototypes are:\n"
33967     "    std::vector< std::vector< int > >::resize(std::vector< std::vector< int > >::size_type)\n"
33968     "    std::vector< std::vector< int > >::resize(std::vector< std::vector< int > >::size_type,std::vector< std::vector< int > >::value_type const &)\n");
33969   return 0;
33970 }
33971 
33972 
_wrap_IntIntVector_insert__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)33973 SWIGINTERN PyObject *_wrap_IntIntVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
33974   PyObject *resultobj = 0;
33975   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
33976   std::vector< std::vector< int > >::iterator arg2 ;
33977   std::vector< std::vector< int > >::value_type *arg3 = 0 ;
33978   void *argp1 = 0 ;
33979   int res1 = 0 ;
33980   swig::SwigPyIterator *iter2 = 0 ;
33981   int res2 ;
33982   int res3 = SWIG_OLDOBJ ;
33983   std::vector< std::vector< int > >::iterator result;
33984 
33985   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
33986   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
33987   if (!SWIG_IsOK(res1)) {
33988     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_insert" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
33989   }
33990   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
33991   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
33992   if (!SWIG_IsOK(res2) || !iter2) {
33993     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntIntVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< int > >::iterator""'");
33994   } else {
33995     swig::SwigPyIterator_T<std::vector< std::vector< int > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< int > >::iterator > *>(iter2);
33996     if (iter_t) {
33997       arg2 = iter_t->get_current();
33998     } else {
33999       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntIntVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< int > >::iterator""'");
34000     }
34001   }
34002   {
34003     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
34004     res3 = swig::asptr(swig_obj[2], &ptr);
34005     if (!SWIG_IsOK(res3)) {
34006       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntIntVector_insert" "', argument " "3"" of type '" "std::vector< std::vector< int > >::value_type const &""'");
34007     }
34008     if (!ptr) {
34009       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntIntVector_insert" "', argument " "3"" of type '" "std::vector< std::vector< int > >::value_type const &""'");
34010     }
34011     arg3 = ptr;
34012   }
34013   {
34014     try {
34015       result = std_vector_Sl_std_vector_Sl_int_Sg__Sg__insert__SWIG_0(arg1,arg2,(std::vector< int,std::allocator< int > > const &)*arg3);
34016     } catch (const std::exception& e) {
34017       SWIG_exception(SWIG_RuntimeError, e.what());
34018     }
34019   }
34020   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< int > >::iterator & >(result)),
34021     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
34022   if (SWIG_IsNewObj(res3)) delete arg3;
34023   return resultobj;
34024 fail:
34025   if (SWIG_IsNewObj(res3)) delete arg3;
34026   return NULL;
34027 }
34028 
34029 
_wrap_IntIntVector_insert__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)34030 SWIGINTERN PyObject *_wrap_IntIntVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
34031   PyObject *resultobj = 0;
34032   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
34033   std::vector< std::vector< int > >::iterator arg2 ;
34034   std::vector< std::vector< int > >::size_type arg3 ;
34035   std::vector< std::vector< int > >::value_type *arg4 = 0 ;
34036   void *argp1 = 0 ;
34037   int res1 = 0 ;
34038   swig::SwigPyIterator *iter2 = 0 ;
34039   int res2 ;
34040   size_t val3 ;
34041   int ecode3 = 0 ;
34042   int res4 = SWIG_OLDOBJ ;
34043 
34044   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
34045   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
34046   if (!SWIG_IsOK(res1)) {
34047     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_insert" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
34048   }
34049   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
34050   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
34051   if (!SWIG_IsOK(res2) || !iter2) {
34052     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntIntVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< int > >::iterator""'");
34053   } else {
34054     swig::SwigPyIterator_T<std::vector< std::vector< int > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< int > >::iterator > *>(iter2);
34055     if (iter_t) {
34056       arg2 = iter_t->get_current();
34057     } else {
34058       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntIntVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< int > >::iterator""'");
34059     }
34060   }
34061   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
34062   if (!SWIG_IsOK(ecode3)) {
34063     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntIntVector_insert" "', argument " "3"" of type '" "std::vector< std::vector< int > >::size_type""'");
34064   }
34065   arg3 = static_cast< std::vector< std::vector< int > >::size_type >(val3);
34066   {
34067     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
34068     res4 = swig::asptr(swig_obj[3], &ptr);
34069     if (!SWIG_IsOK(res4)) {
34070       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IntIntVector_insert" "', argument " "4"" of type '" "std::vector< std::vector< int > >::value_type const &""'");
34071     }
34072     if (!ptr) {
34073       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntIntVector_insert" "', argument " "4"" of type '" "std::vector< std::vector< int > >::value_type const &""'");
34074     }
34075     arg4 = ptr;
34076   }
34077   {
34078     try {
34079       std_vector_Sl_std_vector_Sl_int_Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(std::vector< int,std::allocator< int > > const &)*arg4);
34080     } catch (const std::exception& e) {
34081       SWIG_exception(SWIG_RuntimeError, e.what());
34082     }
34083   }
34084   resultobj = SWIG_Py_Void();
34085   if (SWIG_IsNewObj(res4)) delete arg4;
34086   return resultobj;
34087 fail:
34088   if (SWIG_IsNewObj(res4)) delete arg4;
34089   return NULL;
34090 }
34091 
34092 
_wrap_IntIntVector_insert(PyObject * self,PyObject * args)34093 SWIGINTERN PyObject *_wrap_IntIntVector_insert(PyObject *self, PyObject *args) {
34094   Py_ssize_t argc;
34095   PyObject *argv[5] = {
34096     0
34097   };
34098 
34099   if (!(argc = SWIG_Python_UnpackTuple(args, "IntIntVector_insert", 0, 4, argv))) SWIG_fail;
34100   --argc;
34101   if (argc == 3) {
34102     int _v;
34103     int res = swig::asptr(argv[0], (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >**)(0));
34104     _v = SWIG_CheckState(res);
34105     if (_v) {
34106       swig::SwigPyIterator *iter = 0;
34107       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
34108       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< int > >::iterator > *>(iter) != 0));
34109       if (_v) {
34110         int res = swig::asptr(argv[2], (std::vector< int,std::allocator< int > >**)(0));
34111         _v = SWIG_CheckState(res);
34112         if (_v) {
34113           return _wrap_IntIntVector_insert__SWIG_0(self, argc, argv);
34114         }
34115       }
34116     }
34117   }
34118   if (argc == 4) {
34119     int _v;
34120     int res = swig::asptr(argv[0], (std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >**)(0));
34121     _v = SWIG_CheckState(res);
34122     if (_v) {
34123       swig::SwigPyIterator *iter = 0;
34124       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
34125       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< int > >::iterator > *>(iter) != 0));
34126       if (_v) {
34127         {
34128           int res = SWIG_AsVal_size_t(argv[2], NULL);
34129           _v = SWIG_CheckState(res);
34130         }
34131         if (_v) {
34132           int res = swig::asptr(argv[3], (std::vector< int,std::allocator< int > >**)(0));
34133           _v = SWIG_CheckState(res);
34134           if (_v) {
34135             return _wrap_IntIntVector_insert__SWIG_1(self, argc, argv);
34136           }
34137         }
34138       }
34139     }
34140   }
34141 
34142 fail:
34143   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'IntIntVector_insert'.\n"
34144     "  Possible C/C++ prototypes are:\n"
34145     "    std::vector< std::vector< int > >::insert(std::vector< std::vector< int > >::iterator,std::vector< std::vector< int > >::value_type const &)\n"
34146     "    std::vector< std::vector< int > >::insert(std::vector< std::vector< int > >::iterator,std::vector< std::vector< int > >::size_type,std::vector< std::vector< int > >::value_type const &)\n");
34147   return 0;
34148 }
34149 
34150 
_wrap_IntIntVector_reserve(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)34151 SWIGINTERN PyObject *_wrap_IntIntVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34152   PyObject *resultobj = 0;
34153   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
34154   std::vector< std::vector< int > >::size_type arg2 ;
34155   void *argp1 = 0 ;
34156   int res1 = 0 ;
34157   size_t val2 ;
34158   int ecode2 = 0 ;
34159   PyObject * obj0 = 0 ;
34160   PyObject * obj1 = 0 ;
34161   char * kwnames[] = {
34162     (char *)"self",  (char *)"n",  NULL
34163   };
34164 
34165   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:IntIntVector_reserve", kwnames, &obj0, &obj1)) SWIG_fail;
34166   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
34167   if (!SWIG_IsOK(res1)) {
34168     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_reserve" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
34169   }
34170   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
34171   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
34172   if (!SWIG_IsOK(ecode2)) {
34173     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntIntVector_reserve" "', argument " "2"" of type '" "std::vector< std::vector< int > >::size_type""'");
34174   }
34175   arg2 = static_cast< std::vector< std::vector< int > >::size_type >(val2);
34176   {
34177     try {
34178       (arg1)->reserve(arg2);
34179     } catch (const std::exception& e) {
34180       SWIG_exception(SWIG_RuntimeError, e.what());
34181     }
34182   }
34183   resultobj = SWIG_Py_Void();
34184   return resultobj;
34185 fail:
34186   return NULL;
34187 }
34188 
34189 
_wrap_IntIntVector_capacity(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34190 SWIGINTERN PyObject *_wrap_IntIntVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34191   PyObject *resultobj = 0;
34192   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
34193   void *argp1 = 0 ;
34194   int res1 = 0 ;
34195   PyObject *swig_obj[1] ;
34196   std::vector< std::vector< int > >::size_type result;
34197 
34198   if (!args) SWIG_fail;
34199   swig_obj[0] = args;
34200   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0 |  0 );
34201   if (!SWIG_IsOK(res1)) {
34202     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntIntVector_capacity" "', argument " "1"" of type '" "std::vector< std::vector< int > > const *""'");
34203   }
34204   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
34205   {
34206     try {
34207       result = ((std::vector< std::vector< int > > const *)arg1)->capacity();
34208     } catch (const std::exception& e) {
34209       SWIG_exception(SWIG_RuntimeError, e.what());
34210     }
34211   }
34212   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
34213   return resultobj;
34214 fail:
34215   return NULL;
34216 }
34217 
34218 
_wrap_delete_IntIntVector(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34219 SWIGINTERN PyObject *_wrap_delete_IntIntVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34220   PyObject *resultobj = 0;
34221   std::vector< std::vector< int > > *arg1 = (std::vector< std::vector< int > > *) 0 ;
34222   void *argp1 = 0 ;
34223   int res1 = 0 ;
34224   PyObject *swig_obj[1] ;
34225 
34226   if (!args) SWIG_fail;
34227   swig_obj[0] = args;
34228   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, SWIG_POINTER_DISOWN |  0 );
34229   if (!SWIG_IsOK(res1)) {
34230     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntIntVector" "', argument " "1"" of type '" "std::vector< std::vector< int > > *""'");
34231   }
34232   arg1 = reinterpret_cast< std::vector< std::vector< int > > * >(argp1);
34233   {
34234     try {
34235       delete arg1;
34236     } catch (const std::exception& e) {
34237       SWIG_exception(SWIG_RuntimeError, e.what());
34238     }
34239   }
34240   resultobj = SWIG_Py_Void();
34241   return resultobj;
34242 fail:
34243   return NULL;
34244 }
34245 
34246 
IntIntVector_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34247 SWIGINTERN PyObject *IntIntVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34248   PyObject *obj;
34249   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
34250   SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, SWIG_NewClientData(obj));
34251   return SWIG_Py_Void();
34252 }
34253 
IntIntVector_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34254 SWIGINTERN PyObject *IntIntVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34255   return SWIG_Python_InitShadowInstance(args);
34256 }
34257 
_wrap_ElemProbVector_iterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34258 SWIGINTERN PyObject *_wrap_ElemProbVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34259   PyObject *resultobj = 0;
34260   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
34261   PyObject **arg2 = (PyObject **) 0 ;
34262   void *argp1 = 0 ;
34263   int res1 = 0 ;
34264   PyObject *swig_obj[1] ;
34265   swig::SwigPyIterator *result = 0 ;
34266 
34267   arg2 = &swig_obj[0];
34268   if (!args) SWIG_fail;
34269   swig_obj[0] = args;
34270   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
34271   if (!SWIG_IsOK(res1)) {
34272     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_iterator" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
34273   }
34274   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
34275   {
34276     try {
34277       result = (swig::SwigPyIterator *)std_vector_Sl_vrna_ep_t_Sg__iterator(arg1,arg2);
34278     } catch (const std::exception& e) {
34279       SWIG_exception(SWIG_RuntimeError, e.what());
34280     }
34281   }
34282   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
34283   return resultobj;
34284 fail:
34285   return NULL;
34286 }
34287 
34288 
_wrap_ElemProbVector___nonzero__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34289 SWIGINTERN PyObject *_wrap_ElemProbVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34290   PyObject *resultobj = 0;
34291   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
34292   void *argp1 = 0 ;
34293   int res1 = 0 ;
34294   PyObject *swig_obj[1] ;
34295   bool result;
34296 
34297   if (!args) SWIG_fail;
34298   swig_obj[0] = args;
34299   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
34300   if (!SWIG_IsOK(res1)) {
34301     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector___nonzero__" "', argument " "1"" of type '" "std::vector< vrna_ep_t > const *""'");
34302   }
34303   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
34304   {
34305     try {
34306       result = (bool)std_vector_Sl_vrna_ep_t_Sg____nonzero__((std::vector< vrna_ep_t > const *)arg1);
34307     } catch (const std::exception& e) {
34308       SWIG_exception(SWIG_RuntimeError, e.what());
34309     }
34310   }
34311   resultobj = SWIG_From_bool(static_cast< bool >(result));
34312   return resultobj;
34313 fail:
34314   return NULL;
34315 }
34316 
34317 
_wrap_ElemProbVector___bool__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34318 SWIGINTERN PyObject *_wrap_ElemProbVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34319   PyObject *resultobj = 0;
34320   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
34321   void *argp1 = 0 ;
34322   int res1 = 0 ;
34323   PyObject *swig_obj[1] ;
34324   bool result;
34325 
34326   if (!args) SWIG_fail;
34327   swig_obj[0] = args;
34328   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
34329   if (!SWIG_IsOK(res1)) {
34330     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector___bool__" "', argument " "1"" of type '" "std::vector< vrna_ep_t > const *""'");
34331   }
34332   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
34333   {
34334     try {
34335       result = (bool)std_vector_Sl_vrna_ep_t_Sg____bool__((std::vector< vrna_ep_t > const *)arg1);
34336     } catch (const std::exception& e) {
34337       SWIG_exception(SWIG_RuntimeError, e.what());
34338     }
34339   }
34340   resultobj = SWIG_From_bool(static_cast< bool >(result));
34341   return resultobj;
34342 fail:
34343   return NULL;
34344 }
34345 
34346 
_wrap_ElemProbVector___len__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34347 SWIGINTERN PyObject *_wrap_ElemProbVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34348   PyObject *resultobj = 0;
34349   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
34350   void *argp1 = 0 ;
34351   int res1 = 0 ;
34352   PyObject *swig_obj[1] ;
34353   std::vector< vrna_ep_t >::size_type result;
34354 
34355   if (!args) SWIG_fail;
34356   swig_obj[0] = args;
34357   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
34358   if (!SWIG_IsOK(res1)) {
34359     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector___len__" "', argument " "1"" of type '" "std::vector< vrna_ep_t > const *""'");
34360   }
34361   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
34362   {
34363     try {
34364       result = std_vector_Sl_vrna_ep_t_Sg____len__((std::vector< vrna_ep_t > const *)arg1);
34365     } catch (const std::exception& e) {
34366       SWIG_exception(SWIG_RuntimeError, e.what());
34367     }
34368   }
34369   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
34370   return resultobj;
34371 fail:
34372   return NULL;
34373 }
34374 
34375 
_wrap_ElemProbVector___getslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)34376 SWIGINTERN PyObject *_wrap_ElemProbVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34377   PyObject *resultobj = 0;
34378   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
34379   std::vector< vrna_ep_t >::difference_type arg2 ;
34380   std::vector< vrna_ep_t >::difference_type arg3 ;
34381   void *argp1 = 0 ;
34382   int res1 = 0 ;
34383   ptrdiff_t val2 ;
34384   int ecode2 = 0 ;
34385   ptrdiff_t val3 ;
34386   int ecode3 = 0 ;
34387   PyObject * obj0 = 0 ;
34388   PyObject * obj1 = 0 ;
34389   PyObject * obj2 = 0 ;
34390   char * kwnames[] = {
34391     (char *)"self",  (char *)"i",  (char *)"j",  NULL
34392   };
34393   std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *result = 0 ;
34394 
34395   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:ElemProbVector___getslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
34396   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
34397   if (!SWIG_IsOK(res1)) {
34398     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector___getslice__" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
34399   }
34400   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
34401   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
34402   if (!SWIG_IsOK(ecode2)) {
34403     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ElemProbVector___getslice__" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::difference_type""'");
34404   }
34405   arg2 = static_cast< std::vector< vrna_ep_t >::difference_type >(val2);
34406   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
34407   if (!SWIG_IsOK(ecode3)) {
34408     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ElemProbVector___getslice__" "', argument " "3"" of type '" "std::vector< vrna_ep_t >::difference_type""'");
34409   }
34410   arg3 = static_cast< std::vector< vrna_ep_t >::difference_type >(val3);
34411   {
34412     try {
34413       try {
34414         result = (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *)std_vector_Sl_vrna_ep_t_Sg____getslice__(arg1,arg2,arg3);
34415       } catch(std::out_of_range &_e) {
34416         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
34417       } catch(std::invalid_argument &_e) {
34418         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
34419       }
34420     } catch (const std::exception& e) {
34421       SWIG_exception(SWIG_RuntimeError, e.what());
34422     }
34423   }
34424   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, SWIG_POINTER_OWN |  0 );
34425   return resultobj;
34426 fail:
34427   return NULL;
34428 }
34429 
34430 
_wrap_ElemProbVector___setslice____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)34431 SWIGINTERN PyObject *_wrap_ElemProbVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
34432   PyObject *resultobj = 0;
34433   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
34434   std::vector< vrna_ep_t >::difference_type arg2 ;
34435   std::vector< vrna_ep_t >::difference_type arg3 ;
34436   void *argp1 = 0 ;
34437   int res1 = 0 ;
34438   ptrdiff_t val2 ;
34439   int ecode2 = 0 ;
34440   ptrdiff_t val3 ;
34441   int ecode3 = 0 ;
34442 
34443   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
34444   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
34445   if (!SWIG_IsOK(res1)) {
34446     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector___setslice__" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
34447   }
34448   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
34449   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
34450   if (!SWIG_IsOK(ecode2)) {
34451     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ElemProbVector___setslice__" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::difference_type""'");
34452   }
34453   arg2 = static_cast< std::vector< vrna_ep_t >::difference_type >(val2);
34454   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
34455   if (!SWIG_IsOK(ecode3)) {
34456     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ElemProbVector___setslice__" "', argument " "3"" of type '" "std::vector< vrna_ep_t >::difference_type""'");
34457   }
34458   arg3 = static_cast< std::vector< vrna_ep_t >::difference_type >(val3);
34459   {
34460     try {
34461       try {
34462         std_vector_Sl_vrna_ep_t_Sg____setslice____SWIG_0(arg1,arg2,arg3);
34463       } catch(std::out_of_range &_e) {
34464         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
34465       } catch(std::invalid_argument &_e) {
34466         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
34467       }
34468     } catch (const std::exception& e) {
34469       SWIG_exception(SWIG_RuntimeError, e.what());
34470     }
34471   }
34472   resultobj = SWIG_Py_Void();
34473   return resultobj;
34474 fail:
34475   return NULL;
34476 }
34477 
34478 
_wrap_ElemProbVector___setslice____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)34479 SWIGINTERN PyObject *_wrap_ElemProbVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
34480   PyObject *resultobj = 0;
34481   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
34482   std::vector< vrna_ep_t >::difference_type arg2 ;
34483   std::vector< vrna_ep_t >::difference_type arg3 ;
34484   std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *arg4 = 0 ;
34485   void *argp1 = 0 ;
34486   int res1 = 0 ;
34487   ptrdiff_t val2 ;
34488   int ecode2 = 0 ;
34489   ptrdiff_t val3 ;
34490   int ecode3 = 0 ;
34491   int res4 = SWIG_OLDOBJ ;
34492 
34493   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
34494   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
34495   if (!SWIG_IsOK(res1)) {
34496     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector___setslice__" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
34497   }
34498   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
34499   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
34500   if (!SWIG_IsOK(ecode2)) {
34501     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ElemProbVector___setslice__" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::difference_type""'");
34502   }
34503   arg2 = static_cast< std::vector< vrna_ep_t >::difference_type >(val2);
34504   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
34505   if (!SWIG_IsOK(ecode3)) {
34506     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ElemProbVector___setslice__" "', argument " "3"" of type '" "std::vector< vrna_ep_t >::difference_type""'");
34507   }
34508   arg3 = static_cast< std::vector< vrna_ep_t >::difference_type >(val3);
34509   {
34510     std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *ptr = (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *)0;
34511     res4 = swig::asptr(swig_obj[3], &ptr);
34512     if (!SWIG_IsOK(res4)) {
34513       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ElemProbVector___setslice__" "', argument " "4"" of type '" "std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > const &""'");
34514     }
34515     if (!ptr) {
34516       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ElemProbVector___setslice__" "', argument " "4"" of type '" "std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > const &""'");
34517     }
34518     arg4 = ptr;
34519   }
34520   {
34521     try {
34522       try {
34523         std_vector_Sl_vrna_ep_t_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > const &)*arg4);
34524       } catch(std::out_of_range &_e) {
34525         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
34526       } catch(std::invalid_argument &_e) {
34527         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
34528       }
34529     } catch (const std::exception& e) {
34530       SWIG_exception(SWIG_RuntimeError, e.what());
34531     }
34532   }
34533   resultobj = SWIG_Py_Void();
34534   if (SWIG_IsNewObj(res4)) delete arg4;
34535   return resultobj;
34536 fail:
34537   if (SWIG_IsNewObj(res4)) delete arg4;
34538   return NULL;
34539 }
34540 
34541 
_wrap_ElemProbVector___setslice__(PyObject * self,PyObject * args)34542 SWIGINTERN PyObject *_wrap_ElemProbVector___setslice__(PyObject *self, PyObject *args) {
34543   Py_ssize_t argc;
34544   PyObject *argv[5] = {
34545     0
34546   };
34547 
34548   if (!(argc = SWIG_Python_UnpackTuple(args, "ElemProbVector___setslice__", 0, 4, argv))) SWIG_fail;
34549   --argc;
34550   if (argc == 3) {
34551     int _v;
34552     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
34553     _v = SWIG_CheckState(res);
34554     if (_v) {
34555       {
34556         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
34557         _v = SWIG_CheckState(res);
34558       }
34559       if (_v) {
34560         {
34561           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
34562           _v = SWIG_CheckState(res);
34563         }
34564         if (_v) {
34565           return _wrap_ElemProbVector___setslice____SWIG_0(self, argc, argv);
34566         }
34567       }
34568     }
34569   }
34570   if (argc == 4) {
34571     int _v;
34572     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
34573     _v = SWIG_CheckState(res);
34574     if (_v) {
34575       {
34576         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
34577         _v = SWIG_CheckState(res);
34578       }
34579       if (_v) {
34580         {
34581           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
34582           _v = SWIG_CheckState(res);
34583         }
34584         if (_v) {
34585           int res = swig::asptr(argv[3], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
34586           _v = SWIG_CheckState(res);
34587           if (_v) {
34588             return _wrap_ElemProbVector___setslice____SWIG_1(self, argc, argv);
34589           }
34590         }
34591       }
34592     }
34593   }
34594 
34595 fail:
34596   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ElemProbVector___setslice__'.\n"
34597     "  Possible C/C++ prototypes are:\n"
34598     "    std::vector< vrna_ep_t >::__setslice__(std::vector< vrna_ep_t >::difference_type,std::vector< vrna_ep_t >::difference_type)\n"
34599     "    std::vector< vrna_ep_t >::__setslice__(std::vector< vrna_ep_t >::difference_type,std::vector< vrna_ep_t >::difference_type,std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > const &)\n");
34600   return 0;
34601 }
34602 
34603 
_wrap_ElemProbVector___delslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)34604 SWIGINTERN PyObject *_wrap_ElemProbVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34605   PyObject *resultobj = 0;
34606   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
34607   std::vector< vrna_ep_t >::difference_type arg2 ;
34608   std::vector< vrna_ep_t >::difference_type arg3 ;
34609   void *argp1 = 0 ;
34610   int res1 = 0 ;
34611   ptrdiff_t val2 ;
34612   int ecode2 = 0 ;
34613   ptrdiff_t val3 ;
34614   int ecode3 = 0 ;
34615   PyObject * obj0 = 0 ;
34616   PyObject * obj1 = 0 ;
34617   PyObject * obj2 = 0 ;
34618   char * kwnames[] = {
34619     (char *)"self",  (char *)"i",  (char *)"j",  NULL
34620   };
34621 
34622   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:ElemProbVector___delslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
34623   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
34624   if (!SWIG_IsOK(res1)) {
34625     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector___delslice__" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
34626   }
34627   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
34628   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
34629   if (!SWIG_IsOK(ecode2)) {
34630     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ElemProbVector___delslice__" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::difference_type""'");
34631   }
34632   arg2 = static_cast< std::vector< vrna_ep_t >::difference_type >(val2);
34633   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
34634   if (!SWIG_IsOK(ecode3)) {
34635     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ElemProbVector___delslice__" "', argument " "3"" of type '" "std::vector< vrna_ep_t >::difference_type""'");
34636   }
34637   arg3 = static_cast< std::vector< vrna_ep_t >::difference_type >(val3);
34638   {
34639     try {
34640       try {
34641         std_vector_Sl_vrna_ep_t_Sg____delslice__(arg1,arg2,arg3);
34642       } catch(std::out_of_range &_e) {
34643         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
34644       } catch(std::invalid_argument &_e) {
34645         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
34646       }
34647     } catch (const std::exception& e) {
34648       SWIG_exception(SWIG_RuntimeError, e.what());
34649     }
34650   }
34651   resultobj = SWIG_Py_Void();
34652   return resultobj;
34653 fail:
34654   return NULL;
34655 }
34656 
34657 
_wrap_ElemProbVector___delitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)34658 SWIGINTERN PyObject *_wrap_ElemProbVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
34659   PyObject *resultobj = 0;
34660   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
34661   std::vector< vrna_ep_t >::difference_type arg2 ;
34662   void *argp1 = 0 ;
34663   int res1 = 0 ;
34664   ptrdiff_t val2 ;
34665   int ecode2 = 0 ;
34666 
34667   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
34668   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
34669   if (!SWIG_IsOK(res1)) {
34670     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector___delitem__" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
34671   }
34672   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
34673   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
34674   if (!SWIG_IsOK(ecode2)) {
34675     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ElemProbVector___delitem__" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::difference_type""'");
34676   }
34677   arg2 = static_cast< std::vector< vrna_ep_t >::difference_type >(val2);
34678   {
34679     try {
34680       try {
34681         std_vector_Sl_vrna_ep_t_Sg____delitem____SWIG_0(arg1,arg2);
34682       } catch(std::out_of_range &_e) {
34683         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
34684       } catch(std::invalid_argument &_e) {
34685         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
34686       }
34687     } catch (const std::exception& e) {
34688       SWIG_exception(SWIG_RuntimeError, e.what());
34689     }
34690   }
34691   resultobj = SWIG_Py_Void();
34692   return resultobj;
34693 fail:
34694   return NULL;
34695 }
34696 
34697 
_wrap_ElemProbVector___getitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)34698 SWIGINTERN PyObject *_wrap_ElemProbVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
34699   PyObject *resultobj = 0;
34700   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
34701   PySliceObject *arg2 = (PySliceObject *) 0 ;
34702   void *argp1 = 0 ;
34703   int res1 = 0 ;
34704   std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *result = 0 ;
34705 
34706   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
34707   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
34708   if (!SWIG_IsOK(res1)) {
34709     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector___getitem__" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
34710   }
34711   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
34712   {
34713     if (!PySlice_Check(swig_obj[1])) {
34714       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ElemProbVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
34715     }
34716     arg2 = (PySliceObject *) swig_obj[1];
34717   }
34718   {
34719     try {
34720       try {
34721         result = (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *)std_vector_Sl_vrna_ep_t_Sg____getitem____SWIG_0(arg1,arg2);
34722       } catch(std::out_of_range &_e) {
34723         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
34724       } catch(std::invalid_argument &_e) {
34725         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
34726       }
34727     } catch (const std::exception& e) {
34728       SWIG_exception(SWIG_RuntimeError, e.what());
34729     }
34730   }
34731   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, SWIG_POINTER_OWN |  0 );
34732   return resultobj;
34733 fail:
34734   return NULL;
34735 }
34736 
34737 
_wrap_ElemProbVector___setitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)34738 SWIGINTERN PyObject *_wrap_ElemProbVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
34739   PyObject *resultobj = 0;
34740   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
34741   PySliceObject *arg2 = (PySliceObject *) 0 ;
34742   std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *arg3 = 0 ;
34743   void *argp1 = 0 ;
34744   int res1 = 0 ;
34745   int res3 = SWIG_OLDOBJ ;
34746 
34747   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
34748   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
34749   if (!SWIG_IsOK(res1)) {
34750     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector___setitem__" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
34751   }
34752   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
34753   {
34754     if (!PySlice_Check(swig_obj[1])) {
34755       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ElemProbVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
34756     }
34757     arg2 = (PySliceObject *) swig_obj[1];
34758   }
34759   {
34760     std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *ptr = (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *)0;
34761     res3 = swig::asptr(swig_obj[2], &ptr);
34762     if (!SWIG_IsOK(res3)) {
34763       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ElemProbVector___setitem__" "', argument " "3"" of type '" "std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > const &""'");
34764     }
34765     if (!ptr) {
34766       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ElemProbVector___setitem__" "', argument " "3"" of type '" "std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > const &""'");
34767     }
34768     arg3 = ptr;
34769   }
34770   {
34771     try {
34772       try {
34773         std_vector_Sl_vrna_ep_t_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > const &)*arg3);
34774       } catch(std::out_of_range &_e) {
34775         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
34776       } catch(std::invalid_argument &_e) {
34777         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
34778       }
34779     } catch (const std::exception& e) {
34780       SWIG_exception(SWIG_RuntimeError, e.what());
34781     }
34782   }
34783   resultobj = SWIG_Py_Void();
34784   if (SWIG_IsNewObj(res3)) delete arg3;
34785   return resultobj;
34786 fail:
34787   if (SWIG_IsNewObj(res3)) delete arg3;
34788   return NULL;
34789 }
34790 
34791 
_wrap_ElemProbVector___setitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)34792 SWIGINTERN PyObject *_wrap_ElemProbVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
34793   PyObject *resultobj = 0;
34794   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
34795   PySliceObject *arg2 = (PySliceObject *) 0 ;
34796   void *argp1 = 0 ;
34797   int res1 = 0 ;
34798 
34799   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
34800   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
34801   if (!SWIG_IsOK(res1)) {
34802     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector___setitem__" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
34803   }
34804   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
34805   {
34806     if (!PySlice_Check(swig_obj[1])) {
34807       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ElemProbVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
34808     }
34809     arg2 = (PySliceObject *) swig_obj[1];
34810   }
34811   {
34812     try {
34813       try {
34814         std_vector_Sl_vrna_ep_t_Sg____setitem____SWIG_1(arg1,arg2);
34815       } catch(std::out_of_range &_e) {
34816         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
34817       } catch(std::invalid_argument &_e) {
34818         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
34819       }
34820     } catch (const std::exception& e) {
34821       SWIG_exception(SWIG_RuntimeError, e.what());
34822     }
34823   }
34824   resultobj = SWIG_Py_Void();
34825   return resultobj;
34826 fail:
34827   return NULL;
34828 }
34829 
34830 
_wrap_ElemProbVector___delitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)34831 SWIGINTERN PyObject *_wrap_ElemProbVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
34832   PyObject *resultobj = 0;
34833   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
34834   PySliceObject *arg2 = (PySliceObject *) 0 ;
34835   void *argp1 = 0 ;
34836   int res1 = 0 ;
34837 
34838   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
34839   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
34840   if (!SWIG_IsOK(res1)) {
34841     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector___delitem__" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
34842   }
34843   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
34844   {
34845     if (!PySlice_Check(swig_obj[1])) {
34846       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ElemProbVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
34847     }
34848     arg2 = (PySliceObject *) swig_obj[1];
34849   }
34850   {
34851     try {
34852       try {
34853         std_vector_Sl_vrna_ep_t_Sg____delitem____SWIG_1(arg1,arg2);
34854       } catch(std::out_of_range &_e) {
34855         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
34856       } catch(std::invalid_argument &_e) {
34857         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
34858       }
34859     } catch (const std::exception& e) {
34860       SWIG_exception(SWIG_RuntimeError, e.what());
34861     }
34862   }
34863   resultobj = SWIG_Py_Void();
34864   return resultobj;
34865 fail:
34866   return NULL;
34867 }
34868 
34869 
_wrap_ElemProbVector___delitem__(PyObject * self,PyObject * args)34870 SWIGINTERN PyObject *_wrap_ElemProbVector___delitem__(PyObject *self, PyObject *args) {
34871   Py_ssize_t argc;
34872   PyObject *argv[3] = {
34873     0
34874   };
34875 
34876   if (!(argc = SWIG_Python_UnpackTuple(args, "ElemProbVector___delitem__", 0, 2, argv))) SWIG_fail;
34877   --argc;
34878   if (argc == 2) {
34879     int _v;
34880     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
34881     _v = SWIG_CheckState(res);
34882     if (_v) {
34883       {
34884         _v = PySlice_Check(argv[1]);
34885       }
34886       if (_v) {
34887         return _wrap_ElemProbVector___delitem____SWIG_1(self, argc, argv);
34888       }
34889     }
34890   }
34891   if (argc == 2) {
34892     int _v;
34893     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
34894     _v = SWIG_CheckState(res);
34895     if (_v) {
34896       {
34897         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
34898         _v = SWIG_CheckState(res);
34899       }
34900       if (_v) {
34901         return _wrap_ElemProbVector___delitem____SWIG_0(self, argc, argv);
34902       }
34903     }
34904   }
34905 
34906 fail:
34907   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ElemProbVector___delitem__'.\n"
34908     "  Possible C/C++ prototypes are:\n"
34909     "    std::vector< vrna_ep_t >::__delitem__(std::vector< vrna_ep_t >::difference_type)\n"
34910     "    std::vector< vrna_ep_t >::__delitem__(PySliceObject *)\n");
34911   return 0;
34912 }
34913 
34914 
_wrap_ElemProbVector___getitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)34915 SWIGINTERN PyObject *_wrap_ElemProbVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
34916   PyObject *resultobj = 0;
34917   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
34918   std::vector< vrna_ep_t >::difference_type arg2 ;
34919   void *argp1 = 0 ;
34920   int res1 = 0 ;
34921   ptrdiff_t val2 ;
34922   int ecode2 = 0 ;
34923   std::vector< vrna_ep_t >::value_type *result = 0 ;
34924 
34925   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
34926   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
34927   if (!SWIG_IsOK(res1)) {
34928     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector___getitem__" "', argument " "1"" of type '" "std::vector< vrna_ep_t > const *""'");
34929   }
34930   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
34931   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
34932   if (!SWIG_IsOK(ecode2)) {
34933     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ElemProbVector___getitem__" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::difference_type""'");
34934   }
34935   arg2 = static_cast< std::vector< vrna_ep_t >::difference_type >(val2);
34936   {
34937     try {
34938       try {
34939         result = (std::vector< vrna_ep_t >::value_type *) &std_vector_Sl_vrna_ep_t_Sg____getitem____SWIG_1((std::vector< vrna_ep_t > const *)arg1,arg2);
34940       } catch(std::out_of_range &_e) {
34941         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
34942       }
34943     } catch (const std::exception& e) {
34944       SWIG_exception(SWIG_RuntimeError, e.what());
34945     }
34946   }
34947   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_ep_t, 0 |  0 );
34948   (void)swig::container_owner<swig::traits<std::vector< vrna_ep_t >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
34949   return resultobj;
34950 fail:
34951   return NULL;
34952 }
34953 
34954 
_wrap_ElemProbVector___getitem__(PyObject * self,PyObject * args)34955 SWIGINTERN PyObject *_wrap_ElemProbVector___getitem__(PyObject *self, PyObject *args) {
34956   Py_ssize_t argc;
34957   PyObject *argv[3] = {
34958     0
34959   };
34960 
34961   if (!(argc = SWIG_Python_UnpackTuple(args, "ElemProbVector___getitem__", 0, 2, argv))) SWIG_fail;
34962   --argc;
34963   if (argc == 2) {
34964     int _v;
34965     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
34966     _v = SWIG_CheckState(res);
34967     if (_v) {
34968       {
34969         _v = PySlice_Check(argv[1]);
34970       }
34971       if (_v) {
34972         return _wrap_ElemProbVector___getitem____SWIG_0(self, argc, argv);
34973       }
34974     }
34975   }
34976   if (argc == 2) {
34977     int _v;
34978     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
34979     _v = SWIG_CheckState(res);
34980     if (_v) {
34981       {
34982         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
34983         _v = SWIG_CheckState(res);
34984       }
34985       if (_v) {
34986         return _wrap_ElemProbVector___getitem____SWIG_1(self, argc, argv);
34987       }
34988     }
34989   }
34990 
34991 fail:
34992   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ElemProbVector___getitem__'.\n"
34993     "  Possible C/C++ prototypes are:\n"
34994     "    std::vector< vrna_ep_t >::__getitem__(PySliceObject *)\n"
34995     "    std::vector< vrna_ep_t >::__getitem__(std::vector< vrna_ep_t >::difference_type) const\n");
34996   return 0;
34997 }
34998 
34999 
_wrap_ElemProbVector___setitem____SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)35000 SWIGINTERN PyObject *_wrap_ElemProbVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
35001   PyObject *resultobj = 0;
35002   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35003   std::vector< vrna_ep_t >::difference_type arg2 ;
35004   std::vector< vrna_ep_t >::value_type *arg3 = 0 ;
35005   void *argp1 = 0 ;
35006   int res1 = 0 ;
35007   ptrdiff_t val2 ;
35008   int ecode2 = 0 ;
35009   void *argp3 = 0 ;
35010   int res3 = 0 ;
35011 
35012   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
35013   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35014   if (!SWIG_IsOK(res1)) {
35015     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector___setitem__" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
35016   }
35017   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35018   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
35019   if (!SWIG_IsOK(ecode2)) {
35020     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ElemProbVector___setitem__" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::difference_type""'");
35021   }
35022   arg2 = static_cast< std::vector< vrna_ep_t >::difference_type >(val2);
35023   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_vrna_ep_t,  0  | 0);
35024   if (!SWIG_IsOK(res3)) {
35025     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ElemProbVector___setitem__" "', argument " "3"" of type '" "std::vector< vrna_ep_t >::value_type const &""'");
35026   }
35027   if (!argp3) {
35028     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ElemProbVector___setitem__" "', argument " "3"" of type '" "std::vector< vrna_ep_t >::value_type const &""'");
35029   }
35030   arg3 = reinterpret_cast< std::vector< vrna_ep_t >::value_type * >(argp3);
35031   {
35032     try {
35033       try {
35034         std_vector_Sl_vrna_ep_t_Sg____setitem____SWIG_2(arg1,arg2,(vrna_ep_t const &)*arg3);
35035       } catch(std::out_of_range &_e) {
35036         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
35037       }
35038     } catch (const std::exception& e) {
35039       SWIG_exception(SWIG_RuntimeError, e.what());
35040     }
35041   }
35042   resultobj = SWIG_Py_Void();
35043   return resultobj;
35044 fail:
35045   return NULL;
35046 }
35047 
35048 
_wrap_ElemProbVector___setitem__(PyObject * self,PyObject * args)35049 SWIGINTERN PyObject *_wrap_ElemProbVector___setitem__(PyObject *self, PyObject *args) {
35050   Py_ssize_t argc;
35051   PyObject *argv[4] = {
35052     0
35053   };
35054 
35055   if (!(argc = SWIG_Python_UnpackTuple(args, "ElemProbVector___setitem__", 0, 3, argv))) SWIG_fail;
35056   --argc;
35057   if (argc == 2) {
35058     int _v;
35059     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
35060     _v = SWIG_CheckState(res);
35061     if (_v) {
35062       {
35063         _v = PySlice_Check(argv[1]);
35064       }
35065       if (_v) {
35066         return _wrap_ElemProbVector___setitem____SWIG_1(self, argc, argv);
35067       }
35068     }
35069   }
35070   if (argc == 3) {
35071     int _v;
35072     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
35073     _v = SWIG_CheckState(res);
35074     if (_v) {
35075       {
35076         _v = PySlice_Check(argv[1]);
35077       }
35078       if (_v) {
35079         int res = swig::asptr(argv[2], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
35080         _v = SWIG_CheckState(res);
35081         if (_v) {
35082           return _wrap_ElemProbVector___setitem____SWIG_0(self, argc, argv);
35083         }
35084       }
35085     }
35086   }
35087   if (argc == 3) {
35088     int _v;
35089     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
35090     _v = SWIG_CheckState(res);
35091     if (_v) {
35092       {
35093         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
35094         _v = SWIG_CheckState(res);
35095       }
35096       if (_v) {
35097         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_vrna_ep_t, SWIG_POINTER_NO_NULL | 0);
35098         _v = SWIG_CheckState(res);
35099         if (_v) {
35100           return _wrap_ElemProbVector___setitem____SWIG_2(self, argc, argv);
35101         }
35102       }
35103     }
35104   }
35105 
35106 fail:
35107   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ElemProbVector___setitem__'.\n"
35108     "  Possible C/C++ prototypes are:\n"
35109     "    std::vector< vrna_ep_t >::__setitem__(PySliceObject *,std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > const &)\n"
35110     "    std::vector< vrna_ep_t >::__setitem__(PySliceObject *)\n"
35111     "    std::vector< vrna_ep_t >::__setitem__(std::vector< vrna_ep_t >::difference_type,std::vector< vrna_ep_t >::value_type const &)\n");
35112   return 0;
35113 }
35114 
35115 
_wrap_ElemProbVector_pop(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35116 SWIGINTERN PyObject *_wrap_ElemProbVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35117   PyObject *resultobj = 0;
35118   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35119   void *argp1 = 0 ;
35120   int res1 = 0 ;
35121   PyObject *swig_obj[1] ;
35122   SwigValueWrapper< vrna_ep_t > result;
35123 
35124   if (!args) SWIG_fail;
35125   swig_obj[0] = args;
35126   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35127   if (!SWIG_IsOK(res1)) {
35128     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_pop" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
35129   }
35130   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35131   {
35132     try {
35133       try {
35134         result = std_vector_Sl_vrna_ep_t_Sg__pop(arg1);
35135       } catch(std::out_of_range &_e) {
35136         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
35137       }
35138     } catch (const std::exception& e) {
35139       SWIG_exception(SWIG_RuntimeError, e.what());
35140     }
35141   }
35142   resultobj = SWIG_NewPointerObj((new std::vector< vrna_ep_t >::value_type(static_cast< const std::vector< vrna_ep_t >::value_type& >(result))), SWIGTYPE_p_vrna_ep_t, SWIG_POINTER_OWN |  0 );
35143   return resultobj;
35144 fail:
35145   return NULL;
35146 }
35147 
35148 
_wrap_ElemProbVector_append(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)35149 SWIGINTERN PyObject *_wrap_ElemProbVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35150   PyObject *resultobj = 0;
35151   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35152   std::vector< vrna_ep_t >::value_type *arg2 = 0 ;
35153   void *argp1 = 0 ;
35154   int res1 = 0 ;
35155   void *argp2 = 0 ;
35156   int res2 = 0 ;
35157   PyObject * obj0 = 0 ;
35158   PyObject * obj1 = 0 ;
35159   char * kwnames[] = {
35160     (char *)"self",  (char *)"x",  NULL
35161   };
35162 
35163   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:ElemProbVector_append", kwnames, &obj0, &obj1)) SWIG_fail;
35164   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35165   if (!SWIG_IsOK(res1)) {
35166     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_append" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
35167   }
35168   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35169   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_vrna_ep_t,  0  | 0);
35170   if (!SWIG_IsOK(res2)) {
35171     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ElemProbVector_append" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::value_type const &""'");
35172   }
35173   if (!argp2) {
35174     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ElemProbVector_append" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::value_type const &""'");
35175   }
35176   arg2 = reinterpret_cast< std::vector< vrna_ep_t >::value_type * >(argp2);
35177   {
35178     try {
35179       std_vector_Sl_vrna_ep_t_Sg__append(arg1,(vrna_ep_t const &)*arg2);
35180     } catch (const std::exception& e) {
35181       SWIG_exception(SWIG_RuntimeError, e.what());
35182     }
35183   }
35184   resultobj = SWIG_Py_Void();
35185   return resultobj;
35186 fail:
35187   return NULL;
35188 }
35189 
35190 
_wrap_new_ElemProbVector__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))35191 SWIGINTERN PyObject *_wrap_new_ElemProbVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
35192   PyObject *resultobj = 0;
35193   std::vector< vrna_ep_t > *result = 0 ;
35194 
35195   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
35196   {
35197     try {
35198       result = (std::vector< vrna_ep_t > *)new std::vector< vrna_ep_t >();
35199     } catch (const std::exception& e) {
35200       SWIG_exception(SWIG_RuntimeError, e.what());
35201     }
35202   }
35203   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, SWIG_POINTER_NEW |  0 );
35204   return resultobj;
35205 fail:
35206   return NULL;
35207 }
35208 
35209 
_wrap_new_ElemProbVector__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)35210 SWIGINTERN PyObject *_wrap_new_ElemProbVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
35211   PyObject *resultobj = 0;
35212   std::vector< vrna_ep_t > *arg1 = 0 ;
35213   int res1 = SWIG_OLDOBJ ;
35214   std::vector< vrna_ep_t > *result = 0 ;
35215 
35216   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
35217   {
35218     std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *ptr = (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *)0;
35219     res1 = swig::asptr(swig_obj[0], &ptr);
35220     if (!SWIG_IsOK(res1)) {
35221       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ElemProbVector" "', argument " "1"" of type '" "std::vector< vrna_ep_t > const &""'");
35222     }
35223     if (!ptr) {
35224       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ElemProbVector" "', argument " "1"" of type '" "std::vector< vrna_ep_t > const &""'");
35225     }
35226     arg1 = ptr;
35227   }
35228   {
35229     try {
35230       result = (std::vector< vrna_ep_t > *)new std::vector< vrna_ep_t >((std::vector< vrna_ep_t > const &)*arg1);
35231     } catch (const std::exception& e) {
35232       SWIG_exception(SWIG_RuntimeError, e.what());
35233     }
35234   }
35235   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, SWIG_POINTER_NEW |  0 );
35236   if (SWIG_IsNewObj(res1)) delete arg1;
35237   return resultobj;
35238 fail:
35239   if (SWIG_IsNewObj(res1)) delete arg1;
35240   return NULL;
35241 }
35242 
35243 
_wrap_ElemProbVector_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35244 SWIGINTERN PyObject *_wrap_ElemProbVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35245   PyObject *resultobj = 0;
35246   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35247   void *argp1 = 0 ;
35248   int res1 = 0 ;
35249   PyObject *swig_obj[1] ;
35250   bool result;
35251 
35252   if (!args) SWIG_fail;
35253   swig_obj[0] = args;
35254   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35255   if (!SWIG_IsOK(res1)) {
35256     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_empty" "', argument " "1"" of type '" "std::vector< vrna_ep_t > const *""'");
35257   }
35258   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35259   {
35260     try {
35261       result = (bool)((std::vector< vrna_ep_t > const *)arg1)->empty();
35262     } catch (const std::exception& e) {
35263       SWIG_exception(SWIG_RuntimeError, e.what());
35264     }
35265   }
35266   resultobj = SWIG_From_bool(static_cast< bool >(result));
35267   return resultobj;
35268 fail:
35269   return NULL;
35270 }
35271 
35272 
_wrap_ElemProbVector_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35273 SWIGINTERN PyObject *_wrap_ElemProbVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35274   PyObject *resultobj = 0;
35275   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35276   void *argp1 = 0 ;
35277   int res1 = 0 ;
35278   PyObject *swig_obj[1] ;
35279   std::vector< vrna_ep_t >::size_type result;
35280 
35281   if (!args) SWIG_fail;
35282   swig_obj[0] = args;
35283   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35284   if (!SWIG_IsOK(res1)) {
35285     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_size" "', argument " "1"" of type '" "std::vector< vrna_ep_t > const *""'");
35286   }
35287   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35288   {
35289     try {
35290       result = ((std::vector< vrna_ep_t > const *)arg1)->size();
35291     } catch (const std::exception& e) {
35292       SWIG_exception(SWIG_RuntimeError, e.what());
35293     }
35294   }
35295   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35296   return resultobj;
35297 fail:
35298   return NULL;
35299 }
35300 
35301 
_wrap_ElemProbVector_swap(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)35302 SWIGINTERN PyObject *_wrap_ElemProbVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35303   PyObject *resultobj = 0;
35304   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35305   std::vector< vrna_ep_t > *arg2 = 0 ;
35306   void *argp1 = 0 ;
35307   int res1 = 0 ;
35308   void *argp2 = 0 ;
35309   int res2 = 0 ;
35310   PyObject * obj0 = 0 ;
35311   PyObject * obj1 = 0 ;
35312   char * kwnames[] = {
35313     (char *)"self",  (char *)"v",  NULL
35314   };
35315 
35316   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:ElemProbVector_swap", kwnames, &obj0, &obj1)) SWIG_fail;
35317   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35318   if (!SWIG_IsOK(res1)) {
35319     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_swap" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
35320   }
35321   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35322   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t,  0 );
35323   if (!SWIG_IsOK(res2)) {
35324     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ElemProbVector_swap" "', argument " "2"" of type '" "std::vector< vrna_ep_t > &""'");
35325   }
35326   if (!argp2) {
35327     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ElemProbVector_swap" "', argument " "2"" of type '" "std::vector< vrna_ep_t > &""'");
35328   }
35329   arg2 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp2);
35330   {
35331     try {
35332       (arg1)->swap(*arg2);
35333     } catch (const std::exception& e) {
35334       SWIG_exception(SWIG_RuntimeError, e.what());
35335     }
35336   }
35337   resultobj = SWIG_Py_Void();
35338   return resultobj;
35339 fail:
35340   return NULL;
35341 }
35342 
35343 
_wrap_ElemProbVector_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35344 SWIGINTERN PyObject *_wrap_ElemProbVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35345   PyObject *resultobj = 0;
35346   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35347   void *argp1 = 0 ;
35348   int res1 = 0 ;
35349   PyObject *swig_obj[1] ;
35350   std::vector< vrna_ep_t >::iterator result;
35351 
35352   if (!args) SWIG_fail;
35353   swig_obj[0] = args;
35354   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35355   if (!SWIG_IsOK(res1)) {
35356     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_begin" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
35357   }
35358   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35359   {
35360     try {
35361       result = (arg1)->begin();
35362     } catch (const std::exception& e) {
35363       SWIG_exception(SWIG_RuntimeError, e.what());
35364     }
35365   }
35366   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_ep_t >::iterator & >(result)),
35367     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
35368   return resultobj;
35369 fail:
35370   return NULL;
35371 }
35372 
35373 
_wrap_ElemProbVector_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35374 SWIGINTERN PyObject *_wrap_ElemProbVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35375   PyObject *resultobj = 0;
35376   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35377   void *argp1 = 0 ;
35378   int res1 = 0 ;
35379   PyObject *swig_obj[1] ;
35380   std::vector< vrna_ep_t >::iterator result;
35381 
35382   if (!args) SWIG_fail;
35383   swig_obj[0] = args;
35384   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35385   if (!SWIG_IsOK(res1)) {
35386     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_end" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
35387   }
35388   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35389   {
35390     try {
35391       result = (arg1)->end();
35392     } catch (const std::exception& e) {
35393       SWIG_exception(SWIG_RuntimeError, e.what());
35394     }
35395   }
35396   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_ep_t >::iterator & >(result)),
35397     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
35398   return resultobj;
35399 fail:
35400   return NULL;
35401 }
35402 
35403 
_wrap_ElemProbVector_rbegin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35404 SWIGINTERN PyObject *_wrap_ElemProbVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35405   PyObject *resultobj = 0;
35406   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35407   void *argp1 = 0 ;
35408   int res1 = 0 ;
35409   PyObject *swig_obj[1] ;
35410   std::vector< vrna_ep_t >::reverse_iterator result;
35411 
35412   if (!args) SWIG_fail;
35413   swig_obj[0] = args;
35414   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35415   if (!SWIG_IsOK(res1)) {
35416     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_rbegin" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
35417   }
35418   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35419   {
35420     try {
35421       result = (arg1)->rbegin();
35422     } catch (const std::exception& e) {
35423       SWIG_exception(SWIG_RuntimeError, e.what());
35424     }
35425   }
35426   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_ep_t >::reverse_iterator & >(result)),
35427     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
35428   return resultobj;
35429 fail:
35430   return NULL;
35431 }
35432 
35433 
_wrap_ElemProbVector_rend(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35434 SWIGINTERN PyObject *_wrap_ElemProbVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35435   PyObject *resultobj = 0;
35436   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35437   void *argp1 = 0 ;
35438   int res1 = 0 ;
35439   PyObject *swig_obj[1] ;
35440   std::vector< vrna_ep_t >::reverse_iterator result;
35441 
35442   if (!args) SWIG_fail;
35443   swig_obj[0] = args;
35444   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35445   if (!SWIG_IsOK(res1)) {
35446     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_rend" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
35447   }
35448   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35449   {
35450     try {
35451       result = (arg1)->rend();
35452     } catch (const std::exception& e) {
35453       SWIG_exception(SWIG_RuntimeError, e.what());
35454     }
35455   }
35456   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_ep_t >::reverse_iterator & >(result)),
35457     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
35458   return resultobj;
35459 fail:
35460   return NULL;
35461 }
35462 
35463 
_wrap_ElemProbVector_clear(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35464 SWIGINTERN PyObject *_wrap_ElemProbVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35465   PyObject *resultobj = 0;
35466   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35467   void *argp1 = 0 ;
35468   int res1 = 0 ;
35469   PyObject *swig_obj[1] ;
35470 
35471   if (!args) SWIG_fail;
35472   swig_obj[0] = args;
35473   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35474   if (!SWIG_IsOK(res1)) {
35475     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_clear" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
35476   }
35477   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35478   {
35479     try {
35480       (arg1)->clear();
35481     } catch (const std::exception& e) {
35482       SWIG_exception(SWIG_RuntimeError, e.what());
35483     }
35484   }
35485   resultobj = SWIG_Py_Void();
35486   return resultobj;
35487 fail:
35488   return NULL;
35489 }
35490 
35491 
_wrap_ElemProbVector_get_allocator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35492 SWIGINTERN PyObject *_wrap_ElemProbVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35493   PyObject *resultobj = 0;
35494   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35495   void *argp1 = 0 ;
35496   int res1 = 0 ;
35497   PyObject *swig_obj[1] ;
35498   SwigValueWrapper< std::allocator< vrna_ep_t > > result;
35499 
35500   if (!args) SWIG_fail;
35501   swig_obj[0] = args;
35502   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35503   if (!SWIG_IsOK(res1)) {
35504     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_get_allocator" "', argument " "1"" of type '" "std::vector< vrna_ep_t > const *""'");
35505   }
35506   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35507   {
35508     try {
35509       result = ((std::vector< vrna_ep_t > const *)arg1)->get_allocator();
35510     } catch (const std::exception& e) {
35511       SWIG_exception(SWIG_RuntimeError, e.what());
35512     }
35513   }
35514   resultobj = SWIG_NewPointerObj((new std::vector< vrna_ep_t >::allocator_type(static_cast< const std::vector< vrna_ep_t >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_vrna_ep_t_t, SWIG_POINTER_OWN |  0 );
35515   return resultobj;
35516 fail:
35517   return NULL;
35518 }
35519 
35520 
_wrap_new_ElemProbVector__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)35521 SWIGINTERN PyObject *_wrap_new_ElemProbVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
35522   PyObject *resultobj = 0;
35523   std::vector< vrna_ep_t >::size_type arg1 ;
35524   size_t val1 ;
35525   int ecode1 = 0 ;
35526   std::vector< vrna_ep_t > *result = 0 ;
35527 
35528   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
35529   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
35530   if (!SWIG_IsOK(ecode1)) {
35531     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ElemProbVector" "', argument " "1"" of type '" "std::vector< vrna_ep_t >::size_type""'");
35532   }
35533   arg1 = static_cast< std::vector< vrna_ep_t >::size_type >(val1);
35534   {
35535     try {
35536       result = (std::vector< vrna_ep_t > *)new std::vector< vrna_ep_t >(arg1);
35537     } catch (const std::exception& e) {
35538       SWIG_exception(SWIG_RuntimeError, e.what());
35539     }
35540   }
35541   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, SWIG_POINTER_NEW |  0 );
35542   return resultobj;
35543 fail:
35544   return NULL;
35545 }
35546 
35547 
_wrap_ElemProbVector_pop_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35548 SWIGINTERN PyObject *_wrap_ElemProbVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35549   PyObject *resultobj = 0;
35550   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35551   void *argp1 = 0 ;
35552   int res1 = 0 ;
35553   PyObject *swig_obj[1] ;
35554 
35555   if (!args) SWIG_fail;
35556   swig_obj[0] = args;
35557   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35558   if (!SWIG_IsOK(res1)) {
35559     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_pop_back" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
35560   }
35561   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35562   {
35563     try {
35564       (arg1)->pop_back();
35565     } catch (const std::exception& e) {
35566       SWIG_exception(SWIG_RuntimeError, e.what());
35567     }
35568   }
35569   resultobj = SWIG_Py_Void();
35570   return resultobj;
35571 fail:
35572   return NULL;
35573 }
35574 
35575 
_wrap_ElemProbVector_resize__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)35576 SWIGINTERN PyObject *_wrap_ElemProbVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
35577   PyObject *resultobj = 0;
35578   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35579   std::vector< vrna_ep_t >::size_type arg2 ;
35580   void *argp1 = 0 ;
35581   int res1 = 0 ;
35582   size_t val2 ;
35583   int ecode2 = 0 ;
35584 
35585   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
35586   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35587   if (!SWIG_IsOK(res1)) {
35588     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_resize" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
35589   }
35590   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35591   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
35592   if (!SWIG_IsOK(ecode2)) {
35593     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ElemProbVector_resize" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::size_type""'");
35594   }
35595   arg2 = static_cast< std::vector< vrna_ep_t >::size_type >(val2);
35596   {
35597     try {
35598       (arg1)->resize(arg2);
35599     } catch (const std::exception& e) {
35600       SWIG_exception(SWIG_RuntimeError, e.what());
35601     }
35602   }
35603   resultobj = SWIG_Py_Void();
35604   return resultobj;
35605 fail:
35606   return NULL;
35607 }
35608 
35609 
_wrap_ElemProbVector_erase__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)35610 SWIGINTERN PyObject *_wrap_ElemProbVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
35611   PyObject *resultobj = 0;
35612   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35613   std::vector< vrna_ep_t >::iterator arg2 ;
35614   void *argp1 = 0 ;
35615   int res1 = 0 ;
35616   swig::SwigPyIterator *iter2 = 0 ;
35617   int res2 ;
35618   std::vector< vrna_ep_t >::iterator result;
35619 
35620   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
35621   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35622   if (!SWIG_IsOK(res1)) {
35623     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_erase" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
35624   }
35625   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35626   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
35627   if (!SWIG_IsOK(res2) || !iter2) {
35628     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ElemProbVector_erase" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::iterator""'");
35629   } else {
35630     swig::SwigPyIterator_T<std::vector< vrna_ep_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_ep_t >::iterator > *>(iter2);
35631     if (iter_t) {
35632       arg2 = iter_t->get_current();
35633     } else {
35634       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ElemProbVector_erase" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::iterator""'");
35635     }
35636   }
35637   {
35638     try {
35639       result = std_vector_Sl_vrna_ep_t_Sg__erase__SWIG_0(arg1,arg2);
35640     } catch (const std::exception& e) {
35641       SWIG_exception(SWIG_RuntimeError, e.what());
35642     }
35643   }
35644   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_ep_t >::iterator & >(result)),
35645     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
35646   return resultobj;
35647 fail:
35648   return NULL;
35649 }
35650 
35651 
_wrap_ElemProbVector_erase__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)35652 SWIGINTERN PyObject *_wrap_ElemProbVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
35653   PyObject *resultobj = 0;
35654   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35655   std::vector< vrna_ep_t >::iterator arg2 ;
35656   std::vector< vrna_ep_t >::iterator arg3 ;
35657   void *argp1 = 0 ;
35658   int res1 = 0 ;
35659   swig::SwigPyIterator *iter2 = 0 ;
35660   int res2 ;
35661   swig::SwigPyIterator *iter3 = 0 ;
35662   int res3 ;
35663   std::vector< vrna_ep_t >::iterator result;
35664 
35665   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
35666   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35667   if (!SWIG_IsOK(res1)) {
35668     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_erase" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
35669   }
35670   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35671   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
35672   if (!SWIG_IsOK(res2) || !iter2) {
35673     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ElemProbVector_erase" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::iterator""'");
35674   } else {
35675     swig::SwigPyIterator_T<std::vector< vrna_ep_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_ep_t >::iterator > *>(iter2);
35676     if (iter_t) {
35677       arg2 = iter_t->get_current();
35678     } else {
35679       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ElemProbVector_erase" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::iterator""'");
35680     }
35681   }
35682   res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
35683   if (!SWIG_IsOK(res3) || !iter3) {
35684     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ElemProbVector_erase" "', argument " "3"" of type '" "std::vector< vrna_ep_t >::iterator""'");
35685   } else {
35686     swig::SwigPyIterator_T<std::vector< vrna_ep_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_ep_t >::iterator > *>(iter3);
35687     if (iter_t) {
35688       arg3 = iter_t->get_current();
35689     } else {
35690       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ElemProbVector_erase" "', argument " "3"" of type '" "std::vector< vrna_ep_t >::iterator""'");
35691     }
35692   }
35693   {
35694     try {
35695       result = std_vector_Sl_vrna_ep_t_Sg__erase__SWIG_1(arg1,arg2,arg3);
35696     } catch (const std::exception& e) {
35697       SWIG_exception(SWIG_RuntimeError, e.what());
35698     }
35699   }
35700   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_ep_t >::iterator & >(result)),
35701     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
35702   return resultobj;
35703 fail:
35704   return NULL;
35705 }
35706 
35707 
_wrap_ElemProbVector_erase(PyObject * self,PyObject * args)35708 SWIGINTERN PyObject *_wrap_ElemProbVector_erase(PyObject *self, PyObject *args) {
35709   Py_ssize_t argc;
35710   PyObject *argv[4] = {
35711     0
35712   };
35713 
35714   if (!(argc = SWIG_Python_UnpackTuple(args, "ElemProbVector_erase", 0, 3, argv))) SWIG_fail;
35715   --argc;
35716   if (argc == 2) {
35717     int _v;
35718     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
35719     _v = SWIG_CheckState(res);
35720     if (_v) {
35721       swig::SwigPyIterator *iter = 0;
35722       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
35723       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_ep_t >::iterator > *>(iter) != 0));
35724       if (_v) {
35725         return _wrap_ElemProbVector_erase__SWIG_0(self, argc, argv);
35726       }
35727     }
35728   }
35729   if (argc == 3) {
35730     int _v;
35731     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
35732     _v = SWIG_CheckState(res);
35733     if (_v) {
35734       swig::SwigPyIterator *iter = 0;
35735       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
35736       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_ep_t >::iterator > *>(iter) != 0));
35737       if (_v) {
35738         swig::SwigPyIterator *iter = 0;
35739         int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
35740         _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_ep_t >::iterator > *>(iter) != 0));
35741         if (_v) {
35742           return _wrap_ElemProbVector_erase__SWIG_1(self, argc, argv);
35743         }
35744       }
35745     }
35746   }
35747 
35748 fail:
35749   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ElemProbVector_erase'.\n"
35750     "  Possible C/C++ prototypes are:\n"
35751     "    std::vector< vrna_ep_t >::erase(std::vector< vrna_ep_t >::iterator)\n"
35752     "    std::vector< vrna_ep_t >::erase(std::vector< vrna_ep_t >::iterator,std::vector< vrna_ep_t >::iterator)\n");
35753   return 0;
35754 }
35755 
35756 
_wrap_new_ElemProbVector__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)35757 SWIGINTERN PyObject *_wrap_new_ElemProbVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
35758   PyObject *resultobj = 0;
35759   std::vector< vrna_ep_t >::size_type arg1 ;
35760   std::vector< vrna_ep_t >::value_type *arg2 = 0 ;
35761   size_t val1 ;
35762   int ecode1 = 0 ;
35763   void *argp2 = 0 ;
35764   int res2 = 0 ;
35765   std::vector< vrna_ep_t > *result = 0 ;
35766 
35767   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
35768   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
35769   if (!SWIG_IsOK(ecode1)) {
35770     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ElemProbVector" "', argument " "1"" of type '" "std::vector< vrna_ep_t >::size_type""'");
35771   }
35772   arg1 = static_cast< std::vector< vrna_ep_t >::size_type >(val1);
35773   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_vrna_ep_t,  0  | 0);
35774   if (!SWIG_IsOK(res2)) {
35775     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ElemProbVector" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::value_type const &""'");
35776   }
35777   if (!argp2) {
35778     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ElemProbVector" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::value_type const &""'");
35779   }
35780   arg2 = reinterpret_cast< std::vector< vrna_ep_t >::value_type * >(argp2);
35781   {
35782     try {
35783       result = (std::vector< vrna_ep_t > *)new std::vector< vrna_ep_t >(arg1,(std::vector< vrna_ep_t >::value_type const &)*arg2);
35784     } catch (const std::exception& e) {
35785       SWIG_exception(SWIG_RuntimeError, e.what());
35786     }
35787   }
35788   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, SWIG_POINTER_NEW |  0 );
35789   return resultobj;
35790 fail:
35791   return NULL;
35792 }
35793 
35794 
_wrap_new_ElemProbVector(PyObject * self,PyObject * args)35795 SWIGINTERN PyObject *_wrap_new_ElemProbVector(PyObject *self, PyObject *args) {
35796   Py_ssize_t argc;
35797   PyObject *argv[3] = {
35798     0
35799   };
35800 
35801   if (!(argc = SWIG_Python_UnpackTuple(args, "new_ElemProbVector", 0, 2, argv))) SWIG_fail;
35802   --argc;
35803   if (argc == 0) {
35804     return _wrap_new_ElemProbVector__SWIG_0(self, argc, argv);
35805   }
35806   if (argc == 1) {
35807     int _v;
35808     {
35809       int res = SWIG_AsVal_size_t(argv[0], NULL);
35810       _v = SWIG_CheckState(res);
35811     }
35812     if (_v) {
35813       return _wrap_new_ElemProbVector__SWIG_2(self, argc, argv);
35814     }
35815   }
35816   if (argc == 1) {
35817     int _v;
35818     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
35819     _v = SWIG_CheckState(res);
35820     if (_v) {
35821       return _wrap_new_ElemProbVector__SWIG_1(self, argc, argv);
35822     }
35823   }
35824   if (argc == 2) {
35825     int _v;
35826     {
35827       int res = SWIG_AsVal_size_t(argv[0], NULL);
35828       _v = SWIG_CheckState(res);
35829     }
35830     if (_v) {
35831       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_vrna_ep_t, SWIG_POINTER_NO_NULL | 0);
35832       _v = SWIG_CheckState(res);
35833       if (_v) {
35834         return _wrap_new_ElemProbVector__SWIG_3(self, argc, argv);
35835       }
35836     }
35837   }
35838 
35839 fail:
35840   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_ElemProbVector'.\n"
35841     "  Possible C/C++ prototypes are:\n"
35842     "    std::vector< vrna_ep_t >::vector()\n"
35843     "    std::vector< vrna_ep_t >::vector(std::vector< vrna_ep_t > const &)\n"
35844     "    std::vector< vrna_ep_t >::vector(std::vector< vrna_ep_t >::size_type)\n"
35845     "    std::vector< vrna_ep_t >::vector(std::vector< vrna_ep_t >::size_type,std::vector< vrna_ep_t >::value_type const &)\n");
35846   return 0;
35847 }
35848 
35849 
_wrap_ElemProbVector_push_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)35850 SWIGINTERN PyObject *_wrap_ElemProbVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35851   PyObject *resultobj = 0;
35852   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35853   std::vector< vrna_ep_t >::value_type *arg2 = 0 ;
35854   void *argp1 = 0 ;
35855   int res1 = 0 ;
35856   void *argp2 = 0 ;
35857   int res2 = 0 ;
35858   PyObject * obj0 = 0 ;
35859   PyObject * obj1 = 0 ;
35860   char * kwnames[] = {
35861     (char *)"self",  (char *)"x",  NULL
35862   };
35863 
35864   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:ElemProbVector_push_back", kwnames, &obj0, &obj1)) SWIG_fail;
35865   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35866   if (!SWIG_IsOK(res1)) {
35867     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_push_back" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
35868   }
35869   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35870   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_vrna_ep_t,  0  | 0);
35871   if (!SWIG_IsOK(res2)) {
35872     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ElemProbVector_push_back" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::value_type const &""'");
35873   }
35874   if (!argp2) {
35875     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ElemProbVector_push_back" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::value_type const &""'");
35876   }
35877   arg2 = reinterpret_cast< std::vector< vrna_ep_t >::value_type * >(argp2);
35878   {
35879     try {
35880       (arg1)->push_back((std::vector< vrna_ep_t >::value_type const &)*arg2);
35881     } catch (const std::exception& e) {
35882       SWIG_exception(SWIG_RuntimeError, e.what());
35883     }
35884   }
35885   resultobj = SWIG_Py_Void();
35886   return resultobj;
35887 fail:
35888   return NULL;
35889 }
35890 
35891 
_wrap_ElemProbVector_front(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35892 SWIGINTERN PyObject *_wrap_ElemProbVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35893   PyObject *resultobj = 0;
35894   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35895   void *argp1 = 0 ;
35896   int res1 = 0 ;
35897   PyObject *swig_obj[1] ;
35898   std::vector< vrna_ep_t >::value_type *result = 0 ;
35899 
35900   if (!args) SWIG_fail;
35901   swig_obj[0] = args;
35902   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35903   if (!SWIG_IsOK(res1)) {
35904     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_front" "', argument " "1"" of type '" "std::vector< vrna_ep_t > const *""'");
35905   }
35906   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35907   {
35908     try {
35909       result = (std::vector< vrna_ep_t >::value_type *) &((std::vector< vrna_ep_t > const *)arg1)->front();
35910     } catch (const std::exception& e) {
35911       SWIG_exception(SWIG_RuntimeError, e.what());
35912     }
35913   }
35914   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_ep_t, 0 |  0 );
35915   (void)swig::container_owner<swig::traits<std::vector< vrna_ep_t >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
35916   return resultobj;
35917 fail:
35918   return NULL;
35919 }
35920 
35921 
_wrap_ElemProbVector_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35922 SWIGINTERN PyObject *_wrap_ElemProbVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35923   PyObject *resultobj = 0;
35924   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35925   void *argp1 = 0 ;
35926   int res1 = 0 ;
35927   PyObject *swig_obj[1] ;
35928   std::vector< vrna_ep_t >::value_type *result = 0 ;
35929 
35930   if (!args) SWIG_fail;
35931   swig_obj[0] = args;
35932   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35933   if (!SWIG_IsOK(res1)) {
35934     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_back" "', argument " "1"" of type '" "std::vector< vrna_ep_t > const *""'");
35935   }
35936   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35937   {
35938     try {
35939       result = (std::vector< vrna_ep_t >::value_type *) &((std::vector< vrna_ep_t > const *)arg1)->back();
35940     } catch (const std::exception& e) {
35941       SWIG_exception(SWIG_RuntimeError, e.what());
35942     }
35943   }
35944   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_ep_t, 0 |  0 );
35945   (void)swig::container_owner<swig::traits<std::vector< vrna_ep_t >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
35946   return resultobj;
35947 fail:
35948   return NULL;
35949 }
35950 
35951 
_wrap_ElemProbVector_assign(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)35952 SWIGINTERN PyObject *_wrap_ElemProbVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35953   PyObject *resultobj = 0;
35954   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
35955   std::vector< vrna_ep_t >::size_type arg2 ;
35956   std::vector< vrna_ep_t >::value_type *arg3 = 0 ;
35957   void *argp1 = 0 ;
35958   int res1 = 0 ;
35959   size_t val2 ;
35960   int ecode2 = 0 ;
35961   void *argp3 = 0 ;
35962   int res3 = 0 ;
35963   PyObject * obj0 = 0 ;
35964   PyObject * obj1 = 0 ;
35965   PyObject * obj2 = 0 ;
35966   char * kwnames[] = {
35967     (char *)"self",  (char *)"n",  (char *)"x",  NULL
35968   };
35969 
35970   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:ElemProbVector_assign", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
35971   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
35972   if (!SWIG_IsOK(res1)) {
35973     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_assign" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
35974   }
35975   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
35976   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
35977   if (!SWIG_IsOK(ecode2)) {
35978     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ElemProbVector_assign" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::size_type""'");
35979   }
35980   arg2 = static_cast< std::vector< vrna_ep_t >::size_type >(val2);
35981   res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_vrna_ep_t,  0  | 0);
35982   if (!SWIG_IsOK(res3)) {
35983     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ElemProbVector_assign" "', argument " "3"" of type '" "std::vector< vrna_ep_t >::value_type const &""'");
35984   }
35985   if (!argp3) {
35986     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ElemProbVector_assign" "', argument " "3"" of type '" "std::vector< vrna_ep_t >::value_type const &""'");
35987   }
35988   arg3 = reinterpret_cast< std::vector< vrna_ep_t >::value_type * >(argp3);
35989   {
35990     try {
35991       (arg1)->assign(arg2,(std::vector< vrna_ep_t >::value_type const &)*arg3);
35992     } catch (const std::exception& e) {
35993       SWIG_exception(SWIG_RuntimeError, e.what());
35994     }
35995   }
35996   resultobj = SWIG_Py_Void();
35997   return resultobj;
35998 fail:
35999   return NULL;
36000 }
36001 
36002 
_wrap_ElemProbVector_resize__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)36003 SWIGINTERN PyObject *_wrap_ElemProbVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
36004   PyObject *resultobj = 0;
36005   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
36006   std::vector< vrna_ep_t >::size_type arg2 ;
36007   std::vector< vrna_ep_t >::value_type *arg3 = 0 ;
36008   void *argp1 = 0 ;
36009   int res1 = 0 ;
36010   size_t val2 ;
36011   int ecode2 = 0 ;
36012   void *argp3 = 0 ;
36013   int res3 = 0 ;
36014 
36015   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
36016   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
36017   if (!SWIG_IsOK(res1)) {
36018     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_resize" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
36019   }
36020   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
36021   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
36022   if (!SWIG_IsOK(ecode2)) {
36023     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ElemProbVector_resize" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::size_type""'");
36024   }
36025   arg2 = static_cast< std::vector< vrna_ep_t >::size_type >(val2);
36026   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_vrna_ep_t,  0  | 0);
36027   if (!SWIG_IsOK(res3)) {
36028     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ElemProbVector_resize" "', argument " "3"" of type '" "std::vector< vrna_ep_t >::value_type const &""'");
36029   }
36030   if (!argp3) {
36031     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ElemProbVector_resize" "', argument " "3"" of type '" "std::vector< vrna_ep_t >::value_type const &""'");
36032   }
36033   arg3 = reinterpret_cast< std::vector< vrna_ep_t >::value_type * >(argp3);
36034   {
36035     try {
36036       (arg1)->resize(arg2,(std::vector< vrna_ep_t >::value_type const &)*arg3);
36037     } catch (const std::exception& e) {
36038       SWIG_exception(SWIG_RuntimeError, e.what());
36039     }
36040   }
36041   resultobj = SWIG_Py_Void();
36042   return resultobj;
36043 fail:
36044   return NULL;
36045 }
36046 
36047 
_wrap_ElemProbVector_resize(PyObject * self,PyObject * args)36048 SWIGINTERN PyObject *_wrap_ElemProbVector_resize(PyObject *self, PyObject *args) {
36049   Py_ssize_t argc;
36050   PyObject *argv[4] = {
36051     0
36052   };
36053 
36054   if (!(argc = SWIG_Python_UnpackTuple(args, "ElemProbVector_resize", 0, 3, argv))) SWIG_fail;
36055   --argc;
36056   if (argc == 2) {
36057     int _v;
36058     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
36059     _v = SWIG_CheckState(res);
36060     if (_v) {
36061       {
36062         int res = SWIG_AsVal_size_t(argv[1], NULL);
36063         _v = SWIG_CheckState(res);
36064       }
36065       if (_v) {
36066         return _wrap_ElemProbVector_resize__SWIG_0(self, argc, argv);
36067       }
36068     }
36069   }
36070   if (argc == 3) {
36071     int _v;
36072     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
36073     _v = SWIG_CheckState(res);
36074     if (_v) {
36075       {
36076         int res = SWIG_AsVal_size_t(argv[1], NULL);
36077         _v = SWIG_CheckState(res);
36078       }
36079       if (_v) {
36080         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_vrna_ep_t, SWIG_POINTER_NO_NULL | 0);
36081         _v = SWIG_CheckState(res);
36082         if (_v) {
36083           return _wrap_ElemProbVector_resize__SWIG_1(self, argc, argv);
36084         }
36085       }
36086     }
36087   }
36088 
36089 fail:
36090   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ElemProbVector_resize'.\n"
36091     "  Possible C/C++ prototypes are:\n"
36092     "    std::vector< vrna_ep_t >::resize(std::vector< vrna_ep_t >::size_type)\n"
36093     "    std::vector< vrna_ep_t >::resize(std::vector< vrna_ep_t >::size_type,std::vector< vrna_ep_t >::value_type const &)\n");
36094   return 0;
36095 }
36096 
36097 
_wrap_ElemProbVector_insert__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)36098 SWIGINTERN PyObject *_wrap_ElemProbVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
36099   PyObject *resultobj = 0;
36100   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
36101   std::vector< vrna_ep_t >::iterator arg2 ;
36102   std::vector< vrna_ep_t >::value_type *arg3 = 0 ;
36103   void *argp1 = 0 ;
36104   int res1 = 0 ;
36105   swig::SwigPyIterator *iter2 = 0 ;
36106   int res2 ;
36107   void *argp3 = 0 ;
36108   int res3 = 0 ;
36109   std::vector< vrna_ep_t >::iterator result;
36110 
36111   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
36112   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
36113   if (!SWIG_IsOK(res1)) {
36114     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_insert" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
36115   }
36116   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
36117   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
36118   if (!SWIG_IsOK(res2) || !iter2) {
36119     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ElemProbVector_insert" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::iterator""'");
36120   } else {
36121     swig::SwigPyIterator_T<std::vector< vrna_ep_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_ep_t >::iterator > *>(iter2);
36122     if (iter_t) {
36123       arg2 = iter_t->get_current();
36124     } else {
36125       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ElemProbVector_insert" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::iterator""'");
36126     }
36127   }
36128   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_vrna_ep_t,  0  | 0);
36129   if (!SWIG_IsOK(res3)) {
36130     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ElemProbVector_insert" "', argument " "3"" of type '" "std::vector< vrna_ep_t >::value_type const &""'");
36131   }
36132   if (!argp3) {
36133     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ElemProbVector_insert" "', argument " "3"" of type '" "std::vector< vrna_ep_t >::value_type const &""'");
36134   }
36135   arg3 = reinterpret_cast< std::vector< vrna_ep_t >::value_type * >(argp3);
36136   {
36137     try {
36138       result = std_vector_Sl_vrna_ep_t_Sg__insert__SWIG_0(arg1,arg2,(vrna_ep_t const &)*arg3);
36139     } catch (const std::exception& e) {
36140       SWIG_exception(SWIG_RuntimeError, e.what());
36141     }
36142   }
36143   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_ep_t >::iterator & >(result)),
36144     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
36145   return resultobj;
36146 fail:
36147   return NULL;
36148 }
36149 
36150 
_wrap_ElemProbVector_insert__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)36151 SWIGINTERN PyObject *_wrap_ElemProbVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
36152   PyObject *resultobj = 0;
36153   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
36154   std::vector< vrna_ep_t >::iterator arg2 ;
36155   std::vector< vrna_ep_t >::size_type arg3 ;
36156   std::vector< vrna_ep_t >::value_type *arg4 = 0 ;
36157   void *argp1 = 0 ;
36158   int res1 = 0 ;
36159   swig::SwigPyIterator *iter2 = 0 ;
36160   int res2 ;
36161   size_t val3 ;
36162   int ecode3 = 0 ;
36163   void *argp4 = 0 ;
36164   int res4 = 0 ;
36165 
36166   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
36167   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
36168   if (!SWIG_IsOK(res1)) {
36169     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_insert" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
36170   }
36171   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
36172   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
36173   if (!SWIG_IsOK(res2) || !iter2) {
36174     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ElemProbVector_insert" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::iterator""'");
36175   } else {
36176     swig::SwigPyIterator_T<std::vector< vrna_ep_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_ep_t >::iterator > *>(iter2);
36177     if (iter_t) {
36178       arg2 = iter_t->get_current();
36179     } else {
36180       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ElemProbVector_insert" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::iterator""'");
36181     }
36182   }
36183   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
36184   if (!SWIG_IsOK(ecode3)) {
36185     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ElemProbVector_insert" "', argument " "3"" of type '" "std::vector< vrna_ep_t >::size_type""'");
36186   }
36187   arg3 = static_cast< std::vector< vrna_ep_t >::size_type >(val3);
36188   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_vrna_ep_t,  0  | 0);
36189   if (!SWIG_IsOK(res4)) {
36190     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ElemProbVector_insert" "', argument " "4"" of type '" "std::vector< vrna_ep_t >::value_type const &""'");
36191   }
36192   if (!argp4) {
36193     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ElemProbVector_insert" "', argument " "4"" of type '" "std::vector< vrna_ep_t >::value_type const &""'");
36194   }
36195   arg4 = reinterpret_cast< std::vector< vrna_ep_t >::value_type * >(argp4);
36196   {
36197     try {
36198       std_vector_Sl_vrna_ep_t_Sg__insert__SWIG_1(arg1,arg2,arg3,(vrna_ep_t const &)*arg4);
36199     } catch (const std::exception& e) {
36200       SWIG_exception(SWIG_RuntimeError, e.what());
36201     }
36202   }
36203   resultobj = SWIG_Py_Void();
36204   return resultobj;
36205 fail:
36206   return NULL;
36207 }
36208 
36209 
_wrap_ElemProbVector_insert(PyObject * self,PyObject * args)36210 SWIGINTERN PyObject *_wrap_ElemProbVector_insert(PyObject *self, PyObject *args) {
36211   Py_ssize_t argc;
36212   PyObject *argv[5] = {
36213     0
36214   };
36215 
36216   if (!(argc = SWIG_Python_UnpackTuple(args, "ElemProbVector_insert", 0, 4, argv))) SWIG_fail;
36217   --argc;
36218   if (argc == 3) {
36219     int _v;
36220     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
36221     _v = SWIG_CheckState(res);
36222     if (_v) {
36223       swig::SwigPyIterator *iter = 0;
36224       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
36225       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_ep_t >::iterator > *>(iter) != 0));
36226       if (_v) {
36227         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_vrna_ep_t, SWIG_POINTER_NO_NULL | 0);
36228         _v = SWIG_CheckState(res);
36229         if (_v) {
36230           return _wrap_ElemProbVector_insert__SWIG_0(self, argc, argv);
36231         }
36232       }
36233     }
36234   }
36235   if (argc == 4) {
36236     int _v;
36237     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
36238     _v = SWIG_CheckState(res);
36239     if (_v) {
36240       swig::SwigPyIterator *iter = 0;
36241       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
36242       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_ep_t >::iterator > *>(iter) != 0));
36243       if (_v) {
36244         {
36245           int res = SWIG_AsVal_size_t(argv[2], NULL);
36246           _v = SWIG_CheckState(res);
36247         }
36248         if (_v) {
36249           int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_vrna_ep_t, SWIG_POINTER_NO_NULL | 0);
36250           _v = SWIG_CheckState(res);
36251           if (_v) {
36252             return _wrap_ElemProbVector_insert__SWIG_1(self, argc, argv);
36253           }
36254         }
36255       }
36256     }
36257   }
36258 
36259 fail:
36260   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ElemProbVector_insert'.\n"
36261     "  Possible C/C++ prototypes are:\n"
36262     "    std::vector< vrna_ep_t >::insert(std::vector< vrna_ep_t >::iterator,std::vector< vrna_ep_t >::value_type const &)\n"
36263     "    std::vector< vrna_ep_t >::insert(std::vector< vrna_ep_t >::iterator,std::vector< vrna_ep_t >::size_type,std::vector< vrna_ep_t >::value_type const &)\n");
36264   return 0;
36265 }
36266 
36267 
_wrap_ElemProbVector_reserve(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)36268 SWIGINTERN PyObject *_wrap_ElemProbVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36269   PyObject *resultobj = 0;
36270   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
36271   std::vector< vrna_ep_t >::size_type arg2 ;
36272   void *argp1 = 0 ;
36273   int res1 = 0 ;
36274   size_t val2 ;
36275   int ecode2 = 0 ;
36276   PyObject * obj0 = 0 ;
36277   PyObject * obj1 = 0 ;
36278   char * kwnames[] = {
36279     (char *)"self",  (char *)"n",  NULL
36280   };
36281 
36282   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:ElemProbVector_reserve", kwnames, &obj0, &obj1)) SWIG_fail;
36283   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
36284   if (!SWIG_IsOK(res1)) {
36285     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_reserve" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
36286   }
36287   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
36288   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
36289   if (!SWIG_IsOK(ecode2)) {
36290     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ElemProbVector_reserve" "', argument " "2"" of type '" "std::vector< vrna_ep_t >::size_type""'");
36291   }
36292   arg2 = static_cast< std::vector< vrna_ep_t >::size_type >(val2);
36293   {
36294     try {
36295       (arg1)->reserve(arg2);
36296     } catch (const std::exception& e) {
36297       SWIG_exception(SWIG_RuntimeError, e.what());
36298     }
36299   }
36300   resultobj = SWIG_Py_Void();
36301   return resultobj;
36302 fail:
36303   return NULL;
36304 }
36305 
36306 
_wrap_ElemProbVector_capacity(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36307 SWIGINTERN PyObject *_wrap_ElemProbVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36308   PyObject *resultobj = 0;
36309   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
36310   void *argp1 = 0 ;
36311   int res1 = 0 ;
36312   PyObject *swig_obj[1] ;
36313   std::vector< vrna_ep_t >::size_type result;
36314 
36315   if (!args) SWIG_fail;
36316   swig_obj[0] = args;
36317   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0 |  0 );
36318   if (!SWIG_IsOK(res1)) {
36319     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ElemProbVector_capacity" "', argument " "1"" of type '" "std::vector< vrna_ep_t > const *""'");
36320   }
36321   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
36322   {
36323     try {
36324       result = ((std::vector< vrna_ep_t > const *)arg1)->capacity();
36325     } catch (const std::exception& e) {
36326       SWIG_exception(SWIG_RuntimeError, e.what());
36327     }
36328   }
36329   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
36330   return resultobj;
36331 fail:
36332   return NULL;
36333 }
36334 
36335 
_wrap_delete_ElemProbVector(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36336 SWIGINTERN PyObject *_wrap_delete_ElemProbVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36337   PyObject *resultobj = 0;
36338   std::vector< vrna_ep_t > *arg1 = (std::vector< vrna_ep_t > *) 0 ;
36339   void *argp1 = 0 ;
36340   int res1 = 0 ;
36341   PyObject *swig_obj[1] ;
36342 
36343   if (!args) SWIG_fail;
36344   swig_obj[0] = args;
36345   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, SWIG_POINTER_DISOWN |  0 );
36346   if (!SWIG_IsOK(res1)) {
36347     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ElemProbVector" "', argument " "1"" of type '" "std::vector< vrna_ep_t > *""'");
36348   }
36349   arg1 = reinterpret_cast< std::vector< vrna_ep_t > * >(argp1);
36350   {
36351     try {
36352       delete arg1;
36353     } catch (const std::exception& e) {
36354       SWIG_exception(SWIG_RuntimeError, e.what());
36355     }
36356   }
36357   resultobj = SWIG_Py_Void();
36358   return resultobj;
36359 fail:
36360   return NULL;
36361 }
36362 
36363 
ElemProbVector_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36364 SWIGINTERN PyObject *ElemProbVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36365   PyObject *obj;
36366   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
36367   SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, SWIG_NewClientData(obj));
36368   return SWIG_Py_Void();
36369 }
36370 
ElemProbVector_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36371 SWIGINTERN PyObject *ElemProbVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36372   return SWIG_Python_InitShadowInstance(args);
36373 }
36374 
_wrap_PathVector_iterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36375 SWIGINTERN PyObject *_wrap_PathVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36376   PyObject *resultobj = 0;
36377   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
36378   PyObject **arg2 = (PyObject **) 0 ;
36379   void *argp1 = 0 ;
36380   int res1 = 0 ;
36381   PyObject *swig_obj[1] ;
36382   swig::SwigPyIterator *result = 0 ;
36383 
36384   arg2 = &swig_obj[0];
36385   if (!args) SWIG_fail;
36386   swig_obj[0] = args;
36387   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
36388   if (!SWIG_IsOK(res1)) {
36389     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_iterator" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
36390   }
36391   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
36392   {
36393     try {
36394       result = (swig::SwigPyIterator *)std_vector_Sl_vrna_path_t_Sg__iterator(arg1,arg2);
36395     } catch (const std::exception& e) {
36396       SWIG_exception(SWIG_RuntimeError, e.what());
36397     }
36398   }
36399   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
36400   return resultobj;
36401 fail:
36402   return NULL;
36403 }
36404 
36405 
_wrap_PathVector___nonzero__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36406 SWIGINTERN PyObject *_wrap_PathVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36407   PyObject *resultobj = 0;
36408   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
36409   void *argp1 = 0 ;
36410   int res1 = 0 ;
36411   PyObject *swig_obj[1] ;
36412   bool result;
36413 
36414   if (!args) SWIG_fail;
36415   swig_obj[0] = args;
36416   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
36417   if (!SWIG_IsOK(res1)) {
36418     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector___nonzero__" "', argument " "1"" of type '" "std::vector< vrna_path_t > const *""'");
36419   }
36420   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
36421   {
36422     try {
36423       result = (bool)std_vector_Sl_vrna_path_t_Sg____nonzero__((std::vector< vrna_path_t > const *)arg1);
36424     } catch (const std::exception& e) {
36425       SWIG_exception(SWIG_RuntimeError, e.what());
36426     }
36427   }
36428   resultobj = SWIG_From_bool(static_cast< bool >(result));
36429   return resultobj;
36430 fail:
36431   return NULL;
36432 }
36433 
36434 
_wrap_PathVector___bool__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36435 SWIGINTERN PyObject *_wrap_PathVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36436   PyObject *resultobj = 0;
36437   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
36438   void *argp1 = 0 ;
36439   int res1 = 0 ;
36440   PyObject *swig_obj[1] ;
36441   bool result;
36442 
36443   if (!args) SWIG_fail;
36444   swig_obj[0] = args;
36445   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
36446   if (!SWIG_IsOK(res1)) {
36447     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector___bool__" "', argument " "1"" of type '" "std::vector< vrna_path_t > const *""'");
36448   }
36449   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
36450   {
36451     try {
36452       result = (bool)std_vector_Sl_vrna_path_t_Sg____bool__((std::vector< vrna_path_t > const *)arg1);
36453     } catch (const std::exception& e) {
36454       SWIG_exception(SWIG_RuntimeError, e.what());
36455     }
36456   }
36457   resultobj = SWIG_From_bool(static_cast< bool >(result));
36458   return resultobj;
36459 fail:
36460   return NULL;
36461 }
36462 
36463 
_wrap_PathVector___len__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36464 SWIGINTERN PyObject *_wrap_PathVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36465   PyObject *resultobj = 0;
36466   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
36467   void *argp1 = 0 ;
36468   int res1 = 0 ;
36469   PyObject *swig_obj[1] ;
36470   std::vector< vrna_path_t >::size_type result;
36471 
36472   if (!args) SWIG_fail;
36473   swig_obj[0] = args;
36474   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
36475   if (!SWIG_IsOK(res1)) {
36476     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector___len__" "', argument " "1"" of type '" "std::vector< vrna_path_t > const *""'");
36477   }
36478   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
36479   {
36480     try {
36481       result = std_vector_Sl_vrna_path_t_Sg____len__((std::vector< vrna_path_t > const *)arg1);
36482     } catch (const std::exception& e) {
36483       SWIG_exception(SWIG_RuntimeError, e.what());
36484     }
36485   }
36486   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
36487   return resultobj;
36488 fail:
36489   return NULL;
36490 }
36491 
36492 
_wrap_PathVector___getslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)36493 SWIGINTERN PyObject *_wrap_PathVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36494   PyObject *resultobj = 0;
36495   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
36496   std::vector< vrna_path_t >::difference_type arg2 ;
36497   std::vector< vrna_path_t >::difference_type arg3 ;
36498   void *argp1 = 0 ;
36499   int res1 = 0 ;
36500   ptrdiff_t val2 ;
36501   int ecode2 = 0 ;
36502   ptrdiff_t val3 ;
36503   int ecode3 = 0 ;
36504   PyObject * obj0 = 0 ;
36505   PyObject * obj1 = 0 ;
36506   PyObject * obj2 = 0 ;
36507   char * kwnames[] = {
36508     (char *)"self",  (char *)"i",  (char *)"j",  NULL
36509   };
36510   std::vector< vrna_path_t,std::allocator< vrna_path_t > > *result = 0 ;
36511 
36512   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:PathVector___getslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
36513   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
36514   if (!SWIG_IsOK(res1)) {
36515     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector___getslice__" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
36516   }
36517   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
36518   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
36519   if (!SWIG_IsOK(ecode2)) {
36520     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PathVector___getslice__" "', argument " "2"" of type '" "std::vector< vrna_path_t >::difference_type""'");
36521   }
36522   arg2 = static_cast< std::vector< vrna_path_t >::difference_type >(val2);
36523   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
36524   if (!SWIG_IsOK(ecode3)) {
36525     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PathVector___getslice__" "', argument " "3"" of type '" "std::vector< vrna_path_t >::difference_type""'");
36526   }
36527   arg3 = static_cast< std::vector< vrna_path_t >::difference_type >(val3);
36528   {
36529     try {
36530       try {
36531         result = (std::vector< vrna_path_t,std::allocator< vrna_path_t > > *)std_vector_Sl_vrna_path_t_Sg____getslice__(arg1,arg2,arg3);
36532       } catch(std::out_of_range &_e) {
36533         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
36534       } catch(std::invalid_argument &_e) {
36535         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
36536       }
36537     } catch (const std::exception& e) {
36538       SWIG_exception(SWIG_RuntimeError, e.what());
36539     }
36540   }
36541   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, SWIG_POINTER_OWN |  0 );
36542   return resultobj;
36543 fail:
36544   return NULL;
36545 }
36546 
36547 
_wrap_PathVector___setslice____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)36548 SWIGINTERN PyObject *_wrap_PathVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
36549   PyObject *resultobj = 0;
36550   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
36551   std::vector< vrna_path_t >::difference_type arg2 ;
36552   std::vector< vrna_path_t >::difference_type arg3 ;
36553   void *argp1 = 0 ;
36554   int res1 = 0 ;
36555   ptrdiff_t val2 ;
36556   int ecode2 = 0 ;
36557   ptrdiff_t val3 ;
36558   int ecode3 = 0 ;
36559 
36560   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
36561   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
36562   if (!SWIG_IsOK(res1)) {
36563     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector___setslice__" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
36564   }
36565   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
36566   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
36567   if (!SWIG_IsOK(ecode2)) {
36568     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PathVector___setslice__" "', argument " "2"" of type '" "std::vector< vrna_path_t >::difference_type""'");
36569   }
36570   arg2 = static_cast< std::vector< vrna_path_t >::difference_type >(val2);
36571   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
36572   if (!SWIG_IsOK(ecode3)) {
36573     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PathVector___setslice__" "', argument " "3"" of type '" "std::vector< vrna_path_t >::difference_type""'");
36574   }
36575   arg3 = static_cast< std::vector< vrna_path_t >::difference_type >(val3);
36576   {
36577     try {
36578       try {
36579         std_vector_Sl_vrna_path_t_Sg____setslice____SWIG_0(arg1,arg2,arg3);
36580       } catch(std::out_of_range &_e) {
36581         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
36582       } catch(std::invalid_argument &_e) {
36583         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
36584       }
36585     } catch (const std::exception& e) {
36586       SWIG_exception(SWIG_RuntimeError, e.what());
36587     }
36588   }
36589   resultobj = SWIG_Py_Void();
36590   return resultobj;
36591 fail:
36592   return NULL;
36593 }
36594 
36595 
_wrap_PathVector___setslice____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)36596 SWIGINTERN PyObject *_wrap_PathVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
36597   PyObject *resultobj = 0;
36598   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
36599   std::vector< vrna_path_t >::difference_type arg2 ;
36600   std::vector< vrna_path_t >::difference_type arg3 ;
36601   std::vector< vrna_path_t,std::allocator< vrna_path_t > > *arg4 = 0 ;
36602   void *argp1 = 0 ;
36603   int res1 = 0 ;
36604   ptrdiff_t val2 ;
36605   int ecode2 = 0 ;
36606   ptrdiff_t val3 ;
36607   int ecode3 = 0 ;
36608   int res4 = SWIG_OLDOBJ ;
36609 
36610   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
36611   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
36612   if (!SWIG_IsOK(res1)) {
36613     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector___setslice__" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
36614   }
36615   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
36616   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
36617   if (!SWIG_IsOK(ecode2)) {
36618     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PathVector___setslice__" "', argument " "2"" of type '" "std::vector< vrna_path_t >::difference_type""'");
36619   }
36620   arg2 = static_cast< std::vector< vrna_path_t >::difference_type >(val2);
36621   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
36622   if (!SWIG_IsOK(ecode3)) {
36623     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PathVector___setslice__" "', argument " "3"" of type '" "std::vector< vrna_path_t >::difference_type""'");
36624   }
36625   arg3 = static_cast< std::vector< vrna_path_t >::difference_type >(val3);
36626   {
36627     std::vector< vrna_path_t,std::allocator< vrna_path_t > > *ptr = (std::vector< vrna_path_t,std::allocator< vrna_path_t > > *)0;
36628     res4 = swig::asptr(swig_obj[3], &ptr);
36629     if (!SWIG_IsOK(res4)) {
36630       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "PathVector___setslice__" "', argument " "4"" of type '" "std::vector< vrna_path_t,std::allocator< vrna_path_t > > const &""'");
36631     }
36632     if (!ptr) {
36633       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PathVector___setslice__" "', argument " "4"" of type '" "std::vector< vrna_path_t,std::allocator< vrna_path_t > > const &""'");
36634     }
36635     arg4 = ptr;
36636   }
36637   {
36638     try {
36639       try {
36640         std_vector_Sl_vrna_path_t_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< vrna_path_t,std::allocator< vrna_path_t > > const &)*arg4);
36641       } catch(std::out_of_range &_e) {
36642         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
36643       } catch(std::invalid_argument &_e) {
36644         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
36645       }
36646     } catch (const std::exception& e) {
36647       SWIG_exception(SWIG_RuntimeError, e.what());
36648     }
36649   }
36650   resultobj = SWIG_Py_Void();
36651   if (SWIG_IsNewObj(res4)) delete arg4;
36652   return resultobj;
36653 fail:
36654   if (SWIG_IsNewObj(res4)) delete arg4;
36655   return NULL;
36656 }
36657 
36658 
_wrap_PathVector___setslice__(PyObject * self,PyObject * args)36659 SWIGINTERN PyObject *_wrap_PathVector___setslice__(PyObject *self, PyObject *args) {
36660   Py_ssize_t argc;
36661   PyObject *argv[5] = {
36662     0
36663   };
36664 
36665   if (!(argc = SWIG_Python_UnpackTuple(args, "PathVector___setslice__", 0, 4, argv))) SWIG_fail;
36666   --argc;
36667   if (argc == 3) {
36668     int _v;
36669     int res = swig::asptr(argv[0], (std::vector< vrna_path_t,std::allocator< vrna_path_t > >**)(0));
36670     _v = SWIG_CheckState(res);
36671     if (_v) {
36672       {
36673         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
36674         _v = SWIG_CheckState(res);
36675       }
36676       if (_v) {
36677         {
36678           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
36679           _v = SWIG_CheckState(res);
36680         }
36681         if (_v) {
36682           return _wrap_PathVector___setslice____SWIG_0(self, argc, argv);
36683         }
36684       }
36685     }
36686   }
36687   if (argc == 4) {
36688     int _v;
36689     int res = swig::asptr(argv[0], (std::vector< vrna_path_t,std::allocator< vrna_path_t > >**)(0));
36690     _v = SWIG_CheckState(res);
36691     if (_v) {
36692       {
36693         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
36694         _v = SWIG_CheckState(res);
36695       }
36696       if (_v) {
36697         {
36698           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
36699           _v = SWIG_CheckState(res);
36700         }
36701         if (_v) {
36702           int res = swig::asptr(argv[3], (std::vector< vrna_path_t,std::allocator< vrna_path_t > >**)(0));
36703           _v = SWIG_CheckState(res);
36704           if (_v) {
36705             return _wrap_PathVector___setslice____SWIG_1(self, argc, argv);
36706           }
36707         }
36708       }
36709     }
36710   }
36711 
36712 fail:
36713   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'PathVector___setslice__'.\n"
36714     "  Possible C/C++ prototypes are:\n"
36715     "    std::vector< vrna_path_t >::__setslice__(std::vector< vrna_path_t >::difference_type,std::vector< vrna_path_t >::difference_type)\n"
36716     "    std::vector< vrna_path_t >::__setslice__(std::vector< vrna_path_t >::difference_type,std::vector< vrna_path_t >::difference_type,std::vector< vrna_path_t,std::allocator< vrna_path_t > > const &)\n");
36717   return 0;
36718 }
36719 
36720 
_wrap_PathVector___delslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)36721 SWIGINTERN PyObject *_wrap_PathVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36722   PyObject *resultobj = 0;
36723   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
36724   std::vector< vrna_path_t >::difference_type arg2 ;
36725   std::vector< vrna_path_t >::difference_type arg3 ;
36726   void *argp1 = 0 ;
36727   int res1 = 0 ;
36728   ptrdiff_t val2 ;
36729   int ecode2 = 0 ;
36730   ptrdiff_t val3 ;
36731   int ecode3 = 0 ;
36732   PyObject * obj0 = 0 ;
36733   PyObject * obj1 = 0 ;
36734   PyObject * obj2 = 0 ;
36735   char * kwnames[] = {
36736     (char *)"self",  (char *)"i",  (char *)"j",  NULL
36737   };
36738 
36739   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:PathVector___delslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
36740   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
36741   if (!SWIG_IsOK(res1)) {
36742     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector___delslice__" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
36743   }
36744   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
36745   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
36746   if (!SWIG_IsOK(ecode2)) {
36747     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PathVector___delslice__" "', argument " "2"" of type '" "std::vector< vrna_path_t >::difference_type""'");
36748   }
36749   arg2 = static_cast< std::vector< vrna_path_t >::difference_type >(val2);
36750   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
36751   if (!SWIG_IsOK(ecode3)) {
36752     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PathVector___delslice__" "', argument " "3"" of type '" "std::vector< vrna_path_t >::difference_type""'");
36753   }
36754   arg3 = static_cast< std::vector< vrna_path_t >::difference_type >(val3);
36755   {
36756     try {
36757       try {
36758         std_vector_Sl_vrna_path_t_Sg____delslice__(arg1,arg2,arg3);
36759       } catch(std::out_of_range &_e) {
36760         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
36761       } catch(std::invalid_argument &_e) {
36762         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
36763       }
36764     } catch (const std::exception& e) {
36765       SWIG_exception(SWIG_RuntimeError, e.what());
36766     }
36767   }
36768   resultobj = SWIG_Py_Void();
36769   return resultobj;
36770 fail:
36771   return NULL;
36772 }
36773 
36774 
_wrap_PathVector___delitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)36775 SWIGINTERN PyObject *_wrap_PathVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
36776   PyObject *resultobj = 0;
36777   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
36778   std::vector< vrna_path_t >::difference_type arg2 ;
36779   void *argp1 = 0 ;
36780   int res1 = 0 ;
36781   ptrdiff_t val2 ;
36782   int ecode2 = 0 ;
36783 
36784   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
36785   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
36786   if (!SWIG_IsOK(res1)) {
36787     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector___delitem__" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
36788   }
36789   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
36790   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
36791   if (!SWIG_IsOK(ecode2)) {
36792     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PathVector___delitem__" "', argument " "2"" of type '" "std::vector< vrna_path_t >::difference_type""'");
36793   }
36794   arg2 = static_cast< std::vector< vrna_path_t >::difference_type >(val2);
36795   {
36796     try {
36797       try {
36798         std_vector_Sl_vrna_path_t_Sg____delitem____SWIG_0(arg1,arg2);
36799       } catch(std::out_of_range &_e) {
36800         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
36801       } catch(std::invalid_argument &_e) {
36802         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
36803       }
36804     } catch (const std::exception& e) {
36805       SWIG_exception(SWIG_RuntimeError, e.what());
36806     }
36807   }
36808   resultobj = SWIG_Py_Void();
36809   return resultobj;
36810 fail:
36811   return NULL;
36812 }
36813 
36814 
_wrap_PathVector___getitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)36815 SWIGINTERN PyObject *_wrap_PathVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
36816   PyObject *resultobj = 0;
36817   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
36818   PySliceObject *arg2 = (PySliceObject *) 0 ;
36819   void *argp1 = 0 ;
36820   int res1 = 0 ;
36821   std::vector< vrna_path_t,std::allocator< vrna_path_t > > *result = 0 ;
36822 
36823   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
36824   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
36825   if (!SWIG_IsOK(res1)) {
36826     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector___getitem__" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
36827   }
36828   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
36829   {
36830     if (!PySlice_Check(swig_obj[1])) {
36831       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PathVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
36832     }
36833     arg2 = (PySliceObject *) swig_obj[1];
36834   }
36835   {
36836     try {
36837       try {
36838         result = (std::vector< vrna_path_t,std::allocator< vrna_path_t > > *)std_vector_Sl_vrna_path_t_Sg____getitem____SWIG_0(arg1,arg2);
36839       } catch(std::out_of_range &_e) {
36840         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
36841       } catch(std::invalid_argument &_e) {
36842         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
36843       }
36844     } catch (const std::exception& e) {
36845       SWIG_exception(SWIG_RuntimeError, e.what());
36846     }
36847   }
36848   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, SWIG_POINTER_OWN |  0 );
36849   return resultobj;
36850 fail:
36851   return NULL;
36852 }
36853 
36854 
_wrap_PathVector___setitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)36855 SWIGINTERN PyObject *_wrap_PathVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
36856   PyObject *resultobj = 0;
36857   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
36858   PySliceObject *arg2 = (PySliceObject *) 0 ;
36859   std::vector< vrna_path_t,std::allocator< vrna_path_t > > *arg3 = 0 ;
36860   void *argp1 = 0 ;
36861   int res1 = 0 ;
36862   int res3 = SWIG_OLDOBJ ;
36863 
36864   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
36865   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
36866   if (!SWIG_IsOK(res1)) {
36867     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector___setitem__" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
36868   }
36869   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
36870   {
36871     if (!PySlice_Check(swig_obj[1])) {
36872       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PathVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
36873     }
36874     arg2 = (PySliceObject *) swig_obj[1];
36875   }
36876   {
36877     std::vector< vrna_path_t,std::allocator< vrna_path_t > > *ptr = (std::vector< vrna_path_t,std::allocator< vrna_path_t > > *)0;
36878     res3 = swig::asptr(swig_obj[2], &ptr);
36879     if (!SWIG_IsOK(res3)) {
36880       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PathVector___setitem__" "', argument " "3"" of type '" "std::vector< vrna_path_t,std::allocator< vrna_path_t > > const &""'");
36881     }
36882     if (!ptr) {
36883       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PathVector___setitem__" "', argument " "3"" of type '" "std::vector< vrna_path_t,std::allocator< vrna_path_t > > const &""'");
36884     }
36885     arg3 = ptr;
36886   }
36887   {
36888     try {
36889       try {
36890         std_vector_Sl_vrna_path_t_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< vrna_path_t,std::allocator< vrna_path_t > > const &)*arg3);
36891       } catch(std::out_of_range &_e) {
36892         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
36893       } catch(std::invalid_argument &_e) {
36894         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
36895       }
36896     } catch (const std::exception& e) {
36897       SWIG_exception(SWIG_RuntimeError, e.what());
36898     }
36899   }
36900   resultobj = SWIG_Py_Void();
36901   if (SWIG_IsNewObj(res3)) delete arg3;
36902   return resultobj;
36903 fail:
36904   if (SWIG_IsNewObj(res3)) delete arg3;
36905   return NULL;
36906 }
36907 
36908 
_wrap_PathVector___setitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)36909 SWIGINTERN PyObject *_wrap_PathVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
36910   PyObject *resultobj = 0;
36911   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
36912   PySliceObject *arg2 = (PySliceObject *) 0 ;
36913   void *argp1 = 0 ;
36914   int res1 = 0 ;
36915 
36916   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
36917   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
36918   if (!SWIG_IsOK(res1)) {
36919     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector___setitem__" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
36920   }
36921   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
36922   {
36923     if (!PySlice_Check(swig_obj[1])) {
36924       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PathVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
36925     }
36926     arg2 = (PySliceObject *) swig_obj[1];
36927   }
36928   {
36929     try {
36930       try {
36931         std_vector_Sl_vrna_path_t_Sg____setitem____SWIG_1(arg1,arg2);
36932       } catch(std::out_of_range &_e) {
36933         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
36934       } catch(std::invalid_argument &_e) {
36935         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
36936       }
36937     } catch (const std::exception& e) {
36938       SWIG_exception(SWIG_RuntimeError, e.what());
36939     }
36940   }
36941   resultobj = SWIG_Py_Void();
36942   return resultobj;
36943 fail:
36944   return NULL;
36945 }
36946 
36947 
_wrap_PathVector___delitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)36948 SWIGINTERN PyObject *_wrap_PathVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
36949   PyObject *resultobj = 0;
36950   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
36951   PySliceObject *arg2 = (PySliceObject *) 0 ;
36952   void *argp1 = 0 ;
36953   int res1 = 0 ;
36954 
36955   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
36956   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
36957   if (!SWIG_IsOK(res1)) {
36958     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector___delitem__" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
36959   }
36960   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
36961   {
36962     if (!PySlice_Check(swig_obj[1])) {
36963       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PathVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
36964     }
36965     arg2 = (PySliceObject *) swig_obj[1];
36966   }
36967   {
36968     try {
36969       try {
36970         std_vector_Sl_vrna_path_t_Sg____delitem____SWIG_1(arg1,arg2);
36971       } catch(std::out_of_range &_e) {
36972         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
36973       } catch(std::invalid_argument &_e) {
36974         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
36975       }
36976     } catch (const std::exception& e) {
36977       SWIG_exception(SWIG_RuntimeError, e.what());
36978     }
36979   }
36980   resultobj = SWIG_Py_Void();
36981   return resultobj;
36982 fail:
36983   return NULL;
36984 }
36985 
36986 
_wrap_PathVector___delitem__(PyObject * self,PyObject * args)36987 SWIGINTERN PyObject *_wrap_PathVector___delitem__(PyObject *self, PyObject *args) {
36988   Py_ssize_t argc;
36989   PyObject *argv[3] = {
36990     0
36991   };
36992 
36993   if (!(argc = SWIG_Python_UnpackTuple(args, "PathVector___delitem__", 0, 2, argv))) SWIG_fail;
36994   --argc;
36995   if (argc == 2) {
36996     int _v;
36997     int res = swig::asptr(argv[0], (std::vector< vrna_path_t,std::allocator< vrna_path_t > >**)(0));
36998     _v = SWIG_CheckState(res);
36999     if (_v) {
37000       {
37001         _v = PySlice_Check(argv[1]);
37002       }
37003       if (_v) {
37004         return _wrap_PathVector___delitem____SWIG_1(self, argc, argv);
37005       }
37006     }
37007   }
37008   if (argc == 2) {
37009     int _v;
37010     int res = swig::asptr(argv[0], (std::vector< vrna_path_t,std::allocator< vrna_path_t > >**)(0));
37011     _v = SWIG_CheckState(res);
37012     if (_v) {
37013       {
37014         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
37015         _v = SWIG_CheckState(res);
37016       }
37017       if (_v) {
37018         return _wrap_PathVector___delitem____SWIG_0(self, argc, argv);
37019       }
37020     }
37021   }
37022 
37023 fail:
37024   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'PathVector___delitem__'.\n"
37025     "  Possible C/C++ prototypes are:\n"
37026     "    std::vector< vrna_path_t >::__delitem__(std::vector< vrna_path_t >::difference_type)\n"
37027     "    std::vector< vrna_path_t >::__delitem__(PySliceObject *)\n");
37028   return 0;
37029 }
37030 
37031 
_wrap_PathVector___getitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)37032 SWIGINTERN PyObject *_wrap_PathVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
37033   PyObject *resultobj = 0;
37034   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
37035   std::vector< vrna_path_t >::difference_type arg2 ;
37036   void *argp1 = 0 ;
37037   int res1 = 0 ;
37038   ptrdiff_t val2 ;
37039   int ecode2 = 0 ;
37040   std::vector< vrna_path_t >::value_type *result = 0 ;
37041 
37042   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
37043   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
37044   if (!SWIG_IsOK(res1)) {
37045     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector___getitem__" "', argument " "1"" of type '" "std::vector< vrna_path_t > const *""'");
37046   }
37047   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
37048   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
37049   if (!SWIG_IsOK(ecode2)) {
37050     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PathVector___getitem__" "', argument " "2"" of type '" "std::vector< vrna_path_t >::difference_type""'");
37051   }
37052   arg2 = static_cast< std::vector< vrna_path_t >::difference_type >(val2);
37053   {
37054     try {
37055       try {
37056         result = (std::vector< vrna_path_t >::value_type *) &std_vector_Sl_vrna_path_t_Sg____getitem____SWIG_1((std::vector< vrna_path_t > const *)arg1,arg2);
37057       } catch(std::out_of_range &_e) {
37058         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
37059       }
37060     } catch (const std::exception& e) {
37061       SWIG_exception(SWIG_RuntimeError, e.what());
37062     }
37063   }
37064   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_path_t, 0 |  0 );
37065   (void)swig::container_owner<swig::traits<std::vector< vrna_path_t >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
37066   return resultobj;
37067 fail:
37068   return NULL;
37069 }
37070 
37071 
_wrap_PathVector___getitem__(PyObject * self,PyObject * args)37072 SWIGINTERN PyObject *_wrap_PathVector___getitem__(PyObject *self, PyObject *args) {
37073   Py_ssize_t argc;
37074   PyObject *argv[3] = {
37075     0
37076   };
37077 
37078   if (!(argc = SWIG_Python_UnpackTuple(args, "PathVector___getitem__", 0, 2, argv))) SWIG_fail;
37079   --argc;
37080   if (argc == 2) {
37081     int _v;
37082     int res = swig::asptr(argv[0], (std::vector< vrna_path_t,std::allocator< vrna_path_t > >**)(0));
37083     _v = SWIG_CheckState(res);
37084     if (_v) {
37085       {
37086         _v = PySlice_Check(argv[1]);
37087       }
37088       if (_v) {
37089         return _wrap_PathVector___getitem____SWIG_0(self, argc, argv);
37090       }
37091     }
37092   }
37093   if (argc == 2) {
37094     int _v;
37095     int res = swig::asptr(argv[0], (std::vector< vrna_path_t,std::allocator< vrna_path_t > >**)(0));
37096     _v = SWIG_CheckState(res);
37097     if (_v) {
37098       {
37099         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
37100         _v = SWIG_CheckState(res);
37101       }
37102       if (_v) {
37103         return _wrap_PathVector___getitem____SWIG_1(self, argc, argv);
37104       }
37105     }
37106   }
37107 
37108 fail:
37109   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'PathVector___getitem__'.\n"
37110     "  Possible C/C++ prototypes are:\n"
37111     "    std::vector< vrna_path_t >::__getitem__(PySliceObject *)\n"
37112     "    std::vector< vrna_path_t >::__getitem__(std::vector< vrna_path_t >::difference_type) const\n");
37113   return 0;
37114 }
37115 
37116 
_wrap_PathVector___setitem____SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)37117 SWIGINTERN PyObject *_wrap_PathVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
37118   PyObject *resultobj = 0;
37119   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
37120   std::vector< vrna_path_t >::difference_type arg2 ;
37121   std::vector< vrna_path_t >::value_type *arg3 = 0 ;
37122   void *argp1 = 0 ;
37123   int res1 = 0 ;
37124   ptrdiff_t val2 ;
37125   int ecode2 = 0 ;
37126   void *argp3 = 0 ;
37127   int res3 = 0 ;
37128 
37129   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
37130   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
37131   if (!SWIG_IsOK(res1)) {
37132     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector___setitem__" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
37133   }
37134   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
37135   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
37136   if (!SWIG_IsOK(ecode2)) {
37137     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PathVector___setitem__" "', argument " "2"" of type '" "std::vector< vrna_path_t >::difference_type""'");
37138   }
37139   arg2 = static_cast< std::vector< vrna_path_t >::difference_type >(val2);
37140   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_vrna_path_t,  0  | 0);
37141   if (!SWIG_IsOK(res3)) {
37142     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PathVector___setitem__" "', argument " "3"" of type '" "std::vector< vrna_path_t >::value_type const &""'");
37143   }
37144   if (!argp3) {
37145     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PathVector___setitem__" "', argument " "3"" of type '" "std::vector< vrna_path_t >::value_type const &""'");
37146   }
37147   arg3 = reinterpret_cast< std::vector< vrna_path_t >::value_type * >(argp3);
37148   {
37149     try {
37150       try {
37151         std_vector_Sl_vrna_path_t_Sg____setitem____SWIG_2(arg1,arg2,(vrna_path_t const &)*arg3);
37152       } catch(std::out_of_range &_e) {
37153         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
37154       }
37155     } catch (const std::exception& e) {
37156       SWIG_exception(SWIG_RuntimeError, e.what());
37157     }
37158   }
37159   resultobj = SWIG_Py_Void();
37160   return resultobj;
37161 fail:
37162   return NULL;
37163 }
37164 
37165 
_wrap_PathVector___setitem__(PyObject * self,PyObject * args)37166 SWIGINTERN PyObject *_wrap_PathVector___setitem__(PyObject *self, PyObject *args) {
37167   Py_ssize_t argc;
37168   PyObject *argv[4] = {
37169     0
37170   };
37171 
37172   if (!(argc = SWIG_Python_UnpackTuple(args, "PathVector___setitem__", 0, 3, argv))) SWIG_fail;
37173   --argc;
37174   if (argc == 2) {
37175     int _v;
37176     int res = swig::asptr(argv[0], (std::vector< vrna_path_t,std::allocator< vrna_path_t > >**)(0));
37177     _v = SWIG_CheckState(res);
37178     if (_v) {
37179       {
37180         _v = PySlice_Check(argv[1]);
37181       }
37182       if (_v) {
37183         return _wrap_PathVector___setitem____SWIG_1(self, argc, argv);
37184       }
37185     }
37186   }
37187   if (argc == 3) {
37188     int _v;
37189     int res = swig::asptr(argv[0], (std::vector< vrna_path_t,std::allocator< vrna_path_t > >**)(0));
37190     _v = SWIG_CheckState(res);
37191     if (_v) {
37192       {
37193         _v = PySlice_Check(argv[1]);
37194       }
37195       if (_v) {
37196         int res = swig::asptr(argv[2], (std::vector< vrna_path_t,std::allocator< vrna_path_t > >**)(0));
37197         _v = SWIG_CheckState(res);
37198         if (_v) {
37199           return _wrap_PathVector___setitem____SWIG_0(self, argc, argv);
37200         }
37201       }
37202     }
37203   }
37204   if (argc == 3) {
37205     int _v;
37206     int res = swig::asptr(argv[0], (std::vector< vrna_path_t,std::allocator< vrna_path_t > >**)(0));
37207     _v = SWIG_CheckState(res);
37208     if (_v) {
37209       {
37210         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
37211         _v = SWIG_CheckState(res);
37212       }
37213       if (_v) {
37214         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_vrna_path_t, SWIG_POINTER_NO_NULL | 0);
37215         _v = SWIG_CheckState(res);
37216         if (_v) {
37217           return _wrap_PathVector___setitem____SWIG_2(self, argc, argv);
37218         }
37219       }
37220     }
37221   }
37222 
37223 fail:
37224   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'PathVector___setitem__'.\n"
37225     "  Possible C/C++ prototypes are:\n"
37226     "    std::vector< vrna_path_t >::__setitem__(PySliceObject *,std::vector< vrna_path_t,std::allocator< vrna_path_t > > const &)\n"
37227     "    std::vector< vrna_path_t >::__setitem__(PySliceObject *)\n"
37228     "    std::vector< vrna_path_t >::__setitem__(std::vector< vrna_path_t >::difference_type,std::vector< vrna_path_t >::value_type const &)\n");
37229   return 0;
37230 }
37231 
37232 
_wrap_PathVector_pop(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37233 SWIGINTERN PyObject *_wrap_PathVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37234   PyObject *resultobj = 0;
37235   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
37236   void *argp1 = 0 ;
37237   int res1 = 0 ;
37238   PyObject *swig_obj[1] ;
37239   SwigValueWrapper< vrna_path_t > result;
37240 
37241   if (!args) SWIG_fail;
37242   swig_obj[0] = args;
37243   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
37244   if (!SWIG_IsOK(res1)) {
37245     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_pop" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
37246   }
37247   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
37248   {
37249     try {
37250       try {
37251         result = std_vector_Sl_vrna_path_t_Sg__pop(arg1);
37252       } catch(std::out_of_range &_e) {
37253         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
37254       }
37255     } catch (const std::exception& e) {
37256       SWIG_exception(SWIG_RuntimeError, e.what());
37257     }
37258   }
37259   resultobj = SWIG_NewPointerObj((new std::vector< vrna_path_t >::value_type(static_cast< const std::vector< vrna_path_t >::value_type& >(result))), SWIGTYPE_p_vrna_path_t, SWIG_POINTER_OWN |  0 );
37260   return resultobj;
37261 fail:
37262   return NULL;
37263 }
37264 
37265 
_wrap_PathVector_append(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)37266 SWIGINTERN PyObject *_wrap_PathVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37267   PyObject *resultobj = 0;
37268   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
37269   std::vector< vrna_path_t >::value_type *arg2 = 0 ;
37270   void *argp1 = 0 ;
37271   int res1 = 0 ;
37272   void *argp2 = 0 ;
37273   int res2 = 0 ;
37274   PyObject * obj0 = 0 ;
37275   PyObject * obj1 = 0 ;
37276   char * kwnames[] = {
37277     (char *)"self",  (char *)"x",  NULL
37278   };
37279 
37280   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:PathVector_append", kwnames, &obj0, &obj1)) SWIG_fail;
37281   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
37282   if (!SWIG_IsOK(res1)) {
37283     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_append" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
37284   }
37285   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
37286   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_vrna_path_t,  0  | 0);
37287   if (!SWIG_IsOK(res2)) {
37288     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PathVector_append" "', argument " "2"" of type '" "std::vector< vrna_path_t >::value_type const &""'");
37289   }
37290   if (!argp2) {
37291     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PathVector_append" "', argument " "2"" of type '" "std::vector< vrna_path_t >::value_type const &""'");
37292   }
37293   arg2 = reinterpret_cast< std::vector< vrna_path_t >::value_type * >(argp2);
37294   {
37295     try {
37296       std_vector_Sl_vrna_path_t_Sg__append(arg1,(vrna_path_t const &)*arg2);
37297     } catch (const std::exception& e) {
37298       SWIG_exception(SWIG_RuntimeError, e.what());
37299     }
37300   }
37301   resultobj = SWIG_Py_Void();
37302   return resultobj;
37303 fail:
37304   return NULL;
37305 }
37306 
37307 
_wrap_new_PathVector__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))37308 SWIGINTERN PyObject *_wrap_new_PathVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
37309   PyObject *resultobj = 0;
37310   std::vector< vrna_path_t > *result = 0 ;
37311 
37312   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
37313   {
37314     try {
37315       result = (std::vector< vrna_path_t > *)new std::vector< vrna_path_t >();
37316     } catch (const std::exception& e) {
37317       SWIG_exception(SWIG_RuntimeError, e.what());
37318     }
37319   }
37320   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, SWIG_POINTER_NEW |  0 );
37321   return resultobj;
37322 fail:
37323   return NULL;
37324 }
37325 
37326 
_wrap_new_PathVector__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)37327 SWIGINTERN PyObject *_wrap_new_PathVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
37328   PyObject *resultobj = 0;
37329   std::vector< vrna_path_t > *arg1 = 0 ;
37330   int res1 = SWIG_OLDOBJ ;
37331   std::vector< vrna_path_t > *result = 0 ;
37332 
37333   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
37334   {
37335     std::vector< vrna_path_t,std::allocator< vrna_path_t > > *ptr = (std::vector< vrna_path_t,std::allocator< vrna_path_t > > *)0;
37336     res1 = swig::asptr(swig_obj[0], &ptr);
37337     if (!SWIG_IsOK(res1)) {
37338       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PathVector" "', argument " "1"" of type '" "std::vector< vrna_path_t > const &""'");
37339     }
37340     if (!ptr) {
37341       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PathVector" "', argument " "1"" of type '" "std::vector< vrna_path_t > const &""'");
37342     }
37343     arg1 = ptr;
37344   }
37345   {
37346     try {
37347       result = (std::vector< vrna_path_t > *)new std::vector< vrna_path_t >((std::vector< vrna_path_t > const &)*arg1);
37348     } catch (const std::exception& e) {
37349       SWIG_exception(SWIG_RuntimeError, e.what());
37350     }
37351   }
37352   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, SWIG_POINTER_NEW |  0 );
37353   if (SWIG_IsNewObj(res1)) delete arg1;
37354   return resultobj;
37355 fail:
37356   if (SWIG_IsNewObj(res1)) delete arg1;
37357   return NULL;
37358 }
37359 
37360 
_wrap_PathVector_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37361 SWIGINTERN PyObject *_wrap_PathVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37362   PyObject *resultobj = 0;
37363   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
37364   void *argp1 = 0 ;
37365   int res1 = 0 ;
37366   PyObject *swig_obj[1] ;
37367   bool result;
37368 
37369   if (!args) SWIG_fail;
37370   swig_obj[0] = args;
37371   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
37372   if (!SWIG_IsOK(res1)) {
37373     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_empty" "', argument " "1"" of type '" "std::vector< vrna_path_t > const *""'");
37374   }
37375   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
37376   {
37377     try {
37378       result = (bool)((std::vector< vrna_path_t > const *)arg1)->empty();
37379     } catch (const std::exception& e) {
37380       SWIG_exception(SWIG_RuntimeError, e.what());
37381     }
37382   }
37383   resultobj = SWIG_From_bool(static_cast< bool >(result));
37384   return resultobj;
37385 fail:
37386   return NULL;
37387 }
37388 
37389 
_wrap_PathVector_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37390 SWIGINTERN PyObject *_wrap_PathVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37391   PyObject *resultobj = 0;
37392   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
37393   void *argp1 = 0 ;
37394   int res1 = 0 ;
37395   PyObject *swig_obj[1] ;
37396   std::vector< vrna_path_t >::size_type result;
37397 
37398   if (!args) SWIG_fail;
37399   swig_obj[0] = args;
37400   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
37401   if (!SWIG_IsOK(res1)) {
37402     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_size" "', argument " "1"" of type '" "std::vector< vrna_path_t > const *""'");
37403   }
37404   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
37405   {
37406     try {
37407       result = ((std::vector< vrna_path_t > const *)arg1)->size();
37408     } catch (const std::exception& e) {
37409       SWIG_exception(SWIG_RuntimeError, e.what());
37410     }
37411   }
37412   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
37413   return resultobj;
37414 fail:
37415   return NULL;
37416 }
37417 
37418 
_wrap_PathVector_swap(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)37419 SWIGINTERN PyObject *_wrap_PathVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37420   PyObject *resultobj = 0;
37421   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
37422   std::vector< vrna_path_t > *arg2 = 0 ;
37423   void *argp1 = 0 ;
37424   int res1 = 0 ;
37425   void *argp2 = 0 ;
37426   int res2 = 0 ;
37427   PyObject * obj0 = 0 ;
37428   PyObject * obj1 = 0 ;
37429   char * kwnames[] = {
37430     (char *)"self",  (char *)"v",  NULL
37431   };
37432 
37433   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:PathVector_swap", kwnames, &obj0, &obj1)) SWIG_fail;
37434   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
37435   if (!SWIG_IsOK(res1)) {
37436     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_swap" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
37437   }
37438   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
37439   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t,  0 );
37440   if (!SWIG_IsOK(res2)) {
37441     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PathVector_swap" "', argument " "2"" of type '" "std::vector< vrna_path_t > &""'");
37442   }
37443   if (!argp2) {
37444     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PathVector_swap" "', argument " "2"" of type '" "std::vector< vrna_path_t > &""'");
37445   }
37446   arg2 = reinterpret_cast< std::vector< vrna_path_t > * >(argp2);
37447   {
37448     try {
37449       (arg1)->swap(*arg2);
37450     } catch (const std::exception& e) {
37451       SWIG_exception(SWIG_RuntimeError, e.what());
37452     }
37453   }
37454   resultobj = SWIG_Py_Void();
37455   return resultobj;
37456 fail:
37457   return NULL;
37458 }
37459 
37460 
_wrap_PathVector_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37461 SWIGINTERN PyObject *_wrap_PathVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37462   PyObject *resultobj = 0;
37463   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
37464   void *argp1 = 0 ;
37465   int res1 = 0 ;
37466   PyObject *swig_obj[1] ;
37467   std::vector< vrna_path_t >::iterator result;
37468 
37469   if (!args) SWIG_fail;
37470   swig_obj[0] = args;
37471   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
37472   if (!SWIG_IsOK(res1)) {
37473     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_begin" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
37474   }
37475   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
37476   {
37477     try {
37478       result = (arg1)->begin();
37479     } catch (const std::exception& e) {
37480       SWIG_exception(SWIG_RuntimeError, e.what());
37481     }
37482   }
37483   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_path_t >::iterator & >(result)),
37484     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
37485   return resultobj;
37486 fail:
37487   return NULL;
37488 }
37489 
37490 
_wrap_PathVector_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37491 SWIGINTERN PyObject *_wrap_PathVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37492   PyObject *resultobj = 0;
37493   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
37494   void *argp1 = 0 ;
37495   int res1 = 0 ;
37496   PyObject *swig_obj[1] ;
37497   std::vector< vrna_path_t >::iterator result;
37498 
37499   if (!args) SWIG_fail;
37500   swig_obj[0] = args;
37501   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
37502   if (!SWIG_IsOK(res1)) {
37503     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_end" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
37504   }
37505   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
37506   {
37507     try {
37508       result = (arg1)->end();
37509     } catch (const std::exception& e) {
37510       SWIG_exception(SWIG_RuntimeError, e.what());
37511     }
37512   }
37513   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_path_t >::iterator & >(result)),
37514     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
37515   return resultobj;
37516 fail:
37517   return NULL;
37518 }
37519 
37520 
_wrap_PathVector_rbegin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37521 SWIGINTERN PyObject *_wrap_PathVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37522   PyObject *resultobj = 0;
37523   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
37524   void *argp1 = 0 ;
37525   int res1 = 0 ;
37526   PyObject *swig_obj[1] ;
37527   std::vector< vrna_path_t >::reverse_iterator result;
37528 
37529   if (!args) SWIG_fail;
37530   swig_obj[0] = args;
37531   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
37532   if (!SWIG_IsOK(res1)) {
37533     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_rbegin" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
37534   }
37535   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
37536   {
37537     try {
37538       result = (arg1)->rbegin();
37539     } catch (const std::exception& e) {
37540       SWIG_exception(SWIG_RuntimeError, e.what());
37541     }
37542   }
37543   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_path_t >::reverse_iterator & >(result)),
37544     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
37545   return resultobj;
37546 fail:
37547   return NULL;
37548 }
37549 
37550 
_wrap_PathVector_rend(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37551 SWIGINTERN PyObject *_wrap_PathVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37552   PyObject *resultobj = 0;
37553   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
37554   void *argp1 = 0 ;
37555   int res1 = 0 ;
37556   PyObject *swig_obj[1] ;
37557   std::vector< vrna_path_t >::reverse_iterator result;
37558 
37559   if (!args) SWIG_fail;
37560   swig_obj[0] = args;
37561   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
37562   if (!SWIG_IsOK(res1)) {
37563     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_rend" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
37564   }
37565   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
37566   {
37567     try {
37568       result = (arg1)->rend();
37569     } catch (const std::exception& e) {
37570       SWIG_exception(SWIG_RuntimeError, e.what());
37571     }
37572   }
37573   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_path_t >::reverse_iterator & >(result)),
37574     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
37575   return resultobj;
37576 fail:
37577   return NULL;
37578 }
37579 
37580 
_wrap_PathVector_clear(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37581 SWIGINTERN PyObject *_wrap_PathVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37582   PyObject *resultobj = 0;
37583   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
37584   void *argp1 = 0 ;
37585   int res1 = 0 ;
37586   PyObject *swig_obj[1] ;
37587 
37588   if (!args) SWIG_fail;
37589   swig_obj[0] = args;
37590   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
37591   if (!SWIG_IsOK(res1)) {
37592     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_clear" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
37593   }
37594   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
37595   {
37596     try {
37597       (arg1)->clear();
37598     } catch (const std::exception& e) {
37599       SWIG_exception(SWIG_RuntimeError, e.what());
37600     }
37601   }
37602   resultobj = SWIG_Py_Void();
37603   return resultobj;
37604 fail:
37605   return NULL;
37606 }
37607 
37608 
_wrap_PathVector_get_allocator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37609 SWIGINTERN PyObject *_wrap_PathVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37610   PyObject *resultobj = 0;
37611   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
37612   void *argp1 = 0 ;
37613   int res1 = 0 ;
37614   PyObject *swig_obj[1] ;
37615   SwigValueWrapper< std::allocator< vrna_path_t > > result;
37616 
37617   if (!args) SWIG_fail;
37618   swig_obj[0] = args;
37619   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
37620   if (!SWIG_IsOK(res1)) {
37621     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_get_allocator" "', argument " "1"" of type '" "std::vector< vrna_path_t > const *""'");
37622   }
37623   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
37624   {
37625     try {
37626       result = ((std::vector< vrna_path_t > const *)arg1)->get_allocator();
37627     } catch (const std::exception& e) {
37628       SWIG_exception(SWIG_RuntimeError, e.what());
37629     }
37630   }
37631   resultobj = SWIG_NewPointerObj((new std::vector< vrna_path_t >::allocator_type(static_cast< const std::vector< vrna_path_t >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_vrna_path_t_t, SWIG_POINTER_OWN |  0 );
37632   return resultobj;
37633 fail:
37634   return NULL;
37635 }
37636 
37637 
_wrap_new_PathVector__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)37638 SWIGINTERN PyObject *_wrap_new_PathVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
37639   PyObject *resultobj = 0;
37640   std::vector< vrna_path_t >::size_type arg1 ;
37641   size_t val1 ;
37642   int ecode1 = 0 ;
37643   std::vector< vrna_path_t > *result = 0 ;
37644 
37645   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
37646   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
37647   if (!SWIG_IsOK(ecode1)) {
37648     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PathVector" "', argument " "1"" of type '" "std::vector< vrna_path_t >::size_type""'");
37649   }
37650   arg1 = static_cast< std::vector< vrna_path_t >::size_type >(val1);
37651   {
37652     try {
37653       result = (std::vector< vrna_path_t > *)new std::vector< vrna_path_t >(arg1);
37654     } catch (const std::exception& e) {
37655       SWIG_exception(SWIG_RuntimeError, e.what());
37656     }
37657   }
37658   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, SWIG_POINTER_NEW |  0 );
37659   return resultobj;
37660 fail:
37661   return NULL;
37662 }
37663 
37664 
_wrap_PathVector_pop_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37665 SWIGINTERN PyObject *_wrap_PathVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37666   PyObject *resultobj = 0;
37667   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
37668   void *argp1 = 0 ;
37669   int res1 = 0 ;
37670   PyObject *swig_obj[1] ;
37671 
37672   if (!args) SWIG_fail;
37673   swig_obj[0] = args;
37674   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
37675   if (!SWIG_IsOK(res1)) {
37676     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_pop_back" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
37677   }
37678   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
37679   {
37680     try {
37681       (arg1)->pop_back();
37682     } catch (const std::exception& e) {
37683       SWIG_exception(SWIG_RuntimeError, e.what());
37684     }
37685   }
37686   resultobj = SWIG_Py_Void();
37687   return resultobj;
37688 fail:
37689   return NULL;
37690 }
37691 
37692 
_wrap_PathVector_resize__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)37693 SWIGINTERN PyObject *_wrap_PathVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
37694   PyObject *resultobj = 0;
37695   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
37696   std::vector< vrna_path_t >::size_type arg2 ;
37697   void *argp1 = 0 ;
37698   int res1 = 0 ;
37699   size_t val2 ;
37700   int ecode2 = 0 ;
37701 
37702   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
37703   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
37704   if (!SWIG_IsOK(res1)) {
37705     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_resize" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
37706   }
37707   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
37708   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
37709   if (!SWIG_IsOK(ecode2)) {
37710     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PathVector_resize" "', argument " "2"" of type '" "std::vector< vrna_path_t >::size_type""'");
37711   }
37712   arg2 = static_cast< std::vector< vrna_path_t >::size_type >(val2);
37713   {
37714     try {
37715       (arg1)->resize(arg2);
37716     } catch (const std::exception& e) {
37717       SWIG_exception(SWIG_RuntimeError, e.what());
37718     }
37719   }
37720   resultobj = SWIG_Py_Void();
37721   return resultobj;
37722 fail:
37723   return NULL;
37724 }
37725 
37726 
_wrap_PathVector_erase__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)37727 SWIGINTERN PyObject *_wrap_PathVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
37728   PyObject *resultobj = 0;
37729   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
37730   std::vector< vrna_path_t >::iterator arg2 ;
37731   void *argp1 = 0 ;
37732   int res1 = 0 ;
37733   swig::SwigPyIterator *iter2 = 0 ;
37734   int res2 ;
37735   std::vector< vrna_path_t >::iterator result;
37736 
37737   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
37738   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
37739   if (!SWIG_IsOK(res1)) {
37740     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_erase" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
37741   }
37742   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
37743   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
37744   if (!SWIG_IsOK(res2) || !iter2) {
37745     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PathVector_erase" "', argument " "2"" of type '" "std::vector< vrna_path_t >::iterator""'");
37746   } else {
37747     swig::SwigPyIterator_T<std::vector< vrna_path_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_path_t >::iterator > *>(iter2);
37748     if (iter_t) {
37749       arg2 = iter_t->get_current();
37750     } else {
37751       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PathVector_erase" "', argument " "2"" of type '" "std::vector< vrna_path_t >::iterator""'");
37752     }
37753   }
37754   {
37755     try {
37756       result = std_vector_Sl_vrna_path_t_Sg__erase__SWIG_0(arg1,arg2);
37757     } catch (const std::exception& e) {
37758       SWIG_exception(SWIG_RuntimeError, e.what());
37759     }
37760   }
37761   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_path_t >::iterator & >(result)),
37762     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
37763   return resultobj;
37764 fail:
37765   return NULL;
37766 }
37767 
37768 
_wrap_PathVector_erase__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)37769 SWIGINTERN PyObject *_wrap_PathVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
37770   PyObject *resultobj = 0;
37771   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
37772   std::vector< vrna_path_t >::iterator arg2 ;
37773   std::vector< vrna_path_t >::iterator arg3 ;
37774   void *argp1 = 0 ;
37775   int res1 = 0 ;
37776   swig::SwigPyIterator *iter2 = 0 ;
37777   int res2 ;
37778   swig::SwigPyIterator *iter3 = 0 ;
37779   int res3 ;
37780   std::vector< vrna_path_t >::iterator result;
37781 
37782   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
37783   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
37784   if (!SWIG_IsOK(res1)) {
37785     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_erase" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
37786   }
37787   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
37788   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
37789   if (!SWIG_IsOK(res2) || !iter2) {
37790     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PathVector_erase" "', argument " "2"" of type '" "std::vector< vrna_path_t >::iterator""'");
37791   } else {
37792     swig::SwigPyIterator_T<std::vector< vrna_path_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_path_t >::iterator > *>(iter2);
37793     if (iter_t) {
37794       arg2 = iter_t->get_current();
37795     } else {
37796       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PathVector_erase" "', argument " "2"" of type '" "std::vector< vrna_path_t >::iterator""'");
37797     }
37798   }
37799   res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
37800   if (!SWIG_IsOK(res3) || !iter3) {
37801     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PathVector_erase" "', argument " "3"" of type '" "std::vector< vrna_path_t >::iterator""'");
37802   } else {
37803     swig::SwigPyIterator_T<std::vector< vrna_path_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_path_t >::iterator > *>(iter3);
37804     if (iter_t) {
37805       arg3 = iter_t->get_current();
37806     } else {
37807       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PathVector_erase" "', argument " "3"" of type '" "std::vector< vrna_path_t >::iterator""'");
37808     }
37809   }
37810   {
37811     try {
37812       result = std_vector_Sl_vrna_path_t_Sg__erase__SWIG_1(arg1,arg2,arg3);
37813     } catch (const std::exception& e) {
37814       SWIG_exception(SWIG_RuntimeError, e.what());
37815     }
37816   }
37817   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_path_t >::iterator & >(result)),
37818     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
37819   return resultobj;
37820 fail:
37821   return NULL;
37822 }
37823 
37824 
_wrap_PathVector_erase(PyObject * self,PyObject * args)37825 SWIGINTERN PyObject *_wrap_PathVector_erase(PyObject *self, PyObject *args) {
37826   Py_ssize_t argc;
37827   PyObject *argv[4] = {
37828     0
37829   };
37830 
37831   if (!(argc = SWIG_Python_UnpackTuple(args, "PathVector_erase", 0, 3, argv))) SWIG_fail;
37832   --argc;
37833   if (argc == 2) {
37834     int _v;
37835     int res = swig::asptr(argv[0], (std::vector< vrna_path_t,std::allocator< vrna_path_t > >**)(0));
37836     _v = SWIG_CheckState(res);
37837     if (_v) {
37838       swig::SwigPyIterator *iter = 0;
37839       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
37840       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_path_t >::iterator > *>(iter) != 0));
37841       if (_v) {
37842         return _wrap_PathVector_erase__SWIG_0(self, argc, argv);
37843       }
37844     }
37845   }
37846   if (argc == 3) {
37847     int _v;
37848     int res = swig::asptr(argv[0], (std::vector< vrna_path_t,std::allocator< vrna_path_t > >**)(0));
37849     _v = SWIG_CheckState(res);
37850     if (_v) {
37851       swig::SwigPyIterator *iter = 0;
37852       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
37853       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_path_t >::iterator > *>(iter) != 0));
37854       if (_v) {
37855         swig::SwigPyIterator *iter = 0;
37856         int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
37857         _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_path_t >::iterator > *>(iter) != 0));
37858         if (_v) {
37859           return _wrap_PathVector_erase__SWIG_1(self, argc, argv);
37860         }
37861       }
37862     }
37863   }
37864 
37865 fail:
37866   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'PathVector_erase'.\n"
37867     "  Possible C/C++ prototypes are:\n"
37868     "    std::vector< vrna_path_t >::erase(std::vector< vrna_path_t >::iterator)\n"
37869     "    std::vector< vrna_path_t >::erase(std::vector< vrna_path_t >::iterator,std::vector< vrna_path_t >::iterator)\n");
37870   return 0;
37871 }
37872 
37873 
_wrap_new_PathVector__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)37874 SWIGINTERN PyObject *_wrap_new_PathVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
37875   PyObject *resultobj = 0;
37876   std::vector< vrna_path_t >::size_type arg1 ;
37877   std::vector< vrna_path_t >::value_type *arg2 = 0 ;
37878   size_t val1 ;
37879   int ecode1 = 0 ;
37880   void *argp2 = 0 ;
37881   int res2 = 0 ;
37882   std::vector< vrna_path_t > *result = 0 ;
37883 
37884   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
37885   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
37886   if (!SWIG_IsOK(ecode1)) {
37887     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PathVector" "', argument " "1"" of type '" "std::vector< vrna_path_t >::size_type""'");
37888   }
37889   arg1 = static_cast< std::vector< vrna_path_t >::size_type >(val1);
37890   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_vrna_path_t,  0  | 0);
37891   if (!SWIG_IsOK(res2)) {
37892     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PathVector" "', argument " "2"" of type '" "std::vector< vrna_path_t >::value_type const &""'");
37893   }
37894   if (!argp2) {
37895     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PathVector" "', argument " "2"" of type '" "std::vector< vrna_path_t >::value_type const &""'");
37896   }
37897   arg2 = reinterpret_cast< std::vector< vrna_path_t >::value_type * >(argp2);
37898   {
37899     try {
37900       result = (std::vector< vrna_path_t > *)new std::vector< vrna_path_t >(arg1,(std::vector< vrna_path_t >::value_type const &)*arg2);
37901     } catch (const std::exception& e) {
37902       SWIG_exception(SWIG_RuntimeError, e.what());
37903     }
37904   }
37905   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, SWIG_POINTER_NEW |  0 );
37906   return resultobj;
37907 fail:
37908   return NULL;
37909 }
37910 
37911 
_wrap_new_PathVector(PyObject * self,PyObject * args)37912 SWIGINTERN PyObject *_wrap_new_PathVector(PyObject *self, PyObject *args) {
37913   Py_ssize_t argc;
37914   PyObject *argv[3] = {
37915     0
37916   };
37917 
37918   if (!(argc = SWIG_Python_UnpackTuple(args, "new_PathVector", 0, 2, argv))) SWIG_fail;
37919   --argc;
37920   if (argc == 0) {
37921     return _wrap_new_PathVector__SWIG_0(self, argc, argv);
37922   }
37923   if (argc == 1) {
37924     int _v;
37925     {
37926       int res = SWIG_AsVal_size_t(argv[0], NULL);
37927       _v = SWIG_CheckState(res);
37928     }
37929     if (_v) {
37930       return _wrap_new_PathVector__SWIG_2(self, argc, argv);
37931     }
37932   }
37933   if (argc == 1) {
37934     int _v;
37935     int res = swig::asptr(argv[0], (std::vector< vrna_path_t,std::allocator< vrna_path_t > >**)(0));
37936     _v = SWIG_CheckState(res);
37937     if (_v) {
37938       return _wrap_new_PathVector__SWIG_1(self, argc, argv);
37939     }
37940   }
37941   if (argc == 2) {
37942     int _v;
37943     {
37944       int res = SWIG_AsVal_size_t(argv[0], NULL);
37945       _v = SWIG_CheckState(res);
37946     }
37947     if (_v) {
37948       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_vrna_path_t, SWIG_POINTER_NO_NULL | 0);
37949       _v = SWIG_CheckState(res);
37950       if (_v) {
37951         return _wrap_new_PathVector__SWIG_3(self, argc, argv);
37952       }
37953     }
37954   }
37955 
37956 fail:
37957   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_PathVector'.\n"
37958     "  Possible C/C++ prototypes are:\n"
37959     "    std::vector< vrna_path_t >::vector()\n"
37960     "    std::vector< vrna_path_t >::vector(std::vector< vrna_path_t > const &)\n"
37961     "    std::vector< vrna_path_t >::vector(std::vector< vrna_path_t >::size_type)\n"
37962     "    std::vector< vrna_path_t >::vector(std::vector< vrna_path_t >::size_type,std::vector< vrna_path_t >::value_type const &)\n");
37963   return 0;
37964 }
37965 
37966 
_wrap_PathVector_push_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)37967 SWIGINTERN PyObject *_wrap_PathVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37968   PyObject *resultobj = 0;
37969   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
37970   std::vector< vrna_path_t >::value_type *arg2 = 0 ;
37971   void *argp1 = 0 ;
37972   int res1 = 0 ;
37973   void *argp2 = 0 ;
37974   int res2 = 0 ;
37975   PyObject * obj0 = 0 ;
37976   PyObject * obj1 = 0 ;
37977   char * kwnames[] = {
37978     (char *)"self",  (char *)"x",  NULL
37979   };
37980 
37981   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:PathVector_push_back", kwnames, &obj0, &obj1)) SWIG_fail;
37982   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
37983   if (!SWIG_IsOK(res1)) {
37984     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_push_back" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
37985   }
37986   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
37987   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_vrna_path_t,  0  | 0);
37988   if (!SWIG_IsOK(res2)) {
37989     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PathVector_push_back" "', argument " "2"" of type '" "std::vector< vrna_path_t >::value_type const &""'");
37990   }
37991   if (!argp2) {
37992     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PathVector_push_back" "', argument " "2"" of type '" "std::vector< vrna_path_t >::value_type const &""'");
37993   }
37994   arg2 = reinterpret_cast< std::vector< vrna_path_t >::value_type * >(argp2);
37995   {
37996     try {
37997       (arg1)->push_back((std::vector< vrna_path_t >::value_type const &)*arg2);
37998     } catch (const std::exception& e) {
37999       SWIG_exception(SWIG_RuntimeError, e.what());
38000     }
38001   }
38002   resultobj = SWIG_Py_Void();
38003   return resultobj;
38004 fail:
38005   return NULL;
38006 }
38007 
38008 
_wrap_PathVector_front(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38009 SWIGINTERN PyObject *_wrap_PathVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38010   PyObject *resultobj = 0;
38011   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
38012   void *argp1 = 0 ;
38013   int res1 = 0 ;
38014   PyObject *swig_obj[1] ;
38015   std::vector< vrna_path_t >::value_type *result = 0 ;
38016 
38017   if (!args) SWIG_fail;
38018   swig_obj[0] = args;
38019   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
38020   if (!SWIG_IsOK(res1)) {
38021     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_front" "', argument " "1"" of type '" "std::vector< vrna_path_t > const *""'");
38022   }
38023   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
38024   {
38025     try {
38026       result = (std::vector< vrna_path_t >::value_type *) &((std::vector< vrna_path_t > const *)arg1)->front();
38027     } catch (const std::exception& e) {
38028       SWIG_exception(SWIG_RuntimeError, e.what());
38029     }
38030   }
38031   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_path_t, 0 |  0 );
38032   (void)swig::container_owner<swig::traits<std::vector< vrna_path_t >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
38033   return resultobj;
38034 fail:
38035   return NULL;
38036 }
38037 
38038 
_wrap_PathVector_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38039 SWIGINTERN PyObject *_wrap_PathVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38040   PyObject *resultobj = 0;
38041   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
38042   void *argp1 = 0 ;
38043   int res1 = 0 ;
38044   PyObject *swig_obj[1] ;
38045   std::vector< vrna_path_t >::value_type *result = 0 ;
38046 
38047   if (!args) SWIG_fail;
38048   swig_obj[0] = args;
38049   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
38050   if (!SWIG_IsOK(res1)) {
38051     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_back" "', argument " "1"" of type '" "std::vector< vrna_path_t > const *""'");
38052   }
38053   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
38054   {
38055     try {
38056       result = (std::vector< vrna_path_t >::value_type *) &((std::vector< vrna_path_t > const *)arg1)->back();
38057     } catch (const std::exception& e) {
38058       SWIG_exception(SWIG_RuntimeError, e.what());
38059     }
38060   }
38061   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_path_t, 0 |  0 );
38062   (void)swig::container_owner<swig::traits<std::vector< vrna_path_t >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
38063   return resultobj;
38064 fail:
38065   return NULL;
38066 }
38067 
38068 
_wrap_PathVector_assign(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)38069 SWIGINTERN PyObject *_wrap_PathVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38070   PyObject *resultobj = 0;
38071   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
38072   std::vector< vrna_path_t >::size_type arg2 ;
38073   std::vector< vrna_path_t >::value_type *arg3 = 0 ;
38074   void *argp1 = 0 ;
38075   int res1 = 0 ;
38076   size_t val2 ;
38077   int ecode2 = 0 ;
38078   void *argp3 = 0 ;
38079   int res3 = 0 ;
38080   PyObject * obj0 = 0 ;
38081   PyObject * obj1 = 0 ;
38082   PyObject * obj2 = 0 ;
38083   char * kwnames[] = {
38084     (char *)"self",  (char *)"n",  (char *)"x",  NULL
38085   };
38086 
38087   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:PathVector_assign", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
38088   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
38089   if (!SWIG_IsOK(res1)) {
38090     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_assign" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
38091   }
38092   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
38093   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
38094   if (!SWIG_IsOK(ecode2)) {
38095     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PathVector_assign" "', argument " "2"" of type '" "std::vector< vrna_path_t >::size_type""'");
38096   }
38097   arg2 = static_cast< std::vector< vrna_path_t >::size_type >(val2);
38098   res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_vrna_path_t,  0  | 0);
38099   if (!SWIG_IsOK(res3)) {
38100     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PathVector_assign" "', argument " "3"" of type '" "std::vector< vrna_path_t >::value_type const &""'");
38101   }
38102   if (!argp3) {
38103     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PathVector_assign" "', argument " "3"" of type '" "std::vector< vrna_path_t >::value_type const &""'");
38104   }
38105   arg3 = reinterpret_cast< std::vector< vrna_path_t >::value_type * >(argp3);
38106   {
38107     try {
38108       (arg1)->assign(arg2,(std::vector< vrna_path_t >::value_type const &)*arg3);
38109     } catch (const std::exception& e) {
38110       SWIG_exception(SWIG_RuntimeError, e.what());
38111     }
38112   }
38113   resultobj = SWIG_Py_Void();
38114   return resultobj;
38115 fail:
38116   return NULL;
38117 }
38118 
38119 
_wrap_PathVector_resize__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)38120 SWIGINTERN PyObject *_wrap_PathVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
38121   PyObject *resultobj = 0;
38122   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
38123   std::vector< vrna_path_t >::size_type arg2 ;
38124   std::vector< vrna_path_t >::value_type *arg3 = 0 ;
38125   void *argp1 = 0 ;
38126   int res1 = 0 ;
38127   size_t val2 ;
38128   int ecode2 = 0 ;
38129   void *argp3 = 0 ;
38130   int res3 = 0 ;
38131 
38132   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
38133   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
38134   if (!SWIG_IsOK(res1)) {
38135     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_resize" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
38136   }
38137   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
38138   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
38139   if (!SWIG_IsOK(ecode2)) {
38140     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PathVector_resize" "', argument " "2"" of type '" "std::vector< vrna_path_t >::size_type""'");
38141   }
38142   arg2 = static_cast< std::vector< vrna_path_t >::size_type >(val2);
38143   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_vrna_path_t,  0  | 0);
38144   if (!SWIG_IsOK(res3)) {
38145     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PathVector_resize" "', argument " "3"" of type '" "std::vector< vrna_path_t >::value_type const &""'");
38146   }
38147   if (!argp3) {
38148     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PathVector_resize" "', argument " "3"" of type '" "std::vector< vrna_path_t >::value_type const &""'");
38149   }
38150   arg3 = reinterpret_cast< std::vector< vrna_path_t >::value_type * >(argp3);
38151   {
38152     try {
38153       (arg1)->resize(arg2,(std::vector< vrna_path_t >::value_type const &)*arg3);
38154     } catch (const std::exception& e) {
38155       SWIG_exception(SWIG_RuntimeError, e.what());
38156     }
38157   }
38158   resultobj = SWIG_Py_Void();
38159   return resultobj;
38160 fail:
38161   return NULL;
38162 }
38163 
38164 
_wrap_PathVector_resize(PyObject * self,PyObject * args)38165 SWIGINTERN PyObject *_wrap_PathVector_resize(PyObject *self, PyObject *args) {
38166   Py_ssize_t argc;
38167   PyObject *argv[4] = {
38168     0
38169   };
38170 
38171   if (!(argc = SWIG_Python_UnpackTuple(args, "PathVector_resize", 0, 3, argv))) SWIG_fail;
38172   --argc;
38173   if (argc == 2) {
38174     int _v;
38175     int res = swig::asptr(argv[0], (std::vector< vrna_path_t,std::allocator< vrna_path_t > >**)(0));
38176     _v = SWIG_CheckState(res);
38177     if (_v) {
38178       {
38179         int res = SWIG_AsVal_size_t(argv[1], NULL);
38180         _v = SWIG_CheckState(res);
38181       }
38182       if (_v) {
38183         return _wrap_PathVector_resize__SWIG_0(self, argc, argv);
38184       }
38185     }
38186   }
38187   if (argc == 3) {
38188     int _v;
38189     int res = swig::asptr(argv[0], (std::vector< vrna_path_t,std::allocator< vrna_path_t > >**)(0));
38190     _v = SWIG_CheckState(res);
38191     if (_v) {
38192       {
38193         int res = SWIG_AsVal_size_t(argv[1], NULL);
38194         _v = SWIG_CheckState(res);
38195       }
38196       if (_v) {
38197         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_vrna_path_t, SWIG_POINTER_NO_NULL | 0);
38198         _v = SWIG_CheckState(res);
38199         if (_v) {
38200           return _wrap_PathVector_resize__SWIG_1(self, argc, argv);
38201         }
38202       }
38203     }
38204   }
38205 
38206 fail:
38207   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'PathVector_resize'.\n"
38208     "  Possible C/C++ prototypes are:\n"
38209     "    std::vector< vrna_path_t >::resize(std::vector< vrna_path_t >::size_type)\n"
38210     "    std::vector< vrna_path_t >::resize(std::vector< vrna_path_t >::size_type,std::vector< vrna_path_t >::value_type const &)\n");
38211   return 0;
38212 }
38213 
38214 
_wrap_PathVector_insert__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)38215 SWIGINTERN PyObject *_wrap_PathVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
38216   PyObject *resultobj = 0;
38217   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
38218   std::vector< vrna_path_t >::iterator arg2 ;
38219   std::vector< vrna_path_t >::value_type *arg3 = 0 ;
38220   void *argp1 = 0 ;
38221   int res1 = 0 ;
38222   swig::SwigPyIterator *iter2 = 0 ;
38223   int res2 ;
38224   void *argp3 = 0 ;
38225   int res3 = 0 ;
38226   std::vector< vrna_path_t >::iterator result;
38227 
38228   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
38229   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
38230   if (!SWIG_IsOK(res1)) {
38231     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_insert" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
38232   }
38233   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
38234   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
38235   if (!SWIG_IsOK(res2) || !iter2) {
38236     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PathVector_insert" "', argument " "2"" of type '" "std::vector< vrna_path_t >::iterator""'");
38237   } else {
38238     swig::SwigPyIterator_T<std::vector< vrna_path_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_path_t >::iterator > *>(iter2);
38239     if (iter_t) {
38240       arg2 = iter_t->get_current();
38241     } else {
38242       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PathVector_insert" "', argument " "2"" of type '" "std::vector< vrna_path_t >::iterator""'");
38243     }
38244   }
38245   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_vrna_path_t,  0  | 0);
38246   if (!SWIG_IsOK(res3)) {
38247     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PathVector_insert" "', argument " "3"" of type '" "std::vector< vrna_path_t >::value_type const &""'");
38248   }
38249   if (!argp3) {
38250     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PathVector_insert" "', argument " "3"" of type '" "std::vector< vrna_path_t >::value_type const &""'");
38251   }
38252   arg3 = reinterpret_cast< std::vector< vrna_path_t >::value_type * >(argp3);
38253   {
38254     try {
38255       result = std_vector_Sl_vrna_path_t_Sg__insert__SWIG_0(arg1,arg2,(vrna_path_t const &)*arg3);
38256     } catch (const std::exception& e) {
38257       SWIG_exception(SWIG_RuntimeError, e.what());
38258     }
38259   }
38260   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_path_t >::iterator & >(result)),
38261     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
38262   return resultobj;
38263 fail:
38264   return NULL;
38265 }
38266 
38267 
_wrap_PathVector_insert__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)38268 SWIGINTERN PyObject *_wrap_PathVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
38269   PyObject *resultobj = 0;
38270   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
38271   std::vector< vrna_path_t >::iterator arg2 ;
38272   std::vector< vrna_path_t >::size_type arg3 ;
38273   std::vector< vrna_path_t >::value_type *arg4 = 0 ;
38274   void *argp1 = 0 ;
38275   int res1 = 0 ;
38276   swig::SwigPyIterator *iter2 = 0 ;
38277   int res2 ;
38278   size_t val3 ;
38279   int ecode3 = 0 ;
38280   void *argp4 = 0 ;
38281   int res4 = 0 ;
38282 
38283   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
38284   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
38285   if (!SWIG_IsOK(res1)) {
38286     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_insert" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
38287   }
38288   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
38289   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
38290   if (!SWIG_IsOK(res2) || !iter2) {
38291     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PathVector_insert" "', argument " "2"" of type '" "std::vector< vrna_path_t >::iterator""'");
38292   } else {
38293     swig::SwigPyIterator_T<std::vector< vrna_path_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_path_t >::iterator > *>(iter2);
38294     if (iter_t) {
38295       arg2 = iter_t->get_current();
38296     } else {
38297       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PathVector_insert" "', argument " "2"" of type '" "std::vector< vrna_path_t >::iterator""'");
38298     }
38299   }
38300   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
38301   if (!SWIG_IsOK(ecode3)) {
38302     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PathVector_insert" "', argument " "3"" of type '" "std::vector< vrna_path_t >::size_type""'");
38303   }
38304   arg3 = static_cast< std::vector< vrna_path_t >::size_type >(val3);
38305   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_vrna_path_t,  0  | 0);
38306   if (!SWIG_IsOK(res4)) {
38307     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "PathVector_insert" "', argument " "4"" of type '" "std::vector< vrna_path_t >::value_type const &""'");
38308   }
38309   if (!argp4) {
38310     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PathVector_insert" "', argument " "4"" of type '" "std::vector< vrna_path_t >::value_type const &""'");
38311   }
38312   arg4 = reinterpret_cast< std::vector< vrna_path_t >::value_type * >(argp4);
38313   {
38314     try {
38315       std_vector_Sl_vrna_path_t_Sg__insert__SWIG_1(arg1,arg2,arg3,(vrna_path_t const &)*arg4);
38316     } catch (const std::exception& e) {
38317       SWIG_exception(SWIG_RuntimeError, e.what());
38318     }
38319   }
38320   resultobj = SWIG_Py_Void();
38321   return resultobj;
38322 fail:
38323   return NULL;
38324 }
38325 
38326 
_wrap_PathVector_insert(PyObject * self,PyObject * args)38327 SWIGINTERN PyObject *_wrap_PathVector_insert(PyObject *self, PyObject *args) {
38328   Py_ssize_t argc;
38329   PyObject *argv[5] = {
38330     0
38331   };
38332 
38333   if (!(argc = SWIG_Python_UnpackTuple(args, "PathVector_insert", 0, 4, argv))) SWIG_fail;
38334   --argc;
38335   if (argc == 3) {
38336     int _v;
38337     int res = swig::asptr(argv[0], (std::vector< vrna_path_t,std::allocator< vrna_path_t > >**)(0));
38338     _v = SWIG_CheckState(res);
38339     if (_v) {
38340       swig::SwigPyIterator *iter = 0;
38341       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
38342       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_path_t >::iterator > *>(iter) != 0));
38343       if (_v) {
38344         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_vrna_path_t, SWIG_POINTER_NO_NULL | 0);
38345         _v = SWIG_CheckState(res);
38346         if (_v) {
38347           return _wrap_PathVector_insert__SWIG_0(self, argc, argv);
38348         }
38349       }
38350     }
38351   }
38352   if (argc == 4) {
38353     int _v;
38354     int res = swig::asptr(argv[0], (std::vector< vrna_path_t,std::allocator< vrna_path_t > >**)(0));
38355     _v = SWIG_CheckState(res);
38356     if (_v) {
38357       swig::SwigPyIterator *iter = 0;
38358       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
38359       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_path_t >::iterator > *>(iter) != 0));
38360       if (_v) {
38361         {
38362           int res = SWIG_AsVal_size_t(argv[2], NULL);
38363           _v = SWIG_CheckState(res);
38364         }
38365         if (_v) {
38366           int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_vrna_path_t, SWIG_POINTER_NO_NULL | 0);
38367           _v = SWIG_CheckState(res);
38368           if (_v) {
38369             return _wrap_PathVector_insert__SWIG_1(self, argc, argv);
38370           }
38371         }
38372       }
38373     }
38374   }
38375 
38376 fail:
38377   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'PathVector_insert'.\n"
38378     "  Possible C/C++ prototypes are:\n"
38379     "    std::vector< vrna_path_t >::insert(std::vector< vrna_path_t >::iterator,std::vector< vrna_path_t >::value_type const &)\n"
38380     "    std::vector< vrna_path_t >::insert(std::vector< vrna_path_t >::iterator,std::vector< vrna_path_t >::size_type,std::vector< vrna_path_t >::value_type const &)\n");
38381   return 0;
38382 }
38383 
38384 
_wrap_PathVector_reserve(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)38385 SWIGINTERN PyObject *_wrap_PathVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38386   PyObject *resultobj = 0;
38387   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
38388   std::vector< vrna_path_t >::size_type arg2 ;
38389   void *argp1 = 0 ;
38390   int res1 = 0 ;
38391   size_t val2 ;
38392   int ecode2 = 0 ;
38393   PyObject * obj0 = 0 ;
38394   PyObject * obj1 = 0 ;
38395   char * kwnames[] = {
38396     (char *)"self",  (char *)"n",  NULL
38397   };
38398 
38399   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:PathVector_reserve", kwnames, &obj0, &obj1)) SWIG_fail;
38400   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
38401   if (!SWIG_IsOK(res1)) {
38402     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_reserve" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
38403   }
38404   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
38405   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
38406   if (!SWIG_IsOK(ecode2)) {
38407     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PathVector_reserve" "', argument " "2"" of type '" "std::vector< vrna_path_t >::size_type""'");
38408   }
38409   arg2 = static_cast< std::vector< vrna_path_t >::size_type >(val2);
38410   {
38411     try {
38412       (arg1)->reserve(arg2);
38413     } catch (const std::exception& e) {
38414       SWIG_exception(SWIG_RuntimeError, e.what());
38415     }
38416   }
38417   resultobj = SWIG_Py_Void();
38418   return resultobj;
38419 fail:
38420   return NULL;
38421 }
38422 
38423 
_wrap_PathVector_capacity(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38424 SWIGINTERN PyObject *_wrap_PathVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38425   PyObject *resultobj = 0;
38426   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
38427   void *argp1 = 0 ;
38428   int res1 = 0 ;
38429   PyObject *swig_obj[1] ;
38430   std::vector< vrna_path_t >::size_type result;
38431 
38432   if (!args) SWIG_fail;
38433   swig_obj[0] = args;
38434   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0 |  0 );
38435   if (!SWIG_IsOK(res1)) {
38436     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PathVector_capacity" "', argument " "1"" of type '" "std::vector< vrna_path_t > const *""'");
38437   }
38438   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
38439   {
38440     try {
38441       result = ((std::vector< vrna_path_t > const *)arg1)->capacity();
38442     } catch (const std::exception& e) {
38443       SWIG_exception(SWIG_RuntimeError, e.what());
38444     }
38445   }
38446   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
38447   return resultobj;
38448 fail:
38449   return NULL;
38450 }
38451 
38452 
_wrap_delete_PathVector(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38453 SWIGINTERN PyObject *_wrap_delete_PathVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38454   PyObject *resultobj = 0;
38455   std::vector< vrna_path_t > *arg1 = (std::vector< vrna_path_t > *) 0 ;
38456   void *argp1 = 0 ;
38457   int res1 = 0 ;
38458   PyObject *swig_obj[1] ;
38459 
38460   if (!args) SWIG_fail;
38461   swig_obj[0] = args;
38462   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, SWIG_POINTER_DISOWN |  0 );
38463   if (!SWIG_IsOK(res1)) {
38464     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PathVector" "', argument " "1"" of type '" "std::vector< vrna_path_t > *""'");
38465   }
38466   arg1 = reinterpret_cast< std::vector< vrna_path_t > * >(argp1);
38467   {
38468     try {
38469       delete arg1;
38470     } catch (const std::exception& e) {
38471       SWIG_exception(SWIG_RuntimeError, e.what());
38472     }
38473   }
38474   resultobj = SWIG_Py_Void();
38475   return resultobj;
38476 fail:
38477   return NULL;
38478 }
38479 
38480 
PathVector_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38481 SWIGINTERN PyObject *PathVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38482   PyObject *obj;
38483   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
38484   SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, SWIG_NewClientData(obj));
38485   return SWIG_Py_Void();
38486 }
38487 
PathVector_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38488 SWIGINTERN PyObject *PathVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38489   return SWIG_Python_InitShadowInstance(args);
38490 }
38491 
_wrap_MoveVector_iterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38492 SWIGINTERN PyObject *_wrap_MoveVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38493   PyObject *resultobj = 0;
38494   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
38495   PyObject **arg2 = (PyObject **) 0 ;
38496   void *argp1 = 0 ;
38497   int res1 = 0 ;
38498   PyObject *swig_obj[1] ;
38499   swig::SwigPyIterator *result = 0 ;
38500 
38501   arg2 = &swig_obj[0];
38502   if (!args) SWIG_fail;
38503   swig_obj[0] = args;
38504   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
38505   if (!SWIG_IsOK(res1)) {
38506     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_iterator" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
38507   }
38508   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
38509   {
38510     try {
38511       result = (swig::SwigPyIterator *)std_vector_Sl_vrna_move_t_Sg__iterator(arg1,arg2);
38512     } catch (const std::exception& e) {
38513       SWIG_exception(SWIG_RuntimeError, e.what());
38514     }
38515   }
38516   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
38517   return resultobj;
38518 fail:
38519   return NULL;
38520 }
38521 
38522 
_wrap_MoveVector___nonzero__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38523 SWIGINTERN PyObject *_wrap_MoveVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38524   PyObject *resultobj = 0;
38525   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
38526   void *argp1 = 0 ;
38527   int res1 = 0 ;
38528   PyObject *swig_obj[1] ;
38529   bool result;
38530 
38531   if (!args) SWIG_fail;
38532   swig_obj[0] = args;
38533   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
38534   if (!SWIG_IsOK(res1)) {
38535     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector___nonzero__" "', argument " "1"" of type '" "std::vector< vrna_move_t > const *""'");
38536   }
38537   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
38538   {
38539     try {
38540       result = (bool)std_vector_Sl_vrna_move_t_Sg____nonzero__((std::vector< vrna_move_t > const *)arg1);
38541     } catch (const std::exception& e) {
38542       SWIG_exception(SWIG_RuntimeError, e.what());
38543     }
38544   }
38545   resultobj = SWIG_From_bool(static_cast< bool >(result));
38546   return resultobj;
38547 fail:
38548   return NULL;
38549 }
38550 
38551 
_wrap_MoveVector___bool__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38552 SWIGINTERN PyObject *_wrap_MoveVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38553   PyObject *resultobj = 0;
38554   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
38555   void *argp1 = 0 ;
38556   int res1 = 0 ;
38557   PyObject *swig_obj[1] ;
38558   bool result;
38559 
38560   if (!args) SWIG_fail;
38561   swig_obj[0] = args;
38562   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
38563   if (!SWIG_IsOK(res1)) {
38564     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector___bool__" "', argument " "1"" of type '" "std::vector< vrna_move_t > const *""'");
38565   }
38566   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
38567   {
38568     try {
38569       result = (bool)std_vector_Sl_vrna_move_t_Sg____bool__((std::vector< vrna_move_t > const *)arg1);
38570     } catch (const std::exception& e) {
38571       SWIG_exception(SWIG_RuntimeError, e.what());
38572     }
38573   }
38574   resultobj = SWIG_From_bool(static_cast< bool >(result));
38575   return resultobj;
38576 fail:
38577   return NULL;
38578 }
38579 
38580 
_wrap_MoveVector___len__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38581 SWIGINTERN PyObject *_wrap_MoveVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38582   PyObject *resultobj = 0;
38583   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
38584   void *argp1 = 0 ;
38585   int res1 = 0 ;
38586   PyObject *swig_obj[1] ;
38587   std::vector< vrna_move_t >::size_type result;
38588 
38589   if (!args) SWIG_fail;
38590   swig_obj[0] = args;
38591   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
38592   if (!SWIG_IsOK(res1)) {
38593     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector___len__" "', argument " "1"" of type '" "std::vector< vrna_move_t > const *""'");
38594   }
38595   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
38596   {
38597     try {
38598       result = std_vector_Sl_vrna_move_t_Sg____len__((std::vector< vrna_move_t > const *)arg1);
38599     } catch (const std::exception& e) {
38600       SWIG_exception(SWIG_RuntimeError, e.what());
38601     }
38602   }
38603   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
38604   return resultobj;
38605 fail:
38606   return NULL;
38607 }
38608 
38609 
_wrap_MoveVector___getslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)38610 SWIGINTERN PyObject *_wrap_MoveVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38611   PyObject *resultobj = 0;
38612   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
38613   std::vector< vrna_move_t >::difference_type arg2 ;
38614   std::vector< vrna_move_t >::difference_type arg3 ;
38615   void *argp1 = 0 ;
38616   int res1 = 0 ;
38617   ptrdiff_t val2 ;
38618   int ecode2 = 0 ;
38619   ptrdiff_t val3 ;
38620   int ecode3 = 0 ;
38621   PyObject * obj0 = 0 ;
38622   PyObject * obj1 = 0 ;
38623   PyObject * obj2 = 0 ;
38624   char * kwnames[] = {
38625     (char *)"self",  (char *)"i",  (char *)"j",  NULL
38626   };
38627   std::vector< vrna_move_t,std::allocator< vrna_move_t > > *result = 0 ;
38628 
38629   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:MoveVector___getslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
38630   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
38631   if (!SWIG_IsOK(res1)) {
38632     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector___getslice__" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
38633   }
38634   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
38635   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
38636   if (!SWIG_IsOK(ecode2)) {
38637     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MoveVector___getslice__" "', argument " "2"" of type '" "std::vector< vrna_move_t >::difference_type""'");
38638   }
38639   arg2 = static_cast< std::vector< vrna_move_t >::difference_type >(val2);
38640   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
38641   if (!SWIG_IsOK(ecode3)) {
38642     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MoveVector___getslice__" "', argument " "3"" of type '" "std::vector< vrna_move_t >::difference_type""'");
38643   }
38644   arg3 = static_cast< std::vector< vrna_move_t >::difference_type >(val3);
38645   {
38646     try {
38647       try {
38648         result = (std::vector< vrna_move_t,std::allocator< vrna_move_t > > *)std_vector_Sl_vrna_move_t_Sg____getslice__(arg1,arg2,arg3);
38649       } catch(std::out_of_range &_e) {
38650         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
38651       } catch(std::invalid_argument &_e) {
38652         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
38653       }
38654     } catch (const std::exception& e) {
38655       SWIG_exception(SWIG_RuntimeError, e.what());
38656     }
38657   }
38658   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, SWIG_POINTER_OWN |  0 );
38659   return resultobj;
38660 fail:
38661   return NULL;
38662 }
38663 
38664 
_wrap_MoveVector___setslice____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)38665 SWIGINTERN PyObject *_wrap_MoveVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
38666   PyObject *resultobj = 0;
38667   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
38668   std::vector< vrna_move_t >::difference_type arg2 ;
38669   std::vector< vrna_move_t >::difference_type arg3 ;
38670   void *argp1 = 0 ;
38671   int res1 = 0 ;
38672   ptrdiff_t val2 ;
38673   int ecode2 = 0 ;
38674   ptrdiff_t val3 ;
38675   int ecode3 = 0 ;
38676 
38677   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
38678   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
38679   if (!SWIG_IsOK(res1)) {
38680     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector___setslice__" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
38681   }
38682   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
38683   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
38684   if (!SWIG_IsOK(ecode2)) {
38685     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MoveVector___setslice__" "', argument " "2"" of type '" "std::vector< vrna_move_t >::difference_type""'");
38686   }
38687   arg2 = static_cast< std::vector< vrna_move_t >::difference_type >(val2);
38688   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
38689   if (!SWIG_IsOK(ecode3)) {
38690     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MoveVector___setslice__" "', argument " "3"" of type '" "std::vector< vrna_move_t >::difference_type""'");
38691   }
38692   arg3 = static_cast< std::vector< vrna_move_t >::difference_type >(val3);
38693   {
38694     try {
38695       try {
38696         std_vector_Sl_vrna_move_t_Sg____setslice____SWIG_0(arg1,arg2,arg3);
38697       } catch(std::out_of_range &_e) {
38698         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
38699       } catch(std::invalid_argument &_e) {
38700         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
38701       }
38702     } catch (const std::exception& e) {
38703       SWIG_exception(SWIG_RuntimeError, e.what());
38704     }
38705   }
38706   resultobj = SWIG_Py_Void();
38707   return resultobj;
38708 fail:
38709   return NULL;
38710 }
38711 
38712 
_wrap_MoveVector___setslice____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)38713 SWIGINTERN PyObject *_wrap_MoveVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
38714   PyObject *resultobj = 0;
38715   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
38716   std::vector< vrna_move_t >::difference_type arg2 ;
38717   std::vector< vrna_move_t >::difference_type arg3 ;
38718   std::vector< vrna_move_t,std::allocator< vrna_move_t > > *arg4 = 0 ;
38719   void *argp1 = 0 ;
38720   int res1 = 0 ;
38721   ptrdiff_t val2 ;
38722   int ecode2 = 0 ;
38723   ptrdiff_t val3 ;
38724   int ecode3 = 0 ;
38725   int res4 = SWIG_OLDOBJ ;
38726 
38727   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
38728   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
38729   if (!SWIG_IsOK(res1)) {
38730     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector___setslice__" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
38731   }
38732   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
38733   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
38734   if (!SWIG_IsOK(ecode2)) {
38735     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MoveVector___setslice__" "', argument " "2"" of type '" "std::vector< vrna_move_t >::difference_type""'");
38736   }
38737   arg2 = static_cast< std::vector< vrna_move_t >::difference_type >(val2);
38738   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
38739   if (!SWIG_IsOK(ecode3)) {
38740     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MoveVector___setslice__" "', argument " "3"" of type '" "std::vector< vrna_move_t >::difference_type""'");
38741   }
38742   arg3 = static_cast< std::vector< vrna_move_t >::difference_type >(val3);
38743   {
38744     std::vector< vrna_move_t,std::allocator< vrna_move_t > > *ptr = (std::vector< vrna_move_t,std::allocator< vrna_move_t > > *)0;
38745     res4 = swig::asptr(swig_obj[3], &ptr);
38746     if (!SWIG_IsOK(res4)) {
38747       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MoveVector___setslice__" "', argument " "4"" of type '" "std::vector< vrna_move_t,std::allocator< vrna_move_t > > const &""'");
38748     }
38749     if (!ptr) {
38750       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MoveVector___setslice__" "', argument " "4"" of type '" "std::vector< vrna_move_t,std::allocator< vrna_move_t > > const &""'");
38751     }
38752     arg4 = ptr;
38753   }
38754   {
38755     try {
38756       try {
38757         std_vector_Sl_vrna_move_t_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< vrna_move_t,std::allocator< vrna_move_t > > const &)*arg4);
38758       } catch(std::out_of_range &_e) {
38759         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
38760       } catch(std::invalid_argument &_e) {
38761         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
38762       }
38763     } catch (const std::exception& e) {
38764       SWIG_exception(SWIG_RuntimeError, e.what());
38765     }
38766   }
38767   resultobj = SWIG_Py_Void();
38768   if (SWIG_IsNewObj(res4)) delete arg4;
38769   return resultobj;
38770 fail:
38771   if (SWIG_IsNewObj(res4)) delete arg4;
38772   return NULL;
38773 }
38774 
38775 
_wrap_MoveVector___setslice__(PyObject * self,PyObject * args)38776 SWIGINTERN PyObject *_wrap_MoveVector___setslice__(PyObject *self, PyObject *args) {
38777   Py_ssize_t argc;
38778   PyObject *argv[5] = {
38779     0
38780   };
38781 
38782   if (!(argc = SWIG_Python_UnpackTuple(args, "MoveVector___setslice__", 0, 4, argv))) SWIG_fail;
38783   --argc;
38784   if (argc == 3) {
38785     int _v;
38786     int res = swig::asptr(argv[0], (std::vector< vrna_move_t,std::allocator< vrna_move_t > >**)(0));
38787     _v = SWIG_CheckState(res);
38788     if (_v) {
38789       {
38790         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
38791         _v = SWIG_CheckState(res);
38792       }
38793       if (_v) {
38794         {
38795           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
38796           _v = SWIG_CheckState(res);
38797         }
38798         if (_v) {
38799           return _wrap_MoveVector___setslice____SWIG_0(self, argc, argv);
38800         }
38801       }
38802     }
38803   }
38804   if (argc == 4) {
38805     int _v;
38806     int res = swig::asptr(argv[0], (std::vector< vrna_move_t,std::allocator< vrna_move_t > >**)(0));
38807     _v = SWIG_CheckState(res);
38808     if (_v) {
38809       {
38810         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
38811         _v = SWIG_CheckState(res);
38812       }
38813       if (_v) {
38814         {
38815           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
38816           _v = SWIG_CheckState(res);
38817         }
38818         if (_v) {
38819           int res = swig::asptr(argv[3], (std::vector< vrna_move_t,std::allocator< vrna_move_t > >**)(0));
38820           _v = SWIG_CheckState(res);
38821           if (_v) {
38822             return _wrap_MoveVector___setslice____SWIG_1(self, argc, argv);
38823           }
38824         }
38825       }
38826     }
38827   }
38828 
38829 fail:
38830   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MoveVector___setslice__'.\n"
38831     "  Possible C/C++ prototypes are:\n"
38832     "    std::vector< vrna_move_t >::__setslice__(std::vector< vrna_move_t >::difference_type,std::vector< vrna_move_t >::difference_type)\n"
38833     "    std::vector< vrna_move_t >::__setslice__(std::vector< vrna_move_t >::difference_type,std::vector< vrna_move_t >::difference_type,std::vector< vrna_move_t,std::allocator< vrna_move_t > > const &)\n");
38834   return 0;
38835 }
38836 
38837 
_wrap_MoveVector___delslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)38838 SWIGINTERN PyObject *_wrap_MoveVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38839   PyObject *resultobj = 0;
38840   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
38841   std::vector< vrna_move_t >::difference_type arg2 ;
38842   std::vector< vrna_move_t >::difference_type arg3 ;
38843   void *argp1 = 0 ;
38844   int res1 = 0 ;
38845   ptrdiff_t val2 ;
38846   int ecode2 = 0 ;
38847   ptrdiff_t val3 ;
38848   int ecode3 = 0 ;
38849   PyObject * obj0 = 0 ;
38850   PyObject * obj1 = 0 ;
38851   PyObject * obj2 = 0 ;
38852   char * kwnames[] = {
38853     (char *)"self",  (char *)"i",  (char *)"j",  NULL
38854   };
38855 
38856   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:MoveVector___delslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
38857   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
38858   if (!SWIG_IsOK(res1)) {
38859     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector___delslice__" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
38860   }
38861   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
38862   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
38863   if (!SWIG_IsOK(ecode2)) {
38864     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MoveVector___delslice__" "', argument " "2"" of type '" "std::vector< vrna_move_t >::difference_type""'");
38865   }
38866   arg2 = static_cast< std::vector< vrna_move_t >::difference_type >(val2);
38867   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
38868   if (!SWIG_IsOK(ecode3)) {
38869     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MoveVector___delslice__" "', argument " "3"" of type '" "std::vector< vrna_move_t >::difference_type""'");
38870   }
38871   arg3 = static_cast< std::vector< vrna_move_t >::difference_type >(val3);
38872   {
38873     try {
38874       try {
38875         std_vector_Sl_vrna_move_t_Sg____delslice__(arg1,arg2,arg3);
38876       } catch(std::out_of_range &_e) {
38877         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
38878       } catch(std::invalid_argument &_e) {
38879         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
38880       }
38881     } catch (const std::exception& e) {
38882       SWIG_exception(SWIG_RuntimeError, e.what());
38883     }
38884   }
38885   resultobj = SWIG_Py_Void();
38886   return resultobj;
38887 fail:
38888   return NULL;
38889 }
38890 
38891 
_wrap_MoveVector___delitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)38892 SWIGINTERN PyObject *_wrap_MoveVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
38893   PyObject *resultobj = 0;
38894   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
38895   std::vector< vrna_move_t >::difference_type arg2 ;
38896   void *argp1 = 0 ;
38897   int res1 = 0 ;
38898   ptrdiff_t val2 ;
38899   int ecode2 = 0 ;
38900 
38901   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
38902   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
38903   if (!SWIG_IsOK(res1)) {
38904     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector___delitem__" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
38905   }
38906   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
38907   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
38908   if (!SWIG_IsOK(ecode2)) {
38909     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MoveVector___delitem__" "', argument " "2"" of type '" "std::vector< vrna_move_t >::difference_type""'");
38910   }
38911   arg2 = static_cast< std::vector< vrna_move_t >::difference_type >(val2);
38912   {
38913     try {
38914       try {
38915         std_vector_Sl_vrna_move_t_Sg____delitem____SWIG_0(arg1,arg2);
38916       } catch(std::out_of_range &_e) {
38917         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
38918       } catch(std::invalid_argument &_e) {
38919         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
38920       }
38921     } catch (const std::exception& e) {
38922       SWIG_exception(SWIG_RuntimeError, e.what());
38923     }
38924   }
38925   resultobj = SWIG_Py_Void();
38926   return resultobj;
38927 fail:
38928   return NULL;
38929 }
38930 
38931 
_wrap_MoveVector___getitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)38932 SWIGINTERN PyObject *_wrap_MoveVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
38933   PyObject *resultobj = 0;
38934   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
38935   PySliceObject *arg2 = (PySliceObject *) 0 ;
38936   void *argp1 = 0 ;
38937   int res1 = 0 ;
38938   std::vector< vrna_move_t,std::allocator< vrna_move_t > > *result = 0 ;
38939 
38940   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
38941   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
38942   if (!SWIG_IsOK(res1)) {
38943     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector___getitem__" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
38944   }
38945   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
38946   {
38947     if (!PySlice_Check(swig_obj[1])) {
38948       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MoveVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
38949     }
38950     arg2 = (PySliceObject *) swig_obj[1];
38951   }
38952   {
38953     try {
38954       try {
38955         result = (std::vector< vrna_move_t,std::allocator< vrna_move_t > > *)std_vector_Sl_vrna_move_t_Sg____getitem____SWIG_0(arg1,arg2);
38956       } catch(std::out_of_range &_e) {
38957         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
38958       } catch(std::invalid_argument &_e) {
38959         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
38960       }
38961     } catch (const std::exception& e) {
38962       SWIG_exception(SWIG_RuntimeError, e.what());
38963     }
38964   }
38965   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, SWIG_POINTER_OWN |  0 );
38966   return resultobj;
38967 fail:
38968   return NULL;
38969 }
38970 
38971 
_wrap_MoveVector___setitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)38972 SWIGINTERN PyObject *_wrap_MoveVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
38973   PyObject *resultobj = 0;
38974   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
38975   PySliceObject *arg2 = (PySliceObject *) 0 ;
38976   std::vector< vrna_move_t,std::allocator< vrna_move_t > > *arg3 = 0 ;
38977   void *argp1 = 0 ;
38978   int res1 = 0 ;
38979   int res3 = SWIG_OLDOBJ ;
38980 
38981   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
38982   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
38983   if (!SWIG_IsOK(res1)) {
38984     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector___setitem__" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
38985   }
38986   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
38987   {
38988     if (!PySlice_Check(swig_obj[1])) {
38989       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MoveVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
38990     }
38991     arg2 = (PySliceObject *) swig_obj[1];
38992   }
38993   {
38994     std::vector< vrna_move_t,std::allocator< vrna_move_t > > *ptr = (std::vector< vrna_move_t,std::allocator< vrna_move_t > > *)0;
38995     res3 = swig::asptr(swig_obj[2], &ptr);
38996     if (!SWIG_IsOK(res3)) {
38997       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MoveVector___setitem__" "', argument " "3"" of type '" "std::vector< vrna_move_t,std::allocator< vrna_move_t > > const &""'");
38998     }
38999     if (!ptr) {
39000       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MoveVector___setitem__" "', argument " "3"" of type '" "std::vector< vrna_move_t,std::allocator< vrna_move_t > > const &""'");
39001     }
39002     arg3 = ptr;
39003   }
39004   {
39005     try {
39006       try {
39007         std_vector_Sl_vrna_move_t_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< vrna_move_t,std::allocator< vrna_move_t > > const &)*arg3);
39008       } catch(std::out_of_range &_e) {
39009         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
39010       } catch(std::invalid_argument &_e) {
39011         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
39012       }
39013     } catch (const std::exception& e) {
39014       SWIG_exception(SWIG_RuntimeError, e.what());
39015     }
39016   }
39017   resultobj = SWIG_Py_Void();
39018   if (SWIG_IsNewObj(res3)) delete arg3;
39019   return resultobj;
39020 fail:
39021   if (SWIG_IsNewObj(res3)) delete arg3;
39022   return NULL;
39023 }
39024 
39025 
_wrap_MoveVector___setitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)39026 SWIGINTERN PyObject *_wrap_MoveVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
39027   PyObject *resultobj = 0;
39028   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
39029   PySliceObject *arg2 = (PySliceObject *) 0 ;
39030   void *argp1 = 0 ;
39031   int res1 = 0 ;
39032 
39033   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
39034   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
39035   if (!SWIG_IsOK(res1)) {
39036     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector___setitem__" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
39037   }
39038   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
39039   {
39040     if (!PySlice_Check(swig_obj[1])) {
39041       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MoveVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
39042     }
39043     arg2 = (PySliceObject *) swig_obj[1];
39044   }
39045   {
39046     try {
39047       try {
39048         std_vector_Sl_vrna_move_t_Sg____setitem____SWIG_1(arg1,arg2);
39049       } catch(std::out_of_range &_e) {
39050         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
39051       } catch(std::invalid_argument &_e) {
39052         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
39053       }
39054     } catch (const std::exception& e) {
39055       SWIG_exception(SWIG_RuntimeError, e.what());
39056     }
39057   }
39058   resultobj = SWIG_Py_Void();
39059   return resultobj;
39060 fail:
39061   return NULL;
39062 }
39063 
39064 
_wrap_MoveVector___delitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)39065 SWIGINTERN PyObject *_wrap_MoveVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
39066   PyObject *resultobj = 0;
39067   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
39068   PySliceObject *arg2 = (PySliceObject *) 0 ;
39069   void *argp1 = 0 ;
39070   int res1 = 0 ;
39071 
39072   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
39073   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
39074   if (!SWIG_IsOK(res1)) {
39075     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector___delitem__" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
39076   }
39077   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
39078   {
39079     if (!PySlice_Check(swig_obj[1])) {
39080       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MoveVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
39081     }
39082     arg2 = (PySliceObject *) swig_obj[1];
39083   }
39084   {
39085     try {
39086       try {
39087         std_vector_Sl_vrna_move_t_Sg____delitem____SWIG_1(arg1,arg2);
39088       } catch(std::out_of_range &_e) {
39089         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
39090       } catch(std::invalid_argument &_e) {
39091         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
39092       }
39093     } catch (const std::exception& e) {
39094       SWIG_exception(SWIG_RuntimeError, e.what());
39095     }
39096   }
39097   resultobj = SWIG_Py_Void();
39098   return resultobj;
39099 fail:
39100   return NULL;
39101 }
39102 
39103 
_wrap_MoveVector___delitem__(PyObject * self,PyObject * args)39104 SWIGINTERN PyObject *_wrap_MoveVector___delitem__(PyObject *self, PyObject *args) {
39105   Py_ssize_t argc;
39106   PyObject *argv[3] = {
39107     0
39108   };
39109 
39110   if (!(argc = SWIG_Python_UnpackTuple(args, "MoveVector___delitem__", 0, 2, argv))) SWIG_fail;
39111   --argc;
39112   if (argc == 2) {
39113     int _v;
39114     int res = swig::asptr(argv[0], (std::vector< vrna_move_t,std::allocator< vrna_move_t > >**)(0));
39115     _v = SWIG_CheckState(res);
39116     if (_v) {
39117       {
39118         _v = PySlice_Check(argv[1]);
39119       }
39120       if (_v) {
39121         return _wrap_MoveVector___delitem____SWIG_1(self, argc, argv);
39122       }
39123     }
39124   }
39125   if (argc == 2) {
39126     int _v;
39127     int res = swig::asptr(argv[0], (std::vector< vrna_move_t,std::allocator< vrna_move_t > >**)(0));
39128     _v = SWIG_CheckState(res);
39129     if (_v) {
39130       {
39131         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
39132         _v = SWIG_CheckState(res);
39133       }
39134       if (_v) {
39135         return _wrap_MoveVector___delitem____SWIG_0(self, argc, argv);
39136       }
39137     }
39138   }
39139 
39140 fail:
39141   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MoveVector___delitem__'.\n"
39142     "  Possible C/C++ prototypes are:\n"
39143     "    std::vector< vrna_move_t >::__delitem__(std::vector< vrna_move_t >::difference_type)\n"
39144     "    std::vector< vrna_move_t >::__delitem__(PySliceObject *)\n");
39145   return 0;
39146 }
39147 
39148 
_wrap_MoveVector___getitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)39149 SWIGINTERN PyObject *_wrap_MoveVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
39150   PyObject *resultobj = 0;
39151   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
39152   std::vector< vrna_move_t >::difference_type arg2 ;
39153   void *argp1 = 0 ;
39154   int res1 = 0 ;
39155   ptrdiff_t val2 ;
39156   int ecode2 = 0 ;
39157   std::vector< vrna_move_t >::value_type *result = 0 ;
39158 
39159   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
39160   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
39161   if (!SWIG_IsOK(res1)) {
39162     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector___getitem__" "', argument " "1"" of type '" "std::vector< vrna_move_t > const *""'");
39163   }
39164   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
39165   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
39166   if (!SWIG_IsOK(ecode2)) {
39167     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MoveVector___getitem__" "', argument " "2"" of type '" "std::vector< vrna_move_t >::difference_type""'");
39168   }
39169   arg2 = static_cast< std::vector< vrna_move_t >::difference_type >(val2);
39170   {
39171     try {
39172       try {
39173         result = (std::vector< vrna_move_t >::value_type *) &std_vector_Sl_vrna_move_t_Sg____getitem____SWIG_1((std::vector< vrna_move_t > const *)arg1,arg2);
39174       } catch(std::out_of_range &_e) {
39175         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
39176       }
39177     } catch (const std::exception& e) {
39178       SWIG_exception(SWIG_RuntimeError, e.what());
39179     }
39180   }
39181   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_move_t, 0 |  0 );
39182   (void)swig::container_owner<swig::traits<std::vector< vrna_move_t >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
39183   return resultobj;
39184 fail:
39185   return NULL;
39186 }
39187 
39188 
_wrap_MoveVector___getitem__(PyObject * self,PyObject * args)39189 SWIGINTERN PyObject *_wrap_MoveVector___getitem__(PyObject *self, PyObject *args) {
39190   Py_ssize_t argc;
39191   PyObject *argv[3] = {
39192     0
39193   };
39194 
39195   if (!(argc = SWIG_Python_UnpackTuple(args, "MoveVector___getitem__", 0, 2, argv))) SWIG_fail;
39196   --argc;
39197   if (argc == 2) {
39198     int _v;
39199     int res = swig::asptr(argv[0], (std::vector< vrna_move_t,std::allocator< vrna_move_t > >**)(0));
39200     _v = SWIG_CheckState(res);
39201     if (_v) {
39202       {
39203         _v = PySlice_Check(argv[1]);
39204       }
39205       if (_v) {
39206         return _wrap_MoveVector___getitem____SWIG_0(self, argc, argv);
39207       }
39208     }
39209   }
39210   if (argc == 2) {
39211     int _v;
39212     int res = swig::asptr(argv[0], (std::vector< vrna_move_t,std::allocator< vrna_move_t > >**)(0));
39213     _v = SWIG_CheckState(res);
39214     if (_v) {
39215       {
39216         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
39217         _v = SWIG_CheckState(res);
39218       }
39219       if (_v) {
39220         return _wrap_MoveVector___getitem____SWIG_1(self, argc, argv);
39221       }
39222     }
39223   }
39224 
39225 fail:
39226   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MoveVector___getitem__'.\n"
39227     "  Possible C/C++ prototypes are:\n"
39228     "    std::vector< vrna_move_t >::__getitem__(PySliceObject *)\n"
39229     "    std::vector< vrna_move_t >::__getitem__(std::vector< vrna_move_t >::difference_type) const\n");
39230   return 0;
39231 }
39232 
39233 
_wrap_MoveVector___setitem____SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)39234 SWIGINTERN PyObject *_wrap_MoveVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
39235   PyObject *resultobj = 0;
39236   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
39237   std::vector< vrna_move_t >::difference_type arg2 ;
39238   std::vector< vrna_move_t >::value_type *arg3 = 0 ;
39239   void *argp1 = 0 ;
39240   int res1 = 0 ;
39241   ptrdiff_t val2 ;
39242   int ecode2 = 0 ;
39243   void *argp3 = 0 ;
39244   int res3 = 0 ;
39245 
39246   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
39247   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
39248   if (!SWIG_IsOK(res1)) {
39249     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector___setitem__" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
39250   }
39251   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
39252   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
39253   if (!SWIG_IsOK(ecode2)) {
39254     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MoveVector___setitem__" "', argument " "2"" of type '" "std::vector< vrna_move_t >::difference_type""'");
39255   }
39256   arg2 = static_cast< std::vector< vrna_move_t >::difference_type >(val2);
39257   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_vrna_move_t,  0  | 0);
39258   if (!SWIG_IsOK(res3)) {
39259     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MoveVector___setitem__" "', argument " "3"" of type '" "std::vector< vrna_move_t >::value_type const &""'");
39260   }
39261   if (!argp3) {
39262     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MoveVector___setitem__" "', argument " "3"" of type '" "std::vector< vrna_move_t >::value_type const &""'");
39263   }
39264   arg3 = reinterpret_cast< std::vector< vrna_move_t >::value_type * >(argp3);
39265   {
39266     try {
39267       try {
39268         std_vector_Sl_vrna_move_t_Sg____setitem____SWIG_2(arg1,arg2,(vrna_move_t const &)*arg3);
39269       } catch(std::out_of_range &_e) {
39270         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
39271       }
39272     } catch (const std::exception& e) {
39273       SWIG_exception(SWIG_RuntimeError, e.what());
39274     }
39275   }
39276   resultobj = SWIG_Py_Void();
39277   return resultobj;
39278 fail:
39279   return NULL;
39280 }
39281 
39282 
_wrap_MoveVector___setitem__(PyObject * self,PyObject * args)39283 SWIGINTERN PyObject *_wrap_MoveVector___setitem__(PyObject *self, PyObject *args) {
39284   Py_ssize_t argc;
39285   PyObject *argv[4] = {
39286     0
39287   };
39288 
39289   if (!(argc = SWIG_Python_UnpackTuple(args, "MoveVector___setitem__", 0, 3, argv))) SWIG_fail;
39290   --argc;
39291   if (argc == 2) {
39292     int _v;
39293     int res = swig::asptr(argv[0], (std::vector< vrna_move_t,std::allocator< vrna_move_t > >**)(0));
39294     _v = SWIG_CheckState(res);
39295     if (_v) {
39296       {
39297         _v = PySlice_Check(argv[1]);
39298       }
39299       if (_v) {
39300         return _wrap_MoveVector___setitem____SWIG_1(self, argc, argv);
39301       }
39302     }
39303   }
39304   if (argc == 3) {
39305     int _v;
39306     int res = swig::asptr(argv[0], (std::vector< vrna_move_t,std::allocator< vrna_move_t > >**)(0));
39307     _v = SWIG_CheckState(res);
39308     if (_v) {
39309       {
39310         _v = PySlice_Check(argv[1]);
39311       }
39312       if (_v) {
39313         int res = swig::asptr(argv[2], (std::vector< vrna_move_t,std::allocator< vrna_move_t > >**)(0));
39314         _v = SWIG_CheckState(res);
39315         if (_v) {
39316           return _wrap_MoveVector___setitem____SWIG_0(self, argc, argv);
39317         }
39318       }
39319     }
39320   }
39321   if (argc == 3) {
39322     int _v;
39323     int res = swig::asptr(argv[0], (std::vector< vrna_move_t,std::allocator< vrna_move_t > >**)(0));
39324     _v = SWIG_CheckState(res);
39325     if (_v) {
39326       {
39327         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
39328         _v = SWIG_CheckState(res);
39329       }
39330       if (_v) {
39331         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_vrna_move_t, SWIG_POINTER_NO_NULL | 0);
39332         _v = SWIG_CheckState(res);
39333         if (_v) {
39334           return _wrap_MoveVector___setitem____SWIG_2(self, argc, argv);
39335         }
39336       }
39337     }
39338   }
39339 
39340 fail:
39341   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MoveVector___setitem__'.\n"
39342     "  Possible C/C++ prototypes are:\n"
39343     "    std::vector< vrna_move_t >::__setitem__(PySliceObject *,std::vector< vrna_move_t,std::allocator< vrna_move_t > > const &)\n"
39344     "    std::vector< vrna_move_t >::__setitem__(PySliceObject *)\n"
39345     "    std::vector< vrna_move_t >::__setitem__(std::vector< vrna_move_t >::difference_type,std::vector< vrna_move_t >::value_type const &)\n");
39346   return 0;
39347 }
39348 
39349 
_wrap_MoveVector_pop(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39350 SWIGINTERN PyObject *_wrap_MoveVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39351   PyObject *resultobj = 0;
39352   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
39353   void *argp1 = 0 ;
39354   int res1 = 0 ;
39355   PyObject *swig_obj[1] ;
39356   SwigValueWrapper< vrna_move_t > result;
39357 
39358   if (!args) SWIG_fail;
39359   swig_obj[0] = args;
39360   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
39361   if (!SWIG_IsOK(res1)) {
39362     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_pop" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
39363   }
39364   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
39365   {
39366     try {
39367       try {
39368         result = std_vector_Sl_vrna_move_t_Sg__pop(arg1);
39369       } catch(std::out_of_range &_e) {
39370         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
39371       }
39372     } catch (const std::exception& e) {
39373       SWIG_exception(SWIG_RuntimeError, e.what());
39374     }
39375   }
39376   resultobj = SWIG_NewPointerObj((new std::vector< vrna_move_t >::value_type(static_cast< const std::vector< vrna_move_t >::value_type& >(result))), SWIGTYPE_p_vrna_move_t, SWIG_POINTER_OWN |  0 );
39377   return resultobj;
39378 fail:
39379   return NULL;
39380 }
39381 
39382 
_wrap_MoveVector_append(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)39383 SWIGINTERN PyObject *_wrap_MoveVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39384   PyObject *resultobj = 0;
39385   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
39386   std::vector< vrna_move_t >::value_type *arg2 = 0 ;
39387   void *argp1 = 0 ;
39388   int res1 = 0 ;
39389   void *argp2 = 0 ;
39390   int res2 = 0 ;
39391   PyObject * obj0 = 0 ;
39392   PyObject * obj1 = 0 ;
39393   char * kwnames[] = {
39394     (char *)"self",  (char *)"x",  NULL
39395   };
39396 
39397   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:MoveVector_append", kwnames, &obj0, &obj1)) SWIG_fail;
39398   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
39399   if (!SWIG_IsOK(res1)) {
39400     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_append" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
39401   }
39402   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
39403   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_vrna_move_t,  0  | 0);
39404   if (!SWIG_IsOK(res2)) {
39405     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MoveVector_append" "', argument " "2"" of type '" "std::vector< vrna_move_t >::value_type const &""'");
39406   }
39407   if (!argp2) {
39408     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MoveVector_append" "', argument " "2"" of type '" "std::vector< vrna_move_t >::value_type const &""'");
39409   }
39410   arg2 = reinterpret_cast< std::vector< vrna_move_t >::value_type * >(argp2);
39411   {
39412     try {
39413       std_vector_Sl_vrna_move_t_Sg__append(arg1,(vrna_move_t const &)*arg2);
39414     } catch (const std::exception& e) {
39415       SWIG_exception(SWIG_RuntimeError, e.what());
39416     }
39417   }
39418   resultobj = SWIG_Py_Void();
39419   return resultobj;
39420 fail:
39421   return NULL;
39422 }
39423 
39424 
_wrap_new_MoveVector__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))39425 SWIGINTERN PyObject *_wrap_new_MoveVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
39426   PyObject *resultobj = 0;
39427   std::vector< vrna_move_t > *result = 0 ;
39428 
39429   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
39430   {
39431     try {
39432       result = (std::vector< vrna_move_t > *)new std::vector< vrna_move_t >();
39433     } catch (const std::exception& e) {
39434       SWIG_exception(SWIG_RuntimeError, e.what());
39435     }
39436   }
39437   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, SWIG_POINTER_NEW |  0 );
39438   return resultobj;
39439 fail:
39440   return NULL;
39441 }
39442 
39443 
_wrap_new_MoveVector__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)39444 SWIGINTERN PyObject *_wrap_new_MoveVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
39445   PyObject *resultobj = 0;
39446   std::vector< vrna_move_t > *arg1 = 0 ;
39447   int res1 = SWIG_OLDOBJ ;
39448   std::vector< vrna_move_t > *result = 0 ;
39449 
39450   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
39451   {
39452     std::vector< vrna_move_t,std::allocator< vrna_move_t > > *ptr = (std::vector< vrna_move_t,std::allocator< vrna_move_t > > *)0;
39453     res1 = swig::asptr(swig_obj[0], &ptr);
39454     if (!SWIG_IsOK(res1)) {
39455       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MoveVector" "', argument " "1"" of type '" "std::vector< vrna_move_t > const &""'");
39456     }
39457     if (!ptr) {
39458       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MoveVector" "', argument " "1"" of type '" "std::vector< vrna_move_t > const &""'");
39459     }
39460     arg1 = ptr;
39461   }
39462   {
39463     try {
39464       result = (std::vector< vrna_move_t > *)new std::vector< vrna_move_t >((std::vector< vrna_move_t > const &)*arg1);
39465     } catch (const std::exception& e) {
39466       SWIG_exception(SWIG_RuntimeError, e.what());
39467     }
39468   }
39469   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, SWIG_POINTER_NEW |  0 );
39470   if (SWIG_IsNewObj(res1)) delete arg1;
39471   return resultobj;
39472 fail:
39473   if (SWIG_IsNewObj(res1)) delete arg1;
39474   return NULL;
39475 }
39476 
39477 
_wrap_MoveVector_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39478 SWIGINTERN PyObject *_wrap_MoveVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39479   PyObject *resultobj = 0;
39480   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
39481   void *argp1 = 0 ;
39482   int res1 = 0 ;
39483   PyObject *swig_obj[1] ;
39484   bool result;
39485 
39486   if (!args) SWIG_fail;
39487   swig_obj[0] = args;
39488   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
39489   if (!SWIG_IsOK(res1)) {
39490     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_empty" "', argument " "1"" of type '" "std::vector< vrna_move_t > const *""'");
39491   }
39492   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
39493   {
39494     try {
39495       result = (bool)((std::vector< vrna_move_t > const *)arg1)->empty();
39496     } catch (const std::exception& e) {
39497       SWIG_exception(SWIG_RuntimeError, e.what());
39498     }
39499   }
39500   resultobj = SWIG_From_bool(static_cast< bool >(result));
39501   return resultobj;
39502 fail:
39503   return NULL;
39504 }
39505 
39506 
_wrap_MoveVector_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39507 SWIGINTERN PyObject *_wrap_MoveVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39508   PyObject *resultobj = 0;
39509   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
39510   void *argp1 = 0 ;
39511   int res1 = 0 ;
39512   PyObject *swig_obj[1] ;
39513   std::vector< vrna_move_t >::size_type result;
39514 
39515   if (!args) SWIG_fail;
39516   swig_obj[0] = args;
39517   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
39518   if (!SWIG_IsOK(res1)) {
39519     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_size" "', argument " "1"" of type '" "std::vector< vrna_move_t > const *""'");
39520   }
39521   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
39522   {
39523     try {
39524       result = ((std::vector< vrna_move_t > const *)arg1)->size();
39525     } catch (const std::exception& e) {
39526       SWIG_exception(SWIG_RuntimeError, e.what());
39527     }
39528   }
39529   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
39530   return resultobj;
39531 fail:
39532   return NULL;
39533 }
39534 
39535 
_wrap_MoveVector_swap(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)39536 SWIGINTERN PyObject *_wrap_MoveVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39537   PyObject *resultobj = 0;
39538   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
39539   std::vector< vrna_move_t > *arg2 = 0 ;
39540   void *argp1 = 0 ;
39541   int res1 = 0 ;
39542   void *argp2 = 0 ;
39543   int res2 = 0 ;
39544   PyObject * obj0 = 0 ;
39545   PyObject * obj1 = 0 ;
39546   char * kwnames[] = {
39547     (char *)"self",  (char *)"v",  NULL
39548   };
39549 
39550   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:MoveVector_swap", kwnames, &obj0, &obj1)) SWIG_fail;
39551   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
39552   if (!SWIG_IsOK(res1)) {
39553     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_swap" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
39554   }
39555   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
39556   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t,  0 );
39557   if (!SWIG_IsOK(res2)) {
39558     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MoveVector_swap" "', argument " "2"" of type '" "std::vector< vrna_move_t > &""'");
39559   }
39560   if (!argp2) {
39561     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MoveVector_swap" "', argument " "2"" of type '" "std::vector< vrna_move_t > &""'");
39562   }
39563   arg2 = reinterpret_cast< std::vector< vrna_move_t > * >(argp2);
39564   {
39565     try {
39566       (arg1)->swap(*arg2);
39567     } catch (const std::exception& e) {
39568       SWIG_exception(SWIG_RuntimeError, e.what());
39569     }
39570   }
39571   resultobj = SWIG_Py_Void();
39572   return resultobj;
39573 fail:
39574   return NULL;
39575 }
39576 
39577 
_wrap_MoveVector_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39578 SWIGINTERN PyObject *_wrap_MoveVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39579   PyObject *resultobj = 0;
39580   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
39581   void *argp1 = 0 ;
39582   int res1 = 0 ;
39583   PyObject *swig_obj[1] ;
39584   std::vector< vrna_move_t >::iterator result;
39585 
39586   if (!args) SWIG_fail;
39587   swig_obj[0] = args;
39588   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
39589   if (!SWIG_IsOK(res1)) {
39590     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_begin" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
39591   }
39592   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
39593   {
39594     try {
39595       result = (arg1)->begin();
39596     } catch (const std::exception& e) {
39597       SWIG_exception(SWIG_RuntimeError, e.what());
39598     }
39599   }
39600   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_move_t >::iterator & >(result)),
39601     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
39602   return resultobj;
39603 fail:
39604   return NULL;
39605 }
39606 
39607 
_wrap_MoveVector_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39608 SWIGINTERN PyObject *_wrap_MoveVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39609   PyObject *resultobj = 0;
39610   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
39611   void *argp1 = 0 ;
39612   int res1 = 0 ;
39613   PyObject *swig_obj[1] ;
39614   std::vector< vrna_move_t >::iterator result;
39615 
39616   if (!args) SWIG_fail;
39617   swig_obj[0] = args;
39618   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
39619   if (!SWIG_IsOK(res1)) {
39620     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_end" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
39621   }
39622   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
39623   {
39624     try {
39625       result = (arg1)->end();
39626     } catch (const std::exception& e) {
39627       SWIG_exception(SWIG_RuntimeError, e.what());
39628     }
39629   }
39630   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_move_t >::iterator & >(result)),
39631     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
39632   return resultobj;
39633 fail:
39634   return NULL;
39635 }
39636 
39637 
_wrap_MoveVector_rbegin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39638 SWIGINTERN PyObject *_wrap_MoveVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39639   PyObject *resultobj = 0;
39640   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
39641   void *argp1 = 0 ;
39642   int res1 = 0 ;
39643   PyObject *swig_obj[1] ;
39644   std::vector< vrna_move_t >::reverse_iterator result;
39645 
39646   if (!args) SWIG_fail;
39647   swig_obj[0] = args;
39648   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
39649   if (!SWIG_IsOK(res1)) {
39650     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_rbegin" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
39651   }
39652   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
39653   {
39654     try {
39655       result = (arg1)->rbegin();
39656     } catch (const std::exception& e) {
39657       SWIG_exception(SWIG_RuntimeError, e.what());
39658     }
39659   }
39660   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_move_t >::reverse_iterator & >(result)),
39661     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
39662   return resultobj;
39663 fail:
39664   return NULL;
39665 }
39666 
39667 
_wrap_MoveVector_rend(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39668 SWIGINTERN PyObject *_wrap_MoveVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39669   PyObject *resultobj = 0;
39670   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
39671   void *argp1 = 0 ;
39672   int res1 = 0 ;
39673   PyObject *swig_obj[1] ;
39674   std::vector< vrna_move_t >::reverse_iterator result;
39675 
39676   if (!args) SWIG_fail;
39677   swig_obj[0] = args;
39678   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
39679   if (!SWIG_IsOK(res1)) {
39680     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_rend" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
39681   }
39682   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
39683   {
39684     try {
39685       result = (arg1)->rend();
39686     } catch (const std::exception& e) {
39687       SWIG_exception(SWIG_RuntimeError, e.what());
39688     }
39689   }
39690   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_move_t >::reverse_iterator & >(result)),
39691     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
39692   return resultobj;
39693 fail:
39694   return NULL;
39695 }
39696 
39697 
_wrap_MoveVector_clear(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39698 SWIGINTERN PyObject *_wrap_MoveVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39699   PyObject *resultobj = 0;
39700   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
39701   void *argp1 = 0 ;
39702   int res1 = 0 ;
39703   PyObject *swig_obj[1] ;
39704 
39705   if (!args) SWIG_fail;
39706   swig_obj[0] = args;
39707   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
39708   if (!SWIG_IsOK(res1)) {
39709     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_clear" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
39710   }
39711   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
39712   {
39713     try {
39714       (arg1)->clear();
39715     } catch (const std::exception& e) {
39716       SWIG_exception(SWIG_RuntimeError, e.what());
39717     }
39718   }
39719   resultobj = SWIG_Py_Void();
39720   return resultobj;
39721 fail:
39722   return NULL;
39723 }
39724 
39725 
_wrap_MoveVector_get_allocator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39726 SWIGINTERN PyObject *_wrap_MoveVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39727   PyObject *resultobj = 0;
39728   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
39729   void *argp1 = 0 ;
39730   int res1 = 0 ;
39731   PyObject *swig_obj[1] ;
39732   SwigValueWrapper< std::allocator< vrna_move_t > > result;
39733 
39734   if (!args) SWIG_fail;
39735   swig_obj[0] = args;
39736   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
39737   if (!SWIG_IsOK(res1)) {
39738     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_get_allocator" "', argument " "1"" of type '" "std::vector< vrna_move_t > const *""'");
39739   }
39740   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
39741   {
39742     try {
39743       result = ((std::vector< vrna_move_t > const *)arg1)->get_allocator();
39744     } catch (const std::exception& e) {
39745       SWIG_exception(SWIG_RuntimeError, e.what());
39746     }
39747   }
39748   resultobj = SWIG_NewPointerObj((new std::vector< vrna_move_t >::allocator_type(static_cast< const std::vector< vrna_move_t >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_vrna_move_t_t, SWIG_POINTER_OWN |  0 );
39749   return resultobj;
39750 fail:
39751   return NULL;
39752 }
39753 
39754 
_wrap_new_MoveVector__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)39755 SWIGINTERN PyObject *_wrap_new_MoveVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
39756   PyObject *resultobj = 0;
39757   std::vector< vrna_move_t >::size_type arg1 ;
39758   size_t val1 ;
39759   int ecode1 = 0 ;
39760   std::vector< vrna_move_t > *result = 0 ;
39761 
39762   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
39763   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
39764   if (!SWIG_IsOK(ecode1)) {
39765     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MoveVector" "', argument " "1"" of type '" "std::vector< vrna_move_t >::size_type""'");
39766   }
39767   arg1 = static_cast< std::vector< vrna_move_t >::size_type >(val1);
39768   {
39769     try {
39770       result = (std::vector< vrna_move_t > *)new std::vector< vrna_move_t >(arg1);
39771     } catch (const std::exception& e) {
39772       SWIG_exception(SWIG_RuntimeError, e.what());
39773     }
39774   }
39775   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, SWIG_POINTER_NEW |  0 );
39776   return resultobj;
39777 fail:
39778   return NULL;
39779 }
39780 
39781 
_wrap_MoveVector_pop_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39782 SWIGINTERN PyObject *_wrap_MoveVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39783   PyObject *resultobj = 0;
39784   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
39785   void *argp1 = 0 ;
39786   int res1 = 0 ;
39787   PyObject *swig_obj[1] ;
39788 
39789   if (!args) SWIG_fail;
39790   swig_obj[0] = args;
39791   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
39792   if (!SWIG_IsOK(res1)) {
39793     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_pop_back" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
39794   }
39795   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
39796   {
39797     try {
39798       (arg1)->pop_back();
39799     } catch (const std::exception& e) {
39800       SWIG_exception(SWIG_RuntimeError, e.what());
39801     }
39802   }
39803   resultobj = SWIG_Py_Void();
39804   return resultobj;
39805 fail:
39806   return NULL;
39807 }
39808 
39809 
_wrap_MoveVector_resize__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)39810 SWIGINTERN PyObject *_wrap_MoveVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
39811   PyObject *resultobj = 0;
39812   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
39813   std::vector< vrna_move_t >::size_type arg2 ;
39814   void *argp1 = 0 ;
39815   int res1 = 0 ;
39816   size_t val2 ;
39817   int ecode2 = 0 ;
39818 
39819   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
39820   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
39821   if (!SWIG_IsOK(res1)) {
39822     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_resize" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
39823   }
39824   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
39825   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
39826   if (!SWIG_IsOK(ecode2)) {
39827     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MoveVector_resize" "', argument " "2"" of type '" "std::vector< vrna_move_t >::size_type""'");
39828   }
39829   arg2 = static_cast< std::vector< vrna_move_t >::size_type >(val2);
39830   {
39831     try {
39832       (arg1)->resize(arg2);
39833     } catch (const std::exception& e) {
39834       SWIG_exception(SWIG_RuntimeError, e.what());
39835     }
39836   }
39837   resultobj = SWIG_Py_Void();
39838   return resultobj;
39839 fail:
39840   return NULL;
39841 }
39842 
39843 
_wrap_MoveVector_erase__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)39844 SWIGINTERN PyObject *_wrap_MoveVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
39845   PyObject *resultobj = 0;
39846   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
39847   std::vector< vrna_move_t >::iterator arg2 ;
39848   void *argp1 = 0 ;
39849   int res1 = 0 ;
39850   swig::SwigPyIterator *iter2 = 0 ;
39851   int res2 ;
39852   std::vector< vrna_move_t >::iterator result;
39853 
39854   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
39855   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
39856   if (!SWIG_IsOK(res1)) {
39857     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_erase" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
39858   }
39859   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
39860   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
39861   if (!SWIG_IsOK(res2) || !iter2) {
39862     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MoveVector_erase" "', argument " "2"" of type '" "std::vector< vrna_move_t >::iterator""'");
39863   } else {
39864     swig::SwigPyIterator_T<std::vector< vrna_move_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_move_t >::iterator > *>(iter2);
39865     if (iter_t) {
39866       arg2 = iter_t->get_current();
39867     } else {
39868       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MoveVector_erase" "', argument " "2"" of type '" "std::vector< vrna_move_t >::iterator""'");
39869     }
39870   }
39871   {
39872     try {
39873       result = std_vector_Sl_vrna_move_t_Sg__erase__SWIG_0(arg1,arg2);
39874     } catch (const std::exception& e) {
39875       SWIG_exception(SWIG_RuntimeError, e.what());
39876     }
39877   }
39878   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_move_t >::iterator & >(result)),
39879     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
39880   return resultobj;
39881 fail:
39882   return NULL;
39883 }
39884 
39885 
_wrap_MoveVector_erase__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)39886 SWIGINTERN PyObject *_wrap_MoveVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
39887   PyObject *resultobj = 0;
39888   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
39889   std::vector< vrna_move_t >::iterator arg2 ;
39890   std::vector< vrna_move_t >::iterator arg3 ;
39891   void *argp1 = 0 ;
39892   int res1 = 0 ;
39893   swig::SwigPyIterator *iter2 = 0 ;
39894   int res2 ;
39895   swig::SwigPyIterator *iter3 = 0 ;
39896   int res3 ;
39897   std::vector< vrna_move_t >::iterator result;
39898 
39899   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
39900   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
39901   if (!SWIG_IsOK(res1)) {
39902     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_erase" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
39903   }
39904   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
39905   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
39906   if (!SWIG_IsOK(res2) || !iter2) {
39907     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MoveVector_erase" "', argument " "2"" of type '" "std::vector< vrna_move_t >::iterator""'");
39908   } else {
39909     swig::SwigPyIterator_T<std::vector< vrna_move_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_move_t >::iterator > *>(iter2);
39910     if (iter_t) {
39911       arg2 = iter_t->get_current();
39912     } else {
39913       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MoveVector_erase" "', argument " "2"" of type '" "std::vector< vrna_move_t >::iterator""'");
39914     }
39915   }
39916   res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
39917   if (!SWIG_IsOK(res3) || !iter3) {
39918     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MoveVector_erase" "', argument " "3"" of type '" "std::vector< vrna_move_t >::iterator""'");
39919   } else {
39920     swig::SwigPyIterator_T<std::vector< vrna_move_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_move_t >::iterator > *>(iter3);
39921     if (iter_t) {
39922       arg3 = iter_t->get_current();
39923     } else {
39924       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MoveVector_erase" "', argument " "3"" of type '" "std::vector< vrna_move_t >::iterator""'");
39925     }
39926   }
39927   {
39928     try {
39929       result = std_vector_Sl_vrna_move_t_Sg__erase__SWIG_1(arg1,arg2,arg3);
39930     } catch (const std::exception& e) {
39931       SWIG_exception(SWIG_RuntimeError, e.what());
39932     }
39933   }
39934   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_move_t >::iterator & >(result)),
39935     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
39936   return resultobj;
39937 fail:
39938   return NULL;
39939 }
39940 
39941 
_wrap_MoveVector_erase(PyObject * self,PyObject * args)39942 SWIGINTERN PyObject *_wrap_MoveVector_erase(PyObject *self, PyObject *args) {
39943   Py_ssize_t argc;
39944   PyObject *argv[4] = {
39945     0
39946   };
39947 
39948   if (!(argc = SWIG_Python_UnpackTuple(args, "MoveVector_erase", 0, 3, argv))) SWIG_fail;
39949   --argc;
39950   if (argc == 2) {
39951     int _v;
39952     int res = swig::asptr(argv[0], (std::vector< vrna_move_t,std::allocator< vrna_move_t > >**)(0));
39953     _v = SWIG_CheckState(res);
39954     if (_v) {
39955       swig::SwigPyIterator *iter = 0;
39956       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
39957       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_move_t >::iterator > *>(iter) != 0));
39958       if (_v) {
39959         return _wrap_MoveVector_erase__SWIG_0(self, argc, argv);
39960       }
39961     }
39962   }
39963   if (argc == 3) {
39964     int _v;
39965     int res = swig::asptr(argv[0], (std::vector< vrna_move_t,std::allocator< vrna_move_t > >**)(0));
39966     _v = SWIG_CheckState(res);
39967     if (_v) {
39968       swig::SwigPyIterator *iter = 0;
39969       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
39970       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_move_t >::iterator > *>(iter) != 0));
39971       if (_v) {
39972         swig::SwigPyIterator *iter = 0;
39973         int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
39974         _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_move_t >::iterator > *>(iter) != 0));
39975         if (_v) {
39976           return _wrap_MoveVector_erase__SWIG_1(self, argc, argv);
39977         }
39978       }
39979     }
39980   }
39981 
39982 fail:
39983   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MoveVector_erase'.\n"
39984     "  Possible C/C++ prototypes are:\n"
39985     "    std::vector< vrna_move_t >::erase(std::vector< vrna_move_t >::iterator)\n"
39986     "    std::vector< vrna_move_t >::erase(std::vector< vrna_move_t >::iterator,std::vector< vrna_move_t >::iterator)\n");
39987   return 0;
39988 }
39989 
39990 
_wrap_new_MoveVector__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)39991 SWIGINTERN PyObject *_wrap_new_MoveVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
39992   PyObject *resultobj = 0;
39993   std::vector< vrna_move_t >::size_type arg1 ;
39994   std::vector< vrna_move_t >::value_type *arg2 = 0 ;
39995   size_t val1 ;
39996   int ecode1 = 0 ;
39997   void *argp2 = 0 ;
39998   int res2 = 0 ;
39999   std::vector< vrna_move_t > *result = 0 ;
40000 
40001   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
40002   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
40003   if (!SWIG_IsOK(ecode1)) {
40004     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MoveVector" "', argument " "1"" of type '" "std::vector< vrna_move_t >::size_type""'");
40005   }
40006   arg1 = static_cast< std::vector< vrna_move_t >::size_type >(val1);
40007   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_vrna_move_t,  0  | 0);
40008   if (!SWIG_IsOK(res2)) {
40009     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MoveVector" "', argument " "2"" of type '" "std::vector< vrna_move_t >::value_type const &""'");
40010   }
40011   if (!argp2) {
40012     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MoveVector" "', argument " "2"" of type '" "std::vector< vrna_move_t >::value_type const &""'");
40013   }
40014   arg2 = reinterpret_cast< std::vector< vrna_move_t >::value_type * >(argp2);
40015   {
40016     try {
40017       result = (std::vector< vrna_move_t > *)new std::vector< vrna_move_t >(arg1,(std::vector< vrna_move_t >::value_type const &)*arg2);
40018     } catch (const std::exception& e) {
40019       SWIG_exception(SWIG_RuntimeError, e.what());
40020     }
40021   }
40022   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, SWIG_POINTER_NEW |  0 );
40023   return resultobj;
40024 fail:
40025   return NULL;
40026 }
40027 
40028 
_wrap_new_MoveVector(PyObject * self,PyObject * args)40029 SWIGINTERN PyObject *_wrap_new_MoveVector(PyObject *self, PyObject *args) {
40030   Py_ssize_t argc;
40031   PyObject *argv[3] = {
40032     0
40033   };
40034 
40035   if (!(argc = SWIG_Python_UnpackTuple(args, "new_MoveVector", 0, 2, argv))) SWIG_fail;
40036   --argc;
40037   if (argc == 0) {
40038     return _wrap_new_MoveVector__SWIG_0(self, argc, argv);
40039   }
40040   if (argc == 1) {
40041     int _v;
40042     {
40043       int res = SWIG_AsVal_size_t(argv[0], NULL);
40044       _v = SWIG_CheckState(res);
40045     }
40046     if (_v) {
40047       return _wrap_new_MoveVector__SWIG_2(self, argc, argv);
40048     }
40049   }
40050   if (argc == 1) {
40051     int _v;
40052     int res = swig::asptr(argv[0], (std::vector< vrna_move_t,std::allocator< vrna_move_t > >**)(0));
40053     _v = SWIG_CheckState(res);
40054     if (_v) {
40055       return _wrap_new_MoveVector__SWIG_1(self, argc, argv);
40056     }
40057   }
40058   if (argc == 2) {
40059     int _v;
40060     {
40061       int res = SWIG_AsVal_size_t(argv[0], NULL);
40062       _v = SWIG_CheckState(res);
40063     }
40064     if (_v) {
40065       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_vrna_move_t, SWIG_POINTER_NO_NULL | 0);
40066       _v = SWIG_CheckState(res);
40067       if (_v) {
40068         return _wrap_new_MoveVector__SWIG_3(self, argc, argv);
40069       }
40070     }
40071   }
40072 
40073 fail:
40074   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_MoveVector'.\n"
40075     "  Possible C/C++ prototypes are:\n"
40076     "    std::vector< vrna_move_t >::vector()\n"
40077     "    std::vector< vrna_move_t >::vector(std::vector< vrna_move_t > const &)\n"
40078     "    std::vector< vrna_move_t >::vector(std::vector< vrna_move_t >::size_type)\n"
40079     "    std::vector< vrna_move_t >::vector(std::vector< vrna_move_t >::size_type,std::vector< vrna_move_t >::value_type const &)\n");
40080   return 0;
40081 }
40082 
40083 
_wrap_MoveVector_push_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)40084 SWIGINTERN PyObject *_wrap_MoveVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40085   PyObject *resultobj = 0;
40086   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
40087   std::vector< vrna_move_t >::value_type *arg2 = 0 ;
40088   void *argp1 = 0 ;
40089   int res1 = 0 ;
40090   void *argp2 = 0 ;
40091   int res2 = 0 ;
40092   PyObject * obj0 = 0 ;
40093   PyObject * obj1 = 0 ;
40094   char * kwnames[] = {
40095     (char *)"self",  (char *)"x",  NULL
40096   };
40097 
40098   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:MoveVector_push_back", kwnames, &obj0, &obj1)) SWIG_fail;
40099   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
40100   if (!SWIG_IsOK(res1)) {
40101     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_push_back" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
40102   }
40103   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
40104   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_vrna_move_t,  0  | 0);
40105   if (!SWIG_IsOK(res2)) {
40106     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MoveVector_push_back" "', argument " "2"" of type '" "std::vector< vrna_move_t >::value_type const &""'");
40107   }
40108   if (!argp2) {
40109     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MoveVector_push_back" "', argument " "2"" of type '" "std::vector< vrna_move_t >::value_type const &""'");
40110   }
40111   arg2 = reinterpret_cast< std::vector< vrna_move_t >::value_type * >(argp2);
40112   {
40113     try {
40114       (arg1)->push_back((std::vector< vrna_move_t >::value_type const &)*arg2);
40115     } catch (const std::exception& e) {
40116       SWIG_exception(SWIG_RuntimeError, e.what());
40117     }
40118   }
40119   resultobj = SWIG_Py_Void();
40120   return resultobj;
40121 fail:
40122   return NULL;
40123 }
40124 
40125 
_wrap_MoveVector_front(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40126 SWIGINTERN PyObject *_wrap_MoveVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40127   PyObject *resultobj = 0;
40128   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
40129   void *argp1 = 0 ;
40130   int res1 = 0 ;
40131   PyObject *swig_obj[1] ;
40132   std::vector< vrna_move_t >::value_type *result = 0 ;
40133 
40134   if (!args) SWIG_fail;
40135   swig_obj[0] = args;
40136   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
40137   if (!SWIG_IsOK(res1)) {
40138     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_front" "', argument " "1"" of type '" "std::vector< vrna_move_t > const *""'");
40139   }
40140   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
40141   {
40142     try {
40143       result = (std::vector< vrna_move_t >::value_type *) &((std::vector< vrna_move_t > const *)arg1)->front();
40144     } catch (const std::exception& e) {
40145       SWIG_exception(SWIG_RuntimeError, e.what());
40146     }
40147   }
40148   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_move_t, 0 |  0 );
40149   (void)swig::container_owner<swig::traits<std::vector< vrna_move_t >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
40150   return resultobj;
40151 fail:
40152   return NULL;
40153 }
40154 
40155 
_wrap_MoveVector_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40156 SWIGINTERN PyObject *_wrap_MoveVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40157   PyObject *resultobj = 0;
40158   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
40159   void *argp1 = 0 ;
40160   int res1 = 0 ;
40161   PyObject *swig_obj[1] ;
40162   std::vector< vrna_move_t >::value_type *result = 0 ;
40163 
40164   if (!args) SWIG_fail;
40165   swig_obj[0] = args;
40166   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
40167   if (!SWIG_IsOK(res1)) {
40168     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_back" "', argument " "1"" of type '" "std::vector< vrna_move_t > const *""'");
40169   }
40170   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
40171   {
40172     try {
40173       result = (std::vector< vrna_move_t >::value_type *) &((std::vector< vrna_move_t > const *)arg1)->back();
40174     } catch (const std::exception& e) {
40175       SWIG_exception(SWIG_RuntimeError, e.what());
40176     }
40177   }
40178   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_move_t, 0 |  0 );
40179   (void)swig::container_owner<swig::traits<std::vector< vrna_move_t >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
40180   return resultobj;
40181 fail:
40182   return NULL;
40183 }
40184 
40185 
_wrap_MoveVector_assign(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)40186 SWIGINTERN PyObject *_wrap_MoveVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40187   PyObject *resultobj = 0;
40188   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
40189   std::vector< vrna_move_t >::size_type arg2 ;
40190   std::vector< vrna_move_t >::value_type *arg3 = 0 ;
40191   void *argp1 = 0 ;
40192   int res1 = 0 ;
40193   size_t val2 ;
40194   int ecode2 = 0 ;
40195   void *argp3 = 0 ;
40196   int res3 = 0 ;
40197   PyObject * obj0 = 0 ;
40198   PyObject * obj1 = 0 ;
40199   PyObject * obj2 = 0 ;
40200   char * kwnames[] = {
40201     (char *)"self",  (char *)"n",  (char *)"x",  NULL
40202   };
40203 
40204   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:MoveVector_assign", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
40205   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
40206   if (!SWIG_IsOK(res1)) {
40207     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_assign" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
40208   }
40209   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
40210   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
40211   if (!SWIG_IsOK(ecode2)) {
40212     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MoveVector_assign" "', argument " "2"" of type '" "std::vector< vrna_move_t >::size_type""'");
40213   }
40214   arg2 = static_cast< std::vector< vrna_move_t >::size_type >(val2);
40215   res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_vrna_move_t,  0  | 0);
40216   if (!SWIG_IsOK(res3)) {
40217     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MoveVector_assign" "', argument " "3"" of type '" "std::vector< vrna_move_t >::value_type const &""'");
40218   }
40219   if (!argp3) {
40220     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MoveVector_assign" "', argument " "3"" of type '" "std::vector< vrna_move_t >::value_type const &""'");
40221   }
40222   arg3 = reinterpret_cast< std::vector< vrna_move_t >::value_type * >(argp3);
40223   {
40224     try {
40225       (arg1)->assign(arg2,(std::vector< vrna_move_t >::value_type const &)*arg3);
40226     } catch (const std::exception& e) {
40227       SWIG_exception(SWIG_RuntimeError, e.what());
40228     }
40229   }
40230   resultobj = SWIG_Py_Void();
40231   return resultobj;
40232 fail:
40233   return NULL;
40234 }
40235 
40236 
_wrap_MoveVector_resize__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)40237 SWIGINTERN PyObject *_wrap_MoveVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
40238   PyObject *resultobj = 0;
40239   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
40240   std::vector< vrna_move_t >::size_type arg2 ;
40241   std::vector< vrna_move_t >::value_type *arg3 = 0 ;
40242   void *argp1 = 0 ;
40243   int res1 = 0 ;
40244   size_t val2 ;
40245   int ecode2 = 0 ;
40246   void *argp3 = 0 ;
40247   int res3 = 0 ;
40248 
40249   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
40250   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
40251   if (!SWIG_IsOK(res1)) {
40252     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_resize" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
40253   }
40254   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
40255   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
40256   if (!SWIG_IsOK(ecode2)) {
40257     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MoveVector_resize" "', argument " "2"" of type '" "std::vector< vrna_move_t >::size_type""'");
40258   }
40259   arg2 = static_cast< std::vector< vrna_move_t >::size_type >(val2);
40260   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_vrna_move_t,  0  | 0);
40261   if (!SWIG_IsOK(res3)) {
40262     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MoveVector_resize" "', argument " "3"" of type '" "std::vector< vrna_move_t >::value_type const &""'");
40263   }
40264   if (!argp3) {
40265     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MoveVector_resize" "', argument " "3"" of type '" "std::vector< vrna_move_t >::value_type const &""'");
40266   }
40267   arg3 = reinterpret_cast< std::vector< vrna_move_t >::value_type * >(argp3);
40268   {
40269     try {
40270       (arg1)->resize(arg2,(std::vector< vrna_move_t >::value_type const &)*arg3);
40271     } catch (const std::exception& e) {
40272       SWIG_exception(SWIG_RuntimeError, e.what());
40273     }
40274   }
40275   resultobj = SWIG_Py_Void();
40276   return resultobj;
40277 fail:
40278   return NULL;
40279 }
40280 
40281 
_wrap_MoveVector_resize(PyObject * self,PyObject * args)40282 SWIGINTERN PyObject *_wrap_MoveVector_resize(PyObject *self, PyObject *args) {
40283   Py_ssize_t argc;
40284   PyObject *argv[4] = {
40285     0
40286   };
40287 
40288   if (!(argc = SWIG_Python_UnpackTuple(args, "MoveVector_resize", 0, 3, argv))) SWIG_fail;
40289   --argc;
40290   if (argc == 2) {
40291     int _v;
40292     int res = swig::asptr(argv[0], (std::vector< vrna_move_t,std::allocator< vrna_move_t > >**)(0));
40293     _v = SWIG_CheckState(res);
40294     if (_v) {
40295       {
40296         int res = SWIG_AsVal_size_t(argv[1], NULL);
40297         _v = SWIG_CheckState(res);
40298       }
40299       if (_v) {
40300         return _wrap_MoveVector_resize__SWIG_0(self, argc, argv);
40301       }
40302     }
40303   }
40304   if (argc == 3) {
40305     int _v;
40306     int res = swig::asptr(argv[0], (std::vector< vrna_move_t,std::allocator< vrna_move_t > >**)(0));
40307     _v = SWIG_CheckState(res);
40308     if (_v) {
40309       {
40310         int res = SWIG_AsVal_size_t(argv[1], NULL);
40311         _v = SWIG_CheckState(res);
40312       }
40313       if (_v) {
40314         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_vrna_move_t, SWIG_POINTER_NO_NULL | 0);
40315         _v = SWIG_CheckState(res);
40316         if (_v) {
40317           return _wrap_MoveVector_resize__SWIG_1(self, argc, argv);
40318         }
40319       }
40320     }
40321   }
40322 
40323 fail:
40324   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MoveVector_resize'.\n"
40325     "  Possible C/C++ prototypes are:\n"
40326     "    std::vector< vrna_move_t >::resize(std::vector< vrna_move_t >::size_type)\n"
40327     "    std::vector< vrna_move_t >::resize(std::vector< vrna_move_t >::size_type,std::vector< vrna_move_t >::value_type const &)\n");
40328   return 0;
40329 }
40330 
40331 
_wrap_MoveVector_insert__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)40332 SWIGINTERN PyObject *_wrap_MoveVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
40333   PyObject *resultobj = 0;
40334   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
40335   std::vector< vrna_move_t >::iterator arg2 ;
40336   std::vector< vrna_move_t >::value_type *arg3 = 0 ;
40337   void *argp1 = 0 ;
40338   int res1 = 0 ;
40339   swig::SwigPyIterator *iter2 = 0 ;
40340   int res2 ;
40341   void *argp3 = 0 ;
40342   int res3 = 0 ;
40343   std::vector< vrna_move_t >::iterator result;
40344 
40345   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
40346   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
40347   if (!SWIG_IsOK(res1)) {
40348     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_insert" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
40349   }
40350   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
40351   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
40352   if (!SWIG_IsOK(res2) || !iter2) {
40353     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MoveVector_insert" "', argument " "2"" of type '" "std::vector< vrna_move_t >::iterator""'");
40354   } else {
40355     swig::SwigPyIterator_T<std::vector< vrna_move_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_move_t >::iterator > *>(iter2);
40356     if (iter_t) {
40357       arg2 = iter_t->get_current();
40358     } else {
40359       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MoveVector_insert" "', argument " "2"" of type '" "std::vector< vrna_move_t >::iterator""'");
40360     }
40361   }
40362   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_vrna_move_t,  0  | 0);
40363   if (!SWIG_IsOK(res3)) {
40364     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MoveVector_insert" "', argument " "3"" of type '" "std::vector< vrna_move_t >::value_type const &""'");
40365   }
40366   if (!argp3) {
40367     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MoveVector_insert" "', argument " "3"" of type '" "std::vector< vrna_move_t >::value_type const &""'");
40368   }
40369   arg3 = reinterpret_cast< std::vector< vrna_move_t >::value_type * >(argp3);
40370   {
40371     try {
40372       result = std_vector_Sl_vrna_move_t_Sg__insert__SWIG_0(arg1,arg2,(vrna_move_t const &)*arg3);
40373     } catch (const std::exception& e) {
40374       SWIG_exception(SWIG_RuntimeError, e.what());
40375     }
40376   }
40377   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< vrna_move_t >::iterator & >(result)),
40378     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
40379   return resultobj;
40380 fail:
40381   return NULL;
40382 }
40383 
40384 
_wrap_MoveVector_insert__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)40385 SWIGINTERN PyObject *_wrap_MoveVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
40386   PyObject *resultobj = 0;
40387   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
40388   std::vector< vrna_move_t >::iterator arg2 ;
40389   std::vector< vrna_move_t >::size_type arg3 ;
40390   std::vector< vrna_move_t >::value_type *arg4 = 0 ;
40391   void *argp1 = 0 ;
40392   int res1 = 0 ;
40393   swig::SwigPyIterator *iter2 = 0 ;
40394   int res2 ;
40395   size_t val3 ;
40396   int ecode3 = 0 ;
40397   void *argp4 = 0 ;
40398   int res4 = 0 ;
40399 
40400   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
40401   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
40402   if (!SWIG_IsOK(res1)) {
40403     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_insert" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
40404   }
40405   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
40406   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
40407   if (!SWIG_IsOK(res2) || !iter2) {
40408     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MoveVector_insert" "', argument " "2"" of type '" "std::vector< vrna_move_t >::iterator""'");
40409   } else {
40410     swig::SwigPyIterator_T<std::vector< vrna_move_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_move_t >::iterator > *>(iter2);
40411     if (iter_t) {
40412       arg2 = iter_t->get_current();
40413     } else {
40414       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MoveVector_insert" "', argument " "2"" of type '" "std::vector< vrna_move_t >::iterator""'");
40415     }
40416   }
40417   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
40418   if (!SWIG_IsOK(ecode3)) {
40419     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MoveVector_insert" "', argument " "3"" of type '" "std::vector< vrna_move_t >::size_type""'");
40420   }
40421   arg3 = static_cast< std::vector< vrna_move_t >::size_type >(val3);
40422   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_vrna_move_t,  0  | 0);
40423   if (!SWIG_IsOK(res4)) {
40424     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MoveVector_insert" "', argument " "4"" of type '" "std::vector< vrna_move_t >::value_type const &""'");
40425   }
40426   if (!argp4) {
40427     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MoveVector_insert" "', argument " "4"" of type '" "std::vector< vrna_move_t >::value_type const &""'");
40428   }
40429   arg4 = reinterpret_cast< std::vector< vrna_move_t >::value_type * >(argp4);
40430   {
40431     try {
40432       std_vector_Sl_vrna_move_t_Sg__insert__SWIG_1(arg1,arg2,arg3,(vrna_move_t const &)*arg4);
40433     } catch (const std::exception& e) {
40434       SWIG_exception(SWIG_RuntimeError, e.what());
40435     }
40436   }
40437   resultobj = SWIG_Py_Void();
40438   return resultobj;
40439 fail:
40440   return NULL;
40441 }
40442 
40443 
_wrap_MoveVector_insert(PyObject * self,PyObject * args)40444 SWIGINTERN PyObject *_wrap_MoveVector_insert(PyObject *self, PyObject *args) {
40445   Py_ssize_t argc;
40446   PyObject *argv[5] = {
40447     0
40448   };
40449 
40450   if (!(argc = SWIG_Python_UnpackTuple(args, "MoveVector_insert", 0, 4, argv))) SWIG_fail;
40451   --argc;
40452   if (argc == 3) {
40453     int _v;
40454     int res = swig::asptr(argv[0], (std::vector< vrna_move_t,std::allocator< vrna_move_t > >**)(0));
40455     _v = SWIG_CheckState(res);
40456     if (_v) {
40457       swig::SwigPyIterator *iter = 0;
40458       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
40459       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_move_t >::iterator > *>(iter) != 0));
40460       if (_v) {
40461         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_vrna_move_t, SWIG_POINTER_NO_NULL | 0);
40462         _v = SWIG_CheckState(res);
40463         if (_v) {
40464           return _wrap_MoveVector_insert__SWIG_0(self, argc, argv);
40465         }
40466       }
40467     }
40468   }
40469   if (argc == 4) {
40470     int _v;
40471     int res = swig::asptr(argv[0], (std::vector< vrna_move_t,std::allocator< vrna_move_t > >**)(0));
40472     _v = SWIG_CheckState(res);
40473     if (_v) {
40474       swig::SwigPyIterator *iter = 0;
40475       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
40476       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< vrna_move_t >::iterator > *>(iter) != 0));
40477       if (_v) {
40478         {
40479           int res = SWIG_AsVal_size_t(argv[2], NULL);
40480           _v = SWIG_CheckState(res);
40481         }
40482         if (_v) {
40483           int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_vrna_move_t, SWIG_POINTER_NO_NULL | 0);
40484           _v = SWIG_CheckState(res);
40485           if (_v) {
40486             return _wrap_MoveVector_insert__SWIG_1(self, argc, argv);
40487           }
40488         }
40489       }
40490     }
40491   }
40492 
40493 fail:
40494   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MoveVector_insert'.\n"
40495     "  Possible C/C++ prototypes are:\n"
40496     "    std::vector< vrna_move_t >::insert(std::vector< vrna_move_t >::iterator,std::vector< vrna_move_t >::value_type const &)\n"
40497     "    std::vector< vrna_move_t >::insert(std::vector< vrna_move_t >::iterator,std::vector< vrna_move_t >::size_type,std::vector< vrna_move_t >::value_type const &)\n");
40498   return 0;
40499 }
40500 
40501 
_wrap_MoveVector_reserve(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)40502 SWIGINTERN PyObject *_wrap_MoveVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40503   PyObject *resultobj = 0;
40504   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
40505   std::vector< vrna_move_t >::size_type arg2 ;
40506   void *argp1 = 0 ;
40507   int res1 = 0 ;
40508   size_t val2 ;
40509   int ecode2 = 0 ;
40510   PyObject * obj0 = 0 ;
40511   PyObject * obj1 = 0 ;
40512   char * kwnames[] = {
40513     (char *)"self",  (char *)"n",  NULL
40514   };
40515 
40516   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:MoveVector_reserve", kwnames, &obj0, &obj1)) SWIG_fail;
40517   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
40518   if (!SWIG_IsOK(res1)) {
40519     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_reserve" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
40520   }
40521   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
40522   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
40523   if (!SWIG_IsOK(ecode2)) {
40524     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MoveVector_reserve" "', argument " "2"" of type '" "std::vector< vrna_move_t >::size_type""'");
40525   }
40526   arg2 = static_cast< std::vector< vrna_move_t >::size_type >(val2);
40527   {
40528     try {
40529       (arg1)->reserve(arg2);
40530     } catch (const std::exception& e) {
40531       SWIG_exception(SWIG_RuntimeError, e.what());
40532     }
40533   }
40534   resultobj = SWIG_Py_Void();
40535   return resultobj;
40536 fail:
40537   return NULL;
40538 }
40539 
40540 
_wrap_MoveVector_capacity(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40541 SWIGINTERN PyObject *_wrap_MoveVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40542   PyObject *resultobj = 0;
40543   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
40544   void *argp1 = 0 ;
40545   int res1 = 0 ;
40546   PyObject *swig_obj[1] ;
40547   std::vector< vrna_move_t >::size_type result;
40548 
40549   if (!args) SWIG_fail;
40550   swig_obj[0] = args;
40551   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0 |  0 );
40552   if (!SWIG_IsOK(res1)) {
40553     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveVector_capacity" "', argument " "1"" of type '" "std::vector< vrna_move_t > const *""'");
40554   }
40555   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
40556   {
40557     try {
40558       result = ((std::vector< vrna_move_t > const *)arg1)->capacity();
40559     } catch (const std::exception& e) {
40560       SWIG_exception(SWIG_RuntimeError, e.what());
40561     }
40562   }
40563   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
40564   return resultobj;
40565 fail:
40566   return NULL;
40567 }
40568 
40569 
_wrap_delete_MoveVector(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40570 SWIGINTERN PyObject *_wrap_delete_MoveVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40571   PyObject *resultobj = 0;
40572   std::vector< vrna_move_t > *arg1 = (std::vector< vrna_move_t > *) 0 ;
40573   void *argp1 = 0 ;
40574   int res1 = 0 ;
40575   PyObject *swig_obj[1] ;
40576 
40577   if (!args) SWIG_fail;
40578   swig_obj[0] = args;
40579   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, SWIG_POINTER_DISOWN |  0 );
40580   if (!SWIG_IsOK(res1)) {
40581     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MoveVector" "', argument " "1"" of type '" "std::vector< vrna_move_t > *""'");
40582   }
40583   arg1 = reinterpret_cast< std::vector< vrna_move_t > * >(argp1);
40584   {
40585     try {
40586       delete arg1;
40587     } catch (const std::exception& e) {
40588       SWIG_exception(SWIG_RuntimeError, e.what());
40589     }
40590   }
40591   resultobj = SWIG_Py_Void();
40592   return resultobj;
40593 fail:
40594   return NULL;
40595 }
40596 
40597 
MoveVector_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40598 SWIGINTERN PyObject *MoveVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40599   PyObject *obj;
40600   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
40601   SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, SWIG_NewClientData(obj));
40602   return SWIG_Py_Void();
40603 }
40604 
MoveVector_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40605 SWIGINTERN PyObject *MoveVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40606   return SWIG_Python_InitShadowInstance(args);
40607 }
40608 
_wrap_param_id_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40609 SWIGINTERN PyObject *_wrap_param_id_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40610   PyObject *resultobj = 0;
40611   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
40612   void *argp1 = 0 ;
40613   int res1 = 0 ;
40614   PyObject *swig_obj[1] ;
40615   int result;
40616 
40617   if (!args) SWIG_fail;
40618   swig_obj[0] = args;
40619   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
40620   if (!SWIG_IsOK(res1)) {
40621     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_id_get" "', argument " "1"" of type '" "vrna_param_t *""'");
40622   }
40623   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
40624   result = (int)(int) ((arg1)->id);
40625   resultobj = SWIG_From_int(static_cast< int >(result));
40626   return resultobj;
40627 fail:
40628   return NULL;
40629 }
40630 
40631 
_wrap_param_stack_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40632 SWIGINTERN PyObject *_wrap_param_stack_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40633   PyObject *resultobj = 0;
40634   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
40635   void *argp1 = 0 ;
40636   int res1 = 0 ;
40637   PyObject *swig_obj[1] ;
40638   int (*result)[NBPAIRS+1] = 0 ;
40639 
40640   if (!args) SWIG_fail;
40641   swig_obj[0] = args;
40642   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
40643   if (!SWIG_IsOK(res1)) {
40644     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_stack_get" "', argument " "1"" of type '" "vrna_param_t *""'");
40645   }
40646   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
40647   result = (int (*)[NBPAIRS+1])(int (*)[NBPAIRS+1]) ((arg1)->stack);
40648   {
40649     size_t i, j;
40650     //result, NBPAIRS+1, NBPAIRS+1
40651     resultobj = PyList_New(NBPAIRS+1);
40652     for (i = 0; i < NBPAIRS+1; i++) {
40653       PyObject *l = PyList_New(NBPAIRS+1);
40654       for (j = 0; j < NBPAIRS+1; j++) {
40655         PyObject *o = PyLong_FromLong((long) result[i][j]);
40656         PyList_SetItem(l, j, o);
40657       }
40658       PyList_SetItem(resultobj,i,l);
40659     }
40660   }
40661   return resultobj;
40662 fail:
40663   return NULL;
40664 }
40665 
40666 
_wrap_param_hairpin_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40667 SWIGINTERN PyObject *_wrap_param_hairpin_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40668   PyObject *resultobj = 0;
40669   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
40670   void *argp1 = 0 ;
40671   int res1 = 0 ;
40672   PyObject *swig_obj[1] ;
40673   int *result = 0 ;
40674 
40675   if (!args) SWIG_fail;
40676   swig_obj[0] = args;
40677   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
40678   if (!SWIG_IsOK(res1)) {
40679     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_hairpin_get" "', argument " "1"" of type '" "vrna_param_t *""'");
40680   }
40681   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
40682   result = (int *)(int *) ((arg1)->hairpin);
40683   {
40684     int i;
40685     resultobj = PyList_New(31);
40686     for (i = 0; i < 31; i++) {
40687       PyObject *o = PyLong_FromLong((long) result[i]);
40688       PyList_SetItem(resultobj,i,o);
40689     }
40690   }
40691   return resultobj;
40692 fail:
40693   return NULL;
40694 }
40695 
40696 
_wrap_param_bulge_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40697 SWIGINTERN PyObject *_wrap_param_bulge_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40698   PyObject *resultobj = 0;
40699   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
40700   void *argp1 = 0 ;
40701   int res1 = 0 ;
40702   PyObject *swig_obj[1] ;
40703   int *result = 0 ;
40704 
40705   if (!args) SWIG_fail;
40706   swig_obj[0] = args;
40707   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
40708   if (!SWIG_IsOK(res1)) {
40709     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_bulge_get" "', argument " "1"" of type '" "vrna_param_t *""'");
40710   }
40711   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
40712   result = (int *)(int *) ((arg1)->bulge);
40713   {
40714     int i;
40715     resultobj = PyList_New(MAXLOOP+1);
40716     for (i = 0; i < MAXLOOP+1; i++) {
40717       PyObject *o = PyLong_FromLong((long) result[i]);
40718       PyList_SetItem(resultobj,i,o);
40719     }
40720   }
40721   return resultobj;
40722 fail:
40723   return NULL;
40724 }
40725 
40726 
_wrap_param_internal_loop_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40727 SWIGINTERN PyObject *_wrap_param_internal_loop_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40728   PyObject *resultobj = 0;
40729   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
40730   void *argp1 = 0 ;
40731   int res1 = 0 ;
40732   PyObject *swig_obj[1] ;
40733   int *result = 0 ;
40734 
40735   if (!args) SWIG_fail;
40736   swig_obj[0] = args;
40737   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
40738   if (!SWIG_IsOK(res1)) {
40739     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_internal_loop_get" "', argument " "1"" of type '" "vrna_param_t *""'");
40740   }
40741   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
40742   result = (int *)(int *) ((arg1)->internal_loop);
40743   {
40744     int i;
40745     resultobj = PyList_New(MAXLOOP+1);
40746     for (i = 0; i < MAXLOOP+1; i++) {
40747       PyObject *o = PyLong_FromLong((long) result[i]);
40748       PyList_SetItem(resultobj,i,o);
40749     }
40750   }
40751   return resultobj;
40752 fail:
40753   return NULL;
40754 }
40755 
40756 
_wrap_param_mismatchExt_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40757 SWIGINTERN PyObject *_wrap_param_mismatchExt_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40758   PyObject *resultobj = 0;
40759   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
40760   void *argp1 = 0 ;
40761   int res1 = 0 ;
40762   PyObject *swig_obj[1] ;
40763   int (*result)[5][5] = 0 ;
40764 
40765   if (!args) SWIG_fail;
40766   swig_obj[0] = args;
40767   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
40768   if (!SWIG_IsOK(res1)) {
40769     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_mismatchExt_get" "', argument " "1"" of type '" "vrna_param_t *""'");
40770   }
40771   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
40772   result = (int (*)[5][5])(int (*)[5][5]) ((arg1)->mismatchExt);
40773   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_5__a_5__int, 0 |  0 );
40774   return resultobj;
40775 fail:
40776   return NULL;
40777 }
40778 
40779 
_wrap_param_mismatchI_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40780 SWIGINTERN PyObject *_wrap_param_mismatchI_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40781   PyObject *resultobj = 0;
40782   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
40783   void *argp1 = 0 ;
40784   int res1 = 0 ;
40785   PyObject *swig_obj[1] ;
40786   int (*result)[5][5] = 0 ;
40787 
40788   if (!args) SWIG_fail;
40789   swig_obj[0] = args;
40790   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
40791   if (!SWIG_IsOK(res1)) {
40792     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_mismatchI_get" "', argument " "1"" of type '" "vrna_param_t *""'");
40793   }
40794   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
40795   result = (int (*)[5][5])(int (*)[5][5]) ((arg1)->mismatchI);
40796   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_5__a_5__int, 0 |  0 );
40797   return resultobj;
40798 fail:
40799   return NULL;
40800 }
40801 
40802 
_wrap_param_mismatch1nI_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40803 SWIGINTERN PyObject *_wrap_param_mismatch1nI_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40804   PyObject *resultobj = 0;
40805   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
40806   void *argp1 = 0 ;
40807   int res1 = 0 ;
40808   PyObject *swig_obj[1] ;
40809   int (*result)[5][5] = 0 ;
40810 
40811   if (!args) SWIG_fail;
40812   swig_obj[0] = args;
40813   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
40814   if (!SWIG_IsOK(res1)) {
40815     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_mismatch1nI_get" "', argument " "1"" of type '" "vrna_param_t *""'");
40816   }
40817   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
40818   result = (int (*)[5][5])(int (*)[5][5]) ((arg1)->mismatch1nI);
40819   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_5__a_5__int, 0 |  0 );
40820   return resultobj;
40821 fail:
40822   return NULL;
40823 }
40824 
40825 
_wrap_param_mismatch23I_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40826 SWIGINTERN PyObject *_wrap_param_mismatch23I_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40827   PyObject *resultobj = 0;
40828   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
40829   void *argp1 = 0 ;
40830   int res1 = 0 ;
40831   PyObject *swig_obj[1] ;
40832   int (*result)[5][5] = 0 ;
40833 
40834   if (!args) SWIG_fail;
40835   swig_obj[0] = args;
40836   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
40837   if (!SWIG_IsOK(res1)) {
40838     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_mismatch23I_get" "', argument " "1"" of type '" "vrna_param_t *""'");
40839   }
40840   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
40841   result = (int (*)[5][5])(int (*)[5][5]) ((arg1)->mismatch23I);
40842   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_5__a_5__int, 0 |  0 );
40843   return resultobj;
40844 fail:
40845   return NULL;
40846 }
40847 
40848 
_wrap_param_mismatchH_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40849 SWIGINTERN PyObject *_wrap_param_mismatchH_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40850   PyObject *resultobj = 0;
40851   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
40852   void *argp1 = 0 ;
40853   int res1 = 0 ;
40854   PyObject *swig_obj[1] ;
40855   int (*result)[5][5] = 0 ;
40856 
40857   if (!args) SWIG_fail;
40858   swig_obj[0] = args;
40859   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
40860   if (!SWIG_IsOK(res1)) {
40861     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_mismatchH_get" "', argument " "1"" of type '" "vrna_param_t *""'");
40862   }
40863   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
40864   result = (int (*)[5][5])(int (*)[5][5]) ((arg1)->mismatchH);
40865   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_5__a_5__int, 0 |  0 );
40866   return resultobj;
40867 fail:
40868   return NULL;
40869 }
40870 
40871 
_wrap_param_mismatchM_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40872 SWIGINTERN PyObject *_wrap_param_mismatchM_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40873   PyObject *resultobj = 0;
40874   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
40875   void *argp1 = 0 ;
40876   int res1 = 0 ;
40877   PyObject *swig_obj[1] ;
40878   int (*result)[5][5] = 0 ;
40879 
40880   if (!args) SWIG_fail;
40881   swig_obj[0] = args;
40882   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
40883   if (!SWIG_IsOK(res1)) {
40884     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_mismatchM_get" "', argument " "1"" of type '" "vrna_param_t *""'");
40885   }
40886   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
40887   result = (int (*)[5][5])(int (*)[5][5]) ((arg1)->mismatchM);
40888   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_5__a_5__int, 0 |  0 );
40889   return resultobj;
40890 fail:
40891   return NULL;
40892 }
40893 
40894 
_wrap_param_dangle5_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40895 SWIGINTERN PyObject *_wrap_param_dangle5_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40896   PyObject *resultobj = 0;
40897   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
40898   void *argp1 = 0 ;
40899   int res1 = 0 ;
40900   PyObject *swig_obj[1] ;
40901   int (*result)[5] = 0 ;
40902 
40903   if (!args) SWIG_fail;
40904   swig_obj[0] = args;
40905   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
40906   if (!SWIG_IsOK(res1)) {
40907     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_dangle5_get" "', argument " "1"" of type '" "vrna_param_t *""'");
40908   }
40909   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
40910   result = (int (*)[5])(int (*)[5]) ((arg1)->dangle5);
40911   {
40912     size_t i, j;
40913     //result, NBPAIRS+1, 5
40914     resultobj = PyList_New(NBPAIRS+1);
40915     for (i = 0; i < NBPAIRS+1; i++) {
40916       PyObject *l = PyList_New(5);
40917       for (j = 0; j < 5; j++) {
40918         PyObject *o = PyLong_FromLong((long) result[i][j]);
40919         PyList_SetItem(l, j, o);
40920       }
40921       PyList_SetItem(resultobj,i,l);
40922     }
40923   }
40924   return resultobj;
40925 fail:
40926   return NULL;
40927 }
40928 
40929 
_wrap_param_dangle3_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40930 SWIGINTERN PyObject *_wrap_param_dangle3_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40931   PyObject *resultobj = 0;
40932   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
40933   void *argp1 = 0 ;
40934   int res1 = 0 ;
40935   PyObject *swig_obj[1] ;
40936   int (*result)[5] = 0 ;
40937 
40938   if (!args) SWIG_fail;
40939   swig_obj[0] = args;
40940   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
40941   if (!SWIG_IsOK(res1)) {
40942     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_dangle3_get" "', argument " "1"" of type '" "vrna_param_t *""'");
40943   }
40944   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
40945   result = (int (*)[5])(int (*)[5]) ((arg1)->dangle3);
40946   {
40947     size_t i, j;
40948     //result, NBPAIRS+1, 5
40949     resultobj = PyList_New(NBPAIRS+1);
40950     for (i = 0; i < NBPAIRS+1; i++) {
40951       PyObject *l = PyList_New(5);
40952       for (j = 0; j < 5; j++) {
40953         PyObject *o = PyLong_FromLong((long) result[i][j]);
40954         PyList_SetItem(l, j, o);
40955       }
40956       PyList_SetItem(resultobj,i,l);
40957     }
40958   }
40959   return resultobj;
40960 fail:
40961   return NULL;
40962 }
40963 
40964 
_wrap_param_int11_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40965 SWIGINTERN PyObject *_wrap_param_int11_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40966   PyObject *resultobj = 0;
40967   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
40968   void *argp1 = 0 ;
40969   int res1 = 0 ;
40970   PyObject *swig_obj[1] ;
40971   int (*result)[NBPAIRS+1][5][5] = 0 ;
40972 
40973   if (!args) SWIG_fail;
40974   swig_obj[0] = args;
40975   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
40976   if (!SWIG_IsOK(res1)) {
40977     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_int11_get" "', argument " "1"" of type '" "vrna_param_t *""'");
40978   }
40979   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
40980   result = (int (*)[NBPAIRS+1][5][5])(int (*)[NBPAIRS+1][5][5]) ((arg1)->int11);
40981   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_NBPAIRS_1__a_5__a_5__int, 0 |  0 );
40982   return resultobj;
40983 fail:
40984   return NULL;
40985 }
40986 
40987 
_wrap_param_int21_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40988 SWIGINTERN PyObject *_wrap_param_int21_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40989   PyObject *resultobj = 0;
40990   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
40991   void *argp1 = 0 ;
40992   int res1 = 0 ;
40993   PyObject *swig_obj[1] ;
40994   int (*result)[NBPAIRS+1][5][5][5] = 0 ;
40995 
40996   if (!args) SWIG_fail;
40997   swig_obj[0] = args;
40998   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
40999   if (!SWIG_IsOK(res1)) {
41000     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_int21_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41001   }
41002   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41003   result = (int (*)[NBPAIRS+1][5][5][5])(int (*)[NBPAIRS+1][5][5][5]) ((arg1)->int21);
41004   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_NBPAIRS_1__a_5__a_5__a_5__int, 0 |  0 );
41005   return resultobj;
41006 fail:
41007   return NULL;
41008 }
41009 
41010 
_wrap_param_int22_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41011 SWIGINTERN PyObject *_wrap_param_int22_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41012   PyObject *resultobj = 0;
41013   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41014   void *argp1 = 0 ;
41015   int res1 = 0 ;
41016   PyObject *swig_obj[1] ;
41017   int (*result)[NBPAIRS+1][5][5][5][5] = 0 ;
41018 
41019   if (!args) SWIG_fail;
41020   swig_obj[0] = args;
41021   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41022   if (!SWIG_IsOK(res1)) {
41023     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_int22_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41024   }
41025   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41026   result = (int (*)[NBPAIRS+1][5][5][5][5])(int (*)[NBPAIRS+1][5][5][5][5]) ((arg1)->int22);
41027   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__int, 0 |  0 );
41028   return resultobj;
41029 fail:
41030   return NULL;
41031 }
41032 
41033 
_wrap_param_ninio_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41034 SWIGINTERN PyObject *_wrap_param_ninio_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41035   PyObject *resultobj = 0;
41036   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41037   void *argp1 = 0 ;
41038   int res1 = 0 ;
41039   PyObject *swig_obj[1] ;
41040   int *result = 0 ;
41041 
41042   if (!args) SWIG_fail;
41043   swig_obj[0] = args;
41044   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41045   if (!SWIG_IsOK(res1)) {
41046     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_ninio_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41047   }
41048   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41049   result = (int *)(int *) ((arg1)->ninio);
41050   {
41051     int i;
41052     resultobj = PyList_New(5);
41053     for (i = 0; i < 5; i++) {
41054       PyObject *o = PyLong_FromLong((long) result[i]);
41055       PyList_SetItem(resultobj,i,o);
41056     }
41057   }
41058   return resultobj;
41059 fail:
41060   return NULL;
41061 }
41062 
41063 
_wrap_param_lxc_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41064 SWIGINTERN PyObject *_wrap_param_lxc_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41065   PyObject *resultobj = 0;
41066   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41067   void *argp1 = 0 ;
41068   int res1 = 0 ;
41069   PyObject *swig_obj[1] ;
41070   double result;
41071 
41072   if (!args) SWIG_fail;
41073   swig_obj[0] = args;
41074   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41075   if (!SWIG_IsOK(res1)) {
41076     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_lxc_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41077   }
41078   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41079   result = (double)(double) ((arg1)->lxc);
41080   resultobj = SWIG_From_double(static_cast< double >(result));
41081   return resultobj;
41082 fail:
41083   return NULL;
41084 }
41085 
41086 
_wrap_param_MLbase_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41087 SWIGINTERN PyObject *_wrap_param_MLbase_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41088   PyObject *resultobj = 0;
41089   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41090   void *argp1 = 0 ;
41091   int res1 = 0 ;
41092   PyObject *swig_obj[1] ;
41093   int result;
41094 
41095   if (!args) SWIG_fail;
41096   swig_obj[0] = args;
41097   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41098   if (!SWIG_IsOK(res1)) {
41099     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_MLbase_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41100   }
41101   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41102   result = (int)(int) ((arg1)->MLbase);
41103   resultobj = SWIG_From_int(static_cast< int >(result));
41104   return resultobj;
41105 fail:
41106   return NULL;
41107 }
41108 
41109 
_wrap_param_MLintern_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41110 SWIGINTERN PyObject *_wrap_param_MLintern_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41111   PyObject *resultobj = 0;
41112   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41113   void *argp1 = 0 ;
41114   int res1 = 0 ;
41115   PyObject *swig_obj[1] ;
41116   int *result = 0 ;
41117 
41118   if (!args) SWIG_fail;
41119   swig_obj[0] = args;
41120   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41121   if (!SWIG_IsOK(res1)) {
41122     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_MLintern_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41123   }
41124   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41125   result = (int *)(int *) ((arg1)->MLintern);
41126   {
41127     int i;
41128     resultobj = PyList_New(NBPAIRS+1);
41129     for (i = 0; i < NBPAIRS+1; i++) {
41130       PyObject *o = PyLong_FromLong((long) result[i]);
41131       PyList_SetItem(resultobj,i,o);
41132     }
41133   }
41134   return resultobj;
41135 fail:
41136   return NULL;
41137 }
41138 
41139 
_wrap_param_MLclosing_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41140 SWIGINTERN PyObject *_wrap_param_MLclosing_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41141   PyObject *resultobj = 0;
41142   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41143   void *argp1 = 0 ;
41144   int res1 = 0 ;
41145   PyObject *swig_obj[1] ;
41146   int result;
41147 
41148   if (!args) SWIG_fail;
41149   swig_obj[0] = args;
41150   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41151   if (!SWIG_IsOK(res1)) {
41152     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_MLclosing_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41153   }
41154   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41155   result = (int)(int) ((arg1)->MLclosing);
41156   resultobj = SWIG_From_int(static_cast< int >(result));
41157   return resultobj;
41158 fail:
41159   return NULL;
41160 }
41161 
41162 
_wrap_param_TerminalAU_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41163 SWIGINTERN PyObject *_wrap_param_TerminalAU_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41164   PyObject *resultobj = 0;
41165   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41166   void *argp1 = 0 ;
41167   int res1 = 0 ;
41168   PyObject *swig_obj[1] ;
41169   int result;
41170 
41171   if (!args) SWIG_fail;
41172   swig_obj[0] = args;
41173   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41174   if (!SWIG_IsOK(res1)) {
41175     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_TerminalAU_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41176   }
41177   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41178   result = (int)(int) ((arg1)->TerminalAU);
41179   resultobj = SWIG_From_int(static_cast< int >(result));
41180   return resultobj;
41181 fail:
41182   return NULL;
41183 }
41184 
41185 
_wrap_param_DuplexInit_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41186 SWIGINTERN PyObject *_wrap_param_DuplexInit_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41187   PyObject *resultobj = 0;
41188   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41189   void *argp1 = 0 ;
41190   int res1 = 0 ;
41191   PyObject *swig_obj[1] ;
41192   int result;
41193 
41194   if (!args) SWIG_fail;
41195   swig_obj[0] = args;
41196   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41197   if (!SWIG_IsOK(res1)) {
41198     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_DuplexInit_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41199   }
41200   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41201   result = (int)(int) ((arg1)->DuplexInit);
41202   resultobj = SWIG_From_int(static_cast< int >(result));
41203   return resultobj;
41204 fail:
41205   return NULL;
41206 }
41207 
41208 
_wrap_param_Tetraloop_E_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41209 SWIGINTERN PyObject *_wrap_param_Tetraloop_E_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41210   PyObject *resultobj = 0;
41211   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41212   void *argp1 = 0 ;
41213   int res1 = 0 ;
41214   PyObject *swig_obj[1] ;
41215   int *result = 0 ;
41216 
41217   if (!args) SWIG_fail;
41218   swig_obj[0] = args;
41219   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41220   if (!SWIG_IsOK(res1)) {
41221     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_Tetraloop_E_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41222   }
41223   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41224   result = (int *)(int *) ((arg1)->Tetraloop_E);
41225   {
41226     int i;
41227     resultobj = PyList_New(200);
41228     for (i = 0; i < 200; i++) {
41229       PyObject *o = PyLong_FromLong((long) result[i]);
41230       PyList_SetItem(resultobj,i,o);
41231     }
41232   }
41233   return resultobj;
41234 fail:
41235   return NULL;
41236 }
41237 
41238 
_wrap_param_Tetraloops_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41239 SWIGINTERN PyObject *_wrap_param_Tetraloops_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41240   PyObject *resultobj = 0;
41241   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41242   void *argp1 = 0 ;
41243   int res1 = 0 ;
41244   PyObject *swig_obj[1] ;
41245   char *result = 0 ;
41246 
41247   if (!args) SWIG_fail;
41248   swig_obj[0] = args;
41249   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41250   if (!SWIG_IsOK(res1)) {
41251     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_Tetraloops_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41252   }
41253   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41254   result = (char *)(char *) ((arg1)->Tetraloops);
41255   {
41256     size_t size = SWIG_strnlen(result, 1401);
41257 
41258 
41259 
41260     resultobj = SWIG_FromCharPtrAndSize(result, size);
41261   }
41262   return resultobj;
41263 fail:
41264   return NULL;
41265 }
41266 
41267 
_wrap_param_Triloop_E_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41268 SWIGINTERN PyObject *_wrap_param_Triloop_E_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41269   PyObject *resultobj = 0;
41270   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41271   void *argp1 = 0 ;
41272   int res1 = 0 ;
41273   PyObject *swig_obj[1] ;
41274   int *result = 0 ;
41275 
41276   if (!args) SWIG_fail;
41277   swig_obj[0] = args;
41278   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41279   if (!SWIG_IsOK(res1)) {
41280     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_Triloop_E_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41281   }
41282   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41283   result = (int *)(int *) ((arg1)->Triloop_E);
41284   {
41285     int i;
41286     resultobj = PyList_New(40);
41287     for (i = 0; i < 40; i++) {
41288       PyObject *o = PyLong_FromLong((long) result[i]);
41289       PyList_SetItem(resultobj,i,o);
41290     }
41291   }
41292   return resultobj;
41293 fail:
41294   return NULL;
41295 }
41296 
41297 
_wrap_param_Triloops_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41298 SWIGINTERN PyObject *_wrap_param_Triloops_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41299   PyObject *resultobj = 0;
41300   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41301   void *argp1 = 0 ;
41302   int res1 = 0 ;
41303   PyObject *swig_obj[1] ;
41304   char *result = 0 ;
41305 
41306   if (!args) SWIG_fail;
41307   swig_obj[0] = args;
41308   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41309   if (!SWIG_IsOK(res1)) {
41310     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_Triloops_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41311   }
41312   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41313   result = (char *)(char *) ((arg1)->Triloops);
41314   {
41315     size_t size = SWIG_strnlen(result, 241);
41316 
41317 
41318 
41319     resultobj = SWIG_FromCharPtrAndSize(result, size);
41320   }
41321   return resultobj;
41322 fail:
41323   return NULL;
41324 }
41325 
41326 
_wrap_param_Hexaloop_E_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41327 SWIGINTERN PyObject *_wrap_param_Hexaloop_E_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41328   PyObject *resultobj = 0;
41329   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41330   void *argp1 = 0 ;
41331   int res1 = 0 ;
41332   PyObject *swig_obj[1] ;
41333   int *result = 0 ;
41334 
41335   if (!args) SWIG_fail;
41336   swig_obj[0] = args;
41337   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41338   if (!SWIG_IsOK(res1)) {
41339     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_Hexaloop_E_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41340   }
41341   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41342   result = (int *)(int *) ((arg1)->Hexaloop_E);
41343   {
41344     int i;
41345     resultobj = PyList_New(40);
41346     for (i = 0; i < 40; i++) {
41347       PyObject *o = PyLong_FromLong((long) result[i]);
41348       PyList_SetItem(resultobj,i,o);
41349     }
41350   }
41351   return resultobj;
41352 fail:
41353   return NULL;
41354 }
41355 
41356 
_wrap_param_Hexaloops_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41357 SWIGINTERN PyObject *_wrap_param_Hexaloops_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41358   PyObject *resultobj = 0;
41359   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41360   void *argp1 = 0 ;
41361   int res1 = 0 ;
41362   PyObject *swig_obj[1] ;
41363   char *result = 0 ;
41364 
41365   if (!args) SWIG_fail;
41366   swig_obj[0] = args;
41367   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41368   if (!SWIG_IsOK(res1)) {
41369     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_Hexaloops_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41370   }
41371   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41372   result = (char *)(char *) ((arg1)->Hexaloops);
41373   {
41374     size_t size = SWIG_strnlen(result, 1801);
41375 
41376 
41377 
41378     resultobj = SWIG_FromCharPtrAndSize(result, size);
41379   }
41380   return resultobj;
41381 fail:
41382   return NULL;
41383 }
41384 
41385 
_wrap_param_TripleC_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41386 SWIGINTERN PyObject *_wrap_param_TripleC_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41387   PyObject *resultobj = 0;
41388   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41389   void *argp1 = 0 ;
41390   int res1 = 0 ;
41391   PyObject *swig_obj[1] ;
41392   int result;
41393 
41394   if (!args) SWIG_fail;
41395   swig_obj[0] = args;
41396   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41397   if (!SWIG_IsOK(res1)) {
41398     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_TripleC_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41399   }
41400   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41401   result = (int)(int) ((arg1)->TripleC);
41402   resultobj = SWIG_From_int(static_cast< int >(result));
41403   return resultobj;
41404 fail:
41405   return NULL;
41406 }
41407 
41408 
_wrap_param_MultipleCA_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41409 SWIGINTERN PyObject *_wrap_param_MultipleCA_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41410   PyObject *resultobj = 0;
41411   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41412   void *argp1 = 0 ;
41413   int res1 = 0 ;
41414   PyObject *swig_obj[1] ;
41415   int result;
41416 
41417   if (!args) SWIG_fail;
41418   swig_obj[0] = args;
41419   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41420   if (!SWIG_IsOK(res1)) {
41421     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_MultipleCA_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41422   }
41423   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41424   result = (int)(int) ((arg1)->MultipleCA);
41425   resultobj = SWIG_From_int(static_cast< int >(result));
41426   return resultobj;
41427 fail:
41428   return NULL;
41429 }
41430 
41431 
_wrap_param_MultipleCB_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41432 SWIGINTERN PyObject *_wrap_param_MultipleCB_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41433   PyObject *resultobj = 0;
41434   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41435   void *argp1 = 0 ;
41436   int res1 = 0 ;
41437   PyObject *swig_obj[1] ;
41438   int result;
41439 
41440   if (!args) SWIG_fail;
41441   swig_obj[0] = args;
41442   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41443   if (!SWIG_IsOK(res1)) {
41444     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_MultipleCB_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41445   }
41446   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41447   result = (int)(int) ((arg1)->MultipleCB);
41448   resultobj = SWIG_From_int(static_cast< int >(result));
41449   return resultobj;
41450 fail:
41451   return NULL;
41452 }
41453 
41454 
_wrap_param_gquad_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41455 SWIGINTERN PyObject *_wrap_param_gquad_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41456   PyObject *resultobj = 0;
41457   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41458   void *argp1 = 0 ;
41459   int res1 = 0 ;
41460   PyObject *swig_obj[1] ;
41461   int (*result)[3*VRNA_GQUAD_MAX_LINKER_LENGTH+1] = 0 ;
41462 
41463   if (!args) SWIG_fail;
41464   swig_obj[0] = args;
41465   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41466   if (!SWIG_IsOK(res1)) {
41467     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_gquad_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41468   }
41469   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41470   result = (int (*)[3*VRNA_GQUAD_MAX_LINKER_LENGTH+1])(int (*)[3*VRNA_GQUAD_MAX_LINKER_LENGTH+1]) ((arg1)->gquad);
41471   {
41472     size_t i, j;
41473     //result, VRNA_GQUAD_MAX_STACK_SIZE+1, 3*VRNA_GQUAD_MAX_LINKER_LENGTH+1
41474     resultobj = PyList_New(VRNA_GQUAD_MAX_STACK_SIZE+1);
41475     for (i = 0; i < VRNA_GQUAD_MAX_STACK_SIZE+1; i++) {
41476       PyObject *l = PyList_New(3*VRNA_GQUAD_MAX_LINKER_LENGTH+1);
41477       for (j = 0; j < 3*VRNA_GQUAD_MAX_LINKER_LENGTH+1; j++) {
41478         PyObject *o = PyLong_FromLong((long) result[i][j]);
41479         PyList_SetItem(l, j, o);
41480       }
41481       PyList_SetItem(resultobj,i,l);
41482     }
41483   }
41484   return resultobj;
41485 fail:
41486   return NULL;
41487 }
41488 
41489 
_wrap_param_gquadLayerMismatch_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41490 SWIGINTERN PyObject *_wrap_param_gquadLayerMismatch_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41491   PyObject *resultobj = 0;
41492   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41493   void *argp1 = 0 ;
41494   int res1 = 0 ;
41495   PyObject *swig_obj[1] ;
41496   int result;
41497 
41498   if (!args) SWIG_fail;
41499   swig_obj[0] = args;
41500   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41501   if (!SWIG_IsOK(res1)) {
41502     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_gquadLayerMismatch_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41503   }
41504   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41505   result = (int)(int) ((arg1)->gquadLayerMismatch);
41506   resultobj = SWIG_From_int(static_cast< int >(result));
41507   return resultobj;
41508 fail:
41509   return NULL;
41510 }
41511 
41512 
_wrap_param_gquadLayerMismatchMax_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41513 SWIGINTERN PyObject *_wrap_param_gquadLayerMismatchMax_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41514   PyObject *resultobj = 0;
41515   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41516   void *argp1 = 0 ;
41517   int res1 = 0 ;
41518   PyObject *swig_obj[1] ;
41519   int result;
41520 
41521   if (!args) SWIG_fail;
41522   swig_obj[0] = args;
41523   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41524   if (!SWIG_IsOK(res1)) {
41525     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_gquadLayerMismatchMax_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41526   }
41527   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41528   result = (int)(int) ((arg1)->gquadLayerMismatchMax);
41529   resultobj = SWIG_From_int(static_cast< int >(result));
41530   return resultobj;
41531 fail:
41532   return NULL;
41533 }
41534 
41535 
_wrap_param_temperature_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41536 SWIGINTERN PyObject *_wrap_param_temperature_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41537   PyObject *resultobj = 0;
41538   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41539   void *argp1 = 0 ;
41540   int res1 = 0 ;
41541   PyObject *swig_obj[1] ;
41542   double result;
41543 
41544   if (!args) SWIG_fail;
41545   swig_obj[0] = args;
41546   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41547   if (!SWIG_IsOK(res1)) {
41548     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_temperature_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41549   }
41550   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41551   result = (double)(double) ((arg1)->temperature);
41552   resultobj = SWIG_From_double(static_cast< double >(result));
41553   return resultobj;
41554 fail:
41555   return NULL;
41556 }
41557 
41558 
_wrap_param_model_details_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41559 SWIGINTERN PyObject *_wrap_param_model_details_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41560   PyObject *resultobj = 0;
41561   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41562   void *argp1 = 0 ;
41563   int res1 = 0 ;
41564   PyObject *swig_obj[1] ;
41565   vrna_md_t *result = 0 ;
41566 
41567   if (!args) SWIG_fail;
41568   swig_obj[0] = args;
41569   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41570   if (!SWIG_IsOK(res1)) {
41571     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_model_details_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41572   }
41573   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41574   result = (vrna_md_t *)& ((arg1)->model_details);
41575   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_md_t, 0 |  0 );
41576   return resultobj;
41577 fail:
41578   return NULL;
41579 }
41580 
41581 
_wrap_param_param_file_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41582 SWIGINTERN PyObject *_wrap_param_param_file_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41583   PyObject *resultobj = 0;
41584   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41585   void *argp1 = 0 ;
41586   int res1 = 0 ;
41587   PyObject *swig_obj[1] ;
41588   char *result = 0 ;
41589 
41590   if (!args) SWIG_fail;
41591   swig_obj[0] = args;
41592   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41593   if (!SWIG_IsOK(res1)) {
41594     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_param_file_get" "', argument " "1"" of type '" "vrna_param_t *""'");
41595   }
41596   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41597   result = (char *)(char *) ((arg1)->param_file);
41598   {
41599     size_t size = SWIG_strnlen(result, 256);
41600 
41601 
41602 
41603     resultobj = SWIG_FromCharPtrAndSize(result, size);
41604   }
41605   return resultobj;
41606 fail:
41607   return NULL;
41608 }
41609 
41610 
_wrap_new_param(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)41611 SWIGINTERN PyObject *_wrap_new_param(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41612   PyObject *resultobj = 0;
41613   vrna_md_t *arg1 = (vrna_md_t *) NULL ;
41614   void *argp1 = 0 ;
41615   int res1 = 0 ;
41616   PyObject * obj0 = 0 ;
41617   char * kwnames[] = {
41618     (char *)"model_details",  NULL
41619   };
41620   vrna_param_t *result = 0 ;
41621 
41622   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|O:new_param", kwnames, &obj0)) SWIG_fail;
41623   if (obj0) {
41624     res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
41625     if (!SWIG_IsOK(res1)) {
41626       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_param" "', argument " "1"" of type '" "vrna_md_t *""'");
41627     }
41628     arg1 = reinterpret_cast< vrna_md_t * >(argp1);
41629   }
41630   {
41631     try {
41632       result = (vrna_param_t *)new_vrna_param_t(arg1);
41633     } catch (const std::exception& e) {
41634       SWIG_exception(SWIG_RuntimeError, e.what());
41635     }
41636   }
41637   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_param_t, SWIG_POINTER_NEW |  0 );
41638   return resultobj;
41639 fail:
41640   return NULL;
41641 }
41642 
41643 
_wrap_param___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41644 SWIGINTERN PyObject *_wrap_param___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41645   PyObject *resultobj = 0;
41646   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41647   void *argp1 = 0 ;
41648   int res1 = 0 ;
41649   PyObject *swig_obj[1] ;
41650   std::string result;
41651 
41652   if (!args) SWIG_fail;
41653   swig_obj[0] = args;
41654   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, 0 |  0 );
41655   if (!SWIG_IsOK(res1)) {
41656     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param___str__" "', argument " "1"" of type '" "vrna_param_t *""'");
41657   }
41658   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41659   {
41660     try {
41661       result = vrna_param_t___str__(arg1);
41662     } catch (const std::exception& e) {
41663       SWIG_exception(SWIG_RuntimeError, e.what());
41664     }
41665   }
41666   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
41667   return resultobj;
41668 fail:
41669   return NULL;
41670 }
41671 
41672 
_wrap_delete_param(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41673 SWIGINTERN PyObject *_wrap_delete_param(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41674   PyObject *resultobj = 0;
41675   vrna_param_t *arg1 = (vrna_param_t *) 0 ;
41676   void *argp1 = 0 ;
41677   int res1 = 0 ;
41678   PyObject *swig_obj[1] ;
41679 
41680   if (!args) SWIG_fail;
41681   swig_obj[0] = args;
41682   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_param_t, SWIG_POINTER_DISOWN |  0 );
41683   if (!SWIG_IsOK(res1)) {
41684     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_param" "', argument " "1"" of type '" "vrna_param_t *""'");
41685   }
41686   arg1 = reinterpret_cast< vrna_param_t * >(argp1);
41687   {
41688     try {
41689       delete arg1;
41690     } catch (const std::exception& e) {
41691       SWIG_exception(SWIG_RuntimeError, e.what());
41692     }
41693   }
41694   resultobj = SWIG_Py_Void();
41695   return resultobj;
41696 fail:
41697   return NULL;
41698 }
41699 
41700 
param_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41701 SWIGINTERN PyObject *param_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41702   PyObject *obj;
41703   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
41704   SWIG_TypeNewClientData(SWIGTYPE_p_vrna_param_t, SWIG_NewClientData(obj));
41705   return SWIG_Py_Void();
41706 }
41707 
param_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41708 SWIGINTERN PyObject *param_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41709   return SWIG_Python_InitShadowInstance(args);
41710 }
41711 
_wrap_exp_param_id_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41712 SWIGINTERN PyObject *_wrap_exp_param_id_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41713   PyObject *resultobj = 0;
41714   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
41715   void *argp1 = 0 ;
41716   int res1 = 0 ;
41717   PyObject *swig_obj[1] ;
41718   int result;
41719 
41720   if (!args) SWIG_fail;
41721   swig_obj[0] = args;
41722   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
41723   if (!SWIG_IsOK(res1)) {
41724     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_id_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
41725   }
41726   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
41727   result = (int)(int) ((arg1)->id);
41728   resultobj = SWIG_From_int(static_cast< int >(result));
41729   return resultobj;
41730 fail:
41731   return NULL;
41732 }
41733 
41734 
_wrap_exp_param_expstack_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41735 SWIGINTERN PyObject *_wrap_exp_param_expstack_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41736   PyObject *resultobj = 0;
41737   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
41738   void *argp1 = 0 ;
41739   int res1 = 0 ;
41740   PyObject *swig_obj[1] ;
41741   double (*result)[NBPAIRS+1] = 0 ;
41742 
41743   if (!args) SWIG_fail;
41744   swig_obj[0] = args;
41745   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
41746   if (!SWIG_IsOK(res1)) {
41747     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expstack_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
41748   }
41749   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
41750   result = (double (*)[NBPAIRS+1])(double (*)[NBPAIRS+1]) ((arg1)->expstack);
41751   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_NBPAIRS_1__double, 0 |  0 );
41752   return resultobj;
41753 fail:
41754   return NULL;
41755 }
41756 
41757 
_wrap_exp_param_exphairpin_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41758 SWIGINTERN PyObject *_wrap_exp_param_exphairpin_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41759   PyObject *resultobj = 0;
41760   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
41761   void *argp1 = 0 ;
41762   int res1 = 0 ;
41763   PyObject *swig_obj[1] ;
41764   double *result = 0 ;
41765 
41766   if (!args) SWIG_fail;
41767   swig_obj[0] = args;
41768   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
41769   if (!SWIG_IsOK(res1)) {
41770     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_exphairpin_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
41771   }
41772   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
41773   result = (double *)(double *) ((arg1)->exphairpin);
41774   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 |  0 );
41775   return resultobj;
41776 fail:
41777   return NULL;
41778 }
41779 
41780 
_wrap_exp_param_expbulge_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41781 SWIGINTERN PyObject *_wrap_exp_param_expbulge_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41782   PyObject *resultobj = 0;
41783   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
41784   void *argp1 = 0 ;
41785   int res1 = 0 ;
41786   PyObject *swig_obj[1] ;
41787   double *result = 0 ;
41788 
41789   if (!args) SWIG_fail;
41790   swig_obj[0] = args;
41791   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
41792   if (!SWIG_IsOK(res1)) {
41793     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expbulge_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
41794   }
41795   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
41796   result = (double *)(double *) ((arg1)->expbulge);
41797   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 |  0 );
41798   return resultobj;
41799 fail:
41800   return NULL;
41801 }
41802 
41803 
_wrap_exp_param_expinternal_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41804 SWIGINTERN PyObject *_wrap_exp_param_expinternal_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41805   PyObject *resultobj = 0;
41806   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
41807   void *argp1 = 0 ;
41808   int res1 = 0 ;
41809   PyObject *swig_obj[1] ;
41810   double *result = 0 ;
41811 
41812   if (!args) SWIG_fail;
41813   swig_obj[0] = args;
41814   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
41815   if (!SWIG_IsOK(res1)) {
41816     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expinternal_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
41817   }
41818   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
41819   result = (double *)(double *) ((arg1)->expinternal);
41820   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 |  0 );
41821   return resultobj;
41822 fail:
41823   return NULL;
41824 }
41825 
41826 
_wrap_exp_param_expmismatchExt_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41827 SWIGINTERN PyObject *_wrap_exp_param_expmismatchExt_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41828   PyObject *resultobj = 0;
41829   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
41830   void *argp1 = 0 ;
41831   int res1 = 0 ;
41832   PyObject *swig_obj[1] ;
41833   double (*result)[5][5] = 0 ;
41834 
41835   if (!args) SWIG_fail;
41836   swig_obj[0] = args;
41837   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
41838   if (!SWIG_IsOK(res1)) {
41839     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expmismatchExt_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
41840   }
41841   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
41842   result = (double (*)[5][5])(double (*)[5][5]) ((arg1)->expmismatchExt);
41843   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_5__a_5__double, 0 |  0 );
41844   return resultobj;
41845 fail:
41846   return NULL;
41847 }
41848 
41849 
_wrap_exp_param_expmismatchI_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41850 SWIGINTERN PyObject *_wrap_exp_param_expmismatchI_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41851   PyObject *resultobj = 0;
41852   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
41853   void *argp1 = 0 ;
41854   int res1 = 0 ;
41855   PyObject *swig_obj[1] ;
41856   double (*result)[5][5] = 0 ;
41857 
41858   if (!args) SWIG_fail;
41859   swig_obj[0] = args;
41860   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
41861   if (!SWIG_IsOK(res1)) {
41862     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expmismatchI_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
41863   }
41864   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
41865   result = (double (*)[5][5])(double (*)[5][5]) ((arg1)->expmismatchI);
41866   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_5__a_5__double, 0 |  0 );
41867   return resultobj;
41868 fail:
41869   return NULL;
41870 }
41871 
41872 
_wrap_exp_param_expmismatch23I_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41873 SWIGINTERN PyObject *_wrap_exp_param_expmismatch23I_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41874   PyObject *resultobj = 0;
41875   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
41876   void *argp1 = 0 ;
41877   int res1 = 0 ;
41878   PyObject *swig_obj[1] ;
41879   double (*result)[5][5] = 0 ;
41880 
41881   if (!args) SWIG_fail;
41882   swig_obj[0] = args;
41883   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
41884   if (!SWIG_IsOK(res1)) {
41885     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expmismatch23I_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
41886   }
41887   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
41888   result = (double (*)[5][5])(double (*)[5][5]) ((arg1)->expmismatch23I);
41889   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_5__a_5__double, 0 |  0 );
41890   return resultobj;
41891 fail:
41892   return NULL;
41893 }
41894 
41895 
_wrap_exp_param_expmismatch1nI_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41896 SWIGINTERN PyObject *_wrap_exp_param_expmismatch1nI_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41897   PyObject *resultobj = 0;
41898   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
41899   void *argp1 = 0 ;
41900   int res1 = 0 ;
41901   PyObject *swig_obj[1] ;
41902   double (*result)[5][5] = 0 ;
41903 
41904   if (!args) SWIG_fail;
41905   swig_obj[0] = args;
41906   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
41907   if (!SWIG_IsOK(res1)) {
41908     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expmismatch1nI_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
41909   }
41910   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
41911   result = (double (*)[5][5])(double (*)[5][5]) ((arg1)->expmismatch1nI);
41912   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_5__a_5__double, 0 |  0 );
41913   return resultobj;
41914 fail:
41915   return NULL;
41916 }
41917 
41918 
_wrap_exp_param_expmismatchH_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41919 SWIGINTERN PyObject *_wrap_exp_param_expmismatchH_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41920   PyObject *resultobj = 0;
41921   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
41922   void *argp1 = 0 ;
41923   int res1 = 0 ;
41924   PyObject *swig_obj[1] ;
41925   double (*result)[5][5] = 0 ;
41926 
41927   if (!args) SWIG_fail;
41928   swig_obj[0] = args;
41929   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
41930   if (!SWIG_IsOK(res1)) {
41931     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expmismatchH_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
41932   }
41933   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
41934   result = (double (*)[5][5])(double (*)[5][5]) ((arg1)->expmismatchH);
41935   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_5__a_5__double, 0 |  0 );
41936   return resultobj;
41937 fail:
41938   return NULL;
41939 }
41940 
41941 
_wrap_exp_param_expmismatchM_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41942 SWIGINTERN PyObject *_wrap_exp_param_expmismatchM_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41943   PyObject *resultobj = 0;
41944   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
41945   void *argp1 = 0 ;
41946   int res1 = 0 ;
41947   PyObject *swig_obj[1] ;
41948   double (*result)[5][5] = 0 ;
41949 
41950   if (!args) SWIG_fail;
41951   swig_obj[0] = args;
41952   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
41953   if (!SWIG_IsOK(res1)) {
41954     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expmismatchM_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
41955   }
41956   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
41957   result = (double (*)[5][5])(double (*)[5][5]) ((arg1)->expmismatchM);
41958   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_5__a_5__double, 0 |  0 );
41959   return resultobj;
41960 fail:
41961   return NULL;
41962 }
41963 
41964 
_wrap_exp_param_expdangle5_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41965 SWIGINTERN PyObject *_wrap_exp_param_expdangle5_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41966   PyObject *resultobj = 0;
41967   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
41968   void *argp1 = 0 ;
41969   int res1 = 0 ;
41970   PyObject *swig_obj[1] ;
41971   double (*result)[5] = 0 ;
41972 
41973   if (!args) SWIG_fail;
41974   swig_obj[0] = args;
41975   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
41976   if (!SWIG_IsOK(res1)) {
41977     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expdangle5_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
41978   }
41979   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
41980   result = (double (*)[5])(double (*)[5]) ((arg1)->expdangle5);
41981   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_5__double, 0 |  0 );
41982   return resultobj;
41983 fail:
41984   return NULL;
41985 }
41986 
41987 
_wrap_exp_param_expdangle3_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41988 SWIGINTERN PyObject *_wrap_exp_param_expdangle3_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41989   PyObject *resultobj = 0;
41990   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
41991   void *argp1 = 0 ;
41992   int res1 = 0 ;
41993   PyObject *swig_obj[1] ;
41994   double (*result)[5] = 0 ;
41995 
41996   if (!args) SWIG_fail;
41997   swig_obj[0] = args;
41998   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
41999   if (!SWIG_IsOK(res1)) {
42000     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expdangle3_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42001   }
42002   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42003   result = (double (*)[5])(double (*)[5]) ((arg1)->expdangle3);
42004   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_5__double, 0 |  0 );
42005   return resultobj;
42006 fail:
42007   return NULL;
42008 }
42009 
42010 
_wrap_exp_param_expint11_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42011 SWIGINTERN PyObject *_wrap_exp_param_expint11_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42012   PyObject *resultobj = 0;
42013   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42014   void *argp1 = 0 ;
42015   int res1 = 0 ;
42016   PyObject *swig_obj[1] ;
42017   double (*result)[NBPAIRS+1][5][5] = 0 ;
42018 
42019   if (!args) SWIG_fail;
42020   swig_obj[0] = args;
42021   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42022   if (!SWIG_IsOK(res1)) {
42023     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expint11_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42024   }
42025   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42026   result = (double (*)[NBPAIRS+1][5][5])(double (*)[NBPAIRS+1][5][5]) ((arg1)->expint11);
42027   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_NBPAIRS_1__a_5__a_5__double, 0 |  0 );
42028   return resultobj;
42029 fail:
42030   return NULL;
42031 }
42032 
42033 
_wrap_exp_param_expint21_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42034 SWIGINTERN PyObject *_wrap_exp_param_expint21_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42035   PyObject *resultobj = 0;
42036   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42037   void *argp1 = 0 ;
42038   int res1 = 0 ;
42039   PyObject *swig_obj[1] ;
42040   double (*result)[NBPAIRS+1][5][5][5] = 0 ;
42041 
42042   if (!args) SWIG_fail;
42043   swig_obj[0] = args;
42044   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42045   if (!SWIG_IsOK(res1)) {
42046     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expint21_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42047   }
42048   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42049   result = (double (*)[NBPAIRS+1][5][5][5])(double (*)[NBPAIRS+1][5][5][5]) ((arg1)->expint21);
42050   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_NBPAIRS_1__a_5__a_5__a_5__double, 0 |  0 );
42051   return resultobj;
42052 fail:
42053   return NULL;
42054 }
42055 
42056 
_wrap_exp_param_expint22_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42057 SWIGINTERN PyObject *_wrap_exp_param_expint22_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42058   PyObject *resultobj = 0;
42059   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42060   void *argp1 = 0 ;
42061   int res1 = 0 ;
42062   PyObject *swig_obj[1] ;
42063   double (*result)[NBPAIRS+1][5][5][5][5] = 0 ;
42064 
42065   if (!args) SWIG_fail;
42066   swig_obj[0] = args;
42067   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42068   if (!SWIG_IsOK(res1)) {
42069     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expint22_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42070   }
42071   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42072   result = (double (*)[NBPAIRS+1][5][5][5][5])(double (*)[NBPAIRS+1][5][5][5][5]) ((arg1)->expint22);
42073   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__double, 0 |  0 );
42074   return resultobj;
42075 fail:
42076   return NULL;
42077 }
42078 
42079 
_wrap_exp_param_expninio_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42080 SWIGINTERN PyObject *_wrap_exp_param_expninio_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42081   PyObject *resultobj = 0;
42082   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42083   void *argp1 = 0 ;
42084   int res1 = 0 ;
42085   PyObject *swig_obj[1] ;
42086   double (*result)[MAXLOOP+1] = 0 ;
42087 
42088   if (!args) SWIG_fail;
42089   swig_obj[0] = args;
42090   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42091   if (!SWIG_IsOK(res1)) {
42092     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expninio_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42093   }
42094   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42095   result = (double (*)[MAXLOOP+1])(double (*)[MAXLOOP+1]) ((arg1)->expninio);
42096   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_MAXLOOP_1__double, 0 |  0 );
42097   return resultobj;
42098 fail:
42099   return NULL;
42100 }
42101 
42102 
_wrap_exp_param_lxc_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42103 SWIGINTERN PyObject *_wrap_exp_param_lxc_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42104   PyObject *resultobj = 0;
42105   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42106   void *argp1 = 0 ;
42107   int res1 = 0 ;
42108   PyObject *swig_obj[1] ;
42109   double result;
42110 
42111   if (!args) SWIG_fail;
42112   swig_obj[0] = args;
42113   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42114   if (!SWIG_IsOK(res1)) {
42115     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_lxc_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42116   }
42117   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42118   result = (double)(double) ((arg1)->lxc);
42119   resultobj = SWIG_From_double(static_cast< double >(result));
42120   return resultobj;
42121 fail:
42122   return NULL;
42123 }
42124 
42125 
_wrap_exp_param_expMLbase_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42126 SWIGINTERN PyObject *_wrap_exp_param_expMLbase_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42127   PyObject *resultobj = 0;
42128   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42129   void *argp1 = 0 ;
42130   int res1 = 0 ;
42131   PyObject *swig_obj[1] ;
42132   double result;
42133 
42134   if (!args) SWIG_fail;
42135   swig_obj[0] = args;
42136   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42137   if (!SWIG_IsOK(res1)) {
42138     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expMLbase_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42139   }
42140   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42141   result = (double)(double) ((arg1)->expMLbase);
42142   resultobj = SWIG_From_double(static_cast< double >(result));
42143   return resultobj;
42144 fail:
42145   return NULL;
42146 }
42147 
42148 
_wrap_exp_param_expMLintern_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42149 SWIGINTERN PyObject *_wrap_exp_param_expMLintern_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42150   PyObject *resultobj = 0;
42151   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42152   void *argp1 = 0 ;
42153   int res1 = 0 ;
42154   PyObject *swig_obj[1] ;
42155   double *result = 0 ;
42156 
42157   if (!args) SWIG_fail;
42158   swig_obj[0] = args;
42159   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42160   if (!SWIG_IsOK(res1)) {
42161     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expMLintern_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42162   }
42163   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42164   result = (double *)(double *) ((arg1)->expMLintern);
42165   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 |  0 );
42166   return resultobj;
42167 fail:
42168   return NULL;
42169 }
42170 
42171 
_wrap_exp_param_expMLclosing_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42172 SWIGINTERN PyObject *_wrap_exp_param_expMLclosing_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42173   PyObject *resultobj = 0;
42174   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42175   void *argp1 = 0 ;
42176   int res1 = 0 ;
42177   PyObject *swig_obj[1] ;
42178   double result;
42179 
42180   if (!args) SWIG_fail;
42181   swig_obj[0] = args;
42182   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42183   if (!SWIG_IsOK(res1)) {
42184     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expMLclosing_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42185   }
42186   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42187   result = (double)(double) ((arg1)->expMLclosing);
42188   resultobj = SWIG_From_double(static_cast< double >(result));
42189   return resultobj;
42190 fail:
42191   return NULL;
42192 }
42193 
42194 
_wrap_exp_param_expTermAU_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42195 SWIGINTERN PyObject *_wrap_exp_param_expTermAU_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42196   PyObject *resultobj = 0;
42197   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42198   void *argp1 = 0 ;
42199   int res1 = 0 ;
42200   PyObject *swig_obj[1] ;
42201   double result;
42202 
42203   if (!args) SWIG_fail;
42204   swig_obj[0] = args;
42205   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42206   if (!SWIG_IsOK(res1)) {
42207     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expTermAU_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42208   }
42209   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42210   result = (double)(double) ((arg1)->expTermAU);
42211   resultobj = SWIG_From_double(static_cast< double >(result));
42212   return resultobj;
42213 fail:
42214   return NULL;
42215 }
42216 
42217 
_wrap_exp_param_expDuplexInit_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42218 SWIGINTERN PyObject *_wrap_exp_param_expDuplexInit_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42219   PyObject *resultobj = 0;
42220   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42221   void *argp1 = 0 ;
42222   int res1 = 0 ;
42223   PyObject *swig_obj[1] ;
42224   double result;
42225 
42226   if (!args) SWIG_fail;
42227   swig_obj[0] = args;
42228   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42229   if (!SWIG_IsOK(res1)) {
42230     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expDuplexInit_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42231   }
42232   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42233   result = (double)(double) ((arg1)->expDuplexInit);
42234   resultobj = SWIG_From_double(static_cast< double >(result));
42235   return resultobj;
42236 fail:
42237   return NULL;
42238 }
42239 
42240 
_wrap_exp_param_exptetra_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42241 SWIGINTERN PyObject *_wrap_exp_param_exptetra_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42242   PyObject *resultobj = 0;
42243   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42244   void *argp1 = 0 ;
42245   int res1 = 0 ;
42246   PyObject *swig_obj[1] ;
42247   double *result = 0 ;
42248 
42249   if (!args) SWIG_fail;
42250   swig_obj[0] = args;
42251   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42252   if (!SWIG_IsOK(res1)) {
42253     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_exptetra_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42254   }
42255   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42256   result = (double *)(double *) ((arg1)->exptetra);
42257   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 |  0 );
42258   return resultobj;
42259 fail:
42260   return NULL;
42261 }
42262 
42263 
_wrap_exp_param_exptri_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42264 SWIGINTERN PyObject *_wrap_exp_param_exptri_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42265   PyObject *resultobj = 0;
42266   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42267   void *argp1 = 0 ;
42268   int res1 = 0 ;
42269   PyObject *swig_obj[1] ;
42270   double *result = 0 ;
42271 
42272   if (!args) SWIG_fail;
42273   swig_obj[0] = args;
42274   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42275   if (!SWIG_IsOK(res1)) {
42276     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_exptri_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42277   }
42278   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42279   result = (double *)(double *) ((arg1)->exptri);
42280   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 |  0 );
42281   return resultobj;
42282 fail:
42283   return NULL;
42284 }
42285 
42286 
_wrap_exp_param_exphex_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42287 SWIGINTERN PyObject *_wrap_exp_param_exphex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42288   PyObject *resultobj = 0;
42289   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42290   void *argp1 = 0 ;
42291   int res1 = 0 ;
42292   PyObject *swig_obj[1] ;
42293   double *result = 0 ;
42294 
42295   if (!args) SWIG_fail;
42296   swig_obj[0] = args;
42297   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42298   if (!SWIG_IsOK(res1)) {
42299     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_exphex_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42300   }
42301   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42302   result = (double *)(double *) ((arg1)->exphex);
42303   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 |  0 );
42304   return resultobj;
42305 fail:
42306   return NULL;
42307 }
42308 
42309 
_wrap_exp_param_Tetraloops_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42310 SWIGINTERN PyObject *_wrap_exp_param_Tetraloops_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42311   PyObject *resultobj = 0;
42312   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42313   void *argp1 = 0 ;
42314   int res1 = 0 ;
42315   PyObject *swig_obj[1] ;
42316   char *result = 0 ;
42317 
42318   if (!args) SWIG_fail;
42319   swig_obj[0] = args;
42320   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42321   if (!SWIG_IsOK(res1)) {
42322     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_Tetraloops_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42323   }
42324   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42325   result = (char *)(char *) ((arg1)->Tetraloops);
42326   {
42327     size_t size = SWIG_strnlen(result, 1401);
42328 
42329 
42330 
42331     resultobj = SWIG_FromCharPtrAndSize(result, size);
42332   }
42333   return resultobj;
42334 fail:
42335   return NULL;
42336 }
42337 
42338 
_wrap_exp_param_expTriloop_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42339 SWIGINTERN PyObject *_wrap_exp_param_expTriloop_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42340   PyObject *resultobj = 0;
42341   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42342   void *argp1 = 0 ;
42343   int res1 = 0 ;
42344   PyObject *swig_obj[1] ;
42345   double *result = 0 ;
42346 
42347   if (!args) SWIG_fail;
42348   swig_obj[0] = args;
42349   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42350   if (!SWIG_IsOK(res1)) {
42351     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expTriloop_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42352   }
42353   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42354   result = (double *)(double *) ((arg1)->expTriloop);
42355   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 |  0 );
42356   return resultobj;
42357 fail:
42358   return NULL;
42359 }
42360 
42361 
_wrap_exp_param_Triloops_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42362 SWIGINTERN PyObject *_wrap_exp_param_Triloops_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42363   PyObject *resultobj = 0;
42364   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42365   void *argp1 = 0 ;
42366   int res1 = 0 ;
42367   PyObject *swig_obj[1] ;
42368   char *result = 0 ;
42369 
42370   if (!args) SWIG_fail;
42371   swig_obj[0] = args;
42372   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42373   if (!SWIG_IsOK(res1)) {
42374     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_Triloops_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42375   }
42376   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42377   result = (char *)(char *) ((arg1)->Triloops);
42378   {
42379     size_t size = SWIG_strnlen(result, 241);
42380 
42381 
42382 
42383     resultobj = SWIG_FromCharPtrAndSize(result, size);
42384   }
42385   return resultobj;
42386 fail:
42387   return NULL;
42388 }
42389 
42390 
_wrap_exp_param_Hexaloops_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42391 SWIGINTERN PyObject *_wrap_exp_param_Hexaloops_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42392   PyObject *resultobj = 0;
42393   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42394   void *argp1 = 0 ;
42395   int res1 = 0 ;
42396   PyObject *swig_obj[1] ;
42397   char *result = 0 ;
42398 
42399   if (!args) SWIG_fail;
42400   swig_obj[0] = args;
42401   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42402   if (!SWIG_IsOK(res1)) {
42403     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_Hexaloops_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42404   }
42405   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42406   result = (char *)(char *) ((arg1)->Hexaloops);
42407   {
42408     size_t size = SWIG_strnlen(result, 1801);
42409 
42410 
42411 
42412     resultobj = SWIG_FromCharPtrAndSize(result, size);
42413   }
42414   return resultobj;
42415 fail:
42416   return NULL;
42417 }
42418 
42419 
_wrap_exp_param_expTripleC_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42420 SWIGINTERN PyObject *_wrap_exp_param_expTripleC_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42421   PyObject *resultobj = 0;
42422   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42423   void *argp1 = 0 ;
42424   int res1 = 0 ;
42425   PyObject *swig_obj[1] ;
42426   double result;
42427 
42428   if (!args) SWIG_fail;
42429   swig_obj[0] = args;
42430   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42431   if (!SWIG_IsOK(res1)) {
42432     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expTripleC_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42433   }
42434   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42435   result = (double)(double) ((arg1)->expTripleC);
42436   resultobj = SWIG_From_double(static_cast< double >(result));
42437   return resultobj;
42438 fail:
42439   return NULL;
42440 }
42441 
42442 
_wrap_exp_param_expMultipleCA_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42443 SWIGINTERN PyObject *_wrap_exp_param_expMultipleCA_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42444   PyObject *resultobj = 0;
42445   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42446   void *argp1 = 0 ;
42447   int res1 = 0 ;
42448   PyObject *swig_obj[1] ;
42449   double result;
42450 
42451   if (!args) SWIG_fail;
42452   swig_obj[0] = args;
42453   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42454   if (!SWIG_IsOK(res1)) {
42455     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expMultipleCA_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42456   }
42457   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42458   result = (double)(double) ((arg1)->expMultipleCA);
42459   resultobj = SWIG_From_double(static_cast< double >(result));
42460   return resultobj;
42461 fail:
42462   return NULL;
42463 }
42464 
42465 
_wrap_exp_param_expMultipleCB_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42466 SWIGINTERN PyObject *_wrap_exp_param_expMultipleCB_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42467   PyObject *resultobj = 0;
42468   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42469   void *argp1 = 0 ;
42470   int res1 = 0 ;
42471   PyObject *swig_obj[1] ;
42472   double result;
42473 
42474   if (!args) SWIG_fail;
42475   swig_obj[0] = args;
42476   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42477   if (!SWIG_IsOK(res1)) {
42478     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expMultipleCB_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42479   }
42480   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42481   result = (double)(double) ((arg1)->expMultipleCB);
42482   resultobj = SWIG_From_double(static_cast< double >(result));
42483   return resultobj;
42484 fail:
42485   return NULL;
42486 }
42487 
42488 
_wrap_exp_param_expgquad_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42489 SWIGINTERN PyObject *_wrap_exp_param_expgquad_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42490   PyObject *resultobj = 0;
42491   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42492   void *argp1 = 0 ;
42493   int res1 = 0 ;
42494   PyObject *swig_obj[1] ;
42495   double (*result)[3*VRNA_GQUAD_MAX_LINKER_LENGTH+1] = 0 ;
42496 
42497   if (!args) SWIG_fail;
42498   swig_obj[0] = args;
42499   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42500   if (!SWIG_IsOK(res1)) {
42501     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expgquad_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42502   }
42503   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42504   result = (double (*)[3*VRNA_GQUAD_MAX_LINKER_LENGTH+1])(double (*)[3*VRNA_GQUAD_MAX_LINKER_LENGTH+1]) ((arg1)->expgquad);
42505   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__double, 0 |  0 );
42506   return resultobj;
42507 fail:
42508   return NULL;
42509 }
42510 
42511 
_wrap_exp_param_expgquadLayerMismatch_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42512 SWIGINTERN PyObject *_wrap_exp_param_expgquadLayerMismatch_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42513   PyObject *resultobj = 0;
42514   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42515   void *argp1 = 0 ;
42516   int res1 = 0 ;
42517   PyObject *swig_obj[1] ;
42518   double result;
42519 
42520   if (!args) SWIG_fail;
42521   swig_obj[0] = args;
42522   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42523   if (!SWIG_IsOK(res1)) {
42524     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_expgquadLayerMismatch_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42525   }
42526   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42527   result = (double)(double) ((arg1)->expgquadLayerMismatch);
42528   resultobj = SWIG_From_double(static_cast< double >(result));
42529   return resultobj;
42530 fail:
42531   return NULL;
42532 }
42533 
42534 
_wrap_exp_param_gquadLayerMismatchMax_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42535 SWIGINTERN PyObject *_wrap_exp_param_gquadLayerMismatchMax_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42536   PyObject *resultobj = 0;
42537   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42538   void *argp1 = 0 ;
42539   int res1 = 0 ;
42540   PyObject *swig_obj[1] ;
42541   int result;
42542 
42543   if (!args) SWIG_fail;
42544   swig_obj[0] = args;
42545   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42546   if (!SWIG_IsOK(res1)) {
42547     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_gquadLayerMismatchMax_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42548   }
42549   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42550   result = (int)(int) ((arg1)->gquadLayerMismatchMax);
42551   resultobj = SWIG_From_int(static_cast< int >(result));
42552   return resultobj;
42553 fail:
42554   return NULL;
42555 }
42556 
42557 
_wrap_exp_param_kT_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42558 SWIGINTERN PyObject *_wrap_exp_param_kT_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42559   PyObject *resultobj = 0;
42560   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42561   void *argp1 = 0 ;
42562   int res1 = 0 ;
42563   PyObject *swig_obj[1] ;
42564   double result;
42565 
42566   if (!args) SWIG_fail;
42567   swig_obj[0] = args;
42568   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42569   if (!SWIG_IsOK(res1)) {
42570     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_kT_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42571   }
42572   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42573   result = (double)(double) ((arg1)->kT);
42574   resultobj = SWIG_From_double(static_cast< double >(result));
42575   return resultobj;
42576 fail:
42577   return NULL;
42578 }
42579 
42580 
_wrap_exp_param_pf_scale_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42581 SWIGINTERN PyObject *_wrap_exp_param_pf_scale_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42582   PyObject *resultobj = 0;
42583   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42584   void *argp1 = 0 ;
42585   int res1 = 0 ;
42586   PyObject *swig_obj[1] ;
42587   double result;
42588 
42589   if (!args) SWIG_fail;
42590   swig_obj[0] = args;
42591   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42592   if (!SWIG_IsOK(res1)) {
42593     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_pf_scale_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42594   }
42595   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42596   result = (double)(double) ((arg1)->pf_scale);
42597   resultobj = SWIG_From_double(static_cast< double >(result));
42598   return resultobj;
42599 fail:
42600   return NULL;
42601 }
42602 
42603 
_wrap_exp_param_temperature_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42604 SWIGINTERN PyObject *_wrap_exp_param_temperature_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42605   PyObject *resultobj = 0;
42606   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42607   void *argp1 = 0 ;
42608   int res1 = 0 ;
42609   PyObject *swig_obj[1] ;
42610   double result;
42611 
42612   if (!args) SWIG_fail;
42613   swig_obj[0] = args;
42614   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42615   if (!SWIG_IsOK(res1)) {
42616     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_temperature_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42617   }
42618   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42619   result = (double)(double) ((arg1)->temperature);
42620   resultobj = SWIG_From_double(static_cast< double >(result));
42621   return resultobj;
42622 fail:
42623   return NULL;
42624 }
42625 
42626 
_wrap_exp_param_alpha_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42627 SWIGINTERN PyObject *_wrap_exp_param_alpha_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42628   PyObject *resultobj = 0;
42629   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42630   void *argp1 = 0 ;
42631   int res1 = 0 ;
42632   PyObject *swig_obj[1] ;
42633   double result;
42634 
42635   if (!args) SWIG_fail;
42636   swig_obj[0] = args;
42637   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42638   if (!SWIG_IsOK(res1)) {
42639     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_alpha_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42640   }
42641   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42642   result = (double)(double) ((arg1)->alpha);
42643   resultobj = SWIG_From_double(static_cast< double >(result));
42644   return resultobj;
42645 fail:
42646   return NULL;
42647 }
42648 
42649 
_wrap_exp_param_model_details_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42650 SWIGINTERN PyObject *_wrap_exp_param_model_details_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42651   PyObject *resultobj = 0;
42652   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42653   void *argp1 = 0 ;
42654   int res1 = 0 ;
42655   PyObject *swig_obj[1] ;
42656   vrna_md_t *result = 0 ;
42657 
42658   if (!args) SWIG_fail;
42659   swig_obj[0] = args;
42660   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42661   if (!SWIG_IsOK(res1)) {
42662     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_model_details_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42663   }
42664   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42665   result = (vrna_md_t *)& ((arg1)->model_details);
42666   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_md_t, 0 |  0 );
42667   return resultobj;
42668 fail:
42669   return NULL;
42670 }
42671 
42672 
_wrap_exp_param_param_file_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42673 SWIGINTERN PyObject *_wrap_exp_param_param_file_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42674   PyObject *resultobj = 0;
42675   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42676   void *argp1 = 0 ;
42677   int res1 = 0 ;
42678   PyObject *swig_obj[1] ;
42679   char *result = 0 ;
42680 
42681   if (!args) SWIG_fail;
42682   swig_obj[0] = args;
42683   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42684   if (!SWIG_IsOK(res1)) {
42685     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param_param_file_get" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42686   }
42687   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42688   result = (char *)(char *) ((arg1)->param_file);
42689   {
42690     size_t size = SWIG_strnlen(result, 256);
42691 
42692 
42693 
42694     resultobj = SWIG_FromCharPtrAndSize(result, size);
42695   }
42696   return resultobj;
42697 fail:
42698   return NULL;
42699 }
42700 
42701 
_wrap_new_exp_param(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)42702 SWIGINTERN PyObject *_wrap_new_exp_param(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42703   PyObject *resultobj = 0;
42704   vrna_md_t *arg1 = (vrna_md_t *) NULL ;
42705   void *argp1 = 0 ;
42706   int res1 = 0 ;
42707   PyObject * obj0 = 0 ;
42708   char * kwnames[] = {
42709     (char *)"model_details",  NULL
42710   };
42711   vrna_exp_param_t *result = 0 ;
42712 
42713   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|O:new_exp_param", kwnames, &obj0)) SWIG_fail;
42714   if (obj0) {
42715     res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
42716     if (!SWIG_IsOK(res1)) {
42717       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_exp_param" "', argument " "1"" of type '" "vrna_md_t *""'");
42718     }
42719     arg1 = reinterpret_cast< vrna_md_t * >(argp1);
42720   }
42721   {
42722     try {
42723       result = (vrna_exp_param_t *)new_vrna_exp_param_t(arg1);
42724     } catch (const std::exception& e) {
42725       SWIG_exception(SWIG_RuntimeError, e.what());
42726     }
42727   }
42728   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_exp_param_t, SWIG_POINTER_NEW |  0 );
42729   return resultobj;
42730 fail:
42731   return NULL;
42732 }
42733 
42734 
_wrap_exp_param___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42735 SWIGINTERN PyObject *_wrap_exp_param___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42736   PyObject *resultobj = 0;
42737   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42738   void *argp1 = 0 ;
42739   int res1 = 0 ;
42740   PyObject *swig_obj[1] ;
42741   std::string result;
42742 
42743   if (!args) SWIG_fail;
42744   swig_obj[0] = args;
42745   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
42746   if (!SWIG_IsOK(res1)) {
42747     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "exp_param___str__" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42748   }
42749   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42750   {
42751     try {
42752       result = vrna_exp_param_t___str__(arg1);
42753     } catch (const std::exception& e) {
42754       SWIG_exception(SWIG_RuntimeError, e.what());
42755     }
42756   }
42757   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
42758   return resultobj;
42759 fail:
42760   return NULL;
42761 }
42762 
42763 
_wrap_delete_exp_param(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42764 SWIGINTERN PyObject *_wrap_delete_exp_param(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42765   PyObject *resultobj = 0;
42766   vrna_exp_param_t *arg1 = (vrna_exp_param_t *) 0 ;
42767   void *argp1 = 0 ;
42768   int res1 = 0 ;
42769   PyObject *swig_obj[1] ;
42770 
42771   if (!args) SWIG_fail;
42772   swig_obj[0] = args;
42773   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_exp_param_t, SWIG_POINTER_DISOWN |  0 );
42774   if (!SWIG_IsOK(res1)) {
42775     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_exp_param" "', argument " "1"" of type '" "vrna_exp_param_t *""'");
42776   }
42777   arg1 = reinterpret_cast< vrna_exp_param_t * >(argp1);
42778   {
42779     try {
42780       delete arg1;
42781     } catch (const std::exception& e) {
42782       SWIG_exception(SWIG_RuntimeError, e.what());
42783     }
42784   }
42785   resultobj = SWIG_Py_Void();
42786   return resultobj;
42787 fail:
42788   return NULL;
42789 }
42790 
42791 
exp_param_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42792 SWIGINTERN PyObject *exp_param_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42793   PyObject *obj;
42794   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
42795   SWIG_TypeNewClientData(SWIGTYPE_p_vrna_exp_param_t, SWIG_NewClientData(obj));
42796   return SWIG_Py_Void();
42797 }
42798 
exp_param_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42799 SWIGINTERN PyObject *exp_param_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42800   return SWIG_Python_InitShadowInstance(args);
42801 }
42802 
_wrap_params_load(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)42803 SWIGINTERN PyObject *_wrap_params_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42804   PyObject *resultobj = 0;
42805   std::string arg1 = (std::string) "" ;
42806   unsigned int arg2 = (unsigned int) VRNA_PARAMETER_FORMAT_DEFAULT ;
42807   unsigned int val2 ;
42808   int ecode2 = 0 ;
42809   PyObject * obj0 = 0 ;
42810   PyObject * obj1 = 0 ;
42811   char * kwnames[] = {
42812     (char *)"filename",  (char *)"options",  NULL
42813   };
42814   int result;
42815 
42816   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|OO:params_load", kwnames, &obj0, &obj1)) SWIG_fail;
42817   if (obj0) {
42818     {
42819       std::string *ptr = (std::string *)0;
42820       int res = SWIG_AsPtr_std_string(obj0, &ptr);
42821       if (!SWIG_IsOK(res) || !ptr) {
42822         SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "params_load" "', argument " "1"" of type '" "std::string""'");
42823       }
42824       arg1 = *ptr;
42825       if (SWIG_IsNewObj(res)) delete ptr;
42826     }
42827   }
42828   if (obj1) {
42829     ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
42830     if (!SWIG_IsOK(ecode2)) {
42831       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "params_load" "', argument " "2"" of type '" "unsigned int""'");
42832     }
42833     arg2 = static_cast< unsigned int >(val2);
42834   }
42835   {
42836     try {
42837       result = (int)my_params_load(arg1,arg2);
42838     } catch (const std::exception& e) {
42839       SWIG_exception(SWIG_RuntimeError, e.what());
42840     }
42841   }
42842   resultobj = SWIG_From_int(static_cast< int >(result));
42843   return resultobj;
42844 fail:
42845   return NULL;
42846 }
42847 
42848 
_wrap_params_save(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)42849 SWIGINTERN PyObject *_wrap_params_save(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42850   PyObject *resultobj = 0;
42851   std::string arg1 ;
42852   unsigned int arg2 = (unsigned int) VRNA_PARAMETER_FORMAT_DEFAULT ;
42853   unsigned int val2 ;
42854   int ecode2 = 0 ;
42855   PyObject * obj0 = 0 ;
42856   PyObject * obj1 = 0 ;
42857   char * kwnames[] = {
42858     (char *)"filename",  (char *)"options",  NULL
42859   };
42860   int result;
42861 
42862   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:params_save", kwnames, &obj0, &obj1)) SWIG_fail;
42863   {
42864     std::string *ptr = (std::string *)0;
42865     int res = SWIG_AsPtr_std_string(obj0, &ptr);
42866     if (!SWIG_IsOK(res) || !ptr) {
42867       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "params_save" "', argument " "1"" of type '" "std::string""'");
42868     }
42869     arg1 = *ptr;
42870     if (SWIG_IsNewObj(res)) delete ptr;
42871   }
42872   if (obj1) {
42873     ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
42874     if (!SWIG_IsOK(ecode2)) {
42875       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "params_save" "', argument " "2"" of type '" "unsigned int""'");
42876     }
42877     arg2 = static_cast< unsigned int >(val2);
42878   }
42879   {
42880     try {
42881       result = (int)my_params_save(arg1,arg2);
42882     } catch (const std::exception& e) {
42883       SWIG_exception(SWIG_RuntimeError, e.what());
42884     }
42885   }
42886   resultobj = SWIG_From_int(static_cast< int >(result));
42887   return resultobj;
42888 fail:
42889   return NULL;
42890 }
42891 
42892 
_wrap_params_load_from_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)42893 SWIGINTERN PyObject *_wrap_params_load_from_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42894   PyObject *resultobj = 0;
42895   std::string arg1 ;
42896   std::string arg2 = (std::string) "" ;
42897   unsigned int arg3 = (unsigned int) VRNA_PARAMETER_FORMAT_DEFAULT ;
42898   unsigned int val3 ;
42899   int ecode3 = 0 ;
42900   PyObject * obj0 = 0 ;
42901   PyObject * obj1 = 0 ;
42902   PyObject * obj2 = 0 ;
42903   char * kwnames[] = {
42904     (char *)"parameters",  (char *)"name",  (char *)"options",  NULL
42905   };
42906   int result;
42907 
42908   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|OO:params_load_from_string", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
42909   {
42910     std::string *ptr = (std::string *)0;
42911     int res = SWIG_AsPtr_std_string(obj0, &ptr);
42912     if (!SWIG_IsOK(res) || !ptr) {
42913       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "params_load_from_string" "', argument " "1"" of type '" "std::string""'");
42914     }
42915     arg1 = *ptr;
42916     if (SWIG_IsNewObj(res)) delete ptr;
42917   }
42918   if (obj1) {
42919     {
42920       std::string *ptr = (std::string *)0;
42921       int res = SWIG_AsPtr_std_string(obj1, &ptr);
42922       if (!SWIG_IsOK(res) || !ptr) {
42923         SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "params_load_from_string" "', argument " "2"" of type '" "std::string""'");
42924       }
42925       arg2 = *ptr;
42926       if (SWIG_IsNewObj(res)) delete ptr;
42927     }
42928   }
42929   if (obj2) {
42930     ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
42931     if (!SWIG_IsOK(ecode3)) {
42932       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "params_load_from_string" "', argument " "3"" of type '" "unsigned int""'");
42933     }
42934     arg3 = static_cast< unsigned int >(val3);
42935   }
42936   {
42937     try {
42938       result = (int)my_params_load_from_string(arg1,arg2,arg3);
42939     } catch (const std::exception& e) {
42940       SWIG_exception(SWIG_RuntimeError, e.what());
42941     }
42942   }
42943   resultobj = SWIG_From_int(static_cast< int >(result));
42944   return resultobj;
42945 fail:
42946   return NULL;
42947 }
42948 
42949 
_wrap_params_load_RNA_Turner2004(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42950 SWIGINTERN PyObject *_wrap_params_load_RNA_Turner2004(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42951   PyObject *resultobj = 0;
42952   int result;
42953 
42954   if (!SWIG_Python_UnpackTuple(args, "params_load_RNA_Turner2004", 0, 0, 0)) SWIG_fail;
42955   {
42956     try {
42957       result = (int)vrna_params_load_RNA_Turner2004();
42958     } catch (const std::exception& e) {
42959       SWIG_exception(SWIG_RuntimeError, e.what());
42960     }
42961   }
42962   resultobj = SWIG_From_int(static_cast< int >(result));
42963   return resultobj;
42964 fail:
42965   return NULL;
42966 }
42967 
42968 
_wrap_params_load_RNA_Turner1999(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42969 SWIGINTERN PyObject *_wrap_params_load_RNA_Turner1999(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42970   PyObject *resultobj = 0;
42971   int result;
42972 
42973   if (!SWIG_Python_UnpackTuple(args, "params_load_RNA_Turner1999", 0, 0, 0)) SWIG_fail;
42974   {
42975     try {
42976       result = (int)vrna_params_load_RNA_Turner1999();
42977     } catch (const std::exception& e) {
42978       SWIG_exception(SWIG_RuntimeError, e.what());
42979     }
42980   }
42981   resultobj = SWIG_From_int(static_cast< int >(result));
42982   return resultobj;
42983 fail:
42984   return NULL;
42985 }
42986 
42987 
_wrap_params_load_RNA_Andronescu2007(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42988 SWIGINTERN PyObject *_wrap_params_load_RNA_Andronescu2007(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42989   PyObject *resultobj = 0;
42990   int result;
42991 
42992   if (!SWIG_Python_UnpackTuple(args, "params_load_RNA_Andronescu2007", 0, 0, 0)) SWIG_fail;
42993   {
42994     try {
42995       result = (int)vrna_params_load_RNA_Andronescu2007();
42996     } catch (const std::exception& e) {
42997       SWIG_exception(SWIG_RuntimeError, e.what());
42998     }
42999   }
43000   resultobj = SWIG_From_int(static_cast< int >(result));
43001   return resultobj;
43002 fail:
43003   return NULL;
43004 }
43005 
43006 
_wrap_params_load_RNA_Langdon2018(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43007 SWIGINTERN PyObject *_wrap_params_load_RNA_Langdon2018(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43008   PyObject *resultobj = 0;
43009   int result;
43010 
43011   if (!SWIG_Python_UnpackTuple(args, "params_load_RNA_Langdon2018", 0, 0, 0)) SWIG_fail;
43012   {
43013     try {
43014       result = (int)vrna_params_load_RNA_Langdon2018();
43015     } catch (const std::exception& e) {
43016       SWIG_exception(SWIG_RuntimeError, e.what());
43017     }
43018   }
43019   resultobj = SWIG_From_int(static_cast< int >(result));
43020   return resultobj;
43021 fail:
43022   return NULL;
43023 }
43024 
43025 
_wrap_params_load_RNA_misc_special_hairpins(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43026 SWIGINTERN PyObject *_wrap_params_load_RNA_misc_special_hairpins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43027   PyObject *resultobj = 0;
43028   int result;
43029 
43030   if (!SWIG_Python_UnpackTuple(args, "params_load_RNA_misc_special_hairpins", 0, 0, 0)) SWIG_fail;
43031   {
43032     try {
43033       result = (int)vrna_params_load_RNA_misc_special_hairpins();
43034     } catch (const std::exception& e) {
43035       SWIG_exception(SWIG_RuntimeError, e.what());
43036     }
43037   }
43038   resultobj = SWIG_From_int(static_cast< int >(result));
43039   return resultobj;
43040 fail:
43041   return NULL;
43042 }
43043 
43044 
_wrap_params_load_DNA_Mathews2004(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43045 SWIGINTERN PyObject *_wrap_params_load_DNA_Mathews2004(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43046   PyObject *resultobj = 0;
43047   int result;
43048 
43049   if (!SWIG_Python_UnpackTuple(args, "params_load_DNA_Mathews2004", 0, 0, 0)) SWIG_fail;
43050   {
43051     try {
43052       result = (int)vrna_params_load_DNA_Mathews2004();
43053     } catch (const std::exception& e) {
43054       SWIG_exception(SWIG_RuntimeError, e.what());
43055     }
43056   }
43057   resultobj = SWIG_From_int(static_cast< int >(result));
43058   return resultobj;
43059 fail:
43060   return NULL;
43061 }
43062 
43063 
_wrap_params_load_DNA_Mathews1999(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43064 SWIGINTERN PyObject *_wrap_params_load_DNA_Mathews1999(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43065   PyObject *resultobj = 0;
43066   int result;
43067 
43068   if (!SWIG_Python_UnpackTuple(args, "params_load_DNA_Mathews1999", 0, 0, 0)) SWIG_fail;
43069   {
43070     try {
43071       result = (int)vrna_params_load_DNA_Mathews1999();
43072     } catch (const std::exception& e) {
43073       SWIG_exception(SWIG_RuntimeError, e.what());
43074     }
43075   }
43076   resultobj = SWIG_From_int(static_cast< int >(result));
43077   return resultobj;
43078 fail:
43079   return NULL;
43080 }
43081 
43082 
_wrap_last_parameter_file(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43083 SWIGINTERN PyObject *_wrap_last_parameter_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43084   PyObject *resultobj = 0;
43085   char *result = 0 ;
43086 
43087   if (!SWIG_Python_UnpackTuple(args, "last_parameter_file", 0, 0, 0)) SWIG_fail;
43088   {
43089     try {
43090       result = (char *)last_parameter_file();
43091     } catch (const std::exception& e) {
43092       SWIG_exception(SWIG_RuntimeError, e.what());
43093     }
43094   }
43095   resultobj = SWIG_FromCharPtr((const char *)result);
43096   return resultobj;
43097 fail:
43098   return NULL;
43099 }
43100 
43101 
_wrap_read_parameter_file(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)43102 SWIGINTERN PyObject *_wrap_read_parameter_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43103   PyObject *resultobj = 0;
43104   char *arg1 ;
43105   int res1 ;
43106   char *buf1 = 0 ;
43107   int alloc1 = 0 ;
43108   PyObject * obj0 = 0 ;
43109   char * kwnames[] = {
43110     (char *)"fname",  NULL
43111   };
43112 
43113   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:read_parameter_file", kwnames, &obj0)) SWIG_fail;
43114   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
43115   if (!SWIG_IsOK(res1)) {
43116     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_parameter_file" "', argument " "1"" of type '" "char const []""'");
43117   }
43118   arg1 = reinterpret_cast< char * >(buf1);
43119   {
43120     try {
43121       read_parameter_file((char const (*))arg1);
43122     } catch (const std::exception& e) {
43123       SWIG_exception(SWIG_RuntimeError, e.what());
43124     }
43125   }
43126   resultobj = SWIG_Py_Void();
43127   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
43128   return resultobj;
43129 fail:
43130   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
43131   return NULL;
43132 }
43133 
43134 
_wrap_write_parameter_file(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)43135 SWIGINTERN PyObject *_wrap_write_parameter_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43136   PyObject *resultobj = 0;
43137   char *arg1 ;
43138   int res1 ;
43139   char *buf1 = 0 ;
43140   int alloc1 = 0 ;
43141   PyObject * obj0 = 0 ;
43142   char * kwnames[] = {
43143     (char *)"fname",  NULL
43144   };
43145 
43146   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:write_parameter_file", kwnames, &obj0)) SWIG_fail;
43147   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
43148   if (!SWIG_IsOK(res1)) {
43149     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "write_parameter_file" "', argument " "1"" of type '" "char const []""'");
43150   }
43151   arg1 = reinterpret_cast< char * >(buf1);
43152   {
43153     try {
43154       write_parameter_file((char const (*))arg1);
43155     } catch (const std::exception& e) {
43156       SWIG_exception(SWIG_RuntimeError, e.what());
43157     }
43158   }
43159   resultobj = SWIG_Py_Void();
43160   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
43161   return resultobj;
43162 fail:
43163   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
43164   return NULL;
43165 }
43166 
43167 
_wrap_gettype(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)43168 SWIGINTERN PyObject *_wrap_gettype(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43169   PyObject *resultobj = 0;
43170   char *arg1 = (char *) 0 ;
43171   int res1 ;
43172   char *buf1 = 0 ;
43173   int alloc1 = 0 ;
43174   PyObject * obj0 = 0 ;
43175   char * kwnames[] = {
43176     (char *)"ident",  NULL
43177   };
43178   enum parset result;
43179 
43180   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:gettype", kwnames, &obj0)) SWIG_fail;
43181   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
43182   if (!SWIG_IsOK(res1)) {
43183     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gettype" "', argument " "1"" of type '" "char const *""'");
43184   }
43185   arg1 = reinterpret_cast< char * >(buf1);
43186   {
43187     try {
43188       result = (enum parset)gettype((char const *)arg1);
43189     } catch (const std::exception& e) {
43190       SWIG_exception(SWIG_RuntimeError, e.what());
43191     }
43192   }
43193   resultobj = SWIG_From_int(static_cast< int >(result));
43194   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
43195   return resultobj;
43196 fail:
43197   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
43198   return NULL;
43199 }
43200 
43201 
_wrap_settype(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)43202 SWIGINTERN PyObject *_wrap_settype(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43203   PyObject *resultobj = 0;
43204   enum parset arg1 ;
43205   int val1 ;
43206   int ecode1 = 0 ;
43207   PyObject * obj0 = 0 ;
43208   char * kwnames[] = {
43209     (char *)"s",  NULL
43210   };
43211   char *result = 0 ;
43212 
43213   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:settype", kwnames, &obj0)) SWIG_fail;
43214   ecode1 = SWIG_AsVal_int(obj0, &val1);
43215   if (!SWIG_IsOK(ecode1)) {
43216     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "settype" "', argument " "1"" of type '" "enum parset""'");
43217   }
43218   arg1 = static_cast< enum parset >(val1);
43219   {
43220     try {
43221       result = (char *)settype(arg1);
43222     } catch (const std::exception& e) {
43223       SWIG_exception(SWIG_RuntimeError, e.what());
43224     }
43225   }
43226   resultobj = SWIG_FromCharPtr((const char *)result);
43227   return resultobj;
43228 fail:
43229   return NULL;
43230 }
43231 
43232 
Swig_var_lxc37_set(PyObject *)43233 SWIGINTERN int Swig_var_lxc37_set(PyObject *) {
43234   SWIG_Error(SWIG_AttributeError,"Variable lxc37 is read-only.");
43235   return 1;
43236 }
43237 
43238 
Swig_var_lxc37_get(void)43239 SWIGINTERN PyObject *Swig_var_lxc37_get(void) {
43240   PyObject *pyobj = 0;
43241 
43242   pyobj = SWIG_From_double(static_cast< double >(lxc37));
43243   return pyobj;
43244 }
43245 
43246 
Swig_var_stack37_set(PyObject *)43247 SWIGINTERN int Swig_var_stack37_set(PyObject *) {
43248   SWIG_Error(SWIG_AttributeError,"Variable stack37 is read-only.");
43249   return 1;
43250 }
43251 
43252 
Swig_var_stack37_get(void)43253 SWIGINTERN PyObject *Swig_var_stack37_get(void) {
43254   PyObject *pyobj = 0;
43255 
43256   {
43257     size_t i, j;
43258     //stack37, 7+1, 7+1
43259     pyobj = PyList_New(7+1);
43260     for (i = 0; i < 7+1; i++) {
43261       PyObject *l = PyList_New(7+1);
43262       for (j = 0; j < 7+1; j++) {
43263         PyObject *o = PyLong_FromLong((long) stack37[i][j]);
43264         PyList_SetItem(l, j, o);
43265       }
43266       PyList_SetItem(pyobj,i,l);
43267     }
43268   }
43269   return pyobj;
43270 }
43271 
43272 
Swig_var_stackdH_set(PyObject *)43273 SWIGINTERN int Swig_var_stackdH_set(PyObject *) {
43274   SWIG_Error(SWIG_AttributeError,"Variable stackdH is read-only.");
43275   return 1;
43276 }
43277 
43278 
Swig_var_stackdH_get(void)43279 SWIGINTERN PyObject *Swig_var_stackdH_get(void) {
43280   PyObject *pyobj = 0;
43281 
43282   {
43283     size_t i, j;
43284     //stackdH, 7+1, 7+1
43285     pyobj = PyList_New(7+1);
43286     for (i = 0; i < 7+1; i++) {
43287       PyObject *l = PyList_New(7+1);
43288       for (j = 0; j < 7+1; j++) {
43289         PyObject *o = PyLong_FromLong((long) stackdH[i][j]);
43290         PyList_SetItem(l, j, o);
43291       }
43292       PyList_SetItem(pyobj,i,l);
43293     }
43294   }
43295   return pyobj;
43296 }
43297 
43298 
Swig_var_hairpin37_set(PyObject *)43299 SWIGINTERN int Swig_var_hairpin37_set(PyObject *) {
43300   SWIG_Error(SWIG_AttributeError,"Variable hairpin37 is read-only.");
43301   return 1;
43302 }
43303 
43304 
Swig_var_hairpin37_get(void)43305 SWIGINTERN PyObject *Swig_var_hairpin37_get(void) {
43306   PyObject *pyobj = 0;
43307 
43308   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(hairpin37), SWIGTYPE_p_int,  0 );
43309   return pyobj;
43310 }
43311 
43312 
Swig_var_hairpindH_set(PyObject *)43313 SWIGINTERN int Swig_var_hairpindH_set(PyObject *) {
43314   SWIG_Error(SWIG_AttributeError,"Variable hairpindH is read-only.");
43315   return 1;
43316 }
43317 
43318 
Swig_var_hairpindH_get(void)43319 SWIGINTERN PyObject *Swig_var_hairpindH_get(void) {
43320   PyObject *pyobj = 0;
43321 
43322   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(hairpindH), SWIGTYPE_p_int,  0 );
43323   return pyobj;
43324 }
43325 
43326 
Swig_var_bulge37_set(PyObject *)43327 SWIGINTERN int Swig_var_bulge37_set(PyObject *) {
43328   SWIG_Error(SWIG_AttributeError,"Variable bulge37 is read-only.");
43329   return 1;
43330 }
43331 
43332 
Swig_var_bulge37_get(void)43333 SWIGINTERN PyObject *Swig_var_bulge37_get(void) {
43334   PyObject *pyobj = 0;
43335 
43336   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(bulge37), SWIGTYPE_p_int,  0 );
43337   return pyobj;
43338 }
43339 
43340 
Swig_var_bulgedH_set(PyObject *)43341 SWIGINTERN int Swig_var_bulgedH_set(PyObject *) {
43342   SWIG_Error(SWIG_AttributeError,"Variable bulgedH is read-only.");
43343   return 1;
43344 }
43345 
43346 
Swig_var_bulgedH_get(void)43347 SWIGINTERN PyObject *Swig_var_bulgedH_get(void) {
43348   PyObject *pyobj = 0;
43349 
43350   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(bulgedH), SWIGTYPE_p_int,  0 );
43351   return pyobj;
43352 }
43353 
43354 
Swig_var_internal_loop37_set(PyObject *)43355 SWIGINTERN int Swig_var_internal_loop37_set(PyObject *) {
43356   SWIG_Error(SWIG_AttributeError,"Variable internal_loop37 is read-only.");
43357   return 1;
43358 }
43359 
43360 
Swig_var_internal_loop37_get(void)43361 SWIGINTERN PyObject *Swig_var_internal_loop37_get(void) {
43362   PyObject *pyobj = 0;
43363 
43364   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(internal_loop37), SWIGTYPE_p_int,  0 );
43365   return pyobj;
43366 }
43367 
43368 
Swig_var_internal_loopdH_set(PyObject *)43369 SWIGINTERN int Swig_var_internal_loopdH_set(PyObject *) {
43370   SWIG_Error(SWIG_AttributeError,"Variable internal_loopdH is read-only.");
43371   return 1;
43372 }
43373 
43374 
Swig_var_internal_loopdH_get(void)43375 SWIGINTERN PyObject *Swig_var_internal_loopdH_get(void) {
43376   PyObject *pyobj = 0;
43377 
43378   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(internal_loopdH), SWIGTYPE_p_int,  0 );
43379   return pyobj;
43380 }
43381 
43382 
Swig_var_mismatchI37_set(PyObject *)43383 SWIGINTERN int Swig_var_mismatchI37_set(PyObject *) {
43384   SWIG_Error(SWIG_AttributeError,"Variable mismatchI37 is read-only.");
43385   return 1;
43386 }
43387 
43388 
Swig_var_mismatchI37_get(void)43389 SWIGINTERN PyObject *Swig_var_mismatchI37_get(void) {
43390   PyObject *pyobj = 0;
43391 
43392   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(mismatchI37), SWIGTYPE_p_a_5__a_5__int,  0 );
43393   return pyobj;
43394 }
43395 
43396 
Swig_var_mismatchIdH_set(PyObject *)43397 SWIGINTERN int Swig_var_mismatchIdH_set(PyObject *) {
43398   SWIG_Error(SWIG_AttributeError,"Variable mismatchIdH is read-only.");
43399   return 1;
43400 }
43401 
43402 
Swig_var_mismatchIdH_get(void)43403 SWIGINTERN PyObject *Swig_var_mismatchIdH_get(void) {
43404   PyObject *pyobj = 0;
43405 
43406   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(mismatchIdH), SWIGTYPE_p_a_5__a_5__int,  0 );
43407   return pyobj;
43408 }
43409 
43410 
Swig_var_mismatch1nI37_set(PyObject *)43411 SWIGINTERN int Swig_var_mismatch1nI37_set(PyObject *) {
43412   SWIG_Error(SWIG_AttributeError,"Variable mismatch1nI37 is read-only.");
43413   return 1;
43414 }
43415 
43416 
Swig_var_mismatch1nI37_get(void)43417 SWIGINTERN PyObject *Swig_var_mismatch1nI37_get(void) {
43418   PyObject *pyobj = 0;
43419 
43420   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(mismatch1nI37), SWIGTYPE_p_a_5__a_5__int,  0 );
43421   return pyobj;
43422 }
43423 
43424 
Swig_var_mismatch23I37_set(PyObject *)43425 SWIGINTERN int Swig_var_mismatch23I37_set(PyObject *) {
43426   SWIG_Error(SWIG_AttributeError,"Variable mismatch23I37 is read-only.");
43427   return 1;
43428 }
43429 
43430 
Swig_var_mismatch23I37_get(void)43431 SWIGINTERN PyObject *Swig_var_mismatch23I37_get(void) {
43432   PyObject *pyobj = 0;
43433 
43434   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(mismatch23I37), SWIGTYPE_p_a_5__a_5__int,  0 );
43435   return pyobj;
43436 }
43437 
43438 
Swig_var_mismatch1nIdH_set(PyObject *)43439 SWIGINTERN int Swig_var_mismatch1nIdH_set(PyObject *) {
43440   SWIG_Error(SWIG_AttributeError,"Variable mismatch1nIdH is read-only.");
43441   return 1;
43442 }
43443 
43444 
Swig_var_mismatch1nIdH_get(void)43445 SWIGINTERN PyObject *Swig_var_mismatch1nIdH_get(void) {
43446   PyObject *pyobj = 0;
43447 
43448   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(mismatch1nIdH), SWIGTYPE_p_a_5__a_5__int,  0 );
43449   return pyobj;
43450 }
43451 
43452 
Swig_var_mismatch23IdH_set(PyObject *)43453 SWIGINTERN int Swig_var_mismatch23IdH_set(PyObject *) {
43454   SWIG_Error(SWIG_AttributeError,"Variable mismatch23IdH is read-only.");
43455   return 1;
43456 }
43457 
43458 
Swig_var_mismatch23IdH_get(void)43459 SWIGINTERN PyObject *Swig_var_mismatch23IdH_get(void) {
43460   PyObject *pyobj = 0;
43461 
43462   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(mismatch23IdH), SWIGTYPE_p_a_5__a_5__int,  0 );
43463   return pyobj;
43464 }
43465 
43466 
Swig_var_mismatchH37_set(PyObject *)43467 SWIGINTERN int Swig_var_mismatchH37_set(PyObject *) {
43468   SWIG_Error(SWIG_AttributeError,"Variable mismatchH37 is read-only.");
43469   return 1;
43470 }
43471 
43472 
Swig_var_mismatchH37_get(void)43473 SWIGINTERN PyObject *Swig_var_mismatchH37_get(void) {
43474   PyObject *pyobj = 0;
43475 
43476   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(mismatchH37), SWIGTYPE_p_a_5__a_5__int,  0 );
43477   return pyobj;
43478 }
43479 
43480 
Swig_var_mismatchM37_set(PyObject *)43481 SWIGINTERN int Swig_var_mismatchM37_set(PyObject *) {
43482   SWIG_Error(SWIG_AttributeError,"Variable mismatchM37 is read-only.");
43483   return 1;
43484 }
43485 
43486 
Swig_var_mismatchM37_get(void)43487 SWIGINTERN PyObject *Swig_var_mismatchM37_get(void) {
43488   PyObject *pyobj = 0;
43489 
43490   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(mismatchM37), SWIGTYPE_p_a_5__a_5__int,  0 );
43491   return pyobj;
43492 }
43493 
43494 
Swig_var_mismatchHdH_set(PyObject *)43495 SWIGINTERN int Swig_var_mismatchHdH_set(PyObject *) {
43496   SWIG_Error(SWIG_AttributeError,"Variable mismatchHdH is read-only.");
43497   return 1;
43498 }
43499 
43500 
Swig_var_mismatchHdH_get(void)43501 SWIGINTERN PyObject *Swig_var_mismatchHdH_get(void) {
43502   PyObject *pyobj = 0;
43503 
43504   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(mismatchHdH), SWIGTYPE_p_a_5__a_5__int,  0 );
43505   return pyobj;
43506 }
43507 
43508 
Swig_var_mismatchMdH_set(PyObject *)43509 SWIGINTERN int Swig_var_mismatchMdH_set(PyObject *) {
43510   SWIG_Error(SWIG_AttributeError,"Variable mismatchMdH is read-only.");
43511   return 1;
43512 }
43513 
43514 
Swig_var_mismatchMdH_get(void)43515 SWIGINTERN PyObject *Swig_var_mismatchMdH_get(void) {
43516   PyObject *pyobj = 0;
43517 
43518   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(mismatchMdH), SWIGTYPE_p_a_5__a_5__int,  0 );
43519   return pyobj;
43520 }
43521 
43522 
Swig_var_mismatchExt37_set(PyObject *)43523 SWIGINTERN int Swig_var_mismatchExt37_set(PyObject *) {
43524   SWIG_Error(SWIG_AttributeError,"Variable mismatchExt37 is read-only.");
43525   return 1;
43526 }
43527 
43528 
Swig_var_mismatchExt37_get(void)43529 SWIGINTERN PyObject *Swig_var_mismatchExt37_get(void) {
43530   PyObject *pyobj = 0;
43531 
43532   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(mismatchExt37), SWIGTYPE_p_a_5__a_5__int,  0 );
43533   return pyobj;
43534 }
43535 
43536 
Swig_var_mismatchExtdH_set(PyObject *)43537 SWIGINTERN int Swig_var_mismatchExtdH_set(PyObject *) {
43538   SWIG_Error(SWIG_AttributeError,"Variable mismatchExtdH is read-only.");
43539   return 1;
43540 }
43541 
43542 
Swig_var_mismatchExtdH_get(void)43543 SWIGINTERN PyObject *Swig_var_mismatchExtdH_get(void) {
43544   PyObject *pyobj = 0;
43545 
43546   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(mismatchExtdH), SWIGTYPE_p_a_5__a_5__int,  0 );
43547   return pyobj;
43548 }
43549 
43550 
Swig_var_dangle5_37_set(PyObject *)43551 SWIGINTERN int Swig_var_dangle5_37_set(PyObject *) {
43552   SWIG_Error(SWIG_AttributeError,"Variable dangle5_37 is read-only.");
43553   return 1;
43554 }
43555 
43556 
Swig_var_dangle5_37_get(void)43557 SWIGINTERN PyObject *Swig_var_dangle5_37_get(void) {
43558   PyObject *pyobj = 0;
43559 
43560   {
43561     size_t i, j;
43562     //dangle5_37, 7+1, 5
43563     pyobj = PyList_New(7+1);
43564     for (i = 0; i < 7+1; i++) {
43565       PyObject *l = PyList_New(5);
43566       for (j = 0; j < 5; j++) {
43567         PyObject *o = PyLong_FromLong((long) dangle5_37[i][j]);
43568         PyList_SetItem(l, j, o);
43569       }
43570       PyList_SetItem(pyobj,i,l);
43571     }
43572   }
43573   return pyobj;
43574 }
43575 
43576 
Swig_var_dangle3_37_set(PyObject *)43577 SWIGINTERN int Swig_var_dangle3_37_set(PyObject *) {
43578   SWIG_Error(SWIG_AttributeError,"Variable dangle3_37 is read-only.");
43579   return 1;
43580 }
43581 
43582 
Swig_var_dangle3_37_get(void)43583 SWIGINTERN PyObject *Swig_var_dangle3_37_get(void) {
43584   PyObject *pyobj = 0;
43585 
43586   {
43587     size_t i, j;
43588     //dangle3_37, 7+1, 5
43589     pyobj = PyList_New(7+1);
43590     for (i = 0; i < 7+1; i++) {
43591       PyObject *l = PyList_New(5);
43592       for (j = 0; j < 5; j++) {
43593         PyObject *o = PyLong_FromLong((long) dangle3_37[i][j]);
43594         PyList_SetItem(l, j, o);
43595       }
43596       PyList_SetItem(pyobj,i,l);
43597     }
43598   }
43599   return pyobj;
43600 }
43601 
43602 
Swig_var_dangle3_dH_set(PyObject *)43603 SWIGINTERN int Swig_var_dangle3_dH_set(PyObject *) {
43604   SWIG_Error(SWIG_AttributeError,"Variable dangle3_dH is read-only.");
43605   return 1;
43606 }
43607 
43608 
Swig_var_dangle3_dH_get(void)43609 SWIGINTERN PyObject *Swig_var_dangle3_dH_get(void) {
43610   PyObject *pyobj = 0;
43611 
43612   {
43613     size_t i, j;
43614     //dangle3_dH, 7+1, 5
43615     pyobj = PyList_New(7+1);
43616     for (i = 0; i < 7+1; i++) {
43617       PyObject *l = PyList_New(5);
43618       for (j = 0; j < 5; j++) {
43619         PyObject *o = PyLong_FromLong((long) dangle3_dH[i][j]);
43620         PyList_SetItem(l, j, o);
43621       }
43622       PyList_SetItem(pyobj,i,l);
43623     }
43624   }
43625   return pyobj;
43626 }
43627 
43628 
Swig_var_dangle5_dH_set(PyObject *)43629 SWIGINTERN int Swig_var_dangle5_dH_set(PyObject *) {
43630   SWIG_Error(SWIG_AttributeError,"Variable dangle5_dH is read-only.");
43631   return 1;
43632 }
43633 
43634 
Swig_var_dangle5_dH_get(void)43635 SWIGINTERN PyObject *Swig_var_dangle5_dH_get(void) {
43636   PyObject *pyobj = 0;
43637 
43638   {
43639     size_t i, j;
43640     //dangle5_dH, 7+1, 5
43641     pyobj = PyList_New(7+1);
43642     for (i = 0; i < 7+1; i++) {
43643       PyObject *l = PyList_New(5);
43644       for (j = 0; j < 5; j++) {
43645         PyObject *o = PyLong_FromLong((long) dangle5_dH[i][j]);
43646         PyList_SetItem(l, j, o);
43647       }
43648       PyList_SetItem(pyobj,i,l);
43649     }
43650   }
43651   return pyobj;
43652 }
43653 
43654 
Swig_var_int11_37_set(PyObject *)43655 SWIGINTERN int Swig_var_int11_37_set(PyObject *) {
43656   SWIG_Error(SWIG_AttributeError,"Variable int11_37 is read-only.");
43657   return 1;
43658 }
43659 
43660 
Swig_var_int11_37_get(void)43661 SWIGINTERN PyObject *Swig_var_int11_37_get(void) {
43662   PyObject *pyobj = 0;
43663 
43664   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(int11_37), SWIGTYPE_p_a_7_1__a_5__a_5__int,  0 );
43665   return pyobj;
43666 }
43667 
43668 
Swig_var_int11_dH_set(PyObject *)43669 SWIGINTERN int Swig_var_int11_dH_set(PyObject *) {
43670   SWIG_Error(SWIG_AttributeError,"Variable int11_dH is read-only.");
43671   return 1;
43672 }
43673 
43674 
Swig_var_int11_dH_get(void)43675 SWIGINTERN PyObject *Swig_var_int11_dH_get(void) {
43676   PyObject *pyobj = 0;
43677 
43678   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(int11_dH), SWIGTYPE_p_a_7_1__a_5__a_5__int,  0 );
43679   return pyobj;
43680 }
43681 
43682 
Swig_var_int21_37_set(PyObject *)43683 SWIGINTERN int Swig_var_int21_37_set(PyObject *) {
43684   SWIG_Error(SWIG_AttributeError,"Variable int21_37 is read-only.");
43685   return 1;
43686 }
43687 
43688 
Swig_var_int21_37_get(void)43689 SWIGINTERN PyObject *Swig_var_int21_37_get(void) {
43690   PyObject *pyobj = 0;
43691 
43692   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(int21_37), SWIGTYPE_p_a_7_1__a_5__a_5__a_5__int,  0 );
43693   return pyobj;
43694 }
43695 
43696 
Swig_var_int21_dH_set(PyObject *)43697 SWIGINTERN int Swig_var_int21_dH_set(PyObject *) {
43698   SWIG_Error(SWIG_AttributeError,"Variable int21_dH is read-only.");
43699   return 1;
43700 }
43701 
43702 
Swig_var_int21_dH_get(void)43703 SWIGINTERN PyObject *Swig_var_int21_dH_get(void) {
43704   PyObject *pyobj = 0;
43705 
43706   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(int21_dH), SWIGTYPE_p_a_7_1__a_5__a_5__a_5__int,  0 );
43707   return pyobj;
43708 }
43709 
43710 
Swig_var_int22_37_set(PyObject *)43711 SWIGINTERN int Swig_var_int22_37_set(PyObject *) {
43712   SWIG_Error(SWIG_AttributeError,"Variable int22_37 is read-only.");
43713   return 1;
43714 }
43715 
43716 
Swig_var_int22_37_get(void)43717 SWIGINTERN PyObject *Swig_var_int22_37_get(void) {
43718   PyObject *pyobj = 0;
43719 
43720   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(int22_37), SWIGTYPE_p_a_7_1__a_5__a_5__a_5__a_5__int,  0 );
43721   return pyobj;
43722 }
43723 
43724 
Swig_var_int22_dH_set(PyObject *)43725 SWIGINTERN int Swig_var_int22_dH_set(PyObject *) {
43726   SWIG_Error(SWIG_AttributeError,"Variable int22_dH is read-only.");
43727   return 1;
43728 }
43729 
43730 
Swig_var_int22_dH_get(void)43731 SWIGINTERN PyObject *Swig_var_int22_dH_get(void) {
43732   PyObject *pyobj = 0;
43733 
43734   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(int22_dH), SWIGTYPE_p_a_7_1__a_5__a_5__a_5__a_5__int,  0 );
43735   return pyobj;
43736 }
43737 
43738 
Swig_var_ML_BASE37_set(PyObject *)43739 SWIGINTERN int Swig_var_ML_BASE37_set(PyObject *) {
43740   SWIG_Error(SWIG_AttributeError,"Variable ML_BASE37 is read-only.");
43741   return 1;
43742 }
43743 
43744 
Swig_var_ML_BASE37_get(void)43745 SWIGINTERN PyObject *Swig_var_ML_BASE37_get(void) {
43746   PyObject *pyobj = 0;
43747 
43748   pyobj = SWIG_From_int(static_cast< int >(ML_BASE37));
43749   return pyobj;
43750 }
43751 
43752 
Swig_var_ML_BASEdH_set(PyObject *)43753 SWIGINTERN int Swig_var_ML_BASEdH_set(PyObject *) {
43754   SWIG_Error(SWIG_AttributeError,"Variable ML_BASEdH is read-only.");
43755   return 1;
43756 }
43757 
43758 
Swig_var_ML_BASEdH_get(void)43759 SWIGINTERN PyObject *Swig_var_ML_BASEdH_get(void) {
43760   PyObject *pyobj = 0;
43761 
43762   pyobj = SWIG_From_int(static_cast< int >(ML_BASEdH));
43763   return pyobj;
43764 }
43765 
43766 
Swig_var_ML_closing37_set(PyObject *)43767 SWIGINTERN int Swig_var_ML_closing37_set(PyObject *) {
43768   SWIG_Error(SWIG_AttributeError,"Variable ML_closing37 is read-only.");
43769   return 1;
43770 }
43771 
43772 
Swig_var_ML_closing37_get(void)43773 SWIGINTERN PyObject *Swig_var_ML_closing37_get(void) {
43774   PyObject *pyobj = 0;
43775 
43776   pyobj = SWIG_From_int(static_cast< int >(ML_closing37));
43777   return pyobj;
43778 }
43779 
43780 
Swig_var_ML_closingdH_set(PyObject *)43781 SWIGINTERN int Swig_var_ML_closingdH_set(PyObject *) {
43782   SWIG_Error(SWIG_AttributeError,"Variable ML_closingdH is read-only.");
43783   return 1;
43784 }
43785 
43786 
Swig_var_ML_closingdH_get(void)43787 SWIGINTERN PyObject *Swig_var_ML_closingdH_get(void) {
43788   PyObject *pyobj = 0;
43789 
43790   pyobj = SWIG_From_int(static_cast< int >(ML_closingdH));
43791   return pyobj;
43792 }
43793 
43794 
Swig_var_ML_intern37_set(PyObject *)43795 SWIGINTERN int Swig_var_ML_intern37_set(PyObject *) {
43796   SWIG_Error(SWIG_AttributeError,"Variable ML_intern37 is read-only.");
43797   return 1;
43798 }
43799 
43800 
Swig_var_ML_intern37_get(void)43801 SWIGINTERN PyObject *Swig_var_ML_intern37_get(void) {
43802   PyObject *pyobj = 0;
43803 
43804   pyobj = SWIG_From_int(static_cast< int >(ML_intern37));
43805   return pyobj;
43806 }
43807 
43808 
Swig_var_ML_interndH_set(PyObject *)43809 SWIGINTERN int Swig_var_ML_interndH_set(PyObject *) {
43810   SWIG_Error(SWIG_AttributeError,"Variable ML_interndH is read-only.");
43811   return 1;
43812 }
43813 
43814 
Swig_var_ML_interndH_get(void)43815 SWIGINTERN PyObject *Swig_var_ML_interndH_get(void) {
43816   PyObject *pyobj = 0;
43817 
43818   pyobj = SWIG_From_int(static_cast< int >(ML_interndH));
43819   return pyobj;
43820 }
43821 
43822 
Swig_var_TripleC37_set(PyObject *)43823 SWIGINTERN int Swig_var_TripleC37_set(PyObject *) {
43824   SWIG_Error(SWIG_AttributeError,"Variable TripleC37 is read-only.");
43825   return 1;
43826 }
43827 
43828 
Swig_var_TripleC37_get(void)43829 SWIGINTERN PyObject *Swig_var_TripleC37_get(void) {
43830   PyObject *pyobj = 0;
43831 
43832   pyobj = SWIG_From_int(static_cast< int >(TripleC37));
43833   return pyobj;
43834 }
43835 
43836 
Swig_var_TripleCdH_set(PyObject *)43837 SWIGINTERN int Swig_var_TripleCdH_set(PyObject *) {
43838   SWIG_Error(SWIG_AttributeError,"Variable TripleCdH is read-only.");
43839   return 1;
43840 }
43841 
43842 
Swig_var_TripleCdH_get(void)43843 SWIGINTERN PyObject *Swig_var_TripleCdH_get(void) {
43844   PyObject *pyobj = 0;
43845 
43846   pyobj = SWIG_From_int(static_cast< int >(TripleCdH));
43847   return pyobj;
43848 }
43849 
43850 
Swig_var_MultipleCA37_set(PyObject *)43851 SWIGINTERN int Swig_var_MultipleCA37_set(PyObject *) {
43852   SWIG_Error(SWIG_AttributeError,"Variable MultipleCA37 is read-only.");
43853   return 1;
43854 }
43855 
43856 
Swig_var_MultipleCA37_get(void)43857 SWIGINTERN PyObject *Swig_var_MultipleCA37_get(void) {
43858   PyObject *pyobj = 0;
43859 
43860   pyobj = SWIG_From_int(static_cast< int >(MultipleCA37));
43861   return pyobj;
43862 }
43863 
43864 
Swig_var_MultipleCAdH_set(PyObject *)43865 SWIGINTERN int Swig_var_MultipleCAdH_set(PyObject *) {
43866   SWIG_Error(SWIG_AttributeError,"Variable MultipleCAdH is read-only.");
43867   return 1;
43868 }
43869 
43870 
Swig_var_MultipleCAdH_get(void)43871 SWIGINTERN PyObject *Swig_var_MultipleCAdH_get(void) {
43872   PyObject *pyobj = 0;
43873 
43874   pyobj = SWIG_From_int(static_cast< int >(MultipleCAdH));
43875   return pyobj;
43876 }
43877 
43878 
Swig_var_MultipleCB37_set(PyObject *)43879 SWIGINTERN int Swig_var_MultipleCB37_set(PyObject *) {
43880   SWIG_Error(SWIG_AttributeError,"Variable MultipleCB37 is read-only.");
43881   return 1;
43882 }
43883 
43884 
Swig_var_MultipleCB37_get(void)43885 SWIGINTERN PyObject *Swig_var_MultipleCB37_get(void) {
43886   PyObject *pyobj = 0;
43887 
43888   pyobj = SWIG_From_int(static_cast< int >(MultipleCB37));
43889   return pyobj;
43890 }
43891 
43892 
Swig_var_MultipleCBdH_set(PyObject *)43893 SWIGINTERN int Swig_var_MultipleCBdH_set(PyObject *) {
43894   SWIG_Error(SWIG_AttributeError,"Variable MultipleCBdH is read-only.");
43895   return 1;
43896 }
43897 
43898 
Swig_var_MultipleCBdH_get(void)43899 SWIGINTERN PyObject *Swig_var_MultipleCBdH_get(void) {
43900   PyObject *pyobj = 0;
43901 
43902   pyobj = SWIG_From_int(static_cast< int >(MultipleCBdH));
43903   return pyobj;
43904 }
43905 
43906 
Swig_var_MAX_NINIO_set(PyObject *)43907 SWIGINTERN int Swig_var_MAX_NINIO_set(PyObject *) {
43908   SWIG_Error(SWIG_AttributeError,"Variable MAX_NINIO is read-only.");
43909   return 1;
43910 }
43911 
43912 
Swig_var_MAX_NINIO_get(void)43913 SWIGINTERN PyObject *Swig_var_MAX_NINIO_get(void) {
43914   PyObject *pyobj = 0;
43915 
43916   pyobj = SWIG_From_int(static_cast< int >(MAX_NINIO));
43917   return pyobj;
43918 }
43919 
43920 
Swig_var_ninio37_set(PyObject *)43921 SWIGINTERN int Swig_var_ninio37_set(PyObject *) {
43922   SWIG_Error(SWIG_AttributeError,"Variable ninio37 is read-only.");
43923   return 1;
43924 }
43925 
43926 
Swig_var_ninio37_get(void)43927 SWIGINTERN PyObject *Swig_var_ninio37_get(void) {
43928   PyObject *pyobj = 0;
43929 
43930   pyobj = SWIG_From_int(static_cast< int >(ninio37));
43931   return pyobj;
43932 }
43933 
43934 
Swig_var_niniodH_set(PyObject *)43935 SWIGINTERN int Swig_var_niniodH_set(PyObject *) {
43936   SWIG_Error(SWIG_AttributeError,"Variable niniodH is read-only.");
43937   return 1;
43938 }
43939 
43940 
Swig_var_niniodH_get(void)43941 SWIGINTERN PyObject *Swig_var_niniodH_get(void) {
43942   PyObject *pyobj = 0;
43943 
43944   pyobj = SWIG_From_int(static_cast< int >(niniodH));
43945   return pyobj;
43946 }
43947 
43948 
Swig_var_TerminalAU37_set(PyObject *)43949 SWIGINTERN int Swig_var_TerminalAU37_set(PyObject *) {
43950   SWIG_Error(SWIG_AttributeError,"Variable TerminalAU37 is read-only.");
43951   return 1;
43952 }
43953 
43954 
Swig_var_TerminalAU37_get(void)43955 SWIGINTERN PyObject *Swig_var_TerminalAU37_get(void) {
43956   PyObject *pyobj = 0;
43957 
43958   pyobj = SWIG_From_int(static_cast< int >(TerminalAU37));
43959   return pyobj;
43960 }
43961 
43962 
Swig_var_TerminalAUdH_set(PyObject *)43963 SWIGINTERN int Swig_var_TerminalAUdH_set(PyObject *) {
43964   SWIG_Error(SWIG_AttributeError,"Variable TerminalAUdH is read-only.");
43965   return 1;
43966 }
43967 
43968 
Swig_var_TerminalAUdH_get(void)43969 SWIGINTERN PyObject *Swig_var_TerminalAUdH_get(void) {
43970   PyObject *pyobj = 0;
43971 
43972   pyobj = SWIG_From_int(static_cast< int >(TerminalAUdH));
43973   return pyobj;
43974 }
43975 
43976 
Swig_var_DuplexInit37_set(PyObject *)43977 SWIGINTERN int Swig_var_DuplexInit37_set(PyObject *) {
43978   SWIG_Error(SWIG_AttributeError,"Variable DuplexInit37 is read-only.");
43979   return 1;
43980 }
43981 
43982 
Swig_var_DuplexInit37_get(void)43983 SWIGINTERN PyObject *Swig_var_DuplexInit37_get(void) {
43984   PyObject *pyobj = 0;
43985 
43986   pyobj = SWIG_From_int(static_cast< int >(DuplexInit37));
43987   return pyobj;
43988 }
43989 
43990 
Swig_var_DuplexInitdH_set(PyObject *)43991 SWIGINTERN int Swig_var_DuplexInitdH_set(PyObject *) {
43992   SWIG_Error(SWIG_AttributeError,"Variable DuplexInitdH is read-only.");
43993   return 1;
43994 }
43995 
43996 
Swig_var_DuplexInitdH_get(void)43997 SWIGINTERN PyObject *Swig_var_DuplexInitdH_get(void) {
43998   PyObject *pyobj = 0;
43999 
44000   pyobj = SWIG_From_int(static_cast< int >(DuplexInitdH));
44001   return pyobj;
44002 }
44003 
44004 
Swig_var_Tetraloops_set(PyObject *)44005 SWIGINTERN int Swig_var_Tetraloops_set(PyObject *) {
44006   SWIG_Error(SWIG_AttributeError,"Variable Tetraloops is read-only.");
44007   return 1;
44008 }
44009 
44010 
Swig_var_Tetraloops_get(void)44011 SWIGINTERN PyObject *Swig_var_Tetraloops_get(void) {
44012   PyObject *pyobj = 0;
44013 
44014   {
44015     size_t size = SWIG_strnlen(Tetraloops, 281);
44016 
44017 
44018 
44019     pyobj = SWIG_FromCharPtrAndSize(Tetraloops, size);
44020   }
44021   return pyobj;
44022 }
44023 
44024 
Swig_var_Tetraloop37_set(PyObject *)44025 SWIGINTERN int Swig_var_Tetraloop37_set(PyObject *) {
44026   SWIG_Error(SWIG_AttributeError,"Variable Tetraloop37 is read-only.");
44027   return 1;
44028 }
44029 
44030 
Swig_var_Tetraloop37_get(void)44031 SWIGINTERN PyObject *Swig_var_Tetraloop37_get(void) {
44032   PyObject *pyobj = 0;
44033 
44034   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(Tetraloop37), SWIGTYPE_p_int,  0 );
44035   return pyobj;
44036 }
44037 
44038 
Swig_var_TetraloopdH_set(PyObject *)44039 SWIGINTERN int Swig_var_TetraloopdH_set(PyObject *) {
44040   SWIG_Error(SWIG_AttributeError,"Variable TetraloopdH is read-only.");
44041   return 1;
44042 }
44043 
44044 
Swig_var_TetraloopdH_get(void)44045 SWIGINTERN PyObject *Swig_var_TetraloopdH_get(void) {
44046   PyObject *pyobj = 0;
44047 
44048   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(TetraloopdH), SWIGTYPE_p_int,  0 );
44049   return pyobj;
44050 }
44051 
44052 
Swig_var_Triloops_set(PyObject *)44053 SWIGINTERN int Swig_var_Triloops_set(PyObject *) {
44054   SWIG_Error(SWIG_AttributeError,"Variable Triloops is read-only.");
44055   return 1;
44056 }
44057 
44058 
Swig_var_Triloops_get(void)44059 SWIGINTERN PyObject *Swig_var_Triloops_get(void) {
44060   PyObject *pyobj = 0;
44061 
44062   {
44063     size_t size = SWIG_strnlen(Triloops, 241);
44064 
44065 
44066 
44067     pyobj = SWIG_FromCharPtrAndSize(Triloops, size);
44068   }
44069   return pyobj;
44070 }
44071 
44072 
Swig_var_Triloop37_set(PyObject *)44073 SWIGINTERN int Swig_var_Triloop37_set(PyObject *) {
44074   SWIG_Error(SWIG_AttributeError,"Variable Triloop37 is read-only.");
44075   return 1;
44076 }
44077 
44078 
Swig_var_Triloop37_get(void)44079 SWIGINTERN PyObject *Swig_var_Triloop37_get(void) {
44080   PyObject *pyobj = 0;
44081 
44082   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(Triloop37), SWIGTYPE_p_int,  0 );
44083   return pyobj;
44084 }
44085 
44086 
Swig_var_TriloopdH_set(PyObject *)44087 SWIGINTERN int Swig_var_TriloopdH_set(PyObject *) {
44088   SWIG_Error(SWIG_AttributeError,"Variable TriloopdH is read-only.");
44089   return 1;
44090 }
44091 
44092 
Swig_var_TriloopdH_get(void)44093 SWIGINTERN PyObject *Swig_var_TriloopdH_get(void) {
44094   PyObject *pyobj = 0;
44095 
44096   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(TriloopdH), SWIGTYPE_p_int,  0 );
44097   return pyobj;
44098 }
44099 
44100 
Swig_var_Hexaloops_set(PyObject *)44101 SWIGINTERN int Swig_var_Hexaloops_set(PyObject *) {
44102   SWIG_Error(SWIG_AttributeError,"Variable Hexaloops is read-only.");
44103   return 1;
44104 }
44105 
44106 
Swig_var_Hexaloops_get(void)44107 SWIGINTERN PyObject *Swig_var_Hexaloops_get(void) {
44108   PyObject *pyobj = 0;
44109 
44110   {
44111     size_t size = SWIG_strnlen(Hexaloops, 361);
44112 
44113 
44114 
44115     pyobj = SWIG_FromCharPtrAndSize(Hexaloops, size);
44116   }
44117   return pyobj;
44118 }
44119 
44120 
Swig_var_Hexaloop37_set(PyObject *)44121 SWIGINTERN int Swig_var_Hexaloop37_set(PyObject *) {
44122   SWIG_Error(SWIG_AttributeError,"Variable Hexaloop37 is read-only.");
44123   return 1;
44124 }
44125 
44126 
Swig_var_Hexaloop37_get(void)44127 SWIGINTERN PyObject *Swig_var_Hexaloop37_get(void) {
44128   PyObject *pyobj = 0;
44129 
44130   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(Hexaloop37), SWIGTYPE_p_int,  0 );
44131   return pyobj;
44132 }
44133 
44134 
Swig_var_HexaloopdH_set(PyObject *)44135 SWIGINTERN int Swig_var_HexaloopdH_set(PyObject *) {
44136   SWIG_Error(SWIG_AttributeError,"Variable HexaloopdH is read-only.");
44137   return 1;
44138 }
44139 
44140 
Swig_var_HexaloopdH_get(void)44141 SWIGINTERN PyObject *Swig_var_HexaloopdH_get(void) {
44142   PyObject *pyobj = 0;
44143 
44144   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(HexaloopdH), SWIGTYPE_p_int,  0 );
44145   return pyobj;
44146 }
44147 
44148 
Swig_var_GQuadAlpha37_set(PyObject *)44149 SWIGINTERN int Swig_var_GQuadAlpha37_set(PyObject *) {
44150   SWIG_Error(SWIG_AttributeError,"Variable GQuadAlpha37 is read-only.");
44151   return 1;
44152 }
44153 
44154 
Swig_var_GQuadAlpha37_get(void)44155 SWIGINTERN PyObject *Swig_var_GQuadAlpha37_get(void) {
44156   PyObject *pyobj = 0;
44157 
44158   pyobj = SWIG_From_int(static_cast< int >(GQuadAlpha37));
44159   return pyobj;
44160 }
44161 
44162 
Swig_var_GQuadAlphadH_set(PyObject *)44163 SWIGINTERN int Swig_var_GQuadAlphadH_set(PyObject *) {
44164   SWIG_Error(SWIG_AttributeError,"Variable GQuadAlphadH is read-only.");
44165   return 1;
44166 }
44167 
44168 
Swig_var_GQuadAlphadH_get(void)44169 SWIGINTERN PyObject *Swig_var_GQuadAlphadH_get(void) {
44170   PyObject *pyobj = 0;
44171 
44172   pyobj = SWIG_From_int(static_cast< int >(GQuadAlphadH));
44173   return pyobj;
44174 }
44175 
44176 
Swig_var_GQuadBeta37_set(PyObject *)44177 SWIGINTERN int Swig_var_GQuadBeta37_set(PyObject *) {
44178   SWIG_Error(SWIG_AttributeError,"Variable GQuadBeta37 is read-only.");
44179   return 1;
44180 }
44181 
44182 
Swig_var_GQuadBeta37_get(void)44183 SWIGINTERN PyObject *Swig_var_GQuadBeta37_get(void) {
44184   PyObject *pyobj = 0;
44185 
44186   pyobj = SWIG_From_int(static_cast< int >(GQuadBeta37));
44187   return pyobj;
44188 }
44189 
44190 
Swig_var_GQuadBetadH_set(PyObject *)44191 SWIGINTERN int Swig_var_GQuadBetadH_set(PyObject *) {
44192   SWIG_Error(SWIG_AttributeError,"Variable GQuadBetadH is read-only.");
44193   return 1;
44194 }
44195 
44196 
Swig_var_GQuadBetadH_get(void)44197 SWIGINTERN PyObject *Swig_var_GQuadBetadH_get(void) {
44198   PyObject *pyobj = 0;
44199 
44200   pyobj = SWIG_From_int(static_cast< int >(GQuadBetadH));
44201   return pyobj;
44202 }
44203 
44204 
Swig_var_GQuadLayerMismatch37_set(PyObject *)44205 SWIGINTERN int Swig_var_GQuadLayerMismatch37_set(PyObject *) {
44206   SWIG_Error(SWIG_AttributeError,"Variable GQuadLayerMismatch37 is read-only.");
44207   return 1;
44208 }
44209 
44210 
Swig_var_GQuadLayerMismatch37_get(void)44211 SWIGINTERN PyObject *Swig_var_GQuadLayerMismatch37_get(void) {
44212   PyObject *pyobj = 0;
44213 
44214   pyobj = SWIG_From_int(static_cast< int >(GQuadLayerMismatch37));
44215   return pyobj;
44216 }
44217 
44218 
Swig_var_GQuadLayerMismatchH_set(PyObject *)44219 SWIGINTERN int Swig_var_GQuadLayerMismatchH_set(PyObject *) {
44220   SWIG_Error(SWIG_AttributeError,"Variable GQuadLayerMismatchH is read-only.");
44221   return 1;
44222 }
44223 
44224 
Swig_var_GQuadLayerMismatchH_get(void)44225 SWIGINTERN PyObject *Swig_var_GQuadLayerMismatchH_get(void) {
44226   PyObject *pyobj = 0;
44227 
44228   pyobj = SWIG_From_int(static_cast< int >(GQuadLayerMismatchH));
44229   return pyobj;
44230 }
44231 
44232 
Swig_var_GQuadLayerMismatchMax_set(PyObject *)44233 SWIGINTERN int Swig_var_GQuadLayerMismatchMax_set(PyObject *) {
44234   SWIG_Error(SWIG_AttributeError,"Variable GQuadLayerMismatchMax is read-only.");
44235   return 1;
44236 }
44237 
44238 
Swig_var_GQuadLayerMismatchMax_get(void)44239 SWIGINTERN PyObject *Swig_var_GQuadLayerMismatchMax_get(void) {
44240   PyObject *pyobj = 0;
44241 
44242   pyobj = SWIG_From_int(static_cast< int >(GQuadLayerMismatchMax));
44243   return pyobj;
44244 }
44245 
44246 
Swig_var_Tmeasure_set(PyObject *)44247 SWIGINTERN int Swig_var_Tmeasure_set(PyObject *) {
44248   SWIG_Error(SWIG_AttributeError,"Variable Tmeasure is read-only.");
44249   return 1;
44250 }
44251 
44252 
Swig_var_Tmeasure_get(void)44253 SWIGINTERN PyObject *Swig_var_Tmeasure_get(void) {
44254   PyObject *pyobj = 0;
44255 
44256   pyobj = SWIG_From_double(static_cast< double >(Tmeasure));
44257   return pyobj;
44258 }
44259 
44260 
_wrap_md_temperature_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44261 SWIGINTERN PyObject *_wrap_md_temperature_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44262   PyObject *resultobj = 0;
44263   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44264   double arg2 ;
44265   void *argp1 = 0 ;
44266   int res1 = 0 ;
44267   double val2 ;
44268   int ecode2 = 0 ;
44269   PyObject *swig_obj[2] ;
44270 
44271   if (!SWIG_Python_UnpackTuple(args, "md_temperature_set", 2, 2, swig_obj)) SWIG_fail;
44272   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44273   if (!SWIG_IsOK(res1)) {
44274     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_temperature_set" "', argument " "1"" of type '" "vrna_md_t *""'");
44275   }
44276   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44277   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
44278   if (!SWIG_IsOK(ecode2)) {
44279     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_temperature_set" "', argument " "2"" of type '" "double""'");
44280   }
44281   arg2 = static_cast< double >(val2);
44282   if (arg1) (arg1)->temperature = arg2;
44283   resultobj = SWIG_Py_Void();
44284   return resultobj;
44285 fail:
44286   return NULL;
44287 }
44288 
44289 
_wrap_md_temperature_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44290 SWIGINTERN PyObject *_wrap_md_temperature_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44291   PyObject *resultobj = 0;
44292   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44293   void *argp1 = 0 ;
44294   int res1 = 0 ;
44295   PyObject *swig_obj[1] ;
44296   double result;
44297 
44298   if (!args) SWIG_fail;
44299   swig_obj[0] = args;
44300   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44301   if (!SWIG_IsOK(res1)) {
44302     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_temperature_get" "', argument " "1"" of type '" "vrna_md_t *""'");
44303   }
44304   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44305   result = (double) ((arg1)->temperature);
44306   resultobj = SWIG_From_double(static_cast< double >(result));
44307   return resultobj;
44308 fail:
44309   return NULL;
44310 }
44311 
44312 
_wrap_md_betaScale_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44313 SWIGINTERN PyObject *_wrap_md_betaScale_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44314   PyObject *resultobj = 0;
44315   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44316   double arg2 ;
44317   void *argp1 = 0 ;
44318   int res1 = 0 ;
44319   double val2 ;
44320   int ecode2 = 0 ;
44321   PyObject *swig_obj[2] ;
44322 
44323   if (!SWIG_Python_UnpackTuple(args, "md_betaScale_set", 2, 2, swig_obj)) SWIG_fail;
44324   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44325   if (!SWIG_IsOK(res1)) {
44326     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_betaScale_set" "', argument " "1"" of type '" "vrna_md_t *""'");
44327   }
44328   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44329   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
44330   if (!SWIG_IsOK(ecode2)) {
44331     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_betaScale_set" "', argument " "2"" of type '" "double""'");
44332   }
44333   arg2 = static_cast< double >(val2);
44334   if (arg1) (arg1)->betaScale = arg2;
44335   resultobj = SWIG_Py_Void();
44336   return resultobj;
44337 fail:
44338   return NULL;
44339 }
44340 
44341 
_wrap_md_betaScale_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44342 SWIGINTERN PyObject *_wrap_md_betaScale_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44343   PyObject *resultobj = 0;
44344   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44345   void *argp1 = 0 ;
44346   int res1 = 0 ;
44347   PyObject *swig_obj[1] ;
44348   double result;
44349 
44350   if (!args) SWIG_fail;
44351   swig_obj[0] = args;
44352   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44353   if (!SWIG_IsOK(res1)) {
44354     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_betaScale_get" "', argument " "1"" of type '" "vrna_md_t *""'");
44355   }
44356   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44357   result = (double) ((arg1)->betaScale);
44358   resultobj = SWIG_From_double(static_cast< double >(result));
44359   return resultobj;
44360 fail:
44361   return NULL;
44362 }
44363 
44364 
_wrap_md_pf_smooth_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44365 SWIGINTERN PyObject *_wrap_md_pf_smooth_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44366   PyObject *resultobj = 0;
44367   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44368   int arg2 ;
44369   void *argp1 = 0 ;
44370   int res1 = 0 ;
44371   int val2 ;
44372   int ecode2 = 0 ;
44373   PyObject *swig_obj[2] ;
44374 
44375   if (!SWIG_Python_UnpackTuple(args, "md_pf_smooth_set", 2, 2, swig_obj)) SWIG_fail;
44376   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44377   if (!SWIG_IsOK(res1)) {
44378     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_pf_smooth_set" "', argument " "1"" of type '" "vrna_md_t *""'");
44379   }
44380   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44381   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
44382   if (!SWIG_IsOK(ecode2)) {
44383     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_pf_smooth_set" "', argument " "2"" of type '" "int""'");
44384   }
44385   arg2 = static_cast< int >(val2);
44386   if (arg1) (arg1)->pf_smooth = arg2;
44387   resultobj = SWIG_Py_Void();
44388   return resultobj;
44389 fail:
44390   return NULL;
44391 }
44392 
44393 
_wrap_md_pf_smooth_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44394 SWIGINTERN PyObject *_wrap_md_pf_smooth_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44395   PyObject *resultobj = 0;
44396   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44397   void *argp1 = 0 ;
44398   int res1 = 0 ;
44399   PyObject *swig_obj[1] ;
44400   int result;
44401 
44402   if (!args) SWIG_fail;
44403   swig_obj[0] = args;
44404   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44405   if (!SWIG_IsOK(res1)) {
44406     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_pf_smooth_get" "', argument " "1"" of type '" "vrna_md_t *""'");
44407   }
44408   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44409   result = (int) ((arg1)->pf_smooth);
44410   resultobj = SWIG_From_int(static_cast< int >(result));
44411   return resultobj;
44412 fail:
44413   return NULL;
44414 }
44415 
44416 
_wrap_md_dangles_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44417 SWIGINTERN PyObject *_wrap_md_dangles_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44418   PyObject *resultobj = 0;
44419   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44420   int arg2 ;
44421   void *argp1 = 0 ;
44422   int res1 = 0 ;
44423   int val2 ;
44424   int ecode2 = 0 ;
44425   PyObject *swig_obj[2] ;
44426 
44427   if (!SWIG_Python_UnpackTuple(args, "md_dangles_set", 2, 2, swig_obj)) SWIG_fail;
44428   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44429   if (!SWIG_IsOK(res1)) {
44430     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_dangles_set" "', argument " "1"" of type '" "vrna_md_t *""'");
44431   }
44432   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44433   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
44434   if (!SWIG_IsOK(ecode2)) {
44435     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_dangles_set" "', argument " "2"" of type '" "int""'");
44436   }
44437   arg2 = static_cast< int >(val2);
44438   if (arg1) (arg1)->dangles = arg2;
44439   resultobj = SWIG_Py_Void();
44440   return resultobj;
44441 fail:
44442   return NULL;
44443 }
44444 
44445 
_wrap_md_dangles_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44446 SWIGINTERN PyObject *_wrap_md_dangles_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44447   PyObject *resultobj = 0;
44448   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44449   void *argp1 = 0 ;
44450   int res1 = 0 ;
44451   PyObject *swig_obj[1] ;
44452   int result;
44453 
44454   if (!args) SWIG_fail;
44455   swig_obj[0] = args;
44456   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44457   if (!SWIG_IsOK(res1)) {
44458     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_dangles_get" "', argument " "1"" of type '" "vrna_md_t *""'");
44459   }
44460   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44461   result = (int) ((arg1)->dangles);
44462   resultobj = SWIG_From_int(static_cast< int >(result));
44463   return resultobj;
44464 fail:
44465   return NULL;
44466 }
44467 
44468 
_wrap_md_special_hp_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44469 SWIGINTERN PyObject *_wrap_md_special_hp_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44470   PyObject *resultobj = 0;
44471   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44472   int arg2 ;
44473   void *argp1 = 0 ;
44474   int res1 = 0 ;
44475   int val2 ;
44476   int ecode2 = 0 ;
44477   PyObject *swig_obj[2] ;
44478 
44479   if (!SWIG_Python_UnpackTuple(args, "md_special_hp_set", 2, 2, swig_obj)) SWIG_fail;
44480   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44481   if (!SWIG_IsOK(res1)) {
44482     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_special_hp_set" "', argument " "1"" of type '" "vrna_md_t *""'");
44483   }
44484   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44485   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
44486   if (!SWIG_IsOK(ecode2)) {
44487     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_special_hp_set" "', argument " "2"" of type '" "int""'");
44488   }
44489   arg2 = static_cast< int >(val2);
44490   if (arg1) (arg1)->special_hp = arg2;
44491   resultobj = SWIG_Py_Void();
44492   return resultobj;
44493 fail:
44494   return NULL;
44495 }
44496 
44497 
_wrap_md_special_hp_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44498 SWIGINTERN PyObject *_wrap_md_special_hp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44499   PyObject *resultobj = 0;
44500   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44501   void *argp1 = 0 ;
44502   int res1 = 0 ;
44503   PyObject *swig_obj[1] ;
44504   int result;
44505 
44506   if (!args) SWIG_fail;
44507   swig_obj[0] = args;
44508   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44509   if (!SWIG_IsOK(res1)) {
44510     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_special_hp_get" "', argument " "1"" of type '" "vrna_md_t *""'");
44511   }
44512   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44513   result = (int) ((arg1)->special_hp);
44514   resultobj = SWIG_From_int(static_cast< int >(result));
44515   return resultobj;
44516 fail:
44517   return NULL;
44518 }
44519 
44520 
_wrap_md_noLP_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44521 SWIGINTERN PyObject *_wrap_md_noLP_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44522   PyObject *resultobj = 0;
44523   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44524   int arg2 ;
44525   void *argp1 = 0 ;
44526   int res1 = 0 ;
44527   int val2 ;
44528   int ecode2 = 0 ;
44529   PyObject *swig_obj[2] ;
44530 
44531   if (!SWIG_Python_UnpackTuple(args, "md_noLP_set", 2, 2, swig_obj)) SWIG_fail;
44532   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44533   if (!SWIG_IsOK(res1)) {
44534     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_noLP_set" "', argument " "1"" of type '" "vrna_md_t *""'");
44535   }
44536   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44537   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
44538   if (!SWIG_IsOK(ecode2)) {
44539     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_noLP_set" "', argument " "2"" of type '" "int""'");
44540   }
44541   arg2 = static_cast< int >(val2);
44542   if (arg1) (arg1)->noLP = arg2;
44543   resultobj = SWIG_Py_Void();
44544   return resultobj;
44545 fail:
44546   return NULL;
44547 }
44548 
44549 
_wrap_md_noLP_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44550 SWIGINTERN PyObject *_wrap_md_noLP_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44551   PyObject *resultobj = 0;
44552   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44553   void *argp1 = 0 ;
44554   int res1 = 0 ;
44555   PyObject *swig_obj[1] ;
44556   int result;
44557 
44558   if (!args) SWIG_fail;
44559   swig_obj[0] = args;
44560   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44561   if (!SWIG_IsOK(res1)) {
44562     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_noLP_get" "', argument " "1"" of type '" "vrna_md_t *""'");
44563   }
44564   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44565   result = (int) ((arg1)->noLP);
44566   resultobj = SWIG_From_int(static_cast< int >(result));
44567   return resultobj;
44568 fail:
44569   return NULL;
44570 }
44571 
44572 
_wrap_md_noGU_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44573 SWIGINTERN PyObject *_wrap_md_noGU_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44574   PyObject *resultobj = 0;
44575   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44576   int arg2 ;
44577   void *argp1 = 0 ;
44578   int res1 = 0 ;
44579   int val2 ;
44580   int ecode2 = 0 ;
44581   PyObject *swig_obj[2] ;
44582 
44583   if (!SWIG_Python_UnpackTuple(args, "md_noGU_set", 2, 2, swig_obj)) SWIG_fail;
44584   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44585   if (!SWIG_IsOK(res1)) {
44586     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_noGU_set" "', argument " "1"" of type '" "vrna_md_t *""'");
44587   }
44588   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44589   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
44590   if (!SWIG_IsOK(ecode2)) {
44591     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_noGU_set" "', argument " "2"" of type '" "int""'");
44592   }
44593   arg2 = static_cast< int >(val2);
44594   if (arg1) (arg1)->noGU = arg2;
44595   resultobj = SWIG_Py_Void();
44596   return resultobj;
44597 fail:
44598   return NULL;
44599 }
44600 
44601 
_wrap_md_noGU_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44602 SWIGINTERN PyObject *_wrap_md_noGU_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44603   PyObject *resultobj = 0;
44604   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44605   void *argp1 = 0 ;
44606   int res1 = 0 ;
44607   PyObject *swig_obj[1] ;
44608   int result;
44609 
44610   if (!args) SWIG_fail;
44611   swig_obj[0] = args;
44612   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44613   if (!SWIG_IsOK(res1)) {
44614     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_noGU_get" "', argument " "1"" of type '" "vrna_md_t *""'");
44615   }
44616   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44617   result = (int) ((arg1)->noGU);
44618   resultobj = SWIG_From_int(static_cast< int >(result));
44619   return resultobj;
44620 fail:
44621   return NULL;
44622 }
44623 
44624 
_wrap_md_noGUclosure_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44625 SWIGINTERN PyObject *_wrap_md_noGUclosure_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44626   PyObject *resultobj = 0;
44627   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44628   int arg2 ;
44629   void *argp1 = 0 ;
44630   int res1 = 0 ;
44631   int val2 ;
44632   int ecode2 = 0 ;
44633   PyObject *swig_obj[2] ;
44634 
44635   if (!SWIG_Python_UnpackTuple(args, "md_noGUclosure_set", 2, 2, swig_obj)) SWIG_fail;
44636   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44637   if (!SWIG_IsOK(res1)) {
44638     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_noGUclosure_set" "', argument " "1"" of type '" "vrna_md_t *""'");
44639   }
44640   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44641   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
44642   if (!SWIG_IsOK(ecode2)) {
44643     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_noGUclosure_set" "', argument " "2"" of type '" "int""'");
44644   }
44645   arg2 = static_cast< int >(val2);
44646   if (arg1) (arg1)->noGUclosure = arg2;
44647   resultobj = SWIG_Py_Void();
44648   return resultobj;
44649 fail:
44650   return NULL;
44651 }
44652 
44653 
_wrap_md_noGUclosure_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44654 SWIGINTERN PyObject *_wrap_md_noGUclosure_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44655   PyObject *resultobj = 0;
44656   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44657   void *argp1 = 0 ;
44658   int res1 = 0 ;
44659   PyObject *swig_obj[1] ;
44660   int result;
44661 
44662   if (!args) SWIG_fail;
44663   swig_obj[0] = args;
44664   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44665   if (!SWIG_IsOK(res1)) {
44666     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_noGUclosure_get" "', argument " "1"" of type '" "vrna_md_t *""'");
44667   }
44668   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44669   result = (int) ((arg1)->noGUclosure);
44670   resultobj = SWIG_From_int(static_cast< int >(result));
44671   return resultobj;
44672 fail:
44673   return NULL;
44674 }
44675 
44676 
_wrap_md_logML_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44677 SWIGINTERN PyObject *_wrap_md_logML_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44678   PyObject *resultobj = 0;
44679   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44680   int arg2 ;
44681   void *argp1 = 0 ;
44682   int res1 = 0 ;
44683   int val2 ;
44684   int ecode2 = 0 ;
44685   PyObject *swig_obj[2] ;
44686 
44687   if (!SWIG_Python_UnpackTuple(args, "md_logML_set", 2, 2, swig_obj)) SWIG_fail;
44688   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44689   if (!SWIG_IsOK(res1)) {
44690     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_logML_set" "', argument " "1"" of type '" "vrna_md_t *""'");
44691   }
44692   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44693   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
44694   if (!SWIG_IsOK(ecode2)) {
44695     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_logML_set" "', argument " "2"" of type '" "int""'");
44696   }
44697   arg2 = static_cast< int >(val2);
44698   if (arg1) (arg1)->logML = arg2;
44699   resultobj = SWIG_Py_Void();
44700   return resultobj;
44701 fail:
44702   return NULL;
44703 }
44704 
44705 
_wrap_md_logML_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44706 SWIGINTERN PyObject *_wrap_md_logML_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44707   PyObject *resultobj = 0;
44708   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44709   void *argp1 = 0 ;
44710   int res1 = 0 ;
44711   PyObject *swig_obj[1] ;
44712   int result;
44713 
44714   if (!args) SWIG_fail;
44715   swig_obj[0] = args;
44716   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44717   if (!SWIG_IsOK(res1)) {
44718     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_logML_get" "', argument " "1"" of type '" "vrna_md_t *""'");
44719   }
44720   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44721   result = (int) ((arg1)->logML);
44722   resultobj = SWIG_From_int(static_cast< int >(result));
44723   return resultobj;
44724 fail:
44725   return NULL;
44726 }
44727 
44728 
_wrap_md_circ_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44729 SWIGINTERN PyObject *_wrap_md_circ_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44730   PyObject *resultobj = 0;
44731   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44732   int arg2 ;
44733   void *argp1 = 0 ;
44734   int res1 = 0 ;
44735   int val2 ;
44736   int ecode2 = 0 ;
44737   PyObject *swig_obj[2] ;
44738 
44739   if (!SWIG_Python_UnpackTuple(args, "md_circ_set", 2, 2, swig_obj)) SWIG_fail;
44740   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44741   if (!SWIG_IsOK(res1)) {
44742     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_circ_set" "', argument " "1"" of type '" "vrna_md_t *""'");
44743   }
44744   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44745   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
44746   if (!SWIG_IsOK(ecode2)) {
44747     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_circ_set" "', argument " "2"" of type '" "int""'");
44748   }
44749   arg2 = static_cast< int >(val2);
44750   if (arg1) (arg1)->circ = arg2;
44751   resultobj = SWIG_Py_Void();
44752   return resultobj;
44753 fail:
44754   return NULL;
44755 }
44756 
44757 
_wrap_md_circ_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44758 SWIGINTERN PyObject *_wrap_md_circ_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44759   PyObject *resultobj = 0;
44760   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44761   void *argp1 = 0 ;
44762   int res1 = 0 ;
44763   PyObject *swig_obj[1] ;
44764   int result;
44765 
44766   if (!args) SWIG_fail;
44767   swig_obj[0] = args;
44768   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44769   if (!SWIG_IsOK(res1)) {
44770     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_circ_get" "', argument " "1"" of type '" "vrna_md_t *""'");
44771   }
44772   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44773   result = (int) ((arg1)->circ);
44774   resultobj = SWIG_From_int(static_cast< int >(result));
44775   return resultobj;
44776 fail:
44777   return NULL;
44778 }
44779 
44780 
_wrap_md_gquad_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44781 SWIGINTERN PyObject *_wrap_md_gquad_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44782   PyObject *resultobj = 0;
44783   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44784   int arg2 ;
44785   void *argp1 = 0 ;
44786   int res1 = 0 ;
44787   int val2 ;
44788   int ecode2 = 0 ;
44789   PyObject *swig_obj[2] ;
44790 
44791   if (!SWIG_Python_UnpackTuple(args, "md_gquad_set", 2, 2, swig_obj)) SWIG_fail;
44792   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44793   if (!SWIG_IsOK(res1)) {
44794     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_gquad_set" "', argument " "1"" of type '" "vrna_md_t *""'");
44795   }
44796   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44797   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
44798   if (!SWIG_IsOK(ecode2)) {
44799     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_gquad_set" "', argument " "2"" of type '" "int""'");
44800   }
44801   arg2 = static_cast< int >(val2);
44802   if (arg1) (arg1)->gquad = arg2;
44803   resultobj = SWIG_Py_Void();
44804   return resultobj;
44805 fail:
44806   return NULL;
44807 }
44808 
44809 
_wrap_md_gquad_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44810 SWIGINTERN PyObject *_wrap_md_gquad_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44811   PyObject *resultobj = 0;
44812   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44813   void *argp1 = 0 ;
44814   int res1 = 0 ;
44815   PyObject *swig_obj[1] ;
44816   int result;
44817 
44818   if (!args) SWIG_fail;
44819   swig_obj[0] = args;
44820   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44821   if (!SWIG_IsOK(res1)) {
44822     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_gquad_get" "', argument " "1"" of type '" "vrna_md_t *""'");
44823   }
44824   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44825   result = (int) ((arg1)->gquad);
44826   resultobj = SWIG_From_int(static_cast< int >(result));
44827   return resultobj;
44828 fail:
44829   return NULL;
44830 }
44831 
44832 
_wrap_md_uniq_ML_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44833 SWIGINTERN PyObject *_wrap_md_uniq_ML_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44834   PyObject *resultobj = 0;
44835   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44836   int arg2 ;
44837   void *argp1 = 0 ;
44838   int res1 = 0 ;
44839   int val2 ;
44840   int ecode2 = 0 ;
44841   PyObject *swig_obj[2] ;
44842 
44843   if (!SWIG_Python_UnpackTuple(args, "md_uniq_ML_set", 2, 2, swig_obj)) SWIG_fail;
44844   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44845   if (!SWIG_IsOK(res1)) {
44846     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_uniq_ML_set" "', argument " "1"" of type '" "vrna_md_t *""'");
44847   }
44848   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44849   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
44850   if (!SWIG_IsOK(ecode2)) {
44851     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_uniq_ML_set" "', argument " "2"" of type '" "int""'");
44852   }
44853   arg2 = static_cast< int >(val2);
44854   if (arg1) (arg1)->uniq_ML = arg2;
44855   resultobj = SWIG_Py_Void();
44856   return resultobj;
44857 fail:
44858   return NULL;
44859 }
44860 
44861 
_wrap_md_uniq_ML_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44862 SWIGINTERN PyObject *_wrap_md_uniq_ML_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44863   PyObject *resultobj = 0;
44864   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44865   void *argp1 = 0 ;
44866   int res1 = 0 ;
44867   PyObject *swig_obj[1] ;
44868   int result;
44869 
44870   if (!args) SWIG_fail;
44871   swig_obj[0] = args;
44872   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44873   if (!SWIG_IsOK(res1)) {
44874     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_uniq_ML_get" "', argument " "1"" of type '" "vrna_md_t *""'");
44875   }
44876   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44877   result = (int) ((arg1)->uniq_ML);
44878   resultobj = SWIG_From_int(static_cast< int >(result));
44879   return resultobj;
44880 fail:
44881   return NULL;
44882 }
44883 
44884 
_wrap_md_energy_set_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44885 SWIGINTERN PyObject *_wrap_md_energy_set_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44886   PyObject *resultobj = 0;
44887   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44888   int arg2 ;
44889   void *argp1 = 0 ;
44890   int res1 = 0 ;
44891   int val2 ;
44892   int ecode2 = 0 ;
44893   PyObject *swig_obj[2] ;
44894 
44895   if (!SWIG_Python_UnpackTuple(args, "md_energy_set_set", 2, 2, swig_obj)) SWIG_fail;
44896   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44897   if (!SWIG_IsOK(res1)) {
44898     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_energy_set_set" "', argument " "1"" of type '" "vrna_md_t *""'");
44899   }
44900   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44901   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
44902   if (!SWIG_IsOK(ecode2)) {
44903     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_energy_set_set" "', argument " "2"" of type '" "int""'");
44904   }
44905   arg2 = static_cast< int >(val2);
44906   if (arg1) (arg1)->energy_set = arg2;
44907   resultobj = SWIG_Py_Void();
44908   return resultobj;
44909 fail:
44910   return NULL;
44911 }
44912 
44913 
_wrap_md_energy_set_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44914 SWIGINTERN PyObject *_wrap_md_energy_set_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44915   PyObject *resultobj = 0;
44916   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44917   void *argp1 = 0 ;
44918   int res1 = 0 ;
44919   PyObject *swig_obj[1] ;
44920   int result;
44921 
44922   if (!args) SWIG_fail;
44923   swig_obj[0] = args;
44924   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44925   if (!SWIG_IsOK(res1)) {
44926     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_energy_set_get" "', argument " "1"" of type '" "vrna_md_t *""'");
44927   }
44928   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44929   result = (int) ((arg1)->energy_set);
44930   resultobj = SWIG_From_int(static_cast< int >(result));
44931   return resultobj;
44932 fail:
44933   return NULL;
44934 }
44935 
44936 
_wrap_md_backtrack_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44937 SWIGINTERN PyObject *_wrap_md_backtrack_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44938   PyObject *resultobj = 0;
44939   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44940   int arg2 ;
44941   void *argp1 = 0 ;
44942   int res1 = 0 ;
44943   int val2 ;
44944   int ecode2 = 0 ;
44945   PyObject *swig_obj[2] ;
44946 
44947   if (!SWIG_Python_UnpackTuple(args, "md_backtrack_set", 2, 2, swig_obj)) SWIG_fail;
44948   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44949   if (!SWIG_IsOK(res1)) {
44950     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_backtrack_set" "', argument " "1"" of type '" "vrna_md_t *""'");
44951   }
44952   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44953   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
44954   if (!SWIG_IsOK(ecode2)) {
44955     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_backtrack_set" "', argument " "2"" of type '" "int""'");
44956   }
44957   arg2 = static_cast< int >(val2);
44958   if (arg1) (arg1)->backtrack = arg2;
44959   resultobj = SWIG_Py_Void();
44960   return resultobj;
44961 fail:
44962   return NULL;
44963 }
44964 
44965 
_wrap_md_backtrack_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44966 SWIGINTERN PyObject *_wrap_md_backtrack_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44967   PyObject *resultobj = 0;
44968   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44969   void *argp1 = 0 ;
44970   int res1 = 0 ;
44971   PyObject *swig_obj[1] ;
44972   int result;
44973 
44974   if (!args) SWIG_fail;
44975   swig_obj[0] = args;
44976   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
44977   if (!SWIG_IsOK(res1)) {
44978     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_backtrack_get" "', argument " "1"" of type '" "vrna_md_t *""'");
44979   }
44980   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
44981   result = (int) ((arg1)->backtrack);
44982   resultobj = SWIG_From_int(static_cast< int >(result));
44983   return resultobj;
44984 fail:
44985   return NULL;
44986 }
44987 
44988 
_wrap_md_backtrack_type_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44989 SWIGINTERN PyObject *_wrap_md_backtrack_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44990   PyObject *resultobj = 0;
44991   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
44992   char arg2 ;
44993   void *argp1 = 0 ;
44994   int res1 = 0 ;
44995   char val2 ;
44996   int ecode2 = 0 ;
44997   PyObject *swig_obj[2] ;
44998 
44999   if (!SWIG_Python_UnpackTuple(args, "md_backtrack_type_set", 2, 2, swig_obj)) SWIG_fail;
45000   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45001   if (!SWIG_IsOK(res1)) {
45002     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_backtrack_type_set" "', argument " "1"" of type '" "vrna_md_t *""'");
45003   }
45004   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45005   ecode2 = SWIG_AsVal_char(swig_obj[1], &val2);
45006   if (!SWIG_IsOK(ecode2)) {
45007     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_backtrack_type_set" "', argument " "2"" of type '" "char""'");
45008   }
45009   arg2 = static_cast< char >(val2);
45010   if (arg1) (arg1)->backtrack_type = arg2;
45011   resultobj = SWIG_Py_Void();
45012   return resultobj;
45013 fail:
45014   return NULL;
45015 }
45016 
45017 
_wrap_md_backtrack_type_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45018 SWIGINTERN PyObject *_wrap_md_backtrack_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45019   PyObject *resultobj = 0;
45020   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45021   void *argp1 = 0 ;
45022   int res1 = 0 ;
45023   PyObject *swig_obj[1] ;
45024   char result;
45025 
45026   if (!args) SWIG_fail;
45027   swig_obj[0] = args;
45028   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45029   if (!SWIG_IsOK(res1)) {
45030     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_backtrack_type_get" "', argument " "1"" of type '" "vrna_md_t *""'");
45031   }
45032   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45033   result = (char) ((arg1)->backtrack_type);
45034   resultobj = SWIG_From_char(static_cast< char >(result));
45035   return resultobj;
45036 fail:
45037   return NULL;
45038 }
45039 
45040 
_wrap_md_compute_bpp_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45041 SWIGINTERN PyObject *_wrap_md_compute_bpp_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45042   PyObject *resultobj = 0;
45043   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45044   int arg2 ;
45045   void *argp1 = 0 ;
45046   int res1 = 0 ;
45047   int val2 ;
45048   int ecode2 = 0 ;
45049   PyObject *swig_obj[2] ;
45050 
45051   if (!SWIG_Python_UnpackTuple(args, "md_compute_bpp_set", 2, 2, swig_obj)) SWIG_fail;
45052   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45053   if (!SWIG_IsOK(res1)) {
45054     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_compute_bpp_set" "', argument " "1"" of type '" "vrna_md_t *""'");
45055   }
45056   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45057   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
45058   if (!SWIG_IsOK(ecode2)) {
45059     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_compute_bpp_set" "', argument " "2"" of type '" "int""'");
45060   }
45061   arg2 = static_cast< int >(val2);
45062   if (arg1) (arg1)->compute_bpp = arg2;
45063   resultobj = SWIG_Py_Void();
45064   return resultobj;
45065 fail:
45066   return NULL;
45067 }
45068 
45069 
_wrap_md_compute_bpp_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45070 SWIGINTERN PyObject *_wrap_md_compute_bpp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45071   PyObject *resultobj = 0;
45072   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45073   void *argp1 = 0 ;
45074   int res1 = 0 ;
45075   PyObject *swig_obj[1] ;
45076   int result;
45077 
45078   if (!args) SWIG_fail;
45079   swig_obj[0] = args;
45080   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45081   if (!SWIG_IsOK(res1)) {
45082     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_compute_bpp_get" "', argument " "1"" of type '" "vrna_md_t *""'");
45083   }
45084   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45085   result = (int) ((arg1)->compute_bpp);
45086   resultobj = SWIG_From_int(static_cast< int >(result));
45087   return resultobj;
45088 fail:
45089   return NULL;
45090 }
45091 
45092 
_wrap_md_nonstandards_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45093 SWIGINTERN PyObject *_wrap_md_nonstandards_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45094   PyObject *resultobj = 0;
45095   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45096   char *arg2 ;
45097   void *argp1 = 0 ;
45098   int res1 = 0 ;
45099   char temp2[64] ;
45100   int res2 ;
45101   PyObject *swig_obj[2] ;
45102 
45103   if (!SWIG_Python_UnpackTuple(args, "md_nonstandards_set", 2, 2, swig_obj)) SWIG_fail;
45104   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45105   if (!SWIG_IsOK(res1)) {
45106     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_nonstandards_set" "', argument " "1"" of type '" "vrna_md_t *""'");
45107   }
45108   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45109   res2 = SWIG_AsCharArray(swig_obj[1], temp2, 64);
45110   if (!SWIG_IsOK(res2)) {
45111     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "md_nonstandards_set" "', argument " "2"" of type '" "char [64]""'");
45112   }
45113   arg2 = reinterpret_cast< char * >(temp2);
45114   if (arg2) memcpy(arg1->nonstandards,arg2,64*sizeof(char));
45115   else memset(arg1->nonstandards,0,64*sizeof(char));
45116   resultobj = SWIG_Py_Void();
45117   return resultobj;
45118 fail:
45119   return NULL;
45120 }
45121 
45122 
_wrap_md_nonstandards_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45123 SWIGINTERN PyObject *_wrap_md_nonstandards_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45124   PyObject *resultobj = 0;
45125   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45126   void *argp1 = 0 ;
45127   int res1 = 0 ;
45128   PyObject *swig_obj[1] ;
45129   char *result = 0 ;
45130 
45131   if (!args) SWIG_fail;
45132   swig_obj[0] = args;
45133   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45134   if (!SWIG_IsOK(res1)) {
45135     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_nonstandards_get" "', argument " "1"" of type '" "vrna_md_t *""'");
45136   }
45137   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45138   result = (char *)(char *) ((arg1)->nonstandards);
45139   {
45140     size_t size = SWIG_strnlen(result, 64);
45141 
45142 
45143 
45144     resultobj = SWIG_FromCharPtrAndSize(result, size);
45145   }
45146   return resultobj;
45147 fail:
45148   return NULL;
45149 }
45150 
45151 
_wrap_md_max_bp_span_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45152 SWIGINTERN PyObject *_wrap_md_max_bp_span_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45153   PyObject *resultobj = 0;
45154   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45155   int arg2 ;
45156   void *argp1 = 0 ;
45157   int res1 = 0 ;
45158   int val2 ;
45159   int ecode2 = 0 ;
45160   PyObject *swig_obj[2] ;
45161 
45162   if (!SWIG_Python_UnpackTuple(args, "md_max_bp_span_set", 2, 2, swig_obj)) SWIG_fail;
45163   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45164   if (!SWIG_IsOK(res1)) {
45165     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_max_bp_span_set" "', argument " "1"" of type '" "vrna_md_t *""'");
45166   }
45167   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45168   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
45169   if (!SWIG_IsOK(ecode2)) {
45170     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_max_bp_span_set" "', argument " "2"" of type '" "int""'");
45171   }
45172   arg2 = static_cast< int >(val2);
45173   if (arg1) (arg1)->max_bp_span = arg2;
45174   resultobj = SWIG_Py_Void();
45175   return resultobj;
45176 fail:
45177   return NULL;
45178 }
45179 
45180 
_wrap_md_max_bp_span_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45181 SWIGINTERN PyObject *_wrap_md_max_bp_span_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45182   PyObject *resultobj = 0;
45183   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45184   void *argp1 = 0 ;
45185   int res1 = 0 ;
45186   PyObject *swig_obj[1] ;
45187   int result;
45188 
45189   if (!args) SWIG_fail;
45190   swig_obj[0] = args;
45191   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45192   if (!SWIG_IsOK(res1)) {
45193     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_max_bp_span_get" "', argument " "1"" of type '" "vrna_md_t *""'");
45194   }
45195   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45196   result = (int) ((arg1)->max_bp_span);
45197   resultobj = SWIG_From_int(static_cast< int >(result));
45198   return resultobj;
45199 fail:
45200   return NULL;
45201 }
45202 
45203 
_wrap_md_min_loop_size_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45204 SWIGINTERN PyObject *_wrap_md_min_loop_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45205   PyObject *resultobj = 0;
45206   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45207   int arg2 ;
45208   void *argp1 = 0 ;
45209   int res1 = 0 ;
45210   int val2 ;
45211   int ecode2 = 0 ;
45212   PyObject *swig_obj[2] ;
45213 
45214   if (!SWIG_Python_UnpackTuple(args, "md_min_loop_size_set", 2, 2, swig_obj)) SWIG_fail;
45215   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45216   if (!SWIG_IsOK(res1)) {
45217     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_min_loop_size_set" "', argument " "1"" of type '" "vrna_md_t *""'");
45218   }
45219   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45220   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
45221   if (!SWIG_IsOK(ecode2)) {
45222     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_min_loop_size_set" "', argument " "2"" of type '" "int""'");
45223   }
45224   arg2 = static_cast< int >(val2);
45225   if (arg1) (arg1)->min_loop_size = arg2;
45226   resultobj = SWIG_Py_Void();
45227   return resultobj;
45228 fail:
45229   return NULL;
45230 }
45231 
45232 
_wrap_md_min_loop_size_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45233 SWIGINTERN PyObject *_wrap_md_min_loop_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45234   PyObject *resultobj = 0;
45235   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45236   void *argp1 = 0 ;
45237   int res1 = 0 ;
45238   PyObject *swig_obj[1] ;
45239   int result;
45240 
45241   if (!args) SWIG_fail;
45242   swig_obj[0] = args;
45243   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45244   if (!SWIG_IsOK(res1)) {
45245     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_min_loop_size_get" "', argument " "1"" of type '" "vrna_md_t *""'");
45246   }
45247   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45248   result = (int) ((arg1)->min_loop_size);
45249   resultobj = SWIG_From_int(static_cast< int >(result));
45250   return resultobj;
45251 fail:
45252   return NULL;
45253 }
45254 
45255 
_wrap_md_window_size_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45256 SWIGINTERN PyObject *_wrap_md_window_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45257   PyObject *resultobj = 0;
45258   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45259   int arg2 ;
45260   void *argp1 = 0 ;
45261   int res1 = 0 ;
45262   int val2 ;
45263   int ecode2 = 0 ;
45264   PyObject *swig_obj[2] ;
45265 
45266   if (!SWIG_Python_UnpackTuple(args, "md_window_size_set", 2, 2, swig_obj)) SWIG_fail;
45267   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45268   if (!SWIG_IsOK(res1)) {
45269     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_window_size_set" "', argument " "1"" of type '" "vrna_md_t *""'");
45270   }
45271   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45272   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
45273   if (!SWIG_IsOK(ecode2)) {
45274     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_window_size_set" "', argument " "2"" of type '" "int""'");
45275   }
45276   arg2 = static_cast< int >(val2);
45277   if (arg1) (arg1)->window_size = arg2;
45278   resultobj = SWIG_Py_Void();
45279   return resultobj;
45280 fail:
45281   return NULL;
45282 }
45283 
45284 
_wrap_md_window_size_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45285 SWIGINTERN PyObject *_wrap_md_window_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45286   PyObject *resultobj = 0;
45287   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45288   void *argp1 = 0 ;
45289   int res1 = 0 ;
45290   PyObject *swig_obj[1] ;
45291   int result;
45292 
45293   if (!args) SWIG_fail;
45294   swig_obj[0] = args;
45295   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45296   if (!SWIG_IsOK(res1)) {
45297     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_window_size_get" "', argument " "1"" of type '" "vrna_md_t *""'");
45298   }
45299   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45300   result = (int) ((arg1)->window_size);
45301   resultobj = SWIG_From_int(static_cast< int >(result));
45302   return resultobj;
45303 fail:
45304   return NULL;
45305 }
45306 
45307 
_wrap_md_oldAliEn_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45308 SWIGINTERN PyObject *_wrap_md_oldAliEn_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45309   PyObject *resultobj = 0;
45310   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45311   int arg2 ;
45312   void *argp1 = 0 ;
45313   int res1 = 0 ;
45314   int val2 ;
45315   int ecode2 = 0 ;
45316   PyObject *swig_obj[2] ;
45317 
45318   if (!SWIG_Python_UnpackTuple(args, "md_oldAliEn_set", 2, 2, swig_obj)) SWIG_fail;
45319   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45320   if (!SWIG_IsOK(res1)) {
45321     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_oldAliEn_set" "', argument " "1"" of type '" "vrna_md_t *""'");
45322   }
45323   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45324   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
45325   if (!SWIG_IsOK(ecode2)) {
45326     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_oldAliEn_set" "', argument " "2"" of type '" "int""'");
45327   }
45328   arg2 = static_cast< int >(val2);
45329   if (arg1) (arg1)->oldAliEn = arg2;
45330   resultobj = SWIG_Py_Void();
45331   return resultobj;
45332 fail:
45333   return NULL;
45334 }
45335 
45336 
_wrap_md_oldAliEn_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45337 SWIGINTERN PyObject *_wrap_md_oldAliEn_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45338   PyObject *resultobj = 0;
45339   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45340   void *argp1 = 0 ;
45341   int res1 = 0 ;
45342   PyObject *swig_obj[1] ;
45343   int result;
45344 
45345   if (!args) SWIG_fail;
45346   swig_obj[0] = args;
45347   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45348   if (!SWIG_IsOK(res1)) {
45349     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_oldAliEn_get" "', argument " "1"" of type '" "vrna_md_t *""'");
45350   }
45351   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45352   result = (int) ((arg1)->oldAliEn);
45353   resultobj = SWIG_From_int(static_cast< int >(result));
45354   return resultobj;
45355 fail:
45356   return NULL;
45357 }
45358 
45359 
_wrap_md_ribo_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45360 SWIGINTERN PyObject *_wrap_md_ribo_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45361   PyObject *resultobj = 0;
45362   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45363   int arg2 ;
45364   void *argp1 = 0 ;
45365   int res1 = 0 ;
45366   int val2 ;
45367   int ecode2 = 0 ;
45368   PyObject *swig_obj[2] ;
45369 
45370   if (!SWIG_Python_UnpackTuple(args, "md_ribo_set", 2, 2, swig_obj)) SWIG_fail;
45371   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45372   if (!SWIG_IsOK(res1)) {
45373     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_ribo_set" "', argument " "1"" of type '" "vrna_md_t *""'");
45374   }
45375   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45376   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
45377   if (!SWIG_IsOK(ecode2)) {
45378     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_ribo_set" "', argument " "2"" of type '" "int""'");
45379   }
45380   arg2 = static_cast< int >(val2);
45381   if (arg1) (arg1)->ribo = arg2;
45382   resultobj = SWIG_Py_Void();
45383   return resultobj;
45384 fail:
45385   return NULL;
45386 }
45387 
45388 
_wrap_md_ribo_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45389 SWIGINTERN PyObject *_wrap_md_ribo_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45390   PyObject *resultobj = 0;
45391   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45392   void *argp1 = 0 ;
45393   int res1 = 0 ;
45394   PyObject *swig_obj[1] ;
45395   int result;
45396 
45397   if (!args) SWIG_fail;
45398   swig_obj[0] = args;
45399   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45400   if (!SWIG_IsOK(res1)) {
45401     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_ribo_get" "', argument " "1"" of type '" "vrna_md_t *""'");
45402   }
45403   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45404   result = (int) ((arg1)->ribo);
45405   resultobj = SWIG_From_int(static_cast< int >(result));
45406   return resultobj;
45407 fail:
45408   return NULL;
45409 }
45410 
45411 
_wrap_md_cv_fact_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45412 SWIGINTERN PyObject *_wrap_md_cv_fact_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45413   PyObject *resultobj = 0;
45414   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45415   double arg2 ;
45416   void *argp1 = 0 ;
45417   int res1 = 0 ;
45418   double val2 ;
45419   int ecode2 = 0 ;
45420   PyObject *swig_obj[2] ;
45421 
45422   if (!SWIG_Python_UnpackTuple(args, "md_cv_fact_set", 2, 2, swig_obj)) SWIG_fail;
45423   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45424   if (!SWIG_IsOK(res1)) {
45425     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_cv_fact_set" "', argument " "1"" of type '" "vrna_md_t *""'");
45426   }
45427   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45428   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
45429   if (!SWIG_IsOK(ecode2)) {
45430     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_cv_fact_set" "', argument " "2"" of type '" "double""'");
45431   }
45432   arg2 = static_cast< double >(val2);
45433   if (arg1) (arg1)->cv_fact = arg2;
45434   resultobj = SWIG_Py_Void();
45435   return resultobj;
45436 fail:
45437   return NULL;
45438 }
45439 
45440 
_wrap_md_cv_fact_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45441 SWIGINTERN PyObject *_wrap_md_cv_fact_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45442   PyObject *resultobj = 0;
45443   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45444   void *argp1 = 0 ;
45445   int res1 = 0 ;
45446   PyObject *swig_obj[1] ;
45447   double result;
45448 
45449   if (!args) SWIG_fail;
45450   swig_obj[0] = args;
45451   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45452   if (!SWIG_IsOK(res1)) {
45453     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_cv_fact_get" "', argument " "1"" of type '" "vrna_md_t *""'");
45454   }
45455   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45456   result = (double) ((arg1)->cv_fact);
45457   resultobj = SWIG_From_double(static_cast< double >(result));
45458   return resultobj;
45459 fail:
45460   return NULL;
45461 }
45462 
45463 
_wrap_md_nc_fact_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45464 SWIGINTERN PyObject *_wrap_md_nc_fact_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45465   PyObject *resultobj = 0;
45466   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45467   double arg2 ;
45468   void *argp1 = 0 ;
45469   int res1 = 0 ;
45470   double val2 ;
45471   int ecode2 = 0 ;
45472   PyObject *swig_obj[2] ;
45473 
45474   if (!SWIG_Python_UnpackTuple(args, "md_nc_fact_set", 2, 2, swig_obj)) SWIG_fail;
45475   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45476   if (!SWIG_IsOK(res1)) {
45477     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_nc_fact_set" "', argument " "1"" of type '" "vrna_md_t *""'");
45478   }
45479   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45480   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
45481   if (!SWIG_IsOK(ecode2)) {
45482     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_nc_fact_set" "', argument " "2"" of type '" "double""'");
45483   }
45484   arg2 = static_cast< double >(val2);
45485   if (arg1) (arg1)->nc_fact = arg2;
45486   resultobj = SWIG_Py_Void();
45487   return resultobj;
45488 fail:
45489   return NULL;
45490 }
45491 
45492 
_wrap_md_nc_fact_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45493 SWIGINTERN PyObject *_wrap_md_nc_fact_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45494   PyObject *resultobj = 0;
45495   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45496   void *argp1 = 0 ;
45497   int res1 = 0 ;
45498   PyObject *swig_obj[1] ;
45499   double result;
45500 
45501   if (!args) SWIG_fail;
45502   swig_obj[0] = args;
45503   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45504   if (!SWIG_IsOK(res1)) {
45505     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_nc_fact_get" "', argument " "1"" of type '" "vrna_md_t *""'");
45506   }
45507   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45508   result = (double) ((arg1)->nc_fact);
45509   resultobj = SWIG_From_double(static_cast< double >(result));
45510   return resultobj;
45511 fail:
45512   return NULL;
45513 }
45514 
45515 
_wrap_md_sfact_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45516 SWIGINTERN PyObject *_wrap_md_sfact_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45517   PyObject *resultobj = 0;
45518   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45519   double arg2 ;
45520   void *argp1 = 0 ;
45521   int res1 = 0 ;
45522   double val2 ;
45523   int ecode2 = 0 ;
45524   PyObject *swig_obj[2] ;
45525 
45526   if (!SWIG_Python_UnpackTuple(args, "md_sfact_set", 2, 2, swig_obj)) SWIG_fail;
45527   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45528   if (!SWIG_IsOK(res1)) {
45529     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_sfact_set" "', argument " "1"" of type '" "vrna_md_t *""'");
45530   }
45531   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45532   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
45533   if (!SWIG_IsOK(ecode2)) {
45534     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "md_sfact_set" "', argument " "2"" of type '" "double""'");
45535   }
45536   arg2 = static_cast< double >(val2);
45537   if (arg1) (arg1)->sfact = arg2;
45538   resultobj = SWIG_Py_Void();
45539   return resultobj;
45540 fail:
45541   return NULL;
45542 }
45543 
45544 
_wrap_md_sfact_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45545 SWIGINTERN PyObject *_wrap_md_sfact_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45546   PyObject *resultobj = 0;
45547   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45548   void *argp1 = 0 ;
45549   int res1 = 0 ;
45550   PyObject *swig_obj[1] ;
45551   double result;
45552 
45553   if (!args) SWIG_fail;
45554   swig_obj[0] = args;
45555   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45556   if (!SWIG_IsOK(res1)) {
45557     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_sfact_get" "', argument " "1"" of type '" "vrna_md_t *""'");
45558   }
45559   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45560   result = (double) ((arg1)->sfact);
45561   resultobj = SWIG_From_double(static_cast< double >(result));
45562   return resultobj;
45563 fail:
45564   return NULL;
45565 }
45566 
45567 
_wrap_md_rtype_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45568 SWIGINTERN PyObject *_wrap_md_rtype_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45569   PyObject *resultobj = 0;
45570   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45571   void *argp1 = 0 ;
45572   int res1 = 0 ;
45573   PyObject *swig_obj[1] ;
45574   int *result = 0 ;
45575 
45576   if (!args) SWIG_fail;
45577   swig_obj[0] = args;
45578   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45579   if (!SWIG_IsOK(res1)) {
45580     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_rtype_get" "', argument " "1"" of type '" "vrna_md_t *""'");
45581   }
45582   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45583   result = (int *)(int *) ((arg1)->rtype);
45584   {
45585     int i;
45586     resultobj = PyList_New(8);
45587     for (i = 0; i < 8; i++) {
45588       PyObject *o = PyLong_FromLong((long) result[i]);
45589       PyList_SetItem(resultobj,i,o);
45590     }
45591   }
45592   return resultobj;
45593 fail:
45594   return NULL;
45595 }
45596 
45597 
_wrap_md_alias_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45598 SWIGINTERN PyObject *_wrap_md_alias_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45599   PyObject *resultobj = 0;
45600   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45601   void *argp1 = 0 ;
45602   int res1 = 0 ;
45603   PyObject *swig_obj[1] ;
45604   short *result = 0 ;
45605 
45606   if (!args) SWIG_fail;
45607   swig_obj[0] = args;
45608   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45609   if (!SWIG_IsOK(res1)) {
45610     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_alias_get" "', argument " "1"" of type '" "vrna_md_t *""'");
45611   }
45612   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45613   result = (short *)(short *) ((arg1)->alias);
45614   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_short, 0 |  0 );
45615   return resultobj;
45616 fail:
45617   return NULL;
45618 }
45619 
45620 
_wrap_md_pair_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45621 SWIGINTERN PyObject *_wrap_md_pair_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45622   PyObject *resultobj = 0;
45623   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45624   void *argp1 = 0 ;
45625   int res1 = 0 ;
45626   PyObject *swig_obj[1] ;
45627   int (*result)[MAXALPHA+1] = 0 ;
45628 
45629   if (!args) SWIG_fail;
45630   swig_obj[0] = args;
45631   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45632   if (!SWIG_IsOK(res1)) {
45633     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_pair_get" "', argument " "1"" of type '" "vrna_md_t *""'");
45634   }
45635   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45636   result = (int (*)[MAXALPHA+1])(int (*)[MAXALPHA+1]) ((arg1)->pair);
45637   {
45638     size_t i, j;
45639     //result, MAXALPHA+1, MAXALPHA+1
45640     resultobj = PyList_New(MAXALPHA+1);
45641     for (i = 0; i < MAXALPHA+1; i++) {
45642       PyObject *l = PyList_New(MAXALPHA+1);
45643       for (j = 0; j < MAXALPHA+1; j++) {
45644         PyObject *o = PyLong_FromLong((long) result[i][j]);
45645         PyList_SetItem(l, j, o);
45646       }
45647       PyList_SetItem(resultobj,i,l);
45648     }
45649   }
45650   return resultobj;
45651 fail:
45652   return NULL;
45653 }
45654 
45655 
_wrap_new_md(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)45656 SWIGINTERN PyObject *_wrap_new_md(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45657   PyObject *resultobj = 0;
45658   double arg1 = (double) (double)vrna_md_defaults_temperature_get() ;
45659   double arg2 = (double) (double)vrna_md_defaults_betaScale_get() ;
45660   int arg3 = (int) (int)vrna_md_defaults_pf_smooth_get() ;
45661   int arg4 = (int) (int)vrna_md_defaults_dangles_get() ;
45662   int arg5 = (int) (int)vrna_md_defaults_special_hp_get() ;
45663   int arg6 = (int) (int)vrna_md_defaults_noLP_get() ;
45664   int arg7 = (int) (int)vrna_md_defaults_noGU_get() ;
45665   int arg8 = (int) (int)vrna_md_defaults_noGUclosure_get() ;
45666   int arg9 = (int) (int)vrna_md_defaults_logML_get() ;
45667   int arg10 = (int) (int)vrna_md_defaults_circ_get() ;
45668   int arg11 = (int) (int)vrna_md_defaults_gquad_get() ;
45669   int arg12 = (int) (int)vrna_md_defaults_uniq_ML_get() ;
45670   int arg13 = (int) (int)vrna_md_defaults_energy_set_get() ;
45671   int arg14 = (int) (int)vrna_md_defaults_backtrack_get() ;
45672   char arg15 = (char) (char)vrna_md_defaults_backtrack_type_get() ;
45673   int arg16 = (int) (int)vrna_md_defaults_compute_bpp_get() ;
45674   int arg17 = (int) (int)vrna_md_defaults_max_bp_span_get() ;
45675   int arg18 = (int) (int)vrna_md_defaults_min_loop_size_get() ;
45676   int arg19 = (int) (int)vrna_md_defaults_window_size_get() ;
45677   int arg20 = (int) (int)vrna_md_defaults_oldAliEn_get() ;
45678   int arg21 = (int) (int)vrna_md_defaults_ribo_get() ;
45679   double arg22 = (double) (double)vrna_md_defaults_cv_fact_get() ;
45680   double arg23 = (double) (double)vrna_md_defaults_nc_fact_get() ;
45681   double arg24 = (double) (double)vrna_md_defaults_sfact_get() ;
45682   double val1 ;
45683   int ecode1 = 0 ;
45684   double val2 ;
45685   int ecode2 = 0 ;
45686   int val3 ;
45687   int ecode3 = 0 ;
45688   int val4 ;
45689   int ecode4 = 0 ;
45690   int val5 ;
45691   int ecode5 = 0 ;
45692   int val6 ;
45693   int ecode6 = 0 ;
45694   int val7 ;
45695   int ecode7 = 0 ;
45696   int val8 ;
45697   int ecode8 = 0 ;
45698   int val9 ;
45699   int ecode9 = 0 ;
45700   int val10 ;
45701   int ecode10 = 0 ;
45702   int val11 ;
45703   int ecode11 = 0 ;
45704   int val12 ;
45705   int ecode12 = 0 ;
45706   int val13 ;
45707   int ecode13 = 0 ;
45708   int val14 ;
45709   int ecode14 = 0 ;
45710   char val15 ;
45711   int ecode15 = 0 ;
45712   int val16 ;
45713   int ecode16 = 0 ;
45714   int val17 ;
45715   int ecode17 = 0 ;
45716   int val18 ;
45717   int ecode18 = 0 ;
45718   int val19 ;
45719   int ecode19 = 0 ;
45720   int val20 ;
45721   int ecode20 = 0 ;
45722   int val21 ;
45723   int ecode21 = 0 ;
45724   double val22 ;
45725   int ecode22 = 0 ;
45726   double val23 ;
45727   int ecode23 = 0 ;
45728   double val24 ;
45729   int ecode24 = 0 ;
45730   PyObject * obj0 = 0 ;
45731   PyObject * obj1 = 0 ;
45732   PyObject * obj2 = 0 ;
45733   PyObject * obj3 = 0 ;
45734   PyObject * obj4 = 0 ;
45735   PyObject * obj5 = 0 ;
45736   PyObject * obj6 = 0 ;
45737   PyObject * obj7 = 0 ;
45738   PyObject * obj8 = 0 ;
45739   PyObject * obj9 = 0 ;
45740   PyObject * obj10 = 0 ;
45741   PyObject * obj11 = 0 ;
45742   PyObject * obj12 = 0 ;
45743   PyObject * obj13 = 0 ;
45744   PyObject * obj14 = 0 ;
45745   PyObject * obj15 = 0 ;
45746   PyObject * obj16 = 0 ;
45747   PyObject * obj17 = 0 ;
45748   PyObject * obj18 = 0 ;
45749   PyObject * obj19 = 0 ;
45750   PyObject * obj20 = 0 ;
45751   PyObject * obj21 = 0 ;
45752   PyObject * obj22 = 0 ;
45753   PyObject * obj23 = 0 ;
45754   char * kwnames[] = {
45755     (char *)"temperature",  (char *)"betaScale",  (char *)"pf_smooth",  (char *)"dangles",  (char *)"special_hp",  (char *)"noLP",  (char *)"noGU",  (char *)"noGUclosure",  (char *)"logML",  (char *)"circ",  (char *)"gquad",  (char *)"uniq_ML",  (char *)"energy_set",  (char *)"backtrack",  (char *)"backtrack_type",  (char *)"compute_bpp",  (char *)"max_bp_span",  (char *)"min_loop_size",  (char *)"window_size",  (char *)"oldAliEn",  (char *)"ribo",  (char *)"cv_fact",  (char *)"nc_fact",  (char *)"sfact",  NULL
45756   };
45757   vrna_md_t *result = 0 ;
45758 
45759   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|OOOOOOOOOOOOOOOOOOOOOOOO:new_md", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7, &obj8, &obj9, &obj10, &obj11, &obj12, &obj13, &obj14, &obj15, &obj16, &obj17, &obj18, &obj19, &obj20, &obj21, &obj22, &obj23)) SWIG_fail;
45760   if (obj0) {
45761     ecode1 = SWIG_AsVal_double(obj0, &val1);
45762     if (!SWIG_IsOK(ecode1)) {
45763       SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_md" "', argument " "1"" of type '" "double""'");
45764     }
45765     arg1 = static_cast< double >(val1);
45766   }
45767   if (obj1) {
45768     ecode2 = SWIG_AsVal_double(obj1, &val2);
45769     if (!SWIG_IsOK(ecode2)) {
45770       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_md" "', argument " "2"" of type '" "double""'");
45771     }
45772     arg2 = static_cast< double >(val2);
45773   }
45774   if (obj2) {
45775     ecode3 = SWIG_AsVal_int(obj2, &val3);
45776     if (!SWIG_IsOK(ecode3)) {
45777       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_md" "', argument " "3"" of type '" "int""'");
45778     }
45779     arg3 = static_cast< int >(val3);
45780   }
45781   if (obj3) {
45782     ecode4 = SWIG_AsVal_int(obj3, &val4);
45783     if (!SWIG_IsOK(ecode4)) {
45784       SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_md" "', argument " "4"" of type '" "int""'");
45785     }
45786     arg4 = static_cast< int >(val4);
45787   }
45788   if (obj4) {
45789     ecode5 = SWIG_AsVal_int(obj4, &val5);
45790     if (!SWIG_IsOK(ecode5)) {
45791       SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_md" "', argument " "5"" of type '" "int""'");
45792     }
45793     arg5 = static_cast< int >(val5);
45794   }
45795   if (obj5) {
45796     ecode6 = SWIG_AsVal_int(obj5, &val6);
45797     if (!SWIG_IsOK(ecode6)) {
45798       SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_md" "', argument " "6"" of type '" "int""'");
45799     }
45800     arg6 = static_cast< int >(val6);
45801   }
45802   if (obj6) {
45803     ecode7 = SWIG_AsVal_int(obj6, &val7);
45804     if (!SWIG_IsOK(ecode7)) {
45805       SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_md" "', argument " "7"" of type '" "int""'");
45806     }
45807     arg7 = static_cast< int >(val7);
45808   }
45809   if (obj7) {
45810     ecode8 = SWIG_AsVal_int(obj7, &val8);
45811     if (!SWIG_IsOK(ecode8)) {
45812       SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_md" "', argument " "8"" of type '" "int""'");
45813     }
45814     arg8 = static_cast< int >(val8);
45815   }
45816   if (obj8) {
45817     ecode9 = SWIG_AsVal_int(obj8, &val9);
45818     if (!SWIG_IsOK(ecode9)) {
45819       SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_md" "', argument " "9"" of type '" "int""'");
45820     }
45821     arg9 = static_cast< int >(val9);
45822   }
45823   if (obj9) {
45824     ecode10 = SWIG_AsVal_int(obj9, &val10);
45825     if (!SWIG_IsOK(ecode10)) {
45826       SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_md" "', argument " "10"" of type '" "int""'");
45827     }
45828     arg10 = static_cast< int >(val10);
45829   }
45830   if (obj10) {
45831     ecode11 = SWIG_AsVal_int(obj10, &val11);
45832     if (!SWIG_IsOK(ecode11)) {
45833       SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_md" "', argument " "11"" of type '" "int""'");
45834     }
45835     arg11 = static_cast< int >(val11);
45836   }
45837   if (obj11) {
45838     ecode12 = SWIG_AsVal_int(obj11, &val12);
45839     if (!SWIG_IsOK(ecode12)) {
45840       SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_md" "', argument " "12"" of type '" "int""'");
45841     }
45842     arg12 = static_cast< int >(val12);
45843   }
45844   if (obj12) {
45845     ecode13 = SWIG_AsVal_int(obj12, &val13);
45846     if (!SWIG_IsOK(ecode13)) {
45847       SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_md" "', argument " "13"" of type '" "int""'");
45848     }
45849     arg13 = static_cast< int >(val13);
45850   }
45851   if (obj13) {
45852     ecode14 = SWIG_AsVal_int(obj13, &val14);
45853     if (!SWIG_IsOK(ecode14)) {
45854       SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "new_md" "', argument " "14"" of type '" "int""'");
45855     }
45856     arg14 = static_cast< int >(val14);
45857   }
45858   if (obj14) {
45859     ecode15 = SWIG_AsVal_char(obj14, &val15);
45860     if (!SWIG_IsOK(ecode15)) {
45861       SWIG_exception_fail(SWIG_ArgError(ecode15), "in method '" "new_md" "', argument " "15"" of type '" "char""'");
45862     }
45863     arg15 = static_cast< char >(val15);
45864   }
45865   if (obj15) {
45866     ecode16 = SWIG_AsVal_int(obj15, &val16);
45867     if (!SWIG_IsOK(ecode16)) {
45868       SWIG_exception_fail(SWIG_ArgError(ecode16), "in method '" "new_md" "', argument " "16"" of type '" "int""'");
45869     }
45870     arg16 = static_cast< int >(val16);
45871   }
45872   if (obj16) {
45873     ecode17 = SWIG_AsVal_int(obj16, &val17);
45874     if (!SWIG_IsOK(ecode17)) {
45875       SWIG_exception_fail(SWIG_ArgError(ecode17), "in method '" "new_md" "', argument " "17"" of type '" "int""'");
45876     }
45877     arg17 = static_cast< int >(val17);
45878   }
45879   if (obj17) {
45880     ecode18 = SWIG_AsVal_int(obj17, &val18);
45881     if (!SWIG_IsOK(ecode18)) {
45882       SWIG_exception_fail(SWIG_ArgError(ecode18), "in method '" "new_md" "', argument " "18"" of type '" "int""'");
45883     }
45884     arg18 = static_cast< int >(val18);
45885   }
45886   if (obj18) {
45887     ecode19 = SWIG_AsVal_int(obj18, &val19);
45888     if (!SWIG_IsOK(ecode19)) {
45889       SWIG_exception_fail(SWIG_ArgError(ecode19), "in method '" "new_md" "', argument " "19"" of type '" "int""'");
45890     }
45891     arg19 = static_cast< int >(val19);
45892   }
45893   if (obj19) {
45894     ecode20 = SWIG_AsVal_int(obj19, &val20);
45895     if (!SWIG_IsOK(ecode20)) {
45896       SWIG_exception_fail(SWIG_ArgError(ecode20), "in method '" "new_md" "', argument " "20"" of type '" "int""'");
45897     }
45898     arg20 = static_cast< int >(val20);
45899   }
45900   if (obj20) {
45901     ecode21 = SWIG_AsVal_int(obj20, &val21);
45902     if (!SWIG_IsOK(ecode21)) {
45903       SWIG_exception_fail(SWIG_ArgError(ecode21), "in method '" "new_md" "', argument " "21"" of type '" "int""'");
45904     }
45905     arg21 = static_cast< int >(val21);
45906   }
45907   if (obj21) {
45908     ecode22 = SWIG_AsVal_double(obj21, &val22);
45909     if (!SWIG_IsOK(ecode22)) {
45910       SWIG_exception_fail(SWIG_ArgError(ecode22), "in method '" "new_md" "', argument " "22"" of type '" "double""'");
45911     }
45912     arg22 = static_cast< double >(val22);
45913   }
45914   if (obj22) {
45915     ecode23 = SWIG_AsVal_double(obj22, &val23);
45916     if (!SWIG_IsOK(ecode23)) {
45917       SWIG_exception_fail(SWIG_ArgError(ecode23), "in method '" "new_md" "', argument " "23"" of type '" "double""'");
45918     }
45919     arg23 = static_cast< double >(val23);
45920   }
45921   if (obj23) {
45922     ecode24 = SWIG_AsVal_double(obj23, &val24);
45923     if (!SWIG_IsOK(ecode24)) {
45924       SWIG_exception_fail(SWIG_ArgError(ecode24), "in method '" "new_md" "', argument " "24"" of type '" "double""'");
45925     }
45926     arg24 = static_cast< double >(val24);
45927   }
45928   {
45929     try {
45930       result = (vrna_md_t *)new_vrna_md_t(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17,arg18,arg19,arg20,arg21,arg22,arg23,arg24);
45931     } catch (const std::exception& e) {
45932       SWIG_exception(SWIG_RuntimeError, e.what());
45933     }
45934   }
45935   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_md_t, SWIG_POINTER_NEW |  0 );
45936   return resultobj;
45937 fail:
45938   return NULL;
45939 }
45940 
45941 
_wrap_delete_md(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45942 SWIGINTERN PyObject *_wrap_delete_md(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45943   PyObject *resultobj = 0;
45944   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45945   void *argp1 = 0 ;
45946   int res1 = 0 ;
45947   PyObject *swig_obj[1] ;
45948 
45949   if (!args) SWIG_fail;
45950   swig_obj[0] = args;
45951   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, SWIG_POINTER_DISOWN |  0 );
45952   if (!SWIG_IsOK(res1)) {
45953     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_md" "', argument " "1"" of type '" "vrna_md_t *""'");
45954   }
45955   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45956   {
45957     try {
45958       delete_vrna_md_t(arg1);
45959     } catch (const std::exception& e) {
45960       SWIG_exception(SWIG_RuntimeError, e.what());
45961     }
45962   }
45963   resultobj = SWIG_Py_Void();
45964   return resultobj;
45965 fail:
45966   return NULL;
45967 }
45968 
45969 
_wrap_md_reset(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45970 SWIGINTERN PyObject *_wrap_md_reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45971   PyObject *resultobj = 0;
45972   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
45973   void *argp1 = 0 ;
45974   int res1 = 0 ;
45975   PyObject *swig_obj[1] ;
45976 
45977   if (!args) SWIG_fail;
45978   swig_obj[0] = args;
45979   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
45980   if (!SWIG_IsOK(res1)) {
45981     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_reset" "', argument " "1"" of type '" "vrna_md_t *""'");
45982   }
45983   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
45984   {
45985     try {
45986       vrna_md_t_reset(arg1);
45987     } catch (const std::exception& e) {
45988       SWIG_exception(SWIG_RuntimeError, e.what());
45989     }
45990   }
45991   resultobj = SWIG_Py_Void();
45992   return resultobj;
45993 fail:
45994   return NULL;
45995 }
45996 
45997 
_wrap_md_set_from_globals(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45998 SWIGINTERN PyObject *_wrap_md_set_from_globals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45999   PyObject *resultobj = 0;
46000   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
46001   void *argp1 = 0 ;
46002   int res1 = 0 ;
46003   PyObject *swig_obj[1] ;
46004 
46005   if (!args) SWIG_fail;
46006   swig_obj[0] = args;
46007   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
46008   if (!SWIG_IsOK(res1)) {
46009     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_set_from_globals" "', argument " "1"" of type '" "vrna_md_t *""'");
46010   }
46011   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
46012   {
46013     try {
46014       vrna_md_t_set_from_globals(arg1);
46015     } catch (const std::exception& e) {
46016       SWIG_exception(SWIG_RuntimeError, e.what());
46017     }
46018   }
46019   resultobj = SWIG_Py_Void();
46020   return resultobj;
46021 fail:
46022   return NULL;
46023 }
46024 
46025 
_wrap_md_option_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46026 SWIGINTERN PyObject *_wrap_md_option_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46027   PyObject *resultobj = 0;
46028   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
46029   void *argp1 = 0 ;
46030   int res1 = 0 ;
46031   PyObject *swig_obj[1] ;
46032   char *result = 0 ;
46033 
46034   if (!args) SWIG_fail;
46035   swig_obj[0] = args;
46036   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
46037   if (!SWIG_IsOK(res1)) {
46038     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md_option_string" "', argument " "1"" of type '" "vrna_md_t *""'");
46039   }
46040   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
46041   {
46042     try {
46043       result = (char *)vrna_md_t_option_string(arg1);
46044     } catch (const std::exception& e) {
46045       SWIG_exception(SWIG_RuntimeError, e.what());
46046     }
46047   }
46048   resultobj = SWIG_FromCharPtr((const char *)result);
46049   return resultobj;
46050 fail:
46051   return NULL;
46052 }
46053 
46054 
_wrap_md___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46055 SWIGINTERN PyObject *_wrap_md___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46056   PyObject *resultobj = 0;
46057   vrna_md_t *arg1 = (vrna_md_t *) 0 ;
46058   void *argp1 = 0 ;
46059   int res1 = 0 ;
46060   PyObject *swig_obj[1] ;
46061   std::string result;
46062 
46063   if (!args) SWIG_fail;
46064   swig_obj[0] = args;
46065   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_md_t, 0 |  0 );
46066   if (!SWIG_IsOK(res1)) {
46067     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "md___str__" "', argument " "1"" of type '" "vrna_md_t *""'");
46068   }
46069   arg1 = reinterpret_cast< vrna_md_t * >(argp1);
46070   {
46071     try {
46072       result = vrna_md_t___str__(arg1);
46073     } catch (const std::exception& e) {
46074       SWIG_exception(SWIG_RuntimeError, e.what());
46075     }
46076   }
46077   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
46078   return resultobj;
46079 fail:
46080   return NULL;
46081 }
46082 
46083 
md_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46084 SWIGINTERN PyObject *md_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46085   PyObject *obj;
46086   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
46087   SWIG_TypeNewClientData(SWIGTYPE_p_vrna_md_t, SWIG_NewClientData(obj));
46088   return SWIG_Py_Void();
46089 }
46090 
md_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46091 SWIGINTERN PyObject *md_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46092   return SWIG_Python_InitShadowInstance(args);
46093 }
46094 
Swig_var_temperature_set(PyObject * _val)46095 SWIGINTERN int Swig_var_temperature_set(PyObject *_val) {
46096   {
46097     vrna_md_defaults_temperature(PyFloat_AsDouble(_val));
46098   }
46099   return 0;
46100 fail:
46101   return 1;
46102 }
46103 
46104 
Swig_var_temperature_get(void)46105 SWIGINTERN PyObject *Swig_var_temperature_get(void) {
46106   PyObject *pyobj = 0;
46107 
46108   {
46109     pyobj = PyFloat_FromDouble(vrna_md_defaults_temperature_get());
46110   }
46111   return pyobj;
46112 }
46113 
46114 
Swig_var_dangles_set(PyObject * _val)46115 SWIGINTERN int Swig_var_dangles_set(PyObject *_val) {
46116   {
46117     vrna_md_defaults_dangles(PyInt_AsLong(_val));
46118   }
46119   return 0;
46120 fail:
46121   return 1;
46122 }
46123 
46124 
Swig_var_dangles_get(void)46125 SWIGINTERN PyObject *Swig_var_dangles_get(void) {
46126   PyObject *pyobj = 0;
46127 
46128   {
46129     pyobj = PyInt_FromLong(vrna_md_defaults_dangles_get());
46130   }
46131   return pyobj;
46132 }
46133 
46134 
Swig_var_betaScale_set(PyObject * _val)46135 SWIGINTERN int Swig_var_betaScale_set(PyObject *_val) {
46136   {
46137     vrna_md_defaults_betaScale(PyFloat_AsDouble(_val));
46138   }
46139   return 0;
46140 fail:
46141   return 1;
46142 }
46143 
46144 
Swig_var_betaScale_get(void)46145 SWIGINTERN PyObject *Swig_var_betaScale_get(void) {
46146   PyObject *pyobj = 0;
46147 
46148   {
46149     pyobj = PyFloat_FromDouble(vrna_md_defaults_betaScale_get());
46150   }
46151   return pyobj;
46152 }
46153 
46154 
Swig_var_pf_smooth_set(PyObject * _val)46155 SWIGINTERN int Swig_var_pf_smooth_set(PyObject *_val) {
46156   {
46157     vrna_md_defaults_pf_smooth(PyInt_AsLong(_val));
46158   }
46159   return 0;
46160 fail:
46161   return 1;
46162 }
46163 
46164 
Swig_var_pf_smooth_get(void)46165 SWIGINTERN PyObject *Swig_var_pf_smooth_get(void) {
46166   PyObject *pyobj = 0;
46167 
46168   {
46169     pyobj = PyInt_FromLong(vrna_md_defaults_pf_smooth_get());
46170   }
46171   return pyobj;
46172 }
46173 
46174 
Swig_var_tetra_loop_set(PyObject * _val)46175 SWIGINTERN int Swig_var_tetra_loop_set(PyObject *_val) {
46176   {
46177     vrna_md_defaults_special_hp(PyInt_AsLong(_val));
46178   }
46179   return 0;
46180 fail:
46181   return 1;
46182 }
46183 
46184 
Swig_var_tetra_loop_get(void)46185 SWIGINTERN PyObject *Swig_var_tetra_loop_get(void) {
46186   PyObject *pyobj = 0;
46187 
46188   {
46189     pyobj = PyInt_FromLong(vrna_md_defaults_special_hp_get());
46190   }
46191   return pyobj;
46192 }
46193 
46194 
Swig_var_special_hp_set(PyObject * _val)46195 SWIGINTERN int Swig_var_special_hp_set(PyObject *_val) {
46196   {
46197     vrna_md_defaults_special_hp(PyInt_AsLong(_val));
46198   }
46199   return 0;
46200 fail:
46201   return 1;
46202 }
46203 
46204 
Swig_var_special_hp_get(void)46205 SWIGINTERN PyObject *Swig_var_special_hp_get(void) {
46206   PyObject *pyobj = 0;
46207 
46208   {
46209     pyobj = PyInt_FromLong(vrna_md_defaults_special_hp_get());
46210   }
46211   return pyobj;
46212 }
46213 
46214 
Swig_var_noLonelyPairs_set(PyObject * _val)46215 SWIGINTERN int Swig_var_noLonelyPairs_set(PyObject *_val) {
46216   {
46217     vrna_md_defaults_noLP(PyInt_AsLong(_val));
46218   }
46219   return 0;
46220 fail:
46221   return 1;
46222 }
46223 
46224 
Swig_var_noLonelyPairs_get(void)46225 SWIGINTERN PyObject *Swig_var_noLonelyPairs_get(void) {
46226   PyObject *pyobj = 0;
46227 
46228   {
46229     pyobj = PyInt_FromLong(vrna_md_defaults_noLP_get());
46230   }
46231   return pyobj;
46232 }
46233 
46234 
Swig_var_noLP_set(PyObject * _val)46235 SWIGINTERN int Swig_var_noLP_set(PyObject *_val) {
46236   {
46237     vrna_md_defaults_noLP(PyInt_AsLong(_val));
46238   }
46239   return 0;
46240 fail:
46241   return 1;
46242 }
46243 
46244 
Swig_var_noLP_get(void)46245 SWIGINTERN PyObject *Swig_var_noLP_get(void) {
46246   PyObject *pyobj = 0;
46247 
46248   {
46249     pyobj = PyInt_FromLong(vrna_md_defaults_noLP_get());
46250   }
46251   return pyobj;
46252 }
46253 
46254 
Swig_var_noGU_set(PyObject * _val)46255 SWIGINTERN int Swig_var_noGU_set(PyObject *_val) {
46256   {
46257     vrna_md_defaults_noGU(PyInt_AsLong(_val));
46258   }
46259   return 0;
46260 fail:
46261   return 1;
46262 }
46263 
46264 
Swig_var_noGU_get(void)46265 SWIGINTERN PyObject *Swig_var_noGU_get(void) {
46266   PyObject *pyobj = 0;
46267 
46268   {
46269     pyobj = PyInt_FromLong(vrna_md_defaults_noGU_get());
46270   }
46271   return pyobj;
46272 }
46273 
46274 
Swig_var_no_closingGU_set(PyObject * _val)46275 SWIGINTERN int Swig_var_no_closingGU_set(PyObject *_val) {
46276   {
46277     vrna_md_defaults_noGUclosure(PyInt_AsLong(_val));
46278   }
46279   return 0;
46280 fail:
46281   return 1;
46282 }
46283 
46284 
Swig_var_no_closingGU_get(void)46285 SWIGINTERN PyObject *Swig_var_no_closingGU_get(void) {
46286   PyObject *pyobj = 0;
46287 
46288   {
46289     pyobj = PyInt_FromLong(vrna_md_defaults_noGUclosure_get());
46290   }
46291   return pyobj;
46292 }
46293 
46294 
Swig_var_noGUclosure_set(PyObject * _val)46295 SWIGINTERN int Swig_var_noGUclosure_set(PyObject *_val) {
46296   {
46297     vrna_md_defaults_noGUclosure(PyInt_AsLong(_val));
46298   }
46299   return 0;
46300 fail:
46301   return 1;
46302 }
46303 
46304 
Swig_var_noGUclosure_get(void)46305 SWIGINTERN PyObject *Swig_var_noGUclosure_get(void) {
46306   PyObject *pyobj = 0;
46307 
46308   {
46309     pyobj = PyInt_FromLong(vrna_md_defaults_noGUclosure_get());
46310   }
46311   return pyobj;
46312 }
46313 
46314 
Swig_var_logML_set(PyObject * _val)46315 SWIGINTERN int Swig_var_logML_set(PyObject *_val) {
46316   {
46317     vrna_md_defaults_logML(PyInt_AsLong(_val));
46318   }
46319   return 0;
46320 fail:
46321   return 1;
46322 }
46323 
46324 
Swig_var_logML_get(void)46325 SWIGINTERN PyObject *Swig_var_logML_get(void) {
46326   PyObject *pyobj = 0;
46327 
46328   {
46329     pyobj = PyInt_FromLong(vrna_md_defaults_logML_get());
46330   }
46331   return pyobj;
46332 }
46333 
46334 
Swig_var_circ_set(PyObject * _val)46335 SWIGINTERN int Swig_var_circ_set(PyObject *_val) {
46336   {
46337     vrna_md_defaults_circ(PyInt_AsLong(_val));
46338   }
46339   return 0;
46340 fail:
46341   return 1;
46342 }
46343 
46344 
Swig_var_circ_get(void)46345 SWIGINTERN PyObject *Swig_var_circ_get(void) {
46346   PyObject *pyobj = 0;
46347 
46348   {
46349     pyobj = PyInt_FromLong(vrna_md_defaults_circ_get());
46350   }
46351   return pyobj;
46352 }
46353 
46354 
Swig_var_gquad_set(PyObject * _val)46355 SWIGINTERN int Swig_var_gquad_set(PyObject *_val) {
46356   {
46357     vrna_md_defaults_gquad(PyInt_AsLong(_val));
46358   }
46359   return 0;
46360 fail:
46361   return 1;
46362 }
46363 
46364 
Swig_var_gquad_get(void)46365 SWIGINTERN PyObject *Swig_var_gquad_get(void) {
46366   PyObject *pyobj = 0;
46367 
46368   {
46369     pyobj = PyInt_FromLong(vrna_md_defaults_gquad_get());
46370   }
46371   return pyobj;
46372 }
46373 
46374 
Swig_var_uniq_ML_set(PyObject * _val)46375 SWIGINTERN int Swig_var_uniq_ML_set(PyObject *_val) {
46376   {
46377     vrna_md_defaults_uniq_ML(PyInt_AsLong(_val));
46378   }
46379   return 0;
46380 fail:
46381   return 1;
46382 }
46383 
46384 
Swig_var_uniq_ML_get(void)46385 SWIGINTERN PyObject *Swig_var_uniq_ML_get(void) {
46386   PyObject *pyobj = 0;
46387 
46388   {
46389     pyobj = PyInt_FromLong(vrna_md_defaults_uniq_ML_get());
46390   }
46391   return pyobj;
46392 }
46393 
46394 
Swig_var_energy_set_set(PyObject * _val)46395 SWIGINTERN int Swig_var_energy_set_set(PyObject *_val) {
46396   {
46397     vrna_md_defaults_energy_set(PyInt_AsLong(_val));
46398   }
46399   return 0;
46400 fail:
46401   return 1;
46402 }
46403 
46404 
Swig_var_energy_set_get(void)46405 SWIGINTERN PyObject *Swig_var_energy_set_get(void) {
46406   PyObject *pyobj = 0;
46407 
46408   {
46409     pyobj = PyInt_FromLong(vrna_md_defaults_energy_set_get());
46410   }
46411   return pyobj;
46412 }
46413 
46414 
Swig_var_backtrack_set(PyObject * _val)46415 SWIGINTERN int Swig_var_backtrack_set(PyObject *_val) {
46416   {
46417     vrna_md_defaults_backtrack(PyInt_AsLong(_val));
46418   }
46419   return 0;
46420 fail:
46421   return 1;
46422 }
46423 
46424 
Swig_var_backtrack_get(void)46425 SWIGINTERN PyObject *Swig_var_backtrack_get(void) {
46426   PyObject *pyobj = 0;
46427 
46428   {
46429     pyobj = PyInt_FromLong(vrna_md_defaults_backtrack_get());
46430   }
46431   return pyobj;
46432 }
46433 
46434 
Swig_var_backtrack_type_set(PyObject * _val)46435 SWIGINTERN int Swig_var_backtrack_type_set(PyObject *_val) {
46436   {
46437     char val;
46438     int res = SWIG_AsVal_char(_val, &val);
46439     if (!SWIG_IsOK(res)) {
46440       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""backtrack_type""' of type '""char""'");
46441     }
46442     backtrack_type = static_cast< char >(val);
46443   }
46444   return 0;
46445 fail:
46446   return 1;
46447 }
46448 
46449 
Swig_var_backtrack_type_get(void)46450 SWIGINTERN PyObject *Swig_var_backtrack_type_get(void) {
46451   PyObject *pyobj = 0;
46452 
46453   pyobj = SWIG_From_char(static_cast< char >(backtrack_type));
46454   return pyobj;
46455 }
46456 
46457 
Swig_var_do_backtrack_set(PyObject * _val)46458 SWIGINTERN int Swig_var_do_backtrack_set(PyObject *_val) {
46459   {
46460     vrna_md_defaults_compute_bpp(PyInt_AsLong(_val));
46461   }
46462   return 0;
46463 fail:
46464   return 1;
46465 }
46466 
46467 
Swig_var_do_backtrack_get(void)46468 SWIGINTERN PyObject *Swig_var_do_backtrack_get(void) {
46469   PyObject *pyobj = 0;
46470 
46471   {
46472     pyobj = PyInt_FromLong(vrna_md_defaults_compute_bpp_get());
46473   }
46474   return pyobj;
46475 }
46476 
46477 
Swig_var_compute_bpp_set(PyObject * _val)46478 SWIGINTERN int Swig_var_compute_bpp_set(PyObject *_val) {
46479   {
46480     vrna_md_defaults_compute_bpp(PyInt_AsLong(_val));
46481   }
46482   return 0;
46483 fail:
46484   return 1;
46485 }
46486 
46487 
Swig_var_compute_bpp_get(void)46488 SWIGINTERN PyObject *Swig_var_compute_bpp_get(void) {
46489   PyObject *pyobj = 0;
46490 
46491   {
46492     pyobj = PyInt_FromLong(vrna_md_defaults_compute_bpp_get());
46493   }
46494   return pyobj;
46495 }
46496 
46497 
Swig_var_max_bp_span_set(PyObject * _val)46498 SWIGINTERN int Swig_var_max_bp_span_set(PyObject *_val) {
46499   {
46500     vrna_md_defaults_max_bp_span(PyInt_AsLong(_val));
46501   }
46502   return 0;
46503 fail:
46504   return 1;
46505 }
46506 
46507 
Swig_var_max_bp_span_get(void)46508 SWIGINTERN PyObject *Swig_var_max_bp_span_get(void) {
46509   PyObject *pyobj = 0;
46510 
46511   {
46512     pyobj = PyInt_FromLong(vrna_md_defaults_max_bp_span_get());
46513   }
46514   return pyobj;
46515 }
46516 
46517 
Swig_var_min_loop_size_set(PyObject * _val)46518 SWIGINTERN int Swig_var_min_loop_size_set(PyObject *_val) {
46519   {
46520     vrna_md_defaults_min_loop_size(PyInt_AsLong(_val));
46521   }
46522   return 0;
46523 fail:
46524   return 1;
46525 }
46526 
46527 
Swig_var_min_loop_size_get(void)46528 SWIGINTERN PyObject *Swig_var_min_loop_size_get(void) {
46529   PyObject *pyobj = 0;
46530 
46531   {
46532     pyobj = PyInt_FromLong(vrna_md_defaults_min_loop_size_get());
46533   }
46534   return pyobj;
46535 }
46536 
46537 
Swig_var_window_size_set(PyObject * _val)46538 SWIGINTERN int Swig_var_window_size_set(PyObject *_val) {
46539   {
46540     vrna_md_defaults_window_size(PyInt_AsLong(_val));
46541   }
46542   return 0;
46543 fail:
46544   return 1;
46545 }
46546 
46547 
Swig_var_window_size_get(void)46548 SWIGINTERN PyObject *Swig_var_window_size_get(void) {
46549   PyObject *pyobj = 0;
46550 
46551   {
46552     pyobj = PyInt_FromLong(vrna_md_defaults_window_size_get());
46553   }
46554   return pyobj;
46555 }
46556 
46557 
Swig_var_oldAliEn_set(PyObject * _val)46558 SWIGINTERN int Swig_var_oldAliEn_set(PyObject *_val) {
46559   {
46560     int val;
46561     int res = SWIG_AsVal_int(_val, &val);
46562     if (!SWIG_IsOK(res)) {
46563       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""oldAliEn""' of type '""int""'");
46564     }
46565     oldAliEn = static_cast< int >(val);
46566   }
46567   return 0;
46568 fail:
46569   return 1;
46570 }
46571 
46572 
Swig_var_oldAliEn_get(void)46573 SWIGINTERN PyObject *Swig_var_oldAliEn_get(void) {
46574   PyObject *pyobj = 0;
46575 
46576   pyobj = SWIG_From_int(static_cast< int >(oldAliEn));
46577   return pyobj;
46578 }
46579 
46580 
Swig_var_ribo_set(PyObject * _val)46581 SWIGINTERN int Swig_var_ribo_set(PyObject *_val) {
46582   {
46583     vrna_md_defaults_ribo(PyInt_AsLong(_val));
46584   }
46585   return 0;
46586 fail:
46587   return 1;
46588 }
46589 
46590 
Swig_var_ribo_get(void)46591 SWIGINTERN PyObject *Swig_var_ribo_get(void) {
46592   PyObject *pyobj = 0;
46593 
46594   {
46595     pyobj = PyInt_FromLong(vrna_md_defaults_ribo_get());
46596   }
46597   return pyobj;
46598 }
46599 
46600 
Swig_var_cv_fact_set(PyObject * _val)46601 SWIGINTERN int Swig_var_cv_fact_set(PyObject *_val) {
46602   {
46603     vrna_md_defaults_cv_fact(PyFloat_AsDouble(_val));
46604   }
46605   return 0;
46606 fail:
46607   return 1;
46608 }
46609 
46610 
Swig_var_cv_fact_get(void)46611 SWIGINTERN PyObject *Swig_var_cv_fact_get(void) {
46612   PyObject *pyobj = 0;
46613 
46614   {
46615     pyobj = PyFloat_FromDouble(vrna_md_defaults_cv_fact_get());
46616   }
46617   return pyobj;
46618 }
46619 
46620 
Swig_var_nc_fact_set(PyObject * _val)46621 SWIGINTERN int Swig_var_nc_fact_set(PyObject *_val) {
46622   {
46623     vrna_md_defaults_nc_fact(PyFloat_AsDouble(_val));
46624   }
46625   return 0;
46626 fail:
46627   return 1;
46628 }
46629 
46630 
Swig_var_nc_fact_get(void)46631 SWIGINTERN PyObject *Swig_var_nc_fact_get(void) {
46632   PyObject *pyobj = 0;
46633 
46634   {
46635     pyobj = PyFloat_FromDouble(vrna_md_defaults_nc_fact_get());
46636   }
46637   return pyobj;
46638 }
46639 
46640 
Swig_var_sfact_set(PyObject * _val)46641 SWIGINTERN int Swig_var_sfact_set(PyObject *_val) {
46642   {
46643     vrna_md_defaults_sfact(PyFloat_AsDouble(_val));
46644   }
46645   return 0;
46646 fail:
46647   return 1;
46648 }
46649 
46650 
Swig_var_sfact_get(void)46651 SWIGINTERN PyObject *Swig_var_sfact_get(void) {
46652   PyObject *pyobj = 0;
46653 
46654   {
46655     pyobj = PyFloat_FromDouble(vrna_md_defaults_sfact_get());
46656   }
46657   return pyobj;
46658 }
46659 
46660 
Swig_var_pf_scale_set(PyObject * _val)46661 SWIGINTERN int Swig_var_pf_scale_set(PyObject *_val) {
46662   {
46663     double val;
46664     int res = SWIG_AsVal_double(_val, &val);
46665     if (!SWIG_IsOK(res)) {
46666       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""pf_scale""' of type '""double""'");
46667     }
46668     pf_scale = static_cast< double >(val);
46669   }
46670   return 0;
46671 fail:
46672   return 1;
46673 }
46674 
46675 
Swig_var_pf_scale_get(void)46676 SWIGINTERN PyObject *Swig_var_pf_scale_get(void) {
46677   PyObject *pyobj = 0;
46678 
46679   pyobj = SWIG_From_double(static_cast< double >(pf_scale));
46680   return pyobj;
46681 }
46682 
46683 
Swig_var_nonstandards_set(PyObject * _val)46684 SWIGINTERN int Swig_var_nonstandards_set(PyObject *_val) {
46685   {
46686     char *cptr = 0; size_t csize = 0; int alloc = SWIG_NEWOBJ;
46687     int res = SWIG_AsCharPtrAndSize(_val, &cptr, &csize, &alloc);
46688     if (!SWIG_IsOK(res)) {
46689       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""nonstandards""' of type '""char *""'");
46690     }
46691     if (nonstandards) delete[] nonstandards;
46692     if (alloc == SWIG_NEWOBJ) {
46693       nonstandards = cptr;
46694     } else {
46695       nonstandards = csize ? (char *)reinterpret_cast< char* >(memcpy(new char[csize], cptr, sizeof(char)*(csize))) : 0;
46696     }
46697   }
46698   return 0;
46699 fail:
46700   return 1;
46701 }
46702 
46703 
Swig_var_nonstandards_get(void)46704 SWIGINTERN PyObject *Swig_var_nonstandards_get(void) {
46705   PyObject *pyobj = 0;
46706 
46707   pyobj = SWIG_FromCharPtr(nonstandards);
46708   return pyobj;
46709 }
46710 
46711 
Swig_var_xsubi_set(PyObject * _val)46712 SWIGINTERN int Swig_var_xsubi_set(PyObject *_val) {
46713   {
46714     unsigned short *inp = 0;
46715     int res = SWIG_ConvertPtr(_val, SWIG_as_voidptrptr(&inp), SWIGTYPE_p_unsigned_short,  0 );
46716     if (!SWIG_IsOK(res)) {
46717       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""xsubi""' of type '""unsigned short [3]""'");
46718     } else if (inp) {
46719       size_t ii = 0;
46720       for (; ii < (size_t)3; ++ii) *(unsigned short *)&xsubi[ii] = *((unsigned short *)inp + ii);
46721     } else {
46722       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""xsubi""' of type '""unsigned short [3]""'");
46723     }
46724   }
46725   return 0;
46726 fail:
46727   return 1;
46728 }
46729 
46730 
Swig_var_xsubi_get(void)46731 SWIGINTERN PyObject *Swig_var_xsubi_get(void) {
46732   PyObject *pyobj = 0;
46733 
46734   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(xsubi), SWIGTYPE_p_unsigned_short,  0 );
46735   return pyobj;
46736 }
46737 
46738 
_wrap_init_rand(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46739 SWIGINTERN PyObject *_wrap_init_rand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46740   PyObject *resultobj = 0;
46741 
46742   if (!SWIG_Python_UnpackTuple(args, "init_rand", 0, 0, 0)) SWIG_fail;
46743   {
46744     try {
46745       init_rand();
46746     } catch (const std::exception& e) {
46747       SWIG_exception(SWIG_RuntimeError, e.what());
46748     }
46749   }
46750   resultobj = SWIG_Py_Void();
46751   return resultobj;
46752 fail:
46753   return NULL;
46754 }
46755 
46756 
_wrap_urn(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46757 SWIGINTERN PyObject *_wrap_urn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46758   PyObject *resultobj = 0;
46759   double result;
46760 
46761   if (!SWIG_Python_UnpackTuple(args, "urn", 0, 0, 0)) SWIG_fail;
46762   {
46763     try {
46764       result = (double)urn();
46765     } catch (const std::exception& e) {
46766       SWIG_exception(SWIG_RuntimeError, e.what());
46767     }
46768   }
46769   resultobj = SWIG_From_double(static_cast< double >(result));
46770   return resultobj;
46771 fail:
46772   return NULL;
46773 }
46774 
46775 
_wrap_int_urn(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)46776 SWIGINTERN PyObject *_wrap_int_urn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46777   PyObject *resultobj = 0;
46778   int arg1 ;
46779   int arg2 ;
46780   int val1 ;
46781   int ecode1 = 0 ;
46782   int val2 ;
46783   int ecode2 = 0 ;
46784   PyObject * obj0 = 0 ;
46785   PyObject * obj1 = 0 ;
46786   char * kwnames[] = {
46787     (char *)"_from",  (char *)"to",  NULL
46788   };
46789   int result;
46790 
46791   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:int_urn", kwnames, &obj0, &obj1)) SWIG_fail;
46792   ecode1 = SWIG_AsVal_int(obj0, &val1);
46793   if (!SWIG_IsOK(ecode1)) {
46794     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "int_urn" "', argument " "1"" of type '" "int""'");
46795   }
46796   arg1 = static_cast< int >(val1);
46797   ecode2 = SWIG_AsVal_int(obj1, &val2);
46798   if (!SWIG_IsOK(ecode2)) {
46799     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "int_urn" "', argument " "2"" of type '" "int""'");
46800   }
46801   arg2 = static_cast< int >(val2);
46802   {
46803     try {
46804       result = (int)int_urn(arg1,arg2);
46805     } catch (const std::exception& e) {
46806       SWIG_exception(SWIG_RuntimeError, e.what());
46807     }
46808   }
46809   resultobj = SWIG_From_int(static_cast< int >(result));
46810   return resultobj;
46811 fail:
46812   return NULL;
46813 }
46814 
46815 
_wrap_hamming(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)46816 SWIGINTERN PyObject *_wrap_hamming(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46817   PyObject *resultobj = 0;
46818   char *arg1 = (char *) 0 ;
46819   char *arg2 = (char *) 0 ;
46820   int res1 ;
46821   char *buf1 = 0 ;
46822   int alloc1 = 0 ;
46823   int res2 ;
46824   char *buf2 = 0 ;
46825   int alloc2 = 0 ;
46826   PyObject * obj0 = 0 ;
46827   PyObject * obj1 = 0 ;
46828   char * kwnames[] = {
46829     (char *)"s1",  (char *)"s2",  NULL
46830   };
46831   int result;
46832 
46833   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:hamming", kwnames, &obj0, &obj1)) SWIG_fail;
46834   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
46835   if (!SWIG_IsOK(res1)) {
46836     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hamming" "', argument " "1"" of type '" "char const *""'");
46837   }
46838   arg1 = reinterpret_cast< char * >(buf1);
46839   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
46840   if (!SWIG_IsOK(res2)) {
46841     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "hamming" "', argument " "2"" of type '" "char const *""'");
46842   }
46843   arg2 = reinterpret_cast< char * >(buf2);
46844   {
46845     try {
46846       result = (int)my_hamming((char const *)arg1,(char const *)arg2);
46847     } catch (const std::exception& e) {
46848       SWIG_exception(SWIG_RuntimeError, e.what());
46849     }
46850   }
46851   resultobj = SWIG_From_int(static_cast< int >(result));
46852   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
46853   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
46854   return resultobj;
46855 fail:
46856   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
46857   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
46858   return NULL;
46859 }
46860 
46861 
_wrap_hamming_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)46862 SWIGINTERN PyObject *_wrap_hamming_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46863   PyObject *resultobj = 0;
46864   char *arg1 = (char *) 0 ;
46865   char *arg2 = (char *) 0 ;
46866   int arg3 ;
46867   int res1 ;
46868   char *buf1 = 0 ;
46869   int alloc1 = 0 ;
46870   int res2 ;
46871   char *buf2 = 0 ;
46872   int alloc2 = 0 ;
46873   int val3 ;
46874   int ecode3 = 0 ;
46875   PyObject * obj0 = 0 ;
46876   PyObject * obj1 = 0 ;
46877   PyObject * obj2 = 0 ;
46878   char * kwnames[] = {
46879     (char *)"s1",  (char *)"s2",  (char *)"n",  NULL
46880   };
46881   int result;
46882 
46883   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:hamming_bound", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
46884   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
46885   if (!SWIG_IsOK(res1)) {
46886     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hamming_bound" "', argument " "1"" of type '" "char const *""'");
46887   }
46888   arg1 = reinterpret_cast< char * >(buf1);
46889   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
46890   if (!SWIG_IsOK(res2)) {
46891     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "hamming_bound" "', argument " "2"" of type '" "char const *""'");
46892   }
46893   arg2 = reinterpret_cast< char * >(buf2);
46894   ecode3 = SWIG_AsVal_int(obj2, &val3);
46895   if (!SWIG_IsOK(ecode3)) {
46896     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "hamming_bound" "', argument " "3"" of type '" "int""'");
46897   }
46898   arg3 = static_cast< int >(val3);
46899   {
46900     try {
46901       result = (int)my_hamming_bound((char const *)arg1,(char const *)arg2,arg3);
46902     } catch (const std::exception& e) {
46903       SWIG_exception(SWIG_RuntimeError, e.what());
46904     }
46905   }
46906   resultobj = SWIG_From_int(static_cast< int >(result));
46907   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
46908   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
46909   return resultobj;
46910 fail:
46911   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
46912   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
46913   return NULL;
46914 }
46915 
46916 
_wrap_encode_seq(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)46917 SWIGINTERN PyObject *_wrap_encode_seq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46918   PyObject *resultobj = 0;
46919   char *arg1 = (char *) 0 ;
46920   int res1 ;
46921   char *buf1 = 0 ;
46922   int alloc1 = 0 ;
46923   PyObject * obj0 = 0 ;
46924   char * kwnames[] = {
46925     (char *)"sequence",  NULL
46926   };
46927   short *result = 0 ;
46928 
46929   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:encode_seq", kwnames, &obj0)) SWIG_fail;
46930   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
46931   if (!SWIG_IsOK(res1)) {
46932     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encode_seq" "', argument " "1"" of type '" "char *""'");
46933   }
46934   arg1 = reinterpret_cast< char * >(buf1);
46935   {
46936     try {
46937       result = (short *)encode_seq(arg1);
46938     } catch (const std::exception& e) {
46939       SWIG_exception(SWIG_RuntimeError, e.what());
46940     }
46941   }
46942   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_short, 0 |  0 );
46943   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
46944   return resultobj;
46945 fail:
46946   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
46947   return NULL;
46948 }
46949 
46950 
_wrap_random_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)46951 SWIGINTERN PyObject *_wrap_random_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46952   PyObject *resultobj = 0;
46953   int arg1 ;
46954   char *arg2 ;
46955   int val1 ;
46956   int ecode1 = 0 ;
46957   int res2 ;
46958   char *buf2 = 0 ;
46959   int alloc2 = 0 ;
46960   PyObject * obj0 = 0 ;
46961   PyObject * obj1 = 0 ;
46962   char * kwnames[] = {
46963     (char *)"l",  (char *)"symbols",  NULL
46964   };
46965   char *result = 0 ;
46966 
46967   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:random_string", kwnames, &obj0, &obj1)) SWIG_fail;
46968   ecode1 = SWIG_AsVal_int(obj0, &val1);
46969   if (!SWIG_IsOK(ecode1)) {
46970     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "random_string" "', argument " "1"" of type '" "int""'");
46971   }
46972   arg1 = static_cast< int >(val1);
46973   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
46974   if (!SWIG_IsOK(res2)) {
46975     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "random_string" "', argument " "2"" of type '" "char const []""'");
46976   }
46977   arg2 = reinterpret_cast< char * >(buf2);
46978   {
46979     try {
46980       result = (char *)vrna_random_string(arg1,(char const (*))arg2);
46981     } catch (const std::exception& e) {
46982       SWIG_exception(SWIG_RuntimeError, e.what());
46983     }
46984   }
46985   resultobj = SWIG_FromCharPtr((const char *)result);
46986   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
46987   delete[] result;
46988   return resultobj;
46989 fail:
46990   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
46991   return NULL;
46992 }
46993 
46994 
_wrap_hamming_distance(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)46995 SWIGINTERN PyObject *_wrap_hamming_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46996   PyObject *resultobj = 0;
46997   char *arg1 = (char *) 0 ;
46998   char *arg2 = (char *) 0 ;
46999   int res1 ;
47000   char *buf1 = 0 ;
47001   int alloc1 = 0 ;
47002   int res2 ;
47003   char *buf2 = 0 ;
47004   int alloc2 = 0 ;
47005   PyObject * obj0 = 0 ;
47006   PyObject * obj1 = 0 ;
47007   char * kwnames[] = {
47008     (char *)"s1",  (char *)"s2",  NULL
47009   };
47010   int result;
47011 
47012   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:hamming_distance", kwnames, &obj0, &obj1)) SWIG_fail;
47013   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
47014   if (!SWIG_IsOK(res1)) {
47015     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hamming_distance" "', argument " "1"" of type '" "char const *""'");
47016   }
47017   arg1 = reinterpret_cast< char * >(buf1);
47018   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
47019   if (!SWIG_IsOK(res2)) {
47020     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "hamming_distance" "', argument " "2"" of type '" "char const *""'");
47021   }
47022   arg2 = reinterpret_cast< char * >(buf2);
47023   {
47024     try {
47025       result = (int)vrna_hamming_distance((char const *)arg1,(char const *)arg2);
47026     } catch (const std::exception& e) {
47027       SWIG_exception(SWIG_RuntimeError, e.what());
47028     }
47029   }
47030   resultobj = SWIG_From_int(static_cast< int >(result));
47031   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
47032   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
47033   return resultobj;
47034 fail:
47035   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
47036   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
47037   return NULL;
47038 }
47039 
47040 
_wrap_hamming_distance_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)47041 SWIGINTERN PyObject *_wrap_hamming_distance_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47042   PyObject *resultobj = 0;
47043   char *arg1 = (char *) 0 ;
47044   char *arg2 = (char *) 0 ;
47045   int arg3 ;
47046   int res1 ;
47047   char *buf1 = 0 ;
47048   int alloc1 = 0 ;
47049   int res2 ;
47050   char *buf2 = 0 ;
47051   int alloc2 = 0 ;
47052   int val3 ;
47053   int ecode3 = 0 ;
47054   PyObject * obj0 = 0 ;
47055   PyObject * obj1 = 0 ;
47056   PyObject * obj2 = 0 ;
47057   char * kwnames[] = {
47058     (char *)"s1",  (char *)"s2",  (char *)"n",  NULL
47059   };
47060   int result;
47061 
47062   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:hamming_distance_bound", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
47063   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
47064   if (!SWIG_IsOK(res1)) {
47065     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hamming_distance_bound" "', argument " "1"" of type '" "char const *""'");
47066   }
47067   arg1 = reinterpret_cast< char * >(buf1);
47068   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
47069   if (!SWIG_IsOK(res2)) {
47070     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "hamming_distance_bound" "', argument " "2"" of type '" "char const *""'");
47071   }
47072   arg2 = reinterpret_cast< char * >(buf2);
47073   ecode3 = SWIG_AsVal_int(obj2, &val3);
47074   if (!SWIG_IsOK(ecode3)) {
47075     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "hamming_distance_bound" "', argument " "3"" of type '" "int""'");
47076   }
47077   arg3 = static_cast< int >(val3);
47078   {
47079     try {
47080       result = (int)vrna_hamming_distance_bound((char const *)arg1,(char const *)arg2,arg3);
47081     } catch (const std::exception& e) {
47082       SWIG_exception(SWIG_RuntimeError, e.what());
47083     }
47084   }
47085   resultobj = SWIG_From_int(static_cast< int >(result));
47086   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
47087   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
47088   return resultobj;
47089 fail:
47090   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
47091   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
47092   return NULL;
47093 }
47094 
47095 
_wrap_ep_i_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47096 SWIGINTERN PyObject *_wrap_ep_i_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47097   PyObject *resultobj = 0;
47098   vrna_ep_t *arg1 = (vrna_ep_t *) 0 ;
47099   int arg2 ;
47100   void *argp1 = 0 ;
47101   int res1 = 0 ;
47102   int val2 ;
47103   int ecode2 = 0 ;
47104   PyObject *swig_obj[2] ;
47105 
47106   if (!SWIG_Python_UnpackTuple(args, "ep_i_set", 2, 2, swig_obj)) SWIG_fail;
47107   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_ep_t, 0 |  0 );
47108   if (!SWIG_IsOK(res1)) {
47109     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ep_i_set" "', argument " "1"" of type '" "vrna_ep_t *""'");
47110   }
47111   arg1 = reinterpret_cast< vrna_ep_t * >(argp1);
47112   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
47113   if (!SWIG_IsOK(ecode2)) {
47114     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ep_i_set" "', argument " "2"" of type '" "int""'");
47115   }
47116   arg2 = static_cast< int >(val2);
47117   if (arg1) (arg1)->i = arg2;
47118   resultobj = SWIG_Py_Void();
47119   return resultobj;
47120 fail:
47121   return NULL;
47122 }
47123 
47124 
_wrap_ep_i_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47125 SWIGINTERN PyObject *_wrap_ep_i_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47126   PyObject *resultobj = 0;
47127   vrna_ep_t *arg1 = (vrna_ep_t *) 0 ;
47128   void *argp1 = 0 ;
47129   int res1 = 0 ;
47130   PyObject *swig_obj[1] ;
47131   int result;
47132 
47133   if (!args) SWIG_fail;
47134   swig_obj[0] = args;
47135   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_ep_t, 0 |  0 );
47136   if (!SWIG_IsOK(res1)) {
47137     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ep_i_get" "', argument " "1"" of type '" "vrna_ep_t *""'");
47138   }
47139   arg1 = reinterpret_cast< vrna_ep_t * >(argp1);
47140   result = (int) ((arg1)->i);
47141   resultobj = SWIG_From_int(static_cast< int >(result));
47142   return resultobj;
47143 fail:
47144   return NULL;
47145 }
47146 
47147 
_wrap_ep_j_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47148 SWIGINTERN PyObject *_wrap_ep_j_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47149   PyObject *resultobj = 0;
47150   vrna_ep_t *arg1 = (vrna_ep_t *) 0 ;
47151   int arg2 ;
47152   void *argp1 = 0 ;
47153   int res1 = 0 ;
47154   int val2 ;
47155   int ecode2 = 0 ;
47156   PyObject *swig_obj[2] ;
47157 
47158   if (!SWIG_Python_UnpackTuple(args, "ep_j_set", 2, 2, swig_obj)) SWIG_fail;
47159   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_ep_t, 0 |  0 );
47160   if (!SWIG_IsOK(res1)) {
47161     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ep_j_set" "', argument " "1"" of type '" "vrna_ep_t *""'");
47162   }
47163   arg1 = reinterpret_cast< vrna_ep_t * >(argp1);
47164   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
47165   if (!SWIG_IsOK(ecode2)) {
47166     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ep_j_set" "', argument " "2"" of type '" "int""'");
47167   }
47168   arg2 = static_cast< int >(val2);
47169   if (arg1) (arg1)->j = arg2;
47170   resultobj = SWIG_Py_Void();
47171   return resultobj;
47172 fail:
47173   return NULL;
47174 }
47175 
47176 
_wrap_ep_j_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47177 SWIGINTERN PyObject *_wrap_ep_j_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47178   PyObject *resultobj = 0;
47179   vrna_ep_t *arg1 = (vrna_ep_t *) 0 ;
47180   void *argp1 = 0 ;
47181   int res1 = 0 ;
47182   PyObject *swig_obj[1] ;
47183   int result;
47184 
47185   if (!args) SWIG_fail;
47186   swig_obj[0] = args;
47187   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_ep_t, 0 |  0 );
47188   if (!SWIG_IsOK(res1)) {
47189     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ep_j_get" "', argument " "1"" of type '" "vrna_ep_t *""'");
47190   }
47191   arg1 = reinterpret_cast< vrna_ep_t * >(argp1);
47192   result = (int) ((arg1)->j);
47193   resultobj = SWIG_From_int(static_cast< int >(result));
47194   return resultobj;
47195 fail:
47196   return NULL;
47197 }
47198 
47199 
_wrap_ep_p_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47200 SWIGINTERN PyObject *_wrap_ep_p_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47201   PyObject *resultobj = 0;
47202   vrna_ep_t *arg1 = (vrna_ep_t *) 0 ;
47203   float arg2 ;
47204   void *argp1 = 0 ;
47205   int res1 = 0 ;
47206   float val2 ;
47207   int ecode2 = 0 ;
47208   PyObject *swig_obj[2] ;
47209 
47210   if (!SWIG_Python_UnpackTuple(args, "ep_p_set", 2, 2, swig_obj)) SWIG_fail;
47211   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_ep_t, 0 |  0 );
47212   if (!SWIG_IsOK(res1)) {
47213     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ep_p_set" "', argument " "1"" of type '" "vrna_ep_t *""'");
47214   }
47215   arg1 = reinterpret_cast< vrna_ep_t * >(argp1);
47216   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
47217   if (!SWIG_IsOK(ecode2)) {
47218     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ep_p_set" "', argument " "2"" of type '" "float""'");
47219   }
47220   arg2 = static_cast< float >(val2);
47221   if (arg1) (arg1)->p = arg2;
47222   resultobj = SWIG_Py_Void();
47223   return resultobj;
47224 fail:
47225   return NULL;
47226 }
47227 
47228 
_wrap_ep_p_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47229 SWIGINTERN PyObject *_wrap_ep_p_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47230   PyObject *resultobj = 0;
47231   vrna_ep_t *arg1 = (vrna_ep_t *) 0 ;
47232   void *argp1 = 0 ;
47233   int res1 = 0 ;
47234   PyObject *swig_obj[1] ;
47235   float result;
47236 
47237   if (!args) SWIG_fail;
47238   swig_obj[0] = args;
47239   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_ep_t, 0 |  0 );
47240   if (!SWIG_IsOK(res1)) {
47241     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ep_p_get" "', argument " "1"" of type '" "vrna_ep_t *""'");
47242   }
47243   arg1 = reinterpret_cast< vrna_ep_t * >(argp1);
47244   result = (float) ((arg1)->p);
47245   resultobj = SWIG_From_float(static_cast< float >(result));
47246   return resultobj;
47247 fail:
47248   return NULL;
47249 }
47250 
47251 
_wrap_ep_type_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47252 SWIGINTERN PyObject *_wrap_ep_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47253   PyObject *resultobj = 0;
47254   vrna_ep_t *arg1 = (vrna_ep_t *) 0 ;
47255   int arg2 ;
47256   void *argp1 = 0 ;
47257   int res1 = 0 ;
47258   int val2 ;
47259   int ecode2 = 0 ;
47260   PyObject *swig_obj[2] ;
47261 
47262   if (!SWIG_Python_UnpackTuple(args, "ep_type_set", 2, 2, swig_obj)) SWIG_fail;
47263   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_ep_t, 0 |  0 );
47264   if (!SWIG_IsOK(res1)) {
47265     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ep_type_set" "', argument " "1"" of type '" "vrna_ep_t *""'");
47266   }
47267   arg1 = reinterpret_cast< vrna_ep_t * >(argp1);
47268   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
47269   if (!SWIG_IsOK(ecode2)) {
47270     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ep_type_set" "', argument " "2"" of type '" "int""'");
47271   }
47272   arg2 = static_cast< int >(val2);
47273   if (arg1) (arg1)->type = arg2;
47274   resultobj = SWIG_Py_Void();
47275   return resultobj;
47276 fail:
47277   return NULL;
47278 }
47279 
47280 
_wrap_ep_type_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47281 SWIGINTERN PyObject *_wrap_ep_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47282   PyObject *resultobj = 0;
47283   vrna_ep_t *arg1 = (vrna_ep_t *) 0 ;
47284   void *argp1 = 0 ;
47285   int res1 = 0 ;
47286   PyObject *swig_obj[1] ;
47287   int result;
47288 
47289   if (!args) SWIG_fail;
47290   swig_obj[0] = args;
47291   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_ep_t, 0 |  0 );
47292   if (!SWIG_IsOK(res1)) {
47293     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ep_type_get" "', argument " "1"" of type '" "vrna_ep_t *""'");
47294   }
47295   arg1 = reinterpret_cast< vrna_ep_t * >(argp1);
47296   result = (int) ((arg1)->type);
47297   resultobj = SWIG_From_int(static_cast< int >(result));
47298   return resultobj;
47299 fail:
47300   return NULL;
47301 }
47302 
47303 
_wrap_new_ep(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)47304 SWIGINTERN PyObject *_wrap_new_ep(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47305   PyObject *resultobj = 0;
47306   unsigned int arg1 ;
47307   unsigned int arg2 ;
47308   float arg3 = (float) 1. ;
47309   int arg4 = (int) VRNA_PLIST_TYPE_BASEPAIR ;
47310   unsigned int val1 ;
47311   int ecode1 = 0 ;
47312   unsigned int val2 ;
47313   int ecode2 = 0 ;
47314   float val3 ;
47315   int ecode3 = 0 ;
47316   int val4 ;
47317   int ecode4 = 0 ;
47318   PyObject * obj0 = 0 ;
47319   PyObject * obj1 = 0 ;
47320   PyObject * obj2 = 0 ;
47321   PyObject * obj3 = 0 ;
47322   char * kwnames[] = {
47323     (char *)"i",  (char *)"j",  (char *)"p",  (char *)"type",  NULL
47324   };
47325   vrna_ep_t *result = 0 ;
47326 
47327   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|OO:new_ep", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
47328   ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
47329   if (!SWIG_IsOK(ecode1)) {
47330     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ep" "', argument " "1"" of type '" "unsigned int""'");
47331   }
47332   arg1 = static_cast< unsigned int >(val1);
47333   ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
47334   if (!SWIG_IsOK(ecode2)) {
47335     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ep" "', argument " "2"" of type '" "unsigned int""'");
47336   }
47337   arg2 = static_cast< unsigned int >(val2);
47338   if (obj2) {
47339     ecode3 = SWIG_AsVal_float(obj2, &val3);
47340     if (!SWIG_IsOK(ecode3)) {
47341       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ep" "', argument " "3"" of type '" "float""'");
47342     }
47343     arg3 = static_cast< float >(val3);
47344   }
47345   if (obj3) {
47346     ecode4 = SWIG_AsVal_int(obj3, &val4);
47347     if (!SWIG_IsOK(ecode4)) {
47348       SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ep" "', argument " "4"" of type '" "int""'");
47349     }
47350     arg4 = static_cast< int >(val4);
47351   }
47352   {
47353     try {
47354       result = (vrna_ep_t *)new_vrna_ep_t(arg1,arg2,arg3,arg4);
47355     } catch (const std::exception& e) {
47356       SWIG_exception(SWIG_RuntimeError, e.what());
47357     }
47358   }
47359   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_ep_t, SWIG_POINTER_NEW |  0 );
47360   return resultobj;
47361 fail:
47362   return NULL;
47363 }
47364 
47365 
_wrap_ep___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47366 SWIGINTERN PyObject *_wrap_ep___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47367   PyObject *resultobj = 0;
47368   vrna_ep_t *arg1 = (vrna_ep_t *) 0 ;
47369   void *argp1 = 0 ;
47370   int res1 = 0 ;
47371   PyObject *swig_obj[1] ;
47372   std::string result;
47373 
47374   if (!args) SWIG_fail;
47375   swig_obj[0] = args;
47376   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_ep_t, 0 |  0 );
47377   if (!SWIG_IsOK(res1)) {
47378     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ep___str__" "', argument " "1"" of type '" "vrna_ep_t *""'");
47379   }
47380   arg1 = reinterpret_cast< vrna_ep_t * >(argp1);
47381   {
47382     try {
47383       result = vrna_ep_t___str__(arg1);
47384     } catch (const std::exception& e) {
47385       SWIG_exception(SWIG_RuntimeError, e.what());
47386     }
47387   }
47388   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
47389   return resultobj;
47390 fail:
47391   return NULL;
47392 }
47393 
47394 
_wrap_delete_ep(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47395 SWIGINTERN PyObject *_wrap_delete_ep(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47396   PyObject *resultobj = 0;
47397   vrna_ep_t *arg1 = (vrna_ep_t *) 0 ;
47398   void *argp1 = 0 ;
47399   int res1 = 0 ;
47400   PyObject *swig_obj[1] ;
47401 
47402   if (!args) SWIG_fail;
47403   swig_obj[0] = args;
47404   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_ep_t, SWIG_POINTER_DISOWN |  0 );
47405   if (!SWIG_IsOK(res1)) {
47406     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ep" "', argument " "1"" of type '" "vrna_ep_t *""'");
47407   }
47408   arg1 = reinterpret_cast< vrna_ep_t * >(argp1);
47409   {
47410     try {
47411       delete arg1;
47412     } catch (const std::exception& e) {
47413       SWIG_exception(SWIG_RuntimeError, e.what());
47414     }
47415   }
47416   resultobj = SWIG_Py_Void();
47417   return resultobj;
47418 fail:
47419   return NULL;
47420 }
47421 
47422 
ep_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47423 SWIGINTERN PyObject *ep_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47424   PyObject *obj;
47425   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
47426   SWIG_TypeNewClientData(SWIGTYPE_p_vrna_ep_t, SWIG_NewClientData(obj));
47427   return SWIG_Py_Void();
47428 }
47429 
ep_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47430 SWIGINTERN PyObject *ep_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47431   return SWIG_Python_InitShadowInstance(args);
47432 }
47433 
_wrap_pack_structure(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)47434 SWIGINTERN PyObject *_wrap_pack_structure(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47435   PyObject *resultobj = 0;
47436   char *arg1 = (char *) 0 ;
47437   int res1 ;
47438   char *buf1 = 0 ;
47439   int alloc1 = 0 ;
47440   PyObject * obj0 = 0 ;
47441   char * kwnames[] = {
47442     (char *)"s",  NULL
47443   };
47444   char *result = 0 ;
47445 
47446   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:pack_structure", kwnames, &obj0)) SWIG_fail;
47447   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
47448   if (!SWIG_IsOK(res1)) {
47449     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pack_structure" "', argument " "1"" of type '" "char const *""'");
47450   }
47451   arg1 = reinterpret_cast< char * >(buf1);
47452   {
47453     try {
47454       result = (char *)my_pack_structure((char const *)arg1);
47455     } catch (const std::exception& e) {
47456       SWIG_exception(SWIG_RuntimeError, e.what());
47457     }
47458   }
47459   resultobj = SWIG_FromCharPtr((const char *)result);
47460   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
47461   delete[] result;
47462   return resultobj;
47463 fail:
47464   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
47465   return NULL;
47466 }
47467 
47468 
_wrap_unpack_structure(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)47469 SWIGINTERN PyObject *_wrap_unpack_structure(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47470   PyObject *resultobj = 0;
47471   char *arg1 = (char *) 0 ;
47472   int res1 ;
47473   char *buf1 = 0 ;
47474   int alloc1 = 0 ;
47475   PyObject * obj0 = 0 ;
47476   char * kwnames[] = {
47477     (char *)"packed",  NULL
47478   };
47479   char *result = 0 ;
47480 
47481   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:unpack_structure", kwnames, &obj0)) SWIG_fail;
47482   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
47483   if (!SWIG_IsOK(res1)) {
47484     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "unpack_structure" "', argument " "1"" of type '" "char const *""'");
47485   }
47486   arg1 = reinterpret_cast< char * >(buf1);
47487   {
47488     try {
47489       result = (char *)my_unpack_structure((char const *)arg1);
47490     } catch (const std::exception& e) {
47491       SWIG_exception(SWIG_RuntimeError, e.what());
47492     }
47493   }
47494   resultobj = SWIG_FromCharPtr((const char *)result);
47495   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
47496   delete[] result;
47497   return resultobj;
47498 fail:
47499   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
47500   return NULL;
47501 }
47502 
47503 
_wrap_db_from_ptable(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)47504 SWIGINTERN PyObject *_wrap_db_from_ptable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47505   PyObject *resultobj = 0;
47506   std::vector< int,std::allocator< int > > arg1 ;
47507   PyObject * obj0 = 0 ;
47508   char * kwnames[] = {
47509     (char *)"pt",  NULL
47510   };
47511   char *result = 0 ;
47512 
47513   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:db_from_ptable", kwnames, &obj0)) SWIG_fail;
47514   {
47515     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
47516     int res = swig::asptr(obj0, &ptr);
47517     if (!SWIG_IsOK(res) || !ptr) {
47518       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "db_from_ptable" "', argument " "1"" of type '" "std::vector< int,std::allocator< int > >""'");
47519     }
47520     arg1 = *ptr;
47521     if (SWIG_IsNewObj(res)) delete ptr;
47522   }
47523   {
47524     try {
47525       result = (char *)my_db_from_ptable(arg1);
47526     } catch (const std::exception& e) {
47527       SWIG_exception(SWIG_RuntimeError, e.what());
47528     }
47529   }
47530   resultobj = SWIG_FromCharPtr((const char *)result);
47531   return resultobj;
47532 fail:
47533   return NULL;
47534 }
47535 
47536 
_wrap_db_flatten__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)47537 SWIGINTERN PyObject *_wrap_db_flatten__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
47538   PyObject *resultobj = 0;
47539   char *arg1 = (char *) 0 ;
47540   unsigned int arg2 = (unsigned int) VRNA_BRACKETS_DEFAULT ;
47541   int res1 ;
47542   char *buf1 = 0 ;
47543   int alloc1 = 0 ;
47544   unsigned int val2 ;
47545   int ecode2 = 0 ;
47546 
47547   if ((nobjs < 1) || (nobjs > 2)) SWIG_fail;
47548   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
47549   if (!SWIG_IsOK(res1)) {
47550     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "db_flatten" "', argument " "1"" of type '" "char *""'");
47551   }
47552   arg1 = reinterpret_cast< char * >(buf1);
47553   if (swig_obj[1]) {
47554     ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
47555     if (!SWIG_IsOK(ecode2)) {
47556       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "db_flatten" "', argument " "2"" of type '" "unsigned int""'");
47557     }
47558     arg2 = static_cast< unsigned int >(val2);
47559   }
47560   {
47561     try {
47562       db_flatten(arg1,arg2);
47563     } catch (const std::exception& e) {
47564       SWIG_exception(SWIG_RuntimeError, e.what());
47565     }
47566   }
47567   resultobj = SWIG_Py_Void();
47568   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
47569   return resultobj;
47570 fail:
47571   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
47572   return NULL;
47573 }
47574 
47575 
_wrap_db_flatten__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)47576 SWIGINTERN PyObject *_wrap_db_flatten__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
47577   PyObject *resultobj = 0;
47578   char *arg1 = (char *) 0 ;
47579   std::string arg2 ;
47580   unsigned int arg3 = (unsigned int) VRNA_BRACKETS_DEFAULT ;
47581   int res1 ;
47582   char *buf1 = 0 ;
47583   int alloc1 = 0 ;
47584   unsigned int val3 ;
47585   int ecode3 = 0 ;
47586 
47587   if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
47588   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
47589   if (!SWIG_IsOK(res1)) {
47590     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "db_flatten" "', argument " "1"" of type '" "char *""'");
47591   }
47592   arg1 = reinterpret_cast< char * >(buf1);
47593   {
47594     std::string *ptr = (std::string *)0;
47595     int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
47596     if (!SWIG_IsOK(res) || !ptr) {
47597       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "db_flatten" "', argument " "2"" of type '" "std::string""'");
47598     }
47599     arg2 = *ptr;
47600     if (SWIG_IsNewObj(res)) delete ptr;
47601   }
47602   if (swig_obj[2]) {
47603     ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
47604     if (!SWIG_IsOK(ecode3)) {
47605       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "db_flatten" "', argument " "3"" of type '" "unsigned int""'");
47606     }
47607     arg3 = static_cast< unsigned int >(val3);
47608   }
47609   {
47610     try {
47611       db_flatten(arg1,arg2,arg3);
47612     } catch (const std::exception& e) {
47613       SWIG_exception(SWIG_RuntimeError, e.what());
47614     }
47615   }
47616   resultobj = SWIG_Py_Void();
47617   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
47618   return resultobj;
47619 fail:
47620   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
47621   return NULL;
47622 }
47623 
47624 
_wrap_db_flatten(PyObject * self,PyObject * args)47625 SWIGINTERN PyObject *_wrap_db_flatten(PyObject *self, PyObject *args) {
47626   Py_ssize_t argc;
47627   PyObject *argv[4] = {
47628     0
47629   };
47630 
47631   if (!(argc = SWIG_Python_UnpackTuple(args, "db_flatten", 0, 3, argv))) SWIG_fail;
47632   --argc;
47633   if ((argc >= 1) && (argc <= 2)) {
47634     int _v;
47635     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
47636     _v = SWIG_CheckState(res);
47637     if (_v) {
47638       if (argc <= 1) {
47639         return _wrap_db_flatten__SWIG_0(self, argc, argv);
47640       }
47641       {
47642         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
47643         _v = SWIG_CheckState(res);
47644       }
47645       if (_v) {
47646         return _wrap_db_flatten__SWIG_0(self, argc, argv);
47647       }
47648     }
47649   }
47650   if ((argc >= 2) && (argc <= 3)) {
47651     int _v;
47652     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
47653     _v = SWIG_CheckState(res);
47654     if (_v) {
47655       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
47656       _v = SWIG_CheckState(res);
47657       if (_v) {
47658         if (argc <= 2) {
47659           return _wrap_db_flatten__SWIG_1(self, argc, argv);
47660         }
47661         {
47662           int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
47663           _v = SWIG_CheckState(res);
47664         }
47665         if (_v) {
47666           return _wrap_db_flatten__SWIG_1(self, argc, argv);
47667         }
47668       }
47669     }
47670   }
47671 
47672 fail:
47673   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'db_flatten'.\n"
47674     "  Possible C/C++ prototypes are:\n"
47675     "    db_flatten(char *,unsigned int)\n"
47676     "    db_flatten(char *,std::string,unsigned int)\n");
47677   return 0;
47678 }
47679 
47680 
_wrap_db_from_WUSS(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)47681 SWIGINTERN PyObject *_wrap_db_from_WUSS(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47682   PyObject *resultobj = 0;
47683   std::string arg1 ;
47684   PyObject * obj0 = 0 ;
47685   char * kwnames[] = {
47686     (char *)"wuss",  NULL
47687   };
47688   std::string result;
47689 
47690   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:db_from_WUSS", kwnames, &obj0)) SWIG_fail;
47691   {
47692     std::string *ptr = (std::string *)0;
47693     int res = SWIG_AsPtr_std_string(obj0, &ptr);
47694     if (!SWIG_IsOK(res) || !ptr) {
47695       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "db_from_WUSS" "', argument " "1"" of type '" "std::string""'");
47696     }
47697     arg1 = *ptr;
47698     if (SWIG_IsNewObj(res)) delete ptr;
47699   }
47700   {
47701     try {
47702       result = db_from_WUSS(arg1);
47703     } catch (const std::exception& e) {
47704       SWIG_exception(SWIG_RuntimeError, e.what());
47705     }
47706   }
47707   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
47708   return resultobj;
47709 fail:
47710   return NULL;
47711 }
47712 
47713 
_wrap_abstract_shapes__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)47714 SWIGINTERN PyObject *_wrap_abstract_shapes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
47715   PyObject *resultobj = 0;
47716   std::string arg1 ;
47717   unsigned int arg2 = (unsigned int) 5 ;
47718   unsigned int val2 ;
47719   int ecode2 = 0 ;
47720   std::string result;
47721 
47722   if ((nobjs < 1) || (nobjs > 2)) SWIG_fail;
47723   {
47724     std::string *ptr = (std::string *)0;
47725     int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
47726     if (!SWIG_IsOK(res) || !ptr) {
47727       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "abstract_shapes" "', argument " "1"" of type '" "std::string""'");
47728     }
47729     arg1 = *ptr;
47730     if (SWIG_IsNewObj(res)) delete ptr;
47731   }
47732   if (swig_obj[1]) {
47733     ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
47734     if (!SWIG_IsOK(ecode2)) {
47735       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "abstract_shapes" "', argument " "2"" of type '" "unsigned int""'");
47736     }
47737     arg2 = static_cast< unsigned int >(val2);
47738   }
47739   {
47740     try {
47741       result = abstract_shapes(arg1,arg2);
47742     } catch (const std::exception& e) {
47743       SWIG_exception(SWIG_RuntimeError, e.what());
47744     }
47745   }
47746   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
47747   return resultobj;
47748 fail:
47749   return NULL;
47750 }
47751 
47752 
_wrap_abstract_shapes__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)47753 SWIGINTERN PyObject *_wrap_abstract_shapes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
47754   PyObject *resultobj = 0;
47755   std::vector< int,std::allocator< int > > arg1 ;
47756   unsigned int arg2 = (unsigned int) 5 ;
47757   unsigned int val2 ;
47758   int ecode2 = 0 ;
47759   std::string result;
47760 
47761   if ((nobjs < 1) || (nobjs > 2)) SWIG_fail;
47762   {
47763     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
47764     int res = swig::asptr(swig_obj[0], &ptr);
47765     if (!SWIG_IsOK(res) || !ptr) {
47766       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "abstract_shapes" "', argument " "1"" of type '" "std::vector< int,std::allocator< int > >""'");
47767     }
47768     arg1 = *ptr;
47769     if (SWIG_IsNewObj(res)) delete ptr;
47770   }
47771   if (swig_obj[1]) {
47772     ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
47773     if (!SWIG_IsOK(ecode2)) {
47774       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "abstract_shapes" "', argument " "2"" of type '" "unsigned int""'");
47775     }
47776     arg2 = static_cast< unsigned int >(val2);
47777   }
47778   {
47779     try {
47780       result = abstract_shapes(arg1,arg2);
47781     } catch (const std::exception& e) {
47782       SWIG_exception(SWIG_RuntimeError, e.what());
47783     }
47784   }
47785   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
47786   return resultobj;
47787 fail:
47788   return NULL;
47789 }
47790 
47791 
_wrap_abstract_shapes(PyObject * self,PyObject * args)47792 SWIGINTERN PyObject *_wrap_abstract_shapes(PyObject *self, PyObject *args) {
47793   Py_ssize_t argc;
47794   PyObject *argv[3] = {
47795     0
47796   };
47797 
47798   if (!(argc = SWIG_Python_UnpackTuple(args, "abstract_shapes", 0, 2, argv))) SWIG_fail;
47799   --argc;
47800   if ((argc >= 1) && (argc <= 2)) {
47801     int _v;
47802     int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
47803     _v = SWIG_CheckState(res);
47804     if (_v) {
47805       if (argc <= 1) {
47806         return _wrap_abstract_shapes__SWIG_0(self, argc, argv);
47807       }
47808       {
47809         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
47810         _v = SWIG_CheckState(res);
47811       }
47812       if (_v) {
47813         return _wrap_abstract_shapes__SWIG_0(self, argc, argv);
47814       }
47815     }
47816   }
47817   if ((argc >= 1) && (argc <= 2)) {
47818     int _v;
47819     int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
47820     _v = SWIG_CheckState(res);
47821     if (_v) {
47822       if (argc <= 1) {
47823         return _wrap_abstract_shapes__SWIG_1(self, argc, argv);
47824       }
47825       {
47826         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
47827         _v = SWIG_CheckState(res);
47828       }
47829       if (_v) {
47830         return _wrap_abstract_shapes__SWIG_1(self, argc, argv);
47831       }
47832     }
47833   }
47834 
47835 fail:
47836   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'abstract_shapes'.\n"
47837     "  Possible C/C++ prototypes are:\n"
47838     "    abstract_shapes(std::string,unsigned int)\n"
47839     "    abstract_shapes(std::vector< int,std::allocator< int > >,unsigned int)\n");
47840   return 0;
47841 }
47842 
47843 
_wrap_ptable(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)47844 SWIGINTERN PyObject *_wrap_ptable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47845   PyObject *resultobj = 0;
47846   std::string arg1 ;
47847   unsigned int arg2 = (unsigned int) VRNA_BRACKETS_RND ;
47848   unsigned int val2 ;
47849   int ecode2 = 0 ;
47850   PyObject * obj0 = 0 ;
47851   PyObject * obj1 = 0 ;
47852   char * kwnames[] = {
47853     (char *)"str",  (char *)"options",  NULL
47854   };
47855   std::vector< int,std::allocator< int > > result;
47856 
47857   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:ptable", kwnames, &obj0, &obj1)) SWIG_fail;
47858   {
47859     std::string *ptr = (std::string *)0;
47860     int res = SWIG_AsPtr_std_string(obj0, &ptr);
47861     if (!SWIG_IsOK(res) || !ptr) {
47862       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ptable" "', argument " "1"" of type '" "std::string""'");
47863     }
47864     arg1 = *ptr;
47865     if (SWIG_IsNewObj(res)) delete ptr;
47866   }
47867   if (obj1) {
47868     ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
47869     if (!SWIG_IsOK(ecode2)) {
47870       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ptable" "', argument " "2"" of type '" "unsigned int""'");
47871     }
47872     arg2 = static_cast< unsigned int >(val2);
47873   }
47874   {
47875     try {
47876       result = my_ptable(arg1,arg2);
47877     } catch (const std::exception& e) {
47878       SWIG_exception(SWIG_RuntimeError, e.what());
47879     }
47880   }
47881   resultobj = swig::from(static_cast< std::vector< int,std::allocator< int > > >(result));
47882   return resultobj;
47883 fail:
47884   return NULL;
47885 }
47886 
47887 
_wrap_ptable_pk(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)47888 SWIGINTERN PyObject *_wrap_ptable_pk(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47889   PyObject *resultobj = 0;
47890   std::string arg1 ;
47891   PyObject * obj0 = 0 ;
47892   char * kwnames[] = {
47893     (char *)"str",  NULL
47894   };
47895   std::vector< int,std::allocator< int > > result;
47896 
47897   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:ptable_pk", kwnames, &obj0)) SWIG_fail;
47898   {
47899     std::string *ptr = (std::string *)0;
47900     int res = SWIG_AsPtr_std_string(obj0, &ptr);
47901     if (!SWIG_IsOK(res) || !ptr) {
47902       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ptable_pk" "', argument " "1"" of type '" "std::string""'");
47903     }
47904     arg1 = *ptr;
47905     if (SWIG_IsNewObj(res)) delete ptr;
47906   }
47907   {
47908     try {
47909       result = my_ptable_pk(arg1);
47910     } catch (const std::exception& e) {
47911       SWIG_exception(SWIG_RuntimeError, e.what());
47912     }
47913   }
47914   resultobj = swig::from(static_cast< std::vector< int,std::allocator< int > > >(result));
47915   return resultobj;
47916 fail:
47917   return NULL;
47918 }
47919 
47920 
_wrap_pt_pk_remove(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)47921 SWIGINTERN PyObject *_wrap_pt_pk_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47922   PyObject *resultobj = 0;
47923   std::vector< int,std::allocator< int > > arg1 ;
47924   unsigned int arg2 = (unsigned int) 0 ;
47925   unsigned int val2 ;
47926   int ecode2 = 0 ;
47927   PyObject * obj0 = 0 ;
47928   PyObject * obj1 = 0 ;
47929   char * kwnames[] = {
47930     (char *)"pt",  (char *)"options",  NULL
47931   };
47932   std::vector< int,std::allocator< int > > result;
47933 
47934   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:pt_pk_remove", kwnames, &obj0, &obj1)) SWIG_fail;
47935   {
47936     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
47937     int res = swig::asptr(obj0, &ptr);
47938     if (!SWIG_IsOK(res) || !ptr) {
47939       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "pt_pk_remove" "', argument " "1"" of type '" "std::vector< int,std::allocator< int > >""'");
47940     }
47941     arg1 = *ptr;
47942     if (SWIG_IsNewObj(res)) delete ptr;
47943   }
47944   if (obj1) {
47945     ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
47946     if (!SWIG_IsOK(ecode2)) {
47947       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pt_pk_remove" "', argument " "2"" of type '" "unsigned int""'");
47948     }
47949     arg2 = static_cast< unsigned int >(val2);
47950   }
47951   {
47952     try {
47953       result = my_pt_pk_remove(arg1,arg2);
47954     } catch (const std::exception& e) {
47955       SWIG_exception(SWIG_RuntimeError, e.what());
47956     }
47957   }
47958   resultobj = swig::from(static_cast< std::vector< int,std::allocator< int > > >(result));
47959   return resultobj;
47960 fail:
47961   return NULL;
47962 }
47963 
47964 
_wrap_plist(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)47965 SWIGINTERN PyObject *_wrap_plist(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47966   PyObject *resultobj = 0;
47967   std::string arg1 ;
47968   float arg2 ;
47969   float val2 ;
47970   int ecode2 = 0 ;
47971   PyObject * obj0 = 0 ;
47972   PyObject * obj1 = 0 ;
47973   char * kwnames[] = {
47974     (char *)"structure",  (char *)"pr",  NULL
47975   };
47976   std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > result;
47977 
47978   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:plist", kwnames, &obj0, &obj1)) SWIG_fail;
47979   {
47980     std::string *ptr = (std::string *)0;
47981     int res = SWIG_AsPtr_std_string(obj0, &ptr);
47982     if (!SWIG_IsOK(res) || !ptr) {
47983       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "plist" "', argument " "1"" of type '" "std::string""'");
47984     }
47985     arg1 = *ptr;
47986     if (SWIG_IsNewObj(res)) delete ptr;
47987   }
47988   ecode2 = SWIG_AsVal_float(obj1, &val2);
47989   if (!SWIG_IsOK(ecode2)) {
47990     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plist" "', argument " "2"" of type '" "float""'");
47991   }
47992   arg2 = static_cast< float >(val2);
47993   {
47994     try {
47995       result = my_plist(arg1,arg2);
47996     } catch (const std::exception& e) {
47997       SWIG_exception(SWIG_RuntimeError, e.what());
47998     }
47999   }
48000   resultobj = swig::from(static_cast< std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > >(result));
48001   return resultobj;
48002 fail:
48003   return NULL;
48004 }
48005 
48006 
_wrap_db_from_plist(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)48007 SWIGINTERN PyObject *_wrap_db_from_plist(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48008   PyObject *resultobj = 0;
48009   std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > arg1 ;
48010   unsigned int arg2 ;
48011   unsigned int val2 ;
48012   int ecode2 = 0 ;
48013   PyObject * obj0 = 0 ;
48014   PyObject * obj1 = 0 ;
48015   char * kwnames[] = {
48016     (char *)"elem_probs",  (char *)"length",  NULL
48017   };
48018   std::string result;
48019 
48020   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:db_from_plist", kwnames, &obj0, &obj1)) SWIG_fail;
48021   {
48022     std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *ptr = (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *)0;
48023     int res = swig::asptr(obj0, &ptr);
48024     if (!SWIG_IsOK(res) || !ptr) {
48025       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "db_from_plist" "', argument " "1"" of type '" "std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >""'");
48026     }
48027     arg1 = *ptr;
48028     if (SWIG_IsNewObj(res)) delete ptr;
48029   }
48030   ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
48031   if (!SWIG_IsOK(ecode2)) {
48032     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "db_from_plist" "', argument " "2"" of type '" "unsigned int""'");
48033   }
48034   arg2 = static_cast< unsigned int >(val2);
48035   {
48036     try {
48037       result = db_from_plist(arg1,arg2);
48038     } catch (const std::exception& e) {
48039       SWIG_exception(SWIG_RuntimeError, e.what());
48040     }
48041   }
48042   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
48043   return resultobj;
48044 fail:
48045   return NULL;
48046 }
48047 
48048 
_wrap_db_pk_remove(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)48049 SWIGINTERN PyObject *_wrap_db_pk_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48050   PyObject *resultobj = 0;
48051   std::string arg1 ;
48052   unsigned int arg2 = (unsigned int) VRNA_BRACKETS_ANY ;
48053   unsigned int val2 ;
48054   int ecode2 = 0 ;
48055   PyObject * obj0 = 0 ;
48056   PyObject * obj1 = 0 ;
48057   char * kwnames[] = {
48058     (char *)"structure",  (char *)"options",  NULL
48059   };
48060   std::string result;
48061 
48062   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:db_pk_remove", kwnames, &obj0, &obj1)) SWIG_fail;
48063   {
48064     std::string *ptr = (std::string *)0;
48065     int res = SWIG_AsPtr_std_string(obj0, &ptr);
48066     if (!SWIG_IsOK(res) || !ptr) {
48067       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "db_pk_remove" "', argument " "1"" of type '" "std::string""'");
48068     }
48069     arg1 = *ptr;
48070     if (SWIG_IsNewObj(res)) delete ptr;
48071   }
48072   if (obj1) {
48073     ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
48074     if (!SWIG_IsOK(ecode2)) {
48075       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "db_pk_remove" "', argument " "2"" of type '" "unsigned int""'");
48076     }
48077     arg2 = static_cast< unsigned int >(val2);
48078   }
48079   {
48080     try {
48081       result = db_pk_remove(arg1,arg2);
48082     } catch (const std::exception& e) {
48083       SWIG_exception(SWIG_RuntimeError, e.what());
48084     }
48085   }
48086   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
48087   return resultobj;
48088 fail:
48089   return NULL;
48090 }
48091 
48092 
_wrap_db_to_tree_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)48093 SWIGINTERN PyObject *_wrap_db_to_tree_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48094   PyObject *resultobj = 0;
48095   std::string arg1 ;
48096   unsigned int arg2 ;
48097   unsigned int val2 ;
48098   int ecode2 = 0 ;
48099   PyObject * obj0 = 0 ;
48100   PyObject * obj1 = 0 ;
48101   char * kwnames[] = {
48102     (char *)"structure",  (char *)"type",  NULL
48103   };
48104   std::string result;
48105 
48106   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:db_to_tree_string", kwnames, &obj0, &obj1)) SWIG_fail;
48107   {
48108     std::string *ptr = (std::string *)0;
48109     int res = SWIG_AsPtr_std_string(obj0, &ptr);
48110     if (!SWIG_IsOK(res) || !ptr) {
48111       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "db_to_tree_string" "', argument " "1"" of type '" "std::string""'");
48112     }
48113     arg1 = *ptr;
48114     if (SWIG_IsNewObj(res)) delete ptr;
48115   }
48116   ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
48117   if (!SWIG_IsOK(ecode2)) {
48118     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "db_to_tree_string" "', argument " "2"" of type '" "unsigned int""'");
48119   }
48120   arg2 = static_cast< unsigned int >(val2);
48121   {
48122     try {
48123       result = db_to_tree_string(arg1,arg2);
48124     } catch (const std::exception& e) {
48125       SWIG_exception(SWIG_RuntimeError, e.what());
48126     }
48127   }
48128   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
48129   return resultobj;
48130 fail:
48131   return NULL;
48132 }
48133 
48134 
_wrap_tree_string_unweight(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)48135 SWIGINTERN PyObject *_wrap_tree_string_unweight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48136   PyObject *resultobj = 0;
48137   std::string arg1 ;
48138   PyObject * obj0 = 0 ;
48139   char * kwnames[] = {
48140     (char *)"structure",  NULL
48141   };
48142   std::string result;
48143 
48144   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:tree_string_unweight", kwnames, &obj0)) SWIG_fail;
48145   {
48146     std::string *ptr = (std::string *)0;
48147     int res = SWIG_AsPtr_std_string(obj0, &ptr);
48148     if (!SWIG_IsOK(res) || !ptr) {
48149       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "tree_string_unweight" "', argument " "1"" of type '" "std::string""'");
48150     }
48151     arg1 = *ptr;
48152     if (SWIG_IsNewObj(res)) delete ptr;
48153   }
48154   {
48155     try {
48156       result = tree_string_unweight(arg1);
48157     } catch (const std::exception& e) {
48158       SWIG_exception(SWIG_RuntimeError, e.what());
48159     }
48160   }
48161   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
48162   return resultobj;
48163 fail:
48164   return NULL;
48165 }
48166 
48167 
_wrap_tree_string_to_db(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)48168 SWIGINTERN PyObject *_wrap_tree_string_to_db(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48169   PyObject *resultobj = 0;
48170   std::string arg1 ;
48171   PyObject * obj0 = 0 ;
48172   char * kwnames[] = {
48173     (char *)"structure",  NULL
48174   };
48175   std::string result;
48176 
48177   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:tree_string_to_db", kwnames, &obj0)) SWIG_fail;
48178   {
48179     std::string *ptr = (std::string *)0;
48180     int res = SWIG_AsPtr_std_string(obj0, &ptr);
48181     if (!SWIG_IsOK(res) || !ptr) {
48182       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "tree_string_to_db" "', argument " "1"" of type '" "std::string""'");
48183     }
48184     arg1 = *ptr;
48185     if (SWIG_IsNewObj(res)) delete ptr;
48186   }
48187   {
48188     try {
48189       result = tree_string_to_db(arg1);
48190     } catch (const std::exception& e) {
48191       SWIG_exception(SWIG_RuntimeError, e.what());
48192     }
48193   }
48194   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
48195   return resultobj;
48196 fail:
48197   return NULL;
48198 }
48199 
48200 
_wrap_make_loop_index(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)48201 SWIGINTERN PyObject *_wrap_make_loop_index(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48202   PyObject *resultobj = 0;
48203   char *arg1 = (char *) 0 ;
48204   int res1 ;
48205   char *buf1 = 0 ;
48206   int alloc1 = 0 ;
48207   PyObject * obj0 = 0 ;
48208   char * kwnames[] = {
48209     (char *)"structure",  NULL
48210   };
48211   short *result = 0 ;
48212 
48213   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:make_loop_index", kwnames, &obj0)) SWIG_fail;
48214   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
48215   if (!SWIG_IsOK(res1)) {
48216     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "make_loop_index" "', argument " "1"" of type '" "char const *""'");
48217   }
48218   arg1 = reinterpret_cast< char * >(buf1);
48219   {
48220     try {
48221       result = (short *)make_loop_index((char const *)arg1);
48222     } catch (const std::exception& e) {
48223       SWIG_exception(SWIG_RuntimeError, e.what());
48224     }
48225   }
48226   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_short, 0 |  0 );
48227   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
48228   return resultobj;
48229 fail:
48230   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
48231   return NULL;
48232 }
48233 
48234 
_wrap_loopidx_from_ptable(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)48235 SWIGINTERN PyObject *_wrap_loopidx_from_ptable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48236   PyObject *resultobj = 0;
48237   std::vector< int,std::allocator< int > > arg1 ;
48238   PyObject * obj0 = 0 ;
48239   char * kwnames[] = {
48240     (char *)"pt",  NULL
48241   };
48242   std::vector< int,std::allocator< int > > result;
48243 
48244   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:loopidx_from_ptable", kwnames, &obj0)) SWIG_fail;
48245   {
48246     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
48247     int res = swig::asptr(obj0, &ptr);
48248     if (!SWIG_IsOK(res) || !ptr) {
48249       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "loopidx_from_ptable" "', argument " "1"" of type '" "std::vector< int,std::allocator< int > >""'");
48250     }
48251     arg1 = *ptr;
48252     if (SWIG_IsNewObj(res)) delete ptr;
48253   }
48254   {
48255     try {
48256       result = my_loopidx_from_ptable(arg1);
48257     } catch (const std::exception& e) {
48258       SWIG_exception(SWIG_RuntimeError, e.what());
48259     }
48260   }
48261   resultobj = swig::from(static_cast< std::vector< int,std::allocator< int > > >(result));
48262   return resultobj;
48263 fail:
48264   return NULL;
48265 }
48266 
48267 
_wrap_bp_distance(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)48268 SWIGINTERN PyObject *_wrap_bp_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48269   PyObject *resultobj = 0;
48270   char *arg1 = (char *) 0 ;
48271   char *arg2 = (char *) 0 ;
48272   int res1 ;
48273   char *buf1 = 0 ;
48274   int alloc1 = 0 ;
48275   int res2 ;
48276   char *buf2 = 0 ;
48277   int alloc2 = 0 ;
48278   PyObject * obj0 = 0 ;
48279   PyObject * obj1 = 0 ;
48280   char * kwnames[] = {
48281     (char *)"str1",  (char *)"str2",  NULL
48282   };
48283   int result;
48284 
48285   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:bp_distance", kwnames, &obj0, &obj1)) SWIG_fail;
48286   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
48287   if (!SWIG_IsOK(res1)) {
48288     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bp_distance" "', argument " "1"" of type '" "char const *""'");
48289   }
48290   arg1 = reinterpret_cast< char * >(buf1);
48291   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
48292   if (!SWIG_IsOK(res2)) {
48293     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "bp_distance" "', argument " "2"" of type '" "char const *""'");
48294   }
48295   arg2 = reinterpret_cast< char * >(buf2);
48296   {
48297     try {
48298       result = (int)my_bp_distance((char const *)arg1,(char const *)arg2);
48299     } catch (const std::exception& e) {
48300       SWIG_exception(SWIG_RuntimeError, e.what());
48301     }
48302   }
48303   resultobj = SWIG_From_int(static_cast< int >(result));
48304   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
48305   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
48306   return resultobj;
48307 fail:
48308   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
48309   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
48310   return NULL;
48311 }
48312 
48313 
_wrap_dist_mountain(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)48314 SWIGINTERN PyObject *_wrap_dist_mountain(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48315   PyObject *resultobj = 0;
48316   std::string arg1 ;
48317   std::string arg2 ;
48318   unsigned int arg3 = (unsigned int) 1 ;
48319   unsigned int val3 ;
48320   int ecode3 = 0 ;
48321   PyObject * obj0 = 0 ;
48322   PyObject * obj1 = 0 ;
48323   PyObject * obj2 = 0 ;
48324   char * kwnames[] = {
48325     (char *)"str1",  (char *)"str2",  (char *)"p",  NULL
48326   };
48327   double result;
48328 
48329   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:dist_mountain", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
48330   {
48331     std::string *ptr = (std::string *)0;
48332     int res = SWIG_AsPtr_std_string(obj0, &ptr);
48333     if (!SWIG_IsOK(res) || !ptr) {
48334       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "dist_mountain" "', argument " "1"" of type '" "std::string""'");
48335     }
48336     arg1 = *ptr;
48337     if (SWIG_IsNewObj(res)) delete ptr;
48338   }
48339   {
48340     std::string *ptr = (std::string *)0;
48341     int res = SWIG_AsPtr_std_string(obj1, &ptr);
48342     if (!SWIG_IsOK(res) || !ptr) {
48343       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "dist_mountain" "', argument " "2"" of type '" "std::string""'");
48344     }
48345     arg2 = *ptr;
48346     if (SWIG_IsNewObj(res)) delete ptr;
48347   }
48348   if (obj2) {
48349     ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
48350     if (!SWIG_IsOK(ecode3)) {
48351       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dist_mountain" "', argument " "3"" of type '" "unsigned int""'");
48352     }
48353     arg3 = static_cast< unsigned int >(val3);
48354   }
48355   {
48356     try {
48357       result = (double)my_dist_mountain(arg1,arg2,arg3);
48358     } catch (const std::exception& e) {
48359       SWIG_exception(SWIG_RuntimeError, e.what());
48360     }
48361   }
48362   resultobj = SWIG_From_double(static_cast< double >(result));
48363   return resultobj;
48364 fail:
48365   return NULL;
48366 }
48367 
48368 
_wrap_db_pack(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)48369 SWIGINTERN PyObject *_wrap_db_pack(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48370   PyObject *resultobj = 0;
48371   char *arg1 = (char *) 0 ;
48372   int res1 ;
48373   char *buf1 = 0 ;
48374   int alloc1 = 0 ;
48375   PyObject * obj0 = 0 ;
48376   char * kwnames[] = {
48377     (char *)"struc",  NULL
48378   };
48379   char *result = 0 ;
48380 
48381   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:db_pack", kwnames, &obj0)) SWIG_fail;
48382   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
48383   if (!SWIG_IsOK(res1)) {
48384     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "db_pack" "', argument " "1"" of type '" "char const *""'");
48385   }
48386   arg1 = reinterpret_cast< char * >(buf1);
48387   {
48388     try {
48389       result = (char *)vrna_db_pack((char const *)arg1);
48390     } catch (const std::exception& e) {
48391       SWIG_exception(SWIG_RuntimeError, e.what());
48392     }
48393   }
48394   resultobj = SWIG_FromCharPtr((const char *)result);
48395   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
48396   delete[] result;
48397   return resultobj;
48398 fail:
48399   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
48400   return NULL;
48401 }
48402 
48403 
_wrap_db_unpack(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)48404 SWIGINTERN PyObject *_wrap_db_unpack(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48405   PyObject *resultobj = 0;
48406   char *arg1 = (char *) 0 ;
48407   int res1 ;
48408   char *buf1 = 0 ;
48409   int alloc1 = 0 ;
48410   PyObject * obj0 = 0 ;
48411   char * kwnames[] = {
48412     (char *)"packed",  NULL
48413   };
48414   char *result = 0 ;
48415 
48416   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:db_unpack", kwnames, &obj0)) SWIG_fail;
48417   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
48418   if (!SWIG_IsOK(res1)) {
48419     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "db_unpack" "', argument " "1"" of type '" "char const *""'");
48420   }
48421   arg1 = reinterpret_cast< char * >(buf1);
48422   {
48423     try {
48424       result = (char *)vrna_db_unpack((char const *)arg1);
48425     } catch (const std::exception& e) {
48426       SWIG_exception(SWIG_RuntimeError, e.what());
48427     }
48428   }
48429   resultobj = SWIG_FromCharPtr((const char *)result);
48430   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
48431   delete[] result;
48432   return resultobj;
48433 fail:
48434   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
48435   return NULL;
48436 }
48437 
48438 
_wrap_db_to_element_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)48439 SWIGINTERN PyObject *_wrap_db_to_element_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48440   PyObject *resultobj = 0;
48441   char *arg1 = (char *) 0 ;
48442   int res1 ;
48443   char *buf1 = 0 ;
48444   int alloc1 = 0 ;
48445   PyObject * obj0 = 0 ;
48446   char * kwnames[] = {
48447     (char *)"structure",  NULL
48448   };
48449   char *result = 0 ;
48450 
48451   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:db_to_element_string", kwnames, &obj0)) SWIG_fail;
48452   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
48453   if (!SWIG_IsOK(res1)) {
48454     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "db_to_element_string" "', argument " "1"" of type '" "char const *""'");
48455   }
48456   arg1 = reinterpret_cast< char * >(buf1);
48457   {
48458     try {
48459       result = (char *)vrna_db_to_element_string((char const *)arg1);
48460     } catch (const std::exception& e) {
48461       SWIG_exception(SWIG_RuntimeError, e.what());
48462     }
48463   }
48464   resultobj = SWIG_FromCharPtr((const char *)result);
48465   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
48466   delete[] result;
48467   return resultobj;
48468 fail:
48469   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
48470   return NULL;
48471 }
48472 
48473 
_wrap_consensus(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)48474 SWIGINTERN PyObject *_wrap_consensus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48475   PyObject *resultobj = 0;
48476   std::vector< std::string,std::allocator< std::string > > arg1 ;
48477   vrna_md_t *arg2 = (vrna_md_t *) NULL ;
48478   void *argp2 = 0 ;
48479   int res2 = 0 ;
48480   PyObject * obj0 = 0 ;
48481   PyObject * obj1 = 0 ;
48482   char * kwnames[] = {
48483     (char *)"alignment",  (char *)"md_p",  NULL
48484   };
48485   std::string result;
48486 
48487   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:consensus", kwnames, &obj0, &obj1)) SWIG_fail;
48488   {
48489     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
48490     int res = swig::asptr(obj0, &ptr);
48491     if (!SWIG_IsOK(res) || !ptr) {
48492       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "consensus" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
48493     }
48494     arg1 = *ptr;
48495     if (SWIG_IsNewObj(res)) delete ptr;
48496   }
48497   if (obj1) {
48498     res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_vrna_md_t, 0 |  0 );
48499     if (!SWIG_IsOK(res2)) {
48500       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "consensus" "', argument " "2"" of type '" "vrna_md_t *""'");
48501     }
48502     arg2 = reinterpret_cast< vrna_md_t * >(argp2);
48503   }
48504   {
48505     try {
48506       result = my_consensus_sequence(arg1,arg2);
48507     } catch (const std::exception& e) {
48508       SWIG_exception(SWIG_RuntimeError, e.what());
48509     }
48510   }
48511   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
48512   return resultobj;
48513 fail:
48514   return NULL;
48515 }
48516 
48517 
_wrap_consens_mis(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)48518 SWIGINTERN PyObject *_wrap_consens_mis(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48519   PyObject *resultobj = 0;
48520   std::vector< std::string,std::allocator< std::string > > arg1 ;
48521   vrna_md_t *arg2 = (vrna_md_t *) NULL ;
48522   void *argp2 = 0 ;
48523   int res2 = 0 ;
48524   PyObject * obj0 = 0 ;
48525   PyObject * obj1 = 0 ;
48526   char * kwnames[] = {
48527     (char *)"alignment",  (char *)"md_p",  NULL
48528   };
48529   std::string result;
48530 
48531   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:consens_mis", kwnames, &obj0, &obj1)) SWIG_fail;
48532   {
48533     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
48534     int res = swig::asptr(obj0, &ptr);
48535     if (!SWIG_IsOK(res) || !ptr) {
48536       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "consens_mis" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
48537     }
48538     arg1 = *ptr;
48539     if (SWIG_IsNewObj(res)) delete ptr;
48540   }
48541   if (obj1) {
48542     res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_vrna_md_t, 0 |  0 );
48543     if (!SWIG_IsOK(res2)) {
48544       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "consens_mis" "', argument " "2"" of type '" "vrna_md_t *""'");
48545     }
48546     arg2 = reinterpret_cast< vrna_md_t * >(argp2);
48547   }
48548   {
48549     try {
48550       result = my_aln_consensus_mis(arg1,arg2);
48551     } catch (const std::exception& e) {
48552       SWIG_exception(SWIG_RuntimeError, e.what());
48553     }
48554   }
48555   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
48556   return resultobj;
48557 fail:
48558   return NULL;
48559 }
48560 
48561 
_wrap_aln_mpi(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)48562 SWIGINTERN PyObject *_wrap_aln_mpi(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48563   PyObject *resultobj = 0;
48564   std::vector< std::string,std::allocator< std::string > > arg1 ;
48565   PyObject * obj0 = 0 ;
48566   char * kwnames[] = {
48567     (char *)"alignment",  NULL
48568   };
48569   int result;
48570 
48571   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:aln_mpi", kwnames, &obj0)) SWIG_fail;
48572   {
48573     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
48574     int res = swig::asptr(obj0, &ptr);
48575     if (!SWIG_IsOK(res) || !ptr) {
48576       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "aln_mpi" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
48577     }
48578     arg1 = *ptr;
48579     if (SWIG_IsNewObj(res)) delete ptr;
48580   }
48581   {
48582     try {
48583       result = (int)my_aln_mpi(arg1);
48584     } catch (const std::exception& e) {
48585       SWIG_exception(SWIG_RuntimeError, e.what());
48586     }
48587   }
48588   resultobj = SWIG_From_int(static_cast< int >(result));
48589   return resultobj;
48590 fail:
48591   return NULL;
48592 }
48593 
48594 
_wrap_aln_pscore(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)48595 SWIGINTERN PyObject *_wrap_aln_pscore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48596   PyObject *resultobj = 0;
48597   std::vector< std::string,std::allocator< std::string > > arg1 ;
48598   vrna_md_t *arg2 = (vrna_md_t *) NULL ;
48599   void *argp2 = 0 ;
48600   int res2 = 0 ;
48601   PyObject * obj0 = 0 ;
48602   PyObject * obj1 = 0 ;
48603   char * kwnames[] = {
48604     (char *)"alignment",  (char *)"md",  NULL
48605   };
48606   std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > result;
48607 
48608   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:aln_pscore", kwnames, &obj0, &obj1)) SWIG_fail;
48609   {
48610     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
48611     int res = swig::asptr(obj0, &ptr);
48612     if (!SWIG_IsOK(res) || !ptr) {
48613       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "aln_pscore" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
48614     }
48615     arg1 = *ptr;
48616     if (SWIG_IsNewObj(res)) delete ptr;
48617   }
48618   if (obj1) {
48619     res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_vrna_md_t, 0 |  0 );
48620     if (!SWIG_IsOK(res2)) {
48621       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "aln_pscore" "', argument " "2"" of type '" "vrna_md_t *""'");
48622     }
48623     arg2 = reinterpret_cast< vrna_md_t * >(argp2);
48624   }
48625   {
48626     try {
48627       result = my_aln_pscore(arg1,arg2);
48628     } catch (const std::exception& e) {
48629       SWIG_exception(SWIG_RuntimeError, e.what());
48630     }
48631   }
48632   resultobj = swig::from(static_cast< std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > >(result));
48633   return resultobj;
48634 fail:
48635   return NULL;
48636 }
48637 
48638 
_wrap_aln_conservation_struct(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)48639 SWIGINTERN PyObject *_wrap_aln_conservation_struct(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48640   PyObject *resultobj = 0;
48641   std::vector< std::string,std::allocator< std::string > > arg1 ;
48642   std::string arg2 ;
48643   vrna_md_t *arg3 = (vrna_md_t *) NULL ;
48644   void *argp3 = 0 ;
48645   int res3 = 0 ;
48646   PyObject * obj0 = 0 ;
48647   PyObject * obj1 = 0 ;
48648   PyObject * obj2 = 0 ;
48649   char * kwnames[] = {
48650     (char *)"alignment",  (char *)"structure",  (char *)"md",  NULL
48651   };
48652   std::vector< double,std::allocator< double > > result;
48653 
48654   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:aln_conservation_struct", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
48655   {
48656     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
48657     int res = swig::asptr(obj0, &ptr);
48658     if (!SWIG_IsOK(res) || !ptr) {
48659       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "aln_conservation_struct" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
48660     }
48661     arg1 = *ptr;
48662     if (SWIG_IsNewObj(res)) delete ptr;
48663   }
48664   {
48665     std::string *ptr = (std::string *)0;
48666     int res = SWIG_AsPtr_std_string(obj1, &ptr);
48667     if (!SWIG_IsOK(res) || !ptr) {
48668       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "aln_conservation_struct" "', argument " "2"" of type '" "std::string""'");
48669     }
48670     arg2 = *ptr;
48671     if (SWIG_IsNewObj(res)) delete ptr;
48672   }
48673   if (obj2) {
48674     res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_vrna_md_t, 0 |  0 );
48675     if (!SWIG_IsOK(res3)) {
48676       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "aln_conservation_struct" "', argument " "3"" of type '" "vrna_md_t *""'");
48677     }
48678     arg3 = reinterpret_cast< vrna_md_t * >(argp3);
48679   }
48680   {
48681     try {
48682       result = my_aln_conservation_struct(arg1,arg2,arg3);
48683     } catch (const std::exception& e) {
48684       SWIG_exception(SWIG_RuntimeError, e.what());
48685     }
48686   }
48687   resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
48688   return resultobj;
48689 fail:
48690   return NULL;
48691 }
48692 
48693 
_wrap_aln_conservation_col(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)48694 SWIGINTERN PyObject *_wrap_aln_conservation_col(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48695   PyObject *resultobj = 0;
48696   std::vector< std::string,std::allocator< std::string > > arg1 ;
48697   vrna_md_t *arg2 = (vrna_md_t *) NULL ;
48698   unsigned int arg3 = (unsigned int) VRNA_MEASURE_SHANNON_ENTROPY ;
48699   void *argp2 = 0 ;
48700   int res2 = 0 ;
48701   unsigned int val3 ;
48702   int ecode3 = 0 ;
48703   PyObject * obj0 = 0 ;
48704   PyObject * obj1 = 0 ;
48705   PyObject * obj2 = 0 ;
48706   char * kwnames[] = {
48707     (char *)"alignment",  (char *)"md",  (char *)"options",  NULL
48708   };
48709   std::vector< double,std::allocator< double > > result;
48710 
48711   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|OO:aln_conservation_col", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
48712   {
48713     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
48714     int res = swig::asptr(obj0, &ptr);
48715     if (!SWIG_IsOK(res) || !ptr) {
48716       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "aln_conservation_col" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
48717     }
48718     arg1 = *ptr;
48719     if (SWIG_IsNewObj(res)) delete ptr;
48720   }
48721   if (obj1) {
48722     res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_vrna_md_t, 0 |  0 );
48723     if (!SWIG_IsOK(res2)) {
48724       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "aln_conservation_col" "', argument " "2"" of type '" "vrna_md_t *""'");
48725     }
48726     arg2 = reinterpret_cast< vrna_md_t * >(argp2);
48727   }
48728   if (obj2) {
48729     ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
48730     if (!SWIG_IsOK(ecode3)) {
48731       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "aln_conservation_col" "', argument " "3"" of type '" "unsigned int""'");
48732     }
48733     arg3 = static_cast< unsigned int >(val3);
48734   }
48735   {
48736     try {
48737       result = my_aln_conservation_col(arg1,arg2,arg3);
48738     } catch (const std::exception& e) {
48739       SWIG_exception(SWIG_RuntimeError, e.what());
48740     }
48741   }
48742   resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
48743   return resultobj;
48744 fail:
48745   return NULL;
48746 }
48747 
48748 
_wrap_move_standard(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)48749 SWIGINTERN PyObject *_wrap_move_standard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48750   PyObject *resultobj = 0;
48751   int *arg1 = (int *) 0 ;
48752   char *arg2 = (char *) 0 ;
48753   char *arg3 = (char *) 0 ;
48754   enum MOVE_TYPE arg4 ;
48755   int arg5 ;
48756   int arg6 ;
48757   int arg7 ;
48758   int temp1 ;
48759   int res1 = SWIG_TMPOBJ ;
48760   int res2 ;
48761   char *buf2 = 0 ;
48762   int alloc2 = 0 ;
48763   int res3 ;
48764   char *buf3 = 0 ;
48765   int alloc3 = 0 ;
48766   int val4 ;
48767   int ecode4 = 0 ;
48768   int val5 ;
48769   int ecode5 = 0 ;
48770   int val6 ;
48771   int ecode6 = 0 ;
48772   int val7 ;
48773   int ecode7 = 0 ;
48774   PyObject * obj0 = 0 ;
48775   PyObject * obj1 = 0 ;
48776   PyObject * obj2 = 0 ;
48777   PyObject * obj3 = 0 ;
48778   PyObject * obj4 = 0 ;
48779   PyObject * obj5 = 0 ;
48780   char * kwnames[] = {
48781     (char *)"seq",  (char *)"struc",  (char *)"type",  (char *)"verbosity_level",  (char *)"shifts",  (char *)"noLP",  NULL
48782   };
48783   char *result = 0 ;
48784 
48785   arg1 = &temp1;
48786   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOO:move_standard", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
48787   res2 = SWIG_AsCharPtrAndSize(obj0, &buf2, NULL, &alloc2);
48788   if (!SWIG_IsOK(res2)) {
48789     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "move_standard" "', argument " "2"" of type '" "char *""'");
48790   }
48791   arg2 = reinterpret_cast< char * >(buf2);
48792   res3 = SWIG_AsCharPtrAndSize(obj1, &buf3, NULL, &alloc3);
48793   if (!SWIG_IsOK(res3)) {
48794     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "move_standard" "', argument " "3"" of type '" "char *""'");
48795   }
48796   arg3 = reinterpret_cast< char * >(buf3);
48797   ecode4 = SWIG_AsVal_int(obj2, &val4);
48798   if (!SWIG_IsOK(ecode4)) {
48799     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "move_standard" "', argument " "4"" of type '" "enum MOVE_TYPE""'");
48800   }
48801   arg4 = static_cast< enum MOVE_TYPE >(val4);
48802   ecode5 = SWIG_AsVal_int(obj3, &val5);
48803   if (!SWIG_IsOK(ecode5)) {
48804     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "move_standard" "', argument " "5"" of type '" "int""'");
48805   }
48806   arg5 = static_cast< int >(val5);
48807   ecode6 = SWIG_AsVal_int(obj4, &val6);
48808   if (!SWIG_IsOK(ecode6)) {
48809     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "move_standard" "', argument " "6"" of type '" "int""'");
48810   }
48811   arg6 = static_cast< int >(val6);
48812   ecode7 = SWIG_AsVal_int(obj5, &val7);
48813   if (!SWIG_IsOK(ecode7)) {
48814     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "move_standard" "', argument " "7"" of type '" "int""'");
48815   }
48816   arg7 = static_cast< int >(val7);
48817   {
48818     try {
48819       result = (char *)my_move_standard(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
48820     } catch (const std::exception& e) {
48821       SWIG_exception(SWIG_RuntimeError, e.what());
48822     }
48823   }
48824   resultobj = SWIG_FromCharPtr((const char *)result);
48825   if (SWIG_IsTmpObj(res1)) {
48826     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg1)));
48827   } else {
48828     int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
48829     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, new_flags));
48830   }
48831   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
48832   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
48833   delete[] result;
48834   return resultobj;
48835 fail:
48836   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
48837   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
48838   return NULL;
48839 }
48840 
48841 
_wrap_struct_en_energy_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48842 SWIGINTERN PyObject *_wrap_struct_en_energy_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48843   PyObject *resultobj = 0;
48844   _struct_en *arg1 = (_struct_en *) 0 ;
48845   int arg2 ;
48846   void *argp1 = 0 ;
48847   int res1 = 0 ;
48848   int val2 ;
48849   int ecode2 = 0 ;
48850   PyObject *swig_obj[2] ;
48851 
48852   if (!SWIG_Python_UnpackTuple(args, "struct_en_energy_set", 2, 2, swig_obj)) SWIG_fail;
48853   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p__struct_en, 0 |  0 );
48854   if (!SWIG_IsOK(res1)) {
48855     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "struct_en_energy_set" "', argument " "1"" of type '" "_struct_en *""'");
48856   }
48857   arg1 = reinterpret_cast< _struct_en * >(argp1);
48858   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
48859   if (!SWIG_IsOK(ecode2)) {
48860     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "struct_en_energy_set" "', argument " "2"" of type '" "int""'");
48861   }
48862   arg2 = static_cast< int >(val2);
48863   if (arg1) (arg1)->energy = arg2;
48864   resultobj = SWIG_Py_Void();
48865   return resultobj;
48866 fail:
48867   return NULL;
48868 }
48869 
48870 
_wrap_struct_en_energy_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48871 SWIGINTERN PyObject *_wrap_struct_en_energy_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48872   PyObject *resultobj = 0;
48873   _struct_en *arg1 = (_struct_en *) 0 ;
48874   void *argp1 = 0 ;
48875   int res1 = 0 ;
48876   PyObject *swig_obj[1] ;
48877   int result;
48878 
48879   if (!args) SWIG_fail;
48880   swig_obj[0] = args;
48881   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p__struct_en, 0 |  0 );
48882   if (!SWIG_IsOK(res1)) {
48883     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "struct_en_energy_get" "', argument " "1"" of type '" "_struct_en *""'");
48884   }
48885   arg1 = reinterpret_cast< _struct_en * >(argp1);
48886   result = (int) ((arg1)->energy);
48887   resultobj = SWIG_From_int(static_cast< int >(result));
48888   return resultobj;
48889 fail:
48890   return NULL;
48891 }
48892 
48893 
_wrap_struct_en_structure_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48894 SWIGINTERN PyObject *_wrap_struct_en_structure_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48895   PyObject *resultobj = 0;
48896   _struct_en *arg1 = (_struct_en *) 0 ;
48897   short *arg2 = (short *) 0 ;
48898   void *argp1 = 0 ;
48899   int res1 = 0 ;
48900   void *argp2 = 0 ;
48901   int res2 = 0 ;
48902   PyObject *swig_obj[2] ;
48903 
48904   if (!SWIG_Python_UnpackTuple(args, "struct_en_structure_set", 2, 2, swig_obj)) SWIG_fail;
48905   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p__struct_en, 0 |  0 );
48906   if (!SWIG_IsOK(res1)) {
48907     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "struct_en_structure_set" "', argument " "1"" of type '" "_struct_en *""'");
48908   }
48909   arg1 = reinterpret_cast< _struct_en * >(argp1);
48910   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_short, SWIG_POINTER_DISOWN |  0 );
48911   if (!SWIG_IsOK(res2)) {
48912     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "struct_en_structure_set" "', argument " "2"" of type '" "short *""'");
48913   }
48914   arg2 = reinterpret_cast< short * >(argp2);
48915   if (arg1) (arg1)->structure = arg2;
48916   resultobj = SWIG_Py_Void();
48917   return resultobj;
48918 fail:
48919   return NULL;
48920 }
48921 
48922 
_wrap_struct_en_structure_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48923 SWIGINTERN PyObject *_wrap_struct_en_structure_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48924   PyObject *resultobj = 0;
48925   _struct_en *arg1 = (_struct_en *) 0 ;
48926   void *argp1 = 0 ;
48927   int res1 = 0 ;
48928   PyObject *swig_obj[1] ;
48929   short *result = 0 ;
48930 
48931   if (!args) SWIG_fail;
48932   swig_obj[0] = args;
48933   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p__struct_en, 0 |  0 );
48934   if (!SWIG_IsOK(res1)) {
48935     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "struct_en_structure_get" "', argument " "1"" of type '" "_struct_en *""'");
48936   }
48937   arg1 = reinterpret_cast< _struct_en * >(argp1);
48938   result = (short *) ((arg1)->structure);
48939   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_short, 0 |  0 );
48940   return resultobj;
48941 fail:
48942   return NULL;
48943 }
48944 
48945 
_wrap_new_struct_en(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48946 SWIGINTERN PyObject *_wrap_new_struct_en(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48947   PyObject *resultobj = 0;
48948   _struct_en *result = 0 ;
48949 
48950   if (!SWIG_Python_UnpackTuple(args, "new_struct_en", 0, 0, 0)) SWIG_fail;
48951   {
48952     try {
48953       result = (_struct_en *)new _struct_en();
48954     } catch (const std::exception& e) {
48955       SWIG_exception(SWIG_RuntimeError, e.what());
48956     }
48957   }
48958   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__struct_en, SWIG_POINTER_NEW |  0 );
48959   return resultobj;
48960 fail:
48961   return NULL;
48962 }
48963 
48964 
_wrap_delete_struct_en(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48965 SWIGINTERN PyObject *_wrap_delete_struct_en(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48966   PyObject *resultobj = 0;
48967   _struct_en *arg1 = (_struct_en *) 0 ;
48968   void *argp1 = 0 ;
48969   int res1 = 0 ;
48970   PyObject *swig_obj[1] ;
48971 
48972   if (!args) SWIG_fail;
48973   swig_obj[0] = args;
48974   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p__struct_en, SWIG_POINTER_DISOWN |  0 );
48975   if (!SWIG_IsOK(res1)) {
48976     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_struct_en" "', argument " "1"" of type '" "_struct_en *""'");
48977   }
48978   arg1 = reinterpret_cast< _struct_en * >(argp1);
48979   {
48980     try {
48981       delete arg1;
48982     } catch (const std::exception& e) {
48983       SWIG_exception(SWIG_RuntimeError, e.what());
48984     }
48985   }
48986   resultobj = SWIG_Py_Void();
48987   return resultobj;
48988 fail:
48989   return NULL;
48990 }
48991 
48992 
struct_en_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48993 SWIGINTERN PyObject *struct_en_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48994   PyObject *obj;
48995   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
48996   SWIG_TypeNewClientData(SWIGTYPE_p__struct_en, SWIG_NewClientData(obj));
48997   return SWIG_Py_Void();
48998 }
48999 
struct_en_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)49000 SWIGINTERN PyObject *struct_en_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49001   return SWIG_Python_InitShadowInstance(args);
49002 }
49003 
_wrap_filename_sanitize__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)49004 SWIGINTERN PyObject *_wrap_filename_sanitize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
49005   PyObject *resultobj = 0;
49006   std::string arg1 ;
49007   std::string result;
49008 
49009   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
49010   {
49011     std::string *ptr = (std::string *)0;
49012     int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
49013     if (!SWIG_IsOK(res) || !ptr) {
49014       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "filename_sanitize" "', argument " "1"" of type '" "std::string""'");
49015     }
49016     arg1 = *ptr;
49017     if (SWIG_IsNewObj(res)) delete ptr;
49018   }
49019   {
49020     try {
49021       result = my_filename_sanitize(arg1);
49022     } catch (const std::exception& e) {
49023       SWIG_exception(SWIG_RuntimeError, e.what());
49024     }
49025   }
49026   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
49027   return resultobj;
49028 fail:
49029   return NULL;
49030 }
49031 
49032 
_wrap_filename_sanitize__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)49033 SWIGINTERN PyObject *_wrap_filename_sanitize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
49034   PyObject *resultobj = 0;
49035   std::string arg1 ;
49036   char arg2 ;
49037   char val2 ;
49038   int ecode2 = 0 ;
49039   std::string result;
49040 
49041   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
49042   {
49043     std::string *ptr = (std::string *)0;
49044     int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
49045     if (!SWIG_IsOK(res) || !ptr) {
49046       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "filename_sanitize" "', argument " "1"" of type '" "std::string""'");
49047     }
49048     arg1 = *ptr;
49049     if (SWIG_IsNewObj(res)) delete ptr;
49050   }
49051   ecode2 = SWIG_AsVal_char(swig_obj[1], &val2);
49052   if (!SWIG_IsOK(ecode2)) {
49053     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "filename_sanitize" "', argument " "2"" of type '" "char""'");
49054   }
49055   arg2 = static_cast< char >(val2);
49056   {
49057     try {
49058       result = my_filename_sanitize(arg1,arg2);
49059     } catch (const std::exception& e) {
49060       SWIG_exception(SWIG_RuntimeError, e.what());
49061     }
49062   }
49063   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
49064   return resultobj;
49065 fail:
49066   return NULL;
49067 }
49068 
49069 
_wrap_filename_sanitize(PyObject * self,PyObject * args)49070 SWIGINTERN PyObject *_wrap_filename_sanitize(PyObject *self, PyObject *args) {
49071   Py_ssize_t argc;
49072   PyObject *argv[3] = {
49073     0
49074   };
49075 
49076   if (!(argc = SWIG_Python_UnpackTuple(args, "filename_sanitize", 0, 2, argv))) SWIG_fail;
49077   --argc;
49078   if (argc == 1) {
49079     int _v;
49080     int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
49081     _v = SWIG_CheckState(res);
49082     if (_v) {
49083       return _wrap_filename_sanitize__SWIG_0(self, argc, argv);
49084     }
49085   }
49086   if (argc == 2) {
49087     int _v;
49088     int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
49089     _v = SWIG_CheckState(res);
49090     if (_v) {
49091       {
49092         int res = SWIG_AsVal_char(argv[1], NULL);
49093         _v = SWIG_CheckState(res);
49094       }
49095       if (_v) {
49096         return _wrap_filename_sanitize__SWIG_1(self, argc, argv);
49097       }
49098     }
49099   }
49100 
49101 fail:
49102   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'filename_sanitize'.\n"
49103     "  Possible C/C++ prototypes are:\n"
49104     "    my_filename_sanitize(std::string)\n"
49105     "    my_filename_sanitize(std::string,char)\n");
49106   return 0;
49107 }
49108 
49109 
_wrap_get_xy_coordinates(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)49110 SWIGINTERN PyObject *_wrap_get_xy_coordinates(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49111   PyObject *resultobj = 0;
49112   char *arg1 = (char *) 0 ;
49113   int res1 ;
49114   char *buf1 = 0 ;
49115   int alloc1 = 0 ;
49116   PyObject * obj0 = 0 ;
49117   char * kwnames[] = {
49118     (char *)"structure",  NULL
49119   };
49120   COORDINATE *result = 0 ;
49121 
49122   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:get_xy_coordinates", kwnames, &obj0)) SWIG_fail;
49123   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
49124   if (!SWIG_IsOK(res1)) {
49125     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_xy_coordinates" "', argument " "1"" of type '" "char const *""'");
49126   }
49127   arg1 = reinterpret_cast< char * >(buf1);
49128   {
49129     try {
49130       result = (COORDINATE *)get_xy_coordinates((char const *)arg1);
49131     } catch (const std::exception& e) {
49132       SWIG_exception(SWIG_RuntimeError, e.what());
49133     }
49134   }
49135   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_COORDINATE, 0 |  0 );
49136   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
49137   return resultobj;
49138 fail:
49139   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
49140   return NULL;
49141 }
49142 
49143 
_wrap_simple_xy_coordinates__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)49144 SWIGINTERN PyObject *_wrap_simple_xy_coordinates__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
49145   PyObject *resultobj = 0;
49146   std::string arg1 ;
49147   std::vector< COORDINATE,std::allocator< COORDINATE > > result;
49148 
49149   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
49150   {
49151     std::string *ptr = (std::string *)0;
49152     int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
49153     if (!SWIG_IsOK(res) || !ptr) {
49154       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "simple_xy_coordinates" "', argument " "1"" of type '" "std::string""'");
49155     }
49156     arg1 = *ptr;
49157     if (SWIG_IsNewObj(res)) delete ptr;
49158   }
49159   {
49160     try {
49161       result = my_simple_xy_coordinates(arg1);
49162     } catch (const std::exception& e) {
49163       SWIG_exception(SWIG_RuntimeError, e.what());
49164     }
49165   }
49166   resultobj = swig::from(static_cast< std::vector< COORDINATE,std::allocator< COORDINATE > > >(result));
49167   return resultobj;
49168 fail:
49169   return NULL;
49170 }
49171 
49172 
_wrap_simple_circplot_coordinates(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)49173 SWIGINTERN PyObject *_wrap_simple_circplot_coordinates(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49174   PyObject *resultobj = 0;
49175   std::string arg1 ;
49176   PyObject * obj0 = 0 ;
49177   char * kwnames[] = {
49178     (char *)"arg1",  NULL
49179   };
49180   std::vector< COORDINATE,std::allocator< COORDINATE > > result;
49181 
49182   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:simple_circplot_coordinates", kwnames, &obj0)) SWIG_fail;
49183   {
49184     std::string *ptr = (std::string *)0;
49185     int res = SWIG_AsPtr_std_string(obj0, &ptr);
49186     if (!SWIG_IsOK(res) || !ptr) {
49187       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "simple_circplot_coordinates" "', argument " "1"" of type '" "std::string""'");
49188     }
49189     arg1 = *ptr;
49190     if (SWIG_IsNewObj(res)) delete ptr;
49191   }
49192   {
49193     try {
49194       result = my_simple_circplot_coordinates(arg1);
49195     } catch (const std::exception& e) {
49196       SWIG_exception(SWIG_RuntimeError, e.what());
49197     }
49198   }
49199   resultobj = swig::from(static_cast< std::vector< COORDINATE,std::allocator< COORDINATE > > >(result));
49200   return resultobj;
49201 fail:
49202   return NULL;
49203 }
49204 
49205 
_wrap_naview_xy_coordinates(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)49206 SWIGINTERN PyObject *_wrap_naview_xy_coordinates(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49207   PyObject *resultobj = 0;
49208   std::string arg1 ;
49209   PyObject * obj0 = 0 ;
49210   char * kwnames[] = {
49211     (char *)"arg1",  NULL
49212   };
49213   std::vector< COORDINATE,std::allocator< COORDINATE > > result;
49214 
49215   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:naview_xy_coordinates", kwnames, &obj0)) SWIG_fail;
49216   {
49217     std::string *ptr = (std::string *)0;
49218     int res = SWIG_AsPtr_std_string(obj0, &ptr);
49219     if (!SWIG_IsOK(res) || !ptr) {
49220       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "naview_xy_coordinates" "', argument " "1"" of type '" "std::string""'");
49221     }
49222     arg1 = *ptr;
49223     if (SWIG_IsNewObj(res)) delete ptr;
49224   }
49225   {
49226     try {
49227       result = my_naview_xy_coordinates(arg1);
49228     } catch (const std::exception& e) {
49229       SWIG_exception(SWIG_RuntimeError, e.what());
49230     }
49231   }
49232   resultobj = swig::from(static_cast< std::vector< COORDINATE,std::allocator< COORDINATE > > >(result));
49233   return resultobj;
49234 fail:
49235   return NULL;
49236 }
49237 
49238 
_wrap_COORDINATE_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)49239 SWIGINTERN PyObject *_wrap_COORDINATE_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49240   PyObject *resultobj = 0;
49241   COORDINATE *arg1 = (COORDINATE *) 0 ;
49242   int arg2 ;
49243   void *argp1 = 0 ;
49244   int res1 = 0 ;
49245   int val2 ;
49246   int ecode2 = 0 ;
49247   PyObject * obj0 = 0 ;
49248   PyObject * obj1 = 0 ;
49249   char * kwnames[] = {
49250     (char *)"self",  (char *)"i",  NULL
49251   };
49252   COORDINATE *result = 0 ;
49253 
49254   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:COORDINATE_get", kwnames, &obj0, &obj1)) SWIG_fail;
49255   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_COORDINATE, 0 |  0 );
49256   if (!SWIG_IsOK(res1)) {
49257     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "COORDINATE_get" "', argument " "1"" of type '" "COORDINATE *""'");
49258   }
49259   arg1 = reinterpret_cast< COORDINATE * >(argp1);
49260   ecode2 = SWIG_AsVal_int(obj1, &val2);
49261   if (!SWIG_IsOK(ecode2)) {
49262     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "COORDINATE_get" "', argument " "2"" of type '" "int""'");
49263   }
49264   arg2 = static_cast< int >(val2);
49265   {
49266     try {
49267       result = (COORDINATE *)COORDINATE_get(arg1,arg2);
49268     } catch (const std::exception& e) {
49269       SWIG_exception(SWIG_RuntimeError, e.what());
49270     }
49271   }
49272   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_COORDINATE, 0 |  0 );
49273   return resultobj;
49274 fail:
49275   return NULL;
49276 }
49277 
49278 
_wrap_COORDINATE_X_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)49279 SWIGINTERN PyObject *_wrap_COORDINATE_X_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49280   PyObject *resultobj = 0;
49281   COORDINATE *arg1 = (COORDINATE *) 0 ;
49282   float arg2 ;
49283   void *argp1 = 0 ;
49284   int res1 = 0 ;
49285   float val2 ;
49286   int ecode2 = 0 ;
49287   PyObject *swig_obj[2] ;
49288 
49289   if (!SWIG_Python_UnpackTuple(args, "COORDINATE_X_set", 2, 2, swig_obj)) SWIG_fail;
49290   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_COORDINATE, 0 |  0 );
49291   if (!SWIG_IsOK(res1)) {
49292     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "COORDINATE_X_set" "', argument " "1"" of type '" "COORDINATE *""'");
49293   }
49294   arg1 = reinterpret_cast< COORDINATE * >(argp1);
49295   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
49296   if (!SWIG_IsOK(ecode2)) {
49297     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "COORDINATE_X_set" "', argument " "2"" of type '" "float""'");
49298   }
49299   arg2 = static_cast< float >(val2);
49300   if (arg1) (arg1)->X = arg2;
49301   resultobj = SWIG_Py_Void();
49302   return resultobj;
49303 fail:
49304   return NULL;
49305 }
49306 
49307 
_wrap_COORDINATE_X_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)49308 SWIGINTERN PyObject *_wrap_COORDINATE_X_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49309   PyObject *resultobj = 0;
49310   COORDINATE *arg1 = (COORDINATE *) 0 ;
49311   void *argp1 = 0 ;
49312   int res1 = 0 ;
49313   PyObject *swig_obj[1] ;
49314   float result;
49315 
49316   if (!args) SWIG_fail;
49317   swig_obj[0] = args;
49318   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_COORDINATE, 0 |  0 );
49319   if (!SWIG_IsOK(res1)) {
49320     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "COORDINATE_X_get" "', argument " "1"" of type '" "COORDINATE *""'");
49321   }
49322   arg1 = reinterpret_cast< COORDINATE * >(argp1);
49323   result = (float) ((arg1)->X);
49324   resultobj = SWIG_From_float(static_cast< float >(result));
49325   return resultobj;
49326 fail:
49327   return NULL;
49328 }
49329 
49330 
_wrap_COORDINATE_Y_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)49331 SWIGINTERN PyObject *_wrap_COORDINATE_Y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49332   PyObject *resultobj = 0;
49333   COORDINATE *arg1 = (COORDINATE *) 0 ;
49334   float arg2 ;
49335   void *argp1 = 0 ;
49336   int res1 = 0 ;
49337   float val2 ;
49338   int ecode2 = 0 ;
49339   PyObject *swig_obj[2] ;
49340 
49341   if (!SWIG_Python_UnpackTuple(args, "COORDINATE_Y_set", 2, 2, swig_obj)) SWIG_fail;
49342   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_COORDINATE, 0 |  0 );
49343   if (!SWIG_IsOK(res1)) {
49344     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "COORDINATE_Y_set" "', argument " "1"" of type '" "COORDINATE *""'");
49345   }
49346   arg1 = reinterpret_cast< COORDINATE * >(argp1);
49347   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
49348   if (!SWIG_IsOK(ecode2)) {
49349     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "COORDINATE_Y_set" "', argument " "2"" of type '" "float""'");
49350   }
49351   arg2 = static_cast< float >(val2);
49352   if (arg1) (arg1)->Y = arg2;
49353   resultobj = SWIG_Py_Void();
49354   return resultobj;
49355 fail:
49356   return NULL;
49357 }
49358 
49359 
_wrap_COORDINATE_Y_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)49360 SWIGINTERN PyObject *_wrap_COORDINATE_Y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49361   PyObject *resultobj = 0;
49362   COORDINATE *arg1 = (COORDINATE *) 0 ;
49363   void *argp1 = 0 ;
49364   int res1 = 0 ;
49365   PyObject *swig_obj[1] ;
49366   float result;
49367 
49368   if (!args) SWIG_fail;
49369   swig_obj[0] = args;
49370   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_COORDINATE, 0 |  0 );
49371   if (!SWIG_IsOK(res1)) {
49372     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "COORDINATE_Y_get" "', argument " "1"" of type '" "COORDINATE *""'");
49373   }
49374   arg1 = reinterpret_cast< COORDINATE * >(argp1);
49375   result = (float) ((arg1)->Y);
49376   resultobj = SWIG_From_float(static_cast< float >(result));
49377   return resultobj;
49378 fail:
49379   return NULL;
49380 }
49381 
49382 
_wrap_new_COORDINATE(PyObject * SWIGUNUSEDPARM (self),PyObject * args)49383 SWIGINTERN PyObject *_wrap_new_COORDINATE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49384   PyObject *resultobj = 0;
49385   COORDINATE *result = 0 ;
49386 
49387   if (!SWIG_Python_UnpackTuple(args, "new_COORDINATE", 0, 0, 0)) SWIG_fail;
49388   {
49389     try {
49390       result = (COORDINATE *)new COORDINATE();
49391     } catch (const std::exception& e) {
49392       SWIG_exception(SWIG_RuntimeError, e.what());
49393     }
49394   }
49395   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_COORDINATE, SWIG_POINTER_NEW |  0 );
49396   return resultobj;
49397 fail:
49398   return NULL;
49399 }
49400 
49401 
_wrap_delete_COORDINATE(PyObject * SWIGUNUSEDPARM (self),PyObject * args)49402 SWIGINTERN PyObject *_wrap_delete_COORDINATE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49403   PyObject *resultobj = 0;
49404   COORDINATE *arg1 = (COORDINATE *) 0 ;
49405   void *argp1 = 0 ;
49406   int res1 = 0 ;
49407   PyObject *swig_obj[1] ;
49408 
49409   if (!args) SWIG_fail;
49410   swig_obj[0] = args;
49411   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_COORDINATE, SWIG_POINTER_DISOWN |  0 );
49412   if (!SWIG_IsOK(res1)) {
49413     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_COORDINATE" "', argument " "1"" of type '" "COORDINATE *""'");
49414   }
49415   arg1 = reinterpret_cast< COORDINATE * >(argp1);
49416   {
49417     try {
49418       delete arg1;
49419     } catch (const std::exception& e) {
49420       SWIG_exception(SWIG_RuntimeError, e.what());
49421     }
49422   }
49423   resultobj = SWIG_Py_Void();
49424   return resultobj;
49425 fail:
49426   return NULL;
49427 }
49428 
49429 
COORDINATE_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)49430 SWIGINTERN PyObject *COORDINATE_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49431   PyObject *obj;
49432   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
49433   SWIG_TypeNewClientData(SWIGTYPE_p_COORDINATE, SWIG_NewClientData(obj));
49434   return SWIG_Py_Void();
49435 }
49436 
COORDINATE_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)49437 SWIGINTERN PyObject *COORDINATE_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49438   return SWIG_Python_InitShadowInstance(args);
49439 }
49440 
Swig_var_rna_plot_type_set(PyObject * _val)49441 SWIGINTERN int Swig_var_rna_plot_type_set(PyObject *_val) {
49442   {
49443     int val;
49444     int res = SWIG_AsVal_int(_val, &val);
49445     if (!SWIG_IsOK(res)) {
49446       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""rna_plot_type""' of type '""int""'");
49447     }
49448     rna_plot_type = static_cast< int >(val);
49449   }
49450   return 0;
49451 fail:
49452   return 1;
49453 }
49454 
49455 
Swig_var_rna_plot_type_get(void)49456 SWIGINTERN PyObject *Swig_var_rna_plot_type_get(void) {
49457   PyObject *pyobj = 0;
49458 
49459   pyobj = SWIG_From_int(static_cast< int >(rna_plot_type));
49460   return pyobj;
49461 }
49462 
49463 
_wrap_simple_xy_coordinates__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)49464 SWIGINTERN PyObject *_wrap_simple_xy_coordinates__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
49465   PyObject *resultobj = 0;
49466   short *arg1 = (short *) 0 ;
49467   float *arg2 = (float *) 0 ;
49468   float *arg3 = (float *) 0 ;
49469   void *argp1 = 0 ;
49470   int res1 = 0 ;
49471   void *argp2 = 0 ;
49472   int res2 = 0 ;
49473   void *argp3 = 0 ;
49474   int res3 = 0 ;
49475   int result;
49476 
49477   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
49478   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_short, 0 |  0 );
49479   if (!SWIG_IsOK(res1)) {
49480     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "simple_xy_coordinates" "', argument " "1"" of type '" "short *""'");
49481   }
49482   arg1 = reinterpret_cast< short * >(argp1);
49483   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_float, 0 |  0 );
49484   if (!SWIG_IsOK(res2)) {
49485     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "simple_xy_coordinates" "', argument " "2"" of type '" "float *""'");
49486   }
49487   arg2 = reinterpret_cast< float * >(argp2);
49488   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_float, 0 |  0 );
49489   if (!SWIG_IsOK(res3)) {
49490     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "simple_xy_coordinates" "', argument " "3"" of type '" "float *""'");
49491   }
49492   arg3 = reinterpret_cast< float * >(argp3);
49493   {
49494     try {
49495       result = (int)simple_xy_coordinates(arg1,arg2,arg3);
49496     } catch (const std::exception& e) {
49497       SWIG_exception(SWIG_RuntimeError, e.what());
49498     }
49499   }
49500   resultobj = SWIG_From_int(static_cast< int >(result));
49501   return resultobj;
49502 fail:
49503   return NULL;
49504 }
49505 
49506 
_wrap_simple_xy_coordinates(PyObject * self,PyObject * args)49507 SWIGINTERN PyObject *_wrap_simple_xy_coordinates(PyObject *self, PyObject *args) {
49508   Py_ssize_t argc;
49509   PyObject *argv[4] = {
49510     0
49511   };
49512 
49513   if (!(argc = SWIG_Python_UnpackTuple(args, "simple_xy_coordinates", 0, 3, argv))) SWIG_fail;
49514   --argc;
49515   if (argc == 1) {
49516     int _v;
49517     int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
49518     _v = SWIG_CheckState(res);
49519     if (_v) {
49520       return _wrap_simple_xy_coordinates__SWIG_0(self, argc, argv);
49521     }
49522   }
49523   if (argc == 3) {
49524     int _v;
49525     void *vptr = 0;
49526     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_short, 0);
49527     _v = SWIG_CheckState(res);
49528     if (_v) {
49529       void *vptr = 0;
49530       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_float, 0);
49531       _v = SWIG_CheckState(res);
49532       if (_v) {
49533         void *vptr = 0;
49534         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_float, 0);
49535         _v = SWIG_CheckState(res);
49536         if (_v) {
49537           return _wrap_simple_xy_coordinates__SWIG_1(self, argc, argv);
49538         }
49539       }
49540     }
49541   }
49542 
49543 fail:
49544   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'simple_xy_coordinates'.\n"
49545     "  Possible C/C++ prototypes are:\n"
49546     "    my_simple_xy_coordinates(std::string)\n"
49547     "    simple_xy_coordinates(short *,float *,float *)\n");
49548   return 0;
49549 }
49550 
49551 
_wrap_my_PS_rna_plot_snoop_a(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)49552 SWIGINTERN PyObject *_wrap_my_PS_rna_plot_snoop_a(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49553   PyObject *resultobj = 0;
49554   std::string arg1 ;
49555   std::string arg2 ;
49556   std::string arg3 ;
49557   std::vector< int,std::allocator< int > > arg4 ;
49558   std::vector< std::string,std::allocator< std::string > > arg5 ;
49559   PyObject * obj0 = 0 ;
49560   PyObject * obj1 = 0 ;
49561   PyObject * obj2 = 0 ;
49562   PyObject * obj3 = 0 ;
49563   PyObject * obj4 = 0 ;
49564   char * kwnames[] = {
49565     (char *)"sequence",  (char *)"structure",  (char *)"filename",  (char *)"relative_access",  (char *)"seqs",  NULL
49566   };
49567   int result;
49568 
49569   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:my_PS_rna_plot_snoop_a", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
49570   {
49571     std::string *ptr = (std::string *)0;
49572     int res = SWIG_AsPtr_std_string(obj0, &ptr);
49573     if (!SWIG_IsOK(res) || !ptr) {
49574       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "my_PS_rna_plot_snoop_a" "', argument " "1"" of type '" "std::string""'");
49575     }
49576     arg1 = *ptr;
49577     if (SWIG_IsNewObj(res)) delete ptr;
49578   }
49579   {
49580     std::string *ptr = (std::string *)0;
49581     int res = SWIG_AsPtr_std_string(obj1, &ptr);
49582     if (!SWIG_IsOK(res) || !ptr) {
49583       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "my_PS_rna_plot_snoop_a" "', argument " "2"" of type '" "std::string""'");
49584     }
49585     arg2 = *ptr;
49586     if (SWIG_IsNewObj(res)) delete ptr;
49587   }
49588   {
49589     std::string *ptr = (std::string *)0;
49590     int res = SWIG_AsPtr_std_string(obj2, &ptr);
49591     if (!SWIG_IsOK(res) || !ptr) {
49592       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "my_PS_rna_plot_snoop_a" "', argument " "3"" of type '" "std::string""'");
49593     }
49594     arg3 = *ptr;
49595     if (SWIG_IsNewObj(res)) delete ptr;
49596   }
49597   {
49598     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
49599     int res = swig::asptr(obj3, &ptr);
49600     if (!SWIG_IsOK(res) || !ptr) {
49601       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "my_PS_rna_plot_snoop_a" "', argument " "4"" of type '" "std::vector< int,std::allocator< int > >""'");
49602     }
49603     arg4 = *ptr;
49604     if (SWIG_IsNewObj(res)) delete ptr;
49605   }
49606   {
49607     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
49608     int res = swig::asptr(obj4, &ptr);
49609     if (!SWIG_IsOK(res) || !ptr) {
49610       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "my_PS_rna_plot_snoop_a" "', argument " "5"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
49611     }
49612     arg5 = *ptr;
49613     if (SWIG_IsNewObj(res)) delete ptr;
49614   }
49615   {
49616     try {
49617       result = (int)my_PS_rna_plot_snoop_a(arg1,arg2,arg3,arg4,arg5);
49618     } catch (const std::exception& e) {
49619       SWIG_exception(SWIG_RuntimeError, e.what());
49620     }
49621   }
49622   resultobj = SWIG_From_int(static_cast< int >(result));
49623   return resultobj;
49624 fail:
49625   return NULL;
49626 }
49627 
49628 
_wrap_file_PS_rnaplot__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)49629 SWIGINTERN PyObject *_wrap_file_PS_rnaplot__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
49630   PyObject *resultobj = 0;
49631   std::string arg1 ;
49632   std::string arg2 ;
49633   std::string arg3 ;
49634   vrna_md_t *arg4 = (vrna_md_t *) 0 ;
49635   void *argp4 = 0 ;
49636   int res4 = 0 ;
49637   int result;
49638 
49639   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
49640   {
49641     std::string *ptr = (std::string *)0;
49642     int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
49643     if (!SWIG_IsOK(res) || !ptr) {
49644       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_rnaplot" "', argument " "1"" of type '" "std::string""'");
49645     }
49646     arg1 = *ptr;
49647     if (SWIG_IsNewObj(res)) delete ptr;
49648   }
49649   {
49650     std::string *ptr = (std::string *)0;
49651     int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
49652     if (!SWIG_IsOK(res) || !ptr) {
49653       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_rnaplot" "', argument " "2"" of type '" "std::string""'");
49654     }
49655     arg2 = *ptr;
49656     if (SWIG_IsNewObj(res)) delete ptr;
49657   }
49658   {
49659     std::string *ptr = (std::string *)0;
49660     int res = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
49661     if (!SWIG_IsOK(res) || !ptr) {
49662       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_rnaplot" "', argument " "3"" of type '" "std::string""'");
49663     }
49664     arg3 = *ptr;
49665     if (SWIG_IsNewObj(res)) delete ptr;
49666   }
49667   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_vrna_md_t, 0 |  0 );
49668   if (!SWIG_IsOK(res4)) {
49669     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "file_PS_rnaplot" "', argument " "4"" of type '" "vrna_md_t *""'");
49670   }
49671   arg4 = reinterpret_cast< vrna_md_t * >(argp4);
49672   {
49673     try {
49674       result = (int)file_PS_rnaplot(arg1,arg2,arg3,arg4);
49675     } catch (const std::exception& e) {
49676       SWIG_exception(SWIG_RuntimeError, e.what());
49677     }
49678   }
49679   resultobj = SWIG_From_int(static_cast< int >(result));
49680   return resultobj;
49681 fail:
49682   return NULL;
49683 }
49684 
49685 
_wrap_file_PS_rnaplot__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)49686 SWIGINTERN PyObject *_wrap_file_PS_rnaplot__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
49687   PyObject *resultobj = 0;
49688   std::string arg1 ;
49689   std::string arg2 ;
49690   std::string arg3 ;
49691   int result;
49692 
49693   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
49694   {
49695     std::string *ptr = (std::string *)0;
49696     int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
49697     if (!SWIG_IsOK(res) || !ptr) {
49698       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_rnaplot" "', argument " "1"" of type '" "std::string""'");
49699     }
49700     arg1 = *ptr;
49701     if (SWIG_IsNewObj(res)) delete ptr;
49702   }
49703   {
49704     std::string *ptr = (std::string *)0;
49705     int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
49706     if (!SWIG_IsOK(res) || !ptr) {
49707       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_rnaplot" "', argument " "2"" of type '" "std::string""'");
49708     }
49709     arg2 = *ptr;
49710     if (SWIG_IsNewObj(res)) delete ptr;
49711   }
49712   {
49713     std::string *ptr = (std::string *)0;
49714     int res = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
49715     if (!SWIG_IsOK(res) || !ptr) {
49716       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_rnaplot" "', argument " "3"" of type '" "std::string""'");
49717     }
49718     arg3 = *ptr;
49719     if (SWIG_IsNewObj(res)) delete ptr;
49720   }
49721   {
49722     try {
49723       result = (int)file_PS_rnaplot(arg1,arg2,arg3);
49724     } catch (const std::exception& e) {
49725       SWIG_exception(SWIG_RuntimeError, e.what());
49726     }
49727   }
49728   resultobj = SWIG_From_int(static_cast< int >(result));
49729   return resultobj;
49730 fail:
49731   return NULL;
49732 }
49733 
49734 
_wrap_file_PS_rnaplot(PyObject * self,PyObject * args)49735 SWIGINTERN PyObject *_wrap_file_PS_rnaplot(PyObject *self, PyObject *args) {
49736   Py_ssize_t argc;
49737   PyObject *argv[5] = {
49738     0
49739   };
49740 
49741   if (!(argc = SWIG_Python_UnpackTuple(args, "file_PS_rnaplot", 0, 4, argv))) SWIG_fail;
49742   --argc;
49743   if (argc == 3) {
49744     int _v;
49745     int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
49746     _v = SWIG_CheckState(res);
49747     if (_v) {
49748       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
49749       _v = SWIG_CheckState(res);
49750       if (_v) {
49751         int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
49752         _v = SWIG_CheckState(res);
49753         if (_v) {
49754           return _wrap_file_PS_rnaplot__SWIG_1(self, argc, argv);
49755         }
49756       }
49757     }
49758   }
49759   if (argc == 4) {
49760     int _v;
49761     int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
49762     _v = SWIG_CheckState(res);
49763     if (_v) {
49764       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
49765       _v = SWIG_CheckState(res);
49766       if (_v) {
49767         int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
49768         _v = SWIG_CheckState(res);
49769         if (_v) {
49770           void *vptr = 0;
49771           int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_vrna_md_t, 0);
49772           _v = SWIG_CheckState(res);
49773           if (_v) {
49774             return _wrap_file_PS_rnaplot__SWIG_0(self, argc, argv);
49775           }
49776         }
49777       }
49778     }
49779   }
49780 
49781 fail:
49782   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'file_PS_rnaplot'.\n"
49783     "  Possible C/C++ prototypes are:\n"
49784     "    file_PS_rnaplot(std::string,std::string,std::string,vrna_md_t *)\n"
49785     "    file_PS_rnaplot(std::string,std::string,std::string)\n");
49786   return 0;
49787 }
49788 
49789 
_wrap_file_PS_rnaplot_a__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)49790 SWIGINTERN PyObject *_wrap_file_PS_rnaplot_a__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
49791   PyObject *resultobj = 0;
49792   std::string arg1 ;
49793   std::string arg2 ;
49794   std::string arg3 ;
49795   std::string arg4 ;
49796   std::string arg5 ;
49797   vrna_md_t *arg6 = (vrna_md_t *) 0 ;
49798   void *argp6 = 0 ;
49799   int res6 = 0 ;
49800   int result;
49801 
49802   if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
49803   {
49804     std::string *ptr = (std::string *)0;
49805     int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
49806     if (!SWIG_IsOK(res) || !ptr) {
49807       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_rnaplot_a" "', argument " "1"" of type '" "std::string""'");
49808     }
49809     arg1 = *ptr;
49810     if (SWIG_IsNewObj(res)) delete ptr;
49811   }
49812   {
49813     std::string *ptr = (std::string *)0;
49814     int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
49815     if (!SWIG_IsOK(res) || !ptr) {
49816       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_rnaplot_a" "', argument " "2"" of type '" "std::string""'");
49817     }
49818     arg2 = *ptr;
49819     if (SWIG_IsNewObj(res)) delete ptr;
49820   }
49821   {
49822     std::string *ptr = (std::string *)0;
49823     int res = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
49824     if (!SWIG_IsOK(res) || !ptr) {
49825       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_rnaplot_a" "', argument " "3"" of type '" "std::string""'");
49826     }
49827     arg3 = *ptr;
49828     if (SWIG_IsNewObj(res)) delete ptr;
49829   }
49830   {
49831     std::string *ptr = (std::string *)0;
49832     int res = SWIG_AsPtr_std_string(swig_obj[3], &ptr);
49833     if (!SWIG_IsOK(res) || !ptr) {
49834       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_rnaplot_a" "', argument " "4"" of type '" "std::string""'");
49835     }
49836     arg4 = *ptr;
49837     if (SWIG_IsNewObj(res)) delete ptr;
49838   }
49839   {
49840     std::string *ptr = (std::string *)0;
49841     int res = SWIG_AsPtr_std_string(swig_obj[4], &ptr);
49842     if (!SWIG_IsOK(res) || !ptr) {
49843       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_rnaplot_a" "', argument " "5"" of type '" "std::string""'");
49844     }
49845     arg5 = *ptr;
49846     if (SWIG_IsNewObj(res)) delete ptr;
49847   }
49848   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_vrna_md_t, 0 |  0 );
49849   if (!SWIG_IsOK(res6)) {
49850     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "file_PS_rnaplot_a" "', argument " "6"" of type '" "vrna_md_t *""'");
49851   }
49852   arg6 = reinterpret_cast< vrna_md_t * >(argp6);
49853   {
49854     try {
49855       result = (int)file_PS_rnaplot_a(arg1,arg2,arg3,arg4,arg5,arg6);
49856     } catch (const std::exception& e) {
49857       SWIG_exception(SWIG_RuntimeError, e.what());
49858     }
49859   }
49860   resultobj = SWIG_From_int(static_cast< int >(result));
49861   return resultobj;
49862 fail:
49863   return NULL;
49864 }
49865 
49866 
_wrap_file_PS_rnaplot_a__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)49867 SWIGINTERN PyObject *_wrap_file_PS_rnaplot_a__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
49868   PyObject *resultobj = 0;
49869   std::string arg1 ;
49870   std::string arg2 ;
49871   std::string arg3 ;
49872   std::string arg4 ;
49873   std::string arg5 ;
49874   int result;
49875 
49876   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
49877   {
49878     std::string *ptr = (std::string *)0;
49879     int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
49880     if (!SWIG_IsOK(res) || !ptr) {
49881       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_rnaplot_a" "', argument " "1"" of type '" "std::string""'");
49882     }
49883     arg1 = *ptr;
49884     if (SWIG_IsNewObj(res)) delete ptr;
49885   }
49886   {
49887     std::string *ptr = (std::string *)0;
49888     int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
49889     if (!SWIG_IsOK(res) || !ptr) {
49890       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_rnaplot_a" "', argument " "2"" of type '" "std::string""'");
49891     }
49892     arg2 = *ptr;
49893     if (SWIG_IsNewObj(res)) delete ptr;
49894   }
49895   {
49896     std::string *ptr = (std::string *)0;
49897     int res = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
49898     if (!SWIG_IsOK(res) || !ptr) {
49899       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_rnaplot_a" "', argument " "3"" of type '" "std::string""'");
49900     }
49901     arg3 = *ptr;
49902     if (SWIG_IsNewObj(res)) delete ptr;
49903   }
49904   {
49905     std::string *ptr = (std::string *)0;
49906     int res = SWIG_AsPtr_std_string(swig_obj[3], &ptr);
49907     if (!SWIG_IsOK(res) || !ptr) {
49908       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_rnaplot_a" "', argument " "4"" of type '" "std::string""'");
49909     }
49910     arg4 = *ptr;
49911     if (SWIG_IsNewObj(res)) delete ptr;
49912   }
49913   {
49914     std::string *ptr = (std::string *)0;
49915     int res = SWIG_AsPtr_std_string(swig_obj[4], &ptr);
49916     if (!SWIG_IsOK(res) || !ptr) {
49917       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_rnaplot_a" "', argument " "5"" of type '" "std::string""'");
49918     }
49919     arg5 = *ptr;
49920     if (SWIG_IsNewObj(res)) delete ptr;
49921   }
49922   {
49923     try {
49924       result = (int)file_PS_rnaplot_a(arg1,arg2,arg3,arg4,arg5);
49925     } catch (const std::exception& e) {
49926       SWIG_exception(SWIG_RuntimeError, e.what());
49927     }
49928   }
49929   resultobj = SWIG_From_int(static_cast< int >(result));
49930   return resultobj;
49931 fail:
49932   return NULL;
49933 }
49934 
49935 
_wrap_file_PS_rnaplot_a(PyObject * self,PyObject * args)49936 SWIGINTERN PyObject *_wrap_file_PS_rnaplot_a(PyObject *self, PyObject *args) {
49937   Py_ssize_t argc;
49938   PyObject *argv[7] = {
49939     0
49940   };
49941 
49942   if (!(argc = SWIG_Python_UnpackTuple(args, "file_PS_rnaplot_a", 0, 6, argv))) SWIG_fail;
49943   --argc;
49944   if (argc == 5) {
49945     int _v;
49946     int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
49947     _v = SWIG_CheckState(res);
49948     if (_v) {
49949       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
49950       _v = SWIG_CheckState(res);
49951       if (_v) {
49952         int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
49953         _v = SWIG_CheckState(res);
49954         if (_v) {
49955           int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
49956           _v = SWIG_CheckState(res);
49957           if (_v) {
49958             int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
49959             _v = SWIG_CheckState(res);
49960             if (_v) {
49961               return _wrap_file_PS_rnaplot_a__SWIG_1(self, argc, argv);
49962             }
49963           }
49964         }
49965       }
49966     }
49967   }
49968   if (argc == 6) {
49969     int _v;
49970     int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
49971     _v = SWIG_CheckState(res);
49972     if (_v) {
49973       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
49974       _v = SWIG_CheckState(res);
49975       if (_v) {
49976         int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
49977         _v = SWIG_CheckState(res);
49978         if (_v) {
49979           int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
49980           _v = SWIG_CheckState(res);
49981           if (_v) {
49982             int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
49983             _v = SWIG_CheckState(res);
49984             if (_v) {
49985               void *vptr = 0;
49986               int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_vrna_md_t, 0);
49987               _v = SWIG_CheckState(res);
49988               if (_v) {
49989                 return _wrap_file_PS_rnaplot_a__SWIG_0(self, argc, argv);
49990               }
49991             }
49992           }
49993         }
49994       }
49995     }
49996   }
49997 
49998 fail:
49999   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'file_PS_rnaplot_a'.\n"
50000     "  Possible C/C++ prototypes are:\n"
50001     "    file_PS_rnaplot_a(std::string,std::string,std::string,std::string,std::string,vrna_md_t *)\n"
50002     "    file_PS_rnaplot_a(std::string,std::string,std::string,std::string,std::string)\n");
50003   return 0;
50004 }
50005 
50006 
_wrap_gmlRNA(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)50007 SWIGINTERN PyObject *_wrap_gmlRNA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50008   PyObject *resultobj = 0;
50009   char *arg1 = (char *) 0 ;
50010   char *arg2 = (char *) 0 ;
50011   char *arg3 = (char *) 0 ;
50012   char arg4 ;
50013   int res1 ;
50014   char *buf1 = 0 ;
50015   int alloc1 = 0 ;
50016   int res2 ;
50017   char *buf2 = 0 ;
50018   int alloc2 = 0 ;
50019   int res3 ;
50020   char *buf3 = 0 ;
50021   int alloc3 = 0 ;
50022   char val4 ;
50023   int ecode4 = 0 ;
50024   PyObject * obj0 = 0 ;
50025   PyObject * obj1 = 0 ;
50026   PyObject * obj2 = 0 ;
50027   PyObject * obj3 = 0 ;
50028   char * kwnames[] = {
50029     (char *)"string",  (char *)"structure",  (char *)"ssfile",  (char *)"option",  NULL
50030   };
50031   int result;
50032 
50033   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:gmlRNA", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
50034   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
50035   if (!SWIG_IsOK(res1)) {
50036     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gmlRNA" "', argument " "1"" of type '" "char *""'");
50037   }
50038   arg1 = reinterpret_cast< char * >(buf1);
50039   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
50040   if (!SWIG_IsOK(res2)) {
50041     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gmlRNA" "', argument " "2"" of type '" "char *""'");
50042   }
50043   arg2 = reinterpret_cast< char * >(buf2);
50044   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
50045   if (!SWIG_IsOK(res3)) {
50046     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gmlRNA" "', argument " "3"" of type '" "char *""'");
50047   }
50048   arg3 = reinterpret_cast< char * >(buf3);
50049   ecode4 = SWIG_AsVal_char(obj3, &val4);
50050   if (!SWIG_IsOK(ecode4)) {
50051     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gmlRNA" "', argument " "4"" of type '" "char""'");
50052   }
50053   arg4 = static_cast< char >(val4);
50054   {
50055     try {
50056       result = (int)gmlRNA(arg1,arg2,arg3,arg4);
50057     } catch (const std::exception& e) {
50058       SWIG_exception(SWIG_RuntimeError, e.what());
50059     }
50060   }
50061   resultobj = SWIG_From_int(static_cast< int >(result));
50062   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50063   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
50064   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50065   return resultobj;
50066 fail:
50067   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50068   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
50069   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50070   return NULL;
50071 }
50072 
50073 
_wrap_ssv_rna_plot(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)50074 SWIGINTERN PyObject *_wrap_ssv_rna_plot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50075   PyObject *resultobj = 0;
50076   char *arg1 = (char *) 0 ;
50077   char *arg2 = (char *) 0 ;
50078   char *arg3 = (char *) 0 ;
50079   int res1 ;
50080   char *buf1 = 0 ;
50081   int alloc1 = 0 ;
50082   int res2 ;
50083   char *buf2 = 0 ;
50084   int alloc2 = 0 ;
50085   int res3 ;
50086   char *buf3 = 0 ;
50087   int alloc3 = 0 ;
50088   PyObject * obj0 = 0 ;
50089   PyObject * obj1 = 0 ;
50090   PyObject * obj2 = 0 ;
50091   char * kwnames[] = {
50092     (char *)"string",  (char *)"structure",  (char *)"ssfile",  NULL
50093   };
50094   int result;
50095 
50096   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:ssv_rna_plot", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
50097   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
50098   if (!SWIG_IsOK(res1)) {
50099     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ssv_rna_plot" "', argument " "1"" of type '" "char *""'");
50100   }
50101   arg1 = reinterpret_cast< char * >(buf1);
50102   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
50103   if (!SWIG_IsOK(res2)) {
50104     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ssv_rna_plot" "', argument " "2"" of type '" "char *""'");
50105   }
50106   arg2 = reinterpret_cast< char * >(buf2);
50107   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
50108   if (!SWIG_IsOK(res3)) {
50109     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ssv_rna_plot" "', argument " "3"" of type '" "char *""'");
50110   }
50111   arg3 = reinterpret_cast< char * >(buf3);
50112   {
50113     try {
50114       result = (int)ssv_rna_plot(arg1,arg2,arg3);
50115     } catch (const std::exception& e) {
50116       SWIG_exception(SWIG_RuntimeError, e.what());
50117     }
50118   }
50119   resultobj = SWIG_From_int(static_cast< int >(result));
50120   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50121   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
50122   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50123   return resultobj;
50124 fail:
50125   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50126   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
50127   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50128   return NULL;
50129 }
50130 
50131 
_wrap_svg_rna_plot(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)50132 SWIGINTERN PyObject *_wrap_svg_rna_plot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50133   PyObject *resultobj = 0;
50134   char *arg1 = (char *) 0 ;
50135   char *arg2 = (char *) 0 ;
50136   char *arg3 = (char *) 0 ;
50137   int res1 ;
50138   char *buf1 = 0 ;
50139   int alloc1 = 0 ;
50140   int res2 ;
50141   char *buf2 = 0 ;
50142   int alloc2 = 0 ;
50143   int res3 ;
50144   char *buf3 = 0 ;
50145   int alloc3 = 0 ;
50146   PyObject * obj0 = 0 ;
50147   PyObject * obj1 = 0 ;
50148   PyObject * obj2 = 0 ;
50149   char * kwnames[] = {
50150     (char *)"string",  (char *)"structure",  (char *)"ssfile",  NULL
50151   };
50152   int result;
50153 
50154   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:svg_rna_plot", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
50155   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
50156   if (!SWIG_IsOK(res1)) {
50157     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "svg_rna_plot" "', argument " "1"" of type '" "char *""'");
50158   }
50159   arg1 = reinterpret_cast< char * >(buf1);
50160   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
50161   if (!SWIG_IsOK(res2)) {
50162     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "svg_rna_plot" "', argument " "2"" of type '" "char *""'");
50163   }
50164   arg2 = reinterpret_cast< char * >(buf2);
50165   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
50166   if (!SWIG_IsOK(res3)) {
50167     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "svg_rna_plot" "', argument " "3"" of type '" "char *""'");
50168   }
50169   arg3 = reinterpret_cast< char * >(buf3);
50170   {
50171     try {
50172       result = (int)svg_rna_plot(arg1,arg2,arg3);
50173     } catch (const std::exception& e) {
50174       SWIG_exception(SWIG_RuntimeError, e.what());
50175     }
50176   }
50177   resultobj = SWIG_From_int(static_cast< int >(result));
50178   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50179   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
50180   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50181   return resultobj;
50182 fail:
50183   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50184   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
50185   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50186   return NULL;
50187 }
50188 
50189 
_wrap_xrna_plot(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)50190 SWIGINTERN PyObject *_wrap_xrna_plot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50191   PyObject *resultobj = 0;
50192   char *arg1 = (char *) 0 ;
50193   char *arg2 = (char *) 0 ;
50194   char *arg3 = (char *) 0 ;
50195   int res1 ;
50196   char *buf1 = 0 ;
50197   int alloc1 = 0 ;
50198   int res2 ;
50199   char *buf2 = 0 ;
50200   int alloc2 = 0 ;
50201   int res3 ;
50202   char *buf3 = 0 ;
50203   int alloc3 = 0 ;
50204   PyObject * obj0 = 0 ;
50205   PyObject * obj1 = 0 ;
50206   PyObject * obj2 = 0 ;
50207   char * kwnames[] = {
50208     (char *)"string",  (char *)"structure",  (char *)"ssfile",  NULL
50209   };
50210   int result;
50211 
50212   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:xrna_plot", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
50213   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
50214   if (!SWIG_IsOK(res1)) {
50215     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xrna_plot" "', argument " "1"" of type '" "char *""'");
50216   }
50217   arg1 = reinterpret_cast< char * >(buf1);
50218   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
50219   if (!SWIG_IsOK(res2)) {
50220     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xrna_plot" "', argument " "2"" of type '" "char *""'");
50221   }
50222   arg2 = reinterpret_cast< char * >(buf2);
50223   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
50224   if (!SWIG_IsOK(res3)) {
50225     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "xrna_plot" "', argument " "3"" of type '" "char *""'");
50226   }
50227   arg3 = reinterpret_cast< char * >(buf3);
50228   {
50229     try {
50230       result = (int)xrna_plot(arg1,arg2,arg3);
50231     } catch (const std::exception& e) {
50232       SWIG_exception(SWIG_RuntimeError, e.what());
50233     }
50234   }
50235   resultobj = SWIG_From_int(static_cast< int >(result));
50236   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50237   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
50238   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50239   return resultobj;
50240 fail:
50241   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50242   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
50243   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50244   return NULL;
50245 }
50246 
50247 
_wrap_PS_rna_plot(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)50248 SWIGINTERN PyObject *_wrap_PS_rna_plot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50249   PyObject *resultobj = 0;
50250   char *arg1 = (char *) 0 ;
50251   char *arg2 = (char *) 0 ;
50252   char *arg3 = (char *) 0 ;
50253   int res1 ;
50254   char *buf1 = 0 ;
50255   int alloc1 = 0 ;
50256   int res2 ;
50257   char *buf2 = 0 ;
50258   int alloc2 = 0 ;
50259   int res3 ;
50260   char *buf3 = 0 ;
50261   int alloc3 = 0 ;
50262   PyObject * obj0 = 0 ;
50263   PyObject * obj1 = 0 ;
50264   PyObject * obj2 = 0 ;
50265   char * kwnames[] = {
50266     (char *)"string",  (char *)"structure",  (char *)"file",  NULL
50267   };
50268   int result;
50269 
50270   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:PS_rna_plot", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
50271   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
50272   if (!SWIG_IsOK(res1)) {
50273     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PS_rna_plot" "', argument " "1"" of type '" "char *""'");
50274   }
50275   arg1 = reinterpret_cast< char * >(buf1);
50276   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
50277   if (!SWIG_IsOK(res2)) {
50278     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PS_rna_plot" "', argument " "2"" of type '" "char *""'");
50279   }
50280   arg2 = reinterpret_cast< char * >(buf2);
50281   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
50282   if (!SWIG_IsOK(res3)) {
50283     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PS_rna_plot" "', argument " "3"" of type '" "char *""'");
50284   }
50285   arg3 = reinterpret_cast< char * >(buf3);
50286   {
50287     try {
50288       result = (int)PS_rna_plot(arg1,arg2,arg3);
50289     } catch (const std::exception& e) {
50290       SWIG_exception(SWIG_RuntimeError, e.what());
50291     }
50292   }
50293   resultobj = SWIG_From_int(static_cast< int >(result));
50294   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50295   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
50296   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50297   return resultobj;
50298 fail:
50299   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50300   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
50301   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50302   return NULL;
50303 }
50304 
50305 
_wrap_PS_rna_plot_a(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)50306 SWIGINTERN PyObject *_wrap_PS_rna_plot_a(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50307   PyObject *resultobj = 0;
50308   char *arg1 = (char *) 0 ;
50309   char *arg2 = (char *) 0 ;
50310   char *arg3 = (char *) 0 ;
50311   char *arg4 = (char *) 0 ;
50312   char *arg5 = (char *) 0 ;
50313   int res1 ;
50314   char *buf1 = 0 ;
50315   int alloc1 = 0 ;
50316   int res2 ;
50317   char *buf2 = 0 ;
50318   int alloc2 = 0 ;
50319   int res3 ;
50320   char *buf3 = 0 ;
50321   int alloc3 = 0 ;
50322   int res4 ;
50323   char *buf4 = 0 ;
50324   int alloc4 = 0 ;
50325   int res5 ;
50326   char *buf5 = 0 ;
50327   int alloc5 = 0 ;
50328   PyObject * obj0 = 0 ;
50329   PyObject * obj1 = 0 ;
50330   PyObject * obj2 = 0 ;
50331   PyObject * obj3 = 0 ;
50332   PyObject * obj4 = 0 ;
50333   char * kwnames[] = {
50334     (char *)"string",  (char *)"structure",  (char *)"file",  (char *)"pre",  (char *)"post",  NULL
50335   };
50336   int result;
50337 
50338   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:PS_rna_plot_a", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
50339   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
50340   if (!SWIG_IsOK(res1)) {
50341     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PS_rna_plot_a" "', argument " "1"" of type '" "char *""'");
50342   }
50343   arg1 = reinterpret_cast< char * >(buf1);
50344   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
50345   if (!SWIG_IsOK(res2)) {
50346     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PS_rna_plot_a" "', argument " "2"" of type '" "char *""'");
50347   }
50348   arg2 = reinterpret_cast< char * >(buf2);
50349   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
50350   if (!SWIG_IsOK(res3)) {
50351     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PS_rna_plot_a" "', argument " "3"" of type '" "char *""'");
50352   }
50353   arg3 = reinterpret_cast< char * >(buf3);
50354   res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
50355   if (!SWIG_IsOK(res4)) {
50356     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "PS_rna_plot_a" "', argument " "4"" of type '" "char *""'");
50357   }
50358   arg4 = reinterpret_cast< char * >(buf4);
50359   res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
50360   if (!SWIG_IsOK(res5)) {
50361     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PS_rna_plot_a" "', argument " "5"" of type '" "char *""'");
50362   }
50363   arg5 = reinterpret_cast< char * >(buf5);
50364   {
50365     try {
50366       result = (int)PS_rna_plot_a(arg1,arg2,arg3,arg4,arg5);
50367     } catch (const std::exception& e) {
50368       SWIG_exception(SWIG_RuntimeError, e.what());
50369     }
50370   }
50371   resultobj = SWIG_From_int(static_cast< int >(result));
50372   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50373   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
50374   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50375   if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
50376   if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
50377   return resultobj;
50378 fail:
50379   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50380   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
50381   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50382   if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
50383   if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
50384   return NULL;
50385 }
50386 
50387 
_wrap_PS_rna_plot_a_gquad(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)50388 SWIGINTERN PyObject *_wrap_PS_rna_plot_a_gquad(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50389   PyObject *resultobj = 0;
50390   char *arg1 = (char *) 0 ;
50391   char *arg2 = (char *) 0 ;
50392   char *arg3 = (char *) 0 ;
50393   char *arg4 = (char *) 0 ;
50394   char *arg5 = (char *) 0 ;
50395   int res1 ;
50396   char *buf1 = 0 ;
50397   int alloc1 = 0 ;
50398   int res2 ;
50399   char *buf2 = 0 ;
50400   int alloc2 = 0 ;
50401   int res3 ;
50402   char *buf3 = 0 ;
50403   int alloc3 = 0 ;
50404   int res4 ;
50405   char *buf4 = 0 ;
50406   int alloc4 = 0 ;
50407   int res5 ;
50408   char *buf5 = 0 ;
50409   int alloc5 = 0 ;
50410   PyObject * obj0 = 0 ;
50411   PyObject * obj1 = 0 ;
50412   PyObject * obj2 = 0 ;
50413   PyObject * obj3 = 0 ;
50414   PyObject * obj4 = 0 ;
50415   char * kwnames[] = {
50416     (char *)"string",  (char *)"structure",  (char *)"ssfile",  (char *)"pre",  (char *)"post",  NULL
50417   };
50418   int result;
50419 
50420   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:PS_rna_plot_a_gquad", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
50421   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
50422   if (!SWIG_IsOK(res1)) {
50423     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PS_rna_plot_a_gquad" "', argument " "1"" of type '" "char *""'");
50424   }
50425   arg1 = reinterpret_cast< char * >(buf1);
50426   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
50427   if (!SWIG_IsOK(res2)) {
50428     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PS_rna_plot_a_gquad" "', argument " "2"" of type '" "char *""'");
50429   }
50430   arg2 = reinterpret_cast< char * >(buf2);
50431   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
50432   if (!SWIG_IsOK(res3)) {
50433     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PS_rna_plot_a_gquad" "', argument " "3"" of type '" "char *""'");
50434   }
50435   arg3 = reinterpret_cast< char * >(buf3);
50436   res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
50437   if (!SWIG_IsOK(res4)) {
50438     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "PS_rna_plot_a_gquad" "', argument " "4"" of type '" "char *""'");
50439   }
50440   arg4 = reinterpret_cast< char * >(buf4);
50441   res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
50442   if (!SWIG_IsOK(res5)) {
50443     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PS_rna_plot_a_gquad" "', argument " "5"" of type '" "char *""'");
50444   }
50445   arg5 = reinterpret_cast< char * >(buf5);
50446   {
50447     try {
50448       result = (int)PS_rna_plot_a_gquad(arg1,arg2,arg3,arg4,arg5);
50449     } catch (const std::exception& e) {
50450       SWIG_exception(SWIG_RuntimeError, e.what());
50451     }
50452   }
50453   resultobj = SWIG_From_int(static_cast< int >(result));
50454   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50455   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
50456   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50457   if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
50458   if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
50459   return resultobj;
50460 fail:
50461   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50462   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
50463   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50464   if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
50465   if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
50466   return NULL;
50467 }
50468 
50469 
_wrap_file_PS_aln(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)50470 SWIGINTERN PyObject *_wrap_file_PS_aln(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50471   PyObject *resultobj = 0;
50472   std::string arg1 ;
50473   std::vector< std::string,std::allocator< std::string > > arg2 ;
50474   std::vector< std::string,std::allocator< std::string > > arg3 ;
50475   std::string arg4 ;
50476   unsigned int arg5 = (unsigned int) 0 ;
50477   unsigned int arg6 = (unsigned int) 0 ;
50478   int arg7 = (int) 0 ;
50479   unsigned int arg8 = (unsigned int) 60 ;
50480   unsigned int val5 ;
50481   int ecode5 = 0 ;
50482   unsigned int val6 ;
50483   int ecode6 = 0 ;
50484   int val7 ;
50485   int ecode7 = 0 ;
50486   unsigned int val8 ;
50487   int ecode8 = 0 ;
50488   PyObject * obj0 = 0 ;
50489   PyObject * obj1 = 0 ;
50490   PyObject * obj2 = 0 ;
50491   PyObject * obj3 = 0 ;
50492   PyObject * obj4 = 0 ;
50493   PyObject * obj5 = 0 ;
50494   PyObject * obj6 = 0 ;
50495   PyObject * obj7 = 0 ;
50496   char * kwnames[] = {
50497     (char *)"filename",  (char *)"alignment",  (char *)"identifiers",  (char *)"structure",  (char *)"start",  (char *)"end",  (char *)"offset",  (char *)"columns",  NULL
50498   };
50499   int result;
50500 
50501   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO|OOOO:file_PS_aln", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7)) SWIG_fail;
50502   {
50503     std::string *ptr = (std::string *)0;
50504     int res = SWIG_AsPtr_std_string(obj0, &ptr);
50505     if (!SWIG_IsOK(res) || !ptr) {
50506       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_aln" "', argument " "1"" of type '" "std::string""'");
50507     }
50508     arg1 = *ptr;
50509     if (SWIG_IsNewObj(res)) delete ptr;
50510   }
50511   {
50512     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
50513     int res = swig::asptr(obj1, &ptr);
50514     if (!SWIG_IsOK(res) || !ptr) {
50515       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_aln" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
50516     }
50517     arg2 = *ptr;
50518     if (SWIG_IsNewObj(res)) delete ptr;
50519   }
50520   {
50521     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
50522     int res = swig::asptr(obj2, &ptr);
50523     if (!SWIG_IsOK(res) || !ptr) {
50524       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_aln" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
50525     }
50526     arg3 = *ptr;
50527     if (SWIG_IsNewObj(res)) delete ptr;
50528   }
50529   {
50530     std::string *ptr = (std::string *)0;
50531     int res = SWIG_AsPtr_std_string(obj3, &ptr);
50532     if (!SWIG_IsOK(res) || !ptr) {
50533       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_PS_aln" "', argument " "4"" of type '" "std::string""'");
50534     }
50535     arg4 = *ptr;
50536     if (SWIG_IsNewObj(res)) delete ptr;
50537   }
50538   if (obj4) {
50539     ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
50540     if (!SWIG_IsOK(ecode5)) {
50541       SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "file_PS_aln" "', argument " "5"" of type '" "unsigned int""'");
50542     }
50543     arg5 = static_cast< unsigned int >(val5);
50544   }
50545   if (obj5) {
50546     ecode6 = SWIG_AsVal_unsigned_SS_int(obj5, &val6);
50547     if (!SWIG_IsOK(ecode6)) {
50548       SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "file_PS_aln" "', argument " "6"" of type '" "unsigned int""'");
50549     }
50550     arg6 = static_cast< unsigned int >(val6);
50551   }
50552   if (obj6) {
50553     ecode7 = SWIG_AsVal_int(obj6, &val7);
50554     if (!SWIG_IsOK(ecode7)) {
50555       SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "file_PS_aln" "', argument " "7"" of type '" "int""'");
50556     }
50557     arg7 = static_cast< int >(val7);
50558   }
50559   if (obj7) {
50560     ecode8 = SWIG_AsVal_unsigned_SS_int(obj7, &val8);
50561     if (!SWIG_IsOK(ecode8)) {
50562       SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "file_PS_aln" "', argument " "8"" of type '" "unsigned int""'");
50563     }
50564     arg8 = static_cast< unsigned int >(val8);
50565   }
50566   {
50567     try {
50568       result = (int)file_PS_aln(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
50569     } catch (const std::exception& e) {
50570       SWIG_exception(SWIG_RuntimeError, e.what());
50571     }
50572   }
50573   resultobj = SWIG_From_int(static_cast< int >(result));
50574   return resultobj;
50575 fail:
50576   return NULL;
50577 }
50578 
50579 
_wrap_PS_color_dot_plot(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)50580 SWIGINTERN PyObject *_wrap_PS_color_dot_plot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50581   PyObject *resultobj = 0;
50582   char *arg1 = (char *) 0 ;
50583   cpair *arg2 = (cpair *) 0 ;
50584   char *arg3 = (char *) 0 ;
50585   int res1 ;
50586   char *buf1 = 0 ;
50587   int alloc1 = 0 ;
50588   void *argp2 = 0 ;
50589   int res2 = 0 ;
50590   int res3 ;
50591   char *buf3 = 0 ;
50592   int alloc3 = 0 ;
50593   PyObject * obj0 = 0 ;
50594   PyObject * obj1 = 0 ;
50595   PyObject * obj2 = 0 ;
50596   char * kwnames[] = {
50597     (char *)"string",  (char *)"pi",  (char *)"filename",  NULL
50598   };
50599   int result;
50600 
50601   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:PS_color_dot_plot", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
50602   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
50603   if (!SWIG_IsOK(res1)) {
50604     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PS_color_dot_plot" "', argument " "1"" of type '" "char *""'");
50605   }
50606   arg1 = reinterpret_cast< char * >(buf1);
50607   res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_vrna_cpair_s, 0 |  0 );
50608   if (!SWIG_IsOK(res2)) {
50609     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PS_color_dot_plot" "', argument " "2"" of type '" "cpair *""'");
50610   }
50611   arg2 = reinterpret_cast< cpair * >(argp2);
50612   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
50613   if (!SWIG_IsOK(res3)) {
50614     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PS_color_dot_plot" "', argument " "3"" of type '" "char *""'");
50615   }
50616   arg3 = reinterpret_cast< char * >(buf3);
50617   {
50618     try {
50619       result = (int)PS_color_dot_plot(arg1,arg2,arg3);
50620     } catch (const std::exception& e) {
50621       SWIG_exception(SWIG_RuntimeError, e.what());
50622     }
50623   }
50624   resultobj = SWIG_From_int(static_cast< int >(result));
50625   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50626   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50627   return resultobj;
50628 fail:
50629   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50630   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50631   return NULL;
50632 }
50633 
50634 
_wrap_PS_color_dot_plot_turn(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)50635 SWIGINTERN PyObject *_wrap_PS_color_dot_plot_turn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50636   PyObject *resultobj = 0;
50637   char *arg1 = (char *) 0 ;
50638   cpair *arg2 = (cpair *) 0 ;
50639   char *arg3 = (char *) 0 ;
50640   int arg4 ;
50641   int res1 ;
50642   char *buf1 = 0 ;
50643   int alloc1 = 0 ;
50644   void *argp2 = 0 ;
50645   int res2 = 0 ;
50646   int res3 ;
50647   char *buf3 = 0 ;
50648   int alloc3 = 0 ;
50649   int val4 ;
50650   int ecode4 = 0 ;
50651   PyObject * obj0 = 0 ;
50652   PyObject * obj1 = 0 ;
50653   PyObject * obj2 = 0 ;
50654   PyObject * obj3 = 0 ;
50655   char * kwnames[] = {
50656     (char *)"seq",  (char *)"pi",  (char *)"filename",  (char *)"winSize",  NULL
50657   };
50658   int result;
50659 
50660   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:PS_color_dot_plot_turn", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
50661   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
50662   if (!SWIG_IsOK(res1)) {
50663     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PS_color_dot_plot_turn" "', argument " "1"" of type '" "char *""'");
50664   }
50665   arg1 = reinterpret_cast< char * >(buf1);
50666   res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_vrna_cpair_s, 0 |  0 );
50667   if (!SWIG_IsOK(res2)) {
50668     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PS_color_dot_plot_turn" "', argument " "2"" of type '" "cpair *""'");
50669   }
50670   arg2 = reinterpret_cast< cpair * >(argp2);
50671   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
50672   if (!SWIG_IsOK(res3)) {
50673     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PS_color_dot_plot_turn" "', argument " "3"" of type '" "char *""'");
50674   }
50675   arg3 = reinterpret_cast< char * >(buf3);
50676   ecode4 = SWIG_AsVal_int(obj3, &val4);
50677   if (!SWIG_IsOK(ecode4)) {
50678     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PS_color_dot_plot_turn" "', argument " "4"" of type '" "int""'");
50679   }
50680   arg4 = static_cast< int >(val4);
50681   {
50682     try {
50683       result = (int)PS_color_dot_plot_turn(arg1,arg2,arg3,arg4);
50684     } catch (const std::exception& e) {
50685       SWIG_exception(SWIG_RuntimeError, e.what());
50686     }
50687   }
50688   resultobj = SWIG_From_int(static_cast< int >(result));
50689   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50690   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50691   return resultobj;
50692 fail:
50693   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50694   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50695   return NULL;
50696 }
50697 
50698 
_wrap_PS_dot_plot_turn(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)50699 SWIGINTERN PyObject *_wrap_PS_dot_plot_turn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50700   PyObject *resultobj = 0;
50701   char *arg1 = (char *) 0 ;
50702   plist *arg2 = (plist *) 0 ;
50703   char *arg3 = (char *) 0 ;
50704   int arg4 ;
50705   int res1 ;
50706   char *buf1 = 0 ;
50707   int alloc1 = 0 ;
50708   void *argp2 = 0 ;
50709   int res2 = 0 ;
50710   int res3 ;
50711   char *buf3 = 0 ;
50712   int alloc3 = 0 ;
50713   int val4 ;
50714   int ecode4 = 0 ;
50715   PyObject * obj0 = 0 ;
50716   PyObject * obj1 = 0 ;
50717   PyObject * obj2 = 0 ;
50718   PyObject * obj3 = 0 ;
50719   char * kwnames[] = {
50720     (char *)"seq",  (char *)"pl",  (char *)"filename",  (char *)"winSize",  NULL
50721   };
50722   int result;
50723 
50724   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:PS_dot_plot_turn", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
50725   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
50726   if (!SWIG_IsOK(res1)) {
50727     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PS_dot_plot_turn" "', argument " "1"" of type '" "char *""'");
50728   }
50729   arg1 = reinterpret_cast< char * >(buf1);
50730   res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_vrna_elem_prob_s, 0 |  0 );
50731   if (!SWIG_IsOK(res2)) {
50732     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PS_dot_plot_turn" "', argument " "2"" of type '" "plist *""'");
50733   }
50734   arg2 = reinterpret_cast< plist * >(argp2);
50735   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
50736   if (!SWIG_IsOK(res3)) {
50737     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PS_dot_plot_turn" "', argument " "3"" of type '" "char *""'");
50738   }
50739   arg3 = reinterpret_cast< char * >(buf3);
50740   ecode4 = SWIG_AsVal_int(obj3, &val4);
50741   if (!SWIG_IsOK(ecode4)) {
50742     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PS_dot_plot_turn" "', argument " "4"" of type '" "int""'");
50743   }
50744   arg4 = static_cast< int >(val4);
50745   {
50746     try {
50747       result = (int)PS_dot_plot_turn(arg1,arg2,arg3,arg4);
50748     } catch (const std::exception& e) {
50749       SWIG_exception(SWIG_RuntimeError, e.what());
50750     }
50751   }
50752   resultobj = SWIG_From_int(static_cast< int >(result));
50753   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50754   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50755   return resultobj;
50756 fail:
50757   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50758   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
50759   return NULL;
50760 }
50761 
50762 
_wrap_PS_dot_plot_list(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)50763 SWIGINTERN PyObject *_wrap_PS_dot_plot_list(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50764   PyObject *resultobj = 0;
50765   char *arg1 = (char *) 0 ;
50766   char *arg2 = (char *) 0 ;
50767   plist *arg3 = (plist *) 0 ;
50768   plist *arg4 = (plist *) 0 ;
50769   char *arg5 = (char *) 0 ;
50770   int res1 ;
50771   char *buf1 = 0 ;
50772   int alloc1 = 0 ;
50773   int res2 ;
50774   char *buf2 = 0 ;
50775   int alloc2 = 0 ;
50776   void *argp3 = 0 ;
50777   int res3 = 0 ;
50778   void *argp4 = 0 ;
50779   int res4 = 0 ;
50780   int res5 ;
50781   char *buf5 = 0 ;
50782   int alloc5 = 0 ;
50783   PyObject * obj0 = 0 ;
50784   PyObject * obj1 = 0 ;
50785   PyObject * obj2 = 0 ;
50786   PyObject * obj3 = 0 ;
50787   PyObject * obj4 = 0 ;
50788   char * kwnames[] = {
50789     (char *)"seq",  (char *)"filename",  (char *)"pl",  (char *)"mf",  (char *)"comment",  NULL
50790   };
50791   int result;
50792 
50793   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:PS_dot_plot_list", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
50794   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
50795   if (!SWIG_IsOK(res1)) {
50796     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PS_dot_plot_list" "', argument " "1"" of type '" "char *""'");
50797   }
50798   arg1 = reinterpret_cast< char * >(buf1);
50799   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
50800   if (!SWIG_IsOK(res2)) {
50801     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PS_dot_plot_list" "', argument " "2"" of type '" "char *""'");
50802   }
50803   arg2 = reinterpret_cast< char * >(buf2);
50804   res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_vrna_elem_prob_s, 0 |  0 );
50805   if (!SWIG_IsOK(res3)) {
50806     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PS_dot_plot_list" "', argument " "3"" of type '" "plist *""'");
50807   }
50808   arg3 = reinterpret_cast< plist * >(argp3);
50809   res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_vrna_elem_prob_s, 0 |  0 );
50810   if (!SWIG_IsOK(res4)) {
50811     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "PS_dot_plot_list" "', argument " "4"" of type '" "plist *""'");
50812   }
50813   arg4 = reinterpret_cast< plist * >(argp4);
50814   res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
50815   if (!SWIG_IsOK(res5)) {
50816     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PS_dot_plot_list" "', argument " "5"" of type '" "char *""'");
50817   }
50818   arg5 = reinterpret_cast< char * >(buf5);
50819   {
50820     try {
50821       result = (int)PS_dot_plot_list(arg1,arg2,arg3,arg4,arg5);
50822     } catch (const std::exception& e) {
50823       SWIG_exception(SWIG_RuntimeError, e.what());
50824     }
50825   }
50826   resultobj = SWIG_From_int(static_cast< int >(result));
50827   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50828   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
50829   if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
50830   return resultobj;
50831 fail:
50832   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50833   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
50834   if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
50835   return NULL;
50836 }
50837 
50838 
_wrap_PS_dot_plot(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)50839 SWIGINTERN PyObject *_wrap_PS_dot_plot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50840   PyObject *resultobj = 0;
50841   char *arg1 = (char *) 0 ;
50842   char *arg2 = (char *) 0 ;
50843   int res1 ;
50844   char *buf1 = 0 ;
50845   int alloc1 = 0 ;
50846   int res2 ;
50847   char *buf2 = 0 ;
50848   int alloc2 = 0 ;
50849   PyObject * obj0 = 0 ;
50850   PyObject * obj1 = 0 ;
50851   char * kwnames[] = {
50852     (char *)"string",  (char *)"file",  NULL
50853   };
50854   int result;
50855 
50856   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:PS_dot_plot", kwnames, &obj0, &obj1)) SWIG_fail;
50857   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
50858   if (!SWIG_IsOK(res1)) {
50859     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PS_dot_plot" "', argument " "1"" of type '" "char *""'");
50860   }
50861   arg1 = reinterpret_cast< char * >(buf1);
50862   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
50863   if (!SWIG_IsOK(res2)) {
50864     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PS_dot_plot" "', argument " "2"" of type '" "char *""'");
50865   }
50866   arg2 = reinterpret_cast< char * >(buf2);
50867   {
50868     try {
50869       result = (int)PS_dot_plot(arg1,arg2);
50870     } catch (const std::exception& e) {
50871       SWIG_exception(SWIG_RuntimeError, e.what());
50872     }
50873   }
50874   resultobj = SWIG_From_int(static_cast< int >(result));
50875   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50876   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
50877   return resultobj;
50878 fail:
50879   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
50880   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
50881   return NULL;
50882 }
50883 
50884 
_wrap_eval_structure_simple__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)50885 SWIGINTERN PyObject *_wrap_eval_structure_simple__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
50886   PyObject *resultobj = 0;
50887   std::string arg1 ;
50888   std::string arg2 ;
50889   int arg3 = (int) VRNA_VERBOSITY_QUIET ;
50890   FILE *arg4 = (FILE *) NULL ;
50891   int val3 ;
50892   int ecode3 = 0 ;
50893   float result;
50894 
50895   if ((nobjs < 2) || (nobjs > 4)) SWIG_fail;
50896   {
50897     std::string *ptr = (std::string *)0;
50898     int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
50899     if (!SWIG_IsOK(res) || !ptr) {
50900       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_structure_simple" "', argument " "1"" of type '" "std::string""'");
50901     }
50902     arg1 = *ptr;
50903     if (SWIG_IsNewObj(res)) delete ptr;
50904   }
50905   {
50906     std::string *ptr = (std::string *)0;
50907     int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
50908     if (!SWIG_IsOK(res) || !ptr) {
50909       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_structure_simple" "', argument " "2"" of type '" "std::string""'");
50910     }
50911     arg2 = *ptr;
50912     if (SWIG_IsNewObj(res)) delete ptr;
50913   }
50914   if (swig_obj[2]) {
50915     ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
50916     if (!SWIG_IsOK(ecode3)) {
50917       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "eval_structure_simple" "', argument " "3"" of type '" "int""'");
50918     }
50919     arg3 = static_cast< int >(val3);
50920   }
50921   if (swig_obj[3]) {
50922     {
50923       if (PyFile_Check(swig_obj[3])) /* check for undef */
50924       arg4 = PyFile_AsFile(swig_obj[3]);
50925       else  arg4 = NULL;
50926     }
50927   }
50928   {
50929     try {
50930       result = (float)my_eval_structure_simple(arg1,arg2,arg3,arg4);
50931     } catch (const std::exception& e) {
50932       SWIG_exception(SWIG_RuntimeError, e.what());
50933     }
50934   }
50935   resultobj = SWIG_From_float(static_cast< float >(result));
50936   return resultobj;
50937 fail:
50938   return NULL;
50939 }
50940 
50941 
_wrap_eval_circ_structure__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)50942 SWIGINTERN PyObject *_wrap_eval_circ_structure__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
50943   PyObject *resultobj = 0;
50944   std::string arg1 ;
50945   std::string arg2 ;
50946   int arg3 = (int) VRNA_VERBOSITY_QUIET ;
50947   FILE *arg4 = (FILE *) NULL ;
50948   int val3 ;
50949   int ecode3 = 0 ;
50950   float result;
50951 
50952   if ((nobjs < 2) || (nobjs > 4)) SWIG_fail;
50953   {
50954     std::string *ptr = (std::string *)0;
50955     int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
50956     if (!SWIG_IsOK(res) || !ptr) {
50957       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_circ_structure" "', argument " "1"" of type '" "std::string""'");
50958     }
50959     arg1 = *ptr;
50960     if (SWIG_IsNewObj(res)) delete ptr;
50961   }
50962   {
50963     std::string *ptr = (std::string *)0;
50964     int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
50965     if (!SWIG_IsOK(res) || !ptr) {
50966       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_circ_structure" "', argument " "2"" of type '" "std::string""'");
50967     }
50968     arg2 = *ptr;
50969     if (SWIG_IsNewObj(res)) delete ptr;
50970   }
50971   if (swig_obj[2]) {
50972     ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
50973     if (!SWIG_IsOK(ecode3)) {
50974       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "eval_circ_structure" "', argument " "3"" of type '" "int""'");
50975     }
50976     arg3 = static_cast< int >(val3);
50977   }
50978   if (swig_obj[3]) {
50979     {
50980       if (PyFile_Check(swig_obj[3])) /* check for undef */
50981       arg4 = PyFile_AsFile(swig_obj[3]);
50982       else  arg4 = NULL;
50983     }
50984   }
50985   {
50986     try {
50987       result = (float)my_eval_circ_structure(arg1,arg2,arg3,arg4);
50988     } catch (const std::exception& e) {
50989       SWIG_exception(SWIG_RuntimeError, e.what());
50990     }
50991   }
50992   resultobj = SWIG_From_float(static_cast< float >(result));
50993   return resultobj;
50994 fail:
50995   return NULL;
50996 }
50997 
50998 
_wrap_eval_gquad_structure__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)50999 SWIGINTERN PyObject *_wrap_eval_gquad_structure__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
51000   PyObject *resultobj = 0;
51001   std::string arg1 ;
51002   std::string arg2 ;
51003   int arg3 = (int) VRNA_VERBOSITY_QUIET ;
51004   FILE *arg4 = (FILE *) NULL ;
51005   int val3 ;
51006   int ecode3 = 0 ;
51007   float result;
51008 
51009   if ((nobjs < 2) || (nobjs > 4)) SWIG_fail;
51010   {
51011     std::string *ptr = (std::string *)0;
51012     int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
51013     if (!SWIG_IsOK(res) || !ptr) {
51014       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_gquad_structure" "', argument " "1"" of type '" "std::string""'");
51015     }
51016     arg1 = *ptr;
51017     if (SWIG_IsNewObj(res)) delete ptr;
51018   }
51019   {
51020     std::string *ptr = (std::string *)0;
51021     int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
51022     if (!SWIG_IsOK(res) || !ptr) {
51023       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_gquad_structure" "', argument " "2"" of type '" "std::string""'");
51024     }
51025     arg2 = *ptr;
51026     if (SWIG_IsNewObj(res)) delete ptr;
51027   }
51028   if (swig_obj[2]) {
51029     ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
51030     if (!SWIG_IsOK(ecode3)) {
51031       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "eval_gquad_structure" "', argument " "3"" of type '" "int""'");
51032     }
51033     arg3 = static_cast< int >(val3);
51034   }
51035   if (swig_obj[3]) {
51036     {
51037       if (PyFile_Check(swig_obj[3])) /* check for undef */
51038       arg4 = PyFile_AsFile(swig_obj[3]);
51039       else  arg4 = NULL;
51040     }
51041   }
51042   {
51043     try {
51044       result = (float)my_eval_gquad_structure(arg1,arg2,arg3,arg4);
51045     } catch (const std::exception& e) {
51046       SWIG_exception(SWIG_RuntimeError, e.what());
51047     }
51048   }
51049   resultobj = SWIG_From_float(static_cast< float >(result));
51050   return resultobj;
51051 fail:
51052   return NULL;
51053 }
51054 
51055 
_wrap_eval_circ_gquad_structure__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)51056 SWIGINTERN PyObject *_wrap_eval_circ_gquad_structure__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
51057   PyObject *resultobj = 0;
51058   std::string arg1 ;
51059   std::string arg2 ;
51060   int arg3 = (int) VRNA_VERBOSITY_QUIET ;
51061   FILE *arg4 = (FILE *) NULL ;
51062   int val3 ;
51063   int ecode3 = 0 ;
51064   float result;
51065 
51066   if ((nobjs < 2) || (nobjs > 4)) SWIG_fail;
51067   {
51068     std::string *ptr = (std::string *)0;
51069     int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
51070     if (!SWIG_IsOK(res) || !ptr) {
51071       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_circ_gquad_structure" "', argument " "1"" of type '" "std::string""'");
51072     }
51073     arg1 = *ptr;
51074     if (SWIG_IsNewObj(res)) delete ptr;
51075   }
51076   {
51077     std::string *ptr = (std::string *)0;
51078     int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
51079     if (!SWIG_IsOK(res) || !ptr) {
51080       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_circ_gquad_structure" "', argument " "2"" of type '" "std::string""'");
51081     }
51082     arg2 = *ptr;
51083     if (SWIG_IsNewObj(res)) delete ptr;
51084   }
51085   if (swig_obj[2]) {
51086     ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
51087     if (!SWIG_IsOK(ecode3)) {
51088       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "eval_circ_gquad_structure" "', argument " "3"" of type '" "int""'");
51089     }
51090     arg3 = static_cast< int >(val3);
51091   }
51092   if (swig_obj[3]) {
51093     {
51094       if (PyFile_Check(swig_obj[3])) /* check for undef */
51095       arg4 = PyFile_AsFile(swig_obj[3]);
51096       else  arg4 = NULL;
51097     }
51098   }
51099   {
51100     try {
51101       result = (float)my_eval_circ_gquad_structure(arg1,arg2,arg3,arg4);
51102     } catch (const std::exception& e) {
51103       SWIG_exception(SWIG_RuntimeError, e.what());
51104     }
51105   }
51106   resultobj = SWIG_From_float(static_cast< float >(result));
51107   return resultobj;
51108 fail:
51109   return NULL;
51110 }
51111 
51112 
_wrap_eval_structure_simple__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)51113 SWIGINTERN PyObject *_wrap_eval_structure_simple__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
51114   PyObject *resultobj = 0;
51115   std::vector< std::string,std::allocator< std::string > > arg1 ;
51116   std::string arg2 ;
51117   int arg3 = (int) VRNA_VERBOSITY_QUIET ;
51118   FILE *arg4 = (FILE *) NULL ;
51119   int val3 ;
51120   int ecode3 = 0 ;
51121   float result;
51122 
51123   if ((nobjs < 2) || (nobjs > 4)) SWIG_fail;
51124   {
51125     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
51126     int res = swig::asptr(swig_obj[0], &ptr);
51127     if (!SWIG_IsOK(res) || !ptr) {
51128       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_structure_simple" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
51129     }
51130     arg1 = *ptr;
51131     if (SWIG_IsNewObj(res)) delete ptr;
51132   }
51133   {
51134     std::string *ptr = (std::string *)0;
51135     int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
51136     if (!SWIG_IsOK(res) || !ptr) {
51137       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_structure_simple" "', argument " "2"" of type '" "std::string""'");
51138     }
51139     arg2 = *ptr;
51140     if (SWIG_IsNewObj(res)) delete ptr;
51141   }
51142   if (swig_obj[2]) {
51143     ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
51144     if (!SWIG_IsOK(ecode3)) {
51145       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "eval_structure_simple" "', argument " "3"" of type '" "int""'");
51146     }
51147     arg3 = static_cast< int >(val3);
51148   }
51149   if (swig_obj[3]) {
51150     {
51151       if (PyFile_Check(swig_obj[3])) /* check for undef */
51152       arg4 = PyFile_AsFile(swig_obj[3]);
51153       else  arg4 = NULL;
51154     }
51155   }
51156   {
51157     try {
51158       result = (float)my_eval_structure_simple(arg1,arg2,arg3,arg4);
51159     } catch (const std::exception& e) {
51160       SWIG_exception(SWIG_RuntimeError, e.what());
51161     }
51162   }
51163   resultobj = SWIG_From_float(static_cast< float >(result));
51164   return resultobj;
51165 fail:
51166   return NULL;
51167 }
51168 
51169 
_wrap_eval_structure_simple(PyObject * self,PyObject * args)51170 SWIGINTERN PyObject *_wrap_eval_structure_simple(PyObject *self, PyObject *args) {
51171   Py_ssize_t argc;
51172   PyObject *argv[5] = {
51173     0
51174   };
51175 
51176   if (!(argc = SWIG_Python_UnpackTuple(args, "eval_structure_simple", 0, 4, argv))) SWIG_fail;
51177   --argc;
51178   if ((argc >= 2) && (argc <= 4)) {
51179     int _v;
51180     int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
51181     _v = SWIG_CheckState(res);
51182     if (_v) {
51183       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
51184       _v = SWIG_CheckState(res);
51185       if (_v) {
51186         if (argc <= 2) {
51187           return _wrap_eval_structure_simple__SWIG_0(self, argc, argv);
51188         }
51189         {
51190           int res = SWIG_AsVal_int(argv[2], NULL);
51191           _v = SWIG_CheckState(res);
51192         }
51193         if (_v) {
51194           if (argc <= 3) {
51195             return _wrap_eval_structure_simple__SWIG_0(self, argc, argv);
51196           }
51197           {
51198             if (PyFile_Check(argv[3])) /* check for undef */
51199             _v = PyFile_AsFile(argv[3]) ? 1 : 0;
51200           }
51201           if (_v) {
51202             return _wrap_eval_structure_simple__SWIG_0(self, argc, argv);
51203           }
51204         }
51205       }
51206     }
51207   }
51208   if ((argc >= 2) && (argc <= 4)) {
51209     int _v;
51210     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
51211     _v = SWIG_CheckState(res);
51212     if (_v) {
51213       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
51214       _v = SWIG_CheckState(res);
51215       if (_v) {
51216         if (argc <= 2) {
51217           return _wrap_eval_structure_simple__SWIG_1(self, argc, argv);
51218         }
51219         {
51220           int res = SWIG_AsVal_int(argv[2], NULL);
51221           _v = SWIG_CheckState(res);
51222         }
51223         if (_v) {
51224           if (argc <= 3) {
51225             return _wrap_eval_structure_simple__SWIG_1(self, argc, argv);
51226           }
51227           {
51228             if (PyFile_Check(argv[3])) /* check for undef */
51229             _v = PyFile_AsFile(argv[3]) ? 1 : 0;
51230           }
51231           if (_v) {
51232             return _wrap_eval_structure_simple__SWIG_1(self, argc, argv);
51233           }
51234         }
51235       }
51236     }
51237   }
51238 
51239 fail:
51240   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'eval_structure_simple'.\n"
51241     "  Possible C/C++ prototypes are:\n"
51242     "    my_eval_structure_simple(std::string,std::string,int,FILE *)\n"
51243     "    my_eval_structure_simple(std::vector< std::string,std::allocator< std::string > >,std::string,int,FILE *)\n");
51244   return 0;
51245 }
51246 
51247 
_wrap_eval_circ_structure__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)51248 SWIGINTERN PyObject *_wrap_eval_circ_structure__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
51249   PyObject *resultobj = 0;
51250   std::vector< std::string,std::allocator< std::string > > arg1 ;
51251   std::string arg2 ;
51252   int arg3 = (int) VRNA_VERBOSITY_QUIET ;
51253   FILE *arg4 = (FILE *) NULL ;
51254   int val3 ;
51255   int ecode3 = 0 ;
51256   float result;
51257 
51258   if ((nobjs < 2) || (nobjs > 4)) SWIG_fail;
51259   {
51260     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
51261     int res = swig::asptr(swig_obj[0], &ptr);
51262     if (!SWIG_IsOK(res) || !ptr) {
51263       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_circ_structure" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
51264     }
51265     arg1 = *ptr;
51266     if (SWIG_IsNewObj(res)) delete ptr;
51267   }
51268   {
51269     std::string *ptr = (std::string *)0;
51270     int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
51271     if (!SWIG_IsOK(res) || !ptr) {
51272       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_circ_structure" "', argument " "2"" of type '" "std::string""'");
51273     }
51274     arg2 = *ptr;
51275     if (SWIG_IsNewObj(res)) delete ptr;
51276   }
51277   if (swig_obj[2]) {
51278     ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
51279     if (!SWIG_IsOK(ecode3)) {
51280       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "eval_circ_structure" "', argument " "3"" of type '" "int""'");
51281     }
51282     arg3 = static_cast< int >(val3);
51283   }
51284   if (swig_obj[3]) {
51285     {
51286       if (PyFile_Check(swig_obj[3])) /* check for undef */
51287       arg4 = PyFile_AsFile(swig_obj[3]);
51288       else  arg4 = NULL;
51289     }
51290   }
51291   {
51292     try {
51293       result = (float)my_eval_circ_structure(arg1,arg2,arg3,arg4);
51294     } catch (const std::exception& e) {
51295       SWIG_exception(SWIG_RuntimeError, e.what());
51296     }
51297   }
51298   resultobj = SWIG_From_float(static_cast< float >(result));
51299   return resultobj;
51300 fail:
51301   return NULL;
51302 }
51303 
51304 
_wrap_eval_circ_structure(PyObject * self,PyObject * args)51305 SWIGINTERN PyObject *_wrap_eval_circ_structure(PyObject *self, PyObject *args) {
51306   Py_ssize_t argc;
51307   PyObject *argv[5] = {
51308     0
51309   };
51310 
51311   if (!(argc = SWIG_Python_UnpackTuple(args, "eval_circ_structure", 0, 4, argv))) SWIG_fail;
51312   --argc;
51313   if ((argc >= 2) && (argc <= 4)) {
51314     int _v;
51315     int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
51316     _v = SWIG_CheckState(res);
51317     if (_v) {
51318       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
51319       _v = SWIG_CheckState(res);
51320       if (_v) {
51321         if (argc <= 2) {
51322           return _wrap_eval_circ_structure__SWIG_0(self, argc, argv);
51323         }
51324         {
51325           int res = SWIG_AsVal_int(argv[2], NULL);
51326           _v = SWIG_CheckState(res);
51327         }
51328         if (_v) {
51329           if (argc <= 3) {
51330             return _wrap_eval_circ_structure__SWIG_0(self, argc, argv);
51331           }
51332           {
51333             if (PyFile_Check(argv[3])) /* check for undef */
51334             _v = PyFile_AsFile(argv[3]) ? 1 : 0;
51335           }
51336           if (_v) {
51337             return _wrap_eval_circ_structure__SWIG_0(self, argc, argv);
51338           }
51339         }
51340       }
51341     }
51342   }
51343   if ((argc >= 2) && (argc <= 4)) {
51344     int _v;
51345     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
51346     _v = SWIG_CheckState(res);
51347     if (_v) {
51348       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
51349       _v = SWIG_CheckState(res);
51350       if (_v) {
51351         if (argc <= 2) {
51352           return _wrap_eval_circ_structure__SWIG_1(self, argc, argv);
51353         }
51354         {
51355           int res = SWIG_AsVal_int(argv[2], NULL);
51356           _v = SWIG_CheckState(res);
51357         }
51358         if (_v) {
51359           if (argc <= 3) {
51360             return _wrap_eval_circ_structure__SWIG_1(self, argc, argv);
51361           }
51362           {
51363             if (PyFile_Check(argv[3])) /* check for undef */
51364             _v = PyFile_AsFile(argv[3]) ? 1 : 0;
51365           }
51366           if (_v) {
51367             return _wrap_eval_circ_structure__SWIG_1(self, argc, argv);
51368           }
51369         }
51370       }
51371     }
51372   }
51373 
51374 fail:
51375   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'eval_circ_structure'.\n"
51376     "  Possible C/C++ prototypes are:\n"
51377     "    my_eval_circ_structure(std::string,std::string,int,FILE *)\n"
51378     "    my_eval_circ_structure(std::vector< std::string,std::allocator< std::string > >,std::string,int,FILE *)\n");
51379   return 0;
51380 }
51381 
51382 
_wrap_eval_gquad_structure__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)51383 SWIGINTERN PyObject *_wrap_eval_gquad_structure__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
51384   PyObject *resultobj = 0;
51385   std::vector< std::string,std::allocator< std::string > > arg1 ;
51386   std::string arg2 ;
51387   int arg3 = (int) VRNA_VERBOSITY_QUIET ;
51388   FILE *arg4 = (FILE *) NULL ;
51389   int val3 ;
51390   int ecode3 = 0 ;
51391   float result;
51392 
51393   if ((nobjs < 2) || (nobjs > 4)) SWIG_fail;
51394   {
51395     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
51396     int res = swig::asptr(swig_obj[0], &ptr);
51397     if (!SWIG_IsOK(res) || !ptr) {
51398       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_gquad_structure" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
51399     }
51400     arg1 = *ptr;
51401     if (SWIG_IsNewObj(res)) delete ptr;
51402   }
51403   {
51404     std::string *ptr = (std::string *)0;
51405     int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
51406     if (!SWIG_IsOK(res) || !ptr) {
51407       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_gquad_structure" "', argument " "2"" of type '" "std::string""'");
51408     }
51409     arg2 = *ptr;
51410     if (SWIG_IsNewObj(res)) delete ptr;
51411   }
51412   if (swig_obj[2]) {
51413     ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
51414     if (!SWIG_IsOK(ecode3)) {
51415       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "eval_gquad_structure" "', argument " "3"" of type '" "int""'");
51416     }
51417     arg3 = static_cast< int >(val3);
51418   }
51419   if (swig_obj[3]) {
51420     {
51421       if (PyFile_Check(swig_obj[3])) /* check for undef */
51422       arg4 = PyFile_AsFile(swig_obj[3]);
51423       else  arg4 = NULL;
51424     }
51425   }
51426   {
51427     try {
51428       result = (float)my_eval_gquad_structure(arg1,arg2,arg3,arg4);
51429     } catch (const std::exception& e) {
51430       SWIG_exception(SWIG_RuntimeError, e.what());
51431     }
51432   }
51433   resultobj = SWIG_From_float(static_cast< float >(result));
51434   return resultobj;
51435 fail:
51436   return NULL;
51437 }
51438 
51439 
_wrap_eval_gquad_structure(PyObject * self,PyObject * args)51440 SWIGINTERN PyObject *_wrap_eval_gquad_structure(PyObject *self, PyObject *args) {
51441   Py_ssize_t argc;
51442   PyObject *argv[5] = {
51443     0
51444   };
51445 
51446   if (!(argc = SWIG_Python_UnpackTuple(args, "eval_gquad_structure", 0, 4, argv))) SWIG_fail;
51447   --argc;
51448   if ((argc >= 2) && (argc <= 4)) {
51449     int _v;
51450     int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
51451     _v = SWIG_CheckState(res);
51452     if (_v) {
51453       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
51454       _v = SWIG_CheckState(res);
51455       if (_v) {
51456         if (argc <= 2) {
51457           return _wrap_eval_gquad_structure__SWIG_0(self, argc, argv);
51458         }
51459         {
51460           int res = SWIG_AsVal_int(argv[2], NULL);
51461           _v = SWIG_CheckState(res);
51462         }
51463         if (_v) {
51464           if (argc <= 3) {
51465             return _wrap_eval_gquad_structure__SWIG_0(self, argc, argv);
51466           }
51467           {
51468             if (PyFile_Check(argv[3])) /* check for undef */
51469             _v = PyFile_AsFile(argv[3]) ? 1 : 0;
51470           }
51471           if (_v) {
51472             return _wrap_eval_gquad_structure__SWIG_0(self, argc, argv);
51473           }
51474         }
51475       }
51476     }
51477   }
51478   if ((argc >= 2) && (argc <= 4)) {
51479     int _v;
51480     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
51481     _v = SWIG_CheckState(res);
51482     if (_v) {
51483       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
51484       _v = SWIG_CheckState(res);
51485       if (_v) {
51486         if (argc <= 2) {
51487           return _wrap_eval_gquad_structure__SWIG_1(self, argc, argv);
51488         }
51489         {
51490           int res = SWIG_AsVal_int(argv[2], NULL);
51491           _v = SWIG_CheckState(res);
51492         }
51493         if (_v) {
51494           if (argc <= 3) {
51495             return _wrap_eval_gquad_structure__SWIG_1(self, argc, argv);
51496           }
51497           {
51498             if (PyFile_Check(argv[3])) /* check for undef */
51499             _v = PyFile_AsFile(argv[3]) ? 1 : 0;
51500           }
51501           if (_v) {
51502             return _wrap_eval_gquad_structure__SWIG_1(self, argc, argv);
51503           }
51504         }
51505       }
51506     }
51507   }
51508 
51509 fail:
51510   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'eval_gquad_structure'.\n"
51511     "  Possible C/C++ prototypes are:\n"
51512     "    my_eval_gquad_structure(std::string,std::string,int,FILE *)\n"
51513     "    my_eval_gquad_structure(std::vector< std::string,std::allocator< std::string > >,std::string,int,FILE *)\n");
51514   return 0;
51515 }
51516 
51517 
_wrap_eval_circ_gquad_structure__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)51518 SWIGINTERN PyObject *_wrap_eval_circ_gquad_structure__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
51519   PyObject *resultobj = 0;
51520   std::vector< std::string,std::allocator< std::string > > arg1 ;
51521   std::string arg2 ;
51522   int arg3 = (int) VRNA_VERBOSITY_QUIET ;
51523   FILE *arg4 = (FILE *) NULL ;
51524   int val3 ;
51525   int ecode3 = 0 ;
51526   float result;
51527 
51528   if ((nobjs < 2) || (nobjs > 4)) SWIG_fail;
51529   {
51530     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
51531     int res = swig::asptr(swig_obj[0], &ptr);
51532     if (!SWIG_IsOK(res) || !ptr) {
51533       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_circ_gquad_structure" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
51534     }
51535     arg1 = *ptr;
51536     if (SWIG_IsNewObj(res)) delete ptr;
51537   }
51538   {
51539     std::string *ptr = (std::string *)0;
51540     int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
51541     if (!SWIG_IsOK(res) || !ptr) {
51542       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_circ_gquad_structure" "', argument " "2"" of type '" "std::string""'");
51543     }
51544     arg2 = *ptr;
51545     if (SWIG_IsNewObj(res)) delete ptr;
51546   }
51547   if (swig_obj[2]) {
51548     ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
51549     if (!SWIG_IsOK(ecode3)) {
51550       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "eval_circ_gquad_structure" "', argument " "3"" of type '" "int""'");
51551     }
51552     arg3 = static_cast< int >(val3);
51553   }
51554   if (swig_obj[3]) {
51555     {
51556       if (PyFile_Check(swig_obj[3])) /* check for undef */
51557       arg4 = PyFile_AsFile(swig_obj[3]);
51558       else  arg4 = NULL;
51559     }
51560   }
51561   {
51562     try {
51563       result = (float)my_eval_circ_gquad_structure(arg1,arg2,arg3,arg4);
51564     } catch (const std::exception& e) {
51565       SWIG_exception(SWIG_RuntimeError, e.what());
51566     }
51567   }
51568   resultobj = SWIG_From_float(static_cast< float >(result));
51569   return resultobj;
51570 fail:
51571   return NULL;
51572 }
51573 
51574 
_wrap_eval_circ_gquad_structure(PyObject * self,PyObject * args)51575 SWIGINTERN PyObject *_wrap_eval_circ_gquad_structure(PyObject *self, PyObject *args) {
51576   Py_ssize_t argc;
51577   PyObject *argv[5] = {
51578     0
51579   };
51580 
51581   if (!(argc = SWIG_Python_UnpackTuple(args, "eval_circ_gquad_structure", 0, 4, argv))) SWIG_fail;
51582   --argc;
51583   if ((argc >= 2) && (argc <= 4)) {
51584     int _v;
51585     int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
51586     _v = SWIG_CheckState(res);
51587     if (_v) {
51588       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
51589       _v = SWIG_CheckState(res);
51590       if (_v) {
51591         if (argc <= 2) {
51592           return _wrap_eval_circ_gquad_structure__SWIG_0(self, argc, argv);
51593         }
51594         {
51595           int res = SWIG_AsVal_int(argv[2], NULL);
51596           _v = SWIG_CheckState(res);
51597         }
51598         if (_v) {
51599           if (argc <= 3) {
51600             return _wrap_eval_circ_gquad_structure__SWIG_0(self, argc, argv);
51601           }
51602           {
51603             if (PyFile_Check(argv[3])) /* check for undef */
51604             _v = PyFile_AsFile(argv[3]) ? 1 : 0;
51605           }
51606           if (_v) {
51607             return _wrap_eval_circ_gquad_structure__SWIG_0(self, argc, argv);
51608           }
51609         }
51610       }
51611     }
51612   }
51613   if ((argc >= 2) && (argc <= 4)) {
51614     int _v;
51615     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
51616     _v = SWIG_CheckState(res);
51617     if (_v) {
51618       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
51619       _v = SWIG_CheckState(res);
51620       if (_v) {
51621         if (argc <= 2) {
51622           return _wrap_eval_circ_gquad_structure__SWIG_1(self, argc, argv);
51623         }
51624         {
51625           int res = SWIG_AsVal_int(argv[2], NULL);
51626           _v = SWIG_CheckState(res);
51627         }
51628         if (_v) {
51629           if (argc <= 3) {
51630             return _wrap_eval_circ_gquad_structure__SWIG_1(self, argc, argv);
51631           }
51632           {
51633             if (PyFile_Check(argv[3])) /* check for undef */
51634             _v = PyFile_AsFile(argv[3]) ? 1 : 0;
51635           }
51636           if (_v) {
51637             return _wrap_eval_circ_gquad_structure__SWIG_1(self, argc, argv);
51638           }
51639         }
51640       }
51641     }
51642   }
51643 
51644 fail:
51645   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'eval_circ_gquad_structure'.\n"
51646     "  Possible C/C++ prototypes are:\n"
51647     "    my_eval_circ_gquad_structure(std::string,std::string,int,FILE *)\n"
51648     "    my_eval_circ_gquad_structure(std::vector< std::string,std::allocator< std::string > >,std::string,int,FILE *)\n");
51649   return 0;
51650 }
51651 
51652 
_wrap_eval_structure_pt_simple__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)51653 SWIGINTERN PyObject *_wrap_eval_structure_pt_simple__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
51654   PyObject *resultobj = 0;
51655   std::string arg1 ;
51656   std::vector< int,std::allocator< int > > arg2 ;
51657   int arg3 = (int) VRNA_VERBOSITY_QUIET ;
51658   FILE *arg4 = (FILE *) NULL ;
51659   int val3 ;
51660   int ecode3 = 0 ;
51661   float result;
51662 
51663   if ((nobjs < 2) || (nobjs > 4)) SWIG_fail;
51664   {
51665     std::string *ptr = (std::string *)0;
51666     int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
51667     if (!SWIG_IsOK(res) || !ptr) {
51668       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_structure_pt_simple" "', argument " "1"" of type '" "std::string""'");
51669     }
51670     arg1 = *ptr;
51671     if (SWIG_IsNewObj(res)) delete ptr;
51672   }
51673   {
51674     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
51675     int res = swig::asptr(swig_obj[1], &ptr);
51676     if (!SWIG_IsOK(res) || !ptr) {
51677       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_structure_pt_simple" "', argument " "2"" of type '" "std::vector< int,std::allocator< int > >""'");
51678     }
51679     arg2 = *ptr;
51680     if (SWIG_IsNewObj(res)) delete ptr;
51681   }
51682   if (swig_obj[2]) {
51683     ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
51684     if (!SWIG_IsOK(ecode3)) {
51685       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "eval_structure_pt_simple" "', argument " "3"" of type '" "int""'");
51686     }
51687     arg3 = static_cast< int >(val3);
51688   }
51689   if (swig_obj[3]) {
51690     {
51691       if (PyFile_Check(swig_obj[3])) /* check for undef */
51692       arg4 = PyFile_AsFile(swig_obj[3]);
51693       else  arg4 = NULL;
51694     }
51695   }
51696   {
51697     try {
51698       result = (float)my_eval_structure_pt_simple(arg1,arg2,arg3,arg4);
51699     } catch (const std::exception& e) {
51700       SWIG_exception(SWIG_RuntimeError, e.what());
51701     }
51702   }
51703   resultobj = SWIG_From_float(static_cast< float >(result));
51704   return resultobj;
51705 fail:
51706   return NULL;
51707 }
51708 
51709 
_wrap_eval_structure_pt_simple__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)51710 SWIGINTERN PyObject *_wrap_eval_structure_pt_simple__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
51711   PyObject *resultobj = 0;
51712   std::vector< std::string,std::allocator< std::string > > arg1 ;
51713   std::vector< int,std::allocator< int > > arg2 ;
51714   int arg3 = (int) VRNA_VERBOSITY_QUIET ;
51715   FILE *arg4 = (FILE *) NULL ;
51716   int val3 ;
51717   int ecode3 = 0 ;
51718   float result;
51719 
51720   if ((nobjs < 2) || (nobjs > 4)) SWIG_fail;
51721   {
51722     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
51723     int res = swig::asptr(swig_obj[0], &ptr);
51724     if (!SWIG_IsOK(res) || !ptr) {
51725       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_structure_pt_simple" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
51726     }
51727     arg1 = *ptr;
51728     if (SWIG_IsNewObj(res)) delete ptr;
51729   }
51730   {
51731     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
51732     int res = swig::asptr(swig_obj[1], &ptr);
51733     if (!SWIG_IsOK(res) || !ptr) {
51734       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "eval_structure_pt_simple" "', argument " "2"" of type '" "std::vector< int,std::allocator< int > >""'");
51735     }
51736     arg2 = *ptr;
51737     if (SWIG_IsNewObj(res)) delete ptr;
51738   }
51739   if (swig_obj[2]) {
51740     ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
51741     if (!SWIG_IsOK(ecode3)) {
51742       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "eval_structure_pt_simple" "', argument " "3"" of type '" "int""'");
51743     }
51744     arg3 = static_cast< int >(val3);
51745   }
51746   if (swig_obj[3]) {
51747     {
51748       if (PyFile_Check(swig_obj[3])) /* check for undef */
51749       arg4 = PyFile_AsFile(swig_obj[3]);
51750       else  arg4 = NULL;
51751     }
51752   }
51753   {
51754     try {
51755       result = (float)my_eval_structure_pt_simple(arg1,arg2,arg3,arg4);
51756     } catch (const std::exception& e) {
51757       SWIG_exception(SWIG_RuntimeError, e.what());
51758     }
51759   }
51760   resultobj = SWIG_From_float(static_cast< float >(result));
51761   return resultobj;
51762 fail:
51763   return NULL;
51764 }
51765 
51766 
_wrap_eval_structure_pt_simple(PyObject * self,PyObject * args)51767 SWIGINTERN PyObject *_wrap_eval_structure_pt_simple(PyObject *self, PyObject *args) {
51768   Py_ssize_t argc;
51769   PyObject *argv[5] = {
51770     0
51771   };
51772 
51773   if (!(argc = SWIG_Python_UnpackTuple(args, "eval_structure_pt_simple", 0, 4, argv))) SWIG_fail;
51774   --argc;
51775   if ((argc >= 2) && (argc <= 4)) {
51776     int _v;
51777     int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
51778     _v = SWIG_CheckState(res);
51779     if (_v) {
51780       int res = swig::asptr(argv[1], (std::vector< int,std::allocator< int > >**)(0));
51781       _v = SWIG_CheckState(res);
51782       if (_v) {
51783         if (argc <= 2) {
51784           return _wrap_eval_structure_pt_simple__SWIG_0(self, argc, argv);
51785         }
51786         {
51787           int res = SWIG_AsVal_int(argv[2], NULL);
51788           _v = SWIG_CheckState(res);
51789         }
51790         if (_v) {
51791           if (argc <= 3) {
51792             return _wrap_eval_structure_pt_simple__SWIG_0(self, argc, argv);
51793           }
51794           {
51795             if (PyFile_Check(argv[3])) /* check for undef */
51796             _v = PyFile_AsFile(argv[3]) ? 1 : 0;
51797           }
51798           if (_v) {
51799             return _wrap_eval_structure_pt_simple__SWIG_0(self, argc, argv);
51800           }
51801         }
51802       }
51803     }
51804   }
51805   if ((argc >= 2) && (argc <= 4)) {
51806     int _v;
51807     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
51808     _v = SWIG_CheckState(res);
51809     if (_v) {
51810       int res = swig::asptr(argv[1], (std::vector< int,std::allocator< int > >**)(0));
51811       _v = SWIG_CheckState(res);
51812       if (_v) {
51813         if (argc <= 2) {
51814           return _wrap_eval_structure_pt_simple__SWIG_1(self, argc, argv);
51815         }
51816         {
51817           int res = SWIG_AsVal_int(argv[2], NULL);
51818           _v = SWIG_CheckState(res);
51819         }
51820         if (_v) {
51821           if (argc <= 3) {
51822             return _wrap_eval_structure_pt_simple__SWIG_1(self, argc, argv);
51823           }
51824           {
51825             if (PyFile_Check(argv[3])) /* check for undef */
51826             _v = PyFile_AsFile(argv[3]) ? 1 : 0;
51827           }
51828           if (_v) {
51829             return _wrap_eval_structure_pt_simple__SWIG_1(self, argc, argv);
51830           }
51831         }
51832       }
51833     }
51834   }
51835 
51836 fail:
51837   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'eval_structure_pt_simple'.\n"
51838     "  Possible C/C++ prototypes are:\n"
51839     "    my_eval_structure_pt_simple(std::string,std::vector< int,std::allocator< int > >,int,FILE *)\n"
51840     "    my_eval_structure_pt_simple(std::vector< std::string,std::allocator< std::string > >,std::vector< int,std::allocator< int > >,int,FILE *)\n");
51841   return 0;
51842 }
51843 
51844 
Swig_var_cut_point_set(PyObject * _val)51845 SWIGINTERN int Swig_var_cut_point_set(PyObject *_val) {
51846   {
51847     int val;
51848     int res = SWIG_AsVal_int(_val, &val);
51849     if (!SWIG_IsOK(res)) {
51850       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""cut_point""' of type '""int""'");
51851     }
51852     cut_point = static_cast< int >(val);
51853   }
51854   return 0;
51855 fail:
51856   return 1;
51857 }
51858 
51859 
Swig_var_cut_point_get(void)51860 SWIGINTERN PyObject *Swig_var_cut_point_get(void) {
51861   PyObject *pyobj = 0;
51862 
51863   pyobj = SWIG_From_int(static_cast< int >(cut_point));
51864   return pyobj;
51865 }
51866 
51867 
Swig_var_eos_debug_set(PyObject * _val)51868 SWIGINTERN int Swig_var_eos_debug_set(PyObject *_val) {
51869   {
51870     int val;
51871     int res = SWIG_AsVal_int(_val, &val);
51872     if (!SWIG_IsOK(res)) {
51873       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""eos_debug""' of type '""int""'");
51874     }
51875     eos_debug = static_cast< int >(val);
51876   }
51877   return 0;
51878 fail:
51879   return 1;
51880 }
51881 
51882 
Swig_var_eos_debug_get(void)51883 SWIGINTERN PyObject *Swig_var_eos_debug_get(void) {
51884   PyObject *pyobj = 0;
51885 
51886   pyobj = SWIG_From_int(static_cast< int >(eos_debug));
51887   return pyobj;
51888 }
51889 
51890 
_wrap_energy_of_structure(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)51891 SWIGINTERN PyObject *_wrap_energy_of_structure(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51892   PyObject *resultobj = 0;
51893   char *arg1 = (char *) 0 ;
51894   char *arg2 = (char *) 0 ;
51895   int arg3 ;
51896   int res1 ;
51897   char *buf1 = 0 ;
51898   int alloc1 = 0 ;
51899   int res2 ;
51900   char *buf2 = 0 ;
51901   int alloc2 = 0 ;
51902   int val3 ;
51903   int ecode3 = 0 ;
51904   PyObject * obj0 = 0 ;
51905   PyObject * obj1 = 0 ;
51906   PyObject * obj2 = 0 ;
51907   char * kwnames[] = {
51908     (char *)"string",  (char *)"structure",  (char *)"verbosity_level",  NULL
51909   };
51910   float result;
51911 
51912   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:energy_of_structure", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
51913   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
51914   if (!SWIG_IsOK(res1)) {
51915     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "energy_of_structure" "', argument " "1"" of type '" "char const *""'");
51916   }
51917   arg1 = reinterpret_cast< char * >(buf1);
51918   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
51919   if (!SWIG_IsOK(res2)) {
51920     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "energy_of_structure" "', argument " "2"" of type '" "char const *""'");
51921   }
51922   arg2 = reinterpret_cast< char * >(buf2);
51923   ecode3 = SWIG_AsVal_int(obj2, &val3);
51924   if (!SWIG_IsOK(ecode3)) {
51925     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "energy_of_structure" "', argument " "3"" of type '" "int""'");
51926   }
51927   arg3 = static_cast< int >(val3);
51928   {
51929     try {
51930       result = (float)energy_of_structure((char const *)arg1,(char const *)arg2,arg3);
51931     } catch (const std::exception& e) {
51932       SWIG_exception(SWIG_RuntimeError, e.what());
51933     }
51934   }
51935   resultobj = SWIG_From_float(static_cast< float >(result));
51936   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
51937   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
51938   return resultobj;
51939 fail:
51940   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
51941   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
51942   return NULL;
51943 }
51944 
51945 
_wrap_energy_of_circ_structure(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)51946 SWIGINTERN PyObject *_wrap_energy_of_circ_structure(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51947   PyObject *resultobj = 0;
51948   char *arg1 = (char *) 0 ;
51949   char *arg2 = (char *) 0 ;
51950   int arg3 ;
51951   int res1 ;
51952   char *buf1 = 0 ;
51953   int alloc1 = 0 ;
51954   int res2 ;
51955   char *buf2 = 0 ;
51956   int alloc2 = 0 ;
51957   int val3 ;
51958   int ecode3 = 0 ;
51959   PyObject * obj0 = 0 ;
51960   PyObject * obj1 = 0 ;
51961   PyObject * obj2 = 0 ;
51962   char * kwnames[] = {
51963     (char *)"string",  (char *)"structure",  (char *)"verbosity_level",  NULL
51964   };
51965   float result;
51966 
51967   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:energy_of_circ_structure", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
51968   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
51969   if (!SWIG_IsOK(res1)) {
51970     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "energy_of_circ_structure" "', argument " "1"" of type '" "char const *""'");
51971   }
51972   arg1 = reinterpret_cast< char * >(buf1);
51973   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
51974   if (!SWIG_IsOK(res2)) {
51975     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "energy_of_circ_structure" "', argument " "2"" of type '" "char const *""'");
51976   }
51977   arg2 = reinterpret_cast< char * >(buf2);
51978   ecode3 = SWIG_AsVal_int(obj2, &val3);
51979   if (!SWIG_IsOK(ecode3)) {
51980     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "energy_of_circ_structure" "', argument " "3"" of type '" "int""'");
51981   }
51982   arg3 = static_cast< int >(val3);
51983   {
51984     try {
51985       result = (float)energy_of_circ_structure((char const *)arg1,(char const *)arg2,arg3);
51986     } catch (const std::exception& e) {
51987       SWIG_exception(SWIG_RuntimeError, e.what());
51988     }
51989   }
51990   resultobj = SWIG_From_float(static_cast< float >(result));
51991   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
51992   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
51993   return resultobj;
51994 fail:
51995   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
51996   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
51997   return NULL;
51998 }
51999 
52000 
_wrap_energy_of_gquad_structure(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)52001 SWIGINTERN PyObject *_wrap_energy_of_gquad_structure(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52002   PyObject *resultobj = 0;
52003   char *arg1 = (char *) 0 ;
52004   char *arg2 = (char *) 0 ;
52005   int arg3 ;
52006   int res1 ;
52007   char *buf1 = 0 ;
52008   int alloc1 = 0 ;
52009   int res2 ;
52010   char *buf2 = 0 ;
52011   int alloc2 = 0 ;
52012   int val3 ;
52013   int ecode3 = 0 ;
52014   PyObject * obj0 = 0 ;
52015   PyObject * obj1 = 0 ;
52016   PyObject * obj2 = 0 ;
52017   char * kwnames[] = {
52018     (char *)"string",  (char *)"structure",  (char *)"verbosity_level",  NULL
52019   };
52020   float result;
52021 
52022   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:energy_of_gquad_structure", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
52023   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
52024   if (!SWIG_IsOK(res1)) {
52025     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "energy_of_gquad_structure" "', argument " "1"" of type '" "char const *""'");
52026   }
52027   arg1 = reinterpret_cast< char * >(buf1);
52028   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
52029   if (!SWIG_IsOK(res2)) {
52030     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "energy_of_gquad_structure" "', argument " "2"" of type '" "char const *""'");
52031   }
52032   arg2 = reinterpret_cast< char * >(buf2);
52033   ecode3 = SWIG_AsVal_int(obj2, &val3);
52034   if (!SWIG_IsOK(ecode3)) {
52035     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "energy_of_gquad_structure" "', argument " "3"" of type '" "int""'");
52036   }
52037   arg3 = static_cast< int >(val3);
52038   {
52039     try {
52040       result = (float)energy_of_gquad_structure((char const *)arg1,(char const *)arg2,arg3);
52041     } catch (const std::exception& e) {
52042       SWIG_exception(SWIG_RuntimeError, e.what());
52043     }
52044   }
52045   resultobj = SWIG_From_float(static_cast< float >(result));
52046   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
52047   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
52048   return resultobj;
52049 fail:
52050   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
52051   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
52052   return NULL;
52053 }
52054 
52055 
_wrap_energy_of_structure_pt(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)52056 SWIGINTERN PyObject *_wrap_energy_of_structure_pt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52057   PyObject *resultobj = 0;
52058   char *arg1 = (char *) 0 ;
52059   short *arg2 = (short *) 0 ;
52060   short *arg3 = (short *) 0 ;
52061   short *arg4 = (short *) 0 ;
52062   int arg5 ;
52063   int res1 ;
52064   char *buf1 = 0 ;
52065   int alloc1 = 0 ;
52066   void *argp2 = 0 ;
52067   int res2 = 0 ;
52068   void *argp3 = 0 ;
52069   int res3 = 0 ;
52070   void *argp4 = 0 ;
52071   int res4 = 0 ;
52072   int val5 ;
52073   int ecode5 = 0 ;
52074   PyObject * obj0 = 0 ;
52075   PyObject * obj1 = 0 ;
52076   PyObject * obj2 = 0 ;
52077   PyObject * obj3 = 0 ;
52078   PyObject * obj4 = 0 ;
52079   char * kwnames[] = {
52080     (char *)"string",  (char *)"ptable",  (char *)"s",  (char *)"s1",  (char *)"verbosity_level",  NULL
52081   };
52082   int result;
52083 
52084   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:energy_of_structure_pt", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
52085   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
52086   if (!SWIG_IsOK(res1)) {
52087     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "energy_of_structure_pt" "', argument " "1"" of type '" "char const *""'");
52088   }
52089   arg1 = reinterpret_cast< char * >(buf1);
52090   res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_short, 0 |  0 );
52091   if (!SWIG_IsOK(res2)) {
52092     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "energy_of_structure_pt" "', argument " "2"" of type '" "short *""'");
52093   }
52094   arg2 = reinterpret_cast< short * >(argp2);
52095   res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_short, 0 |  0 );
52096   if (!SWIG_IsOK(res3)) {
52097     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "energy_of_structure_pt" "', argument " "3"" of type '" "short *""'");
52098   }
52099   arg3 = reinterpret_cast< short * >(argp3);
52100   res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_short, 0 |  0 );
52101   if (!SWIG_IsOK(res4)) {
52102     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "energy_of_structure_pt" "', argument " "4"" of type '" "short *""'");
52103   }
52104   arg4 = reinterpret_cast< short * >(argp4);
52105   ecode5 = SWIG_AsVal_int(obj4, &val5);
52106   if (!SWIG_IsOK(ecode5)) {
52107     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "energy_of_structure_pt" "', argument " "5"" of type '" "int""'");
52108   }
52109   arg5 = static_cast< int >(val5);
52110   {
52111     try {
52112       result = (int)energy_of_structure_pt((char const *)arg1,arg2,arg3,arg4,arg5);
52113     } catch (const std::exception& e) {
52114       SWIG_exception(SWIG_RuntimeError, e.what());
52115     }
52116   }
52117   resultobj = SWIG_From_int(static_cast< int >(result));
52118   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
52119   return resultobj;
52120 fail:
52121   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
52122   return NULL;
52123 }
52124 
52125 
_wrap_energy_of_move(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)52126 SWIGINTERN PyObject *_wrap_energy_of_move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52127   PyObject *resultobj = 0;
52128   char *arg1 = (char *) 0 ;
52129   char *arg2 = (char *) 0 ;
52130   int arg3 ;
52131   int arg4 ;
52132   int res1 ;
52133   char *buf1 = 0 ;
52134   int alloc1 = 0 ;
52135   int res2 ;
52136   char *buf2 = 0 ;
52137   int alloc2 = 0 ;
52138   int val3 ;
52139   int ecode3 = 0 ;
52140   int val4 ;
52141   int ecode4 = 0 ;
52142   PyObject * obj0 = 0 ;
52143   PyObject * obj1 = 0 ;
52144   PyObject * obj2 = 0 ;
52145   PyObject * obj3 = 0 ;
52146   char * kwnames[] = {
52147     (char *)"string",  (char *)"structure",  (char *)"m1",  (char *)"m2",  NULL
52148   };
52149   float result;
52150 
52151   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:energy_of_move", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
52152   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
52153   if (!SWIG_IsOK(res1)) {
52154     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "energy_of_move" "', argument " "1"" of type '" "char const *""'");
52155   }
52156   arg1 = reinterpret_cast< char * >(buf1);
52157   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
52158   if (!SWIG_IsOK(res2)) {
52159     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "energy_of_move" "', argument " "2"" of type '" "char const *""'");
52160   }
52161   arg2 = reinterpret_cast< char * >(buf2);
52162   ecode3 = SWIG_AsVal_int(obj2, &val3);
52163   if (!SWIG_IsOK(ecode3)) {
52164     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "energy_of_move" "', argument " "3"" of type '" "int""'");
52165   }
52166   arg3 = static_cast< int >(val3);
52167   ecode4 = SWIG_AsVal_int(obj3, &val4);
52168   if (!SWIG_IsOK(ecode4)) {
52169     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "energy_of_move" "', argument " "4"" of type '" "int""'");
52170   }
52171   arg4 = static_cast< int >(val4);
52172   {
52173     try {
52174       result = (float)energy_of_move((char const *)arg1,(char const *)arg2,arg3,arg4);
52175     } catch (const std::exception& e) {
52176       SWIG_exception(SWIG_RuntimeError, e.what());
52177     }
52178   }
52179   resultobj = SWIG_From_float(static_cast< float >(result));
52180   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
52181   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
52182   return resultobj;
52183 fail:
52184   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
52185   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
52186   return NULL;
52187 }
52188 
52189 
_wrap_energy_of_move_pt(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)52190 SWIGINTERN PyObject *_wrap_energy_of_move_pt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52191   PyObject *resultobj = 0;
52192   short *arg1 = (short *) 0 ;
52193   short *arg2 = (short *) 0 ;
52194   short *arg3 = (short *) 0 ;
52195   int arg4 ;
52196   int arg5 ;
52197   void *argp1 = 0 ;
52198   int res1 = 0 ;
52199   void *argp2 = 0 ;
52200   int res2 = 0 ;
52201   void *argp3 = 0 ;
52202   int res3 = 0 ;
52203   int val4 ;
52204   int ecode4 = 0 ;
52205   int val5 ;
52206   int ecode5 = 0 ;
52207   PyObject * obj0 = 0 ;
52208   PyObject * obj1 = 0 ;
52209   PyObject * obj2 = 0 ;
52210   PyObject * obj3 = 0 ;
52211   PyObject * obj4 = 0 ;
52212   char * kwnames[] = {
52213     (char *)"pt",  (char *)"s",  (char *)"s1",  (char *)"m1",  (char *)"m2",  NULL
52214   };
52215   int result;
52216 
52217   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:energy_of_move_pt", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
52218   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_short, 0 |  0 );
52219   if (!SWIG_IsOK(res1)) {
52220     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "energy_of_move_pt" "', argument " "1"" of type '" "short *""'");
52221   }
52222   arg1 = reinterpret_cast< short * >(argp1);
52223   res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_short, 0 |  0 );
52224   if (!SWIG_IsOK(res2)) {
52225     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "energy_of_move_pt" "', argument " "2"" of type '" "short *""'");
52226   }
52227   arg2 = reinterpret_cast< short * >(argp2);
52228   res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_short, 0 |  0 );
52229   if (!SWIG_IsOK(res3)) {
52230     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "energy_of_move_pt" "', argument " "3"" of type '" "short *""'");
52231   }
52232   arg3 = reinterpret_cast< short * >(argp3);
52233   ecode4 = SWIG_AsVal_int(obj3, &val4);
52234   if (!SWIG_IsOK(ecode4)) {
52235     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "energy_of_move_pt" "', argument " "4"" of type '" "int""'");
52236   }
52237   arg4 = static_cast< int >(val4);
52238   ecode5 = SWIG_AsVal_int(obj4, &val5);
52239   if (!SWIG_IsOK(ecode5)) {
52240     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "energy_of_move_pt" "', argument " "5"" of type '" "int""'");
52241   }
52242   arg5 = static_cast< int >(val5);
52243   {
52244     try {
52245       result = (int)energy_of_move_pt(arg1,arg2,arg3,arg4,arg5);
52246     } catch (const std::exception& e) {
52247       SWIG_exception(SWIG_RuntimeError, e.what());
52248     }
52249   }
52250   resultobj = SWIG_From_int(static_cast< int >(result));
52251   return resultobj;
52252 fail:
52253   return NULL;
52254 }
52255 
52256 
_wrap_loop_energy(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)52257 SWIGINTERN PyObject *_wrap_loop_energy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52258   PyObject *resultobj = 0;
52259   short *arg1 = (short *) 0 ;
52260   short *arg2 = (short *) 0 ;
52261   short *arg3 = (short *) 0 ;
52262   int arg4 ;
52263   void *argp1 = 0 ;
52264   int res1 = 0 ;
52265   void *argp2 = 0 ;
52266   int res2 = 0 ;
52267   void *argp3 = 0 ;
52268   int res3 = 0 ;
52269   int val4 ;
52270   int ecode4 = 0 ;
52271   PyObject * obj0 = 0 ;
52272   PyObject * obj1 = 0 ;
52273   PyObject * obj2 = 0 ;
52274   PyObject * obj3 = 0 ;
52275   char * kwnames[] = {
52276     (char *)"ptable",  (char *)"s",  (char *)"s1",  (char *)"i",  NULL
52277   };
52278   int result;
52279 
52280   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:loop_energy", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
52281   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_short, 0 |  0 );
52282   if (!SWIG_IsOK(res1)) {
52283     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "loop_energy" "', argument " "1"" of type '" "short *""'");
52284   }
52285   arg1 = reinterpret_cast< short * >(argp1);
52286   res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_short, 0 |  0 );
52287   if (!SWIG_IsOK(res2)) {
52288     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "loop_energy" "', argument " "2"" of type '" "short *""'");
52289   }
52290   arg2 = reinterpret_cast< short * >(argp2);
52291   res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_short, 0 |  0 );
52292   if (!SWIG_IsOK(res3)) {
52293     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "loop_energy" "', argument " "3"" of type '" "short *""'");
52294   }
52295   arg3 = reinterpret_cast< short * >(argp3);
52296   ecode4 = SWIG_AsVal_int(obj3, &val4);
52297   if (!SWIG_IsOK(ecode4)) {
52298     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "loop_energy" "', argument " "4"" of type '" "int""'");
52299   }
52300   arg4 = static_cast< int >(val4);
52301   {
52302     try {
52303       result = (int)loop_energy(arg1,arg2,arg3,arg4);
52304     } catch (const std::exception& e) {
52305       SWIG_exception(SWIG_RuntimeError, e.what());
52306     }
52307   }
52308   resultobj = SWIG_From_int(static_cast< int >(result));
52309   return resultobj;
52310 fail:
52311   return NULL;
52312 }
52313 
52314 
_wrap_energy_of_struct(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)52315 SWIGINTERN PyObject *_wrap_energy_of_struct(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52316   PyObject *resultobj = 0;
52317   char *arg1 = (char *) 0 ;
52318   char *arg2 = (char *) 0 ;
52319   int res1 ;
52320   char *buf1 = 0 ;
52321   int alloc1 = 0 ;
52322   int res2 ;
52323   char *buf2 = 0 ;
52324   int alloc2 = 0 ;
52325   PyObject * obj0 = 0 ;
52326   PyObject * obj1 = 0 ;
52327   char * kwnames[] = {
52328     (char *)"string",  (char *)"structure",  NULL
52329   };
52330   float result;
52331 
52332   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:energy_of_struct", kwnames, &obj0, &obj1)) SWIG_fail;
52333   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
52334   if (!SWIG_IsOK(res1)) {
52335     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "energy_of_struct" "', argument " "1"" of type '" "char const *""'");
52336   }
52337   arg1 = reinterpret_cast< char * >(buf1);
52338   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
52339   if (!SWIG_IsOK(res2)) {
52340     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "energy_of_struct" "', argument " "2"" of type '" "char const *""'");
52341   }
52342   arg2 = reinterpret_cast< char * >(buf2);
52343   {
52344     try {
52345       result = (float)energy_of_struct((char const *)arg1,(char const *)arg2);
52346     } catch (const std::exception& e) {
52347       SWIG_exception(SWIG_RuntimeError, e.what());
52348     }
52349   }
52350   resultobj = SWIG_From_float(static_cast< float >(result));
52351   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
52352   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
52353   return resultobj;
52354 fail:
52355   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
52356   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
52357   return NULL;
52358 }
52359 
52360 
_wrap_energy_of_struct_pt(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)52361 SWIGINTERN PyObject *_wrap_energy_of_struct_pt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52362   PyObject *resultobj = 0;
52363   char *arg1 = (char *) 0 ;
52364   short *arg2 = (short *) 0 ;
52365   short *arg3 = (short *) 0 ;
52366   short *arg4 = (short *) 0 ;
52367   int res1 ;
52368   char *buf1 = 0 ;
52369   int alloc1 = 0 ;
52370   void *argp2 = 0 ;
52371   int res2 = 0 ;
52372   void *argp3 = 0 ;
52373   int res3 = 0 ;
52374   void *argp4 = 0 ;
52375   int res4 = 0 ;
52376   PyObject * obj0 = 0 ;
52377   PyObject * obj1 = 0 ;
52378   PyObject * obj2 = 0 ;
52379   PyObject * obj3 = 0 ;
52380   char * kwnames[] = {
52381     (char *)"string",  (char *)"ptable",  (char *)"s",  (char *)"s1",  NULL
52382   };
52383   int result;
52384 
52385   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:energy_of_struct_pt", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
52386   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
52387   if (!SWIG_IsOK(res1)) {
52388     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "energy_of_struct_pt" "', argument " "1"" of type '" "char const *""'");
52389   }
52390   arg1 = reinterpret_cast< char * >(buf1);
52391   res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_short, 0 |  0 );
52392   if (!SWIG_IsOK(res2)) {
52393     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "energy_of_struct_pt" "', argument " "2"" of type '" "short *""'");
52394   }
52395   arg2 = reinterpret_cast< short * >(argp2);
52396   res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_short, 0 |  0 );
52397   if (!SWIG_IsOK(res3)) {
52398     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "energy_of_struct_pt" "', argument " "3"" of type '" "short *""'");
52399   }
52400   arg3 = reinterpret_cast< short * >(argp3);
52401   res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_short, 0 |  0 );
52402   if (!SWIG_IsOK(res4)) {
52403     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "energy_of_struct_pt" "', argument " "4"" of type '" "short *""'");
52404   }
52405   arg4 = reinterpret_cast< short * >(argp4);
52406   {
52407     try {
52408       result = (int)energy_of_struct_pt((char const *)arg1,arg2,arg3,arg4);
52409     } catch (const std::exception& e) {
52410       SWIG_exception(SWIG_RuntimeError, e.what());
52411     }
52412   }
52413   resultobj = SWIG_From_int(static_cast< int >(result));
52414   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
52415   return resultobj;
52416 fail:
52417   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
52418   return NULL;
52419 }
52420 
52421 
_wrap_energy_of_circ_struct(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)52422 SWIGINTERN PyObject *_wrap_energy_of_circ_struct(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52423   PyObject *resultobj = 0;
52424   char *arg1 = (char *) 0 ;
52425   char *arg2 = (char *) 0 ;
52426   int res1 ;
52427   char *buf1 = 0 ;
52428   int alloc1 = 0 ;
52429   int res2 ;
52430   char *buf2 = 0 ;
52431   int alloc2 = 0 ;
52432   PyObject * obj0 = 0 ;
52433   PyObject * obj1 = 0 ;
52434   char * kwnames[] = {
52435     (char *)"string",  (char *)"structure",  NULL
52436   };
52437   float result;
52438 
52439   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:energy_of_circ_struct", kwnames, &obj0, &obj1)) SWIG_fail;
52440   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
52441   if (!SWIG_IsOK(res1)) {
52442     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "energy_of_circ_struct" "', argument " "1"" of type '" "char const *""'");
52443   }
52444   arg1 = reinterpret_cast< char * >(buf1);
52445   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
52446   if (!SWIG_IsOK(res2)) {
52447     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "energy_of_circ_struct" "', argument " "2"" of type '" "char const *""'");
52448   }
52449   arg2 = reinterpret_cast< char * >(buf2);
52450   {
52451     try {
52452       result = (float)energy_of_circ_struct((char const *)arg1,(char const *)arg2);
52453     } catch (const std::exception& e) {
52454       SWIG_exception(SWIG_RuntimeError, e.what());
52455     }
52456   }
52457   resultobj = SWIG_From_float(static_cast< float >(result));
52458   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
52459   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
52460   return resultobj;
52461 fail:
52462   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
52463   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
52464   return NULL;
52465 }
52466 
52467 
_wrap_E_ext_stem(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)52468 SWIGINTERN PyObject *_wrap_E_ext_stem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52469   PyObject *resultobj = 0;
52470   unsigned int arg1 ;
52471   int arg2 ;
52472   int arg3 ;
52473   vrna_param_t *arg4 = (vrna_param_t *) 0 ;
52474   unsigned int val1 ;
52475   int ecode1 = 0 ;
52476   int val2 ;
52477   int ecode2 = 0 ;
52478   int val3 ;
52479   int ecode3 = 0 ;
52480   void *argp4 = 0 ;
52481   int res4 = 0 ;
52482   PyObject * obj0 = 0 ;
52483   PyObject * obj1 = 0 ;
52484   PyObject * obj2 = 0 ;
52485   PyObject * obj3 = 0 ;
52486   char * kwnames[] = {
52487     (char *)"type",  (char *)"n5d",  (char *)"n3d",  (char *)"p",  NULL
52488   };
52489   int result;
52490 
52491   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:E_ext_stem", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
52492   ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
52493   if (!SWIG_IsOK(ecode1)) {
52494     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "E_ext_stem" "', argument " "1"" of type '" "unsigned int""'");
52495   }
52496   arg1 = static_cast< unsigned int >(val1);
52497   ecode2 = SWIG_AsVal_int(obj1, &val2);
52498   if (!SWIG_IsOK(ecode2)) {
52499     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "E_ext_stem" "', argument " "2"" of type '" "int""'");
52500   }
52501   arg2 = static_cast< int >(val2);
52502   ecode3 = SWIG_AsVal_int(obj2, &val3);
52503   if (!SWIG_IsOK(ecode3)) {
52504     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "E_ext_stem" "', argument " "3"" of type '" "int""'");
52505   }
52506   arg3 = static_cast< int >(val3);
52507   res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_vrna_param_t, 0 |  0 );
52508   if (!SWIG_IsOK(res4)) {
52509     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "E_ext_stem" "', argument " "4"" of type '" "vrna_param_t *""'");
52510   }
52511   arg4 = reinterpret_cast< vrna_param_t * >(argp4);
52512   {
52513     try {
52514       result = (int)vrna_E_ext_stem(arg1,arg2,arg3,arg4);
52515     } catch (const std::exception& e) {
52516       SWIG_exception(SWIG_RuntimeError, e.what());
52517     }
52518   }
52519   resultobj = SWIG_From_int(static_cast< int >(result));
52520   return resultobj;
52521 fail:
52522   return NULL;
52523 }
52524 
52525 
_wrap_exp_E_ext_stem(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)52526 SWIGINTERN PyObject *_wrap_exp_E_ext_stem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52527   PyObject *resultobj = 0;
52528   unsigned int arg1 ;
52529   int arg2 ;
52530   int arg3 ;
52531   vrna_exp_param_t *arg4 = (vrna_exp_param_t *) 0 ;
52532   unsigned int val1 ;
52533   int ecode1 = 0 ;
52534   int val2 ;
52535   int ecode2 = 0 ;
52536   int val3 ;
52537   int ecode3 = 0 ;
52538   void *argp4 = 0 ;
52539   int res4 = 0 ;
52540   PyObject * obj0 = 0 ;
52541   PyObject * obj1 = 0 ;
52542   PyObject * obj2 = 0 ;
52543   PyObject * obj3 = 0 ;
52544   char * kwnames[] = {
52545     (char *)"type",  (char *)"n5d",  (char *)"n3d",  (char *)"p",  NULL
52546   };
52547   FLT_OR_DBL result;
52548 
52549   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:exp_E_ext_stem", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
52550   ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
52551   if (!SWIG_IsOK(ecode1)) {
52552     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "exp_E_ext_stem" "', argument " "1"" of type '" "unsigned int""'");
52553   }
52554   arg1 = static_cast< unsigned int >(val1);
52555   ecode2 = SWIG_AsVal_int(obj1, &val2);
52556   if (!SWIG_IsOK(ecode2)) {
52557     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "exp_E_ext_stem" "', argument " "2"" of type '" "int""'");
52558   }
52559   arg2 = static_cast< int >(val2);
52560   ecode3 = SWIG_AsVal_int(obj2, &val3);
52561   if (!SWIG_IsOK(ecode3)) {
52562     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "exp_E_ext_stem" "', argument " "3"" of type '" "int""'");
52563   }
52564   arg3 = static_cast< int >(val3);
52565   res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
52566   if (!SWIG_IsOK(res4)) {
52567     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "exp_E_ext_stem" "', argument " "4"" of type '" "vrna_exp_param_t *""'");
52568   }
52569   arg4 = reinterpret_cast< vrna_exp_param_t * >(argp4);
52570   {
52571     try {
52572       result = (FLT_OR_DBL)vrna_exp_E_ext_stem(arg1,arg2,arg3,arg4);
52573     } catch (const std::exception& e) {
52574       SWIG_exception(SWIG_RuntimeError, e.what());
52575     }
52576   }
52577   resultobj = SWIG_From_double(static_cast< double >(result));
52578   return resultobj;
52579 fail:
52580   return NULL;
52581 }
52582 
52583 
_wrap_E_Stem(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)52584 SWIGINTERN PyObject *_wrap_E_Stem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52585   PyObject *resultobj = 0;
52586   int arg1 ;
52587   int arg2 ;
52588   int arg3 ;
52589   int arg4 ;
52590   vrna_param_t *arg5 = (vrna_param_t *) 0 ;
52591   int val1 ;
52592   int ecode1 = 0 ;
52593   int val2 ;
52594   int ecode2 = 0 ;
52595   int val3 ;
52596   int ecode3 = 0 ;
52597   int val4 ;
52598   int ecode4 = 0 ;
52599   void *argp5 = 0 ;
52600   int res5 = 0 ;
52601   PyObject * obj0 = 0 ;
52602   PyObject * obj1 = 0 ;
52603   PyObject * obj2 = 0 ;
52604   PyObject * obj3 = 0 ;
52605   PyObject * obj4 = 0 ;
52606   char * kwnames[] = {
52607     (char *)"type",  (char *)"si1",  (char *)"sj1",  (char *)"extLoop",  (char *)"P",  NULL
52608   };
52609   int result;
52610 
52611   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:E_Stem", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
52612   ecode1 = SWIG_AsVal_int(obj0, &val1);
52613   if (!SWIG_IsOK(ecode1)) {
52614     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "E_Stem" "', argument " "1"" of type '" "int""'");
52615   }
52616   arg1 = static_cast< int >(val1);
52617   ecode2 = SWIG_AsVal_int(obj1, &val2);
52618   if (!SWIG_IsOK(ecode2)) {
52619     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "E_Stem" "', argument " "2"" of type '" "int""'");
52620   }
52621   arg2 = static_cast< int >(val2);
52622   ecode3 = SWIG_AsVal_int(obj2, &val3);
52623   if (!SWIG_IsOK(ecode3)) {
52624     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "E_Stem" "', argument " "3"" of type '" "int""'");
52625   }
52626   arg3 = static_cast< int >(val3);
52627   ecode4 = SWIG_AsVal_int(obj3, &val4);
52628   if (!SWIG_IsOK(ecode4)) {
52629     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "E_Stem" "', argument " "4"" of type '" "int""'");
52630   }
52631   arg4 = static_cast< int >(val4);
52632   res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_vrna_param_t, 0 |  0 );
52633   if (!SWIG_IsOK(res5)) {
52634     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "E_Stem" "', argument " "5"" of type '" "vrna_param_t *""'");
52635   }
52636   arg5 = reinterpret_cast< vrna_param_t * >(argp5);
52637   {
52638     try {
52639       result = (int)E_Stem(arg1,arg2,arg3,arg4,arg5);
52640     } catch (const std::exception& e) {
52641       SWIG_exception(SWIG_RuntimeError, e.what());
52642     }
52643   }
52644   resultobj = SWIG_From_int(static_cast< int >(result));
52645   return resultobj;
52646 fail:
52647   return NULL;
52648 }
52649 
52650 
_wrap_E_ExtLoop(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)52651 SWIGINTERN PyObject *_wrap_E_ExtLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52652   PyObject *resultobj = 0;
52653   int arg1 ;
52654   int arg2 ;
52655   int arg3 ;
52656   vrna_param_t *arg4 = (vrna_param_t *) 0 ;
52657   int val1 ;
52658   int ecode1 = 0 ;
52659   int val2 ;
52660   int ecode2 = 0 ;
52661   int val3 ;
52662   int ecode3 = 0 ;
52663   void *argp4 = 0 ;
52664   int res4 = 0 ;
52665   PyObject * obj0 = 0 ;
52666   PyObject * obj1 = 0 ;
52667   PyObject * obj2 = 0 ;
52668   PyObject * obj3 = 0 ;
52669   char * kwnames[] = {
52670     (char *)"type",  (char *)"si1",  (char *)"sj1",  (char *)"P",  NULL
52671   };
52672   int result;
52673 
52674   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:E_ExtLoop", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
52675   ecode1 = SWIG_AsVal_int(obj0, &val1);
52676   if (!SWIG_IsOK(ecode1)) {
52677     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "E_ExtLoop" "', argument " "1"" of type '" "int""'");
52678   }
52679   arg1 = static_cast< int >(val1);
52680   ecode2 = SWIG_AsVal_int(obj1, &val2);
52681   if (!SWIG_IsOK(ecode2)) {
52682     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "E_ExtLoop" "', argument " "2"" of type '" "int""'");
52683   }
52684   arg2 = static_cast< int >(val2);
52685   ecode3 = SWIG_AsVal_int(obj2, &val3);
52686   if (!SWIG_IsOK(ecode3)) {
52687     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "E_ExtLoop" "', argument " "3"" of type '" "int""'");
52688   }
52689   arg3 = static_cast< int >(val3);
52690   res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_vrna_param_t, 0 |  0 );
52691   if (!SWIG_IsOK(res4)) {
52692     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "E_ExtLoop" "', argument " "4"" of type '" "vrna_param_t *""'");
52693   }
52694   arg4 = reinterpret_cast< vrna_param_t * >(argp4);
52695   {
52696     try {
52697       result = (int)E_ExtLoop(arg1,arg2,arg3,arg4);
52698     } catch (const std::exception& e) {
52699       SWIG_exception(SWIG_RuntimeError, e.what());
52700     }
52701   }
52702   resultobj = SWIG_From_int(static_cast< int >(result));
52703   return resultobj;
52704 fail:
52705   return NULL;
52706 }
52707 
52708 
_wrap_exp_E_ExtLoop(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)52709 SWIGINTERN PyObject *_wrap_exp_E_ExtLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52710   PyObject *resultobj = 0;
52711   int arg1 ;
52712   int arg2 ;
52713   int arg3 ;
52714   vrna_exp_param_t *arg4 = (vrna_exp_param_t *) 0 ;
52715   int val1 ;
52716   int ecode1 = 0 ;
52717   int val2 ;
52718   int ecode2 = 0 ;
52719   int val3 ;
52720   int ecode3 = 0 ;
52721   void *argp4 = 0 ;
52722   int res4 = 0 ;
52723   PyObject * obj0 = 0 ;
52724   PyObject * obj1 = 0 ;
52725   PyObject * obj2 = 0 ;
52726   PyObject * obj3 = 0 ;
52727   char * kwnames[] = {
52728     (char *)"type",  (char *)"si1",  (char *)"sj1",  (char *)"P",  NULL
52729   };
52730   FLT_OR_DBL result;
52731 
52732   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:exp_E_ExtLoop", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
52733   ecode1 = SWIG_AsVal_int(obj0, &val1);
52734   if (!SWIG_IsOK(ecode1)) {
52735     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "exp_E_ExtLoop" "', argument " "1"" of type '" "int""'");
52736   }
52737   arg1 = static_cast< int >(val1);
52738   ecode2 = SWIG_AsVal_int(obj1, &val2);
52739   if (!SWIG_IsOK(ecode2)) {
52740     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "exp_E_ExtLoop" "', argument " "2"" of type '" "int""'");
52741   }
52742   arg2 = static_cast< int >(val2);
52743   ecode3 = SWIG_AsVal_int(obj2, &val3);
52744   if (!SWIG_IsOK(ecode3)) {
52745     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "exp_E_ExtLoop" "', argument " "3"" of type '" "int""'");
52746   }
52747   arg3 = static_cast< int >(val3);
52748   res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
52749   if (!SWIG_IsOK(res4)) {
52750     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "exp_E_ExtLoop" "', argument " "4"" of type '" "vrna_exp_param_t *""'");
52751   }
52752   arg4 = reinterpret_cast< vrna_exp_param_t * >(argp4);
52753   {
52754     try {
52755       result = (FLT_OR_DBL)exp_E_ExtLoop(arg1,arg2,arg3,arg4);
52756     } catch (const std::exception& e) {
52757       SWIG_exception(SWIG_RuntimeError, e.what());
52758     }
52759   }
52760   resultobj = SWIG_From_double(static_cast< double >(result));
52761   return resultobj;
52762 fail:
52763   return NULL;
52764 }
52765 
52766 
_wrap_exp_E_Stem(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)52767 SWIGINTERN PyObject *_wrap_exp_E_Stem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52768   PyObject *resultobj = 0;
52769   int arg1 ;
52770   int arg2 ;
52771   int arg3 ;
52772   int arg4 ;
52773   vrna_exp_param_t *arg5 = (vrna_exp_param_t *) 0 ;
52774   int val1 ;
52775   int ecode1 = 0 ;
52776   int val2 ;
52777   int ecode2 = 0 ;
52778   int val3 ;
52779   int ecode3 = 0 ;
52780   int val4 ;
52781   int ecode4 = 0 ;
52782   void *argp5 = 0 ;
52783   int res5 = 0 ;
52784   PyObject * obj0 = 0 ;
52785   PyObject * obj1 = 0 ;
52786   PyObject * obj2 = 0 ;
52787   PyObject * obj3 = 0 ;
52788   PyObject * obj4 = 0 ;
52789   char * kwnames[] = {
52790     (char *)"type",  (char *)"si1",  (char *)"sj1",  (char *)"extLoop",  (char *)"P",  NULL
52791   };
52792   FLT_OR_DBL result;
52793 
52794   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:exp_E_Stem", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
52795   ecode1 = SWIG_AsVal_int(obj0, &val1);
52796   if (!SWIG_IsOK(ecode1)) {
52797     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "exp_E_Stem" "', argument " "1"" of type '" "int""'");
52798   }
52799   arg1 = static_cast< int >(val1);
52800   ecode2 = SWIG_AsVal_int(obj1, &val2);
52801   if (!SWIG_IsOK(ecode2)) {
52802     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "exp_E_Stem" "', argument " "2"" of type '" "int""'");
52803   }
52804   arg2 = static_cast< int >(val2);
52805   ecode3 = SWIG_AsVal_int(obj2, &val3);
52806   if (!SWIG_IsOK(ecode3)) {
52807     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "exp_E_Stem" "', argument " "3"" of type '" "int""'");
52808   }
52809   arg3 = static_cast< int >(val3);
52810   ecode4 = SWIG_AsVal_int(obj3, &val4);
52811   if (!SWIG_IsOK(ecode4)) {
52812     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "exp_E_Stem" "', argument " "4"" of type '" "int""'");
52813   }
52814   arg4 = static_cast< int >(val4);
52815   res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
52816   if (!SWIG_IsOK(res5)) {
52817     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "exp_E_Stem" "', argument " "5"" of type '" "vrna_exp_param_t *""'");
52818   }
52819   arg5 = reinterpret_cast< vrna_exp_param_t * >(argp5);
52820   {
52821     try {
52822       result = (FLT_OR_DBL)exp_E_Stem(arg1,arg2,arg3,arg4,arg5);
52823     } catch (const std::exception& e) {
52824       SWIG_exception(SWIG_RuntimeError, e.what());
52825     }
52826   }
52827   resultobj = SWIG_From_double(static_cast< double >(result));
52828   return resultobj;
52829 fail:
52830   return NULL;
52831 }
52832 
52833 
_wrap_E_Hairpin(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)52834 SWIGINTERN PyObject *_wrap_E_Hairpin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52835   PyObject *resultobj = 0;
52836   int arg1 ;
52837   int arg2 ;
52838   int arg3 ;
52839   int arg4 ;
52840   char *arg5 = (char *) 0 ;
52841   vrna_param_t *arg6 = (vrna_param_t *) 0 ;
52842   int val1 ;
52843   int ecode1 = 0 ;
52844   int val2 ;
52845   int ecode2 = 0 ;
52846   int val3 ;
52847   int ecode3 = 0 ;
52848   int val4 ;
52849   int ecode4 = 0 ;
52850   int res5 ;
52851   char *buf5 = 0 ;
52852   int alloc5 = 0 ;
52853   void *argp6 = 0 ;
52854   int res6 = 0 ;
52855   PyObject * obj0 = 0 ;
52856   PyObject * obj1 = 0 ;
52857   PyObject * obj2 = 0 ;
52858   PyObject * obj3 = 0 ;
52859   PyObject * obj4 = 0 ;
52860   PyObject * obj5 = 0 ;
52861   char * kwnames[] = {
52862     (char *)"size",  (char *)"type",  (char *)"si1",  (char *)"sj1",  (char *)"string",  (char *)"P",  NULL
52863   };
52864   int result;
52865 
52866   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOO:E_Hairpin", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
52867   ecode1 = SWIG_AsVal_int(obj0, &val1);
52868   if (!SWIG_IsOK(ecode1)) {
52869     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "E_Hairpin" "', argument " "1"" of type '" "int""'");
52870   }
52871   arg1 = static_cast< int >(val1);
52872   ecode2 = SWIG_AsVal_int(obj1, &val2);
52873   if (!SWIG_IsOK(ecode2)) {
52874     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "E_Hairpin" "', argument " "2"" of type '" "int""'");
52875   }
52876   arg2 = static_cast< int >(val2);
52877   ecode3 = SWIG_AsVal_int(obj2, &val3);
52878   if (!SWIG_IsOK(ecode3)) {
52879     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "E_Hairpin" "', argument " "3"" of type '" "int""'");
52880   }
52881   arg3 = static_cast< int >(val3);
52882   ecode4 = SWIG_AsVal_int(obj3, &val4);
52883   if (!SWIG_IsOK(ecode4)) {
52884     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "E_Hairpin" "', argument " "4"" of type '" "int""'");
52885   }
52886   arg4 = static_cast< int >(val4);
52887   res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
52888   if (!SWIG_IsOK(res5)) {
52889     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "E_Hairpin" "', argument " "5"" of type '" "char const *""'");
52890   }
52891   arg5 = reinterpret_cast< char * >(buf5);
52892   res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_vrna_param_t, 0 |  0 );
52893   if (!SWIG_IsOK(res6)) {
52894     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "E_Hairpin" "', argument " "6"" of type '" "vrna_param_t *""'");
52895   }
52896   arg6 = reinterpret_cast< vrna_param_t * >(argp6);
52897   {
52898     try {
52899       result = (int)E_Hairpin(arg1,arg2,arg3,arg4,(char const *)arg5,arg6);
52900     } catch (const std::exception& e) {
52901       SWIG_exception(SWIG_RuntimeError, e.what());
52902     }
52903   }
52904   resultobj = SWIG_From_int(static_cast< int >(result));
52905   if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
52906   return resultobj;
52907 fail:
52908   if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
52909   return NULL;
52910 }
52911 
52912 
_wrap_exp_E_Hairpin(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)52913 SWIGINTERN PyObject *_wrap_exp_E_Hairpin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52914   PyObject *resultobj = 0;
52915   int arg1 ;
52916   int arg2 ;
52917   short arg3 ;
52918   short arg4 ;
52919   char *arg5 = (char *) 0 ;
52920   vrna_exp_param_t *arg6 = (vrna_exp_param_t *) 0 ;
52921   int val1 ;
52922   int ecode1 = 0 ;
52923   int val2 ;
52924   int ecode2 = 0 ;
52925   short val3 ;
52926   int ecode3 = 0 ;
52927   short val4 ;
52928   int ecode4 = 0 ;
52929   int res5 ;
52930   char *buf5 = 0 ;
52931   int alloc5 = 0 ;
52932   void *argp6 = 0 ;
52933   int res6 = 0 ;
52934   PyObject * obj0 = 0 ;
52935   PyObject * obj1 = 0 ;
52936   PyObject * obj2 = 0 ;
52937   PyObject * obj3 = 0 ;
52938   PyObject * obj4 = 0 ;
52939   PyObject * obj5 = 0 ;
52940   char * kwnames[] = {
52941     (char *)"u",  (char *)"type",  (char *)"si1",  (char *)"sj1",  (char *)"string",  (char *)"P",  NULL
52942   };
52943   FLT_OR_DBL result;
52944 
52945   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOO:exp_E_Hairpin", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
52946   ecode1 = SWIG_AsVal_int(obj0, &val1);
52947   if (!SWIG_IsOK(ecode1)) {
52948     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "exp_E_Hairpin" "', argument " "1"" of type '" "int""'");
52949   }
52950   arg1 = static_cast< int >(val1);
52951   ecode2 = SWIG_AsVal_int(obj1, &val2);
52952   if (!SWIG_IsOK(ecode2)) {
52953     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "exp_E_Hairpin" "', argument " "2"" of type '" "int""'");
52954   }
52955   arg2 = static_cast< int >(val2);
52956   ecode3 = SWIG_AsVal_short(obj2, &val3);
52957   if (!SWIG_IsOK(ecode3)) {
52958     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "exp_E_Hairpin" "', argument " "3"" of type '" "short""'");
52959   }
52960   arg3 = static_cast< short >(val3);
52961   ecode4 = SWIG_AsVal_short(obj3, &val4);
52962   if (!SWIG_IsOK(ecode4)) {
52963     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "exp_E_Hairpin" "', argument " "4"" of type '" "short""'");
52964   }
52965   arg4 = static_cast< short >(val4);
52966   res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
52967   if (!SWIG_IsOK(res5)) {
52968     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "exp_E_Hairpin" "', argument " "5"" of type '" "char const *""'");
52969   }
52970   arg5 = reinterpret_cast< char * >(buf5);
52971   res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
52972   if (!SWIG_IsOK(res6)) {
52973     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "exp_E_Hairpin" "', argument " "6"" of type '" "vrna_exp_param_t *""'");
52974   }
52975   arg6 = reinterpret_cast< vrna_exp_param_t * >(argp6);
52976   {
52977     try {
52978       result = (FLT_OR_DBL)exp_E_Hairpin(arg1,arg2,arg3,arg4,(char const *)arg5,arg6);
52979     } catch (const std::exception& e) {
52980       SWIG_exception(SWIG_RuntimeError, e.what());
52981     }
52982   }
52983   resultobj = SWIG_From_double(static_cast< double >(result));
52984   if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
52985   return resultobj;
52986 fail:
52987   if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
52988   return NULL;
52989 }
52990 
52991 
_wrap_E_IntLoop(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)52992 SWIGINTERN PyObject *_wrap_E_IntLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52993   PyObject *resultobj = 0;
52994   int arg1 ;
52995   int arg2 ;
52996   int arg3 ;
52997   int arg4 ;
52998   int arg5 ;
52999   int arg6 ;
53000   int arg7 ;
53001   int arg8 ;
53002   vrna_param_t *arg9 = (vrna_param_t *) 0 ;
53003   int val1 ;
53004   int ecode1 = 0 ;
53005   int val2 ;
53006   int ecode2 = 0 ;
53007   int val3 ;
53008   int ecode3 = 0 ;
53009   int val4 ;
53010   int ecode4 = 0 ;
53011   int val5 ;
53012   int ecode5 = 0 ;
53013   int val6 ;
53014   int ecode6 = 0 ;
53015   int val7 ;
53016   int ecode7 = 0 ;
53017   int val8 ;
53018   int ecode8 = 0 ;
53019   void *argp9 = 0 ;
53020   int res9 = 0 ;
53021   PyObject * obj0 = 0 ;
53022   PyObject * obj1 = 0 ;
53023   PyObject * obj2 = 0 ;
53024   PyObject * obj3 = 0 ;
53025   PyObject * obj4 = 0 ;
53026   PyObject * obj5 = 0 ;
53027   PyObject * obj6 = 0 ;
53028   PyObject * obj7 = 0 ;
53029   PyObject * obj8 = 0 ;
53030   char * kwnames[] = {
53031     (char *)"n1",  (char *)"n2",  (char *)"type",  (char *)"type_2",  (char *)"si1",  (char *)"sj1",  (char *)"sp1",  (char *)"sq1",  (char *)"P",  NULL
53032   };
53033   int result;
53034 
53035   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOOOOO:E_IntLoop", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7, &obj8)) SWIG_fail;
53036   ecode1 = SWIG_AsVal_int(obj0, &val1);
53037   if (!SWIG_IsOK(ecode1)) {
53038     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "E_IntLoop" "', argument " "1"" of type '" "int""'");
53039   }
53040   arg1 = static_cast< int >(val1);
53041   ecode2 = SWIG_AsVal_int(obj1, &val2);
53042   if (!SWIG_IsOK(ecode2)) {
53043     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "E_IntLoop" "', argument " "2"" of type '" "int""'");
53044   }
53045   arg2 = static_cast< int >(val2);
53046   ecode3 = SWIG_AsVal_int(obj2, &val3);
53047   if (!SWIG_IsOK(ecode3)) {
53048     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "E_IntLoop" "', argument " "3"" of type '" "int""'");
53049   }
53050   arg3 = static_cast< int >(val3);
53051   ecode4 = SWIG_AsVal_int(obj3, &val4);
53052   if (!SWIG_IsOK(ecode4)) {
53053     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "E_IntLoop" "', argument " "4"" of type '" "int""'");
53054   }
53055   arg4 = static_cast< int >(val4);
53056   ecode5 = SWIG_AsVal_int(obj4, &val5);
53057   if (!SWIG_IsOK(ecode5)) {
53058     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "E_IntLoop" "', argument " "5"" of type '" "int""'");
53059   }
53060   arg5 = static_cast< int >(val5);
53061   ecode6 = SWIG_AsVal_int(obj5, &val6);
53062   if (!SWIG_IsOK(ecode6)) {
53063     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "E_IntLoop" "', argument " "6"" of type '" "int""'");
53064   }
53065   arg6 = static_cast< int >(val6);
53066   ecode7 = SWIG_AsVal_int(obj6, &val7);
53067   if (!SWIG_IsOK(ecode7)) {
53068     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "E_IntLoop" "', argument " "7"" of type '" "int""'");
53069   }
53070   arg7 = static_cast< int >(val7);
53071   ecode8 = SWIG_AsVal_int(obj7, &val8);
53072   if (!SWIG_IsOK(ecode8)) {
53073     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "E_IntLoop" "', argument " "8"" of type '" "int""'");
53074   }
53075   arg8 = static_cast< int >(val8);
53076   res9 = SWIG_ConvertPtr(obj8, &argp9,SWIGTYPE_p_vrna_param_t, 0 |  0 );
53077   if (!SWIG_IsOK(res9)) {
53078     SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "E_IntLoop" "', argument " "9"" of type '" "vrna_param_t *""'");
53079   }
53080   arg9 = reinterpret_cast< vrna_param_t * >(argp9);
53081   {
53082     try {
53083       result = (int)E_IntLoop(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
53084     } catch (const std::exception& e) {
53085       SWIG_exception(SWIG_RuntimeError, e.what());
53086     }
53087   }
53088   resultobj = SWIG_From_int(static_cast< int >(result));
53089   return resultobj;
53090 fail:
53091   return NULL;
53092 }
53093 
53094 
_wrap_exp_E_IntLoop(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)53095 SWIGINTERN PyObject *_wrap_exp_E_IntLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53096   PyObject *resultobj = 0;
53097   int arg1 ;
53098   int arg2 ;
53099   int arg3 ;
53100   int arg4 ;
53101   short arg5 ;
53102   short arg6 ;
53103   short arg7 ;
53104   short arg8 ;
53105   vrna_exp_param_t *arg9 = (vrna_exp_param_t *) 0 ;
53106   int val1 ;
53107   int ecode1 = 0 ;
53108   int val2 ;
53109   int ecode2 = 0 ;
53110   int val3 ;
53111   int ecode3 = 0 ;
53112   int val4 ;
53113   int ecode4 = 0 ;
53114   short val5 ;
53115   int ecode5 = 0 ;
53116   short val6 ;
53117   int ecode6 = 0 ;
53118   short val7 ;
53119   int ecode7 = 0 ;
53120   short val8 ;
53121   int ecode8 = 0 ;
53122   void *argp9 = 0 ;
53123   int res9 = 0 ;
53124   PyObject * obj0 = 0 ;
53125   PyObject * obj1 = 0 ;
53126   PyObject * obj2 = 0 ;
53127   PyObject * obj3 = 0 ;
53128   PyObject * obj4 = 0 ;
53129   PyObject * obj5 = 0 ;
53130   PyObject * obj6 = 0 ;
53131   PyObject * obj7 = 0 ;
53132   PyObject * obj8 = 0 ;
53133   char * kwnames[] = {
53134     (char *)"u1",  (char *)"u2",  (char *)"type",  (char *)"type2",  (char *)"si1",  (char *)"sj1",  (char *)"sp1",  (char *)"sq1",  (char *)"P",  NULL
53135   };
53136   FLT_OR_DBL result;
53137 
53138   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOOOOO:exp_E_IntLoop", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7, &obj8)) SWIG_fail;
53139   ecode1 = SWIG_AsVal_int(obj0, &val1);
53140   if (!SWIG_IsOK(ecode1)) {
53141     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "exp_E_IntLoop" "', argument " "1"" of type '" "int""'");
53142   }
53143   arg1 = static_cast< int >(val1);
53144   ecode2 = SWIG_AsVal_int(obj1, &val2);
53145   if (!SWIG_IsOK(ecode2)) {
53146     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "exp_E_IntLoop" "', argument " "2"" of type '" "int""'");
53147   }
53148   arg2 = static_cast< int >(val2);
53149   ecode3 = SWIG_AsVal_int(obj2, &val3);
53150   if (!SWIG_IsOK(ecode3)) {
53151     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "exp_E_IntLoop" "', argument " "3"" of type '" "int""'");
53152   }
53153   arg3 = static_cast< int >(val3);
53154   ecode4 = SWIG_AsVal_int(obj3, &val4);
53155   if (!SWIG_IsOK(ecode4)) {
53156     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "exp_E_IntLoop" "', argument " "4"" of type '" "int""'");
53157   }
53158   arg4 = static_cast< int >(val4);
53159   ecode5 = SWIG_AsVal_short(obj4, &val5);
53160   if (!SWIG_IsOK(ecode5)) {
53161     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "exp_E_IntLoop" "', argument " "5"" of type '" "short""'");
53162   }
53163   arg5 = static_cast< short >(val5);
53164   ecode6 = SWIG_AsVal_short(obj5, &val6);
53165   if (!SWIG_IsOK(ecode6)) {
53166     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "exp_E_IntLoop" "', argument " "6"" of type '" "short""'");
53167   }
53168   arg6 = static_cast< short >(val6);
53169   ecode7 = SWIG_AsVal_short(obj6, &val7);
53170   if (!SWIG_IsOK(ecode7)) {
53171     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "exp_E_IntLoop" "', argument " "7"" of type '" "short""'");
53172   }
53173   arg7 = static_cast< short >(val7);
53174   ecode8 = SWIG_AsVal_short(obj7, &val8);
53175   if (!SWIG_IsOK(ecode8)) {
53176     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "exp_E_IntLoop" "', argument " "8"" of type '" "short""'");
53177   }
53178   arg8 = static_cast< short >(val8);
53179   res9 = SWIG_ConvertPtr(obj8, &argp9,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
53180   if (!SWIG_IsOK(res9)) {
53181     SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "exp_E_IntLoop" "', argument " "9"" of type '" "vrna_exp_param_t *""'");
53182   }
53183   arg9 = reinterpret_cast< vrna_exp_param_t * >(argp9);
53184   {
53185     try {
53186       result = (FLT_OR_DBL)exp_E_IntLoop(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
53187     } catch (const std::exception& e) {
53188       SWIG_exception(SWIG_RuntimeError, e.what());
53189     }
53190   }
53191   resultobj = SWIG_From_double(static_cast< double >(result));
53192   return resultobj;
53193 fail:
53194   return NULL;
53195 }
53196 
53197 
_wrap_E_IntLoop_Co(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)53198 SWIGINTERN PyObject *_wrap_E_IntLoop_Co(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53199   PyObject *resultobj = 0;
53200   int arg1 ;
53201   int arg2 ;
53202   int arg3 ;
53203   int arg4 ;
53204   int arg5 ;
53205   int arg6 ;
53206   int arg7 ;
53207   short arg8 ;
53208   short arg9 ;
53209   short arg10 ;
53210   short arg11 ;
53211   int arg12 ;
53212   vrna_param_t *arg13 = (vrna_param_t *) 0 ;
53213   int val1 ;
53214   int ecode1 = 0 ;
53215   int val2 ;
53216   int ecode2 = 0 ;
53217   int val3 ;
53218   int ecode3 = 0 ;
53219   int val4 ;
53220   int ecode4 = 0 ;
53221   int val5 ;
53222   int ecode5 = 0 ;
53223   int val6 ;
53224   int ecode6 = 0 ;
53225   int val7 ;
53226   int ecode7 = 0 ;
53227   short val8 ;
53228   int ecode8 = 0 ;
53229   short val9 ;
53230   int ecode9 = 0 ;
53231   short val10 ;
53232   int ecode10 = 0 ;
53233   short val11 ;
53234   int ecode11 = 0 ;
53235   int val12 ;
53236   int ecode12 = 0 ;
53237   void *argp13 = 0 ;
53238   int res13 = 0 ;
53239   PyObject * obj0 = 0 ;
53240   PyObject * obj1 = 0 ;
53241   PyObject * obj2 = 0 ;
53242   PyObject * obj3 = 0 ;
53243   PyObject * obj4 = 0 ;
53244   PyObject * obj5 = 0 ;
53245   PyObject * obj6 = 0 ;
53246   PyObject * obj7 = 0 ;
53247   PyObject * obj8 = 0 ;
53248   PyObject * obj9 = 0 ;
53249   PyObject * obj10 = 0 ;
53250   PyObject * obj11 = 0 ;
53251   PyObject * obj12 = 0 ;
53252   char * kwnames[] = {
53253     (char *)"type",  (char *)"type_2",  (char *)"i",  (char *)"j",  (char *)"p",  (char *)"q",  (char *)"cutpoint",  (char *)"si1",  (char *)"sj1",  (char *)"sp1",  (char *)"sq1",  (char *)"dangles",  (char *)"P",  NULL
53254   };
53255   int result;
53256 
53257   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOOOOOOOOO:E_IntLoop_Co", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7, &obj8, &obj9, &obj10, &obj11, &obj12)) SWIG_fail;
53258   ecode1 = SWIG_AsVal_int(obj0, &val1);
53259   if (!SWIG_IsOK(ecode1)) {
53260     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "E_IntLoop_Co" "', argument " "1"" of type '" "int""'");
53261   }
53262   arg1 = static_cast< int >(val1);
53263   ecode2 = SWIG_AsVal_int(obj1, &val2);
53264   if (!SWIG_IsOK(ecode2)) {
53265     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "E_IntLoop_Co" "', argument " "2"" of type '" "int""'");
53266   }
53267   arg2 = static_cast< int >(val2);
53268   ecode3 = SWIG_AsVal_int(obj2, &val3);
53269   if (!SWIG_IsOK(ecode3)) {
53270     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "E_IntLoop_Co" "', argument " "3"" of type '" "int""'");
53271   }
53272   arg3 = static_cast< int >(val3);
53273   ecode4 = SWIG_AsVal_int(obj3, &val4);
53274   if (!SWIG_IsOK(ecode4)) {
53275     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "E_IntLoop_Co" "', argument " "4"" of type '" "int""'");
53276   }
53277   arg4 = static_cast< int >(val4);
53278   ecode5 = SWIG_AsVal_int(obj4, &val5);
53279   if (!SWIG_IsOK(ecode5)) {
53280     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "E_IntLoop_Co" "', argument " "5"" of type '" "int""'");
53281   }
53282   arg5 = static_cast< int >(val5);
53283   ecode6 = SWIG_AsVal_int(obj5, &val6);
53284   if (!SWIG_IsOK(ecode6)) {
53285     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "E_IntLoop_Co" "', argument " "6"" of type '" "int""'");
53286   }
53287   arg6 = static_cast< int >(val6);
53288   ecode7 = SWIG_AsVal_int(obj6, &val7);
53289   if (!SWIG_IsOK(ecode7)) {
53290     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "E_IntLoop_Co" "', argument " "7"" of type '" "int""'");
53291   }
53292   arg7 = static_cast< int >(val7);
53293   ecode8 = SWIG_AsVal_short(obj7, &val8);
53294   if (!SWIG_IsOK(ecode8)) {
53295     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "E_IntLoop_Co" "', argument " "8"" of type '" "short""'");
53296   }
53297   arg8 = static_cast< short >(val8);
53298   ecode9 = SWIG_AsVal_short(obj8, &val9);
53299   if (!SWIG_IsOK(ecode9)) {
53300     SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "E_IntLoop_Co" "', argument " "9"" of type '" "short""'");
53301   }
53302   arg9 = static_cast< short >(val9);
53303   ecode10 = SWIG_AsVal_short(obj9, &val10);
53304   if (!SWIG_IsOK(ecode10)) {
53305     SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "E_IntLoop_Co" "', argument " "10"" of type '" "short""'");
53306   }
53307   arg10 = static_cast< short >(val10);
53308   ecode11 = SWIG_AsVal_short(obj10, &val11);
53309   if (!SWIG_IsOK(ecode11)) {
53310     SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "E_IntLoop_Co" "', argument " "11"" of type '" "short""'");
53311   }
53312   arg11 = static_cast< short >(val11);
53313   ecode12 = SWIG_AsVal_int(obj11, &val12);
53314   if (!SWIG_IsOK(ecode12)) {
53315     SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "E_IntLoop_Co" "', argument " "12"" of type '" "int""'");
53316   }
53317   arg12 = static_cast< int >(val12);
53318   res13 = SWIG_ConvertPtr(obj12, &argp13,SWIGTYPE_p_vrna_param_t, 0 |  0 );
53319   if (!SWIG_IsOK(res13)) {
53320     SWIG_exception_fail(SWIG_ArgError(res13), "in method '" "E_IntLoop_Co" "', argument " "13"" of type '" "vrna_param_t *""'");
53321   }
53322   arg13 = reinterpret_cast< vrna_param_t * >(argp13);
53323   {
53324     try {
53325       result = (int)E_IntLoop_Co(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
53326     } catch (const std::exception& e) {
53327       SWIG_exception(SWIG_RuntimeError, e.what());
53328     }
53329   }
53330   resultobj = SWIG_From_int(static_cast< int >(result));
53331   return resultobj;
53332 fail:
53333   return NULL;
53334 }
53335 
53336 
_wrap_ubf_eval_int_loop(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)53337 SWIGINTERN PyObject *_wrap_ubf_eval_int_loop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53338   PyObject *resultobj = 0;
53339   int arg1 ;
53340   int arg2 ;
53341   int arg3 ;
53342   int arg4 ;
53343   int arg5 ;
53344   int arg6 ;
53345   int arg7 ;
53346   int arg8 ;
53347   short arg9 ;
53348   short arg10 ;
53349   short arg11 ;
53350   short arg12 ;
53351   unsigned char arg13 ;
53352   unsigned char arg14 ;
53353   int *arg15 = (int *) 0 ;
53354   int arg16 ;
53355   int arg17 ;
53356   vrna_param_t *arg18 = (vrna_param_t *) 0 ;
53357   vrna_sc_t *arg19 = (vrna_sc_t *) 0 ;
53358   int val1 ;
53359   int ecode1 = 0 ;
53360   int val2 ;
53361   int ecode2 = 0 ;
53362   int val3 ;
53363   int ecode3 = 0 ;
53364   int val4 ;
53365   int ecode4 = 0 ;
53366   int val5 ;
53367   int ecode5 = 0 ;
53368   int val6 ;
53369   int ecode6 = 0 ;
53370   int val7 ;
53371   int ecode7 = 0 ;
53372   int val8 ;
53373   int ecode8 = 0 ;
53374   short val9 ;
53375   int ecode9 = 0 ;
53376   short val10 ;
53377   int ecode10 = 0 ;
53378   short val11 ;
53379   int ecode11 = 0 ;
53380   short val12 ;
53381   int ecode12 = 0 ;
53382   unsigned char val13 ;
53383   int ecode13 = 0 ;
53384   unsigned char val14 ;
53385   int ecode14 = 0 ;
53386   void *argp15 = 0 ;
53387   int res15 = 0 ;
53388   int val16 ;
53389   int ecode16 = 0 ;
53390   int val17 ;
53391   int ecode17 = 0 ;
53392   void *argp18 = 0 ;
53393   int res18 = 0 ;
53394   void *argp19 = 0 ;
53395   int res19 = 0 ;
53396   PyObject * obj0 = 0 ;
53397   PyObject * obj1 = 0 ;
53398   PyObject * obj2 = 0 ;
53399   PyObject * obj3 = 0 ;
53400   PyObject * obj4 = 0 ;
53401   PyObject * obj5 = 0 ;
53402   PyObject * obj6 = 0 ;
53403   PyObject * obj7 = 0 ;
53404   PyObject * obj8 = 0 ;
53405   PyObject * obj9 = 0 ;
53406   PyObject * obj10 = 0 ;
53407   PyObject * obj11 = 0 ;
53408   PyObject * obj12 = 0 ;
53409   PyObject * obj13 = 0 ;
53410   PyObject * obj14 = 0 ;
53411   PyObject * obj15 = 0 ;
53412   PyObject * obj16 = 0 ;
53413   PyObject * obj17 = 0 ;
53414   PyObject * obj18 = 0 ;
53415   char * kwnames[] = {
53416     (char *)"i",  (char *)"j",  (char *)"p",  (char *)"q",  (char *)"i1",  (char *)"j1",  (char *)"p1",  (char *)"q1",  (char *)"si",  (char *)"sj",  (char *)"sp",  (char *)"sq",  (char *)"type",  (char *)"type_2",  (char *)"rtype",  (char *)"ij",  (char *)"cp",  (char *)"P",  (char *)"sc",  NULL
53417   };
53418   int result;
53419 
53420   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOOOOOOOOOOOOOOO:ubf_eval_int_loop", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7, &obj8, &obj9, &obj10, &obj11, &obj12, &obj13, &obj14, &obj15, &obj16, &obj17, &obj18)) SWIG_fail;
53421   ecode1 = SWIG_AsVal_int(obj0, &val1);
53422   if (!SWIG_IsOK(ecode1)) {
53423     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ubf_eval_int_loop" "', argument " "1"" of type '" "int""'");
53424   }
53425   arg1 = static_cast< int >(val1);
53426   ecode2 = SWIG_AsVal_int(obj1, &val2);
53427   if (!SWIG_IsOK(ecode2)) {
53428     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ubf_eval_int_loop" "', argument " "2"" of type '" "int""'");
53429   }
53430   arg2 = static_cast< int >(val2);
53431   ecode3 = SWIG_AsVal_int(obj2, &val3);
53432   if (!SWIG_IsOK(ecode3)) {
53433     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ubf_eval_int_loop" "', argument " "3"" of type '" "int""'");
53434   }
53435   arg3 = static_cast< int >(val3);
53436   ecode4 = SWIG_AsVal_int(obj3, &val4);
53437   if (!SWIG_IsOK(ecode4)) {
53438     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ubf_eval_int_loop" "', argument " "4"" of type '" "int""'");
53439   }
53440   arg4 = static_cast< int >(val4);
53441   ecode5 = SWIG_AsVal_int(obj4, &val5);
53442   if (!SWIG_IsOK(ecode5)) {
53443     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ubf_eval_int_loop" "', argument " "5"" of type '" "int""'");
53444   }
53445   arg5 = static_cast< int >(val5);
53446   ecode6 = SWIG_AsVal_int(obj5, &val6);
53447   if (!SWIG_IsOK(ecode6)) {
53448     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ubf_eval_int_loop" "', argument " "6"" of type '" "int""'");
53449   }
53450   arg6 = static_cast< int >(val6);
53451   ecode7 = SWIG_AsVal_int(obj6, &val7);
53452   if (!SWIG_IsOK(ecode7)) {
53453     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ubf_eval_int_loop" "', argument " "7"" of type '" "int""'");
53454   }
53455   arg7 = static_cast< int >(val7);
53456   ecode8 = SWIG_AsVal_int(obj7, &val8);
53457   if (!SWIG_IsOK(ecode8)) {
53458     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ubf_eval_int_loop" "', argument " "8"" of type '" "int""'");
53459   }
53460   arg8 = static_cast< int >(val8);
53461   ecode9 = SWIG_AsVal_short(obj8, &val9);
53462   if (!SWIG_IsOK(ecode9)) {
53463     SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ubf_eval_int_loop" "', argument " "9"" of type '" "short""'");
53464   }
53465   arg9 = static_cast< short >(val9);
53466   ecode10 = SWIG_AsVal_short(obj9, &val10);
53467   if (!SWIG_IsOK(ecode10)) {
53468     SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ubf_eval_int_loop" "', argument " "10"" of type '" "short""'");
53469   }
53470   arg10 = static_cast< short >(val10);
53471   ecode11 = SWIG_AsVal_short(obj10, &val11);
53472   if (!SWIG_IsOK(ecode11)) {
53473     SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ubf_eval_int_loop" "', argument " "11"" of type '" "short""'");
53474   }
53475   arg11 = static_cast< short >(val11);
53476   ecode12 = SWIG_AsVal_short(obj11, &val12);
53477   if (!SWIG_IsOK(ecode12)) {
53478     SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "ubf_eval_int_loop" "', argument " "12"" of type '" "short""'");
53479   }
53480   arg12 = static_cast< short >(val12);
53481   ecode13 = SWIG_AsVal_unsigned_SS_char(obj12, &val13);
53482   if (!SWIG_IsOK(ecode13)) {
53483     SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "ubf_eval_int_loop" "', argument " "13"" of type '" "unsigned char""'");
53484   }
53485   arg13 = static_cast< unsigned char >(val13);
53486   ecode14 = SWIG_AsVal_unsigned_SS_char(obj13, &val14);
53487   if (!SWIG_IsOK(ecode14)) {
53488     SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "ubf_eval_int_loop" "', argument " "14"" of type '" "unsigned char""'");
53489   }
53490   arg14 = static_cast< unsigned char >(val14);
53491   res15 = SWIG_ConvertPtr(obj14, &argp15,SWIGTYPE_p_int, 0 |  0 );
53492   if (!SWIG_IsOK(res15)) {
53493     SWIG_exception_fail(SWIG_ArgError(res15), "in method '" "ubf_eval_int_loop" "', argument " "15"" of type '" "int *""'");
53494   }
53495   arg15 = reinterpret_cast< int * >(argp15);
53496   ecode16 = SWIG_AsVal_int(obj15, &val16);
53497   if (!SWIG_IsOK(ecode16)) {
53498     SWIG_exception_fail(SWIG_ArgError(ecode16), "in method '" "ubf_eval_int_loop" "', argument " "16"" of type '" "int""'");
53499   }
53500   arg16 = static_cast< int >(val16);
53501   ecode17 = SWIG_AsVal_int(obj16, &val17);
53502   if (!SWIG_IsOK(ecode17)) {
53503     SWIG_exception_fail(SWIG_ArgError(ecode17), "in method '" "ubf_eval_int_loop" "', argument " "17"" of type '" "int""'");
53504   }
53505   arg17 = static_cast< int >(val17);
53506   res18 = SWIG_ConvertPtr(obj17, &argp18,SWIGTYPE_p_vrna_param_t, 0 |  0 );
53507   if (!SWIG_IsOK(res18)) {
53508     SWIG_exception_fail(SWIG_ArgError(res18), "in method '" "ubf_eval_int_loop" "', argument " "18"" of type '" "vrna_param_t *""'");
53509   }
53510   arg18 = reinterpret_cast< vrna_param_t * >(argp18);
53511   res19 = SWIG_ConvertPtr(obj18, &argp19,SWIGTYPE_p_vrna_sc_s, 0 |  0 );
53512   if (!SWIG_IsOK(res19)) {
53513     SWIG_exception_fail(SWIG_ArgError(res19), "in method '" "ubf_eval_int_loop" "', argument " "19"" of type '" "vrna_sc_t *""'");
53514   }
53515   arg19 = reinterpret_cast< vrna_sc_t * >(argp19);
53516   {
53517     try {
53518       result = (int)ubf_eval_int_loop(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17,arg18,arg19);
53519     } catch (const std::exception& e) {
53520       SWIG_exception(SWIG_RuntimeError, e.what());
53521     }
53522   }
53523   resultobj = SWIG_From_int(static_cast< int >(result));
53524   return resultobj;
53525 fail:
53526   return NULL;
53527 }
53528 
53529 
_wrap_ubf_eval_int_loop2(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)53530 SWIGINTERN PyObject *_wrap_ubf_eval_int_loop2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53531   PyObject *resultobj = 0;
53532   int arg1 ;
53533   int arg2 ;
53534   int arg3 ;
53535   int arg4 ;
53536   int arg5 ;
53537   int arg6 ;
53538   int arg7 ;
53539   int arg8 ;
53540   short arg9 ;
53541   short arg10 ;
53542   short arg11 ;
53543   short arg12 ;
53544   unsigned char arg13 ;
53545   unsigned char arg14 ;
53546   int *arg15 = (int *) 0 ;
53547   int arg16 ;
53548   unsigned int *arg17 = (unsigned int *) 0 ;
53549   unsigned int *arg18 = (unsigned int *) 0 ;
53550   vrna_param_t *arg19 = (vrna_param_t *) 0 ;
53551   vrna_sc_t *arg20 = (vrna_sc_t *) 0 ;
53552   int val1 ;
53553   int ecode1 = 0 ;
53554   int val2 ;
53555   int ecode2 = 0 ;
53556   int val3 ;
53557   int ecode3 = 0 ;
53558   int val4 ;
53559   int ecode4 = 0 ;
53560   int val5 ;
53561   int ecode5 = 0 ;
53562   int val6 ;
53563   int ecode6 = 0 ;
53564   int val7 ;
53565   int ecode7 = 0 ;
53566   int val8 ;
53567   int ecode8 = 0 ;
53568   short val9 ;
53569   int ecode9 = 0 ;
53570   short val10 ;
53571   int ecode10 = 0 ;
53572   short val11 ;
53573   int ecode11 = 0 ;
53574   short val12 ;
53575   int ecode12 = 0 ;
53576   unsigned char val13 ;
53577   int ecode13 = 0 ;
53578   unsigned char val14 ;
53579   int ecode14 = 0 ;
53580   void *argp15 = 0 ;
53581   int res15 = 0 ;
53582   int val16 ;
53583   int ecode16 = 0 ;
53584   void *argp17 = 0 ;
53585   int res17 = 0 ;
53586   void *argp18 = 0 ;
53587   int res18 = 0 ;
53588   void *argp19 = 0 ;
53589   int res19 = 0 ;
53590   void *argp20 = 0 ;
53591   int res20 = 0 ;
53592   PyObject * obj0 = 0 ;
53593   PyObject * obj1 = 0 ;
53594   PyObject * obj2 = 0 ;
53595   PyObject * obj3 = 0 ;
53596   PyObject * obj4 = 0 ;
53597   PyObject * obj5 = 0 ;
53598   PyObject * obj6 = 0 ;
53599   PyObject * obj7 = 0 ;
53600   PyObject * obj8 = 0 ;
53601   PyObject * obj9 = 0 ;
53602   PyObject * obj10 = 0 ;
53603   PyObject * obj11 = 0 ;
53604   PyObject * obj12 = 0 ;
53605   PyObject * obj13 = 0 ;
53606   PyObject * obj14 = 0 ;
53607   PyObject * obj15 = 0 ;
53608   PyObject * obj16 = 0 ;
53609   PyObject * obj17 = 0 ;
53610   PyObject * obj18 = 0 ;
53611   PyObject * obj19 = 0 ;
53612   char * kwnames[] = {
53613     (char *)"i",  (char *)"j",  (char *)"p",  (char *)"q",  (char *)"i1",  (char *)"j1",  (char *)"p1",  (char *)"q1",  (char *)"si",  (char *)"sj",  (char *)"sp",  (char *)"sq",  (char *)"type",  (char *)"type_2",  (char *)"rtype",  (char *)"ij",  (char *)"sn",  (char *)"ss",  (char *)"P",  (char *)"sc",  NULL
53614   };
53615   int result;
53616 
53617   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOOOOOOOOOOOOOOOO:ubf_eval_int_loop2", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7, &obj8, &obj9, &obj10, &obj11, &obj12, &obj13, &obj14, &obj15, &obj16, &obj17, &obj18, &obj19)) SWIG_fail;
53618   ecode1 = SWIG_AsVal_int(obj0, &val1);
53619   if (!SWIG_IsOK(ecode1)) {
53620     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ubf_eval_int_loop2" "', argument " "1"" of type '" "int""'");
53621   }
53622   arg1 = static_cast< int >(val1);
53623   ecode2 = SWIG_AsVal_int(obj1, &val2);
53624   if (!SWIG_IsOK(ecode2)) {
53625     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ubf_eval_int_loop2" "', argument " "2"" of type '" "int""'");
53626   }
53627   arg2 = static_cast< int >(val2);
53628   ecode3 = SWIG_AsVal_int(obj2, &val3);
53629   if (!SWIG_IsOK(ecode3)) {
53630     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ubf_eval_int_loop2" "', argument " "3"" of type '" "int""'");
53631   }
53632   arg3 = static_cast< int >(val3);
53633   ecode4 = SWIG_AsVal_int(obj3, &val4);
53634   if (!SWIG_IsOK(ecode4)) {
53635     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ubf_eval_int_loop2" "', argument " "4"" of type '" "int""'");
53636   }
53637   arg4 = static_cast< int >(val4);
53638   ecode5 = SWIG_AsVal_int(obj4, &val5);
53639   if (!SWIG_IsOK(ecode5)) {
53640     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ubf_eval_int_loop2" "', argument " "5"" of type '" "int""'");
53641   }
53642   arg5 = static_cast< int >(val5);
53643   ecode6 = SWIG_AsVal_int(obj5, &val6);
53644   if (!SWIG_IsOK(ecode6)) {
53645     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ubf_eval_int_loop2" "', argument " "6"" of type '" "int""'");
53646   }
53647   arg6 = static_cast< int >(val6);
53648   ecode7 = SWIG_AsVal_int(obj6, &val7);
53649   if (!SWIG_IsOK(ecode7)) {
53650     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ubf_eval_int_loop2" "', argument " "7"" of type '" "int""'");
53651   }
53652   arg7 = static_cast< int >(val7);
53653   ecode8 = SWIG_AsVal_int(obj7, &val8);
53654   if (!SWIG_IsOK(ecode8)) {
53655     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ubf_eval_int_loop2" "', argument " "8"" of type '" "int""'");
53656   }
53657   arg8 = static_cast< int >(val8);
53658   ecode9 = SWIG_AsVal_short(obj8, &val9);
53659   if (!SWIG_IsOK(ecode9)) {
53660     SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ubf_eval_int_loop2" "', argument " "9"" of type '" "short""'");
53661   }
53662   arg9 = static_cast< short >(val9);
53663   ecode10 = SWIG_AsVal_short(obj9, &val10);
53664   if (!SWIG_IsOK(ecode10)) {
53665     SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ubf_eval_int_loop2" "', argument " "10"" of type '" "short""'");
53666   }
53667   arg10 = static_cast< short >(val10);
53668   ecode11 = SWIG_AsVal_short(obj10, &val11);
53669   if (!SWIG_IsOK(ecode11)) {
53670     SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ubf_eval_int_loop2" "', argument " "11"" of type '" "short""'");
53671   }
53672   arg11 = static_cast< short >(val11);
53673   ecode12 = SWIG_AsVal_short(obj11, &val12);
53674   if (!SWIG_IsOK(ecode12)) {
53675     SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "ubf_eval_int_loop2" "', argument " "12"" of type '" "short""'");
53676   }
53677   arg12 = static_cast< short >(val12);
53678   ecode13 = SWIG_AsVal_unsigned_SS_char(obj12, &val13);
53679   if (!SWIG_IsOK(ecode13)) {
53680     SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "ubf_eval_int_loop2" "', argument " "13"" of type '" "unsigned char""'");
53681   }
53682   arg13 = static_cast< unsigned char >(val13);
53683   ecode14 = SWIG_AsVal_unsigned_SS_char(obj13, &val14);
53684   if (!SWIG_IsOK(ecode14)) {
53685     SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "ubf_eval_int_loop2" "', argument " "14"" of type '" "unsigned char""'");
53686   }
53687   arg14 = static_cast< unsigned char >(val14);
53688   res15 = SWIG_ConvertPtr(obj14, &argp15,SWIGTYPE_p_int, 0 |  0 );
53689   if (!SWIG_IsOK(res15)) {
53690     SWIG_exception_fail(SWIG_ArgError(res15), "in method '" "ubf_eval_int_loop2" "', argument " "15"" of type '" "int *""'");
53691   }
53692   arg15 = reinterpret_cast< int * >(argp15);
53693   ecode16 = SWIG_AsVal_int(obj15, &val16);
53694   if (!SWIG_IsOK(ecode16)) {
53695     SWIG_exception_fail(SWIG_ArgError(ecode16), "in method '" "ubf_eval_int_loop2" "', argument " "16"" of type '" "int""'");
53696   }
53697   arg16 = static_cast< int >(val16);
53698   res17 = SWIG_ConvertPtr(obj16, &argp17,SWIGTYPE_p_unsigned_int, 0 |  0 );
53699   if (!SWIG_IsOK(res17)) {
53700     SWIG_exception_fail(SWIG_ArgError(res17), "in method '" "ubf_eval_int_loop2" "', argument " "17"" of type '" "unsigned int *""'");
53701   }
53702   arg17 = reinterpret_cast< unsigned int * >(argp17);
53703   res18 = SWIG_ConvertPtr(obj17, &argp18,SWIGTYPE_p_unsigned_int, 0 |  0 );
53704   if (!SWIG_IsOK(res18)) {
53705     SWIG_exception_fail(SWIG_ArgError(res18), "in method '" "ubf_eval_int_loop2" "', argument " "18"" of type '" "unsigned int *""'");
53706   }
53707   arg18 = reinterpret_cast< unsigned int * >(argp18);
53708   res19 = SWIG_ConvertPtr(obj18, &argp19,SWIGTYPE_p_vrna_param_t, 0 |  0 );
53709   if (!SWIG_IsOK(res19)) {
53710     SWIG_exception_fail(SWIG_ArgError(res19), "in method '" "ubf_eval_int_loop2" "', argument " "19"" of type '" "vrna_param_t *""'");
53711   }
53712   arg19 = reinterpret_cast< vrna_param_t * >(argp19);
53713   res20 = SWIG_ConvertPtr(obj19, &argp20,SWIGTYPE_p_vrna_sc_s, 0 |  0 );
53714   if (!SWIG_IsOK(res20)) {
53715     SWIG_exception_fail(SWIG_ArgError(res20), "in method '" "ubf_eval_int_loop2" "', argument " "20"" of type '" "vrna_sc_t *""'");
53716   }
53717   arg20 = reinterpret_cast< vrna_sc_t * >(argp20);
53718   {
53719     try {
53720       result = (int)ubf_eval_int_loop2(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17,arg18,arg19,arg20);
53721     } catch (const std::exception& e) {
53722       SWIG_exception(SWIG_RuntimeError, e.what());
53723     }
53724   }
53725   resultobj = SWIG_From_int(static_cast< int >(result));
53726   return resultobj;
53727 fail:
53728   return NULL;
53729 }
53730 
53731 
_wrap_ubf_eval_ext_int_loop(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)53732 SWIGINTERN PyObject *_wrap_ubf_eval_ext_int_loop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53733   PyObject *resultobj = 0;
53734   int arg1 ;
53735   int arg2 ;
53736   int arg3 ;
53737   int arg4 ;
53738   int arg5 ;
53739   int arg6 ;
53740   int arg7 ;
53741   int arg8 ;
53742   short arg9 ;
53743   short arg10 ;
53744   short arg11 ;
53745   short arg12 ;
53746   unsigned char arg13 ;
53747   unsigned char arg14 ;
53748   int arg15 ;
53749   vrna_param_t *arg16 = (vrna_param_t *) 0 ;
53750   vrna_sc_t *arg17 = (vrna_sc_t *) 0 ;
53751   int val1 ;
53752   int ecode1 = 0 ;
53753   int val2 ;
53754   int ecode2 = 0 ;
53755   int val3 ;
53756   int ecode3 = 0 ;
53757   int val4 ;
53758   int ecode4 = 0 ;
53759   int val5 ;
53760   int ecode5 = 0 ;
53761   int val6 ;
53762   int ecode6 = 0 ;
53763   int val7 ;
53764   int ecode7 = 0 ;
53765   int val8 ;
53766   int ecode8 = 0 ;
53767   short val9 ;
53768   int ecode9 = 0 ;
53769   short val10 ;
53770   int ecode10 = 0 ;
53771   short val11 ;
53772   int ecode11 = 0 ;
53773   short val12 ;
53774   int ecode12 = 0 ;
53775   unsigned char val13 ;
53776   int ecode13 = 0 ;
53777   unsigned char val14 ;
53778   int ecode14 = 0 ;
53779   int val15 ;
53780   int ecode15 = 0 ;
53781   void *argp16 = 0 ;
53782   int res16 = 0 ;
53783   void *argp17 = 0 ;
53784   int res17 = 0 ;
53785   PyObject * obj0 = 0 ;
53786   PyObject * obj1 = 0 ;
53787   PyObject * obj2 = 0 ;
53788   PyObject * obj3 = 0 ;
53789   PyObject * obj4 = 0 ;
53790   PyObject * obj5 = 0 ;
53791   PyObject * obj6 = 0 ;
53792   PyObject * obj7 = 0 ;
53793   PyObject * obj8 = 0 ;
53794   PyObject * obj9 = 0 ;
53795   PyObject * obj10 = 0 ;
53796   PyObject * obj11 = 0 ;
53797   PyObject * obj12 = 0 ;
53798   PyObject * obj13 = 0 ;
53799   PyObject * obj14 = 0 ;
53800   PyObject * obj15 = 0 ;
53801   PyObject * obj16 = 0 ;
53802   char * kwnames[] = {
53803     (char *)"i",  (char *)"j",  (char *)"p",  (char *)"q",  (char *)"i1",  (char *)"j1",  (char *)"p1",  (char *)"q1",  (char *)"si",  (char *)"sj",  (char *)"sp",  (char *)"sq",  (char *)"type",  (char *)"type_2",  (char *)"length",  (char *)"P",  (char *)"sc",  NULL
53804   };
53805   int result;
53806 
53807   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOOOOOOOOOOOOO:ubf_eval_ext_int_loop", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7, &obj8, &obj9, &obj10, &obj11, &obj12, &obj13, &obj14, &obj15, &obj16)) SWIG_fail;
53808   ecode1 = SWIG_AsVal_int(obj0, &val1);
53809   if (!SWIG_IsOK(ecode1)) {
53810     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ubf_eval_ext_int_loop" "', argument " "1"" of type '" "int""'");
53811   }
53812   arg1 = static_cast< int >(val1);
53813   ecode2 = SWIG_AsVal_int(obj1, &val2);
53814   if (!SWIG_IsOK(ecode2)) {
53815     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ubf_eval_ext_int_loop" "', argument " "2"" of type '" "int""'");
53816   }
53817   arg2 = static_cast< int >(val2);
53818   ecode3 = SWIG_AsVal_int(obj2, &val3);
53819   if (!SWIG_IsOK(ecode3)) {
53820     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ubf_eval_ext_int_loop" "', argument " "3"" of type '" "int""'");
53821   }
53822   arg3 = static_cast< int >(val3);
53823   ecode4 = SWIG_AsVal_int(obj3, &val4);
53824   if (!SWIG_IsOK(ecode4)) {
53825     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ubf_eval_ext_int_loop" "', argument " "4"" of type '" "int""'");
53826   }
53827   arg4 = static_cast< int >(val4);
53828   ecode5 = SWIG_AsVal_int(obj4, &val5);
53829   if (!SWIG_IsOK(ecode5)) {
53830     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ubf_eval_ext_int_loop" "', argument " "5"" of type '" "int""'");
53831   }
53832   arg5 = static_cast< int >(val5);
53833   ecode6 = SWIG_AsVal_int(obj5, &val6);
53834   if (!SWIG_IsOK(ecode6)) {
53835     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ubf_eval_ext_int_loop" "', argument " "6"" of type '" "int""'");
53836   }
53837   arg6 = static_cast< int >(val6);
53838   ecode7 = SWIG_AsVal_int(obj6, &val7);
53839   if (!SWIG_IsOK(ecode7)) {
53840     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ubf_eval_ext_int_loop" "', argument " "7"" of type '" "int""'");
53841   }
53842   arg7 = static_cast< int >(val7);
53843   ecode8 = SWIG_AsVal_int(obj7, &val8);
53844   if (!SWIG_IsOK(ecode8)) {
53845     SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ubf_eval_ext_int_loop" "', argument " "8"" of type '" "int""'");
53846   }
53847   arg8 = static_cast< int >(val8);
53848   ecode9 = SWIG_AsVal_short(obj8, &val9);
53849   if (!SWIG_IsOK(ecode9)) {
53850     SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "ubf_eval_ext_int_loop" "', argument " "9"" of type '" "short""'");
53851   }
53852   arg9 = static_cast< short >(val9);
53853   ecode10 = SWIG_AsVal_short(obj9, &val10);
53854   if (!SWIG_IsOK(ecode10)) {
53855     SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "ubf_eval_ext_int_loop" "', argument " "10"" of type '" "short""'");
53856   }
53857   arg10 = static_cast< short >(val10);
53858   ecode11 = SWIG_AsVal_short(obj10, &val11);
53859   if (!SWIG_IsOK(ecode11)) {
53860     SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "ubf_eval_ext_int_loop" "', argument " "11"" of type '" "short""'");
53861   }
53862   arg11 = static_cast< short >(val11);
53863   ecode12 = SWIG_AsVal_short(obj11, &val12);
53864   if (!SWIG_IsOK(ecode12)) {
53865     SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "ubf_eval_ext_int_loop" "', argument " "12"" of type '" "short""'");
53866   }
53867   arg12 = static_cast< short >(val12);
53868   ecode13 = SWIG_AsVal_unsigned_SS_char(obj12, &val13);
53869   if (!SWIG_IsOK(ecode13)) {
53870     SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "ubf_eval_ext_int_loop" "', argument " "13"" of type '" "unsigned char""'");
53871   }
53872   arg13 = static_cast< unsigned char >(val13);
53873   ecode14 = SWIG_AsVal_unsigned_SS_char(obj13, &val14);
53874   if (!SWIG_IsOK(ecode14)) {
53875     SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "ubf_eval_ext_int_loop" "', argument " "14"" of type '" "unsigned char""'");
53876   }
53877   arg14 = static_cast< unsigned char >(val14);
53878   ecode15 = SWIG_AsVal_int(obj14, &val15);
53879   if (!SWIG_IsOK(ecode15)) {
53880     SWIG_exception_fail(SWIG_ArgError(ecode15), "in method '" "ubf_eval_ext_int_loop" "', argument " "15"" of type '" "int""'");
53881   }
53882   arg15 = static_cast< int >(val15);
53883   res16 = SWIG_ConvertPtr(obj15, &argp16,SWIGTYPE_p_vrna_param_t, 0 |  0 );
53884   if (!SWIG_IsOK(res16)) {
53885     SWIG_exception_fail(SWIG_ArgError(res16), "in method '" "ubf_eval_ext_int_loop" "', argument " "16"" of type '" "vrna_param_t *""'");
53886   }
53887   arg16 = reinterpret_cast< vrna_param_t * >(argp16);
53888   res17 = SWIG_ConvertPtr(obj16, &argp17,SWIGTYPE_p_vrna_sc_s, 0 |  0 );
53889   if (!SWIG_IsOK(res17)) {
53890     SWIG_exception_fail(SWIG_ArgError(res17), "in method '" "ubf_eval_ext_int_loop" "', argument " "17"" of type '" "vrna_sc_t *""'");
53891   }
53892   arg17 = reinterpret_cast< vrna_sc_t * >(argp17);
53893   {
53894     try {
53895       result = (int)ubf_eval_ext_int_loop(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17);
53896     } catch (const std::exception& e) {
53897       SWIG_exception(SWIG_RuntimeError, e.what());
53898     }
53899   }
53900   resultobj = SWIG_From_int(static_cast< int >(result));
53901   return resultobj;
53902 fail:
53903   return NULL;
53904 }
53905 
53906 
_wrap_E_ml_rightmost_stem(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)53907 SWIGINTERN PyObject *_wrap_E_ml_rightmost_stem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53908   PyObject *resultobj = 0;
53909   int arg1 ;
53910   int arg2 ;
53911   vrna_fold_compound_t *arg3 = (vrna_fold_compound_t *) 0 ;
53912   int val1 ;
53913   int ecode1 = 0 ;
53914   int val2 ;
53915   int ecode2 = 0 ;
53916   void *argp3 = 0 ;
53917   int res3 = 0 ;
53918   PyObject * obj0 = 0 ;
53919   PyObject * obj1 = 0 ;
53920   PyObject * obj2 = 0 ;
53921   char * kwnames[] = {
53922     (char *)"i",  (char *)"j",  (char *)"fc",  NULL
53923   };
53924   int result;
53925 
53926   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:E_ml_rightmost_stem", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
53927   ecode1 = SWIG_AsVal_int(obj0, &val1);
53928   if (!SWIG_IsOK(ecode1)) {
53929     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "E_ml_rightmost_stem" "', argument " "1"" of type '" "int""'");
53930   }
53931   arg1 = static_cast< int >(val1);
53932   ecode2 = SWIG_AsVal_int(obj1, &val2);
53933   if (!SWIG_IsOK(ecode2)) {
53934     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "E_ml_rightmost_stem" "', argument " "2"" of type '" "int""'");
53935   }
53936   arg2 = static_cast< int >(val2);
53937   res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
53938   if (!SWIG_IsOK(res3)) {
53939     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "E_ml_rightmost_stem" "', argument " "3"" of type '" "vrna_fold_compound_t *""'");
53940   }
53941   arg3 = reinterpret_cast< vrna_fold_compound_t * >(argp3);
53942   {
53943     try {
53944       result = (int)E_ml_rightmost_stem(arg1,arg2,arg3);
53945     } catch (const std::exception& e) {
53946       SWIG_exception(SWIG_RuntimeError, e.what());
53947     }
53948   }
53949   resultobj = SWIG_From_int(static_cast< int >(result));
53950   return resultobj;
53951 fail:
53952   return NULL;
53953 }
53954 
53955 
_wrap_E_MLstem(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)53956 SWIGINTERN PyObject *_wrap_E_MLstem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53957   PyObject *resultobj = 0;
53958   int arg1 ;
53959   int arg2 ;
53960   int arg3 ;
53961   vrna_param_t *arg4 = (vrna_param_t *) 0 ;
53962   int val1 ;
53963   int ecode1 = 0 ;
53964   int val2 ;
53965   int ecode2 = 0 ;
53966   int val3 ;
53967   int ecode3 = 0 ;
53968   void *argp4 = 0 ;
53969   int res4 = 0 ;
53970   PyObject * obj0 = 0 ;
53971   PyObject * obj1 = 0 ;
53972   PyObject * obj2 = 0 ;
53973   PyObject * obj3 = 0 ;
53974   char * kwnames[] = {
53975     (char *)"type",  (char *)"si1",  (char *)"sj1",  (char *)"P",  NULL
53976   };
53977   int result;
53978 
53979   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:E_MLstem", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
53980   ecode1 = SWIG_AsVal_int(obj0, &val1);
53981   if (!SWIG_IsOK(ecode1)) {
53982     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "E_MLstem" "', argument " "1"" of type '" "int""'");
53983   }
53984   arg1 = static_cast< int >(val1);
53985   ecode2 = SWIG_AsVal_int(obj1, &val2);
53986   if (!SWIG_IsOK(ecode2)) {
53987     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "E_MLstem" "', argument " "2"" of type '" "int""'");
53988   }
53989   arg2 = static_cast< int >(val2);
53990   ecode3 = SWIG_AsVal_int(obj2, &val3);
53991   if (!SWIG_IsOK(ecode3)) {
53992     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "E_MLstem" "', argument " "3"" of type '" "int""'");
53993   }
53994   arg3 = static_cast< int >(val3);
53995   res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_vrna_param_t, 0 |  0 );
53996   if (!SWIG_IsOK(res4)) {
53997     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "E_MLstem" "', argument " "4"" of type '" "vrna_param_t *""'");
53998   }
53999   arg4 = reinterpret_cast< vrna_param_t * >(argp4);
54000   {
54001     try {
54002       result = (int)E_MLstem(arg1,arg2,arg3,arg4);
54003     } catch (const std::exception& e) {
54004       SWIG_exception(SWIG_RuntimeError, e.what());
54005     }
54006   }
54007   resultobj = SWIG_From_int(static_cast< int >(result));
54008   return resultobj;
54009 fail:
54010   return NULL;
54011 }
54012 
54013 
_wrap_exp_E_MLstem(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)54014 SWIGINTERN PyObject *_wrap_exp_E_MLstem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
54015   PyObject *resultobj = 0;
54016   int arg1 ;
54017   int arg2 ;
54018   int arg3 ;
54019   vrna_exp_param_t *arg4 = (vrna_exp_param_t *) 0 ;
54020   int val1 ;
54021   int ecode1 = 0 ;
54022   int val2 ;
54023   int ecode2 = 0 ;
54024   int val3 ;
54025   int ecode3 = 0 ;
54026   void *argp4 = 0 ;
54027   int res4 = 0 ;
54028   PyObject * obj0 = 0 ;
54029   PyObject * obj1 = 0 ;
54030   PyObject * obj2 = 0 ;
54031   PyObject * obj3 = 0 ;
54032   char * kwnames[] = {
54033     (char *)"type",  (char *)"si1",  (char *)"sj1",  (char *)"P",  NULL
54034   };
54035   FLT_OR_DBL result;
54036 
54037   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:exp_E_MLstem", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
54038   ecode1 = SWIG_AsVal_int(obj0, &val1);
54039   if (!SWIG_IsOK(ecode1)) {
54040     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "exp_E_MLstem" "', argument " "1"" of type '" "int""'");
54041   }
54042   arg1 = static_cast< int >(val1);
54043   ecode2 = SWIG_AsVal_int(obj1, &val2);
54044   if (!SWIG_IsOK(ecode2)) {
54045     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "exp_E_MLstem" "', argument " "2"" of type '" "int""'");
54046   }
54047   arg2 = static_cast< int >(val2);
54048   ecode3 = SWIG_AsVal_int(obj2, &val3);
54049   if (!SWIG_IsOK(ecode3)) {
54050     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "exp_E_MLstem" "', argument " "3"" of type '" "int""'");
54051   }
54052   arg3 = static_cast< int >(val3);
54053   res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
54054   if (!SWIG_IsOK(res4)) {
54055     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "exp_E_MLstem" "', argument " "4"" of type '" "vrna_exp_param_t *""'");
54056   }
54057   arg4 = reinterpret_cast< vrna_exp_param_t * >(argp4);
54058   {
54059     try {
54060       result = (FLT_OR_DBL)exp_E_MLstem(arg1,arg2,arg3,arg4);
54061     } catch (const std::exception& e) {
54062       SWIG_exception(SWIG_RuntimeError, e.what());
54063     }
54064   }
54065   resultobj = SWIG_From_double(static_cast< double >(result));
54066   return resultobj;
54067 fail:
54068   return NULL;
54069 }
54070 
54071 
_wrap_maximum_matching(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)54072 SWIGINTERN PyObject *_wrap_maximum_matching(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
54073   PyObject *resultobj = 0;
54074   std::string arg1 ;
54075   PyObject * obj0 = 0 ;
54076   char * kwnames[] = {
54077     (char *)"sequence",  NULL
54078   };
54079   int result;
54080 
54081   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:maximum_matching", kwnames, &obj0)) SWIG_fail;
54082   {
54083     std::string *ptr = (std::string *)0;
54084     int res = SWIG_AsPtr_std_string(obj0, &ptr);
54085     if (!SWIG_IsOK(res) || !ptr) {
54086       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "maximum_matching" "', argument " "1"" of type '" "std::string""'");
54087     }
54088     arg1 = *ptr;
54089     if (SWIG_IsNewObj(res)) delete ptr;
54090   }
54091   {
54092     try {
54093       result = (int)my_maximum_matching(arg1);
54094     } catch (const std::exception& e) {
54095       SWIG_exception(SWIG_RuntimeError, e.what());
54096     }
54097   }
54098   resultobj = SWIG_From_int(static_cast< int >(result));
54099   return resultobj;
54100 fail:
54101   return NULL;
54102 }
54103 
54104 
_wrap_fold__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)54105 SWIGINTERN PyObject *_wrap_fold__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
54106   PyObject *resultobj = 0;
54107   char *arg1 = (char *) 0 ;
54108   float *arg2 = (float *) 0 ;
54109   int res1 ;
54110   char *buf1 = 0 ;
54111   int alloc1 = 0 ;
54112   float temp2 ;
54113   int res2 = SWIG_TMPOBJ ;
54114   char *result = 0 ;
54115 
54116   arg2 = &temp2;
54117   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
54118   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
54119   if (!SWIG_IsOK(res1)) {
54120     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold" "', argument " "1"" of type '" "char *""'");
54121   }
54122   arg1 = reinterpret_cast< char * >(buf1);
54123   {
54124     try {
54125       result = (char *)my_fold(arg1,arg2);
54126     } catch (const std::exception& e) {
54127       SWIG_exception(SWIG_RuntimeError, e.what());
54128     }
54129   }
54130   resultobj = SWIG_FromCharPtr((const char *)result);
54131   if (SWIG_IsTmpObj(res2)) {
54132     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg2)));
54133   } else {
54134     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
54135     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_float, new_flags));
54136   }
54137   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
54138   delete[] result;
54139   return resultobj;
54140 fail:
54141   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
54142   return NULL;
54143 }
54144 
54145 
_wrap_fold__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)54146 SWIGINTERN PyObject *_wrap_fold__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
54147   PyObject *resultobj = 0;
54148   char *arg1 = (char *) 0 ;
54149   char *arg2 = (char *) 0 ;
54150   float *arg3 = (float *) 0 ;
54151   int res1 ;
54152   char *buf1 = 0 ;
54153   int alloc1 = 0 ;
54154   int res2 ;
54155   char *buf2 = 0 ;
54156   int alloc2 = 0 ;
54157   float temp3 ;
54158   int res3 = SWIG_TMPOBJ ;
54159   char *result = 0 ;
54160 
54161   arg3 = &temp3;
54162   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54163   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
54164   if (!SWIG_IsOK(res1)) {
54165     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold" "', argument " "1"" of type '" "char *""'");
54166   }
54167   arg1 = reinterpret_cast< char * >(buf1);
54168   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
54169   if (!SWIG_IsOK(res2)) {
54170     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fold" "', argument " "2"" of type '" "char *""'");
54171   }
54172   arg2 = reinterpret_cast< char * >(buf2);
54173   {
54174     try {
54175       result = (char *)my_fold(arg1,arg2,arg3);
54176     } catch (const std::exception& e) {
54177       SWIG_exception(SWIG_RuntimeError, e.what());
54178     }
54179   }
54180   resultobj = SWIG_FromCharPtr((const char *)result);
54181   if (SWIG_IsTmpObj(res3)) {
54182     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg3)));
54183   } else {
54184     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
54185     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_float, new_flags));
54186   }
54187   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
54188   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
54189   delete[] result;
54190   return resultobj;
54191 fail:
54192   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
54193   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
54194   return NULL;
54195 }
54196 
54197 
_wrap_fold(PyObject * self,PyObject * args)54198 SWIGINTERN PyObject *_wrap_fold(PyObject *self, PyObject *args) {
54199   Py_ssize_t argc;
54200   PyObject *argv[3] = {
54201     0
54202   };
54203 
54204   if (!(argc = SWIG_Python_UnpackTuple(args, "fold", 0, 2, argv))) SWIG_fail;
54205   --argc;
54206   if (argc == 1) {
54207     int _v;
54208     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
54209     _v = SWIG_CheckState(res);
54210     if (_v) {
54211       return _wrap_fold__SWIG_0(self, argc, argv);
54212     }
54213   }
54214   if (argc == 2) {
54215     int _v;
54216     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
54217     _v = SWIG_CheckState(res);
54218     if (_v) {
54219       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
54220       _v = SWIG_CheckState(res);
54221       if (_v) {
54222         return _wrap_fold__SWIG_1(self, argc, argv);
54223       }
54224     }
54225   }
54226 
54227 fail:
54228   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'fold'.\n"
54229     "  Possible C/C++ prototypes are:\n"
54230     "    my_fold(char *,float *)\n"
54231     "    my_fold(char *,char *,float *)\n");
54232   return 0;
54233 }
54234 
54235 
_wrap_alifold__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)54236 SWIGINTERN PyObject *_wrap_alifold__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
54237   PyObject *resultobj = 0;
54238   std::vector< std::string,std::allocator< std::string > > arg1 ;
54239   float *arg2 = (float *) 0 ;
54240   float temp2 ;
54241   int res2 = SWIG_TMPOBJ ;
54242   char *result = 0 ;
54243 
54244   arg2 = &temp2;
54245   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
54246   {
54247     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
54248     int res = swig::asptr(swig_obj[0], &ptr);
54249     if (!SWIG_IsOK(res) || !ptr) {
54250       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "alifold" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
54251     }
54252     arg1 = *ptr;
54253     if (SWIG_IsNewObj(res)) delete ptr;
54254   }
54255   {
54256     try {
54257       result = (char *)my_alifold(arg1,arg2);
54258     } catch (const std::exception& e) {
54259       SWIG_exception(SWIG_RuntimeError, e.what());
54260     }
54261   }
54262   resultobj = SWIG_FromCharPtr((const char *)result);
54263   if (SWIG_IsTmpObj(res2)) {
54264     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg2)));
54265   } else {
54266     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
54267     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_float, new_flags));
54268   }
54269   delete[] result;
54270   return resultobj;
54271 fail:
54272   return NULL;
54273 }
54274 
54275 
_wrap_alifold__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)54276 SWIGINTERN PyObject *_wrap_alifold__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
54277   PyObject *resultobj = 0;
54278   std::vector< std::string,std::allocator< std::string > > arg1 ;
54279   char *arg2 = (char *) 0 ;
54280   float *arg3 = (float *) 0 ;
54281   int res2 ;
54282   char *buf2 = 0 ;
54283   int alloc2 = 0 ;
54284   float temp3 ;
54285   int res3 = SWIG_TMPOBJ ;
54286   char *result = 0 ;
54287 
54288   arg3 = &temp3;
54289   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54290   {
54291     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
54292     int res = swig::asptr(swig_obj[0], &ptr);
54293     if (!SWIG_IsOK(res) || !ptr) {
54294       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "alifold" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
54295     }
54296     arg1 = *ptr;
54297     if (SWIG_IsNewObj(res)) delete ptr;
54298   }
54299   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
54300   if (!SWIG_IsOK(res2)) {
54301     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "alifold" "', argument " "2"" of type '" "char *""'");
54302   }
54303   arg2 = reinterpret_cast< char * >(buf2);
54304   {
54305     try {
54306       result = (char *)my_alifold(arg1,arg2,arg3);
54307     } catch (const std::exception& e) {
54308       SWIG_exception(SWIG_RuntimeError, e.what());
54309     }
54310   }
54311   resultobj = SWIG_FromCharPtr((const char *)result);
54312   if (SWIG_IsTmpObj(res3)) {
54313     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg3)));
54314   } else {
54315     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
54316     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_float, new_flags));
54317   }
54318   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
54319   delete[] result;
54320   return resultobj;
54321 fail:
54322   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
54323   return NULL;
54324 }
54325 
54326 
_wrap_alifold(PyObject * self,PyObject * args)54327 SWIGINTERN PyObject *_wrap_alifold(PyObject *self, PyObject *args) {
54328   Py_ssize_t argc;
54329   PyObject *argv[3] = {
54330     0
54331   };
54332 
54333   if (!(argc = SWIG_Python_UnpackTuple(args, "alifold", 0, 2, argv))) SWIG_fail;
54334   --argc;
54335   if (argc == 1) {
54336     int _v;
54337     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
54338     _v = SWIG_CheckState(res);
54339     if (_v) {
54340       return _wrap_alifold__SWIG_0(self, argc, argv);
54341     }
54342   }
54343   if (argc == 2) {
54344     int _v;
54345     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
54346     _v = SWIG_CheckState(res);
54347     if (_v) {
54348       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
54349       _v = SWIG_CheckState(res);
54350       if (_v) {
54351         return _wrap_alifold__SWIG_1(self, argc, argv);
54352       }
54353     }
54354   }
54355 
54356 fail:
54357   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'alifold'.\n"
54358     "  Possible C/C++ prototypes are:\n"
54359     "    my_alifold(std::vector< std::string,std::allocator< std::string > >,float *)\n"
54360     "    my_alifold(std::vector< std::string,std::allocator< std::string > >,char *,float *)\n");
54361   return 0;
54362 }
54363 
54364 
_wrap_cofold__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)54365 SWIGINTERN PyObject *_wrap_cofold__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
54366   PyObject *resultobj = 0;
54367   char *arg1 = (char *) 0 ;
54368   float *arg2 = (float *) 0 ;
54369   int res1 ;
54370   char *buf1 = 0 ;
54371   int alloc1 = 0 ;
54372   float temp2 ;
54373   int res2 = SWIG_TMPOBJ ;
54374   char *result = 0 ;
54375 
54376   arg2 = &temp2;
54377   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
54378   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
54379   if (!SWIG_IsOK(res1)) {
54380     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cofold" "', argument " "1"" of type '" "char *""'");
54381   }
54382   arg1 = reinterpret_cast< char * >(buf1);
54383   {
54384     try {
54385       result = (char *)my_cofold(arg1,arg2);
54386     } catch (const std::exception& e) {
54387       SWIG_exception(SWIG_RuntimeError, e.what());
54388     }
54389   }
54390   resultobj = SWIG_FromCharPtr((const char *)result);
54391   if (SWIG_IsTmpObj(res2)) {
54392     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg2)));
54393   } else {
54394     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
54395     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_float, new_flags));
54396   }
54397   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
54398   delete[] result;
54399   return resultobj;
54400 fail:
54401   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
54402   return NULL;
54403 }
54404 
54405 
_wrap_cofold__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)54406 SWIGINTERN PyObject *_wrap_cofold__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
54407   PyObject *resultobj = 0;
54408   char *arg1 = (char *) 0 ;
54409   char *arg2 = (char *) 0 ;
54410   float *arg3 = (float *) 0 ;
54411   int res1 ;
54412   char *buf1 = 0 ;
54413   int alloc1 = 0 ;
54414   int res2 ;
54415   char *buf2 = 0 ;
54416   int alloc2 = 0 ;
54417   float temp3 ;
54418   int res3 = SWIG_TMPOBJ ;
54419   char *result = 0 ;
54420 
54421   arg3 = &temp3;
54422   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54423   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
54424   if (!SWIG_IsOK(res1)) {
54425     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cofold" "', argument " "1"" of type '" "char *""'");
54426   }
54427   arg1 = reinterpret_cast< char * >(buf1);
54428   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
54429   if (!SWIG_IsOK(res2)) {
54430     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cofold" "', argument " "2"" of type '" "char *""'");
54431   }
54432   arg2 = reinterpret_cast< char * >(buf2);
54433   {
54434     try {
54435       result = (char *)my_cofold(arg1,arg2,arg3);
54436     } catch (const std::exception& e) {
54437       SWIG_exception(SWIG_RuntimeError, e.what());
54438     }
54439   }
54440   resultobj = SWIG_FromCharPtr((const char *)result);
54441   if (SWIG_IsTmpObj(res3)) {
54442     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg3)));
54443   } else {
54444     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
54445     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_float, new_flags));
54446   }
54447   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
54448   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
54449   delete[] result;
54450   return resultobj;
54451 fail:
54452   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
54453   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
54454   return NULL;
54455 }
54456 
54457 
_wrap_cofold(PyObject * self,PyObject * args)54458 SWIGINTERN PyObject *_wrap_cofold(PyObject *self, PyObject *args) {
54459   Py_ssize_t argc;
54460   PyObject *argv[3] = {
54461     0
54462   };
54463 
54464   if (!(argc = SWIG_Python_UnpackTuple(args, "cofold", 0, 2, argv))) SWIG_fail;
54465   --argc;
54466   if (argc == 1) {
54467     int _v;
54468     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
54469     _v = SWIG_CheckState(res);
54470     if (_v) {
54471       return _wrap_cofold__SWIG_0(self, argc, argv);
54472     }
54473   }
54474   if (argc == 2) {
54475     int _v;
54476     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
54477     _v = SWIG_CheckState(res);
54478     if (_v) {
54479       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
54480       _v = SWIG_CheckState(res);
54481       if (_v) {
54482         return _wrap_cofold__SWIG_1(self, argc, argv);
54483       }
54484     }
54485   }
54486 
54487 fail:
54488   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'cofold'.\n"
54489     "  Possible C/C++ prototypes are:\n"
54490     "    my_cofold(char *,float *)\n"
54491     "    my_cofold(char *,char *,float *)\n");
54492   return 0;
54493 }
54494 
54495 
_wrap_circfold__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)54496 SWIGINTERN PyObject *_wrap_circfold__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
54497   PyObject *resultobj = 0;
54498   char *arg1 = (char *) 0 ;
54499   float *arg2 = (float *) 0 ;
54500   int res1 ;
54501   char *buf1 = 0 ;
54502   int alloc1 = 0 ;
54503   float temp2 ;
54504   int res2 = SWIG_TMPOBJ ;
54505   char *result = 0 ;
54506 
54507   arg2 = &temp2;
54508   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
54509   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
54510   if (!SWIG_IsOK(res1)) {
54511     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "circfold" "', argument " "1"" of type '" "char *""'");
54512   }
54513   arg1 = reinterpret_cast< char * >(buf1);
54514   {
54515     try {
54516       result = (char *)my_circfold(arg1,arg2);
54517     } catch (const std::exception& e) {
54518       SWIG_exception(SWIG_RuntimeError, e.what());
54519     }
54520   }
54521   resultobj = SWIG_FromCharPtr((const char *)result);
54522   if (SWIG_IsTmpObj(res2)) {
54523     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg2)));
54524   } else {
54525     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
54526     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_float, new_flags));
54527   }
54528   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
54529   delete[] result;
54530   return resultobj;
54531 fail:
54532   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
54533   return NULL;
54534 }
54535 
54536 
_wrap_circfold__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)54537 SWIGINTERN PyObject *_wrap_circfold__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
54538   PyObject *resultobj = 0;
54539   char *arg1 = (char *) 0 ;
54540   char *arg2 = (char *) 0 ;
54541   float *arg3 = (float *) 0 ;
54542   int res1 ;
54543   char *buf1 = 0 ;
54544   int alloc1 = 0 ;
54545   int res2 ;
54546   char *buf2 = 0 ;
54547   int alloc2 = 0 ;
54548   float temp3 ;
54549   int res3 = SWIG_TMPOBJ ;
54550   char *result = 0 ;
54551 
54552   arg3 = &temp3;
54553   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54554   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
54555   if (!SWIG_IsOK(res1)) {
54556     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "circfold" "', argument " "1"" of type '" "char *""'");
54557   }
54558   arg1 = reinterpret_cast< char * >(buf1);
54559   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
54560   if (!SWIG_IsOK(res2)) {
54561     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "circfold" "', argument " "2"" of type '" "char *""'");
54562   }
54563   arg2 = reinterpret_cast< char * >(buf2);
54564   {
54565     try {
54566       result = (char *)my_circfold(arg1,arg2,arg3);
54567     } catch (const std::exception& e) {
54568       SWIG_exception(SWIG_RuntimeError, e.what());
54569     }
54570   }
54571   resultobj = SWIG_FromCharPtr((const char *)result);
54572   if (SWIG_IsTmpObj(res3)) {
54573     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg3)));
54574   } else {
54575     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
54576     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_float, new_flags));
54577   }
54578   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
54579   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
54580   delete[] result;
54581   return resultobj;
54582 fail:
54583   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
54584   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
54585   return NULL;
54586 }
54587 
54588 
_wrap_circfold(PyObject * self,PyObject * args)54589 SWIGINTERN PyObject *_wrap_circfold(PyObject *self, PyObject *args) {
54590   Py_ssize_t argc;
54591   PyObject *argv[3] = {
54592     0
54593   };
54594 
54595   if (!(argc = SWIG_Python_UnpackTuple(args, "circfold", 0, 2, argv))) SWIG_fail;
54596   --argc;
54597   if (argc == 1) {
54598     int _v;
54599     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
54600     _v = SWIG_CheckState(res);
54601     if (_v) {
54602       return _wrap_circfold__SWIG_0(self, argc, argv);
54603     }
54604   }
54605   if (argc == 2) {
54606     int _v;
54607     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
54608     _v = SWIG_CheckState(res);
54609     if (_v) {
54610       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
54611       _v = SWIG_CheckState(res);
54612       if (_v) {
54613         return _wrap_circfold__SWIG_1(self, argc, argv);
54614       }
54615     }
54616   }
54617 
54618 fail:
54619   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'circfold'.\n"
54620     "  Possible C/C++ prototypes are:\n"
54621     "    my_circfold(char *,float *)\n"
54622     "    my_circfold(char *,char *,float *)\n");
54623   return 0;
54624 }
54625 
54626 
_wrap_circalifold__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)54627 SWIGINTERN PyObject *_wrap_circalifold__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
54628   PyObject *resultobj = 0;
54629   std::vector< std::string,std::allocator< std::string > > arg1 ;
54630   float *arg2 = (float *) 0 ;
54631   float temp2 ;
54632   int res2 = SWIG_TMPOBJ ;
54633   char *result = 0 ;
54634 
54635   arg2 = &temp2;
54636   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
54637   {
54638     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
54639     int res = swig::asptr(swig_obj[0], &ptr);
54640     if (!SWIG_IsOK(res) || !ptr) {
54641       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "circalifold" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
54642     }
54643     arg1 = *ptr;
54644     if (SWIG_IsNewObj(res)) delete ptr;
54645   }
54646   {
54647     try {
54648       result = (char *)my_circalifold(arg1,arg2);
54649     } catch (const std::exception& e) {
54650       SWIG_exception(SWIG_RuntimeError, e.what());
54651     }
54652   }
54653   resultobj = SWIG_FromCharPtr((const char *)result);
54654   if (SWIG_IsTmpObj(res2)) {
54655     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg2)));
54656   } else {
54657     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
54658     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_float, new_flags));
54659   }
54660   delete[] result;
54661   return resultobj;
54662 fail:
54663   return NULL;
54664 }
54665 
54666 
_wrap_circalifold__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)54667 SWIGINTERN PyObject *_wrap_circalifold__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
54668   PyObject *resultobj = 0;
54669   std::vector< std::string,std::allocator< std::string > > arg1 ;
54670   char *arg2 = (char *) 0 ;
54671   float *arg3 = (float *) 0 ;
54672   int res2 ;
54673   char *buf2 = 0 ;
54674   int alloc2 = 0 ;
54675   float temp3 ;
54676   int res3 = SWIG_TMPOBJ ;
54677   char *result = 0 ;
54678 
54679   arg3 = &temp3;
54680   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54681   {
54682     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
54683     int res = swig::asptr(swig_obj[0], &ptr);
54684     if (!SWIG_IsOK(res) || !ptr) {
54685       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "circalifold" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
54686     }
54687     arg1 = *ptr;
54688     if (SWIG_IsNewObj(res)) delete ptr;
54689   }
54690   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
54691   if (!SWIG_IsOK(res2)) {
54692     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "circalifold" "', argument " "2"" of type '" "char *""'");
54693   }
54694   arg2 = reinterpret_cast< char * >(buf2);
54695   {
54696     try {
54697       result = (char *)my_circalifold(arg1,arg2,arg3);
54698     } catch (const std::exception& e) {
54699       SWIG_exception(SWIG_RuntimeError, e.what());
54700     }
54701   }
54702   resultobj = SWIG_FromCharPtr((const char *)result);
54703   if (SWIG_IsTmpObj(res3)) {
54704     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg3)));
54705   } else {
54706     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
54707     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_float, new_flags));
54708   }
54709   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
54710   delete[] result;
54711   return resultobj;
54712 fail:
54713   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
54714   return NULL;
54715 }
54716 
54717 
_wrap_free_arrays(PyObject * SWIGUNUSEDPARM (self),PyObject * args)54718 SWIGINTERN PyObject *_wrap_free_arrays(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54719   PyObject *resultobj = 0;
54720 
54721   if (!SWIG_Python_UnpackTuple(args, "free_arrays", 0, 0, 0)) SWIG_fail;
54722   {
54723     try {
54724       free_arrays();
54725     } catch (const std::exception& e) {
54726       SWIG_exception(SWIG_RuntimeError, e.what());
54727     }
54728   }
54729   resultobj = SWIG_Py_Void();
54730   return resultobj;
54731 fail:
54732   return NULL;
54733 }
54734 
54735 
_wrap_update_fold_params(PyObject * SWIGUNUSEDPARM (self),PyObject * args)54736 SWIGINTERN PyObject *_wrap_update_fold_params(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54737   PyObject *resultobj = 0;
54738 
54739   if (!SWIG_Python_UnpackTuple(args, "update_fold_params", 0, 0, 0)) SWIG_fail;
54740   {
54741     try {
54742       update_fold_params();
54743     } catch (const std::exception& e) {
54744       SWIG_exception(SWIG_RuntimeError, e.what());
54745     }
54746   }
54747   resultobj = SWIG_Py_Void();
54748   return resultobj;
54749 fail:
54750   return NULL;
54751 }
54752 
54753 
_wrap_circalifold__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)54754 SWIGINTERN PyObject *_wrap_circalifold__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
54755   PyObject *resultobj = 0;
54756   char **arg1 = (char **) 0 ;
54757   char *arg2 = (char *) 0 ;
54758   int res2 ;
54759   char *buf2 = 0 ;
54760   int alloc2 = 0 ;
54761   float result;
54762 
54763   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54764   {
54765     /* Check if is a list */
54766     if (PyList_Check(swig_obj[0])) {
54767       int size = PyList_Size(swig_obj[0]);
54768       int i = 0;
54769       arg1 = (char **) malloc((size+1)*sizeof(char *));
54770       for (i = 0; i < size; i++) {
54771         PyObject *o = PyList_GetItem(swig_obj[0],i);
54772         if (PyString_Check(o))
54773         arg1[i] = PyString_AsString(PyList_GetItem(swig_obj[0],i));
54774         else {
54775           PyErr_SetString(PyExc_TypeError,"list must contain strings");
54776           free(arg1);
54777           return NULL;
54778         }
54779       }
54780       arg1[i] = 0;
54781     } else {
54782       PyErr_SetString(PyExc_TypeError,"not a list");
54783       return NULL;
54784     }
54785   }
54786   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
54787   if (!SWIG_IsOK(res2)) {
54788     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "circalifold" "', argument " "2"" of type '" "char *""'");
54789   }
54790   arg2 = reinterpret_cast< char * >(buf2);
54791   {
54792     try {
54793       result = (float)circalifold((char const **)arg1,arg2);
54794     } catch (const std::exception& e) {
54795       SWIG_exception(SWIG_RuntimeError, e.what());
54796     }
54797   }
54798   resultobj = SWIG_From_float(static_cast< float >(result));
54799   {
54800     free(arg1);
54801   }
54802   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
54803   return resultobj;
54804 fail:
54805   {
54806     free(arg1);
54807   }
54808   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
54809   return NULL;
54810 }
54811 
54812 
_wrap_circalifold(PyObject * self,PyObject * args)54813 SWIGINTERN PyObject *_wrap_circalifold(PyObject *self, PyObject *args) {
54814   Py_ssize_t argc;
54815   PyObject *argv[3] = {
54816     0
54817   };
54818 
54819   if (!(argc = SWIG_Python_UnpackTuple(args, "circalifold", 0, 2, argv))) SWIG_fail;
54820   --argc;
54821   if (argc == 1) {
54822     int _v;
54823     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
54824     _v = SWIG_CheckState(res);
54825     if (_v) {
54826       return _wrap_circalifold__SWIG_0(self, argc, argv);
54827     }
54828   }
54829   if (argc == 2) {
54830     int _v;
54831     void *vptr = 0;
54832     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_p_char, 0);
54833     _v = SWIG_CheckState(res);
54834     if (_v) {
54835       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
54836       _v = SWIG_CheckState(res);
54837       if (_v) {
54838         return _wrap_circalifold__SWIG_2(self, argc, argv);
54839       }
54840     }
54841   }
54842   if (argc == 2) {
54843     int _v;
54844     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
54845     _v = SWIG_CheckState(res);
54846     if (_v) {
54847       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
54848       _v = SWIG_CheckState(res);
54849       if (_v) {
54850         return _wrap_circalifold__SWIG_1(self, argc, argv);
54851       }
54852     }
54853   }
54854 
54855 fail:
54856   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'circalifold'.\n"
54857     "  Possible C/C++ prototypes are:\n"
54858     "    my_circalifold(std::vector< std::string,std::allocator< std::string > >,float *)\n"
54859     "    my_circalifold(std::vector< std::string,std::allocator< std::string > >,char *,float *)\n"
54860     "    circalifold(char const **,char *)\n");
54861   return 0;
54862 }
54863 
54864 
_wrap_free_alifold_arrays(PyObject * SWIGUNUSEDPARM (self),PyObject * args)54865 SWIGINTERN PyObject *_wrap_free_alifold_arrays(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54866   PyObject *resultobj = 0;
54867 
54868   if (!SWIG_Python_UnpackTuple(args, "free_alifold_arrays", 0, 0, 0)) SWIG_fail;
54869   {
54870     try {
54871       free_alifold_arrays();
54872     } catch (const std::exception& e) {
54873       SWIG_exception(SWIG_RuntimeError, e.what());
54874     }
54875   }
54876   resultobj = SWIG_Py_Void();
54877   return resultobj;
54878 fail:
54879   return NULL;
54880 }
54881 
54882 
_wrap_free_co_arrays(PyObject * SWIGUNUSEDPARM (self),PyObject * args)54883 SWIGINTERN PyObject *_wrap_free_co_arrays(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54884   PyObject *resultobj = 0;
54885 
54886   if (!SWIG_Python_UnpackTuple(args, "free_co_arrays", 0, 0, 0)) SWIG_fail;
54887   {
54888     try {
54889       free_co_arrays();
54890     } catch (const std::exception& e) {
54891       SWIG_exception(SWIG_RuntimeError, e.what());
54892     }
54893   }
54894   resultobj = SWIG_Py_Void();
54895   return resultobj;
54896 fail:
54897   return NULL;
54898 }
54899 
54900 
_wrap_update_cofold_params(PyObject * SWIGUNUSEDPARM (self),PyObject * args)54901 SWIGINTERN PyObject *_wrap_update_cofold_params(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54902   PyObject *resultobj = 0;
54903 
54904   if (!SWIG_Python_UnpackTuple(args, "update_cofold_params", 0, 0, 0)) SWIG_fail;
54905   {
54906     try {
54907       update_cofold_params();
54908     } catch (const std::exception& e) {
54909       SWIG_exception(SWIG_RuntimeError, e.what());
54910     }
54911   }
54912   resultobj = SWIG_Py_Void();
54913   return resultobj;
54914 fail:
54915   return NULL;
54916 }
54917 
54918 
_wrap_initialize_cofold(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)54919 SWIGINTERN PyObject *_wrap_initialize_cofold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
54920   PyObject *resultobj = 0;
54921   int arg1 ;
54922   int val1 ;
54923   int ecode1 = 0 ;
54924   PyObject * obj0 = 0 ;
54925   char * kwnames[] = {
54926     (char *)"length",  NULL
54927   };
54928 
54929   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:initialize_cofold", kwnames, &obj0)) SWIG_fail;
54930   ecode1 = SWIG_AsVal_int(obj0, &val1);
54931   if (!SWIG_IsOK(ecode1)) {
54932     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "initialize_cofold" "', argument " "1"" of type '" "int""'");
54933   }
54934   arg1 = static_cast< int >(val1);
54935   {
54936     try {
54937       initialize_cofold(arg1);
54938     } catch (const std::exception& e) {
54939       SWIG_exception(SWIG_RuntimeError, e.what());
54940     }
54941   }
54942   resultobj = SWIG_Py_Void();
54943   return resultobj;
54944 fail:
54945   return NULL;
54946 }
54947 
54948 
_wrap_Lfoldz(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)54949 SWIGINTERN PyObject *_wrap_Lfoldz(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
54950   PyObject *resultobj = 0;
54951   std::string arg1 ;
54952   int arg2 ;
54953   double arg3 ;
54954   FILE *arg4 = (FILE *) NULL ;
54955   int val2 ;
54956   int ecode2 = 0 ;
54957   double val3 ;
54958   int ecode3 = 0 ;
54959   PyObject * obj0 = 0 ;
54960   PyObject * obj1 = 0 ;
54961   PyObject * obj2 = 0 ;
54962   PyObject * obj3 = 0 ;
54963   char * kwnames[] = {
54964     (char *)"sequence",  (char *)"window_size",  (char *)"min_z",  (char *)"nullfile",  NULL
54965   };
54966   float result;
54967 
54968   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO|O:Lfoldz", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
54969   {
54970     std::string *ptr = (std::string *)0;
54971     int res = SWIG_AsPtr_std_string(obj0, &ptr);
54972     if (!SWIG_IsOK(res) || !ptr) {
54973       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Lfoldz" "', argument " "1"" of type '" "std::string""'");
54974     }
54975     arg1 = *ptr;
54976     if (SWIG_IsNewObj(res)) delete ptr;
54977   }
54978   ecode2 = SWIG_AsVal_int(obj1, &val2);
54979   if (!SWIG_IsOK(ecode2)) {
54980     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Lfoldz" "', argument " "2"" of type '" "int""'");
54981   }
54982   arg2 = static_cast< int >(val2);
54983   ecode3 = SWIG_AsVal_double(obj2, &val3);
54984   if (!SWIG_IsOK(ecode3)) {
54985     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Lfoldz" "', argument " "3"" of type '" "double""'");
54986   }
54987   arg3 = static_cast< double >(val3);
54988   if (obj3) {
54989     {
54990       if (PyFile_Check(obj3)) /* check for undef */
54991       arg4 = PyFile_AsFile(obj3);
54992       else  arg4 = NULL;
54993     }
54994   }
54995   {
54996     try {
54997       result = (float)my_Lfoldz(arg1,arg2,arg3,arg4);
54998     } catch (const std::exception& e) {
54999       SWIG_exception(SWIG_RuntimeError, e.what());
55000     }
55001   }
55002   resultobj = SWIG_From_float(static_cast< float >(result));
55003   return resultobj;
55004 fail:
55005   return NULL;
55006 }
55007 
55008 
_wrap_Lfold(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)55009 SWIGINTERN PyObject *_wrap_Lfold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55010   PyObject *resultobj = 0;
55011   std::string arg1 ;
55012   int arg2 ;
55013   FILE *arg3 = (FILE *) NULL ;
55014   int val2 ;
55015   int ecode2 = 0 ;
55016   PyObject * obj0 = 0 ;
55017   PyObject * obj1 = 0 ;
55018   PyObject * obj2 = 0 ;
55019   char * kwnames[] = {
55020     (char *)"sequence",  (char *)"window_size",  (char *)"nullfile",  NULL
55021   };
55022   float result;
55023 
55024   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:Lfold", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
55025   {
55026     std::string *ptr = (std::string *)0;
55027     int res = SWIG_AsPtr_std_string(obj0, &ptr);
55028     if (!SWIG_IsOK(res) || !ptr) {
55029       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Lfold" "', argument " "1"" of type '" "std::string""'");
55030     }
55031     arg1 = *ptr;
55032     if (SWIG_IsNewObj(res)) delete ptr;
55033   }
55034   ecode2 = SWIG_AsVal_int(obj1, &val2);
55035   if (!SWIG_IsOK(ecode2)) {
55036     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Lfold" "', argument " "2"" of type '" "int""'");
55037   }
55038   arg2 = static_cast< int >(val2);
55039   if (obj2) {
55040     {
55041       if (PyFile_Check(obj2)) /* check for undef */
55042       arg3 = PyFile_AsFile(obj2);
55043       else  arg3 = NULL;
55044     }
55045   }
55046   {
55047     try {
55048       result = (float)my_Lfold(arg1,arg2,arg3);
55049     } catch (const std::exception& e) {
55050       SWIG_exception(SWIG_RuntimeError, e.what());
55051     }
55052   }
55053   resultobj = SWIG_From_float(static_cast< float >(result));
55054   return resultobj;
55055 fail:
55056   return NULL;
55057 }
55058 
55059 
_wrap_aliLfold(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)55060 SWIGINTERN PyObject *_wrap_aliLfold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55061   PyObject *resultobj = 0;
55062   std::vector< std::string,std::allocator< std::string > > arg1 ;
55063   int arg2 ;
55064   FILE *arg3 = (FILE *) NULL ;
55065   int val2 ;
55066   int ecode2 = 0 ;
55067   PyObject * obj0 = 0 ;
55068   PyObject * obj1 = 0 ;
55069   PyObject * obj2 = 0 ;
55070   char * kwnames[] = {
55071     (char *)"alignment",  (char *)"window_size",  (char *)"nullfile",  NULL
55072   };
55073   float result;
55074 
55075   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:aliLfold", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
55076   {
55077     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
55078     int res = swig::asptr(obj0, &ptr);
55079     if (!SWIG_IsOK(res) || !ptr) {
55080       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "aliLfold" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
55081     }
55082     arg1 = *ptr;
55083     if (SWIG_IsNewObj(res)) delete ptr;
55084   }
55085   ecode2 = SWIG_AsVal_int(obj1, &val2);
55086   if (!SWIG_IsOK(ecode2)) {
55087     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "aliLfold" "', argument " "2"" of type '" "int""'");
55088   }
55089   arg2 = static_cast< int >(val2);
55090   if (obj2) {
55091     {
55092       if (PyFile_Check(obj2)) /* check for undef */
55093       arg3 = PyFile_AsFile(obj2);
55094       else  arg3 = NULL;
55095     }
55096   }
55097   {
55098     try {
55099       result = (float)my_aliLfold(arg1,arg2,arg3);
55100     } catch (const std::exception& e) {
55101       SWIG_exception(SWIG_RuntimeError, e.what());
55102     }
55103   }
55104   resultobj = SWIG_From_float(static_cast< float >(result));
55105   return resultobj;
55106 fail:
55107   return NULL;
55108 }
55109 
55110 
_wrap_pf_fold__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)55111 SWIGINTERN PyObject *_wrap_pf_fold__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
55112   PyObject *resultobj = 0;
55113   char *arg1 = (char *) 0 ;
55114   float *arg2 = (float *) 0 ;
55115   int res1 ;
55116   char *buf1 = 0 ;
55117   int alloc1 = 0 ;
55118   float temp2 ;
55119   int res2 = SWIG_TMPOBJ ;
55120   char *result = 0 ;
55121 
55122   arg2 = &temp2;
55123   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
55124   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
55125   if (!SWIG_IsOK(res1)) {
55126     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pf_fold" "', argument " "1"" of type '" "char *""'");
55127   }
55128   arg1 = reinterpret_cast< char * >(buf1);
55129   {
55130     try {
55131       result = (char *)my_pf_fold(arg1,arg2);
55132     } catch (const std::exception& e) {
55133       SWIG_exception(SWIG_RuntimeError, e.what());
55134     }
55135   }
55136   resultobj = SWIG_FromCharPtr((const char *)result);
55137   if (SWIG_IsTmpObj(res2)) {
55138     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg2)));
55139   } else {
55140     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
55141     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_float, new_flags));
55142   }
55143   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
55144   delete[] result;
55145   return resultobj;
55146 fail:
55147   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
55148   return NULL;
55149 }
55150 
55151 
_wrap_pf_fold__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)55152 SWIGINTERN PyObject *_wrap_pf_fold__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
55153   PyObject *resultobj = 0;
55154   char *arg1 = (char *) 0 ;
55155   char *arg2 = (char *) 0 ;
55156   float *arg3 = (float *) 0 ;
55157   int res1 ;
55158   char *buf1 = 0 ;
55159   int alloc1 = 0 ;
55160   int res2 ;
55161   char *buf2 = 0 ;
55162   int alloc2 = 0 ;
55163   float temp3 ;
55164   int res3 = SWIG_TMPOBJ ;
55165   char *result = 0 ;
55166 
55167   arg3 = &temp3;
55168   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
55169   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
55170   if (!SWIG_IsOK(res1)) {
55171     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pf_fold" "', argument " "1"" of type '" "char *""'");
55172   }
55173   arg1 = reinterpret_cast< char * >(buf1);
55174   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
55175   if (!SWIG_IsOK(res2)) {
55176     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pf_fold" "', argument " "2"" of type '" "char *""'");
55177   }
55178   arg2 = reinterpret_cast< char * >(buf2);
55179   {
55180     try {
55181       result = (char *)my_pf_fold(arg1,arg2,arg3);
55182     } catch (const std::exception& e) {
55183       SWIG_exception(SWIG_RuntimeError, e.what());
55184     }
55185   }
55186   resultobj = SWIG_FromCharPtr((const char *)result);
55187   if (SWIG_IsTmpObj(res3)) {
55188     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg3)));
55189   } else {
55190     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
55191     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_float, new_flags));
55192   }
55193   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
55194   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
55195   delete[] result;
55196   return resultobj;
55197 fail:
55198   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
55199   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
55200   return NULL;
55201 }
55202 
55203 
_wrap_pf_fold(PyObject * self,PyObject * args)55204 SWIGINTERN PyObject *_wrap_pf_fold(PyObject *self, PyObject *args) {
55205   Py_ssize_t argc;
55206   PyObject *argv[3] = {
55207     0
55208   };
55209 
55210   if (!(argc = SWIG_Python_UnpackTuple(args, "pf_fold", 0, 2, argv))) SWIG_fail;
55211   --argc;
55212   if (argc == 1) {
55213     int _v;
55214     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
55215     _v = SWIG_CheckState(res);
55216     if (_v) {
55217       return _wrap_pf_fold__SWIG_0(self, argc, argv);
55218     }
55219   }
55220   if (argc == 2) {
55221     int _v;
55222     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
55223     _v = SWIG_CheckState(res);
55224     if (_v) {
55225       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
55226       _v = SWIG_CheckState(res);
55227       if (_v) {
55228         return _wrap_pf_fold__SWIG_1(self, argc, argv);
55229       }
55230     }
55231   }
55232 
55233 fail:
55234   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'pf_fold'.\n"
55235     "  Possible C/C++ prototypes are:\n"
55236     "    my_pf_fold(char *,float *)\n"
55237     "    my_pf_fold(char *,char *,float *)\n");
55238   return 0;
55239 }
55240 
55241 
_wrap_pf_circ_fold__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)55242 SWIGINTERN PyObject *_wrap_pf_circ_fold__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
55243   PyObject *resultobj = 0;
55244   char *arg1 = (char *) 0 ;
55245   char *arg2 = (char *) 0 ;
55246   float *arg3 = (float *) 0 ;
55247   int res1 ;
55248   char *buf1 = 0 ;
55249   int alloc1 = 0 ;
55250   int res2 ;
55251   char *buf2 = 0 ;
55252   int alloc2 = 0 ;
55253   float temp3 ;
55254   int res3 = SWIG_TMPOBJ ;
55255   char *result = 0 ;
55256 
55257   arg3 = &temp3;
55258   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
55259   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
55260   if (!SWIG_IsOK(res1)) {
55261     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pf_circ_fold" "', argument " "1"" of type '" "char *""'");
55262   }
55263   arg1 = reinterpret_cast< char * >(buf1);
55264   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
55265   if (!SWIG_IsOK(res2)) {
55266     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pf_circ_fold" "', argument " "2"" of type '" "char *""'");
55267   }
55268   arg2 = reinterpret_cast< char * >(buf2);
55269   {
55270     try {
55271       result = (char *)my_pf_circ_fold(arg1,arg2,arg3);
55272     } catch (const std::exception& e) {
55273       SWIG_exception(SWIG_RuntimeError, e.what());
55274     }
55275   }
55276   resultobj = SWIG_FromCharPtr((const char *)result);
55277   if (SWIG_IsTmpObj(res3)) {
55278     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg3)));
55279   } else {
55280     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
55281     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_float, new_flags));
55282   }
55283   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
55284   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
55285   delete[] result;
55286   return resultobj;
55287 fail:
55288   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
55289   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
55290   return NULL;
55291 }
55292 
55293 
_wrap_pf_circ_fold__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)55294 SWIGINTERN PyObject *_wrap_pf_circ_fold__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
55295   PyObject *resultobj = 0;
55296   char *arg1 = (char *) 0 ;
55297   float *arg2 = (float *) 0 ;
55298   int res1 ;
55299   char *buf1 = 0 ;
55300   int alloc1 = 0 ;
55301   float temp2 ;
55302   int res2 = SWIG_TMPOBJ ;
55303   char *result = 0 ;
55304 
55305   arg2 = &temp2;
55306   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
55307   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
55308   if (!SWIG_IsOK(res1)) {
55309     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pf_circ_fold" "', argument " "1"" of type '" "char *""'");
55310   }
55311   arg1 = reinterpret_cast< char * >(buf1);
55312   {
55313     try {
55314       result = (char *)my_pf_circ_fold(arg1,arg2);
55315     } catch (const std::exception& e) {
55316       SWIG_exception(SWIG_RuntimeError, e.what());
55317     }
55318   }
55319   resultobj = SWIG_FromCharPtr((const char *)result);
55320   if (SWIG_IsTmpObj(res2)) {
55321     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg2)));
55322   } else {
55323     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
55324     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_float, new_flags));
55325   }
55326   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
55327   delete[] result;
55328   return resultobj;
55329 fail:
55330   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
55331   return NULL;
55332 }
55333 
55334 
_wrap_pf_circ_fold(PyObject * self,PyObject * args)55335 SWIGINTERN PyObject *_wrap_pf_circ_fold(PyObject *self, PyObject *args) {
55336   Py_ssize_t argc;
55337   PyObject *argv[3] = {
55338     0
55339   };
55340 
55341   if (!(argc = SWIG_Python_UnpackTuple(args, "pf_circ_fold", 0, 2, argv))) SWIG_fail;
55342   --argc;
55343   if (argc == 1) {
55344     int _v;
55345     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
55346     _v = SWIG_CheckState(res);
55347     if (_v) {
55348       return _wrap_pf_circ_fold__SWIG_1(self, argc, argv);
55349     }
55350   }
55351   if (argc == 2) {
55352     int _v;
55353     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
55354     _v = SWIG_CheckState(res);
55355     if (_v) {
55356       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
55357       _v = SWIG_CheckState(res);
55358       if (_v) {
55359         return _wrap_pf_circ_fold__SWIG_0(self, argc, argv);
55360       }
55361     }
55362   }
55363 
55364 fail:
55365   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'pf_circ_fold'.\n"
55366     "  Possible C/C++ prototypes are:\n"
55367     "    my_pf_circ_fold(char *,char *,float *)\n"
55368     "    my_pf_circ_fold(char *,float *)\n");
55369   return 0;
55370 }
55371 
55372 
_wrap_pf_float_precision(PyObject * SWIGUNUSEDPARM (self),PyObject * args)55373 SWIGINTERN PyObject *_wrap_pf_float_precision(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55374   PyObject *resultobj = 0;
55375   int result;
55376 
55377   if (!SWIG_Python_UnpackTuple(args, "pf_float_precision", 0, 0, 0)) SWIG_fail;
55378   {
55379     try {
55380       result = (int)vrna_pf_float_precision();
55381     } catch (const std::exception& e) {
55382       SWIG_exception(SWIG_RuntimeError, e.what());
55383     }
55384   }
55385   resultobj = SWIG_From_int(static_cast< int >(result));
55386   return resultobj;
55387 fail:
55388   return NULL;
55389 }
55390 
55391 
Swig_var_st_back_set(PyObject * _val)55392 SWIGINTERN int Swig_var_st_back_set(PyObject *_val) {
55393   {
55394     int val;
55395     int res = SWIG_AsVal_int(_val, &val);
55396     if (!SWIG_IsOK(res)) {
55397       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""st_back""' of type '""int""'");
55398     }
55399     st_back = static_cast< int >(val);
55400   }
55401   return 0;
55402 fail:
55403   return 1;
55404 }
55405 
55406 
Swig_var_st_back_get(void)55407 SWIGINTERN PyObject *Swig_var_st_back_get(void) {
55408   PyObject *pyobj = 0;
55409 
55410   pyobj = SWIG_From_int(static_cast< int >(st_back));
55411   return pyobj;
55412 }
55413 
55414 
_wrap_pbacktrack(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)55415 SWIGINTERN PyObject *_wrap_pbacktrack(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55416   PyObject *resultobj = 0;
55417   char *arg1 = (char *) 0 ;
55418   int res1 ;
55419   char *buf1 = 0 ;
55420   int alloc1 = 0 ;
55421   PyObject * obj0 = 0 ;
55422   char * kwnames[] = {
55423     (char *)"sequence",  NULL
55424   };
55425   char *result = 0 ;
55426 
55427   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:pbacktrack", kwnames, &obj0)) SWIG_fail;
55428   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
55429   if (!SWIG_IsOK(res1)) {
55430     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pbacktrack" "', argument " "1"" of type '" "char *""'");
55431   }
55432   arg1 = reinterpret_cast< char * >(buf1);
55433   {
55434     try {
55435       result = (char *)pbacktrack(arg1);
55436     } catch (const std::exception& e) {
55437       SWIG_exception(SWIG_RuntimeError, e.what());
55438     }
55439   }
55440   resultobj = SWIG_FromCharPtr((const char *)result);
55441   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
55442   return resultobj;
55443 fail:
55444   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
55445   return NULL;
55446 }
55447 
55448 
_wrap_pbacktrack5(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)55449 SWIGINTERN PyObject *_wrap_pbacktrack5(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55450   PyObject *resultobj = 0;
55451   char *arg1 = (char *) 0 ;
55452   int arg2 ;
55453   int res1 ;
55454   char *buf1 = 0 ;
55455   int alloc1 = 0 ;
55456   int val2 ;
55457   int ecode2 = 0 ;
55458   PyObject * obj0 = 0 ;
55459   PyObject * obj1 = 0 ;
55460   char * kwnames[] = {
55461     (char *)"sequence",  (char *)"length",  NULL
55462   };
55463   char *result = 0 ;
55464 
55465   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:pbacktrack5", kwnames, &obj0, &obj1)) SWIG_fail;
55466   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
55467   if (!SWIG_IsOK(res1)) {
55468     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pbacktrack5" "', argument " "1"" of type '" "char *""'");
55469   }
55470   arg1 = reinterpret_cast< char * >(buf1);
55471   ecode2 = SWIG_AsVal_int(obj1, &val2);
55472   if (!SWIG_IsOK(ecode2)) {
55473     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pbacktrack5" "', argument " "2"" of type '" "int""'");
55474   }
55475   arg2 = static_cast< int >(val2);
55476   {
55477     try {
55478       result = (char *)pbacktrack5(arg1,arg2);
55479     } catch (const std::exception& e) {
55480       SWIG_exception(SWIG_RuntimeError, e.what());
55481     }
55482   }
55483   resultobj = SWIG_FromCharPtr((const char *)result);
55484   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
55485   return resultobj;
55486 fail:
55487   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
55488   return NULL;
55489 }
55490 
55491 
_wrap_pbacktrack_circ(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)55492 SWIGINTERN PyObject *_wrap_pbacktrack_circ(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55493   PyObject *resultobj = 0;
55494   char *arg1 = (char *) 0 ;
55495   int res1 ;
55496   char *buf1 = 0 ;
55497   int alloc1 = 0 ;
55498   PyObject * obj0 = 0 ;
55499   char * kwnames[] = {
55500     (char *)"sequence",  NULL
55501   };
55502   char *result = 0 ;
55503 
55504   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:pbacktrack_circ", kwnames, &obj0)) SWIG_fail;
55505   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
55506   if (!SWIG_IsOK(res1)) {
55507     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pbacktrack_circ" "', argument " "1"" of type '" "char *""'");
55508   }
55509   arg1 = reinterpret_cast< char * >(buf1);
55510   {
55511     try {
55512       result = (char *)pbacktrack_circ(arg1);
55513     } catch (const std::exception& e) {
55514       SWIG_exception(SWIG_RuntimeError, e.what());
55515     }
55516   }
55517   resultobj = SWIG_FromCharPtr((const char *)result);
55518   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
55519   return resultobj;
55520 fail:
55521   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
55522   return NULL;
55523 }
55524 
55525 
_wrap_free_pf_arrays(PyObject * SWIGUNUSEDPARM (self),PyObject * args)55526 SWIGINTERN PyObject *_wrap_free_pf_arrays(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55527   PyObject *resultobj = 0;
55528 
55529   if (!SWIG_Python_UnpackTuple(args, "free_pf_arrays", 0, 0, 0)) SWIG_fail;
55530   {
55531     try {
55532       free_pf_arrays();
55533     } catch (const std::exception& e) {
55534       SWIG_exception(SWIG_RuntimeError, e.what());
55535     }
55536   }
55537   resultobj = SWIG_Py_Void();
55538   return resultobj;
55539 fail:
55540   return NULL;
55541 }
55542 
55543 
_wrap_update_pf_params(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)55544 SWIGINTERN PyObject *_wrap_update_pf_params(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55545   PyObject *resultobj = 0;
55546   int arg1 ;
55547   int val1 ;
55548   int ecode1 = 0 ;
55549   PyObject * obj0 = 0 ;
55550   char * kwnames[] = {
55551     (char *)"length",  NULL
55552   };
55553 
55554   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:update_pf_params", kwnames, &obj0)) SWIG_fail;
55555   ecode1 = SWIG_AsVal_int(obj0, &val1);
55556   if (!SWIG_IsOK(ecode1)) {
55557     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "update_pf_params" "', argument " "1"" of type '" "int""'");
55558   }
55559   arg1 = static_cast< int >(val1);
55560   {
55561     try {
55562       update_pf_params(arg1);
55563     } catch (const std::exception& e) {
55564       SWIG_exception(SWIG_RuntimeError, e.what());
55565     }
55566   }
55567   resultobj = SWIG_Py_Void();
55568   return resultobj;
55569 fail:
55570   return NULL;
55571 }
55572 
55573 
_wrap_mean_bp_distance(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)55574 SWIGINTERN PyObject *_wrap_mean_bp_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55575   PyObject *resultobj = 0;
55576   int arg1 ;
55577   int val1 ;
55578   int ecode1 = 0 ;
55579   PyObject * obj0 = 0 ;
55580   char * kwnames[] = {
55581     (char *)"length",  NULL
55582   };
55583   double result;
55584 
55585   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:mean_bp_distance", kwnames, &obj0)) SWIG_fail;
55586   ecode1 = SWIG_AsVal_int(obj0, &val1);
55587   if (!SWIG_IsOK(ecode1)) {
55588     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "mean_bp_distance" "', argument " "1"" of type '" "int""'");
55589   }
55590   arg1 = static_cast< int >(val1);
55591   {
55592     try {
55593       result = (double)mean_bp_distance(arg1);
55594     } catch (const std::exception& e) {
55595       SWIG_exception(SWIG_RuntimeError, e.what());
55596     }
55597   }
55598   resultobj = SWIG_From_double(static_cast< double >(result));
55599   return resultobj;
55600 fail:
55601   return NULL;
55602 }
55603 
55604 
_wrap_init_pf_fold(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)55605 SWIGINTERN PyObject *_wrap_init_pf_fold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55606   PyObject *resultobj = 0;
55607   int arg1 ;
55608   int val1 ;
55609   int ecode1 = 0 ;
55610   PyObject * obj0 = 0 ;
55611   char * kwnames[] = {
55612     (char *)"length",  NULL
55613   };
55614 
55615   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:init_pf_fold", kwnames, &obj0)) SWIG_fail;
55616   ecode1 = SWIG_AsVal_int(obj0, &val1);
55617   if (!SWIG_IsOK(ecode1)) {
55618     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "init_pf_fold" "', argument " "1"" of type '" "int""'");
55619   }
55620   arg1 = static_cast< int >(val1);
55621   {
55622     try {
55623       init_pf_fold(arg1);
55624     } catch (const std::exception& e) {
55625       SWIG_exception(SWIG_RuntimeError, e.what());
55626     }
55627   }
55628   resultobj = SWIG_Py_Void();
55629   return resultobj;
55630 fail:
55631   return NULL;
55632 }
55633 
55634 
_wrap_centroid(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)55635 SWIGINTERN PyObject *_wrap_centroid(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55636   PyObject *resultobj = 0;
55637   int arg1 ;
55638   double *arg2 = (double *) 0 ;
55639   int val1 ;
55640   int ecode1 = 0 ;
55641   void *argp2 = 0 ;
55642   int res2 = 0 ;
55643   PyObject * obj0 = 0 ;
55644   PyObject * obj1 = 0 ;
55645   char * kwnames[] = {
55646     (char *)"length",  (char *)"dist",  NULL
55647   };
55648   char *result = 0 ;
55649 
55650   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:centroid", kwnames, &obj0, &obj1)) SWIG_fail;
55651   ecode1 = SWIG_AsVal_int(obj0, &val1);
55652   if (!SWIG_IsOK(ecode1)) {
55653     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "centroid" "', argument " "1"" of type '" "int""'");
55654   }
55655   arg1 = static_cast< int >(val1);
55656   res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 |  0 );
55657   if (!SWIG_IsOK(res2)) {
55658     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "centroid" "', argument " "2"" of type '" "double *""'");
55659   }
55660   arg2 = reinterpret_cast< double * >(argp2);
55661   {
55662     try {
55663       result = (char *)centroid(arg1,arg2);
55664     } catch (const std::exception& e) {
55665       SWIG_exception(SWIG_RuntimeError, e.what());
55666     }
55667   }
55668   resultobj = SWIG_FromCharPtr((const char *)result);
55669   return resultobj;
55670 fail:
55671   return NULL;
55672 }
55673 
55674 
_wrap_co_pf_fold__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)55675 SWIGINTERN PyObject *_wrap_co_pf_fold__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
55676   PyObject *resultobj = 0;
55677   char *arg1 = (char *) 0 ;
55678   float *arg2 = (float *) 0 ;
55679   float *arg3 = (float *) 0 ;
55680   float *arg4 = (float *) 0 ;
55681   float *arg5 = (float *) 0 ;
55682   int res1 ;
55683   char *buf1 = 0 ;
55684   int alloc1 = 0 ;
55685   float temp2 ;
55686   int res2 = SWIG_TMPOBJ ;
55687   float temp3 ;
55688   int res3 = SWIG_TMPOBJ ;
55689   float temp4 ;
55690   int res4 = SWIG_TMPOBJ ;
55691   float temp5 ;
55692   int res5 = SWIG_TMPOBJ ;
55693   char *result = 0 ;
55694 
55695   arg2 = &temp2;
55696   arg3 = &temp3;
55697   arg4 = &temp4;
55698   arg5 = &temp5;
55699   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
55700   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
55701   if (!SWIG_IsOK(res1)) {
55702     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "co_pf_fold" "', argument " "1"" of type '" "char *""'");
55703   }
55704   arg1 = reinterpret_cast< char * >(buf1);
55705   {
55706     try {
55707       result = (char *)my_co_pf_fold(arg1,arg2,arg3,arg4,arg5);
55708     } catch (const std::exception& e) {
55709       SWIG_exception(SWIG_RuntimeError, e.what());
55710     }
55711   }
55712   resultobj = SWIG_FromCharPtr((const char *)result);
55713   if (SWIG_IsTmpObj(res2)) {
55714     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg2)));
55715   } else {
55716     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
55717     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_float, new_flags));
55718   }
55719   if (SWIG_IsTmpObj(res3)) {
55720     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg3)));
55721   } else {
55722     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
55723     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_float, new_flags));
55724   }
55725   if (SWIG_IsTmpObj(res4)) {
55726     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg4)));
55727   } else {
55728     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
55729     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_float, new_flags));
55730   }
55731   if (SWIG_IsTmpObj(res5)) {
55732     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg5)));
55733   } else {
55734     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
55735     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_float, new_flags));
55736   }
55737   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
55738   delete[] result;
55739   return resultobj;
55740 fail:
55741   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
55742   return NULL;
55743 }
55744 
55745 
_wrap_co_pf_fold__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)55746 SWIGINTERN PyObject *_wrap_co_pf_fold__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
55747   PyObject *resultobj = 0;
55748   char *arg1 = (char *) 0 ;
55749   char *arg2 = (char *) 0 ;
55750   float *arg3 = (float *) 0 ;
55751   float *arg4 = (float *) 0 ;
55752   float *arg5 = (float *) 0 ;
55753   float *arg6 = (float *) 0 ;
55754   int res1 ;
55755   char *buf1 = 0 ;
55756   int alloc1 = 0 ;
55757   int res2 ;
55758   char *buf2 = 0 ;
55759   int alloc2 = 0 ;
55760   float temp3 ;
55761   int res3 = SWIG_TMPOBJ ;
55762   float temp4 ;
55763   int res4 = SWIG_TMPOBJ ;
55764   float temp5 ;
55765   int res5 = SWIG_TMPOBJ ;
55766   float temp6 ;
55767   int res6 = SWIG_TMPOBJ ;
55768   char *result = 0 ;
55769 
55770   arg3 = &temp3;
55771   arg4 = &temp4;
55772   arg5 = &temp5;
55773   arg6 = &temp6;
55774   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
55775   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
55776   if (!SWIG_IsOK(res1)) {
55777     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "co_pf_fold" "', argument " "1"" of type '" "char *""'");
55778   }
55779   arg1 = reinterpret_cast< char * >(buf1);
55780   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
55781   if (!SWIG_IsOK(res2)) {
55782     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "co_pf_fold" "', argument " "2"" of type '" "char *""'");
55783   }
55784   arg2 = reinterpret_cast< char * >(buf2);
55785   {
55786     try {
55787       result = (char *)my_co_pf_fold(arg1,arg2,arg3,arg4,arg5,arg6);
55788     } catch (const std::exception& e) {
55789       SWIG_exception(SWIG_RuntimeError, e.what());
55790     }
55791   }
55792   resultobj = SWIG_FromCharPtr((const char *)result);
55793   if (SWIG_IsTmpObj(res3)) {
55794     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg3)));
55795   } else {
55796     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
55797     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_float, new_flags));
55798   }
55799   if (SWIG_IsTmpObj(res4)) {
55800     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg4)));
55801   } else {
55802     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
55803     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_float, new_flags));
55804   }
55805   if (SWIG_IsTmpObj(res5)) {
55806     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg5)));
55807   } else {
55808     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
55809     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_float, new_flags));
55810   }
55811   if (SWIG_IsTmpObj(res6)) {
55812     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg6)));
55813   } else {
55814     int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
55815     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_float, new_flags));
55816   }
55817   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
55818   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
55819   delete[] result;
55820   return resultobj;
55821 fail:
55822   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
55823   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
55824   return NULL;
55825 }
55826 
55827 
_wrap_co_pf_fold(PyObject * self,PyObject * args)55828 SWIGINTERN PyObject *_wrap_co_pf_fold(PyObject *self, PyObject *args) {
55829   Py_ssize_t argc;
55830   PyObject *argv[3] = {
55831     0
55832   };
55833 
55834   if (!(argc = SWIG_Python_UnpackTuple(args, "co_pf_fold", 0, 2, argv))) SWIG_fail;
55835   --argc;
55836   if (argc == 1) {
55837     int _v;
55838     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
55839     _v = SWIG_CheckState(res);
55840     if (_v) {
55841       return _wrap_co_pf_fold__SWIG_0(self, argc, argv);
55842     }
55843   }
55844   if (argc == 2) {
55845     int _v;
55846     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
55847     _v = SWIG_CheckState(res);
55848     if (_v) {
55849       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
55850       _v = SWIG_CheckState(res);
55851       if (_v) {
55852         return _wrap_co_pf_fold__SWIG_1(self, argc, argv);
55853       }
55854     }
55855   }
55856 
55857 fail:
55858   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'co_pf_fold'.\n"
55859     "  Possible C/C++ prototypes are:\n"
55860     "    my_co_pf_fold(char *,float *,float *,float *,float *)\n"
55861     "    my_co_pf_fold(char *,char *,float *,float *,float *,float *)\n");
55862   return 0;
55863 }
55864 
55865 
_wrap_get_concentrations(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)55866 SWIGINTERN PyObject *_wrap_get_concentrations(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55867   PyObject *resultobj = 0;
55868   double arg1 ;
55869   double arg2 ;
55870   double arg3 ;
55871   double arg4 ;
55872   double arg5 ;
55873   double arg6 ;
55874   double arg7 ;
55875   double *arg8 = (double *) 0 ;
55876   double *arg9 = (double *) 0 ;
55877   double *arg10 = (double *) 0 ;
55878   double *arg11 = (double *) 0 ;
55879   double *arg12 = (double *) 0 ;
55880   double val1 ;
55881   int ecode1 = 0 ;
55882   double val2 ;
55883   int ecode2 = 0 ;
55884   double val3 ;
55885   int ecode3 = 0 ;
55886   double val4 ;
55887   int ecode4 = 0 ;
55888   double val5 ;
55889   int ecode5 = 0 ;
55890   double val6 ;
55891   int ecode6 = 0 ;
55892   double val7 ;
55893   int ecode7 = 0 ;
55894   double temp8 ;
55895   int res8 = SWIG_TMPOBJ ;
55896   double temp9 ;
55897   int res9 = SWIG_TMPOBJ ;
55898   double temp10 ;
55899   int res10 = SWIG_TMPOBJ ;
55900   double temp11 ;
55901   int res11 = SWIG_TMPOBJ ;
55902   double temp12 ;
55903   int res12 = SWIG_TMPOBJ ;
55904   PyObject * obj0 = 0 ;
55905   PyObject * obj1 = 0 ;
55906   PyObject * obj2 = 0 ;
55907   PyObject * obj3 = 0 ;
55908   PyObject * obj4 = 0 ;
55909   PyObject * obj5 = 0 ;
55910   PyObject * obj6 = 0 ;
55911   char * kwnames[] = {
55912     (char *)"FcAB",  (char *)"FcAA",  (char *)"FcBB",  (char *)"FEA",  (char *)"FEB",  (char *)"A0",  (char *)"BO",  NULL
55913   };
55914 
55915   arg8 = &temp8;
55916   arg9 = &temp9;
55917   arg10 = &temp10;
55918   arg11 = &temp11;
55919   arg12 = &temp12;
55920   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOOO:get_concentrations", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6)) SWIG_fail;
55921   ecode1 = SWIG_AsVal_double(obj0, &val1);
55922   if (!SWIG_IsOK(ecode1)) {
55923     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "get_concentrations" "', argument " "1"" of type '" "double""'");
55924   }
55925   arg1 = static_cast< double >(val1);
55926   ecode2 = SWIG_AsVal_double(obj1, &val2);
55927   if (!SWIG_IsOK(ecode2)) {
55928     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "get_concentrations" "', argument " "2"" of type '" "double""'");
55929   }
55930   arg2 = static_cast< double >(val2);
55931   ecode3 = SWIG_AsVal_double(obj2, &val3);
55932   if (!SWIG_IsOK(ecode3)) {
55933     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "get_concentrations" "', argument " "3"" of type '" "double""'");
55934   }
55935   arg3 = static_cast< double >(val3);
55936   ecode4 = SWIG_AsVal_double(obj3, &val4);
55937   if (!SWIG_IsOK(ecode4)) {
55938     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "get_concentrations" "', argument " "4"" of type '" "double""'");
55939   }
55940   arg4 = static_cast< double >(val4);
55941   ecode5 = SWIG_AsVal_double(obj4, &val5);
55942   if (!SWIG_IsOK(ecode5)) {
55943     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "get_concentrations" "', argument " "5"" of type '" "double""'");
55944   }
55945   arg5 = static_cast< double >(val5);
55946   ecode6 = SWIG_AsVal_double(obj5, &val6);
55947   if (!SWIG_IsOK(ecode6)) {
55948     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "get_concentrations" "', argument " "6"" of type '" "double""'");
55949   }
55950   arg6 = static_cast< double >(val6);
55951   ecode7 = SWIG_AsVal_double(obj6, &val7);
55952   if (!SWIG_IsOK(ecode7)) {
55953     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "get_concentrations" "', argument " "7"" of type '" "double""'");
55954   }
55955   arg7 = static_cast< double >(val7);
55956   {
55957     try {
55958       my_get_concentrations(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
55959     } catch (const std::exception& e) {
55960       SWIG_exception(SWIG_RuntimeError, e.what());
55961     }
55962   }
55963   resultobj = SWIG_Py_Void();
55964   if (SWIG_IsTmpObj(res8)) {
55965     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg8)));
55966   } else {
55967     int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
55968     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_double, new_flags));
55969   }
55970   if (SWIG_IsTmpObj(res9)) {
55971     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg9)));
55972   } else {
55973     int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
55974     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_double, new_flags));
55975   }
55976   if (SWIG_IsTmpObj(res10)) {
55977     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg10)));
55978   } else {
55979     int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
55980     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_double, new_flags));
55981   }
55982   if (SWIG_IsTmpObj(res11)) {
55983     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg11)));
55984   } else {
55985     int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
55986     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_double, new_flags));
55987   }
55988   if (SWIG_IsTmpObj(res12)) {
55989     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg12)));
55990   } else {
55991     int new_flags = SWIG_IsNewObj(res12) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
55992     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg12), SWIGTYPE_p_double, new_flags));
55993   }
55994   return resultobj;
55995 fail:
55996   return NULL;
55997 }
55998 
55999 
Swig_var_mirnatog_set(PyObject * _val)56000 SWIGINTERN int Swig_var_mirnatog_set(PyObject *_val) {
56001   {
56002     int val;
56003     int res = SWIG_AsVal_int(_val, &val);
56004     if (!SWIG_IsOK(res)) {
56005       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""mirnatog""' of type '""int""'");
56006     }
56007     mirnatog = static_cast< int >(val);
56008   }
56009   return 0;
56010 fail:
56011   return 1;
56012 }
56013 
56014 
Swig_var_mirnatog_get(void)56015 SWIGINTERN PyObject *Swig_var_mirnatog_get(void) {
56016   PyObject *pyobj = 0;
56017 
56018   pyobj = SWIG_From_int(static_cast< int >(mirnatog));
56019   return pyobj;
56020 }
56021 
56022 
Swig_var_F_monomer_set(PyObject * _val)56023 SWIGINTERN int Swig_var_F_monomer_set(PyObject *_val) {
56024   {
56025     double *inp = 0;
56026     int res = SWIG_ConvertPtr(_val, SWIG_as_voidptrptr(&inp), SWIGTYPE_p_double,  0 );
56027     if (!SWIG_IsOK(res)) {
56028       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""F_monomer""' of type '""double [2]""'");
56029     } else if (inp) {
56030       size_t ii = 0;
56031       for (; ii < (size_t)2; ++ii) *(double *)&F_monomer[ii] = *((double *)inp + ii);
56032     } else {
56033       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""F_monomer""' of type '""double [2]""'");
56034     }
56035   }
56036   return 0;
56037 fail:
56038   return 1;
56039 }
56040 
56041 
Swig_var_F_monomer_get(void)56042 SWIGINTERN PyObject *Swig_var_F_monomer_get(void) {
56043   PyObject *pyobj = 0;
56044 
56045   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(F_monomer), SWIGTYPE_p_double,  0 );
56046   return pyobj;
56047 }
56048 
56049 
_wrap_free_co_pf_arrays(PyObject * SWIGUNUSEDPARM (self),PyObject * args)56050 SWIGINTERN PyObject *_wrap_free_co_pf_arrays(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56051   PyObject *resultobj = 0;
56052 
56053   if (!SWIG_Python_UnpackTuple(args, "free_co_pf_arrays", 0, 0, 0)) SWIG_fail;
56054   {
56055     try {
56056       free_co_pf_arrays();
56057     } catch (const std::exception& e) {
56058       SWIG_exception(SWIG_RuntimeError, e.what());
56059     }
56060   }
56061   resultobj = SWIG_Py_Void();
56062   return resultobj;
56063 fail:
56064   return NULL;
56065 }
56066 
56067 
_wrap_update_co_pf_params(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)56068 SWIGINTERN PyObject *_wrap_update_co_pf_params(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
56069   PyObject *resultobj = 0;
56070   int arg1 ;
56071   int val1 ;
56072   int ecode1 = 0 ;
56073   PyObject * obj0 = 0 ;
56074   char * kwnames[] = {
56075     (char *)"length",  NULL
56076   };
56077 
56078   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:update_co_pf_params", kwnames, &obj0)) SWIG_fail;
56079   ecode1 = SWIG_AsVal_int(obj0, &val1);
56080   if (!SWIG_IsOK(ecode1)) {
56081     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "update_co_pf_params" "', argument " "1"" of type '" "int""'");
56082   }
56083   arg1 = static_cast< int >(val1);
56084   {
56085     try {
56086       update_co_pf_params(arg1);
56087     } catch (const std::exception& e) {
56088       SWIG_exception(SWIG_RuntimeError, e.what());
56089     }
56090   }
56091   resultobj = SWIG_Py_Void();
56092   return resultobj;
56093 fail:
56094   return NULL;
56095 }
56096 
56097 
_wrap_get_pr(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)56098 SWIGINTERN PyObject *_wrap_get_pr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
56099   PyObject *resultobj = 0;
56100   int arg1 ;
56101   int arg2 ;
56102   int val1 ;
56103   int ecode1 = 0 ;
56104   int val2 ;
56105   int ecode2 = 0 ;
56106   PyObject * obj0 = 0 ;
56107   PyObject * obj1 = 0 ;
56108   char * kwnames[] = {
56109     (char *)"i",  (char *)"j",  NULL
56110   };
56111   double result;
56112 
56113   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:get_pr", kwnames, &obj0, &obj1)) SWIG_fail;
56114   ecode1 = SWIG_AsVal_int(obj0, &val1);
56115   if (!SWIG_IsOK(ecode1)) {
56116     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "get_pr" "', argument " "1"" of type '" "int""'");
56117   }
56118   arg1 = static_cast< int >(val1);
56119   ecode2 = SWIG_AsVal_int(obj1, &val2);
56120   if (!SWIG_IsOK(ecode2)) {
56121     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "get_pr" "', argument " "2"" of type '" "int""'");
56122   }
56123   arg2 = static_cast< int >(val2);
56124   {
56125     try {
56126       result = (double)get_pr(arg1,arg2);
56127     } catch (const std::exception& e) {
56128       SWIG_exception(SWIG_RuntimeError, e.what());
56129     }
56130   }
56131   resultobj = SWIG_From_double(static_cast< double >(result));
56132   return resultobj;
56133 fail:
56134   return NULL;
56135 }
56136 
56137 
_wrap_get_centroid_struct_pl(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)56138 SWIGINTERN PyObject *_wrap_get_centroid_struct_pl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
56139   PyObject *resultobj = 0;
56140   int arg1 ;
56141   double *arg2 = (double *) 0 ;
56142   vrna_ep_t *arg3 = (vrna_ep_t *) 0 ;
56143   int val1 ;
56144   int ecode1 = 0 ;
56145   void *argp2 = 0 ;
56146   int res2 = 0 ;
56147   void *argp3 = 0 ;
56148   int res3 = 0 ;
56149   PyObject * obj0 = 0 ;
56150   PyObject * obj1 = 0 ;
56151   PyObject * obj2 = 0 ;
56152   char * kwnames[] = {
56153     (char *)"length",  (char *)"dist",  (char *)"pl",  NULL
56154   };
56155   char *result = 0 ;
56156 
56157   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:get_centroid_struct_pl", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
56158   ecode1 = SWIG_AsVal_int(obj0, &val1);
56159   if (!SWIG_IsOK(ecode1)) {
56160     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "get_centroid_struct_pl" "', argument " "1"" of type '" "int""'");
56161   }
56162   arg1 = static_cast< int >(val1);
56163   res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 |  0 );
56164   if (!SWIG_IsOK(res2)) {
56165     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "get_centroid_struct_pl" "', argument " "2"" of type '" "double *""'");
56166   }
56167   arg2 = reinterpret_cast< double * >(argp2);
56168   res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_vrna_ep_t, 0 |  0 );
56169   if (!SWIG_IsOK(res3)) {
56170     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "get_centroid_struct_pl" "', argument " "3"" of type '" "vrna_ep_t *""'");
56171   }
56172   arg3 = reinterpret_cast< vrna_ep_t * >(argp3);
56173   {
56174     try {
56175       result = (char *)get_centroid_struct_pl(arg1,arg2,arg3);
56176     } catch (const std::exception& e) {
56177       SWIG_exception(SWIG_RuntimeError, e.what());
56178     }
56179   }
56180   resultobj = SWIG_FromCharPtr((const char *)result);
56181   return resultobj;
56182 fail:
56183   return NULL;
56184 }
56185 
56186 
_wrap_get_centroid_struct_pr(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)56187 SWIGINTERN PyObject *_wrap_get_centroid_struct_pr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
56188   PyObject *resultobj = 0;
56189   int arg1 ;
56190   double *arg2 = (double *) 0 ;
56191   FLT_OR_DBL *arg3 = (FLT_OR_DBL *) 0 ;
56192   int val1 ;
56193   int ecode1 = 0 ;
56194   void *argp2 = 0 ;
56195   int res2 = 0 ;
56196   void *argp3 = 0 ;
56197   int res3 = 0 ;
56198   PyObject * obj0 = 0 ;
56199   PyObject * obj1 = 0 ;
56200   PyObject * obj2 = 0 ;
56201   char * kwnames[] = {
56202     (char *)"length",  (char *)"dist",  (char *)"pr",  NULL
56203   };
56204   char *result = 0 ;
56205 
56206   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:get_centroid_struct_pr", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
56207   ecode1 = SWIG_AsVal_int(obj0, &val1);
56208   if (!SWIG_IsOK(ecode1)) {
56209     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "get_centroid_struct_pr" "', argument " "1"" of type '" "int""'");
56210   }
56211   arg1 = static_cast< int >(val1);
56212   res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 |  0 );
56213   if (!SWIG_IsOK(res2)) {
56214     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "get_centroid_struct_pr" "', argument " "2"" of type '" "double *""'");
56215   }
56216   arg2 = reinterpret_cast< double * >(argp2);
56217   res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_double, 0 |  0 );
56218   if (!SWIG_IsOK(res3)) {
56219     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "get_centroid_struct_pr" "', argument " "3"" of type '" "FLT_OR_DBL *""'");
56220   }
56221   arg3 = reinterpret_cast< FLT_OR_DBL * >(argp3);
56222   {
56223     try {
56224       result = (char *)get_centroid_struct_pr(arg1,arg2,arg3);
56225     } catch (const std::exception& e) {
56226       SWIG_exception(SWIG_RuntimeError, e.what());
56227     }
56228   }
56229   resultobj = SWIG_FromCharPtr((const char *)result);
56230   return resultobj;
56231 fail:
56232   return NULL;
56233 }
56234 
56235 
_wrap_MEA_from_plist__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)56236 SWIGINTERN PyObject *_wrap_MEA_from_plist__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
56237   PyObject *resultobj = 0;
56238   std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > arg1 ;
56239   std::string arg2 ;
56240   double arg3 ;
56241   vrna_md_t *arg4 = (vrna_md_t *) 0 ;
56242   float *arg5 = (float *) 0 ;
56243   double val3 ;
56244   int ecode3 = 0 ;
56245   void *argp4 = 0 ;
56246   int res4 = 0 ;
56247   float temp5 ;
56248   int res5 = SWIG_TMPOBJ ;
56249   char *result = 0 ;
56250 
56251   arg5 = &temp5;
56252   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
56253   {
56254     std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *ptr = (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *)0;
56255     int res = swig::asptr(swig_obj[0], &ptr);
56256     if (!SWIG_IsOK(res) || !ptr) {
56257       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "MEA_from_plist" "', argument " "1"" of type '" "std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >""'");
56258     }
56259     arg1 = *ptr;
56260     if (SWIG_IsNewObj(res)) delete ptr;
56261   }
56262   {
56263     std::string *ptr = (std::string *)0;
56264     int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
56265     if (!SWIG_IsOK(res) || !ptr) {
56266       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "MEA_from_plist" "', argument " "2"" of type '" "std::string""'");
56267     }
56268     arg2 = *ptr;
56269     if (SWIG_IsNewObj(res)) delete ptr;
56270   }
56271   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
56272   if (!SWIG_IsOK(ecode3)) {
56273     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MEA_from_plist" "', argument " "3"" of type '" "double""'");
56274   }
56275   arg3 = static_cast< double >(val3);
56276   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_vrna_md_t, 0 |  0 );
56277   if (!SWIG_IsOK(res4)) {
56278     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MEA_from_plist" "', argument " "4"" of type '" "vrna_md_t *""'");
56279   }
56280   arg4 = reinterpret_cast< vrna_md_t * >(argp4);
56281   {
56282     try {
56283       result = (char *)my_MEA_from_plist(arg1,arg2,arg3,arg4,arg5);
56284     } catch (const std::exception& e) {
56285       SWIG_exception(SWIG_RuntimeError, e.what());
56286     }
56287   }
56288   resultobj = SWIG_FromCharPtr((const char *)result);
56289   if (SWIG_IsTmpObj(res5)) {
56290     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg5)));
56291   } else {
56292     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
56293     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_float, new_flags));
56294   }
56295   return resultobj;
56296 fail:
56297   return NULL;
56298 }
56299 
56300 
_wrap_MEA_from_plist__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)56301 SWIGINTERN PyObject *_wrap_MEA_from_plist__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
56302   PyObject *resultobj = 0;
56303   std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > arg1 ;
56304   std::string arg2 ;
56305   vrna_md_t *arg3 = (vrna_md_t *) 0 ;
56306   float *arg4 = (float *) 0 ;
56307   void *argp3 = 0 ;
56308   int res3 = 0 ;
56309   float temp4 ;
56310   int res4 = SWIG_TMPOBJ ;
56311   char *result = 0 ;
56312 
56313   arg4 = &temp4;
56314   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
56315   {
56316     std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *ptr = (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *)0;
56317     int res = swig::asptr(swig_obj[0], &ptr);
56318     if (!SWIG_IsOK(res) || !ptr) {
56319       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "MEA_from_plist" "', argument " "1"" of type '" "std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >""'");
56320     }
56321     arg1 = *ptr;
56322     if (SWIG_IsNewObj(res)) delete ptr;
56323   }
56324   {
56325     std::string *ptr = (std::string *)0;
56326     int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
56327     if (!SWIG_IsOK(res) || !ptr) {
56328       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "MEA_from_plist" "', argument " "2"" of type '" "std::string""'");
56329     }
56330     arg2 = *ptr;
56331     if (SWIG_IsNewObj(res)) delete ptr;
56332   }
56333   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_vrna_md_t, 0 |  0 );
56334   if (!SWIG_IsOK(res3)) {
56335     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MEA_from_plist" "', argument " "3"" of type '" "vrna_md_t *""'");
56336   }
56337   arg3 = reinterpret_cast< vrna_md_t * >(argp3);
56338   {
56339     try {
56340       result = (char *)my_MEA_from_plist(arg1,arg2,arg3,arg4);
56341     } catch (const std::exception& e) {
56342       SWIG_exception(SWIG_RuntimeError, e.what());
56343     }
56344   }
56345   resultobj = SWIG_FromCharPtr((const char *)result);
56346   if (SWIG_IsTmpObj(res4)) {
56347     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg4)));
56348   } else {
56349     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
56350     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_float, new_flags));
56351   }
56352   return resultobj;
56353 fail:
56354   return NULL;
56355 }
56356 
56357 
_wrap_MEA_from_plist__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)56358 SWIGINTERN PyObject *_wrap_MEA_from_plist__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
56359   PyObject *resultobj = 0;
56360   std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > arg1 ;
56361   std::string arg2 ;
56362   double arg3 ;
56363   float *arg4 = (float *) 0 ;
56364   double val3 ;
56365   int ecode3 = 0 ;
56366   float temp4 ;
56367   int res4 = SWIG_TMPOBJ ;
56368   char *result = 0 ;
56369 
56370   arg4 = &temp4;
56371   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
56372   {
56373     std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *ptr = (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *)0;
56374     int res = swig::asptr(swig_obj[0], &ptr);
56375     if (!SWIG_IsOK(res) || !ptr) {
56376       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "MEA_from_plist" "', argument " "1"" of type '" "std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >""'");
56377     }
56378     arg1 = *ptr;
56379     if (SWIG_IsNewObj(res)) delete ptr;
56380   }
56381   {
56382     std::string *ptr = (std::string *)0;
56383     int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
56384     if (!SWIG_IsOK(res) || !ptr) {
56385       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "MEA_from_plist" "', argument " "2"" of type '" "std::string""'");
56386     }
56387     arg2 = *ptr;
56388     if (SWIG_IsNewObj(res)) delete ptr;
56389   }
56390   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
56391   if (!SWIG_IsOK(ecode3)) {
56392     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MEA_from_plist" "', argument " "3"" of type '" "double""'");
56393   }
56394   arg3 = static_cast< double >(val3);
56395   {
56396     try {
56397       result = (char *)my_MEA_from_plist(arg1,arg2,arg3,arg4);
56398     } catch (const std::exception& e) {
56399       SWIG_exception(SWIG_RuntimeError, e.what());
56400     }
56401   }
56402   resultobj = SWIG_FromCharPtr((const char *)result);
56403   if (SWIG_IsTmpObj(res4)) {
56404     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg4)));
56405   } else {
56406     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
56407     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_float, new_flags));
56408   }
56409   return resultobj;
56410 fail:
56411   return NULL;
56412 }
56413 
56414 
_wrap_MEA_from_plist__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)56415 SWIGINTERN PyObject *_wrap_MEA_from_plist__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
56416   PyObject *resultobj = 0;
56417   std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > arg1 ;
56418   std::string arg2 ;
56419   float *arg3 = (float *) 0 ;
56420   float temp3 ;
56421   int res3 = SWIG_TMPOBJ ;
56422   char *result = 0 ;
56423 
56424   arg3 = &temp3;
56425   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
56426   {
56427     std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *ptr = (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *)0;
56428     int res = swig::asptr(swig_obj[0], &ptr);
56429     if (!SWIG_IsOK(res) || !ptr) {
56430       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "MEA_from_plist" "', argument " "1"" of type '" "std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >""'");
56431     }
56432     arg1 = *ptr;
56433     if (SWIG_IsNewObj(res)) delete ptr;
56434   }
56435   {
56436     std::string *ptr = (std::string *)0;
56437     int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
56438     if (!SWIG_IsOK(res) || !ptr) {
56439       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "MEA_from_plist" "', argument " "2"" of type '" "std::string""'");
56440     }
56441     arg2 = *ptr;
56442     if (SWIG_IsNewObj(res)) delete ptr;
56443   }
56444   {
56445     try {
56446       result = (char *)my_MEA_from_plist(arg1,arg2,arg3);
56447     } catch (const std::exception& e) {
56448       SWIG_exception(SWIG_RuntimeError, e.what());
56449     }
56450   }
56451   resultobj = SWIG_FromCharPtr((const char *)result);
56452   if (SWIG_IsTmpObj(res3)) {
56453     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg3)));
56454   } else {
56455     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
56456     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_float, new_flags));
56457   }
56458   return resultobj;
56459 fail:
56460   return NULL;
56461 }
56462 
56463 
_wrap_MEA_from_plist(PyObject * self,PyObject * args)56464 SWIGINTERN PyObject *_wrap_MEA_from_plist(PyObject *self, PyObject *args) {
56465   Py_ssize_t argc;
56466   PyObject *argv[5] = {
56467     0
56468   };
56469 
56470   if (!(argc = SWIG_Python_UnpackTuple(args, "MEA_from_plist", 0, 4, argv))) SWIG_fail;
56471   --argc;
56472   if (argc == 2) {
56473     int _v;
56474     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
56475     _v = SWIG_CheckState(res);
56476     if (_v) {
56477       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
56478       _v = SWIG_CheckState(res);
56479       if (_v) {
56480         return _wrap_MEA_from_plist__SWIG_3(self, argc, argv);
56481       }
56482     }
56483   }
56484   if (argc == 3) {
56485     int _v;
56486     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
56487     _v = SWIG_CheckState(res);
56488     if (_v) {
56489       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
56490       _v = SWIG_CheckState(res);
56491       if (_v) {
56492         void *vptr = 0;
56493         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_vrna_md_t, 0);
56494         _v = SWIG_CheckState(res);
56495         if (_v) {
56496           return _wrap_MEA_from_plist__SWIG_1(self, argc, argv);
56497         }
56498       }
56499     }
56500   }
56501   if (argc == 3) {
56502     int _v;
56503     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
56504     _v = SWIG_CheckState(res);
56505     if (_v) {
56506       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
56507       _v = SWIG_CheckState(res);
56508       if (_v) {
56509         {
56510           int res = SWIG_AsVal_double(argv[2], NULL);
56511           _v = SWIG_CheckState(res);
56512         }
56513         if (_v) {
56514           return _wrap_MEA_from_plist__SWIG_2(self, argc, argv);
56515         }
56516       }
56517     }
56518   }
56519   if (argc == 4) {
56520     int _v;
56521     int res = swig::asptr(argv[0], (std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >**)(0));
56522     _v = SWIG_CheckState(res);
56523     if (_v) {
56524       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
56525       _v = SWIG_CheckState(res);
56526       if (_v) {
56527         {
56528           int res = SWIG_AsVal_double(argv[2], NULL);
56529           _v = SWIG_CheckState(res);
56530         }
56531         if (_v) {
56532           void *vptr = 0;
56533           int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_vrna_md_t, 0);
56534           _v = SWIG_CheckState(res);
56535           if (_v) {
56536             return _wrap_MEA_from_plist__SWIG_0(self, argc, argv);
56537           }
56538         }
56539       }
56540     }
56541   }
56542 
56543 fail:
56544   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MEA_from_plist'.\n"
56545     "  Possible C/C++ prototypes are:\n"
56546     "    my_MEA_from_plist(std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >,std::string,double,vrna_md_t *,float *)\n"
56547     "    my_MEA_from_plist(std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >,std::string,vrna_md_t *,float *)\n"
56548     "    my_MEA_from_plist(std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >,std::string,double,float *)\n"
56549     "    my_MEA_from_plist(std::vector< vrna_ep_t,std::allocator< vrna_ep_t > >,std::string,float *)\n");
56550   return 0;
56551 }
56552 
56553 
_wrap_new_pbacktrack_mem(PyObject * SWIGUNUSEDPARM (self),PyObject * args)56554 SWIGINTERN PyObject *_wrap_new_pbacktrack_mem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56555   PyObject *resultobj = 0;
56556   vrna_pbacktrack_mem_t *result = 0 ;
56557 
56558   if (!SWIG_Python_UnpackTuple(args, "new_pbacktrack_mem", 0, 0, 0)) SWIG_fail;
56559   {
56560     try {
56561       result = (vrna_pbacktrack_mem_t *)new_vrna_pbacktrack_mem_t();
56562     } catch (const std::exception& e) {
56563       SWIG_exception(SWIG_RuntimeError, e.what());
56564     }
56565   }
56566   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_pbacktrack_mem_t, SWIG_POINTER_NEW |  0 );
56567   return resultobj;
56568 fail:
56569   return NULL;
56570 }
56571 
56572 
_wrap_delete_pbacktrack_mem(PyObject * SWIGUNUSEDPARM (self),PyObject * args)56573 SWIGINTERN PyObject *_wrap_delete_pbacktrack_mem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56574   PyObject *resultobj = 0;
56575   vrna_pbacktrack_mem_t *arg1 = (vrna_pbacktrack_mem_t *) 0 ;
56576   void *argp1 = 0 ;
56577   int res1 = 0 ;
56578   PyObject *swig_obj[1] ;
56579 
56580   if (!args) SWIG_fail;
56581   swig_obj[0] = args;
56582   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_pbacktrack_mem_t, SWIG_POINTER_DISOWN |  0 );
56583   if (!SWIG_IsOK(res1)) {
56584     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_pbacktrack_mem" "', argument " "1"" of type '" "vrna_pbacktrack_mem_t *""'");
56585   }
56586   arg1 = reinterpret_cast< vrna_pbacktrack_mem_t * >(argp1);
56587   {
56588     try {
56589       delete_vrna_pbacktrack_mem_t(arg1);
56590     } catch (const std::exception& e) {
56591       SWIG_exception(SWIG_RuntimeError, e.what());
56592     }
56593   }
56594   resultobj = SWIG_Py_Void();
56595   return resultobj;
56596 fail:
56597   return NULL;
56598 }
56599 
56600 
pbacktrack_mem_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)56601 SWIGINTERN PyObject *pbacktrack_mem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56602   PyObject *obj;
56603   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
56604   SWIG_TypeNewClientData(SWIGTYPE_p_vrna_pbacktrack_mem_t, SWIG_NewClientData(obj));
56605   return SWIG_Py_Void();
56606 }
56607 
pbacktrack_mem_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)56608 SWIGINTERN PyObject *pbacktrack_mem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56609   return SWIG_Python_InitShadowInstance(args);
56610 }
56611 
_wrap_pfl_fold(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)56612 SWIGINTERN PyObject *_wrap_pfl_fold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
56613   PyObject *resultobj = 0;
56614   std::string arg1 ;
56615   int arg2 ;
56616   int arg3 ;
56617   double arg4 ;
56618   int val2 ;
56619   int ecode2 = 0 ;
56620   int val3 ;
56621   int ecode3 = 0 ;
56622   double val4 ;
56623   int ecode4 = 0 ;
56624   PyObject * obj0 = 0 ;
56625   PyObject * obj1 = 0 ;
56626   PyObject * obj2 = 0 ;
56627   PyObject * obj3 = 0 ;
56628   char * kwnames[] = {
56629     (char *)"sequence",  (char *)"w",  (char *)"L",  (char *)"cutoff",  NULL
56630   };
56631   std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > result;
56632 
56633   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:pfl_fold", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
56634   {
56635     std::string *ptr = (std::string *)0;
56636     int res = SWIG_AsPtr_std_string(obj0, &ptr);
56637     if (!SWIG_IsOK(res) || !ptr) {
56638       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "pfl_fold" "', argument " "1"" of type '" "std::string""'");
56639     }
56640     arg1 = *ptr;
56641     if (SWIG_IsNewObj(res)) delete ptr;
56642   }
56643   ecode2 = SWIG_AsVal_int(obj1, &val2);
56644   if (!SWIG_IsOK(ecode2)) {
56645     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pfl_fold" "', argument " "2"" of type '" "int""'");
56646   }
56647   arg2 = static_cast< int >(val2);
56648   ecode3 = SWIG_AsVal_int(obj2, &val3);
56649   if (!SWIG_IsOK(ecode3)) {
56650     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pfl_fold" "', argument " "3"" of type '" "int""'");
56651   }
56652   arg3 = static_cast< int >(val3);
56653   ecode4 = SWIG_AsVal_double(obj3, &val4);
56654   if (!SWIG_IsOK(ecode4)) {
56655     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pfl_fold" "', argument " "4"" of type '" "double""'");
56656   }
56657   arg4 = static_cast< double >(val4);
56658   {
56659     try {
56660       result = my_pfl_fold(arg1,arg2,arg3,arg4);
56661     } catch (const std::exception& e) {
56662       SWIG_exception(SWIG_RuntimeError, e.what());
56663     }
56664   }
56665   resultobj = swig::from(static_cast< std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > >(result));
56666   return resultobj;
56667 fail:
56668   return NULL;
56669 }
56670 
56671 
_wrap_pfl_fold_up(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)56672 SWIGINTERN PyObject *_wrap_pfl_fold_up(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
56673   PyObject *resultobj = 0;
56674   std::string arg1 ;
56675   int arg2 ;
56676   int arg3 ;
56677   int arg4 ;
56678   int val2 ;
56679   int ecode2 = 0 ;
56680   int val3 ;
56681   int ecode3 = 0 ;
56682   int val4 ;
56683   int ecode4 = 0 ;
56684   PyObject * obj0 = 0 ;
56685   PyObject * obj1 = 0 ;
56686   PyObject * obj2 = 0 ;
56687   PyObject * obj3 = 0 ;
56688   char * kwnames[] = {
56689     (char *)"sequence",  (char *)"ulength",  (char *)"window_size",  (char *)"max_bp_span",  NULL
56690   };
56691   std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > result;
56692 
56693   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:pfl_fold_up", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
56694   {
56695     std::string *ptr = (std::string *)0;
56696     int res = SWIG_AsPtr_std_string(obj0, &ptr);
56697     if (!SWIG_IsOK(res) || !ptr) {
56698       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "pfl_fold_up" "', argument " "1"" of type '" "std::string""'");
56699     }
56700     arg1 = *ptr;
56701     if (SWIG_IsNewObj(res)) delete ptr;
56702   }
56703   ecode2 = SWIG_AsVal_int(obj1, &val2);
56704   if (!SWIG_IsOK(ecode2)) {
56705     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pfl_fold_up" "', argument " "2"" of type '" "int""'");
56706   }
56707   arg2 = static_cast< int >(val2);
56708   ecode3 = SWIG_AsVal_int(obj2, &val3);
56709   if (!SWIG_IsOK(ecode3)) {
56710     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pfl_fold_up" "', argument " "3"" of type '" "int""'");
56711   }
56712   arg3 = static_cast< int >(val3);
56713   ecode4 = SWIG_AsVal_int(obj3, &val4);
56714   if (!SWIG_IsOK(ecode4)) {
56715     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pfl_fold_up" "', argument " "4"" of type '" "int""'");
56716   }
56717   arg4 = static_cast< int >(val4);
56718   {
56719     try {
56720       result = pfl_fold_up(arg1,arg2,arg3,arg4);
56721     } catch (const std::exception& e) {
56722       SWIG_exception(SWIG_RuntimeError, e.what());
56723     }
56724   }
56725   resultobj = swig::from(static_cast< std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > >(result));
56726   return resultobj;
56727 fail:
56728   return NULL;
56729 }
56730 
56731 
Swig_var_subopt_sorted_set(PyObject * _val)56732 SWIGINTERN int Swig_var_subopt_sorted_set(PyObject *_val) {
56733   {
56734     int val;
56735     int res = SWIG_AsVal_int(_val, &val);
56736     if (!SWIG_IsOK(res)) {
56737       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""subopt_sorted""' of type '""int""'");
56738     }
56739     subopt_sorted = static_cast< int >(val);
56740   }
56741   return 0;
56742 fail:
56743   return 1;
56744 }
56745 
56746 
Swig_var_subopt_sorted_get(void)56747 SWIGINTERN PyObject *Swig_var_subopt_sorted_get(void) {
56748   PyObject *pyobj = 0;
56749 
56750   pyobj = SWIG_From_int(static_cast< int >(subopt_sorted));
56751   return pyobj;
56752 }
56753 
56754 
_wrap_SOLUTION_energy_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)56755 SWIGINTERN PyObject *_wrap_SOLUTION_energy_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56756   PyObject *resultobj = 0;
56757   SOLUTION *arg1 = (SOLUTION *) 0 ;
56758   float arg2 ;
56759   void *argp1 = 0 ;
56760   int res1 = 0 ;
56761   float val2 ;
56762   int ecode2 = 0 ;
56763   PyObject *swig_obj[2] ;
56764 
56765   if (!SWIG_Python_UnpackTuple(args, "SOLUTION_energy_set", 2, 2, swig_obj)) SWIG_fail;
56766   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_SOLUTION, 0 |  0 );
56767   if (!SWIG_IsOK(res1)) {
56768     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTION_energy_set" "', argument " "1"" of type '" "SOLUTION *""'");
56769   }
56770   arg1 = reinterpret_cast< SOLUTION * >(argp1);
56771   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
56772   if (!SWIG_IsOK(ecode2)) {
56773     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SOLUTION_energy_set" "', argument " "2"" of type '" "float""'");
56774   }
56775   arg2 = static_cast< float >(val2);
56776   if (arg1) (arg1)->energy = arg2;
56777   resultobj = SWIG_Py_Void();
56778   return resultobj;
56779 fail:
56780   return NULL;
56781 }
56782 
56783 
_wrap_SOLUTION_energy_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)56784 SWIGINTERN PyObject *_wrap_SOLUTION_energy_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56785   PyObject *resultobj = 0;
56786   SOLUTION *arg1 = (SOLUTION *) 0 ;
56787   void *argp1 = 0 ;
56788   int res1 = 0 ;
56789   PyObject *swig_obj[1] ;
56790   float result;
56791 
56792   if (!args) SWIG_fail;
56793   swig_obj[0] = args;
56794   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_SOLUTION, 0 |  0 );
56795   if (!SWIG_IsOK(res1)) {
56796     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTION_energy_get" "', argument " "1"" of type '" "SOLUTION *""'");
56797   }
56798   arg1 = reinterpret_cast< SOLUTION * >(argp1);
56799   result = (float) ((arg1)->energy);
56800   resultobj = SWIG_From_float(static_cast< float >(result));
56801   return resultobj;
56802 fail:
56803   return NULL;
56804 }
56805 
56806 
_wrap_SOLUTION_structure_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)56807 SWIGINTERN PyObject *_wrap_SOLUTION_structure_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56808   PyObject *resultobj = 0;
56809   SOLUTION *arg1 = (SOLUTION *) 0 ;
56810   char *arg2 = (char *) 0 ;
56811   void *argp1 = 0 ;
56812   int res1 = 0 ;
56813   int res2 ;
56814   char *buf2 = 0 ;
56815   int alloc2 = 0 ;
56816   PyObject *swig_obj[2] ;
56817 
56818   if (!SWIG_Python_UnpackTuple(args, "SOLUTION_structure_set", 2, 2, swig_obj)) SWIG_fail;
56819   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_SOLUTION, 0 |  0 );
56820   if (!SWIG_IsOK(res1)) {
56821     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTION_structure_set" "', argument " "1"" of type '" "SOLUTION *""'");
56822   }
56823   arg1 = reinterpret_cast< SOLUTION * >(argp1);
56824   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
56825   if (!SWIG_IsOK(res2)) {
56826     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SOLUTION_structure_set" "', argument " "2"" of type '" "char *""'");
56827   }
56828   arg2 = reinterpret_cast< char * >(buf2);
56829   if (arg1->structure) delete[] arg1->structure;
56830   if (arg2) {
56831     size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1;
56832     arg1->structure = (char *)reinterpret_cast< char* >(memcpy(new char[size], reinterpret_cast< const char * >(arg2), sizeof(char)*(size)));
56833   } else {
56834     arg1->structure = 0;
56835   }
56836   resultobj = SWIG_Py_Void();
56837   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
56838   return resultobj;
56839 fail:
56840   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
56841   return NULL;
56842 }
56843 
56844 
_wrap_SOLUTION_structure_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)56845 SWIGINTERN PyObject *_wrap_SOLUTION_structure_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56846   PyObject *resultobj = 0;
56847   SOLUTION *arg1 = (SOLUTION *) 0 ;
56848   void *argp1 = 0 ;
56849   int res1 = 0 ;
56850   PyObject *swig_obj[1] ;
56851   char *result = 0 ;
56852 
56853   if (!args) SWIG_fail;
56854   swig_obj[0] = args;
56855   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_SOLUTION, 0 |  0 );
56856   if (!SWIG_IsOK(res1)) {
56857     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTION_structure_get" "', argument " "1"" of type '" "SOLUTION *""'");
56858   }
56859   arg1 = reinterpret_cast< SOLUTION * >(argp1);
56860   result = (char *) ((arg1)->structure);
56861   resultobj = SWIG_FromCharPtr((const char *)result);
56862   return resultobj;
56863 fail:
56864   return NULL;
56865 }
56866 
56867 
_wrap_SOLUTION_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)56868 SWIGINTERN PyObject *_wrap_SOLUTION_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
56869   PyObject *resultobj = 0;
56870   SOLUTION *arg1 = (SOLUTION *) 0 ;
56871   int arg2 ;
56872   void *argp1 = 0 ;
56873   int res1 = 0 ;
56874   int val2 ;
56875   int ecode2 = 0 ;
56876   PyObject * obj0 = 0 ;
56877   PyObject * obj1 = 0 ;
56878   char * kwnames[] = {
56879     (char *)"self",  (char *)"i",  NULL
56880   };
56881   SOLUTION *result = 0 ;
56882 
56883   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:SOLUTION_get", kwnames, &obj0, &obj1)) SWIG_fail;
56884   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SOLUTION, 0 |  0 );
56885   if (!SWIG_IsOK(res1)) {
56886     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTION_get" "', argument " "1"" of type '" "SOLUTION *""'");
56887   }
56888   arg1 = reinterpret_cast< SOLUTION * >(argp1);
56889   ecode2 = SWIG_AsVal_int(obj1, &val2);
56890   if (!SWIG_IsOK(ecode2)) {
56891     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SOLUTION_get" "', argument " "2"" of type '" "int""'");
56892   }
56893   arg2 = static_cast< int >(val2);
56894   {
56895     try {
56896       result = (SOLUTION *)SOLUTION_get(arg1,arg2);
56897     } catch (const std::exception& e) {
56898       SWIG_exception(SWIG_RuntimeError, e.what());
56899     }
56900   }
56901   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SOLUTION, 0 |  0 );
56902   return resultobj;
56903 fail:
56904   return NULL;
56905 }
56906 
56907 
_wrap_SOLUTION_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)56908 SWIGINTERN PyObject *_wrap_SOLUTION_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56909   PyObject *resultobj = 0;
56910   SOLUTION *arg1 = (SOLUTION *) 0 ;
56911   void *argp1 = 0 ;
56912   int res1 = 0 ;
56913   PyObject *swig_obj[1] ;
56914   int result;
56915 
56916   if (!args) SWIG_fail;
56917   swig_obj[0] = args;
56918   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_SOLUTION, 0 |  0 );
56919   if (!SWIG_IsOK(res1)) {
56920     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SOLUTION_size" "', argument " "1"" of type '" "SOLUTION *""'");
56921   }
56922   arg1 = reinterpret_cast< SOLUTION * >(argp1);
56923   {
56924     try {
56925       result = (int)SOLUTION_size(arg1);
56926     } catch (const std::exception& e) {
56927       SWIG_exception(SWIG_RuntimeError, e.what());
56928     }
56929   }
56930   resultobj = SWIG_From_int(static_cast< int >(result));
56931   return resultobj;
56932 fail:
56933   return NULL;
56934 }
56935 
56936 
_wrap_delete_SOLUTION(PyObject * SWIGUNUSEDPARM (self),PyObject * args)56937 SWIGINTERN PyObject *_wrap_delete_SOLUTION(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56938   PyObject *resultobj = 0;
56939   SOLUTION *arg1 = (SOLUTION *) 0 ;
56940   void *argp1 = 0 ;
56941   int res1 = 0 ;
56942   PyObject *swig_obj[1] ;
56943 
56944   if (!args) SWIG_fail;
56945   swig_obj[0] = args;
56946   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_SOLUTION, SWIG_POINTER_DISOWN |  0 );
56947   if (!SWIG_IsOK(res1)) {
56948     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SOLUTION" "', argument " "1"" of type '" "SOLUTION *""'");
56949   }
56950   arg1 = reinterpret_cast< SOLUTION * >(argp1);
56951   {
56952     try {
56953       delete_SOLUTION(arg1);
56954     } catch (const std::exception& e) {
56955       SWIG_exception(SWIG_RuntimeError, e.what());
56956     }
56957   }
56958   resultobj = SWIG_Py_Void();
56959   return resultobj;
56960 fail:
56961   return NULL;
56962 }
56963 
56964 
_wrap_new_SOLUTION(PyObject * SWIGUNUSEDPARM (self),PyObject * args)56965 SWIGINTERN PyObject *_wrap_new_SOLUTION(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56966   PyObject *resultobj = 0;
56967   SOLUTION *result = 0 ;
56968 
56969   if (!SWIG_Python_UnpackTuple(args, "new_SOLUTION", 0, 0, 0)) SWIG_fail;
56970   {
56971     try {
56972       result = (SOLUTION *)new SOLUTION();
56973     } catch (const std::exception& e) {
56974       SWIG_exception(SWIG_RuntimeError, e.what());
56975     }
56976   }
56977   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SOLUTION, SWIG_POINTER_NEW |  0 );
56978   return resultobj;
56979 fail:
56980   return NULL;
56981 }
56982 
56983 
SOLUTION_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)56984 SWIGINTERN PyObject *SOLUTION_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56985   PyObject *obj;
56986   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
56987   SWIG_TypeNewClientData(SWIGTYPE_p_SOLUTION, SWIG_NewClientData(obj));
56988   return SWIG_Py_Void();
56989 }
56990 
SOLUTION_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)56991 SWIGINTERN PyObject *SOLUTION_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56992   return SWIG_Python_InitShadowInstance(args);
56993 }
56994 
_wrap_subopt_solution_energy_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)56995 SWIGINTERN PyObject *_wrap_subopt_solution_energy_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56996   PyObject *resultobj = 0;
56997   subopt_solution *arg1 = (subopt_solution *) 0 ;
56998   float arg2 ;
56999   void *argp1 = 0 ;
57000   int res1 = 0 ;
57001   float val2 ;
57002   int ecode2 = 0 ;
57003   PyObject *swig_obj[2] ;
57004 
57005   if (!SWIG_Python_UnpackTuple(args, "subopt_solution_energy_set", 2, 2, swig_obj)) SWIG_fail;
57006   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_subopt_solution, 0 |  0 );
57007   if (!SWIG_IsOK(res1)) {
57008     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "subopt_solution_energy_set" "', argument " "1"" of type '" "subopt_solution *""'");
57009   }
57010   arg1 = reinterpret_cast< subopt_solution * >(argp1);
57011   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
57012   if (!SWIG_IsOK(ecode2)) {
57013     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "subopt_solution_energy_set" "', argument " "2"" of type '" "float""'");
57014   }
57015   arg2 = static_cast< float >(val2);
57016   if (arg1) (arg1)->energy = arg2;
57017   resultobj = SWIG_Py_Void();
57018   return resultobj;
57019 fail:
57020   return NULL;
57021 }
57022 
57023 
_wrap_subopt_solution_energy_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)57024 SWIGINTERN PyObject *_wrap_subopt_solution_energy_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
57025   PyObject *resultobj = 0;
57026   subopt_solution *arg1 = (subopt_solution *) 0 ;
57027   void *argp1 = 0 ;
57028   int res1 = 0 ;
57029   PyObject *swig_obj[1] ;
57030   float result;
57031 
57032   if (!args) SWIG_fail;
57033   swig_obj[0] = args;
57034   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_subopt_solution, 0 |  0 );
57035   if (!SWIG_IsOK(res1)) {
57036     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "subopt_solution_energy_get" "', argument " "1"" of type '" "subopt_solution *""'");
57037   }
57038   arg1 = reinterpret_cast< subopt_solution * >(argp1);
57039   result = (float) ((arg1)->energy);
57040   resultobj = SWIG_From_float(static_cast< float >(result));
57041   return resultobj;
57042 fail:
57043   return NULL;
57044 }
57045 
57046 
_wrap_subopt_solution_structure_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)57047 SWIGINTERN PyObject *_wrap_subopt_solution_structure_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
57048   PyObject *resultobj = 0;
57049   subopt_solution *arg1 = (subopt_solution *) 0 ;
57050   char *arg2 = (char *) 0 ;
57051   void *argp1 = 0 ;
57052   int res1 = 0 ;
57053   int res2 ;
57054   char *buf2 = 0 ;
57055   int alloc2 = 0 ;
57056   PyObject *swig_obj[2] ;
57057 
57058   if (!SWIG_Python_UnpackTuple(args, "subopt_solution_structure_set", 2, 2, swig_obj)) SWIG_fail;
57059   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_subopt_solution, 0 |  0 );
57060   if (!SWIG_IsOK(res1)) {
57061     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "subopt_solution_structure_set" "', argument " "1"" of type '" "subopt_solution *""'");
57062   }
57063   arg1 = reinterpret_cast< subopt_solution * >(argp1);
57064   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
57065   if (!SWIG_IsOK(res2)) {
57066     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "subopt_solution_structure_set" "', argument " "2"" of type '" "char *""'");
57067   }
57068   arg2 = reinterpret_cast< char * >(buf2);
57069   if (arg1->structure) delete[] arg1->structure;
57070   if (arg2) {
57071     size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1;
57072     arg1->structure = (char *)reinterpret_cast< char* >(memcpy(new char[size], reinterpret_cast< const char * >(arg2), sizeof(char)*(size)));
57073   } else {
57074     arg1->structure = 0;
57075   }
57076   resultobj = SWIG_Py_Void();
57077   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
57078   return resultobj;
57079 fail:
57080   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
57081   return NULL;
57082 }
57083 
57084 
_wrap_subopt_solution_structure_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)57085 SWIGINTERN PyObject *_wrap_subopt_solution_structure_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
57086   PyObject *resultobj = 0;
57087   subopt_solution *arg1 = (subopt_solution *) 0 ;
57088   void *argp1 = 0 ;
57089   int res1 = 0 ;
57090   PyObject *swig_obj[1] ;
57091   char *result = 0 ;
57092 
57093   if (!args) SWIG_fail;
57094   swig_obj[0] = args;
57095   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_subopt_solution, 0 |  0 );
57096   if (!SWIG_IsOK(res1)) {
57097     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "subopt_solution_structure_get" "', argument " "1"" of type '" "subopt_solution *""'");
57098   }
57099   arg1 = reinterpret_cast< subopt_solution * >(argp1);
57100   result = (char *) ((arg1)->structure);
57101   resultobj = SWIG_FromCharPtr((const char *)result);
57102   return resultobj;
57103 fail:
57104   return NULL;
57105 }
57106 
57107 
_wrap_delete_subopt_solution(PyObject * SWIGUNUSEDPARM (self),PyObject * args)57108 SWIGINTERN PyObject *_wrap_delete_subopt_solution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
57109   PyObject *resultobj = 0;
57110   subopt_solution *arg1 = (subopt_solution *) 0 ;
57111   void *argp1 = 0 ;
57112   int res1 = 0 ;
57113   PyObject *swig_obj[1] ;
57114 
57115   if (!args) SWIG_fail;
57116   swig_obj[0] = args;
57117   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_subopt_solution, SWIG_POINTER_DISOWN |  0 );
57118   if (!SWIG_IsOK(res1)) {
57119     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_subopt_solution" "', argument " "1"" of type '" "subopt_solution *""'");
57120   }
57121   arg1 = reinterpret_cast< subopt_solution * >(argp1);
57122   {
57123     try {
57124       delete_subopt_solution(arg1);
57125     } catch (const std::exception& e) {
57126       SWIG_exception(SWIG_RuntimeError, e.what());
57127     }
57128   }
57129   resultobj = SWIG_Py_Void();
57130   return resultobj;
57131 fail:
57132   return NULL;
57133 }
57134 
57135 
_wrap_subopt_solution___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)57136 SWIGINTERN PyObject *_wrap_subopt_solution___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
57137   PyObject *resultobj = 0;
57138   subopt_solution *arg1 = (subopt_solution *) 0 ;
57139   void *argp1 = 0 ;
57140   int res1 = 0 ;
57141   PyObject *swig_obj[1] ;
57142   std::string result;
57143 
57144   if (!args) SWIG_fail;
57145   swig_obj[0] = args;
57146   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_subopt_solution, 0 |  0 );
57147   if (!SWIG_IsOK(res1)) {
57148     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "subopt_solution___str__" "', argument " "1"" of type '" "subopt_solution *""'");
57149   }
57150   arg1 = reinterpret_cast< subopt_solution * >(argp1);
57151   {
57152     try {
57153       result = subopt_solution___str__(arg1);
57154     } catch (const std::exception& e) {
57155       SWIG_exception(SWIG_RuntimeError, e.what());
57156     }
57157   }
57158   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
57159   return resultobj;
57160 fail:
57161   return NULL;
57162 }
57163 
57164 
_wrap_new_subopt_solution(PyObject * SWIGUNUSEDPARM (self),PyObject * args)57165 SWIGINTERN PyObject *_wrap_new_subopt_solution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
57166   PyObject *resultobj = 0;
57167   subopt_solution *result = 0 ;
57168 
57169   if (!SWIG_Python_UnpackTuple(args, "new_subopt_solution", 0, 0, 0)) SWIG_fail;
57170   {
57171     try {
57172       result = (subopt_solution *)new subopt_solution();
57173     } catch (const std::exception& e) {
57174       SWIG_exception(SWIG_RuntimeError, e.what());
57175     }
57176   }
57177   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_subopt_solution, SWIG_POINTER_NEW |  0 );
57178   return resultobj;
57179 fail:
57180   return NULL;
57181 }
57182 
57183 
subopt_solution_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)57184 SWIGINTERN PyObject *subopt_solution_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
57185   PyObject *obj;
57186   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
57187   SWIG_TypeNewClientData(SWIGTYPE_p_subopt_solution, SWIG_NewClientData(obj));
57188   return SWIG_Py_Void();
57189 }
57190 
subopt_solution_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)57191 SWIGINTERN PyObject *subopt_solution_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
57192   return SWIG_Python_InitShadowInstance(args);
57193 }
57194 
_wrap_SuboptVector_iterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)57195 SWIGINTERN PyObject *_wrap_SuboptVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
57196   PyObject *resultobj = 0;
57197   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
57198   PyObject **arg2 = (PyObject **) 0 ;
57199   void *argp1 = 0 ;
57200   int res1 = 0 ;
57201   PyObject *swig_obj[1] ;
57202   swig::SwigPyIterator *result = 0 ;
57203 
57204   arg2 = &swig_obj[0];
57205   if (!args) SWIG_fail;
57206   swig_obj[0] = args;
57207   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
57208   if (!SWIG_IsOK(res1)) {
57209     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_iterator" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
57210   }
57211   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
57212   {
57213     try {
57214       result = (swig::SwigPyIterator *)std_vector_Sl_subopt_solution_Sg__iterator(arg1,arg2);
57215     } catch (const std::exception& e) {
57216       SWIG_exception(SWIG_RuntimeError, e.what());
57217     }
57218   }
57219   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
57220   return resultobj;
57221 fail:
57222   return NULL;
57223 }
57224 
57225 
_wrap_SuboptVector___nonzero__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)57226 SWIGINTERN PyObject *_wrap_SuboptVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
57227   PyObject *resultobj = 0;
57228   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
57229   void *argp1 = 0 ;
57230   int res1 = 0 ;
57231   PyObject *swig_obj[1] ;
57232   bool result;
57233 
57234   if (!args) SWIG_fail;
57235   swig_obj[0] = args;
57236   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
57237   if (!SWIG_IsOK(res1)) {
57238     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector___nonzero__" "', argument " "1"" of type '" "std::vector< subopt_solution > const *""'");
57239   }
57240   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
57241   {
57242     try {
57243       result = (bool)std_vector_Sl_subopt_solution_Sg____nonzero__((std::vector< subopt_solution > const *)arg1);
57244     } catch (const std::exception& e) {
57245       SWIG_exception(SWIG_RuntimeError, e.what());
57246     }
57247   }
57248   resultobj = SWIG_From_bool(static_cast< bool >(result));
57249   return resultobj;
57250 fail:
57251   return NULL;
57252 }
57253 
57254 
_wrap_SuboptVector___bool__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)57255 SWIGINTERN PyObject *_wrap_SuboptVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
57256   PyObject *resultobj = 0;
57257   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
57258   void *argp1 = 0 ;
57259   int res1 = 0 ;
57260   PyObject *swig_obj[1] ;
57261   bool result;
57262 
57263   if (!args) SWIG_fail;
57264   swig_obj[0] = args;
57265   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
57266   if (!SWIG_IsOK(res1)) {
57267     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector___bool__" "', argument " "1"" of type '" "std::vector< subopt_solution > const *""'");
57268   }
57269   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
57270   {
57271     try {
57272       result = (bool)std_vector_Sl_subopt_solution_Sg____bool__((std::vector< subopt_solution > const *)arg1);
57273     } catch (const std::exception& e) {
57274       SWIG_exception(SWIG_RuntimeError, e.what());
57275     }
57276   }
57277   resultobj = SWIG_From_bool(static_cast< bool >(result));
57278   return resultobj;
57279 fail:
57280   return NULL;
57281 }
57282 
57283 
_wrap_SuboptVector___len__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)57284 SWIGINTERN PyObject *_wrap_SuboptVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
57285   PyObject *resultobj = 0;
57286   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
57287   void *argp1 = 0 ;
57288   int res1 = 0 ;
57289   PyObject *swig_obj[1] ;
57290   std::vector< subopt_solution >::size_type result;
57291 
57292   if (!args) SWIG_fail;
57293   swig_obj[0] = args;
57294   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
57295   if (!SWIG_IsOK(res1)) {
57296     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector___len__" "', argument " "1"" of type '" "std::vector< subopt_solution > const *""'");
57297   }
57298   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
57299   {
57300     try {
57301       result = std_vector_Sl_subopt_solution_Sg____len__((std::vector< subopt_solution > const *)arg1);
57302     } catch (const std::exception& e) {
57303       SWIG_exception(SWIG_RuntimeError, e.what());
57304     }
57305   }
57306   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
57307   return resultobj;
57308 fail:
57309   return NULL;
57310 }
57311 
57312 
_wrap_SuboptVector___getslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)57313 SWIGINTERN PyObject *_wrap_SuboptVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
57314   PyObject *resultobj = 0;
57315   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
57316   std::vector< subopt_solution >::difference_type arg2 ;
57317   std::vector< subopt_solution >::difference_type arg3 ;
57318   void *argp1 = 0 ;
57319   int res1 = 0 ;
57320   ptrdiff_t val2 ;
57321   int ecode2 = 0 ;
57322   ptrdiff_t val3 ;
57323   int ecode3 = 0 ;
57324   PyObject * obj0 = 0 ;
57325   PyObject * obj1 = 0 ;
57326   PyObject * obj2 = 0 ;
57327   char * kwnames[] = {
57328     (char *)"self",  (char *)"i",  (char *)"j",  NULL
57329   };
57330   std::vector< subopt_solution,std::allocator< subopt_solution > > *result = 0 ;
57331 
57332   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:SuboptVector___getslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
57333   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
57334   if (!SWIG_IsOK(res1)) {
57335     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector___getslice__" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
57336   }
57337   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
57338   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
57339   if (!SWIG_IsOK(ecode2)) {
57340     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SuboptVector___getslice__" "', argument " "2"" of type '" "std::vector< subopt_solution >::difference_type""'");
57341   }
57342   arg2 = static_cast< std::vector< subopt_solution >::difference_type >(val2);
57343   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
57344   if (!SWIG_IsOK(ecode3)) {
57345     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SuboptVector___getslice__" "', argument " "3"" of type '" "std::vector< subopt_solution >::difference_type""'");
57346   }
57347   arg3 = static_cast< std::vector< subopt_solution >::difference_type >(val3);
57348   {
57349     try {
57350       try {
57351         result = (std::vector< subopt_solution,std::allocator< subopt_solution > > *)std_vector_Sl_subopt_solution_Sg____getslice__(arg1,arg2,arg3);
57352       } catch(std::out_of_range &_e) {
57353         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
57354       } catch(std::invalid_argument &_e) {
57355         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
57356       }
57357     } catch (const std::exception& e) {
57358       SWIG_exception(SWIG_RuntimeError, e.what());
57359     }
57360   }
57361   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, SWIG_POINTER_OWN |  0 );
57362   return resultobj;
57363 fail:
57364   return NULL;
57365 }
57366 
57367 
_wrap_SuboptVector___setslice____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)57368 SWIGINTERN PyObject *_wrap_SuboptVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
57369   PyObject *resultobj = 0;
57370   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
57371   std::vector< subopt_solution >::difference_type arg2 ;
57372   std::vector< subopt_solution >::difference_type arg3 ;
57373   void *argp1 = 0 ;
57374   int res1 = 0 ;
57375   ptrdiff_t val2 ;
57376   int ecode2 = 0 ;
57377   ptrdiff_t val3 ;
57378   int ecode3 = 0 ;
57379 
57380   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
57381   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
57382   if (!SWIG_IsOK(res1)) {
57383     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector___setslice__" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
57384   }
57385   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
57386   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
57387   if (!SWIG_IsOK(ecode2)) {
57388     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SuboptVector___setslice__" "', argument " "2"" of type '" "std::vector< subopt_solution >::difference_type""'");
57389   }
57390   arg2 = static_cast< std::vector< subopt_solution >::difference_type >(val2);
57391   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
57392   if (!SWIG_IsOK(ecode3)) {
57393     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SuboptVector___setslice__" "', argument " "3"" of type '" "std::vector< subopt_solution >::difference_type""'");
57394   }
57395   arg3 = static_cast< std::vector< subopt_solution >::difference_type >(val3);
57396   {
57397     try {
57398       try {
57399         std_vector_Sl_subopt_solution_Sg____setslice____SWIG_0(arg1,arg2,arg3);
57400       } catch(std::out_of_range &_e) {
57401         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
57402       } catch(std::invalid_argument &_e) {
57403         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
57404       }
57405     } catch (const std::exception& e) {
57406       SWIG_exception(SWIG_RuntimeError, e.what());
57407     }
57408   }
57409   resultobj = SWIG_Py_Void();
57410   return resultobj;
57411 fail:
57412   return NULL;
57413 }
57414 
57415 
_wrap_SuboptVector___setslice____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)57416 SWIGINTERN PyObject *_wrap_SuboptVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
57417   PyObject *resultobj = 0;
57418   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
57419   std::vector< subopt_solution >::difference_type arg2 ;
57420   std::vector< subopt_solution >::difference_type arg3 ;
57421   std::vector< subopt_solution,std::allocator< subopt_solution > > *arg4 = 0 ;
57422   void *argp1 = 0 ;
57423   int res1 = 0 ;
57424   ptrdiff_t val2 ;
57425   int ecode2 = 0 ;
57426   ptrdiff_t val3 ;
57427   int ecode3 = 0 ;
57428   int res4 = SWIG_OLDOBJ ;
57429 
57430   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
57431   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
57432   if (!SWIG_IsOK(res1)) {
57433     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector___setslice__" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
57434   }
57435   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
57436   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
57437   if (!SWIG_IsOK(ecode2)) {
57438     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SuboptVector___setslice__" "', argument " "2"" of type '" "std::vector< subopt_solution >::difference_type""'");
57439   }
57440   arg2 = static_cast< std::vector< subopt_solution >::difference_type >(val2);
57441   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
57442   if (!SWIG_IsOK(ecode3)) {
57443     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SuboptVector___setslice__" "', argument " "3"" of type '" "std::vector< subopt_solution >::difference_type""'");
57444   }
57445   arg3 = static_cast< std::vector< subopt_solution >::difference_type >(val3);
57446   {
57447     std::vector< subopt_solution,std::allocator< subopt_solution > > *ptr = (std::vector< subopt_solution,std::allocator< subopt_solution > > *)0;
57448     res4 = swig::asptr(swig_obj[3], &ptr);
57449     if (!SWIG_IsOK(res4)) {
57450       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SuboptVector___setslice__" "', argument " "4"" of type '" "std::vector< subopt_solution,std::allocator< subopt_solution > > const &""'");
57451     }
57452     if (!ptr) {
57453       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SuboptVector___setslice__" "', argument " "4"" of type '" "std::vector< subopt_solution,std::allocator< subopt_solution > > const &""'");
57454     }
57455     arg4 = ptr;
57456   }
57457   {
57458     try {
57459       try {
57460         std_vector_Sl_subopt_solution_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< subopt_solution,std::allocator< subopt_solution > > const &)*arg4);
57461       } catch(std::out_of_range &_e) {
57462         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
57463       } catch(std::invalid_argument &_e) {
57464         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
57465       }
57466     } catch (const std::exception& e) {
57467       SWIG_exception(SWIG_RuntimeError, e.what());
57468     }
57469   }
57470   resultobj = SWIG_Py_Void();
57471   if (SWIG_IsNewObj(res4)) delete arg4;
57472   return resultobj;
57473 fail:
57474   if (SWIG_IsNewObj(res4)) delete arg4;
57475   return NULL;
57476 }
57477 
57478 
_wrap_SuboptVector___setslice__(PyObject * self,PyObject * args)57479 SWIGINTERN PyObject *_wrap_SuboptVector___setslice__(PyObject *self, PyObject *args) {
57480   Py_ssize_t argc;
57481   PyObject *argv[5] = {
57482     0
57483   };
57484 
57485   if (!(argc = SWIG_Python_UnpackTuple(args, "SuboptVector___setslice__", 0, 4, argv))) SWIG_fail;
57486   --argc;
57487   if (argc == 3) {
57488     int _v;
57489     int res = swig::asptr(argv[0], (std::vector< subopt_solution,std::allocator< subopt_solution > >**)(0));
57490     _v = SWIG_CheckState(res);
57491     if (_v) {
57492       {
57493         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
57494         _v = SWIG_CheckState(res);
57495       }
57496       if (_v) {
57497         {
57498           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
57499           _v = SWIG_CheckState(res);
57500         }
57501         if (_v) {
57502           return _wrap_SuboptVector___setslice____SWIG_0(self, argc, argv);
57503         }
57504       }
57505     }
57506   }
57507   if (argc == 4) {
57508     int _v;
57509     int res = swig::asptr(argv[0], (std::vector< subopt_solution,std::allocator< subopt_solution > >**)(0));
57510     _v = SWIG_CheckState(res);
57511     if (_v) {
57512       {
57513         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
57514         _v = SWIG_CheckState(res);
57515       }
57516       if (_v) {
57517         {
57518           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
57519           _v = SWIG_CheckState(res);
57520         }
57521         if (_v) {
57522           int res = swig::asptr(argv[3], (std::vector< subopt_solution,std::allocator< subopt_solution > >**)(0));
57523           _v = SWIG_CheckState(res);
57524           if (_v) {
57525             return _wrap_SuboptVector___setslice____SWIG_1(self, argc, argv);
57526           }
57527         }
57528       }
57529     }
57530   }
57531 
57532 fail:
57533   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SuboptVector___setslice__'.\n"
57534     "  Possible C/C++ prototypes are:\n"
57535     "    std::vector< subopt_solution >::__setslice__(std::vector< subopt_solution >::difference_type,std::vector< subopt_solution >::difference_type)\n"
57536     "    std::vector< subopt_solution >::__setslice__(std::vector< subopt_solution >::difference_type,std::vector< subopt_solution >::difference_type,std::vector< subopt_solution,std::allocator< subopt_solution > > const &)\n");
57537   return 0;
57538 }
57539 
57540 
_wrap_SuboptVector___delslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)57541 SWIGINTERN PyObject *_wrap_SuboptVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
57542   PyObject *resultobj = 0;
57543   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
57544   std::vector< subopt_solution >::difference_type arg2 ;
57545   std::vector< subopt_solution >::difference_type arg3 ;
57546   void *argp1 = 0 ;
57547   int res1 = 0 ;
57548   ptrdiff_t val2 ;
57549   int ecode2 = 0 ;
57550   ptrdiff_t val3 ;
57551   int ecode3 = 0 ;
57552   PyObject * obj0 = 0 ;
57553   PyObject * obj1 = 0 ;
57554   PyObject * obj2 = 0 ;
57555   char * kwnames[] = {
57556     (char *)"self",  (char *)"i",  (char *)"j",  NULL
57557   };
57558 
57559   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:SuboptVector___delslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
57560   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
57561   if (!SWIG_IsOK(res1)) {
57562     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector___delslice__" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
57563   }
57564   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
57565   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
57566   if (!SWIG_IsOK(ecode2)) {
57567     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SuboptVector___delslice__" "', argument " "2"" of type '" "std::vector< subopt_solution >::difference_type""'");
57568   }
57569   arg2 = static_cast< std::vector< subopt_solution >::difference_type >(val2);
57570   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
57571   if (!SWIG_IsOK(ecode3)) {
57572     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SuboptVector___delslice__" "', argument " "3"" of type '" "std::vector< subopt_solution >::difference_type""'");
57573   }
57574   arg3 = static_cast< std::vector< subopt_solution >::difference_type >(val3);
57575   {
57576     try {
57577       try {
57578         std_vector_Sl_subopt_solution_Sg____delslice__(arg1,arg2,arg3);
57579       } catch(std::out_of_range &_e) {
57580         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
57581       } catch(std::invalid_argument &_e) {
57582         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
57583       }
57584     } catch (const std::exception& e) {
57585       SWIG_exception(SWIG_RuntimeError, e.what());
57586     }
57587   }
57588   resultobj = SWIG_Py_Void();
57589   return resultobj;
57590 fail:
57591   return NULL;
57592 }
57593 
57594 
_wrap_SuboptVector___delitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)57595 SWIGINTERN PyObject *_wrap_SuboptVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
57596   PyObject *resultobj = 0;
57597   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
57598   std::vector< subopt_solution >::difference_type arg2 ;
57599   void *argp1 = 0 ;
57600   int res1 = 0 ;
57601   ptrdiff_t val2 ;
57602   int ecode2 = 0 ;
57603 
57604   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
57605   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
57606   if (!SWIG_IsOK(res1)) {
57607     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector___delitem__" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
57608   }
57609   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
57610   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
57611   if (!SWIG_IsOK(ecode2)) {
57612     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SuboptVector___delitem__" "', argument " "2"" of type '" "std::vector< subopt_solution >::difference_type""'");
57613   }
57614   arg2 = static_cast< std::vector< subopt_solution >::difference_type >(val2);
57615   {
57616     try {
57617       try {
57618         std_vector_Sl_subopt_solution_Sg____delitem____SWIG_0(arg1,arg2);
57619       } catch(std::out_of_range &_e) {
57620         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
57621       } catch(std::invalid_argument &_e) {
57622         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
57623       }
57624     } catch (const std::exception& e) {
57625       SWIG_exception(SWIG_RuntimeError, e.what());
57626     }
57627   }
57628   resultobj = SWIG_Py_Void();
57629   return resultobj;
57630 fail:
57631   return NULL;
57632 }
57633 
57634 
_wrap_SuboptVector___getitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)57635 SWIGINTERN PyObject *_wrap_SuboptVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
57636   PyObject *resultobj = 0;
57637   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
57638   PySliceObject *arg2 = (PySliceObject *) 0 ;
57639   void *argp1 = 0 ;
57640   int res1 = 0 ;
57641   std::vector< subopt_solution,std::allocator< subopt_solution > > *result = 0 ;
57642 
57643   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
57644   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
57645   if (!SWIG_IsOK(res1)) {
57646     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector___getitem__" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
57647   }
57648   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
57649   {
57650     if (!PySlice_Check(swig_obj[1])) {
57651       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SuboptVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
57652     }
57653     arg2 = (PySliceObject *) swig_obj[1];
57654   }
57655   {
57656     try {
57657       try {
57658         result = (std::vector< subopt_solution,std::allocator< subopt_solution > > *)std_vector_Sl_subopt_solution_Sg____getitem____SWIG_0(arg1,arg2);
57659       } catch(std::out_of_range &_e) {
57660         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
57661       } catch(std::invalid_argument &_e) {
57662         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
57663       }
57664     } catch (const std::exception& e) {
57665       SWIG_exception(SWIG_RuntimeError, e.what());
57666     }
57667   }
57668   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, SWIG_POINTER_OWN |  0 );
57669   return resultobj;
57670 fail:
57671   return NULL;
57672 }
57673 
57674 
_wrap_SuboptVector___setitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)57675 SWIGINTERN PyObject *_wrap_SuboptVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
57676   PyObject *resultobj = 0;
57677   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
57678   PySliceObject *arg2 = (PySliceObject *) 0 ;
57679   std::vector< subopt_solution,std::allocator< subopt_solution > > *arg3 = 0 ;
57680   void *argp1 = 0 ;
57681   int res1 = 0 ;
57682   int res3 = SWIG_OLDOBJ ;
57683 
57684   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
57685   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
57686   if (!SWIG_IsOK(res1)) {
57687     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector___setitem__" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
57688   }
57689   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
57690   {
57691     if (!PySlice_Check(swig_obj[1])) {
57692       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SuboptVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
57693     }
57694     arg2 = (PySliceObject *) swig_obj[1];
57695   }
57696   {
57697     std::vector< subopt_solution,std::allocator< subopt_solution > > *ptr = (std::vector< subopt_solution,std::allocator< subopt_solution > > *)0;
57698     res3 = swig::asptr(swig_obj[2], &ptr);
57699     if (!SWIG_IsOK(res3)) {
57700       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SuboptVector___setitem__" "', argument " "3"" of type '" "std::vector< subopt_solution,std::allocator< subopt_solution > > const &""'");
57701     }
57702     if (!ptr) {
57703       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SuboptVector___setitem__" "', argument " "3"" of type '" "std::vector< subopt_solution,std::allocator< subopt_solution > > const &""'");
57704     }
57705     arg3 = ptr;
57706   }
57707   {
57708     try {
57709       try {
57710         std_vector_Sl_subopt_solution_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< subopt_solution,std::allocator< subopt_solution > > const &)*arg3);
57711       } catch(std::out_of_range &_e) {
57712         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
57713       } catch(std::invalid_argument &_e) {
57714         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
57715       }
57716     } catch (const std::exception& e) {
57717       SWIG_exception(SWIG_RuntimeError, e.what());
57718     }
57719   }
57720   resultobj = SWIG_Py_Void();
57721   if (SWIG_IsNewObj(res3)) delete arg3;
57722   return resultobj;
57723 fail:
57724   if (SWIG_IsNewObj(res3)) delete arg3;
57725   return NULL;
57726 }
57727 
57728 
_wrap_SuboptVector___setitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)57729 SWIGINTERN PyObject *_wrap_SuboptVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
57730   PyObject *resultobj = 0;
57731   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
57732   PySliceObject *arg2 = (PySliceObject *) 0 ;
57733   void *argp1 = 0 ;
57734   int res1 = 0 ;
57735 
57736   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
57737   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
57738   if (!SWIG_IsOK(res1)) {
57739     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector___setitem__" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
57740   }
57741   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
57742   {
57743     if (!PySlice_Check(swig_obj[1])) {
57744       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SuboptVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
57745     }
57746     arg2 = (PySliceObject *) swig_obj[1];
57747   }
57748   {
57749     try {
57750       try {
57751         std_vector_Sl_subopt_solution_Sg____setitem____SWIG_1(arg1,arg2);
57752       } catch(std::out_of_range &_e) {
57753         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
57754       } catch(std::invalid_argument &_e) {
57755         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
57756       }
57757     } catch (const std::exception& e) {
57758       SWIG_exception(SWIG_RuntimeError, e.what());
57759     }
57760   }
57761   resultobj = SWIG_Py_Void();
57762   return resultobj;
57763 fail:
57764   return NULL;
57765 }
57766 
57767 
_wrap_SuboptVector___delitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)57768 SWIGINTERN PyObject *_wrap_SuboptVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
57769   PyObject *resultobj = 0;
57770   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
57771   PySliceObject *arg2 = (PySliceObject *) 0 ;
57772   void *argp1 = 0 ;
57773   int res1 = 0 ;
57774 
57775   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
57776   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
57777   if (!SWIG_IsOK(res1)) {
57778     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector___delitem__" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
57779   }
57780   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
57781   {
57782     if (!PySlice_Check(swig_obj[1])) {
57783       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SuboptVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
57784     }
57785     arg2 = (PySliceObject *) swig_obj[1];
57786   }
57787   {
57788     try {
57789       try {
57790         std_vector_Sl_subopt_solution_Sg____delitem____SWIG_1(arg1,arg2);
57791       } catch(std::out_of_range &_e) {
57792         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
57793       } catch(std::invalid_argument &_e) {
57794         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
57795       }
57796     } catch (const std::exception& e) {
57797       SWIG_exception(SWIG_RuntimeError, e.what());
57798     }
57799   }
57800   resultobj = SWIG_Py_Void();
57801   return resultobj;
57802 fail:
57803   return NULL;
57804 }
57805 
57806 
_wrap_SuboptVector___delitem__(PyObject * self,PyObject * args)57807 SWIGINTERN PyObject *_wrap_SuboptVector___delitem__(PyObject *self, PyObject *args) {
57808   Py_ssize_t argc;
57809   PyObject *argv[3] = {
57810     0
57811   };
57812 
57813   if (!(argc = SWIG_Python_UnpackTuple(args, "SuboptVector___delitem__", 0, 2, argv))) SWIG_fail;
57814   --argc;
57815   if (argc == 2) {
57816     int _v;
57817     int res = swig::asptr(argv[0], (std::vector< subopt_solution,std::allocator< subopt_solution > >**)(0));
57818     _v = SWIG_CheckState(res);
57819     if (_v) {
57820       {
57821         _v = PySlice_Check(argv[1]);
57822       }
57823       if (_v) {
57824         return _wrap_SuboptVector___delitem____SWIG_1(self, argc, argv);
57825       }
57826     }
57827   }
57828   if (argc == 2) {
57829     int _v;
57830     int res = swig::asptr(argv[0], (std::vector< subopt_solution,std::allocator< subopt_solution > >**)(0));
57831     _v = SWIG_CheckState(res);
57832     if (_v) {
57833       {
57834         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
57835         _v = SWIG_CheckState(res);
57836       }
57837       if (_v) {
57838         return _wrap_SuboptVector___delitem____SWIG_0(self, argc, argv);
57839       }
57840     }
57841   }
57842 
57843 fail:
57844   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SuboptVector___delitem__'.\n"
57845     "  Possible C/C++ prototypes are:\n"
57846     "    std::vector< subopt_solution >::__delitem__(std::vector< subopt_solution >::difference_type)\n"
57847     "    std::vector< subopt_solution >::__delitem__(PySliceObject *)\n");
57848   return 0;
57849 }
57850 
57851 
_wrap_SuboptVector___getitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)57852 SWIGINTERN PyObject *_wrap_SuboptVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
57853   PyObject *resultobj = 0;
57854   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
57855   std::vector< subopt_solution >::difference_type arg2 ;
57856   void *argp1 = 0 ;
57857   int res1 = 0 ;
57858   ptrdiff_t val2 ;
57859   int ecode2 = 0 ;
57860   std::vector< subopt_solution >::value_type *result = 0 ;
57861 
57862   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
57863   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
57864   if (!SWIG_IsOK(res1)) {
57865     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector___getitem__" "', argument " "1"" of type '" "std::vector< subopt_solution > const *""'");
57866   }
57867   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
57868   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
57869   if (!SWIG_IsOK(ecode2)) {
57870     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SuboptVector___getitem__" "', argument " "2"" of type '" "std::vector< subopt_solution >::difference_type""'");
57871   }
57872   arg2 = static_cast< std::vector< subopt_solution >::difference_type >(val2);
57873   {
57874     try {
57875       try {
57876         result = (std::vector< subopt_solution >::value_type *) &std_vector_Sl_subopt_solution_Sg____getitem____SWIG_1((std::vector< subopt_solution > const *)arg1,arg2);
57877       } catch(std::out_of_range &_e) {
57878         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
57879       }
57880     } catch (const std::exception& e) {
57881       SWIG_exception(SWIG_RuntimeError, e.what());
57882     }
57883   }
57884   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_subopt_solution, 0 |  0 );
57885   (void)swig::container_owner<swig::traits<std::vector< subopt_solution >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
57886   return resultobj;
57887 fail:
57888   return NULL;
57889 }
57890 
57891 
_wrap_SuboptVector___getitem__(PyObject * self,PyObject * args)57892 SWIGINTERN PyObject *_wrap_SuboptVector___getitem__(PyObject *self, PyObject *args) {
57893   Py_ssize_t argc;
57894   PyObject *argv[3] = {
57895     0
57896   };
57897 
57898   if (!(argc = SWIG_Python_UnpackTuple(args, "SuboptVector___getitem__", 0, 2, argv))) SWIG_fail;
57899   --argc;
57900   if (argc == 2) {
57901     int _v;
57902     int res = swig::asptr(argv[0], (std::vector< subopt_solution,std::allocator< subopt_solution > >**)(0));
57903     _v = SWIG_CheckState(res);
57904     if (_v) {
57905       {
57906         _v = PySlice_Check(argv[1]);
57907       }
57908       if (_v) {
57909         return _wrap_SuboptVector___getitem____SWIG_0(self, argc, argv);
57910       }
57911     }
57912   }
57913   if (argc == 2) {
57914     int _v;
57915     int res = swig::asptr(argv[0], (std::vector< subopt_solution,std::allocator< subopt_solution > >**)(0));
57916     _v = SWIG_CheckState(res);
57917     if (_v) {
57918       {
57919         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
57920         _v = SWIG_CheckState(res);
57921       }
57922       if (_v) {
57923         return _wrap_SuboptVector___getitem____SWIG_1(self, argc, argv);
57924       }
57925     }
57926   }
57927 
57928 fail:
57929   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SuboptVector___getitem__'.\n"
57930     "  Possible C/C++ prototypes are:\n"
57931     "    std::vector< subopt_solution >::__getitem__(PySliceObject *)\n"
57932     "    std::vector< subopt_solution >::__getitem__(std::vector< subopt_solution >::difference_type) const\n");
57933   return 0;
57934 }
57935 
57936 
_wrap_SuboptVector___setitem____SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)57937 SWIGINTERN PyObject *_wrap_SuboptVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
57938   PyObject *resultobj = 0;
57939   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
57940   std::vector< subopt_solution >::difference_type arg2 ;
57941   std::vector< subopt_solution >::value_type *arg3 = 0 ;
57942   void *argp1 = 0 ;
57943   int res1 = 0 ;
57944   ptrdiff_t val2 ;
57945   int ecode2 = 0 ;
57946   void *argp3 = 0 ;
57947   int res3 = 0 ;
57948 
57949   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
57950   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
57951   if (!SWIG_IsOK(res1)) {
57952     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector___setitem__" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
57953   }
57954   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
57955   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
57956   if (!SWIG_IsOK(ecode2)) {
57957     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SuboptVector___setitem__" "', argument " "2"" of type '" "std::vector< subopt_solution >::difference_type""'");
57958   }
57959   arg2 = static_cast< std::vector< subopt_solution >::difference_type >(val2);
57960   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_subopt_solution,  0  | 0);
57961   if (!SWIG_IsOK(res3)) {
57962     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SuboptVector___setitem__" "', argument " "3"" of type '" "std::vector< subopt_solution >::value_type const &""'");
57963   }
57964   if (!argp3) {
57965     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SuboptVector___setitem__" "', argument " "3"" of type '" "std::vector< subopt_solution >::value_type const &""'");
57966   }
57967   arg3 = reinterpret_cast< std::vector< subopt_solution >::value_type * >(argp3);
57968   {
57969     try {
57970       try {
57971         std_vector_Sl_subopt_solution_Sg____setitem____SWIG_2(arg1,arg2,(subopt_solution const &)*arg3);
57972       } catch(std::out_of_range &_e) {
57973         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
57974       }
57975     } catch (const std::exception& e) {
57976       SWIG_exception(SWIG_RuntimeError, e.what());
57977     }
57978   }
57979   resultobj = SWIG_Py_Void();
57980   return resultobj;
57981 fail:
57982   return NULL;
57983 }
57984 
57985 
_wrap_SuboptVector___setitem__(PyObject * self,PyObject * args)57986 SWIGINTERN PyObject *_wrap_SuboptVector___setitem__(PyObject *self, PyObject *args) {
57987   Py_ssize_t argc;
57988   PyObject *argv[4] = {
57989     0
57990   };
57991 
57992   if (!(argc = SWIG_Python_UnpackTuple(args, "SuboptVector___setitem__", 0, 3, argv))) SWIG_fail;
57993   --argc;
57994   if (argc == 2) {
57995     int _v;
57996     int res = swig::asptr(argv[0], (std::vector< subopt_solution,std::allocator< subopt_solution > >**)(0));
57997     _v = SWIG_CheckState(res);
57998     if (_v) {
57999       {
58000         _v = PySlice_Check(argv[1]);
58001       }
58002       if (_v) {
58003         return _wrap_SuboptVector___setitem____SWIG_1(self, argc, argv);
58004       }
58005     }
58006   }
58007   if (argc == 3) {
58008     int _v;
58009     int res = swig::asptr(argv[0], (std::vector< subopt_solution,std::allocator< subopt_solution > >**)(0));
58010     _v = SWIG_CheckState(res);
58011     if (_v) {
58012       {
58013         _v = PySlice_Check(argv[1]);
58014       }
58015       if (_v) {
58016         int res = swig::asptr(argv[2], (std::vector< subopt_solution,std::allocator< subopt_solution > >**)(0));
58017         _v = SWIG_CheckState(res);
58018         if (_v) {
58019           return _wrap_SuboptVector___setitem____SWIG_0(self, argc, argv);
58020         }
58021       }
58022     }
58023   }
58024   if (argc == 3) {
58025     int _v;
58026     int res = swig::asptr(argv[0], (std::vector< subopt_solution,std::allocator< subopt_solution > >**)(0));
58027     _v = SWIG_CheckState(res);
58028     if (_v) {
58029       {
58030         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
58031         _v = SWIG_CheckState(res);
58032       }
58033       if (_v) {
58034         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_subopt_solution, SWIG_POINTER_NO_NULL | 0);
58035         _v = SWIG_CheckState(res);
58036         if (_v) {
58037           return _wrap_SuboptVector___setitem____SWIG_2(self, argc, argv);
58038         }
58039       }
58040     }
58041   }
58042 
58043 fail:
58044   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SuboptVector___setitem__'.\n"
58045     "  Possible C/C++ prototypes are:\n"
58046     "    std::vector< subopt_solution >::__setitem__(PySliceObject *,std::vector< subopt_solution,std::allocator< subopt_solution > > const &)\n"
58047     "    std::vector< subopt_solution >::__setitem__(PySliceObject *)\n"
58048     "    std::vector< subopt_solution >::__setitem__(std::vector< subopt_solution >::difference_type,std::vector< subopt_solution >::value_type const &)\n");
58049   return 0;
58050 }
58051 
58052 
_wrap_SuboptVector_pop(PyObject * SWIGUNUSEDPARM (self),PyObject * args)58053 SWIGINTERN PyObject *_wrap_SuboptVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58054   PyObject *resultobj = 0;
58055   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58056   void *argp1 = 0 ;
58057   int res1 = 0 ;
58058   PyObject *swig_obj[1] ;
58059   std::vector< subopt_solution >::value_type result;
58060 
58061   if (!args) SWIG_fail;
58062   swig_obj[0] = args;
58063   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58064   if (!SWIG_IsOK(res1)) {
58065     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_pop" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
58066   }
58067   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58068   {
58069     try {
58070       try {
58071         result = std_vector_Sl_subopt_solution_Sg__pop(arg1);
58072       } catch(std::out_of_range &_e) {
58073         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
58074       }
58075     } catch (const std::exception& e) {
58076       SWIG_exception(SWIG_RuntimeError, e.what());
58077     }
58078   }
58079   resultobj = SWIG_NewPointerObj((new std::vector< subopt_solution >::value_type(static_cast< const std::vector< subopt_solution >::value_type& >(result))), SWIGTYPE_p_subopt_solution, SWIG_POINTER_OWN |  0 );
58080   return resultobj;
58081 fail:
58082   return NULL;
58083 }
58084 
58085 
_wrap_SuboptVector_append(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)58086 SWIGINTERN PyObject *_wrap_SuboptVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
58087   PyObject *resultobj = 0;
58088   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58089   std::vector< subopt_solution >::value_type *arg2 = 0 ;
58090   void *argp1 = 0 ;
58091   int res1 = 0 ;
58092   void *argp2 = 0 ;
58093   int res2 = 0 ;
58094   PyObject * obj0 = 0 ;
58095   PyObject * obj1 = 0 ;
58096   char * kwnames[] = {
58097     (char *)"self",  (char *)"x",  NULL
58098   };
58099 
58100   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:SuboptVector_append", kwnames, &obj0, &obj1)) SWIG_fail;
58101   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58102   if (!SWIG_IsOK(res1)) {
58103     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_append" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
58104   }
58105   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58106   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_subopt_solution,  0  | 0);
58107   if (!SWIG_IsOK(res2)) {
58108     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SuboptVector_append" "', argument " "2"" of type '" "std::vector< subopt_solution >::value_type const &""'");
58109   }
58110   if (!argp2) {
58111     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SuboptVector_append" "', argument " "2"" of type '" "std::vector< subopt_solution >::value_type const &""'");
58112   }
58113   arg2 = reinterpret_cast< std::vector< subopt_solution >::value_type * >(argp2);
58114   {
58115     try {
58116       std_vector_Sl_subopt_solution_Sg__append(arg1,(subopt_solution const &)*arg2);
58117     } catch (const std::exception& e) {
58118       SWIG_exception(SWIG_RuntimeError, e.what());
58119     }
58120   }
58121   resultobj = SWIG_Py_Void();
58122   return resultobj;
58123 fail:
58124   return NULL;
58125 }
58126 
58127 
_wrap_new_SuboptVector__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))58128 SWIGINTERN PyObject *_wrap_new_SuboptVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
58129   PyObject *resultobj = 0;
58130   std::vector< subopt_solution > *result = 0 ;
58131 
58132   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
58133   {
58134     try {
58135       result = (std::vector< subopt_solution > *)new std::vector< subopt_solution >();
58136     } catch (const std::exception& e) {
58137       SWIG_exception(SWIG_RuntimeError, e.what());
58138     }
58139   }
58140   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, SWIG_POINTER_NEW |  0 );
58141   return resultobj;
58142 fail:
58143   return NULL;
58144 }
58145 
58146 
_wrap_new_SuboptVector__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)58147 SWIGINTERN PyObject *_wrap_new_SuboptVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
58148   PyObject *resultobj = 0;
58149   std::vector< subopt_solution > *arg1 = 0 ;
58150   int res1 = SWIG_OLDOBJ ;
58151   std::vector< subopt_solution > *result = 0 ;
58152 
58153   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
58154   {
58155     std::vector< subopt_solution,std::allocator< subopt_solution > > *ptr = (std::vector< subopt_solution,std::allocator< subopt_solution > > *)0;
58156     res1 = swig::asptr(swig_obj[0], &ptr);
58157     if (!SWIG_IsOK(res1)) {
58158       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SuboptVector" "', argument " "1"" of type '" "std::vector< subopt_solution > const &""'");
58159     }
58160     if (!ptr) {
58161       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SuboptVector" "', argument " "1"" of type '" "std::vector< subopt_solution > const &""'");
58162     }
58163     arg1 = ptr;
58164   }
58165   {
58166     try {
58167       result = (std::vector< subopt_solution > *)new std::vector< subopt_solution >((std::vector< subopt_solution > const &)*arg1);
58168     } catch (const std::exception& e) {
58169       SWIG_exception(SWIG_RuntimeError, e.what());
58170     }
58171   }
58172   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, SWIG_POINTER_NEW |  0 );
58173   if (SWIG_IsNewObj(res1)) delete arg1;
58174   return resultobj;
58175 fail:
58176   if (SWIG_IsNewObj(res1)) delete arg1;
58177   return NULL;
58178 }
58179 
58180 
_wrap_SuboptVector_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)58181 SWIGINTERN PyObject *_wrap_SuboptVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58182   PyObject *resultobj = 0;
58183   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58184   void *argp1 = 0 ;
58185   int res1 = 0 ;
58186   PyObject *swig_obj[1] ;
58187   bool result;
58188 
58189   if (!args) SWIG_fail;
58190   swig_obj[0] = args;
58191   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58192   if (!SWIG_IsOK(res1)) {
58193     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_empty" "', argument " "1"" of type '" "std::vector< subopt_solution > const *""'");
58194   }
58195   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58196   {
58197     try {
58198       result = (bool)((std::vector< subopt_solution > const *)arg1)->empty();
58199     } catch (const std::exception& e) {
58200       SWIG_exception(SWIG_RuntimeError, e.what());
58201     }
58202   }
58203   resultobj = SWIG_From_bool(static_cast< bool >(result));
58204   return resultobj;
58205 fail:
58206   return NULL;
58207 }
58208 
58209 
_wrap_SuboptVector_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)58210 SWIGINTERN PyObject *_wrap_SuboptVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58211   PyObject *resultobj = 0;
58212   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58213   void *argp1 = 0 ;
58214   int res1 = 0 ;
58215   PyObject *swig_obj[1] ;
58216   std::vector< subopt_solution >::size_type result;
58217 
58218   if (!args) SWIG_fail;
58219   swig_obj[0] = args;
58220   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58221   if (!SWIG_IsOK(res1)) {
58222     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_size" "', argument " "1"" of type '" "std::vector< subopt_solution > const *""'");
58223   }
58224   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58225   {
58226     try {
58227       result = ((std::vector< subopt_solution > const *)arg1)->size();
58228     } catch (const std::exception& e) {
58229       SWIG_exception(SWIG_RuntimeError, e.what());
58230     }
58231   }
58232   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
58233   return resultobj;
58234 fail:
58235   return NULL;
58236 }
58237 
58238 
_wrap_SuboptVector_swap(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)58239 SWIGINTERN PyObject *_wrap_SuboptVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
58240   PyObject *resultobj = 0;
58241   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58242   std::vector< subopt_solution > *arg2 = 0 ;
58243   void *argp1 = 0 ;
58244   int res1 = 0 ;
58245   void *argp2 = 0 ;
58246   int res2 = 0 ;
58247   PyObject * obj0 = 0 ;
58248   PyObject * obj1 = 0 ;
58249   char * kwnames[] = {
58250     (char *)"self",  (char *)"v",  NULL
58251   };
58252 
58253   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:SuboptVector_swap", kwnames, &obj0, &obj1)) SWIG_fail;
58254   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58255   if (!SWIG_IsOK(res1)) {
58256     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_swap" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
58257   }
58258   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58259   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t,  0 );
58260   if (!SWIG_IsOK(res2)) {
58261     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SuboptVector_swap" "', argument " "2"" of type '" "std::vector< subopt_solution > &""'");
58262   }
58263   if (!argp2) {
58264     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SuboptVector_swap" "', argument " "2"" of type '" "std::vector< subopt_solution > &""'");
58265   }
58266   arg2 = reinterpret_cast< std::vector< subopt_solution > * >(argp2);
58267   {
58268     try {
58269       (arg1)->swap(*arg2);
58270     } catch (const std::exception& e) {
58271       SWIG_exception(SWIG_RuntimeError, e.what());
58272     }
58273   }
58274   resultobj = SWIG_Py_Void();
58275   return resultobj;
58276 fail:
58277   return NULL;
58278 }
58279 
58280 
_wrap_SuboptVector_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)58281 SWIGINTERN PyObject *_wrap_SuboptVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58282   PyObject *resultobj = 0;
58283   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58284   void *argp1 = 0 ;
58285   int res1 = 0 ;
58286   PyObject *swig_obj[1] ;
58287   std::vector< subopt_solution >::iterator result;
58288 
58289   if (!args) SWIG_fail;
58290   swig_obj[0] = args;
58291   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58292   if (!SWIG_IsOK(res1)) {
58293     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_begin" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
58294   }
58295   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58296   {
58297     try {
58298       result = (arg1)->begin();
58299     } catch (const std::exception& e) {
58300       SWIG_exception(SWIG_RuntimeError, e.what());
58301     }
58302   }
58303   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< subopt_solution >::iterator & >(result)),
58304     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
58305   return resultobj;
58306 fail:
58307   return NULL;
58308 }
58309 
58310 
_wrap_SuboptVector_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)58311 SWIGINTERN PyObject *_wrap_SuboptVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58312   PyObject *resultobj = 0;
58313   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58314   void *argp1 = 0 ;
58315   int res1 = 0 ;
58316   PyObject *swig_obj[1] ;
58317   std::vector< subopt_solution >::iterator result;
58318 
58319   if (!args) SWIG_fail;
58320   swig_obj[0] = args;
58321   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58322   if (!SWIG_IsOK(res1)) {
58323     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_end" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
58324   }
58325   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58326   {
58327     try {
58328       result = (arg1)->end();
58329     } catch (const std::exception& e) {
58330       SWIG_exception(SWIG_RuntimeError, e.what());
58331     }
58332   }
58333   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< subopt_solution >::iterator & >(result)),
58334     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
58335   return resultobj;
58336 fail:
58337   return NULL;
58338 }
58339 
58340 
_wrap_SuboptVector_rbegin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)58341 SWIGINTERN PyObject *_wrap_SuboptVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58342   PyObject *resultobj = 0;
58343   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58344   void *argp1 = 0 ;
58345   int res1 = 0 ;
58346   PyObject *swig_obj[1] ;
58347   std::vector< subopt_solution >::reverse_iterator result;
58348 
58349   if (!args) SWIG_fail;
58350   swig_obj[0] = args;
58351   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58352   if (!SWIG_IsOK(res1)) {
58353     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_rbegin" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
58354   }
58355   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58356   {
58357     try {
58358       result = (arg1)->rbegin();
58359     } catch (const std::exception& e) {
58360       SWIG_exception(SWIG_RuntimeError, e.what());
58361     }
58362   }
58363   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< subopt_solution >::reverse_iterator & >(result)),
58364     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
58365   return resultobj;
58366 fail:
58367   return NULL;
58368 }
58369 
58370 
_wrap_SuboptVector_rend(PyObject * SWIGUNUSEDPARM (self),PyObject * args)58371 SWIGINTERN PyObject *_wrap_SuboptVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58372   PyObject *resultobj = 0;
58373   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58374   void *argp1 = 0 ;
58375   int res1 = 0 ;
58376   PyObject *swig_obj[1] ;
58377   std::vector< subopt_solution >::reverse_iterator result;
58378 
58379   if (!args) SWIG_fail;
58380   swig_obj[0] = args;
58381   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58382   if (!SWIG_IsOK(res1)) {
58383     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_rend" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
58384   }
58385   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58386   {
58387     try {
58388       result = (arg1)->rend();
58389     } catch (const std::exception& e) {
58390       SWIG_exception(SWIG_RuntimeError, e.what());
58391     }
58392   }
58393   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< subopt_solution >::reverse_iterator & >(result)),
58394     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
58395   return resultobj;
58396 fail:
58397   return NULL;
58398 }
58399 
58400 
_wrap_SuboptVector_clear(PyObject * SWIGUNUSEDPARM (self),PyObject * args)58401 SWIGINTERN PyObject *_wrap_SuboptVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58402   PyObject *resultobj = 0;
58403   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58404   void *argp1 = 0 ;
58405   int res1 = 0 ;
58406   PyObject *swig_obj[1] ;
58407 
58408   if (!args) SWIG_fail;
58409   swig_obj[0] = args;
58410   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58411   if (!SWIG_IsOK(res1)) {
58412     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_clear" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
58413   }
58414   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58415   {
58416     try {
58417       (arg1)->clear();
58418     } catch (const std::exception& e) {
58419       SWIG_exception(SWIG_RuntimeError, e.what());
58420     }
58421   }
58422   resultobj = SWIG_Py_Void();
58423   return resultobj;
58424 fail:
58425   return NULL;
58426 }
58427 
58428 
_wrap_SuboptVector_get_allocator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)58429 SWIGINTERN PyObject *_wrap_SuboptVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58430   PyObject *resultobj = 0;
58431   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58432   void *argp1 = 0 ;
58433   int res1 = 0 ;
58434   PyObject *swig_obj[1] ;
58435   SwigValueWrapper< std::allocator< subopt_solution > > result;
58436 
58437   if (!args) SWIG_fail;
58438   swig_obj[0] = args;
58439   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58440   if (!SWIG_IsOK(res1)) {
58441     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_get_allocator" "', argument " "1"" of type '" "std::vector< subopt_solution > const *""'");
58442   }
58443   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58444   {
58445     try {
58446       result = ((std::vector< subopt_solution > const *)arg1)->get_allocator();
58447     } catch (const std::exception& e) {
58448       SWIG_exception(SWIG_RuntimeError, e.what());
58449     }
58450   }
58451   resultobj = SWIG_NewPointerObj((new std::vector< subopt_solution >::allocator_type(static_cast< const std::vector< subopt_solution >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_subopt_solution_t, SWIG_POINTER_OWN |  0 );
58452   return resultobj;
58453 fail:
58454   return NULL;
58455 }
58456 
58457 
_wrap_new_SuboptVector__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)58458 SWIGINTERN PyObject *_wrap_new_SuboptVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
58459   PyObject *resultobj = 0;
58460   std::vector< subopt_solution >::size_type arg1 ;
58461   size_t val1 ;
58462   int ecode1 = 0 ;
58463   std::vector< subopt_solution > *result = 0 ;
58464 
58465   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
58466   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
58467   if (!SWIG_IsOK(ecode1)) {
58468     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SuboptVector" "', argument " "1"" of type '" "std::vector< subopt_solution >::size_type""'");
58469   }
58470   arg1 = static_cast< std::vector< subopt_solution >::size_type >(val1);
58471   {
58472     try {
58473       result = (std::vector< subopt_solution > *)new std::vector< subopt_solution >(arg1);
58474     } catch (const std::exception& e) {
58475       SWIG_exception(SWIG_RuntimeError, e.what());
58476     }
58477   }
58478   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, SWIG_POINTER_NEW |  0 );
58479   return resultobj;
58480 fail:
58481   return NULL;
58482 }
58483 
58484 
_wrap_SuboptVector_pop_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)58485 SWIGINTERN PyObject *_wrap_SuboptVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58486   PyObject *resultobj = 0;
58487   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58488   void *argp1 = 0 ;
58489   int res1 = 0 ;
58490   PyObject *swig_obj[1] ;
58491 
58492   if (!args) SWIG_fail;
58493   swig_obj[0] = args;
58494   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58495   if (!SWIG_IsOK(res1)) {
58496     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_pop_back" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
58497   }
58498   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58499   {
58500     try {
58501       (arg1)->pop_back();
58502     } catch (const std::exception& e) {
58503       SWIG_exception(SWIG_RuntimeError, e.what());
58504     }
58505   }
58506   resultobj = SWIG_Py_Void();
58507   return resultobj;
58508 fail:
58509   return NULL;
58510 }
58511 
58512 
_wrap_SuboptVector_resize__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)58513 SWIGINTERN PyObject *_wrap_SuboptVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
58514   PyObject *resultobj = 0;
58515   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58516   std::vector< subopt_solution >::size_type arg2 ;
58517   void *argp1 = 0 ;
58518   int res1 = 0 ;
58519   size_t val2 ;
58520   int ecode2 = 0 ;
58521 
58522   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
58523   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58524   if (!SWIG_IsOK(res1)) {
58525     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_resize" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
58526   }
58527   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58528   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
58529   if (!SWIG_IsOK(ecode2)) {
58530     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SuboptVector_resize" "', argument " "2"" of type '" "std::vector< subopt_solution >::size_type""'");
58531   }
58532   arg2 = static_cast< std::vector< subopt_solution >::size_type >(val2);
58533   {
58534     try {
58535       (arg1)->resize(arg2);
58536     } catch (const std::exception& e) {
58537       SWIG_exception(SWIG_RuntimeError, e.what());
58538     }
58539   }
58540   resultobj = SWIG_Py_Void();
58541   return resultobj;
58542 fail:
58543   return NULL;
58544 }
58545 
58546 
_wrap_SuboptVector_erase__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)58547 SWIGINTERN PyObject *_wrap_SuboptVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
58548   PyObject *resultobj = 0;
58549   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58550   std::vector< subopt_solution >::iterator arg2 ;
58551   void *argp1 = 0 ;
58552   int res1 = 0 ;
58553   swig::SwigPyIterator *iter2 = 0 ;
58554   int res2 ;
58555   std::vector< subopt_solution >::iterator result;
58556 
58557   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
58558   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58559   if (!SWIG_IsOK(res1)) {
58560     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_erase" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
58561   }
58562   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58563   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
58564   if (!SWIG_IsOK(res2) || !iter2) {
58565     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SuboptVector_erase" "', argument " "2"" of type '" "std::vector< subopt_solution >::iterator""'");
58566   } else {
58567     swig::SwigPyIterator_T<std::vector< subopt_solution >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< subopt_solution >::iterator > *>(iter2);
58568     if (iter_t) {
58569       arg2 = iter_t->get_current();
58570     } else {
58571       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SuboptVector_erase" "', argument " "2"" of type '" "std::vector< subopt_solution >::iterator""'");
58572     }
58573   }
58574   {
58575     try {
58576       result = std_vector_Sl_subopt_solution_Sg__erase__SWIG_0(arg1,arg2);
58577     } catch (const std::exception& e) {
58578       SWIG_exception(SWIG_RuntimeError, e.what());
58579     }
58580   }
58581   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< subopt_solution >::iterator & >(result)),
58582     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
58583   return resultobj;
58584 fail:
58585   return NULL;
58586 }
58587 
58588 
_wrap_SuboptVector_erase__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)58589 SWIGINTERN PyObject *_wrap_SuboptVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
58590   PyObject *resultobj = 0;
58591   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58592   std::vector< subopt_solution >::iterator arg2 ;
58593   std::vector< subopt_solution >::iterator arg3 ;
58594   void *argp1 = 0 ;
58595   int res1 = 0 ;
58596   swig::SwigPyIterator *iter2 = 0 ;
58597   int res2 ;
58598   swig::SwigPyIterator *iter3 = 0 ;
58599   int res3 ;
58600   std::vector< subopt_solution >::iterator result;
58601 
58602   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
58603   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58604   if (!SWIG_IsOK(res1)) {
58605     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_erase" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
58606   }
58607   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58608   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
58609   if (!SWIG_IsOK(res2) || !iter2) {
58610     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SuboptVector_erase" "', argument " "2"" of type '" "std::vector< subopt_solution >::iterator""'");
58611   } else {
58612     swig::SwigPyIterator_T<std::vector< subopt_solution >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< subopt_solution >::iterator > *>(iter2);
58613     if (iter_t) {
58614       arg2 = iter_t->get_current();
58615     } else {
58616       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SuboptVector_erase" "', argument " "2"" of type '" "std::vector< subopt_solution >::iterator""'");
58617     }
58618   }
58619   res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
58620   if (!SWIG_IsOK(res3) || !iter3) {
58621     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SuboptVector_erase" "', argument " "3"" of type '" "std::vector< subopt_solution >::iterator""'");
58622   } else {
58623     swig::SwigPyIterator_T<std::vector< subopt_solution >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< subopt_solution >::iterator > *>(iter3);
58624     if (iter_t) {
58625       arg3 = iter_t->get_current();
58626     } else {
58627       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SuboptVector_erase" "', argument " "3"" of type '" "std::vector< subopt_solution >::iterator""'");
58628     }
58629   }
58630   {
58631     try {
58632       result = std_vector_Sl_subopt_solution_Sg__erase__SWIG_1(arg1,arg2,arg3);
58633     } catch (const std::exception& e) {
58634       SWIG_exception(SWIG_RuntimeError, e.what());
58635     }
58636   }
58637   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< subopt_solution >::iterator & >(result)),
58638     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
58639   return resultobj;
58640 fail:
58641   return NULL;
58642 }
58643 
58644 
_wrap_SuboptVector_erase(PyObject * self,PyObject * args)58645 SWIGINTERN PyObject *_wrap_SuboptVector_erase(PyObject *self, PyObject *args) {
58646   Py_ssize_t argc;
58647   PyObject *argv[4] = {
58648     0
58649   };
58650 
58651   if (!(argc = SWIG_Python_UnpackTuple(args, "SuboptVector_erase", 0, 3, argv))) SWIG_fail;
58652   --argc;
58653   if (argc == 2) {
58654     int _v;
58655     int res = swig::asptr(argv[0], (std::vector< subopt_solution,std::allocator< subopt_solution > >**)(0));
58656     _v = SWIG_CheckState(res);
58657     if (_v) {
58658       swig::SwigPyIterator *iter = 0;
58659       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
58660       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< subopt_solution >::iterator > *>(iter) != 0));
58661       if (_v) {
58662         return _wrap_SuboptVector_erase__SWIG_0(self, argc, argv);
58663       }
58664     }
58665   }
58666   if (argc == 3) {
58667     int _v;
58668     int res = swig::asptr(argv[0], (std::vector< subopt_solution,std::allocator< subopt_solution > >**)(0));
58669     _v = SWIG_CheckState(res);
58670     if (_v) {
58671       swig::SwigPyIterator *iter = 0;
58672       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
58673       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< subopt_solution >::iterator > *>(iter) != 0));
58674       if (_v) {
58675         swig::SwigPyIterator *iter = 0;
58676         int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
58677         _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< subopt_solution >::iterator > *>(iter) != 0));
58678         if (_v) {
58679           return _wrap_SuboptVector_erase__SWIG_1(self, argc, argv);
58680         }
58681       }
58682     }
58683   }
58684 
58685 fail:
58686   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SuboptVector_erase'.\n"
58687     "  Possible C/C++ prototypes are:\n"
58688     "    std::vector< subopt_solution >::erase(std::vector< subopt_solution >::iterator)\n"
58689     "    std::vector< subopt_solution >::erase(std::vector< subopt_solution >::iterator,std::vector< subopt_solution >::iterator)\n");
58690   return 0;
58691 }
58692 
58693 
_wrap_new_SuboptVector__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)58694 SWIGINTERN PyObject *_wrap_new_SuboptVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
58695   PyObject *resultobj = 0;
58696   std::vector< subopt_solution >::size_type arg1 ;
58697   std::vector< subopt_solution >::value_type *arg2 = 0 ;
58698   size_t val1 ;
58699   int ecode1 = 0 ;
58700   void *argp2 = 0 ;
58701   int res2 = 0 ;
58702   std::vector< subopt_solution > *result = 0 ;
58703 
58704   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
58705   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
58706   if (!SWIG_IsOK(ecode1)) {
58707     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SuboptVector" "', argument " "1"" of type '" "std::vector< subopt_solution >::size_type""'");
58708   }
58709   arg1 = static_cast< std::vector< subopt_solution >::size_type >(val1);
58710   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_subopt_solution,  0  | 0);
58711   if (!SWIG_IsOK(res2)) {
58712     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SuboptVector" "', argument " "2"" of type '" "std::vector< subopt_solution >::value_type const &""'");
58713   }
58714   if (!argp2) {
58715     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SuboptVector" "', argument " "2"" of type '" "std::vector< subopt_solution >::value_type const &""'");
58716   }
58717   arg2 = reinterpret_cast< std::vector< subopt_solution >::value_type * >(argp2);
58718   {
58719     try {
58720       result = (std::vector< subopt_solution > *)new std::vector< subopt_solution >(arg1,(std::vector< subopt_solution >::value_type const &)*arg2);
58721     } catch (const std::exception& e) {
58722       SWIG_exception(SWIG_RuntimeError, e.what());
58723     }
58724   }
58725   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, SWIG_POINTER_NEW |  0 );
58726   return resultobj;
58727 fail:
58728   return NULL;
58729 }
58730 
58731 
_wrap_new_SuboptVector(PyObject * self,PyObject * args)58732 SWIGINTERN PyObject *_wrap_new_SuboptVector(PyObject *self, PyObject *args) {
58733   Py_ssize_t argc;
58734   PyObject *argv[3] = {
58735     0
58736   };
58737 
58738   if (!(argc = SWIG_Python_UnpackTuple(args, "new_SuboptVector", 0, 2, argv))) SWIG_fail;
58739   --argc;
58740   if (argc == 0) {
58741     return _wrap_new_SuboptVector__SWIG_0(self, argc, argv);
58742   }
58743   if (argc == 1) {
58744     int _v;
58745     {
58746       int res = SWIG_AsVal_size_t(argv[0], NULL);
58747       _v = SWIG_CheckState(res);
58748     }
58749     if (_v) {
58750       return _wrap_new_SuboptVector__SWIG_2(self, argc, argv);
58751     }
58752   }
58753   if (argc == 1) {
58754     int _v;
58755     int res = swig::asptr(argv[0], (std::vector< subopt_solution,std::allocator< subopt_solution > >**)(0));
58756     _v = SWIG_CheckState(res);
58757     if (_v) {
58758       return _wrap_new_SuboptVector__SWIG_1(self, argc, argv);
58759     }
58760   }
58761   if (argc == 2) {
58762     int _v;
58763     {
58764       int res = SWIG_AsVal_size_t(argv[0], NULL);
58765       _v = SWIG_CheckState(res);
58766     }
58767     if (_v) {
58768       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_subopt_solution, SWIG_POINTER_NO_NULL | 0);
58769       _v = SWIG_CheckState(res);
58770       if (_v) {
58771         return _wrap_new_SuboptVector__SWIG_3(self, argc, argv);
58772       }
58773     }
58774   }
58775 
58776 fail:
58777   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_SuboptVector'.\n"
58778     "  Possible C/C++ prototypes are:\n"
58779     "    std::vector< subopt_solution >::vector()\n"
58780     "    std::vector< subopt_solution >::vector(std::vector< subopt_solution > const &)\n"
58781     "    std::vector< subopt_solution >::vector(std::vector< subopt_solution >::size_type)\n"
58782     "    std::vector< subopt_solution >::vector(std::vector< subopt_solution >::size_type,std::vector< subopt_solution >::value_type const &)\n");
58783   return 0;
58784 }
58785 
58786 
_wrap_SuboptVector_push_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)58787 SWIGINTERN PyObject *_wrap_SuboptVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
58788   PyObject *resultobj = 0;
58789   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58790   std::vector< subopt_solution >::value_type *arg2 = 0 ;
58791   void *argp1 = 0 ;
58792   int res1 = 0 ;
58793   void *argp2 = 0 ;
58794   int res2 = 0 ;
58795   PyObject * obj0 = 0 ;
58796   PyObject * obj1 = 0 ;
58797   char * kwnames[] = {
58798     (char *)"self",  (char *)"x",  NULL
58799   };
58800 
58801   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:SuboptVector_push_back", kwnames, &obj0, &obj1)) SWIG_fail;
58802   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58803   if (!SWIG_IsOK(res1)) {
58804     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_push_back" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
58805   }
58806   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58807   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_subopt_solution,  0  | 0);
58808   if (!SWIG_IsOK(res2)) {
58809     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SuboptVector_push_back" "', argument " "2"" of type '" "std::vector< subopt_solution >::value_type const &""'");
58810   }
58811   if (!argp2) {
58812     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SuboptVector_push_back" "', argument " "2"" of type '" "std::vector< subopt_solution >::value_type const &""'");
58813   }
58814   arg2 = reinterpret_cast< std::vector< subopt_solution >::value_type * >(argp2);
58815   {
58816     try {
58817       (arg1)->push_back((std::vector< subopt_solution >::value_type const &)*arg2);
58818     } catch (const std::exception& e) {
58819       SWIG_exception(SWIG_RuntimeError, e.what());
58820     }
58821   }
58822   resultobj = SWIG_Py_Void();
58823   return resultobj;
58824 fail:
58825   return NULL;
58826 }
58827 
58828 
_wrap_SuboptVector_front(PyObject * SWIGUNUSEDPARM (self),PyObject * args)58829 SWIGINTERN PyObject *_wrap_SuboptVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58830   PyObject *resultobj = 0;
58831   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58832   void *argp1 = 0 ;
58833   int res1 = 0 ;
58834   PyObject *swig_obj[1] ;
58835   std::vector< subopt_solution >::value_type *result = 0 ;
58836 
58837   if (!args) SWIG_fail;
58838   swig_obj[0] = args;
58839   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58840   if (!SWIG_IsOK(res1)) {
58841     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_front" "', argument " "1"" of type '" "std::vector< subopt_solution > const *""'");
58842   }
58843   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58844   {
58845     try {
58846       result = (std::vector< subopt_solution >::value_type *) &((std::vector< subopt_solution > const *)arg1)->front();
58847     } catch (const std::exception& e) {
58848       SWIG_exception(SWIG_RuntimeError, e.what());
58849     }
58850   }
58851   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_subopt_solution, 0 |  0 );
58852   (void)swig::container_owner<swig::traits<std::vector< subopt_solution >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
58853   return resultobj;
58854 fail:
58855   return NULL;
58856 }
58857 
58858 
_wrap_SuboptVector_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)58859 SWIGINTERN PyObject *_wrap_SuboptVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
58860   PyObject *resultobj = 0;
58861   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58862   void *argp1 = 0 ;
58863   int res1 = 0 ;
58864   PyObject *swig_obj[1] ;
58865   std::vector< subopt_solution >::value_type *result = 0 ;
58866 
58867   if (!args) SWIG_fail;
58868   swig_obj[0] = args;
58869   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58870   if (!SWIG_IsOK(res1)) {
58871     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_back" "', argument " "1"" of type '" "std::vector< subopt_solution > const *""'");
58872   }
58873   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58874   {
58875     try {
58876       result = (std::vector< subopt_solution >::value_type *) &((std::vector< subopt_solution > const *)arg1)->back();
58877     } catch (const std::exception& e) {
58878       SWIG_exception(SWIG_RuntimeError, e.what());
58879     }
58880   }
58881   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_subopt_solution, 0 |  0 );
58882   (void)swig::container_owner<swig::traits<std::vector< subopt_solution >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
58883   return resultobj;
58884 fail:
58885   return NULL;
58886 }
58887 
58888 
_wrap_SuboptVector_assign(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)58889 SWIGINTERN PyObject *_wrap_SuboptVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
58890   PyObject *resultobj = 0;
58891   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58892   std::vector< subopt_solution >::size_type arg2 ;
58893   std::vector< subopt_solution >::value_type *arg3 = 0 ;
58894   void *argp1 = 0 ;
58895   int res1 = 0 ;
58896   size_t val2 ;
58897   int ecode2 = 0 ;
58898   void *argp3 = 0 ;
58899   int res3 = 0 ;
58900   PyObject * obj0 = 0 ;
58901   PyObject * obj1 = 0 ;
58902   PyObject * obj2 = 0 ;
58903   char * kwnames[] = {
58904     (char *)"self",  (char *)"n",  (char *)"x",  NULL
58905   };
58906 
58907   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:SuboptVector_assign", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
58908   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58909   if (!SWIG_IsOK(res1)) {
58910     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_assign" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
58911   }
58912   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58913   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
58914   if (!SWIG_IsOK(ecode2)) {
58915     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SuboptVector_assign" "', argument " "2"" of type '" "std::vector< subopt_solution >::size_type""'");
58916   }
58917   arg2 = static_cast< std::vector< subopt_solution >::size_type >(val2);
58918   res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_subopt_solution,  0  | 0);
58919   if (!SWIG_IsOK(res3)) {
58920     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SuboptVector_assign" "', argument " "3"" of type '" "std::vector< subopt_solution >::value_type const &""'");
58921   }
58922   if (!argp3) {
58923     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SuboptVector_assign" "', argument " "3"" of type '" "std::vector< subopt_solution >::value_type const &""'");
58924   }
58925   arg3 = reinterpret_cast< std::vector< subopt_solution >::value_type * >(argp3);
58926   {
58927     try {
58928       (arg1)->assign(arg2,(std::vector< subopt_solution >::value_type const &)*arg3);
58929     } catch (const std::exception& e) {
58930       SWIG_exception(SWIG_RuntimeError, e.what());
58931     }
58932   }
58933   resultobj = SWIG_Py_Void();
58934   return resultobj;
58935 fail:
58936   return NULL;
58937 }
58938 
58939 
_wrap_SuboptVector_resize__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)58940 SWIGINTERN PyObject *_wrap_SuboptVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
58941   PyObject *resultobj = 0;
58942   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
58943   std::vector< subopt_solution >::size_type arg2 ;
58944   std::vector< subopt_solution >::value_type *arg3 = 0 ;
58945   void *argp1 = 0 ;
58946   int res1 = 0 ;
58947   size_t val2 ;
58948   int ecode2 = 0 ;
58949   void *argp3 = 0 ;
58950   int res3 = 0 ;
58951 
58952   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
58953   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
58954   if (!SWIG_IsOK(res1)) {
58955     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_resize" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
58956   }
58957   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
58958   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
58959   if (!SWIG_IsOK(ecode2)) {
58960     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SuboptVector_resize" "', argument " "2"" of type '" "std::vector< subopt_solution >::size_type""'");
58961   }
58962   arg2 = static_cast< std::vector< subopt_solution >::size_type >(val2);
58963   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_subopt_solution,  0  | 0);
58964   if (!SWIG_IsOK(res3)) {
58965     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SuboptVector_resize" "', argument " "3"" of type '" "std::vector< subopt_solution >::value_type const &""'");
58966   }
58967   if (!argp3) {
58968     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SuboptVector_resize" "', argument " "3"" of type '" "std::vector< subopt_solution >::value_type const &""'");
58969   }
58970   arg3 = reinterpret_cast< std::vector< subopt_solution >::value_type * >(argp3);
58971   {
58972     try {
58973       (arg1)->resize(arg2,(std::vector< subopt_solution >::value_type const &)*arg3);
58974     } catch (const std::exception& e) {
58975       SWIG_exception(SWIG_RuntimeError, e.what());
58976     }
58977   }
58978   resultobj = SWIG_Py_Void();
58979   return resultobj;
58980 fail:
58981   return NULL;
58982 }
58983 
58984 
_wrap_SuboptVector_resize(PyObject * self,PyObject * args)58985 SWIGINTERN PyObject *_wrap_SuboptVector_resize(PyObject *self, PyObject *args) {
58986   Py_ssize_t argc;
58987   PyObject *argv[4] = {
58988     0
58989   };
58990 
58991   if (!(argc = SWIG_Python_UnpackTuple(args, "SuboptVector_resize", 0, 3, argv))) SWIG_fail;
58992   --argc;
58993   if (argc == 2) {
58994     int _v;
58995     int res = swig::asptr(argv[0], (std::vector< subopt_solution,std::allocator< subopt_solution > >**)(0));
58996     _v = SWIG_CheckState(res);
58997     if (_v) {
58998       {
58999         int res = SWIG_AsVal_size_t(argv[1], NULL);
59000         _v = SWIG_CheckState(res);
59001       }
59002       if (_v) {
59003         return _wrap_SuboptVector_resize__SWIG_0(self, argc, argv);
59004       }
59005     }
59006   }
59007   if (argc == 3) {
59008     int _v;
59009     int res = swig::asptr(argv[0], (std::vector< subopt_solution,std::allocator< subopt_solution > >**)(0));
59010     _v = SWIG_CheckState(res);
59011     if (_v) {
59012       {
59013         int res = SWIG_AsVal_size_t(argv[1], NULL);
59014         _v = SWIG_CheckState(res);
59015       }
59016       if (_v) {
59017         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_subopt_solution, SWIG_POINTER_NO_NULL | 0);
59018         _v = SWIG_CheckState(res);
59019         if (_v) {
59020           return _wrap_SuboptVector_resize__SWIG_1(self, argc, argv);
59021         }
59022       }
59023     }
59024   }
59025 
59026 fail:
59027   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SuboptVector_resize'.\n"
59028     "  Possible C/C++ prototypes are:\n"
59029     "    std::vector< subopt_solution >::resize(std::vector< subopt_solution >::size_type)\n"
59030     "    std::vector< subopt_solution >::resize(std::vector< subopt_solution >::size_type,std::vector< subopt_solution >::value_type const &)\n");
59031   return 0;
59032 }
59033 
59034 
_wrap_SuboptVector_insert__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)59035 SWIGINTERN PyObject *_wrap_SuboptVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
59036   PyObject *resultobj = 0;
59037   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
59038   std::vector< subopt_solution >::iterator arg2 ;
59039   std::vector< subopt_solution >::value_type *arg3 = 0 ;
59040   void *argp1 = 0 ;
59041   int res1 = 0 ;
59042   swig::SwigPyIterator *iter2 = 0 ;
59043   int res2 ;
59044   void *argp3 = 0 ;
59045   int res3 = 0 ;
59046   std::vector< subopt_solution >::iterator result;
59047 
59048   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
59049   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
59050   if (!SWIG_IsOK(res1)) {
59051     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_insert" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
59052   }
59053   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
59054   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
59055   if (!SWIG_IsOK(res2) || !iter2) {
59056     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SuboptVector_insert" "', argument " "2"" of type '" "std::vector< subopt_solution >::iterator""'");
59057   } else {
59058     swig::SwigPyIterator_T<std::vector< subopt_solution >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< subopt_solution >::iterator > *>(iter2);
59059     if (iter_t) {
59060       arg2 = iter_t->get_current();
59061     } else {
59062       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SuboptVector_insert" "', argument " "2"" of type '" "std::vector< subopt_solution >::iterator""'");
59063     }
59064   }
59065   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_subopt_solution,  0  | 0);
59066   if (!SWIG_IsOK(res3)) {
59067     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SuboptVector_insert" "', argument " "3"" of type '" "std::vector< subopt_solution >::value_type const &""'");
59068   }
59069   if (!argp3) {
59070     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SuboptVector_insert" "', argument " "3"" of type '" "std::vector< subopt_solution >::value_type const &""'");
59071   }
59072   arg3 = reinterpret_cast< std::vector< subopt_solution >::value_type * >(argp3);
59073   {
59074     try {
59075       result = std_vector_Sl_subopt_solution_Sg__insert__SWIG_0(arg1,arg2,(subopt_solution const &)*arg3);
59076     } catch (const std::exception& e) {
59077       SWIG_exception(SWIG_RuntimeError, e.what());
59078     }
59079   }
59080   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< subopt_solution >::iterator & >(result)),
59081     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
59082   return resultobj;
59083 fail:
59084   return NULL;
59085 }
59086 
59087 
_wrap_SuboptVector_insert__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)59088 SWIGINTERN PyObject *_wrap_SuboptVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
59089   PyObject *resultobj = 0;
59090   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
59091   std::vector< subopt_solution >::iterator arg2 ;
59092   std::vector< subopt_solution >::size_type arg3 ;
59093   std::vector< subopt_solution >::value_type *arg4 = 0 ;
59094   void *argp1 = 0 ;
59095   int res1 = 0 ;
59096   swig::SwigPyIterator *iter2 = 0 ;
59097   int res2 ;
59098   size_t val3 ;
59099   int ecode3 = 0 ;
59100   void *argp4 = 0 ;
59101   int res4 = 0 ;
59102 
59103   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
59104   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
59105   if (!SWIG_IsOK(res1)) {
59106     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_insert" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
59107   }
59108   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
59109   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
59110   if (!SWIG_IsOK(res2) || !iter2) {
59111     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SuboptVector_insert" "', argument " "2"" of type '" "std::vector< subopt_solution >::iterator""'");
59112   } else {
59113     swig::SwigPyIterator_T<std::vector< subopt_solution >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< subopt_solution >::iterator > *>(iter2);
59114     if (iter_t) {
59115       arg2 = iter_t->get_current();
59116     } else {
59117       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SuboptVector_insert" "', argument " "2"" of type '" "std::vector< subopt_solution >::iterator""'");
59118     }
59119   }
59120   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
59121   if (!SWIG_IsOK(ecode3)) {
59122     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SuboptVector_insert" "', argument " "3"" of type '" "std::vector< subopt_solution >::size_type""'");
59123   }
59124   arg3 = static_cast< std::vector< subopt_solution >::size_type >(val3);
59125   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_subopt_solution,  0  | 0);
59126   if (!SWIG_IsOK(res4)) {
59127     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SuboptVector_insert" "', argument " "4"" of type '" "std::vector< subopt_solution >::value_type const &""'");
59128   }
59129   if (!argp4) {
59130     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SuboptVector_insert" "', argument " "4"" of type '" "std::vector< subopt_solution >::value_type const &""'");
59131   }
59132   arg4 = reinterpret_cast< std::vector< subopt_solution >::value_type * >(argp4);
59133   {
59134     try {
59135       std_vector_Sl_subopt_solution_Sg__insert__SWIG_1(arg1,arg2,arg3,(subopt_solution const &)*arg4);
59136     } catch (const std::exception& e) {
59137       SWIG_exception(SWIG_RuntimeError, e.what());
59138     }
59139   }
59140   resultobj = SWIG_Py_Void();
59141   return resultobj;
59142 fail:
59143   return NULL;
59144 }
59145 
59146 
_wrap_SuboptVector_insert(PyObject * self,PyObject * args)59147 SWIGINTERN PyObject *_wrap_SuboptVector_insert(PyObject *self, PyObject *args) {
59148   Py_ssize_t argc;
59149   PyObject *argv[5] = {
59150     0
59151   };
59152 
59153   if (!(argc = SWIG_Python_UnpackTuple(args, "SuboptVector_insert", 0, 4, argv))) SWIG_fail;
59154   --argc;
59155   if (argc == 3) {
59156     int _v;
59157     int res = swig::asptr(argv[0], (std::vector< subopt_solution,std::allocator< subopt_solution > >**)(0));
59158     _v = SWIG_CheckState(res);
59159     if (_v) {
59160       swig::SwigPyIterator *iter = 0;
59161       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
59162       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< subopt_solution >::iterator > *>(iter) != 0));
59163       if (_v) {
59164         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_subopt_solution, SWIG_POINTER_NO_NULL | 0);
59165         _v = SWIG_CheckState(res);
59166         if (_v) {
59167           return _wrap_SuboptVector_insert__SWIG_0(self, argc, argv);
59168         }
59169       }
59170     }
59171   }
59172   if (argc == 4) {
59173     int _v;
59174     int res = swig::asptr(argv[0], (std::vector< subopt_solution,std::allocator< subopt_solution > >**)(0));
59175     _v = SWIG_CheckState(res);
59176     if (_v) {
59177       swig::SwigPyIterator *iter = 0;
59178       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
59179       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< subopt_solution >::iterator > *>(iter) != 0));
59180       if (_v) {
59181         {
59182           int res = SWIG_AsVal_size_t(argv[2], NULL);
59183           _v = SWIG_CheckState(res);
59184         }
59185         if (_v) {
59186           int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_subopt_solution, SWIG_POINTER_NO_NULL | 0);
59187           _v = SWIG_CheckState(res);
59188           if (_v) {
59189             return _wrap_SuboptVector_insert__SWIG_1(self, argc, argv);
59190           }
59191         }
59192       }
59193     }
59194   }
59195 
59196 fail:
59197   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SuboptVector_insert'.\n"
59198     "  Possible C/C++ prototypes are:\n"
59199     "    std::vector< subopt_solution >::insert(std::vector< subopt_solution >::iterator,std::vector< subopt_solution >::value_type const &)\n"
59200     "    std::vector< subopt_solution >::insert(std::vector< subopt_solution >::iterator,std::vector< subopt_solution >::size_type,std::vector< subopt_solution >::value_type const &)\n");
59201   return 0;
59202 }
59203 
59204 
_wrap_SuboptVector_reserve(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)59205 SWIGINTERN PyObject *_wrap_SuboptVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
59206   PyObject *resultobj = 0;
59207   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
59208   std::vector< subopt_solution >::size_type arg2 ;
59209   void *argp1 = 0 ;
59210   int res1 = 0 ;
59211   size_t val2 ;
59212   int ecode2 = 0 ;
59213   PyObject * obj0 = 0 ;
59214   PyObject * obj1 = 0 ;
59215   char * kwnames[] = {
59216     (char *)"self",  (char *)"n",  NULL
59217   };
59218 
59219   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:SuboptVector_reserve", kwnames, &obj0, &obj1)) SWIG_fail;
59220   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
59221   if (!SWIG_IsOK(res1)) {
59222     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_reserve" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
59223   }
59224   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
59225   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
59226   if (!SWIG_IsOK(ecode2)) {
59227     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SuboptVector_reserve" "', argument " "2"" of type '" "std::vector< subopt_solution >::size_type""'");
59228   }
59229   arg2 = static_cast< std::vector< subopt_solution >::size_type >(val2);
59230   {
59231     try {
59232       (arg1)->reserve(arg2);
59233     } catch (const std::exception& e) {
59234       SWIG_exception(SWIG_RuntimeError, e.what());
59235     }
59236   }
59237   resultobj = SWIG_Py_Void();
59238   return resultobj;
59239 fail:
59240   return NULL;
59241 }
59242 
59243 
_wrap_SuboptVector_capacity(PyObject * SWIGUNUSEDPARM (self),PyObject * args)59244 SWIGINTERN PyObject *_wrap_SuboptVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
59245   PyObject *resultobj = 0;
59246   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
59247   void *argp1 = 0 ;
59248   int res1 = 0 ;
59249   PyObject *swig_obj[1] ;
59250   std::vector< subopt_solution >::size_type result;
59251 
59252   if (!args) SWIG_fail;
59253   swig_obj[0] = args;
59254   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0 |  0 );
59255   if (!SWIG_IsOK(res1)) {
59256     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SuboptVector_capacity" "', argument " "1"" of type '" "std::vector< subopt_solution > const *""'");
59257   }
59258   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
59259   {
59260     try {
59261       result = ((std::vector< subopt_solution > const *)arg1)->capacity();
59262     } catch (const std::exception& e) {
59263       SWIG_exception(SWIG_RuntimeError, e.what());
59264     }
59265   }
59266   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
59267   return resultobj;
59268 fail:
59269   return NULL;
59270 }
59271 
59272 
_wrap_delete_SuboptVector(PyObject * SWIGUNUSEDPARM (self),PyObject * args)59273 SWIGINTERN PyObject *_wrap_delete_SuboptVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
59274   PyObject *resultobj = 0;
59275   std::vector< subopt_solution > *arg1 = (std::vector< subopt_solution > *) 0 ;
59276   void *argp1 = 0 ;
59277   int res1 = 0 ;
59278   PyObject *swig_obj[1] ;
59279 
59280   if (!args) SWIG_fail;
59281   swig_obj[0] = args;
59282   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, SWIG_POINTER_DISOWN |  0 );
59283   if (!SWIG_IsOK(res1)) {
59284     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SuboptVector" "', argument " "1"" of type '" "std::vector< subopt_solution > *""'");
59285   }
59286   arg1 = reinterpret_cast< std::vector< subopt_solution > * >(argp1);
59287   {
59288     try {
59289       delete arg1;
59290     } catch (const std::exception& e) {
59291       SWIG_exception(SWIG_RuntimeError, e.what());
59292     }
59293   }
59294   resultobj = SWIG_Py_Void();
59295   return resultobj;
59296 fail:
59297   return NULL;
59298 }
59299 
59300 
SuboptVector_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)59301 SWIGINTERN PyObject *SuboptVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
59302   PyObject *obj;
59303   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
59304   SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, SWIG_NewClientData(obj));
59305   return SWIG_Py_Void();
59306 }
59307 
SuboptVector_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)59308 SWIGINTERN PyObject *SuboptVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
59309   return SWIG_Python_InitShadowInstance(args);
59310 }
59311 
_wrap_subopt__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)59312 SWIGINTERN PyObject *_wrap_subopt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
59313   PyObject *resultobj = 0;
59314   char *arg1 = (char *) 0 ;
59315   char *arg2 = (char *) 0 ;
59316   int arg3 ;
59317   FILE *arg4 = (FILE *) NULL ;
59318   int res1 ;
59319   char *buf1 = 0 ;
59320   int alloc1 = 0 ;
59321   int res2 ;
59322   char *buf2 = 0 ;
59323   int alloc2 = 0 ;
59324   int val3 ;
59325   int ecode3 = 0 ;
59326   SOLUTION *result = 0 ;
59327 
59328   if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
59329   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
59330   if (!SWIG_IsOK(res1)) {
59331     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "subopt" "', argument " "1"" of type '" "char *""'");
59332   }
59333   arg1 = reinterpret_cast< char * >(buf1);
59334   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
59335   if (!SWIG_IsOK(res2)) {
59336     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "subopt" "', argument " "2"" of type '" "char *""'");
59337   }
59338   arg2 = reinterpret_cast< char * >(buf2);
59339   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
59340   if (!SWIG_IsOK(ecode3)) {
59341     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "subopt" "', argument " "3"" of type '" "int""'");
59342   }
59343   arg3 = static_cast< int >(val3);
59344   if (swig_obj[3]) {
59345     {
59346       if (PyFile_Check(swig_obj[3])) /* check for undef */
59347       arg4 = PyFile_AsFile(swig_obj[3]);
59348       else  arg4 = NULL;
59349     }
59350   }
59351   {
59352     try {
59353       result = (SOLUTION *)my_subopt(arg1,arg2,arg3,arg4);
59354     } catch (const std::exception& e) {
59355       SWIG_exception(SWIG_RuntimeError, e.what());
59356     }
59357   }
59358   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SOLUTION, 0 |  0 );
59359   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59360   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
59361   return resultobj;
59362 fail:
59363   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59364   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
59365   return NULL;
59366 }
59367 
59368 
_wrap_subopt__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)59369 SWIGINTERN PyObject *_wrap_subopt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
59370   PyObject *resultobj = 0;
59371   char *arg1 = (char *) 0 ;
59372   int arg2 ;
59373   FILE *arg3 = (FILE *) NULL ;
59374   int res1 ;
59375   char *buf1 = 0 ;
59376   int alloc1 = 0 ;
59377   int val2 ;
59378   int ecode2 = 0 ;
59379   std::vector< subopt_solution,std::allocator< subopt_solution > > result;
59380 
59381   if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
59382   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
59383   if (!SWIG_IsOK(res1)) {
59384     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "subopt" "', argument " "1"" of type '" "char *""'");
59385   }
59386   arg1 = reinterpret_cast< char * >(buf1);
59387   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
59388   if (!SWIG_IsOK(ecode2)) {
59389     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "subopt" "', argument " "2"" of type '" "int""'");
59390   }
59391   arg2 = static_cast< int >(val2);
59392   if (swig_obj[2]) {
59393     {
59394       if (PyFile_Check(swig_obj[2])) /* check for undef */
59395       arg3 = PyFile_AsFile(swig_obj[2]);
59396       else  arg3 = NULL;
59397     }
59398   }
59399   {
59400     try {
59401       result = my_subopt(arg1,arg2,arg3);
59402     } catch (const std::exception& e) {
59403       SWIG_exception(SWIG_RuntimeError, e.what());
59404     }
59405   }
59406   resultobj = swig::from(static_cast< std::vector< subopt_solution,std::allocator< subopt_solution > > >(result));
59407   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59408   return resultobj;
59409 fail:
59410   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59411   return NULL;
59412 }
59413 
59414 
_wrap_subopt(PyObject * self,PyObject * args)59415 SWIGINTERN PyObject *_wrap_subopt(PyObject *self, PyObject *args) {
59416   Py_ssize_t argc;
59417   PyObject *argv[5] = {
59418     0
59419   };
59420 
59421   if (!(argc = SWIG_Python_UnpackTuple(args, "subopt", 0, 4, argv))) SWIG_fail;
59422   --argc;
59423   if ((argc >= 2) && (argc <= 3)) {
59424     int _v;
59425     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
59426     _v = SWIG_CheckState(res);
59427     if (_v) {
59428       {
59429         int res = SWIG_AsVal_int(argv[1], NULL);
59430         _v = SWIG_CheckState(res);
59431       }
59432       if (_v) {
59433         if (argc <= 2) {
59434           return _wrap_subopt__SWIG_1(self, argc, argv);
59435         }
59436         {
59437           if (PyFile_Check(argv[2])) /* check for undef */
59438           _v = PyFile_AsFile(argv[2]) ? 1 : 0;
59439         }
59440         if (_v) {
59441           return _wrap_subopt__SWIG_1(self, argc, argv);
59442         }
59443       }
59444     }
59445   }
59446   if ((argc >= 3) && (argc <= 4)) {
59447     int _v;
59448     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
59449     _v = SWIG_CheckState(res);
59450     if (_v) {
59451       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
59452       _v = SWIG_CheckState(res);
59453       if (_v) {
59454         {
59455           int res = SWIG_AsVal_int(argv[2], NULL);
59456           _v = SWIG_CheckState(res);
59457         }
59458         if (_v) {
59459           if (argc <= 3) {
59460             return _wrap_subopt__SWIG_0(self, argc, argv);
59461           }
59462           {
59463             if (PyFile_Check(argv[3])) /* check for undef */
59464             _v = PyFile_AsFile(argv[3]) ? 1 : 0;
59465           }
59466           if (_v) {
59467             return _wrap_subopt__SWIG_0(self, argc, argv);
59468           }
59469         }
59470       }
59471     }
59472   }
59473 
59474 fail:
59475   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'subopt'.\n"
59476     "  Possible C/C++ prototypes are:\n"
59477     "    my_subopt(char *,char *,int,FILE *)\n"
59478     "    my_subopt(char *,int,FILE *)\n");
59479   return 0;
59480 }
59481 
59482 
Swig_var_print_energy_set(PyObject * _val)59483 SWIGINTERN int Swig_var_print_energy_set(PyObject *_val) {
59484   {
59485     double val;
59486     int res = SWIG_AsVal_double(_val, &val);
59487     if (!SWIG_IsOK(res)) {
59488       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""print_energy""' of type '""double""'");
59489     }
59490     print_energy = static_cast< double >(val);
59491   }
59492   return 0;
59493 fail:
59494   return 1;
59495 }
59496 
59497 
Swig_var_print_energy_get(void)59498 SWIGINTERN PyObject *Swig_var_print_energy_get(void) {
59499   PyObject *pyobj = 0;
59500 
59501   pyobj = SWIG_From_double(static_cast< double >(print_energy));
59502   return pyobj;
59503 }
59504 
59505 
Swig_var_density_of_states_set(PyObject * _val)59506 SWIGINTERN int Swig_var_density_of_states_set(PyObject *_val) {
59507   {
59508     int *inp = 0;
59509     int res = SWIG_ConvertPtr(_val, SWIG_as_voidptrptr(&inp), SWIGTYPE_p_int,  0 );
59510     if (!SWIG_IsOK(res)) {
59511       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""density_of_states""' of type '""int [1000+1]""'");
59512     } else if (inp) {
59513       size_t ii = 0;
59514       for (; ii < (size_t)1000+1; ++ii) *(int *)&density_of_states[ii] = *((int *)inp + ii);
59515     } else {
59516       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""density_of_states""' of type '""int [1000+1]""'");
59517     }
59518   }
59519   return 0;
59520 fail:
59521   return 1;
59522 }
59523 
59524 
Swig_var_density_of_states_get(void)59525 SWIGINTERN PyObject *Swig_var_density_of_states_get(void) {
59526   PyObject *pyobj = 0;
59527 
59528   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(density_of_states), SWIGTYPE_p_int,  0 );
59529   return pyobj;
59530 }
59531 
59532 
_wrap_zukersubopt(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)59533 SWIGINTERN PyObject *_wrap_zukersubopt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
59534   PyObject *resultobj = 0;
59535   char *arg1 = (char *) 0 ;
59536   int res1 ;
59537   char *buf1 = 0 ;
59538   int alloc1 = 0 ;
59539   PyObject * obj0 = 0 ;
59540   char * kwnames[] = {
59541     (char *)"string",  NULL
59542   };
59543   SOLUTION *result = 0 ;
59544 
59545   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:zukersubopt", kwnames, &obj0)) SWIG_fail;
59546   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
59547   if (!SWIG_IsOK(res1)) {
59548     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "zukersubopt" "', argument " "1"" of type '" "char const *""'");
59549   }
59550   arg1 = reinterpret_cast< char * >(buf1);
59551   {
59552     try {
59553       result = (SOLUTION *)zukersubopt((char const *)arg1);
59554     } catch (const std::exception& e) {
59555       SWIG_exception(SWIG_RuntimeError, e.what());
59556     }
59557   }
59558   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SOLUTION, 0 |  0 );
59559   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59560   return resultobj;
59561 fail:
59562   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59563   return NULL;
59564 }
59565 
59566 
_wrap_inverse_fold(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)59567 SWIGINTERN PyObject *_wrap_inverse_fold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
59568   PyObject *resultobj = 0;
59569   char *arg1 = (char *) 0 ;
59570   char *arg2 = (char *) 0 ;
59571   float *arg3 = (float *) 0 ;
59572   int res1 ;
59573   char *buf1 = 0 ;
59574   int alloc1 = 0 ;
59575   int res2 ;
59576   char *buf2 = 0 ;
59577   int alloc2 = 0 ;
59578   float temp3 ;
59579   int res3 = SWIG_TMPOBJ ;
59580   PyObject * obj0 = 0 ;
59581   PyObject * obj1 = 0 ;
59582   char * kwnames[] = {
59583     (char *)"start",  (char *)"target",  NULL
59584   };
59585   char *result = 0 ;
59586 
59587   arg3 = &temp3;
59588   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:inverse_fold", kwnames, &obj0, &obj1)) SWIG_fail;
59589   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
59590   if (!SWIG_IsOK(res1)) {
59591     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "inverse_fold" "', argument " "1"" of type '" "char *""'");
59592   }
59593   arg1 = reinterpret_cast< char * >(buf1);
59594   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
59595   if (!SWIG_IsOK(res2)) {
59596     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "inverse_fold" "', argument " "2"" of type '" "char const *""'");
59597   }
59598   arg2 = reinterpret_cast< char * >(buf2);
59599   {
59600     try {
59601       result = (char *)my_inverse_fold(arg1,(char const *)arg2,arg3);
59602     } catch (const std::exception& e) {
59603       SWIG_exception(SWIG_RuntimeError, e.what());
59604     }
59605   }
59606   resultobj = SWIG_FromCharPtr((const char *)result);
59607   if (SWIG_IsTmpObj(res3)) {
59608     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg3)));
59609   } else {
59610     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
59611     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_float, new_flags));
59612   }
59613   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59614   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
59615   delete[] result;
59616   return resultobj;
59617 fail:
59618   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59619   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
59620   return NULL;
59621 }
59622 
59623 
_wrap_inverse_pf_fold(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)59624 SWIGINTERN PyObject *_wrap_inverse_pf_fold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
59625   PyObject *resultobj = 0;
59626   char *arg1 = (char *) 0 ;
59627   char *arg2 = (char *) 0 ;
59628   float *arg3 = (float *) 0 ;
59629   int res1 ;
59630   char *buf1 = 0 ;
59631   int alloc1 = 0 ;
59632   int res2 ;
59633   char *buf2 = 0 ;
59634   int alloc2 = 0 ;
59635   float temp3 ;
59636   int res3 = SWIG_TMPOBJ ;
59637   PyObject * obj0 = 0 ;
59638   PyObject * obj1 = 0 ;
59639   char * kwnames[] = {
59640     (char *)"start",  (char *)"target",  NULL
59641   };
59642   char *result = 0 ;
59643 
59644   arg3 = &temp3;
59645   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:inverse_pf_fold", kwnames, &obj0, &obj1)) SWIG_fail;
59646   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
59647   if (!SWIG_IsOK(res1)) {
59648     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "inverse_pf_fold" "', argument " "1"" of type '" "char *""'");
59649   }
59650   arg1 = reinterpret_cast< char * >(buf1);
59651   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
59652   if (!SWIG_IsOK(res2)) {
59653     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "inverse_pf_fold" "', argument " "2"" of type '" "char const *""'");
59654   }
59655   arg2 = reinterpret_cast< char * >(buf2);
59656   {
59657     try {
59658       result = (char *)my_inverse_pf_fold(arg1,(char const *)arg2,arg3);
59659     } catch (const std::exception& e) {
59660       SWIG_exception(SWIG_RuntimeError, e.what());
59661     }
59662   }
59663   resultobj = SWIG_FromCharPtr((const char *)result);
59664   if (SWIG_IsTmpObj(res3)) {
59665     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg3)));
59666   } else {
59667     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
59668     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_float, new_flags));
59669   }
59670   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59671   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
59672   delete[] result;
59673   return resultobj;
59674 fail:
59675   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59676   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
59677   return NULL;
59678 }
59679 
59680 
Swig_var_symbolset_set(PyObject * _val)59681 SWIGINTERN int Swig_var_symbolset_set(PyObject *_val) {
59682   {
59683     char *cptr = 0; size_t csize = 0; int alloc = SWIG_NEWOBJ;
59684     int res = SWIG_AsCharPtrAndSize(_val, &cptr, &csize, &alloc);
59685     if (!SWIG_IsOK(res)) {
59686       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""symbolset""' of type '""char *""'");
59687     }
59688     if (symbolset) delete[] symbolset;
59689     if (alloc == SWIG_NEWOBJ) {
59690       symbolset = cptr;
59691     } else {
59692       symbolset = csize ? (char *)reinterpret_cast< char* >(memcpy(new char[csize], cptr, sizeof(char)*(csize))) : 0;
59693     }
59694   }
59695   return 0;
59696 fail:
59697   return 1;
59698 }
59699 
59700 
Swig_var_symbolset_get(void)59701 SWIGINTERN PyObject *Swig_var_symbolset_get(void) {
59702   PyObject *pyobj = 0;
59703 
59704   pyobj = SWIG_FromCharPtr(symbolset);
59705   return pyobj;
59706 }
59707 
59708 
Swig_var_final_cost_set(PyObject * _val)59709 SWIGINTERN int Swig_var_final_cost_set(PyObject *_val) {
59710   {
59711     float val;
59712     int res = SWIG_AsVal_float(_val, &val);
59713     if (!SWIG_IsOK(res)) {
59714       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""final_cost""' of type '""float""'");
59715     }
59716     final_cost = static_cast< float >(val);
59717   }
59718   return 0;
59719 fail:
59720   return 1;
59721 }
59722 
59723 
Swig_var_final_cost_get(void)59724 SWIGINTERN PyObject *Swig_var_final_cost_get(void) {
59725   PyObject *pyobj = 0;
59726 
59727   pyobj = SWIG_From_float(static_cast< float >(final_cost));
59728   return pyobj;
59729 }
59730 
59731 
Swig_var_give_up_set(PyObject * _val)59732 SWIGINTERN int Swig_var_give_up_set(PyObject *_val) {
59733   {
59734     int val;
59735     int res = SWIG_AsVal_int(_val, &val);
59736     if (!SWIG_IsOK(res)) {
59737       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""give_up""' of type '""int""'");
59738     }
59739     give_up = static_cast< int >(val);
59740   }
59741   return 0;
59742 fail:
59743   return 1;
59744 }
59745 
59746 
Swig_var_give_up_get(void)59747 SWIGINTERN PyObject *Swig_var_give_up_get(void) {
59748   PyObject *pyobj = 0;
59749 
59750   pyobj = SWIG_From_int(static_cast< int >(give_up));
59751   return pyobj;
59752 }
59753 
59754 
Swig_var_inv_verbose_set(PyObject * _val)59755 SWIGINTERN int Swig_var_inv_verbose_set(PyObject *_val) {
59756   {
59757     int val;
59758     int res = SWIG_AsVal_int(_val, &val);
59759     if (!SWIG_IsOK(res)) {
59760       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""inv_verbose""' of type '""int""'");
59761     }
59762     inv_verbose = static_cast< int >(val);
59763   }
59764   return 0;
59765 fail:
59766   return 1;
59767 }
59768 
59769 
Swig_var_inv_verbose_get(void)59770 SWIGINTERN PyObject *Swig_var_inv_verbose_get(void) {
59771   PyObject *pyobj = 0;
59772 
59773   pyobj = SWIG_From_int(static_cast< int >(inv_verbose));
59774   return pyobj;
59775 }
59776 
59777 
_wrap_b2HIT(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)59778 SWIGINTERN PyObject *_wrap_b2HIT(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
59779   PyObject *resultobj = 0;
59780   char *arg1 = (char *) 0 ;
59781   int res1 ;
59782   char *buf1 = 0 ;
59783   int alloc1 = 0 ;
59784   PyObject * obj0 = 0 ;
59785   char * kwnames[] = {
59786     (char *)"structure",  NULL
59787   };
59788   char *result = 0 ;
59789 
59790   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:b2HIT", kwnames, &obj0)) SWIG_fail;
59791   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
59792   if (!SWIG_IsOK(res1)) {
59793     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "b2HIT" "', argument " "1"" of type '" "char *""'");
59794   }
59795   arg1 = reinterpret_cast< char * >(buf1);
59796   {
59797     try {
59798       result = (char *)b2HIT(arg1);
59799     } catch (const std::exception& e) {
59800       SWIG_exception(SWIG_RuntimeError, e.what());
59801     }
59802   }
59803   resultobj = SWIG_FromCharPtr((const char *)result);
59804   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59805   delete[] result;
59806   return resultobj;
59807 fail:
59808   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59809   return NULL;
59810 }
59811 
59812 
_wrap_b2C(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)59813 SWIGINTERN PyObject *_wrap_b2C(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
59814   PyObject *resultobj = 0;
59815   char *arg1 = (char *) 0 ;
59816   int res1 ;
59817   char *buf1 = 0 ;
59818   int alloc1 = 0 ;
59819   PyObject * obj0 = 0 ;
59820   char * kwnames[] = {
59821     (char *)"structure",  NULL
59822   };
59823   char *result = 0 ;
59824 
59825   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:b2C", kwnames, &obj0)) SWIG_fail;
59826   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
59827   if (!SWIG_IsOK(res1)) {
59828     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "b2C" "', argument " "1"" of type '" "char *""'");
59829   }
59830   arg1 = reinterpret_cast< char * >(buf1);
59831   {
59832     try {
59833       result = (char *)b2C(arg1);
59834     } catch (const std::exception& e) {
59835       SWIG_exception(SWIG_RuntimeError, e.what());
59836     }
59837   }
59838   resultobj = SWIG_FromCharPtr((const char *)result);
59839   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59840   delete[] result;
59841   return resultobj;
59842 fail:
59843   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59844   return NULL;
59845 }
59846 
59847 
_wrap_b2Shapiro(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)59848 SWIGINTERN PyObject *_wrap_b2Shapiro(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
59849   PyObject *resultobj = 0;
59850   char *arg1 = (char *) 0 ;
59851   int res1 ;
59852   char *buf1 = 0 ;
59853   int alloc1 = 0 ;
59854   PyObject * obj0 = 0 ;
59855   char * kwnames[] = {
59856     (char *)"structure",  NULL
59857   };
59858   char *result = 0 ;
59859 
59860   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:b2Shapiro", kwnames, &obj0)) SWIG_fail;
59861   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
59862   if (!SWIG_IsOK(res1)) {
59863     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "b2Shapiro" "', argument " "1"" of type '" "char *""'");
59864   }
59865   arg1 = reinterpret_cast< char * >(buf1);
59866   {
59867     try {
59868       result = (char *)b2Shapiro(arg1);
59869     } catch (const std::exception& e) {
59870       SWIG_exception(SWIG_RuntimeError, e.what());
59871     }
59872   }
59873   resultobj = SWIG_FromCharPtr((const char *)result);
59874   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59875   delete[] result;
59876   return resultobj;
59877 fail:
59878   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59879   return NULL;
59880 }
59881 
59882 
_wrap_add_root(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)59883 SWIGINTERN PyObject *_wrap_add_root(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
59884   PyObject *resultobj = 0;
59885   char *arg1 = (char *) 0 ;
59886   int res1 ;
59887   char *buf1 = 0 ;
59888   int alloc1 = 0 ;
59889   PyObject * obj0 = 0 ;
59890   char * kwnames[] = {
59891     (char *)"arg1",  NULL
59892   };
59893   char *result = 0 ;
59894 
59895   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:add_root", kwnames, &obj0)) SWIG_fail;
59896   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
59897   if (!SWIG_IsOK(res1)) {
59898     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "add_root" "', argument " "1"" of type '" "char *""'");
59899   }
59900   arg1 = reinterpret_cast< char * >(buf1);
59901   {
59902     try {
59903       result = (char *)add_root(arg1);
59904     } catch (const std::exception& e) {
59905       SWIG_exception(SWIG_RuntimeError, e.what());
59906     }
59907   }
59908   resultobj = SWIG_FromCharPtr((const char *)result);
59909   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59910   delete[] result;
59911   return resultobj;
59912 fail:
59913   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59914   return NULL;
59915 }
59916 
59917 
_wrap_expand_Shapiro(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)59918 SWIGINTERN PyObject *_wrap_expand_Shapiro(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
59919   PyObject *resultobj = 0;
59920   char *arg1 = (char *) 0 ;
59921   int res1 ;
59922   char *buf1 = 0 ;
59923   int alloc1 = 0 ;
59924   PyObject * obj0 = 0 ;
59925   char * kwnames[] = {
59926     (char *)"coarse",  NULL
59927   };
59928   char *result = 0 ;
59929 
59930   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:expand_Shapiro", kwnames, &obj0)) SWIG_fail;
59931   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
59932   if (!SWIG_IsOK(res1)) {
59933     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "expand_Shapiro" "', argument " "1"" of type '" "char *""'");
59934   }
59935   arg1 = reinterpret_cast< char * >(buf1);
59936   {
59937     try {
59938       result = (char *)expand_Shapiro(arg1);
59939     } catch (const std::exception& e) {
59940       SWIG_exception(SWIG_RuntimeError, e.what());
59941     }
59942   }
59943   resultobj = SWIG_FromCharPtr((const char *)result);
59944   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59945   delete[] result;
59946   return resultobj;
59947 fail:
59948   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59949   return NULL;
59950 }
59951 
59952 
_wrap_expand_Full(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)59953 SWIGINTERN PyObject *_wrap_expand_Full(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
59954   PyObject *resultobj = 0;
59955   char *arg1 = (char *) 0 ;
59956   int res1 ;
59957   char *buf1 = 0 ;
59958   int alloc1 = 0 ;
59959   PyObject * obj0 = 0 ;
59960   char * kwnames[] = {
59961     (char *)"structure",  NULL
59962   };
59963   char *result = 0 ;
59964 
59965   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:expand_Full", kwnames, &obj0)) SWIG_fail;
59966   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
59967   if (!SWIG_IsOK(res1)) {
59968     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "expand_Full" "', argument " "1"" of type '" "char *""'");
59969   }
59970   arg1 = reinterpret_cast< char * >(buf1);
59971   {
59972     try {
59973       result = (char *)expand_Full(arg1);
59974     } catch (const std::exception& e) {
59975       SWIG_exception(SWIG_RuntimeError, e.what());
59976     }
59977   }
59978   resultobj = SWIG_FromCharPtr((const char *)result);
59979   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59980   delete[] result;
59981   return resultobj;
59982 fail:
59983   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
59984   return NULL;
59985 }
59986 
59987 
_wrap_unexpand_Full(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)59988 SWIGINTERN PyObject *_wrap_unexpand_Full(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
59989   PyObject *resultobj = 0;
59990   char *arg1 = (char *) 0 ;
59991   int res1 ;
59992   char *buf1 = 0 ;
59993   int alloc1 = 0 ;
59994   PyObject * obj0 = 0 ;
59995   char * kwnames[] = {
59996     (char *)"ffull",  NULL
59997   };
59998   char *result = 0 ;
59999 
60000   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:unexpand_Full", kwnames, &obj0)) SWIG_fail;
60001   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
60002   if (!SWIG_IsOK(res1)) {
60003     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "unexpand_Full" "', argument " "1"" of type '" "char *""'");
60004   }
60005   arg1 = reinterpret_cast< char * >(buf1);
60006   {
60007     try {
60008       result = (char *)unexpand_Full(arg1);
60009     } catch (const std::exception& e) {
60010       SWIG_exception(SWIG_RuntimeError, e.what());
60011     }
60012   }
60013   resultobj = SWIG_FromCharPtr((const char *)result);
60014   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
60015   delete[] result;
60016   return resultobj;
60017 fail:
60018   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
60019   return NULL;
60020 }
60021 
60022 
_wrap_unweight(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)60023 SWIGINTERN PyObject *_wrap_unweight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
60024   PyObject *resultobj = 0;
60025   char *arg1 = (char *) 0 ;
60026   int res1 ;
60027   char *buf1 = 0 ;
60028   int alloc1 = 0 ;
60029   PyObject * obj0 = 0 ;
60030   char * kwnames[] = {
60031     (char *)"wcoarse",  NULL
60032   };
60033   char *result = 0 ;
60034 
60035   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:unweight", kwnames, &obj0)) SWIG_fail;
60036   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
60037   if (!SWIG_IsOK(res1)) {
60038     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "unweight" "', argument " "1"" of type '" "char *""'");
60039   }
60040   arg1 = reinterpret_cast< char * >(buf1);
60041   {
60042     try {
60043       result = (char *)unweight(arg1);
60044     } catch (const std::exception& e) {
60045       SWIG_exception(SWIG_RuntimeError, e.what());
60046     }
60047   }
60048   resultobj = SWIG_FromCharPtr((const char *)result);
60049   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
60050   delete[] result;
60051   return resultobj;
60052 fail:
60053   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
60054   return NULL;
60055 }
60056 
60057 
_wrap_unexpand_aligned_F(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)60058 SWIGINTERN PyObject *_wrap_unexpand_aligned_F(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
60059   PyObject *resultobj = 0;
60060   char **arg1 ;
60061   void *argp1 = 0 ;
60062   int res1 = 0 ;
60063   PyObject * obj0 = 0 ;
60064   char * kwnames[] = {
60065     (char *)"align",  NULL
60066   };
60067 
60068   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:unexpand_aligned_F", kwnames, &obj0)) SWIG_fail;
60069   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_p_char, 0 |  0 );
60070   if (!SWIG_IsOK(res1)) {
60071     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "unexpand_aligned_F" "', argument " "1"" of type '" "char *[2]""'");
60072   }
60073   arg1 = reinterpret_cast< char ** >(argp1);
60074   {
60075     try {
60076       unexpand_aligned_F(arg1);
60077     } catch (const std::exception& e) {
60078       SWIG_exception(SWIG_RuntimeError, e.what());
60079     }
60080   }
60081   resultobj = SWIG_Py_Void();
60082   return resultobj;
60083 fail:
60084   return NULL;
60085 }
60086 
60087 
_wrap_parse_structure(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)60088 SWIGINTERN PyObject *_wrap_parse_structure(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
60089   PyObject *resultobj = 0;
60090   char *arg1 = (char *) 0 ;
60091   int res1 ;
60092   char *buf1 = 0 ;
60093   int alloc1 = 0 ;
60094   PyObject * obj0 = 0 ;
60095   char * kwnames[] = {
60096     (char *)"structure",  NULL
60097   };
60098 
60099   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:parse_structure", kwnames, &obj0)) SWIG_fail;
60100   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
60101   if (!SWIG_IsOK(res1)) {
60102     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "parse_structure" "', argument " "1"" of type '" "char *""'");
60103   }
60104   arg1 = reinterpret_cast< char * >(buf1);
60105   {
60106     try {
60107       parse_structure(arg1);
60108     } catch (const std::exception& e) {
60109       SWIG_exception(SWIG_RuntimeError, e.what());
60110     }
60111   }
60112   resultobj = SWIG_Py_Void();
60113   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
60114   return resultobj;
60115 fail:
60116   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
60117   return NULL;
60118 }
60119 
60120 
Swig_var_loop_size_set(PyObject * _val)60121 SWIGINTERN int Swig_var_loop_size_set(PyObject *_val) {
60122   {
60123     int *inp = 0;
60124     int res = SWIG_ConvertPtr(_val, SWIG_as_voidptrptr(&inp), SWIGTYPE_p_int,  0 );
60125     if (!SWIG_IsOK(res)) {
60126       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""loop_size""' of type '""int [1000]""'");
60127     } else if (inp) {
60128       size_t ii = 0;
60129       for (; ii < (size_t)1000; ++ii) *(int *)&loop_size[ii] = *((int *)inp + ii);
60130     } else {
60131       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""loop_size""' of type '""int [1000]""'");
60132     }
60133   }
60134   return 0;
60135 fail:
60136   return 1;
60137 }
60138 
60139 
Swig_var_loop_size_get(void)60140 SWIGINTERN PyObject *Swig_var_loop_size_get(void) {
60141   PyObject *pyobj = 0;
60142 
60143   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(loop_size), SWIGTYPE_p_int,  0 );
60144   return pyobj;
60145 }
60146 
60147 
Swig_var_helix_size_set(PyObject * _val)60148 SWIGINTERN int Swig_var_helix_size_set(PyObject *_val) {
60149   {
60150     int *inp = 0;
60151     int res = SWIG_ConvertPtr(_val, SWIG_as_voidptrptr(&inp), SWIGTYPE_p_int,  0 );
60152     if (!SWIG_IsOK(res)) {
60153       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""helix_size""' of type '""int [1000]""'");
60154     } else if (inp) {
60155       size_t ii = 0;
60156       for (; ii < (size_t)1000; ++ii) *(int *)&helix_size[ii] = *((int *)inp + ii);
60157     } else {
60158       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""helix_size""' of type '""int [1000]""'");
60159     }
60160   }
60161   return 0;
60162 fail:
60163   return 1;
60164 }
60165 
60166 
Swig_var_helix_size_get(void)60167 SWIGINTERN PyObject *Swig_var_helix_size_get(void) {
60168   PyObject *pyobj = 0;
60169 
60170   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(helix_size), SWIGTYPE_p_int,  0 );
60171   return pyobj;
60172 }
60173 
60174 
Swig_var_loop_degree_set(PyObject * _val)60175 SWIGINTERN int Swig_var_loop_degree_set(PyObject *_val) {
60176   {
60177     int *inp = 0;
60178     int res = SWIG_ConvertPtr(_val, SWIG_as_voidptrptr(&inp), SWIGTYPE_p_int,  0 );
60179     if (!SWIG_IsOK(res)) {
60180       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""loop_degree""' of type '""int [1000]""'");
60181     } else if (inp) {
60182       size_t ii = 0;
60183       for (; ii < (size_t)1000; ++ii) *(int *)&loop_degree[ii] = *((int *)inp + ii);
60184     } else {
60185       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""loop_degree""' of type '""int [1000]""'");
60186     }
60187   }
60188   return 0;
60189 fail:
60190   return 1;
60191 }
60192 
60193 
Swig_var_loop_degree_get(void)60194 SWIGINTERN PyObject *Swig_var_loop_degree_get(void) {
60195   PyObject *pyobj = 0;
60196 
60197   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(loop_degree), SWIGTYPE_p_int,  0 );
60198   return pyobj;
60199 }
60200 
60201 
Swig_var_loops_set(PyObject * _val)60202 SWIGINTERN int Swig_var_loops_set(PyObject *_val) {
60203   {
60204     int val;
60205     int res = SWIG_AsVal_int(_val, &val);
60206     if (!SWIG_IsOK(res)) {
60207       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""loops""' of type '""int""'");
60208     }
60209     loops = static_cast< int >(val);
60210   }
60211   return 0;
60212 fail:
60213   return 1;
60214 }
60215 
60216 
Swig_var_loops_get(void)60217 SWIGINTERN PyObject *Swig_var_loops_get(void) {
60218   PyObject *pyobj = 0;
60219 
60220   pyobj = SWIG_From_int(static_cast< int >(loops));
60221   return pyobj;
60222 }
60223 
60224 
Swig_var_unpaired_set(PyObject * _val)60225 SWIGINTERN int Swig_var_unpaired_set(PyObject *_val) {
60226   {
60227     int val;
60228     int res = SWIG_AsVal_int(_val, &val);
60229     if (!SWIG_IsOK(res)) {
60230       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""unpaired""' of type '""int""'");
60231     }
60232     unpaired = static_cast< int >(val);
60233   }
60234   return 0;
60235 fail:
60236   return 1;
60237 }
60238 
60239 
Swig_var_unpaired_get(void)60240 SWIGINTERN PyObject *Swig_var_unpaired_get(void) {
60241   PyObject *pyobj = 0;
60242 
60243   pyobj = SWIG_From_int(static_cast< int >(unpaired));
60244   return pyobj;
60245 }
60246 
60247 
Swig_var_pairs_set(PyObject * _val)60248 SWIGINTERN int Swig_var_pairs_set(PyObject *_val) {
60249   {
60250     int val;
60251     int res = SWIG_AsVal_int(_val, &val);
60252     if (!SWIG_IsOK(res)) {
60253       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""pairs""' of type '""int""'");
60254     }
60255     pairs = static_cast< int >(val);
60256   }
60257   return 0;
60258 fail:
60259   return 1;
60260 }
60261 
60262 
Swig_var_pairs_get(void)60263 SWIGINTERN PyObject *Swig_var_pairs_get(void) {
60264   PyObject *pyobj = 0;
60265 
60266   pyobj = SWIG_From_int(static_cast< int >(pairs));
60267   return pyobj;
60268 }
60269 
60270 
_wrap_make_tree(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)60271 SWIGINTERN PyObject *_wrap_make_tree(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
60272   PyObject *resultobj = 0;
60273   char *arg1 = (char *) 0 ;
60274   int res1 ;
60275   char *buf1 = 0 ;
60276   int alloc1 = 0 ;
60277   PyObject * obj0 = 0 ;
60278   char * kwnames[] = {
60279     (char *)"struc",  NULL
60280   };
60281   Tree *result = 0 ;
60282 
60283   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:make_tree", kwnames, &obj0)) SWIG_fail;
60284   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
60285   if (!SWIG_IsOK(res1)) {
60286     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "make_tree" "', argument " "1"" of type '" "char *""'");
60287   }
60288   arg1 = reinterpret_cast< char * >(buf1);
60289   {
60290     try {
60291       result = (Tree *)make_tree(arg1);
60292     } catch (const std::exception& e) {
60293       SWIG_exception(SWIG_RuntimeError, e.what());
60294     }
60295   }
60296   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Tree, 0 |  0 );
60297   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
60298   return resultobj;
60299 fail:
60300   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
60301   return NULL;
60302 }
60303 
60304 
_wrap_tree_edit_distance(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)60305 SWIGINTERN PyObject *_wrap_tree_edit_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
60306   PyObject *resultobj = 0;
60307   Tree *arg1 = (Tree *) 0 ;
60308   Tree *arg2 = (Tree *) 0 ;
60309   void *argp1 = 0 ;
60310   int res1 = 0 ;
60311   void *argp2 = 0 ;
60312   int res2 = 0 ;
60313   PyObject * obj0 = 0 ;
60314   PyObject * obj1 = 0 ;
60315   char * kwnames[] = {
60316     (char *)"T1",  (char *)"T2",  NULL
60317   };
60318   float result;
60319 
60320   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:tree_edit_distance", kwnames, &obj0, &obj1)) SWIG_fail;
60321   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tree, 0 |  0 );
60322   if (!SWIG_IsOK(res1)) {
60323     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tree_edit_distance" "', argument " "1"" of type '" "Tree *""'");
60324   }
60325   arg1 = reinterpret_cast< Tree * >(argp1);
60326   res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_Tree, 0 |  0 );
60327   if (!SWIG_IsOK(res2)) {
60328     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tree_edit_distance" "', argument " "2"" of type '" "Tree *""'");
60329   }
60330   arg2 = reinterpret_cast< Tree * >(argp2);
60331   {
60332     try {
60333       result = (float)tree_edit_distance(arg1,arg2);
60334     } catch (const std::exception& e) {
60335       SWIG_exception(SWIG_RuntimeError, e.what());
60336     }
60337   }
60338   resultobj = SWIG_From_float(static_cast< float >(result));
60339   return resultobj;
60340 fail:
60341   return NULL;
60342 }
60343 
60344 
_wrap_print_tree(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)60345 SWIGINTERN PyObject *_wrap_print_tree(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
60346   PyObject *resultobj = 0;
60347   Tree *arg1 = (Tree *) 0 ;
60348   void *argp1 = 0 ;
60349   int res1 = 0 ;
60350   PyObject * obj0 = 0 ;
60351   char * kwnames[] = {
60352     (char *)"t",  NULL
60353   };
60354 
60355   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:print_tree", kwnames, &obj0)) SWIG_fail;
60356   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tree, 0 |  0 );
60357   if (!SWIG_IsOK(res1)) {
60358     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "print_tree" "', argument " "1"" of type '" "Tree *""'");
60359   }
60360   arg1 = reinterpret_cast< Tree * >(argp1);
60361   {
60362     try {
60363       print_tree(arg1);
60364     } catch (const std::exception& e) {
60365       SWIG_exception(SWIG_RuntimeError, e.what());
60366     }
60367   }
60368   resultobj = SWIG_Py_Void();
60369   return resultobj;
60370 fail:
60371   return NULL;
60372 }
60373 
60374 
_wrap_free_tree(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)60375 SWIGINTERN PyObject *_wrap_free_tree(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
60376   PyObject *resultobj = 0;
60377   Tree *arg1 = (Tree *) 0 ;
60378   void *argp1 = 0 ;
60379   int res1 = 0 ;
60380   PyObject * obj0 = 0 ;
60381   char * kwnames[] = {
60382     (char *)"t",  NULL
60383   };
60384 
60385   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:free_tree", kwnames, &obj0)) SWIG_fail;
60386   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tree, 0 |  0 );
60387   if (!SWIG_IsOK(res1)) {
60388     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "free_tree" "', argument " "1"" of type '" "Tree *""'");
60389   }
60390   arg1 = reinterpret_cast< Tree * >(argp1);
60391   {
60392     try {
60393       free_tree(arg1);
60394     } catch (const std::exception& e) {
60395       SWIG_exception(SWIG_RuntimeError, e.what());
60396     }
60397   }
60398   resultobj = SWIG_Py_Void();
60399   return resultobj;
60400 fail:
60401   return NULL;
60402 }
60403 
60404 
_wrap_Make_swString(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)60405 SWIGINTERN PyObject *_wrap_Make_swString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
60406   PyObject *resultobj = 0;
60407   char *arg1 = (char *) 0 ;
60408   int res1 ;
60409   char *buf1 = 0 ;
60410   int alloc1 = 0 ;
60411   PyObject * obj0 = 0 ;
60412   char * kwnames[] = {
60413     (char *)"string",  NULL
60414   };
60415   swString *result = 0 ;
60416 
60417   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:Make_swString", kwnames, &obj0)) SWIG_fail;
60418   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
60419   if (!SWIG_IsOK(res1)) {
60420     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Make_swString" "', argument " "1"" of type '" "char *""'");
60421   }
60422   arg1 = reinterpret_cast< char * >(buf1);
60423   {
60424     try {
60425       result = (swString *)Make_swString(arg1);
60426     } catch (const std::exception& e) {
60427       SWIG_exception(SWIG_RuntimeError, e.what());
60428     }
60429   }
60430   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swString, 0 |  0 );
60431   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
60432   return resultobj;
60433 fail:
60434   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
60435   return NULL;
60436 }
60437 
60438 
_wrap_string_edit_distance(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)60439 SWIGINTERN PyObject *_wrap_string_edit_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
60440   PyObject *resultobj = 0;
60441   swString *arg1 = (swString *) 0 ;
60442   swString *arg2 = (swString *) 0 ;
60443   void *argp1 = 0 ;
60444   int res1 = 0 ;
60445   void *argp2 = 0 ;
60446   int res2 = 0 ;
60447   PyObject * obj0 = 0 ;
60448   PyObject * obj1 = 0 ;
60449   char * kwnames[] = {
60450     (char *)"T1",  (char *)"T2",  NULL
60451   };
60452   float result;
60453 
60454   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:string_edit_distance", kwnames, &obj0, &obj1)) SWIG_fail;
60455   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swString, 0 |  0 );
60456   if (!SWIG_IsOK(res1)) {
60457     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "string_edit_distance" "', argument " "1"" of type '" "swString *""'");
60458   }
60459   arg1 = reinterpret_cast< swString * >(argp1);
60460   res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_swString, 0 |  0 );
60461   if (!SWIG_IsOK(res2)) {
60462     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "string_edit_distance" "', argument " "2"" of type '" "swString *""'");
60463   }
60464   arg2 = reinterpret_cast< swString * >(argp2);
60465   {
60466     try {
60467       result = (float)string_edit_distance(arg1,arg2);
60468     } catch (const std::exception& e) {
60469       SWIG_exception(SWIG_RuntimeError, e.what());
60470     }
60471   }
60472   resultobj = SWIG_From_float(static_cast< float >(result));
60473   return resultobj;
60474 fail:
60475   return NULL;
60476 }
60477 
60478 
_wrap_profile_edit_distance(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)60479 SWIGINTERN PyObject *_wrap_profile_edit_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
60480   PyObject *resultobj = 0;
60481   float *arg1 = (float *) 0 ;
60482   float *arg2 = (float *) 0 ;
60483   void *argp1 = 0 ;
60484   int res1 = 0 ;
60485   void *argp2 = 0 ;
60486   int res2 = 0 ;
60487   PyObject * obj0 = 0 ;
60488   PyObject * obj1 = 0 ;
60489   char * kwnames[] = {
60490     (char *)"T1",  (char *)"T2",  NULL
60491   };
60492   float result;
60493 
60494   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:profile_edit_distance", kwnames, &obj0, &obj1)) SWIG_fail;
60495   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 |  0 );
60496   if (!SWIG_IsOK(res1)) {
60497     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "profile_edit_distance" "', argument " "1"" of type '" "float const *""'");
60498   }
60499   arg1 = reinterpret_cast< float * >(argp1);
60500   res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 |  0 );
60501   if (!SWIG_IsOK(res2)) {
60502     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "profile_edit_distance" "', argument " "2"" of type '" "float const *""'");
60503   }
60504   arg2 = reinterpret_cast< float * >(argp2);
60505   {
60506     try {
60507       result = (float)profile_edit_distance((float const *)arg1,(float const *)arg2);
60508     } catch (const std::exception& e) {
60509       SWIG_exception(SWIG_RuntimeError, e.what());
60510     }
60511   }
60512   resultobj = SWIG_From_float(static_cast< float >(result));
60513   return resultobj;
60514 fail:
60515   return NULL;
60516 }
60517 
60518 
_wrap_Make_bp_profile_bppm(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)60519 SWIGINTERN PyObject *_wrap_Make_bp_profile_bppm(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
60520   PyObject *resultobj = 0;
60521   FLT_OR_DBL *arg1 = (FLT_OR_DBL *) 0 ;
60522   int arg2 ;
60523   void *argp1 = 0 ;
60524   int res1 = 0 ;
60525   int val2 ;
60526   int ecode2 = 0 ;
60527   PyObject * obj0 = 0 ;
60528   PyObject * obj1 = 0 ;
60529   char * kwnames[] = {
60530     (char *)"bppm",  (char *)"length",  NULL
60531   };
60532   float *result = 0 ;
60533 
60534   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:Make_bp_profile_bppm", kwnames, &obj0, &obj1)) SWIG_fail;
60535   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_double, 0 |  0 );
60536   if (!SWIG_IsOK(res1)) {
60537     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Make_bp_profile_bppm" "', argument " "1"" of type '" "FLT_OR_DBL *""'");
60538   }
60539   arg1 = reinterpret_cast< FLT_OR_DBL * >(argp1);
60540   ecode2 = SWIG_AsVal_int(obj1, &val2);
60541   if (!SWIG_IsOK(ecode2)) {
60542     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Make_bp_profile_bppm" "', argument " "2"" of type '" "int""'");
60543   }
60544   arg2 = static_cast< int >(val2);
60545   {
60546     try {
60547       result = (float *)Make_bp_profile_bppm(arg1,arg2);
60548     } catch (const std::exception& e) {
60549       SWIG_exception(SWIG_RuntimeError, e.what());
60550     }
60551   }
60552   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 |  0 );
60553   return resultobj;
60554 fail:
60555   return NULL;
60556 }
60557 
60558 
_wrap_print_bppm(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)60559 SWIGINTERN PyObject *_wrap_print_bppm(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
60560   PyObject *resultobj = 0;
60561   float *arg1 = (float *) 0 ;
60562   void *argp1 = 0 ;
60563   int res1 = 0 ;
60564   PyObject * obj0 = 0 ;
60565   char * kwnames[] = {
60566     (char *)"T",  NULL
60567   };
60568 
60569   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:print_bppm", kwnames, &obj0)) SWIG_fail;
60570   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 |  0 );
60571   if (!SWIG_IsOK(res1)) {
60572     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "print_bppm" "', argument " "1"" of type '" "float const *""'");
60573   }
60574   arg1 = reinterpret_cast< float * >(argp1);
60575   {
60576     try {
60577       print_bppm((float const *)arg1);
60578     } catch (const std::exception& e) {
60579       SWIG_exception(SWIG_RuntimeError, e.what());
60580     }
60581   }
60582   resultobj = SWIG_Py_Void();
60583   return resultobj;
60584 fail:
60585   return NULL;
60586 }
60587 
60588 
_wrap_free_profile(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)60589 SWIGINTERN PyObject *_wrap_free_profile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
60590   PyObject *resultobj = 0;
60591   float *arg1 = (float *) 0 ;
60592   void *argp1 = 0 ;
60593   int res1 = 0 ;
60594   PyObject * obj0 = 0 ;
60595   char * kwnames[] = {
60596     (char *)"T",  NULL
60597   };
60598 
60599   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:free_profile", kwnames, &obj0)) SWIG_fail;
60600   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 |  0 );
60601   if (!SWIG_IsOK(res1)) {
60602     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "free_profile" "', argument " "1"" of type '" "float *""'");
60603   }
60604   arg1 = reinterpret_cast< float * >(argp1);
60605   {
60606     try {
60607       free_profile(arg1);
60608     } catch (const std::exception& e) {
60609       SWIG_exception(SWIG_RuntimeError, e.what());
60610     }
60611   }
60612   resultobj = SWIG_Py_Void();
60613   return resultobj;
60614 fail:
60615   return NULL;
60616 }
60617 
60618 
_wrap_Make_bp_profile(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)60619 SWIGINTERN PyObject *_wrap_Make_bp_profile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
60620   PyObject *resultobj = 0;
60621   int arg1 ;
60622   int val1 ;
60623   int ecode1 = 0 ;
60624   PyObject * obj0 = 0 ;
60625   char * kwnames[] = {
60626     (char *)"length",  NULL
60627   };
60628   float *result = 0 ;
60629 
60630   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:Make_bp_profile", kwnames, &obj0)) SWIG_fail;
60631   ecode1 = SWIG_AsVal_int(obj0, &val1);
60632   if (!SWIG_IsOK(ecode1)) {
60633     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Make_bp_profile" "', argument " "1"" of type '" "int""'");
60634   }
60635   arg1 = static_cast< int >(val1);
60636   {
60637     try {
60638       result = (float *)Make_bp_profile(arg1);
60639     } catch (const std::exception& e) {
60640       SWIG_exception(SWIG_RuntimeError, e.what());
60641     }
60642   }
60643   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, SWIG_POINTER_OWN |  0 );
60644   return resultobj;
60645 fail:
60646   return NULL;
60647 }
60648 
60649 
Swig_var_edit_backtrack_set(PyObject * _val)60650 SWIGINTERN int Swig_var_edit_backtrack_set(PyObject *_val) {
60651   {
60652     int val;
60653     int res = SWIG_AsVal_int(_val, &val);
60654     if (!SWIG_IsOK(res)) {
60655       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""edit_backtrack""' of type '""int""'");
60656     }
60657     edit_backtrack = static_cast< int >(val);
60658   }
60659   return 0;
60660 fail:
60661   return 1;
60662 }
60663 
60664 
Swig_var_edit_backtrack_get(void)60665 SWIGINTERN PyObject *Swig_var_edit_backtrack_get(void) {
60666   PyObject *pyobj = 0;
60667 
60668   pyobj = SWIG_From_int(static_cast< int >(edit_backtrack));
60669   return pyobj;
60670 }
60671 
60672 
Swig_var_aligned_line_set(PyObject * _val)60673 SWIGINTERN int Swig_var_aligned_line_set(PyObject *_val) {
60674   {
60675     char * *inp = 0;
60676     int res = SWIG_ConvertPtr(_val, SWIG_as_voidptrptr(&inp), SWIGTYPE_p_p_char,  0 );
60677     if (!SWIG_IsOK(res)) {
60678       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""aligned_line""' of type '""char *[2]""'");
60679     } else if (inp) {
60680       size_t ii = 0;
60681       for (; ii < (size_t)2; ++ii) *(char * *)&aligned_line[ii] = *((char * *)inp + ii);
60682     } else {
60683       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""aligned_line""' of type '""char *[2]""'");
60684     }
60685   }
60686   return 0;
60687 fail:
60688   return 1;
60689 }
60690 
60691 
Swig_var_aligned_line_get(void)60692 SWIGINTERN PyObject *Swig_var_aligned_line_get(void) {
60693   PyObject *pyobj = 0;
60694 
60695   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(aligned_line), SWIGTYPE_p_p_char,  0 );
60696   return pyobj;
60697 }
60698 
60699 
Swig_var_cost_matrix_set(PyObject * _val)60700 SWIGINTERN int Swig_var_cost_matrix_set(PyObject *_val) {
60701   {
60702     int val;
60703     int res = SWIG_AsVal_int(_val, &val);
60704     if (!SWIG_IsOK(res)) {
60705       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""cost_matrix""' of type '""int""'");
60706     }
60707     cost_matrix = static_cast< int >(val);
60708   }
60709   return 0;
60710 fail:
60711   return 1;
60712 }
60713 
60714 
Swig_var_cost_matrix_get(void)60715 SWIGINTERN PyObject *Swig_var_cost_matrix_get(void) {
60716   PyObject *pyobj = 0;
60717 
60718   pyobj = SWIG_From_int(static_cast< int >(cost_matrix));
60719   return pyobj;
60720 }
60721 
60722 
_wrap_deref_any(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)60723 SWIGINTERN PyObject *_wrap_deref_any(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
60724   PyObject *resultobj = 0;
60725   void **arg1 = (void **) 0 ;
60726   int arg2 ;
60727   void *argp1 = 0 ;
60728   int res1 = 0 ;
60729   int val2 ;
60730   int ecode2 = 0 ;
60731   PyObject * obj0 = 0 ;
60732   PyObject * obj1 = 0 ;
60733   char * kwnames[] = {
60734     (char *)"ptr",  (char *)"index",  NULL
60735   };
60736   void *result = 0 ;
60737 
60738   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:deref_any", kwnames, &obj0, &obj1)) SWIG_fail;
60739   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_p_void, 0 |  0 );
60740   if (!SWIG_IsOK(res1)) {
60741     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "deref_any" "', argument " "1"" of type '" "void **""'");
60742   }
60743   arg1 = reinterpret_cast< void ** >(argp1);
60744   ecode2 = SWIG_AsVal_int(obj1, &val2);
60745   if (!SWIG_IsOK(ecode2)) {
60746     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "deref_any" "', argument " "2"" of type '" "int""'");
60747   }
60748   arg2 = static_cast< int >(val2);
60749   {
60750     try {
60751       result = (void *)deref_any(arg1,arg2);
60752     } catch (const std::exception& e) {
60753       SWIG_exception(SWIG_RuntimeError, e.what());
60754     }
60755   }
60756   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
60757   return resultobj;
60758 fail:
60759   return NULL;
60760 }
60761 
60762 
_wrap_get_aligned_line(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)60763 SWIGINTERN PyObject *_wrap_get_aligned_line(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
60764   PyObject *resultobj = 0;
60765   int arg1 ;
60766   int val1 ;
60767   int ecode1 = 0 ;
60768   PyObject * obj0 = 0 ;
60769   char * kwnames[] = {
60770     (char *)"arg1",  NULL
60771   };
60772   char *result = 0 ;
60773 
60774   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:get_aligned_line", kwnames, &obj0)) SWIG_fail;
60775   ecode1 = SWIG_AsVal_int(obj0, &val1);
60776   if (!SWIG_IsOK(ecode1)) {
60777     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "get_aligned_line" "', argument " "1"" of type '" "int""'");
60778   }
60779   arg1 = static_cast< int >(val1);
60780   {
60781     try {
60782       result = (char *)get_aligned_line(arg1);
60783     } catch (const std::exception& e) {
60784       SWIG_exception(SWIG_RuntimeError, e.what());
60785     }
60786   }
60787   resultobj = SWIG_FromCharPtr((const char *)result);
60788   return resultobj;
60789 fail:
60790   return NULL;
60791 }
60792 
60793 
_wrap_file_SHAPE_read(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)60794 SWIGINTERN PyObject *_wrap_file_SHAPE_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
60795   PyObject *resultobj = 0;
60796   char *arg1 = (char *) 0 ;
60797   int arg2 ;
60798   double arg3 ;
60799   std::string *arg4 = (std::string *) 0 ;
60800   int *arg5 = (int *) 0 ;
60801   int res1 ;
60802   char *buf1 = 0 ;
60803   int alloc1 = 0 ;
60804   int val2 ;
60805   int ecode2 = 0 ;
60806   double val3 ;
60807   int ecode3 = 0 ;
60808   std::string temp4 ;
60809   int res4 = SWIG_TMPOBJ ;
60810   int temp5 ;
60811   int res5 = SWIG_TMPOBJ ;
60812   PyObject * obj0 = 0 ;
60813   PyObject * obj1 = 0 ;
60814   PyObject * obj2 = 0 ;
60815   char * kwnames[] = {
60816     (char *)"file_name",  (char *)"length",  (char *)"default_value",  NULL
60817   };
60818   std::vector< double,std::allocator< double > > result;
60819 
60820   arg4 = &temp4;
60821   arg5 = &temp5;
60822   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:file_SHAPE_read", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
60823   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
60824   if (!SWIG_IsOK(res1)) {
60825     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "file_SHAPE_read" "', argument " "1"" of type '" "char const *""'");
60826   }
60827   arg1 = reinterpret_cast< char * >(buf1);
60828   ecode2 = SWIG_AsVal_int(obj1, &val2);
60829   if (!SWIG_IsOK(ecode2)) {
60830     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "file_SHAPE_read" "', argument " "2"" of type '" "int""'");
60831   }
60832   arg2 = static_cast< int >(val2);
60833   ecode3 = SWIG_AsVal_double(obj2, &val3);
60834   if (!SWIG_IsOK(ecode3)) {
60835     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "file_SHAPE_read" "', argument " "3"" of type '" "double""'");
60836   }
60837   arg3 = static_cast< double >(val3);
60838   {
60839     try {
60840       result = my_file_SHAPE_read((char const *)arg1,arg2,arg3,arg4,arg5);
60841     } catch (const std::exception& e) {
60842       SWIG_exception(SWIG_RuntimeError, e.what());
60843     }
60844   }
60845   resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
60846   if (SWIG_IsTmpObj(res4)) {
60847     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_std_string((*arg4)));
60848   } else {
60849     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
60850     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_std__string, new_flags));
60851   }
60852   if (SWIG_IsTmpObj(res5)) {
60853     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
60854   } else {
60855     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
60856     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
60857   }
60858   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
60859   return resultobj;
60860 fail:
60861   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
60862   return NULL;
60863 }
60864 
60865 
_wrap_file_fasta_read(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)60866 SWIGINTERN PyObject *_wrap_file_fasta_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
60867   PyObject *resultobj = 0;
60868   std::string *arg1 = (std::string *) 0 ;
60869   std::string *arg2 = (std::string *) 0 ;
60870   std::vector< std::string,std::allocator< std::string > > *arg3 = (std::vector< std::string,std::allocator< std::string > > *) 0 ;
60871   FILE *arg4 = (FILE *) 0 ;
60872   unsigned int arg5 = (unsigned int) 0 ;
60873   std::string temp1 ;
60874   int res1 = SWIG_TMPOBJ ;
60875   std::string temp2 ;
60876   int res2 = SWIG_TMPOBJ ;
60877   std::vector< std::string,std::allocator< std::string > > temp3 ;
60878   int res3 = SWIG_TMPOBJ ;
60879   unsigned int val5 ;
60880   int ecode5 = 0 ;
60881   PyObject * obj0 = 0 ;
60882   PyObject * obj1 = 0 ;
60883   char * kwnames[] = {
60884     (char *)"file",  (char *)"options",  NULL
60885   };
60886   int result;
60887 
60888   arg1 = &temp1;
60889   arg2 = &temp2;
60890   arg3 = &temp3;
60891   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:file_fasta_read", kwnames, &obj0, &obj1)) SWIG_fail;
60892   {
60893     if (PyFile_Check(obj0)) /* check for undef */
60894     arg4 = PyFile_AsFile(obj0);
60895     else  arg4 = NULL;
60896   }
60897   if (obj1) {
60898     ecode5 = SWIG_AsVal_unsigned_SS_int(obj1, &val5);
60899     if (!SWIG_IsOK(ecode5)) {
60900       SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "file_fasta_read" "', argument " "5"" of type '" "unsigned int""'");
60901     }
60902     arg5 = static_cast< unsigned int >(val5);
60903   }
60904   {
60905     try {
60906       result = (int)my_file_fasta_read(arg1,arg2,arg3,arg4,arg5);
60907     } catch (const std::exception& e) {
60908       SWIG_exception(SWIG_RuntimeError, e.what());
60909     }
60910   }
60911   resultobj = SWIG_From_int(static_cast< int >(result));
60912   if (SWIG_IsTmpObj(res1)) {
60913     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_std_string((*arg1)));
60914   } else {
60915     int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
60916     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_std__string, new_flags));
60917   }
60918   if (SWIG_IsTmpObj(res2)) {
60919     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_std_string((*arg2)));
60920   } else {
60921     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
60922     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_std__string, new_flags));
60923   }
60924   if (SWIG_IsTmpObj(res3)) {
60925     resultobj = SWIG_Python_AppendOutput(resultobj, swig::from((*arg3)));
60926   } else {
60927     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
60928     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, new_flags));
60929   }
60930   return resultobj;
60931 fail:
60932   return NULL;
60933 }
60934 
60935 
_wrap_extract_record_rest_structure(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)60936 SWIGINTERN PyObject *_wrap_extract_record_rest_structure(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
60937   PyObject *resultobj = 0;
60938   char **arg1 = (char **) 0 ;
60939   unsigned int arg2 ;
60940   unsigned int arg3 ;
60941   unsigned int val2 ;
60942   int ecode2 = 0 ;
60943   unsigned int val3 ;
60944   int ecode3 = 0 ;
60945   PyObject * obj0 = 0 ;
60946   PyObject * obj1 = 0 ;
60947   PyObject * obj2 = 0 ;
60948   char * kwnames[] = {
60949     (char *)"lines",  (char *)"length",  (char *)"option",  NULL
60950   };
60951   char *result = 0 ;
60952 
60953   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:extract_record_rest_structure", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
60954   {
60955     /* Check if is a list */
60956     if (PyList_Check(obj0)) {
60957       int size = PyList_Size(obj0);
60958       int i = 0;
60959       arg1 = (char **) malloc((size+1)*sizeof(char *));
60960       for (i = 0; i < size; i++) {
60961         PyObject *o = PyList_GetItem(obj0,i);
60962         if (PyString_Check(o))
60963         arg1[i] = PyString_AsString(PyList_GetItem(obj0,i));
60964         else {
60965           PyErr_SetString(PyExc_TypeError,"list must contain strings");
60966           free(arg1);
60967           return NULL;
60968         }
60969       }
60970       arg1[i] = 0;
60971     } else {
60972       PyErr_SetString(PyExc_TypeError,"not a list");
60973       return NULL;
60974     }
60975   }
60976   ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
60977   if (!SWIG_IsOK(ecode2)) {
60978     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "extract_record_rest_structure" "', argument " "2"" of type '" "unsigned int""'");
60979   }
60980   arg2 = static_cast< unsigned int >(val2);
60981   ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
60982   if (!SWIG_IsOK(ecode3)) {
60983     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "extract_record_rest_structure" "', argument " "3"" of type '" "unsigned int""'");
60984   }
60985   arg3 = static_cast< unsigned int >(val3);
60986   {
60987     try {
60988       result = (char *)extract_record_rest_structure((char const **)arg1,arg2,arg3);
60989     } catch (const std::exception& e) {
60990       SWIG_exception(SWIG_RuntimeError, e.what());
60991     }
60992   }
60993   resultobj = SWIG_FromCharPtr((const char *)result);
60994   {
60995     free(arg1);
60996   }
60997   return resultobj;
60998 fail:
60999   {
61000     free(arg1);
61001   }
61002   return NULL;
61003 }
61004 
61005 
_wrap_read_record(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)61006 SWIGINTERN PyObject *_wrap_read_record(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
61007   PyObject *resultobj = 0;
61008   char **arg1 = (char **) 0 ;
61009   char **arg2 = (char **) 0 ;
61010   char ***arg3 = (char ***) 0 ;
61011   unsigned int arg4 ;
61012   void *argp3 = 0 ;
61013   int res3 = 0 ;
61014   unsigned int val4 ;
61015   int ecode4 = 0 ;
61016   PyObject * obj0 = 0 ;
61017   PyObject * obj1 = 0 ;
61018   PyObject * obj2 = 0 ;
61019   PyObject * obj3 = 0 ;
61020   char * kwnames[] = {
61021     (char *)"header",  (char *)"sequence",  (char *)"rest",  (char *)"options",  NULL
61022   };
61023   unsigned int result;
61024 
61025   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:read_record", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
61026   {
61027     /* Check if is a list */
61028     if (PyList_Check(obj0)) {
61029       int size = PyList_Size(obj0);
61030       int i = 0;
61031       arg1 = (char **) malloc((size+1)*sizeof(char *));
61032       for (i = 0; i < size; i++) {
61033         PyObject *o = PyList_GetItem(obj0,i);
61034         if (PyString_Check(o))
61035         arg1[i] = PyString_AsString(PyList_GetItem(obj0,i));
61036         else {
61037           PyErr_SetString(PyExc_TypeError,"list must contain strings");
61038           free(arg1);
61039           return NULL;
61040         }
61041       }
61042       arg1[i] = 0;
61043     } else {
61044       PyErr_SetString(PyExc_TypeError,"not a list");
61045       return NULL;
61046     }
61047   }
61048   {
61049     /* Check if is a list */
61050     if (PyList_Check(obj1)) {
61051       int size = PyList_Size(obj1);
61052       int i = 0;
61053       arg2 = (char **) malloc((size+1)*sizeof(char *));
61054       for (i = 0; i < size; i++) {
61055         PyObject *o = PyList_GetItem(obj1,i);
61056         if (PyString_Check(o))
61057         arg2[i] = PyString_AsString(PyList_GetItem(obj1,i));
61058         else {
61059           PyErr_SetString(PyExc_TypeError,"list must contain strings");
61060           free(arg2);
61061           return NULL;
61062         }
61063       }
61064       arg2[i] = 0;
61065     } else {
61066       PyErr_SetString(PyExc_TypeError,"not a list");
61067       return NULL;
61068     }
61069   }
61070   res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_p_char, 0 |  0 );
61071   if (!SWIG_IsOK(res3)) {
61072     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "read_record" "', argument " "3"" of type '" "char ***""'");
61073   }
61074   arg3 = reinterpret_cast< char *** >(argp3);
61075   ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
61076   if (!SWIG_IsOK(ecode4)) {
61077     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "read_record" "', argument " "4"" of type '" "unsigned int""'");
61078   }
61079   arg4 = static_cast< unsigned int >(val4);
61080   {
61081     try {
61082       result = (unsigned int)read_record(arg1,arg2,arg3,arg4);
61083     } catch (const std::exception& e) {
61084       SWIG_exception(SWIG_RuntimeError, e.what());
61085     }
61086   }
61087   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
61088   {
61089     free(arg1);
61090   }
61091   {
61092     free(arg2);
61093   }
61094   return resultobj;
61095 fail:
61096   {
61097     free(arg1);
61098   }
61099   {
61100     free(arg2);
61101   }
61102   return NULL;
61103 }
61104 
61105 
_wrap_get_multi_input_line(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)61106 SWIGINTERN PyObject *_wrap_get_multi_input_line(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
61107   PyObject *resultobj = 0;
61108   char **arg1 = (char **) 0 ;
61109   unsigned int arg2 ;
61110   unsigned int val2 ;
61111   int ecode2 = 0 ;
61112   PyObject * obj0 = 0 ;
61113   PyObject * obj1 = 0 ;
61114   char * kwnames[] = {
61115     (char *)"string",  (char *)"options",  NULL
61116   };
61117   unsigned int result;
61118 
61119   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:get_multi_input_line", kwnames, &obj0, &obj1)) SWIG_fail;
61120   {
61121     /* Check if is a list */
61122     if (PyList_Check(obj0)) {
61123       int size = PyList_Size(obj0);
61124       int i = 0;
61125       arg1 = (char **) malloc((size+1)*sizeof(char *));
61126       for (i = 0; i < size; i++) {
61127         PyObject *o = PyList_GetItem(obj0,i);
61128         if (PyString_Check(o))
61129         arg1[i] = PyString_AsString(PyList_GetItem(obj0,i));
61130         else {
61131           PyErr_SetString(PyExc_TypeError,"list must contain strings");
61132           free(arg1);
61133           return NULL;
61134         }
61135       }
61136       arg1[i] = 0;
61137     } else {
61138       PyErr_SetString(PyExc_TypeError,"not a list");
61139       return NULL;
61140     }
61141   }
61142   ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
61143   if (!SWIG_IsOK(ecode2)) {
61144     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "get_multi_input_line" "', argument " "2"" of type '" "unsigned int""'");
61145   }
61146   arg2 = static_cast< unsigned int >(val2);
61147   {
61148     try {
61149       result = (unsigned int)get_multi_input_line(arg1,arg2);
61150     } catch (const std::exception& e) {
61151       SWIG_exception(SWIG_RuntimeError, e.what());
61152     }
61153   }
61154   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
61155   {
61156     free(arg1);
61157   }
61158   return resultobj;
61159 fail:
61160   {
61161     free(arg1);
61162   }
61163   return NULL;
61164 }
61165 
61166 
_wrap_file_msa_detect_format(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)61167 SWIGINTERN PyObject *_wrap_file_msa_detect_format(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
61168   PyObject *resultobj = 0;
61169   std::string arg1 ;
61170   unsigned int arg2 = (unsigned int) VRNA_FILE_FORMAT_MSA_DEFAULT ;
61171   unsigned int val2 ;
61172   int ecode2 = 0 ;
61173   PyObject * obj0 = 0 ;
61174   PyObject * obj1 = 0 ;
61175   char * kwnames[] = {
61176     (char *)"filename",  (char *)"options",  NULL
61177   };
61178   unsigned int result;
61179 
61180   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:file_msa_detect_format", kwnames, &obj0, &obj1)) SWIG_fail;
61181   {
61182     std::string *ptr = (std::string *)0;
61183     int res = SWIG_AsPtr_std_string(obj0, &ptr);
61184     if (!SWIG_IsOK(res) || !ptr) {
61185       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_msa_detect_format" "', argument " "1"" of type '" "std::string""'");
61186     }
61187     arg1 = *ptr;
61188     if (SWIG_IsNewObj(res)) delete ptr;
61189   }
61190   if (obj1) {
61191     ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
61192     if (!SWIG_IsOK(ecode2)) {
61193       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "file_msa_detect_format" "', argument " "2"" of type '" "unsigned int""'");
61194     }
61195     arg2 = static_cast< unsigned int >(val2);
61196   }
61197   {
61198     try {
61199       result = (unsigned int)my_file_msa_detect_format(arg1,arg2);
61200     } catch (const std::exception& e) {
61201       SWIG_exception(SWIG_RuntimeError, e.what());
61202     }
61203   }
61204   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
61205   return resultobj;
61206 fail:
61207   return NULL;
61208 }
61209 
61210 
_wrap_file_msa_write(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)61211 SWIGINTERN PyObject *_wrap_file_msa_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
61212   PyObject *resultobj = 0;
61213   std::string arg1 ;
61214   std::vector< std::string,std::allocator< std::string > > arg2 ;
61215   std::vector< std::string,std::allocator< std::string > > arg3 ;
61216   std::string arg4 = (std::string) "" ;
61217   std::string arg5 = (std::string) "" ;
61218   std::string arg6 = (std::string) "" ;
61219   unsigned int arg7 = (unsigned int) VRNA_FILE_FORMAT_MSA_STOCKHOLM|VRNA_FILE_FORMAT_MSA_APPEND ;
61220   unsigned int val7 ;
61221   int ecode7 = 0 ;
61222   PyObject * obj0 = 0 ;
61223   PyObject * obj1 = 0 ;
61224   PyObject * obj2 = 0 ;
61225   PyObject * obj3 = 0 ;
61226   PyObject * obj4 = 0 ;
61227   PyObject * obj5 = 0 ;
61228   PyObject * obj6 = 0 ;
61229   char * kwnames[] = {
61230     (char *)"filename",  (char *)"names",  (char *)"alignment",  (char *)"id",  (char *)"structure",  (char *)"source",  (char *)"options",  NULL
61231   };
61232   int result;
61233 
61234   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO|OOOO:file_msa_write", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6)) SWIG_fail;
61235   {
61236     std::string *ptr = (std::string *)0;
61237     int res = SWIG_AsPtr_std_string(obj0, &ptr);
61238     if (!SWIG_IsOK(res) || !ptr) {
61239       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_msa_write" "', argument " "1"" of type '" "std::string""'");
61240     }
61241     arg1 = *ptr;
61242     if (SWIG_IsNewObj(res)) delete ptr;
61243   }
61244   {
61245     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
61246     int res = swig::asptr(obj1, &ptr);
61247     if (!SWIG_IsOK(res) || !ptr) {
61248       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_msa_write" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
61249     }
61250     arg2 = *ptr;
61251     if (SWIG_IsNewObj(res)) delete ptr;
61252   }
61253   {
61254     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
61255     int res = swig::asptr(obj2, &ptr);
61256     if (!SWIG_IsOK(res) || !ptr) {
61257       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_msa_write" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
61258     }
61259     arg3 = *ptr;
61260     if (SWIG_IsNewObj(res)) delete ptr;
61261   }
61262   if (obj3) {
61263     {
61264       std::string *ptr = (std::string *)0;
61265       int res = SWIG_AsPtr_std_string(obj3, &ptr);
61266       if (!SWIG_IsOK(res) || !ptr) {
61267         SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_msa_write" "', argument " "4"" of type '" "std::string""'");
61268       }
61269       arg4 = *ptr;
61270       if (SWIG_IsNewObj(res)) delete ptr;
61271     }
61272   }
61273   if (obj4) {
61274     {
61275       std::string *ptr = (std::string *)0;
61276       int res = SWIG_AsPtr_std_string(obj4, &ptr);
61277       if (!SWIG_IsOK(res) || !ptr) {
61278         SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_msa_write" "', argument " "5"" of type '" "std::string""'");
61279       }
61280       arg5 = *ptr;
61281       if (SWIG_IsNewObj(res)) delete ptr;
61282     }
61283   }
61284   if (obj5) {
61285     {
61286       std::string *ptr = (std::string *)0;
61287       int res = SWIG_AsPtr_std_string(obj5, &ptr);
61288       if (!SWIG_IsOK(res) || !ptr) {
61289         SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_msa_write" "', argument " "6"" of type '" "std::string""'");
61290       }
61291       arg6 = *ptr;
61292       if (SWIG_IsNewObj(res)) delete ptr;
61293     }
61294   }
61295   if (obj6) {
61296     ecode7 = SWIG_AsVal_unsigned_SS_int(obj6, &val7);
61297     if (!SWIG_IsOK(ecode7)) {
61298       SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "file_msa_write" "', argument " "7"" of type '" "unsigned int""'");
61299     }
61300     arg7 = static_cast< unsigned int >(val7);
61301   }
61302   {
61303     try {
61304       result = (int)my_file_msa_write(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
61305     } catch (const std::exception& e) {
61306       SWIG_exception(SWIG_RuntimeError, e.what());
61307     }
61308   }
61309   resultobj = SWIG_From_int(static_cast< int >(result));
61310   return resultobj;
61311 fail:
61312   return NULL;
61313 }
61314 
61315 
_wrap_file_msa_read(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)61316 SWIGINTERN PyObject *_wrap_file_msa_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
61317   PyObject *resultobj = 0;
61318   std::string arg1 ;
61319   std::vector< std::string,std::allocator< std::string > > *arg2 = (std::vector< std::string,std::allocator< std::string > > *) 0 ;
61320   std::vector< std::string,std::allocator< std::string > > *arg3 = (std::vector< std::string,std::allocator< std::string > > *) 0 ;
61321   std::string *arg4 = (std::string *) 0 ;
61322   std::string *arg5 = (std::string *) 0 ;
61323   unsigned int arg6 = (unsigned int) VRNA_FILE_FORMAT_MSA_STOCKHOLM ;
61324   std::vector< std::string,std::allocator< std::string > > temp2 ;
61325   int res2 = SWIG_TMPOBJ ;
61326   std::vector< std::string,std::allocator< std::string > > temp3 ;
61327   int res3 = SWIG_TMPOBJ ;
61328   std::string temp4 ;
61329   int res4 = SWIG_TMPOBJ ;
61330   std::string temp5 ;
61331   int res5 = SWIG_TMPOBJ ;
61332   unsigned int val6 ;
61333   int ecode6 = 0 ;
61334   PyObject * obj0 = 0 ;
61335   PyObject * obj1 = 0 ;
61336   char * kwnames[] = {
61337     (char *)"filename",  (char *)"options",  NULL
61338   };
61339   int result;
61340 
61341   arg2 = &temp2;
61342   arg3 = &temp3;
61343   arg4 = &temp4;
61344   arg5 = &temp5;
61345   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:file_msa_read", kwnames, &obj0, &obj1)) SWIG_fail;
61346   {
61347     std::string *ptr = (std::string *)0;
61348     int res = SWIG_AsPtr_std_string(obj0, &ptr);
61349     if (!SWIG_IsOK(res) || !ptr) {
61350       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_msa_read" "', argument " "1"" of type '" "std::string""'");
61351     }
61352     arg1 = *ptr;
61353     if (SWIG_IsNewObj(res)) delete ptr;
61354   }
61355   if (obj1) {
61356     ecode6 = SWIG_AsVal_unsigned_SS_int(obj1, &val6);
61357     if (!SWIG_IsOK(ecode6)) {
61358       SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "file_msa_read" "', argument " "6"" of type '" "unsigned int""'");
61359     }
61360     arg6 = static_cast< unsigned int >(val6);
61361   }
61362   {
61363     try {
61364       result = (int)my_file_msa_read(arg1,arg2,arg3,arg4,arg5,arg6);
61365     } catch (const std::exception& e) {
61366       SWIG_exception(SWIG_RuntimeError, e.what());
61367     }
61368   }
61369   resultobj = SWIG_From_int(static_cast< int >(result));
61370   if (SWIG_IsTmpObj(res2)) {
61371     resultobj = SWIG_Python_AppendOutput(resultobj, swig::from((*arg2)));
61372   } else {
61373     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
61374     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, new_flags));
61375   }
61376   if (SWIG_IsTmpObj(res3)) {
61377     resultobj = SWIG_Python_AppendOutput(resultobj, swig::from((*arg3)));
61378   } else {
61379     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
61380     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, new_flags));
61381   }
61382   if (SWIG_IsTmpObj(res4)) {
61383     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_std_string((*arg4)));
61384   } else {
61385     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
61386     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_std__string, new_flags));
61387   }
61388   if (SWIG_IsTmpObj(res5)) {
61389     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_std_string((*arg5)));
61390   } else {
61391     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
61392     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_std__string, new_flags));
61393   }
61394   return resultobj;
61395 fail:
61396   return NULL;
61397 }
61398 
61399 
_wrap_file_msa_read_record(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)61400 SWIGINTERN PyObject *_wrap_file_msa_read_record(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
61401   PyObject *resultobj = 0;
61402   FILE *arg1 = (FILE *) 0 ;
61403   std::vector< std::string,std::allocator< std::string > > *arg2 = (std::vector< std::string,std::allocator< std::string > > *) 0 ;
61404   std::vector< std::string,std::allocator< std::string > > *arg3 = (std::vector< std::string,std::allocator< std::string > > *) 0 ;
61405   std::string *arg4 = (std::string *) 0 ;
61406   std::string *arg5 = (std::string *) 0 ;
61407   unsigned int arg6 = (unsigned int) VRNA_FILE_FORMAT_MSA_STOCKHOLM ;
61408   std::vector< std::string,std::allocator< std::string > > temp2 ;
61409   int res2 = SWIG_TMPOBJ ;
61410   std::vector< std::string,std::allocator< std::string > > temp3 ;
61411   int res3 = SWIG_TMPOBJ ;
61412   std::string temp4 ;
61413   int res4 = SWIG_TMPOBJ ;
61414   std::string temp5 ;
61415   int res5 = SWIG_TMPOBJ ;
61416   unsigned int val6 ;
61417   int ecode6 = 0 ;
61418   PyObject * obj0 = 0 ;
61419   PyObject * obj1 = 0 ;
61420   char * kwnames[] = {
61421     (char *)"filehandle",  (char *)"options",  NULL
61422   };
61423   int result;
61424 
61425   arg2 = &temp2;
61426   arg3 = &temp3;
61427   arg4 = &temp4;
61428   arg5 = &temp5;
61429   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:file_msa_read_record", kwnames, &obj0, &obj1)) SWIG_fail;
61430   {
61431     if (PyFile_Check(obj0)) /* check for undef */
61432     arg1 = PyFile_AsFile(obj0);
61433     else  arg1 = NULL;
61434   }
61435   if (obj1) {
61436     ecode6 = SWIG_AsVal_unsigned_SS_int(obj1, &val6);
61437     if (!SWIG_IsOK(ecode6)) {
61438       SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "file_msa_read_record" "', argument " "6"" of type '" "unsigned int""'");
61439     }
61440     arg6 = static_cast< unsigned int >(val6);
61441   }
61442   {
61443     try {
61444       result = (int)my_file_msa_read_record(arg1,arg2,arg3,arg4,arg5,arg6);
61445     } catch (const std::exception& e) {
61446       SWIG_exception(SWIG_RuntimeError, e.what());
61447     }
61448   }
61449   resultobj = SWIG_From_int(static_cast< int >(result));
61450   if (SWIG_IsTmpObj(res2)) {
61451     resultobj = SWIG_Python_AppendOutput(resultobj, swig::from((*arg2)));
61452   } else {
61453     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
61454     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, new_flags));
61455   }
61456   if (SWIG_IsTmpObj(res3)) {
61457     resultobj = SWIG_Python_AppendOutput(resultobj, swig::from((*arg3)));
61458   } else {
61459     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
61460     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, new_flags));
61461   }
61462   if (SWIG_IsTmpObj(res4)) {
61463     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_std_string((*arg4)));
61464   } else {
61465     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
61466     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_std__string, new_flags));
61467   }
61468   if (SWIG_IsTmpObj(res5)) {
61469     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_std_string((*arg5)));
61470   } else {
61471     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
61472     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_std__string, new_flags));
61473   }
61474   return resultobj;
61475 fail:
61476   return NULL;
61477 }
61478 
61479 
_wrap_seq_encode(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)61480 SWIGINTERN PyObject *_wrap_seq_encode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
61481   PyObject *resultobj = 0;
61482   std::string arg1 ;
61483   vrna_md_t *arg2 = (vrna_md_t *) NULL ;
61484   void *argp2 = 0 ;
61485   int res2 = 0 ;
61486   PyObject * obj0 = 0 ;
61487   PyObject * obj1 = 0 ;
61488   char * kwnames[] = {
61489     (char *)"sequence",  (char *)"md_p",  NULL
61490   };
61491   std::vector< int,std::allocator< int > > result;
61492 
61493   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:seq_encode", kwnames, &obj0, &obj1)) SWIG_fail;
61494   {
61495     std::string *ptr = (std::string *)0;
61496     int res = SWIG_AsPtr_std_string(obj0, &ptr);
61497     if (!SWIG_IsOK(res) || !ptr) {
61498       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "seq_encode" "', argument " "1"" of type '" "std::string""'");
61499     }
61500     arg1 = *ptr;
61501     if (SWIG_IsNewObj(res)) delete ptr;
61502   }
61503   if (obj1) {
61504     res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_vrna_md_t, 0 |  0 );
61505     if (!SWIG_IsOK(res2)) {
61506       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "seq_encode" "', argument " "2"" of type '" "vrna_md_t *""'");
61507     }
61508     arg2 = reinterpret_cast< vrna_md_t * >(argp2);
61509   }
61510   {
61511     try {
61512       result = my_seq_encode(arg1,arg2);
61513     } catch (const std::exception& e) {
61514       SWIG_exception(SWIG_RuntimeError, e.what());
61515     }
61516   }
61517   resultobj = swig::from(static_cast< std::vector< int,std::allocator< int > > >(result));
61518   return resultobj;
61519 fail:
61520   return NULL;
61521 }
61522 
61523 
_wrap_new_cmd(PyObject * SWIGUNUSEDPARM (self),PyObject * args)61524 SWIGINTERN PyObject *_wrap_new_cmd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
61525   PyObject *resultobj = 0;
61526   vrna_command_s *result = 0 ;
61527 
61528   if (!SWIG_Python_UnpackTuple(args, "new_cmd", 0, 0, 0)) SWIG_fail;
61529   {
61530     try {
61531       result = (vrna_command_s *)new_vrna_command_s();
61532     } catch (const std::exception& e) {
61533       SWIG_exception(SWIG_RuntimeError, e.what());
61534     }
61535   }
61536   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_command_s, SWIG_POINTER_NEW |  0 );
61537   return resultobj;
61538 fail:
61539   return NULL;
61540 }
61541 
61542 
_wrap_delete_cmd(PyObject * SWIGUNUSEDPARM (self),PyObject * args)61543 SWIGINTERN PyObject *_wrap_delete_cmd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
61544   PyObject *resultobj = 0;
61545   vrna_command_s *arg1 = (vrna_command_s *) 0 ;
61546   void *argp1 = 0 ;
61547   int res1 = 0 ;
61548   PyObject *swig_obj[1] ;
61549 
61550   if (!args) SWIG_fail;
61551   swig_obj[0] = args;
61552   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_command_s, SWIG_POINTER_DISOWN |  0 );
61553   if (!SWIG_IsOK(res1)) {
61554     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cmd" "', argument " "1"" of type '" "vrna_command_s *""'");
61555   }
61556   arg1 = reinterpret_cast< vrna_command_s * >(argp1);
61557   {
61558     try {
61559       delete_vrna_command_s(arg1);
61560     } catch (const std::exception& e) {
61561       SWIG_exception(SWIG_RuntimeError, e.what());
61562     }
61563   }
61564   resultobj = SWIG_Py_Void();
61565   return resultobj;
61566 fail:
61567   return NULL;
61568 }
61569 
61570 
cmd_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)61571 SWIGINTERN PyObject *cmd_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
61572   PyObject *obj;
61573   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
61574   SWIG_TypeNewClientData(SWIGTYPE_p_vrna_command_s, SWIG_NewClientData(obj));
61575   return SWIG_Py_Void();
61576 }
61577 
cmd_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)61578 SWIGINTERN PyObject *cmd_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
61579   return SWIG_Python_InitShadowInstance(args);
61580 }
61581 
_wrap_file_commands_read(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)61582 SWIGINTERN PyObject *_wrap_file_commands_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
61583   PyObject *resultobj = 0;
61584   std::string arg1 ;
61585   unsigned int arg2 = (unsigned int) VRNA_CMD_PARSE_DEFAULTS ;
61586   unsigned int val2 ;
61587   int ecode2 = 0 ;
61588   PyObject * obj0 = 0 ;
61589   PyObject * obj1 = 0 ;
61590   char * kwnames[] = {
61591     (char *)"filename",  (char *)"options",  NULL
61592   };
61593   vrna_command_s *result = 0 ;
61594 
61595   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:file_commands_read", kwnames, &obj0, &obj1)) SWIG_fail;
61596   {
61597     std::string *ptr = (std::string *)0;
61598     int res = SWIG_AsPtr_std_string(obj0, &ptr);
61599     if (!SWIG_IsOK(res) || !ptr) {
61600       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "file_commands_read" "', argument " "1"" of type '" "std::string""'");
61601     }
61602     arg1 = *ptr;
61603     if (SWIG_IsNewObj(res)) delete ptr;
61604   }
61605   if (obj1) {
61606     ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
61607     if (!SWIG_IsOK(ecode2)) {
61608       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "file_commands_read" "', argument " "2"" of type '" "unsigned int""'");
61609     }
61610     arg2 = static_cast< unsigned int >(val2);
61611   }
61612   {
61613     try {
61614       result = (vrna_command_s *)my_file_commands_read(arg1,arg2);
61615     } catch (const std::exception& e) {
61616       SWIG_exception(SWIG_RuntimeError, e.what());
61617     }
61618   }
61619   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_command_s, 0 |  0 );
61620   return resultobj;
61621 fail:
61622   return NULL;
61623 }
61624 
61625 
_wrap_enumerate_necklaces(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)61626 SWIGINTERN PyObject *_wrap_enumerate_necklaces(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
61627   PyObject *resultobj = 0;
61628   std::vector< unsigned int,std::allocator< unsigned int > > arg1 ;
61629   PyObject * obj0 = 0 ;
61630   char * kwnames[] = {
61631     (char *)"entity_counts",  NULL
61632   };
61633   std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > result;
61634 
61635   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:enumerate_necklaces", kwnames, &obj0)) SWIG_fail;
61636   {
61637     std::vector< unsigned int,std::allocator< unsigned int > > *ptr = (std::vector< unsigned int,std::allocator< unsigned int > > *)0;
61638     int res = swig::asptr(obj0, &ptr);
61639     if (!SWIG_IsOK(res) || !ptr) {
61640       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "enumerate_necklaces" "', argument " "1"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > >""'");
61641     }
61642     arg1 = *ptr;
61643     if (SWIG_IsNewObj(res)) delete ptr;
61644   }
61645   {
61646     try {
61647       result = my_enumerate_necklaces(arg1);
61648     } catch (const std::exception& e) {
61649       SWIG_exception(SWIG_RuntimeError, e.what());
61650     }
61651   }
61652   resultobj = swig::from(static_cast< std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > >(result));
61653   return resultobj;
61654 fail:
61655   return NULL;
61656 }
61657 
61658 
_wrap_rotational_symmetry__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)61659 SWIGINTERN PyObject *_wrap_rotational_symmetry__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
61660   PyObject *resultobj = 0;
61661   std::vector< unsigned int,std::allocator< unsigned int > > arg1 ;
61662   std::vector< unsigned int,std::allocator< unsigned int > > result;
61663 
61664   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
61665   {
61666     std::vector< unsigned int,std::allocator< unsigned int > > *ptr = (std::vector< unsigned int,std::allocator< unsigned int > > *)0;
61667     int res = swig::asptr(swig_obj[0], &ptr);
61668     if (!SWIG_IsOK(res) || !ptr) {
61669       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "rotational_symmetry" "', argument " "1"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > >""'");
61670     }
61671     arg1 = *ptr;
61672     if (SWIG_IsNewObj(res)) delete ptr;
61673   }
61674   {
61675     try {
61676       result = my_rotational_symmetry(arg1);
61677     } catch (const std::exception& e) {
61678       SWIG_exception(SWIG_RuntimeError, e.what());
61679     }
61680   }
61681   resultobj = swig::from(static_cast< std::vector< unsigned int,std::allocator< unsigned int > > >(result));
61682   return resultobj;
61683 fail:
61684   return NULL;
61685 }
61686 
61687 
_wrap_rotational_symmetry__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)61688 SWIGINTERN PyObject *_wrap_rotational_symmetry__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
61689   PyObject *resultobj = 0;
61690   std::string arg1 ;
61691   std::vector< unsigned int,std::allocator< unsigned int > > result;
61692 
61693   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
61694   {
61695     std::string *ptr = (std::string *)0;
61696     int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
61697     if (!SWIG_IsOK(res) || !ptr) {
61698       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "rotational_symmetry" "', argument " "1"" of type '" "std::string""'");
61699     }
61700     arg1 = *ptr;
61701     if (SWIG_IsNewObj(res)) delete ptr;
61702   }
61703   {
61704     try {
61705       result = my_rotational_symmetry(arg1);
61706     } catch (const std::exception& e) {
61707       SWIG_exception(SWIG_RuntimeError, e.what());
61708     }
61709   }
61710   resultobj = swig::from(static_cast< std::vector< unsigned int,std::allocator< unsigned int > > >(result));
61711   return resultobj;
61712 fail:
61713   return NULL;
61714 }
61715 
61716 
_wrap_rotational_symmetry(PyObject * self,PyObject * args)61717 SWIGINTERN PyObject *_wrap_rotational_symmetry(PyObject *self, PyObject *args) {
61718   Py_ssize_t argc;
61719   PyObject *argv[2] = {
61720     0
61721   };
61722 
61723   if (!(argc = SWIG_Python_UnpackTuple(args, "rotational_symmetry", 0, 1, argv))) SWIG_fail;
61724   --argc;
61725   if (argc == 1) {
61726     int _v;
61727     int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
61728     _v = SWIG_CheckState(res);
61729     if (_v) {
61730       return _wrap_rotational_symmetry__SWIG_1(self, argc, argv);
61731     }
61732   }
61733   if (argc == 1) {
61734     int _v;
61735     int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
61736     _v = SWIG_CheckState(res);
61737     if (_v) {
61738       return _wrap_rotational_symmetry__SWIG_0(self, argc, argv);
61739     }
61740   }
61741 
61742 fail:
61743   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'rotational_symmetry'.\n"
61744     "  Possible C/C++ prototypes are:\n"
61745     "    my_rotational_symmetry(std::vector< unsigned int,std::allocator< unsigned int > >)\n"
61746     "    my_rotational_symmetry(std::string)\n");
61747   return 0;
61748 }
61749 
61750 
_wrap_duplexT_i_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)61751 SWIGINTERN PyObject *_wrap_duplexT_i_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
61752   PyObject *resultobj = 0;
61753   duplexT *arg1 = (duplexT *) 0 ;
61754   int arg2 ;
61755   void *argp1 = 0 ;
61756   int res1 = 0 ;
61757   int val2 ;
61758   int ecode2 = 0 ;
61759   PyObject *swig_obj[2] ;
61760 
61761   if (!SWIG_Python_UnpackTuple(args, "duplexT_i_set", 2, 2, swig_obj)) SWIG_fail;
61762   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_duplexT, 0 |  0 );
61763   if (!SWIG_IsOK(res1)) {
61764     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "duplexT_i_set" "', argument " "1"" of type '" "duplexT *""'");
61765   }
61766   arg1 = reinterpret_cast< duplexT * >(argp1);
61767   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
61768   if (!SWIG_IsOK(ecode2)) {
61769     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "duplexT_i_set" "', argument " "2"" of type '" "int""'");
61770   }
61771   arg2 = static_cast< int >(val2);
61772   if (arg1) (arg1)->i = arg2;
61773   resultobj = SWIG_Py_Void();
61774   return resultobj;
61775 fail:
61776   return NULL;
61777 }
61778 
61779 
_wrap_duplexT_i_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)61780 SWIGINTERN PyObject *_wrap_duplexT_i_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
61781   PyObject *resultobj = 0;
61782   duplexT *arg1 = (duplexT *) 0 ;
61783   void *argp1 = 0 ;
61784   int res1 = 0 ;
61785   PyObject *swig_obj[1] ;
61786   int result;
61787 
61788   if (!args) SWIG_fail;
61789   swig_obj[0] = args;
61790   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_duplexT, 0 |  0 );
61791   if (!SWIG_IsOK(res1)) {
61792     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "duplexT_i_get" "', argument " "1"" of type '" "duplexT *""'");
61793   }
61794   arg1 = reinterpret_cast< duplexT * >(argp1);
61795   result = (int) ((arg1)->i);
61796   resultobj = SWIG_From_int(static_cast< int >(result));
61797   return resultobj;
61798 fail:
61799   return NULL;
61800 }
61801 
61802 
_wrap_duplexT_j_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)61803 SWIGINTERN PyObject *_wrap_duplexT_j_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
61804   PyObject *resultobj = 0;
61805   duplexT *arg1 = (duplexT *) 0 ;
61806   int arg2 ;
61807   void *argp1 = 0 ;
61808   int res1 = 0 ;
61809   int val2 ;
61810   int ecode2 = 0 ;
61811   PyObject *swig_obj[2] ;
61812 
61813   if (!SWIG_Python_UnpackTuple(args, "duplexT_j_set", 2, 2, swig_obj)) SWIG_fail;
61814   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_duplexT, 0 |  0 );
61815   if (!SWIG_IsOK(res1)) {
61816     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "duplexT_j_set" "', argument " "1"" of type '" "duplexT *""'");
61817   }
61818   arg1 = reinterpret_cast< duplexT * >(argp1);
61819   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
61820   if (!SWIG_IsOK(ecode2)) {
61821     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "duplexT_j_set" "', argument " "2"" of type '" "int""'");
61822   }
61823   arg2 = static_cast< int >(val2);
61824   if (arg1) (arg1)->j = arg2;
61825   resultobj = SWIG_Py_Void();
61826   return resultobj;
61827 fail:
61828   return NULL;
61829 }
61830 
61831 
_wrap_duplexT_j_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)61832 SWIGINTERN PyObject *_wrap_duplexT_j_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
61833   PyObject *resultobj = 0;
61834   duplexT *arg1 = (duplexT *) 0 ;
61835   void *argp1 = 0 ;
61836   int res1 = 0 ;
61837   PyObject *swig_obj[1] ;
61838   int result;
61839 
61840   if (!args) SWIG_fail;
61841   swig_obj[0] = args;
61842   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_duplexT, 0 |  0 );
61843   if (!SWIG_IsOK(res1)) {
61844     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "duplexT_j_get" "', argument " "1"" of type '" "duplexT *""'");
61845   }
61846   arg1 = reinterpret_cast< duplexT * >(argp1);
61847   result = (int) ((arg1)->j);
61848   resultobj = SWIG_From_int(static_cast< int >(result));
61849   return resultobj;
61850 fail:
61851   return NULL;
61852 }
61853 
61854 
_wrap_duplexT_structure_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)61855 SWIGINTERN PyObject *_wrap_duplexT_structure_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
61856   PyObject *resultobj = 0;
61857   duplexT *arg1 = (duplexT *) 0 ;
61858   char *arg2 = (char *) 0 ;
61859   void *argp1 = 0 ;
61860   int res1 = 0 ;
61861   int res2 ;
61862   char *buf2 = 0 ;
61863   int alloc2 = 0 ;
61864   PyObject *swig_obj[2] ;
61865 
61866   if (!SWIG_Python_UnpackTuple(args, "duplexT_structure_set", 2, 2, swig_obj)) SWIG_fail;
61867   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_duplexT, 0 |  0 );
61868   if (!SWIG_IsOK(res1)) {
61869     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "duplexT_structure_set" "', argument " "1"" of type '" "duplexT *""'");
61870   }
61871   arg1 = reinterpret_cast< duplexT * >(argp1);
61872   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
61873   if (!SWIG_IsOK(res2)) {
61874     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "duplexT_structure_set" "', argument " "2"" of type '" "char *""'");
61875   }
61876   arg2 = reinterpret_cast< char * >(buf2);
61877   if (arg1->structure) delete[] arg1->structure;
61878   if (arg2) {
61879     size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1;
61880     arg1->structure = (char *)reinterpret_cast< char* >(memcpy(new char[size], reinterpret_cast< const char * >(arg2), sizeof(char)*(size)));
61881   } else {
61882     arg1->structure = 0;
61883   }
61884   resultobj = SWIG_Py_Void();
61885   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
61886   return resultobj;
61887 fail:
61888   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
61889   return NULL;
61890 }
61891 
61892 
_wrap_duplexT_structure_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)61893 SWIGINTERN PyObject *_wrap_duplexT_structure_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
61894   PyObject *resultobj = 0;
61895   duplexT *arg1 = (duplexT *) 0 ;
61896   void *argp1 = 0 ;
61897   int res1 = 0 ;
61898   PyObject *swig_obj[1] ;
61899   char *result = 0 ;
61900 
61901   if (!args) SWIG_fail;
61902   swig_obj[0] = args;
61903   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_duplexT, 0 |  0 );
61904   if (!SWIG_IsOK(res1)) {
61905     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "duplexT_structure_get" "', argument " "1"" of type '" "duplexT *""'");
61906   }
61907   arg1 = reinterpret_cast< duplexT * >(argp1);
61908   result = (char *) ((arg1)->structure);
61909   resultobj = SWIG_FromCharPtr((const char *)result);
61910   return resultobj;
61911 fail:
61912   return NULL;
61913 }
61914 
61915 
_wrap_duplexT_energy_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)61916 SWIGINTERN PyObject *_wrap_duplexT_energy_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
61917   PyObject *resultobj = 0;
61918   duplexT *arg1 = (duplexT *) 0 ;
61919   float arg2 ;
61920   void *argp1 = 0 ;
61921   int res1 = 0 ;
61922   float val2 ;
61923   int ecode2 = 0 ;
61924   PyObject *swig_obj[2] ;
61925 
61926   if (!SWIG_Python_UnpackTuple(args, "duplexT_energy_set", 2, 2, swig_obj)) SWIG_fail;
61927   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_duplexT, 0 |  0 );
61928   if (!SWIG_IsOK(res1)) {
61929     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "duplexT_energy_set" "', argument " "1"" of type '" "duplexT *""'");
61930   }
61931   arg1 = reinterpret_cast< duplexT * >(argp1);
61932   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
61933   if (!SWIG_IsOK(ecode2)) {
61934     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "duplexT_energy_set" "', argument " "2"" of type '" "float""'");
61935   }
61936   arg2 = static_cast< float >(val2);
61937   if (arg1) (arg1)->energy = arg2;
61938   resultobj = SWIG_Py_Void();
61939   return resultobj;
61940 fail:
61941   return NULL;
61942 }
61943 
61944 
_wrap_duplexT_energy_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)61945 SWIGINTERN PyObject *_wrap_duplexT_energy_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
61946   PyObject *resultobj = 0;
61947   duplexT *arg1 = (duplexT *) 0 ;
61948   void *argp1 = 0 ;
61949   int res1 = 0 ;
61950   PyObject *swig_obj[1] ;
61951   float result;
61952 
61953   if (!args) SWIG_fail;
61954   swig_obj[0] = args;
61955   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_duplexT, 0 |  0 );
61956   if (!SWIG_IsOK(res1)) {
61957     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "duplexT_energy_get" "', argument " "1"" of type '" "duplexT *""'");
61958   }
61959   arg1 = reinterpret_cast< duplexT * >(argp1);
61960   result = (float) ((arg1)->energy);
61961   resultobj = SWIG_From_float(static_cast< float >(result));
61962   return resultobj;
61963 fail:
61964   return NULL;
61965 }
61966 
61967 
_wrap_delete_duplexT(PyObject * SWIGUNUSEDPARM (self),PyObject * args)61968 SWIGINTERN PyObject *_wrap_delete_duplexT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
61969   PyObject *resultobj = 0;
61970   duplexT *arg1 = (duplexT *) 0 ;
61971   void *argp1 = 0 ;
61972   int res1 = 0 ;
61973   PyObject *swig_obj[1] ;
61974 
61975   if (!args) SWIG_fail;
61976   swig_obj[0] = args;
61977   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_duplexT, SWIG_POINTER_DISOWN |  0 );
61978   if (!SWIG_IsOK(res1)) {
61979     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_duplexT" "', argument " "1"" of type '" "duplexT *""'");
61980   }
61981   arg1 = reinterpret_cast< duplexT * >(argp1);
61982   {
61983     try {
61984       delete_duplexT(arg1);
61985     } catch (const std::exception& e) {
61986       SWIG_exception(SWIG_RuntimeError, e.what());
61987     }
61988   }
61989   resultobj = SWIG_Py_Void();
61990   return resultobj;
61991 fail:
61992   return NULL;
61993 }
61994 
61995 
duplexT_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)61996 SWIGINTERN PyObject *duplexT_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
61997   PyObject *obj;
61998   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
61999   SWIG_TypeNewClientData(SWIGTYPE_p_duplexT, SWIG_NewClientData(obj));
62000   return SWIG_Py_Void();
62001 }
62002 
_wrap_duplex_list_t_i_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)62003 SWIGINTERN PyObject *_wrap_duplex_list_t_i_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62004   PyObject *resultobj = 0;
62005   duplex_list_t *arg1 = (duplex_list_t *) 0 ;
62006   int arg2 ;
62007   void *argp1 = 0 ;
62008   int res1 = 0 ;
62009   int val2 ;
62010   int ecode2 = 0 ;
62011   PyObject *swig_obj[2] ;
62012 
62013   if (!SWIG_Python_UnpackTuple(args, "duplex_list_t_i_set", 2, 2, swig_obj)) SWIG_fail;
62014   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_duplex_list_t, 0 |  0 );
62015   if (!SWIG_IsOK(res1)) {
62016     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "duplex_list_t_i_set" "', argument " "1"" of type '" "duplex_list_t *""'");
62017   }
62018   arg1 = reinterpret_cast< duplex_list_t * >(argp1);
62019   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
62020   if (!SWIG_IsOK(ecode2)) {
62021     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "duplex_list_t_i_set" "', argument " "2"" of type '" "int""'");
62022   }
62023   arg2 = static_cast< int >(val2);
62024   if (arg1) (arg1)->i = arg2;
62025   resultobj = SWIG_Py_Void();
62026   return resultobj;
62027 fail:
62028   return NULL;
62029 }
62030 
62031 
_wrap_duplex_list_t_i_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)62032 SWIGINTERN PyObject *_wrap_duplex_list_t_i_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62033   PyObject *resultobj = 0;
62034   duplex_list_t *arg1 = (duplex_list_t *) 0 ;
62035   void *argp1 = 0 ;
62036   int res1 = 0 ;
62037   PyObject *swig_obj[1] ;
62038   int result;
62039 
62040   if (!args) SWIG_fail;
62041   swig_obj[0] = args;
62042   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_duplex_list_t, 0 |  0 );
62043   if (!SWIG_IsOK(res1)) {
62044     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "duplex_list_t_i_get" "', argument " "1"" of type '" "duplex_list_t *""'");
62045   }
62046   arg1 = reinterpret_cast< duplex_list_t * >(argp1);
62047   result = (int) ((arg1)->i);
62048   resultobj = SWIG_From_int(static_cast< int >(result));
62049   return resultobj;
62050 fail:
62051   return NULL;
62052 }
62053 
62054 
_wrap_duplex_list_t_j_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)62055 SWIGINTERN PyObject *_wrap_duplex_list_t_j_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62056   PyObject *resultobj = 0;
62057   duplex_list_t *arg1 = (duplex_list_t *) 0 ;
62058   int arg2 ;
62059   void *argp1 = 0 ;
62060   int res1 = 0 ;
62061   int val2 ;
62062   int ecode2 = 0 ;
62063   PyObject *swig_obj[2] ;
62064 
62065   if (!SWIG_Python_UnpackTuple(args, "duplex_list_t_j_set", 2, 2, swig_obj)) SWIG_fail;
62066   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_duplex_list_t, 0 |  0 );
62067   if (!SWIG_IsOK(res1)) {
62068     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "duplex_list_t_j_set" "', argument " "1"" of type '" "duplex_list_t *""'");
62069   }
62070   arg1 = reinterpret_cast< duplex_list_t * >(argp1);
62071   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
62072   if (!SWIG_IsOK(ecode2)) {
62073     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "duplex_list_t_j_set" "', argument " "2"" of type '" "int""'");
62074   }
62075   arg2 = static_cast< int >(val2);
62076   if (arg1) (arg1)->j = arg2;
62077   resultobj = SWIG_Py_Void();
62078   return resultobj;
62079 fail:
62080   return NULL;
62081 }
62082 
62083 
_wrap_duplex_list_t_j_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)62084 SWIGINTERN PyObject *_wrap_duplex_list_t_j_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62085   PyObject *resultobj = 0;
62086   duplex_list_t *arg1 = (duplex_list_t *) 0 ;
62087   void *argp1 = 0 ;
62088   int res1 = 0 ;
62089   PyObject *swig_obj[1] ;
62090   int result;
62091 
62092   if (!args) SWIG_fail;
62093   swig_obj[0] = args;
62094   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_duplex_list_t, 0 |  0 );
62095   if (!SWIG_IsOK(res1)) {
62096     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "duplex_list_t_j_get" "', argument " "1"" of type '" "duplex_list_t *""'");
62097   }
62098   arg1 = reinterpret_cast< duplex_list_t * >(argp1);
62099   result = (int) ((arg1)->j);
62100   resultobj = SWIG_From_int(static_cast< int >(result));
62101   return resultobj;
62102 fail:
62103   return NULL;
62104 }
62105 
62106 
_wrap_duplex_list_t_energy_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)62107 SWIGINTERN PyObject *_wrap_duplex_list_t_energy_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62108   PyObject *resultobj = 0;
62109   duplex_list_t *arg1 = (duplex_list_t *) 0 ;
62110   float arg2 ;
62111   void *argp1 = 0 ;
62112   int res1 = 0 ;
62113   float val2 ;
62114   int ecode2 = 0 ;
62115   PyObject *swig_obj[2] ;
62116 
62117   if (!SWIG_Python_UnpackTuple(args, "duplex_list_t_energy_set", 2, 2, swig_obj)) SWIG_fail;
62118   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_duplex_list_t, 0 |  0 );
62119   if (!SWIG_IsOK(res1)) {
62120     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "duplex_list_t_energy_set" "', argument " "1"" of type '" "duplex_list_t *""'");
62121   }
62122   arg1 = reinterpret_cast< duplex_list_t * >(argp1);
62123   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
62124   if (!SWIG_IsOK(ecode2)) {
62125     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "duplex_list_t_energy_set" "', argument " "2"" of type '" "float""'");
62126   }
62127   arg2 = static_cast< float >(val2);
62128   if (arg1) (arg1)->energy = arg2;
62129   resultobj = SWIG_Py_Void();
62130   return resultobj;
62131 fail:
62132   return NULL;
62133 }
62134 
62135 
_wrap_duplex_list_t_energy_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)62136 SWIGINTERN PyObject *_wrap_duplex_list_t_energy_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62137   PyObject *resultobj = 0;
62138   duplex_list_t *arg1 = (duplex_list_t *) 0 ;
62139   void *argp1 = 0 ;
62140   int res1 = 0 ;
62141   PyObject *swig_obj[1] ;
62142   float result;
62143 
62144   if (!args) SWIG_fail;
62145   swig_obj[0] = args;
62146   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_duplex_list_t, 0 |  0 );
62147   if (!SWIG_IsOK(res1)) {
62148     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "duplex_list_t_energy_get" "', argument " "1"" of type '" "duplex_list_t *""'");
62149   }
62150   arg1 = reinterpret_cast< duplex_list_t * >(argp1);
62151   result = (float) ((arg1)->energy);
62152   resultobj = SWIG_From_float(static_cast< float >(result));
62153   return resultobj;
62154 fail:
62155   return NULL;
62156 }
62157 
62158 
_wrap_duplex_list_t_structure_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)62159 SWIGINTERN PyObject *_wrap_duplex_list_t_structure_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62160   PyObject *resultobj = 0;
62161   duplex_list_t *arg1 = (duplex_list_t *) 0 ;
62162   char *arg2 = (char *) 0 ;
62163   void *argp1 = 0 ;
62164   int res1 = 0 ;
62165   int res2 ;
62166   char *buf2 = 0 ;
62167   int alloc2 = 0 ;
62168   PyObject *swig_obj[2] ;
62169 
62170   if (!SWIG_Python_UnpackTuple(args, "duplex_list_t_structure_set", 2, 2, swig_obj)) SWIG_fail;
62171   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_duplex_list_t, 0 |  0 );
62172   if (!SWIG_IsOK(res1)) {
62173     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "duplex_list_t_structure_set" "', argument " "1"" of type '" "duplex_list_t *""'");
62174   }
62175   arg1 = reinterpret_cast< duplex_list_t * >(argp1);
62176   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
62177   if (!SWIG_IsOK(res2)) {
62178     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "duplex_list_t_structure_set" "', argument " "2"" of type '" "char *""'");
62179   }
62180   arg2 = reinterpret_cast< char * >(buf2);
62181   if (arg1->structure) delete[] arg1->structure;
62182   if (arg2) {
62183     size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1;
62184     arg1->structure = (char *)reinterpret_cast< char* >(memcpy(new char[size], reinterpret_cast< const char * >(arg2), sizeof(char)*(size)));
62185   } else {
62186     arg1->structure = 0;
62187   }
62188   resultobj = SWIG_Py_Void();
62189   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
62190   return resultobj;
62191 fail:
62192   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
62193   return NULL;
62194 }
62195 
62196 
_wrap_duplex_list_t_structure_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)62197 SWIGINTERN PyObject *_wrap_duplex_list_t_structure_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62198   PyObject *resultobj = 0;
62199   duplex_list_t *arg1 = (duplex_list_t *) 0 ;
62200   void *argp1 = 0 ;
62201   int res1 = 0 ;
62202   PyObject *swig_obj[1] ;
62203   char *result = 0 ;
62204 
62205   if (!args) SWIG_fail;
62206   swig_obj[0] = args;
62207   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_duplex_list_t, 0 |  0 );
62208   if (!SWIG_IsOK(res1)) {
62209     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "duplex_list_t_structure_get" "', argument " "1"" of type '" "duplex_list_t *""'");
62210   }
62211   arg1 = reinterpret_cast< duplex_list_t * >(argp1);
62212   result = (char *) ((arg1)->structure);
62213   resultobj = SWIG_FromCharPtr((const char *)result);
62214   return resultobj;
62215 fail:
62216   return NULL;
62217 }
62218 
62219 
_wrap_delete_duplex_list_t(PyObject * SWIGUNUSEDPARM (self),PyObject * args)62220 SWIGINTERN PyObject *_wrap_delete_duplex_list_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62221   PyObject *resultobj = 0;
62222   duplex_list_t *arg1 = (duplex_list_t *) 0 ;
62223   void *argp1 = 0 ;
62224   int res1 = 0 ;
62225   PyObject *swig_obj[1] ;
62226 
62227   if (!args) SWIG_fail;
62228   swig_obj[0] = args;
62229   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_duplex_list_t, SWIG_POINTER_DISOWN |  0 );
62230   if (!SWIG_IsOK(res1)) {
62231     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_duplex_list_t" "', argument " "1"" of type '" "duplex_list_t *""'");
62232   }
62233   arg1 = reinterpret_cast< duplex_list_t * >(argp1);
62234   {
62235     try {
62236       delete_duplex_list_t(arg1);
62237     } catch (const std::exception& e) {
62238       SWIG_exception(SWIG_RuntimeError, e.what());
62239     }
62240   }
62241   resultobj = SWIG_Py_Void();
62242   return resultobj;
62243 fail:
62244   return NULL;
62245 }
62246 
62247 
_wrap_new_duplex_list_t(PyObject * SWIGUNUSEDPARM (self),PyObject * args)62248 SWIGINTERN PyObject *_wrap_new_duplex_list_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62249   PyObject *resultobj = 0;
62250   duplex_list_t *result = 0 ;
62251 
62252   if (!SWIG_Python_UnpackTuple(args, "new_duplex_list_t", 0, 0, 0)) SWIG_fail;
62253   {
62254     try {
62255       result = (duplex_list_t *)new duplex_list_t();
62256     } catch (const std::exception& e) {
62257       SWIG_exception(SWIG_RuntimeError, e.what());
62258     }
62259   }
62260   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_duplex_list_t, SWIG_POINTER_NEW |  0 );
62261   return resultobj;
62262 fail:
62263   return NULL;
62264 }
62265 
62266 
duplex_list_t_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)62267 SWIGINTERN PyObject *duplex_list_t_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62268   PyObject *obj;
62269   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
62270   SWIG_TypeNewClientData(SWIGTYPE_p_duplex_list_t, SWIG_NewClientData(obj));
62271   return SWIG_Py_Void();
62272 }
62273 
duplex_list_t_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)62274 SWIGINTERN PyObject *duplex_list_t_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62275   return SWIG_Python_InitShadowInstance(args);
62276 }
62277 
_wrap_DuplexVector_iterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)62278 SWIGINTERN PyObject *_wrap_DuplexVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62279   PyObject *resultobj = 0;
62280   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
62281   PyObject **arg2 = (PyObject **) 0 ;
62282   void *argp1 = 0 ;
62283   int res1 = 0 ;
62284   PyObject *swig_obj[1] ;
62285   swig::SwigPyIterator *result = 0 ;
62286 
62287   arg2 = &swig_obj[0];
62288   if (!args) SWIG_fail;
62289   swig_obj[0] = args;
62290   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
62291   if (!SWIG_IsOK(res1)) {
62292     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_iterator" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
62293   }
62294   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
62295   {
62296     try {
62297       result = (swig::SwigPyIterator *)std_vector_Sl_duplex_list_t_Sg__iterator(arg1,arg2);
62298     } catch (const std::exception& e) {
62299       SWIG_exception(SWIG_RuntimeError, e.what());
62300     }
62301   }
62302   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
62303   return resultobj;
62304 fail:
62305   return NULL;
62306 }
62307 
62308 
_wrap_DuplexVector___nonzero__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)62309 SWIGINTERN PyObject *_wrap_DuplexVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62310   PyObject *resultobj = 0;
62311   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
62312   void *argp1 = 0 ;
62313   int res1 = 0 ;
62314   PyObject *swig_obj[1] ;
62315   bool result;
62316 
62317   if (!args) SWIG_fail;
62318   swig_obj[0] = args;
62319   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
62320   if (!SWIG_IsOK(res1)) {
62321     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector___nonzero__" "', argument " "1"" of type '" "std::vector< duplex_list_t > const *""'");
62322   }
62323   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
62324   {
62325     try {
62326       result = (bool)std_vector_Sl_duplex_list_t_Sg____nonzero__((std::vector< duplex_list_t > const *)arg1);
62327     } catch (const std::exception& e) {
62328       SWIG_exception(SWIG_RuntimeError, e.what());
62329     }
62330   }
62331   resultobj = SWIG_From_bool(static_cast< bool >(result));
62332   return resultobj;
62333 fail:
62334   return NULL;
62335 }
62336 
62337 
_wrap_DuplexVector___bool__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)62338 SWIGINTERN PyObject *_wrap_DuplexVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62339   PyObject *resultobj = 0;
62340   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
62341   void *argp1 = 0 ;
62342   int res1 = 0 ;
62343   PyObject *swig_obj[1] ;
62344   bool result;
62345 
62346   if (!args) SWIG_fail;
62347   swig_obj[0] = args;
62348   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
62349   if (!SWIG_IsOK(res1)) {
62350     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector___bool__" "', argument " "1"" of type '" "std::vector< duplex_list_t > const *""'");
62351   }
62352   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
62353   {
62354     try {
62355       result = (bool)std_vector_Sl_duplex_list_t_Sg____bool__((std::vector< duplex_list_t > const *)arg1);
62356     } catch (const std::exception& e) {
62357       SWIG_exception(SWIG_RuntimeError, e.what());
62358     }
62359   }
62360   resultobj = SWIG_From_bool(static_cast< bool >(result));
62361   return resultobj;
62362 fail:
62363   return NULL;
62364 }
62365 
62366 
_wrap_DuplexVector___len__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)62367 SWIGINTERN PyObject *_wrap_DuplexVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
62368   PyObject *resultobj = 0;
62369   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
62370   void *argp1 = 0 ;
62371   int res1 = 0 ;
62372   PyObject *swig_obj[1] ;
62373   std::vector< duplex_list_t >::size_type result;
62374 
62375   if (!args) SWIG_fail;
62376   swig_obj[0] = args;
62377   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
62378   if (!SWIG_IsOK(res1)) {
62379     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector___len__" "', argument " "1"" of type '" "std::vector< duplex_list_t > const *""'");
62380   }
62381   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
62382   {
62383     try {
62384       result = std_vector_Sl_duplex_list_t_Sg____len__((std::vector< duplex_list_t > const *)arg1);
62385     } catch (const std::exception& e) {
62386       SWIG_exception(SWIG_RuntimeError, e.what());
62387     }
62388   }
62389   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
62390   return resultobj;
62391 fail:
62392   return NULL;
62393 }
62394 
62395 
_wrap_DuplexVector___getslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)62396 SWIGINTERN PyObject *_wrap_DuplexVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
62397   PyObject *resultobj = 0;
62398   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
62399   std::vector< duplex_list_t >::difference_type arg2 ;
62400   std::vector< duplex_list_t >::difference_type arg3 ;
62401   void *argp1 = 0 ;
62402   int res1 = 0 ;
62403   ptrdiff_t val2 ;
62404   int ecode2 = 0 ;
62405   ptrdiff_t val3 ;
62406   int ecode3 = 0 ;
62407   PyObject * obj0 = 0 ;
62408   PyObject * obj1 = 0 ;
62409   PyObject * obj2 = 0 ;
62410   char * kwnames[] = {
62411     (char *)"self",  (char *)"i",  (char *)"j",  NULL
62412   };
62413   std::vector< duplex_list_t,std::allocator< duplex_list_t > > *result = 0 ;
62414 
62415   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:DuplexVector___getslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
62416   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
62417   if (!SWIG_IsOK(res1)) {
62418     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector___getslice__" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
62419   }
62420   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
62421   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
62422   if (!SWIG_IsOK(ecode2)) {
62423     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DuplexVector___getslice__" "', argument " "2"" of type '" "std::vector< duplex_list_t >::difference_type""'");
62424   }
62425   arg2 = static_cast< std::vector< duplex_list_t >::difference_type >(val2);
62426   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
62427   if (!SWIG_IsOK(ecode3)) {
62428     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DuplexVector___getslice__" "', argument " "3"" of type '" "std::vector< duplex_list_t >::difference_type""'");
62429   }
62430   arg3 = static_cast< std::vector< duplex_list_t >::difference_type >(val3);
62431   {
62432     try {
62433       try {
62434         result = (std::vector< duplex_list_t,std::allocator< duplex_list_t > > *)std_vector_Sl_duplex_list_t_Sg____getslice__(arg1,arg2,arg3);
62435       } catch(std::out_of_range &_e) {
62436         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
62437       } catch(std::invalid_argument &_e) {
62438         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
62439       }
62440     } catch (const std::exception& e) {
62441       SWIG_exception(SWIG_RuntimeError, e.what());
62442     }
62443   }
62444   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, SWIG_POINTER_OWN |  0 );
62445   return resultobj;
62446 fail:
62447   return NULL;
62448 }
62449 
62450 
_wrap_DuplexVector___setslice____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)62451 SWIGINTERN PyObject *_wrap_DuplexVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
62452   PyObject *resultobj = 0;
62453   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
62454   std::vector< duplex_list_t >::difference_type arg2 ;
62455   std::vector< duplex_list_t >::difference_type arg3 ;
62456   void *argp1 = 0 ;
62457   int res1 = 0 ;
62458   ptrdiff_t val2 ;
62459   int ecode2 = 0 ;
62460   ptrdiff_t val3 ;
62461   int ecode3 = 0 ;
62462 
62463   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
62464   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
62465   if (!SWIG_IsOK(res1)) {
62466     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector___setslice__" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
62467   }
62468   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
62469   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
62470   if (!SWIG_IsOK(ecode2)) {
62471     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DuplexVector___setslice__" "', argument " "2"" of type '" "std::vector< duplex_list_t >::difference_type""'");
62472   }
62473   arg2 = static_cast< std::vector< duplex_list_t >::difference_type >(val2);
62474   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
62475   if (!SWIG_IsOK(ecode3)) {
62476     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DuplexVector___setslice__" "', argument " "3"" of type '" "std::vector< duplex_list_t >::difference_type""'");
62477   }
62478   arg3 = static_cast< std::vector< duplex_list_t >::difference_type >(val3);
62479   {
62480     try {
62481       try {
62482         std_vector_Sl_duplex_list_t_Sg____setslice____SWIG_0(arg1,arg2,arg3);
62483       } catch(std::out_of_range &_e) {
62484         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
62485       } catch(std::invalid_argument &_e) {
62486         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
62487       }
62488     } catch (const std::exception& e) {
62489       SWIG_exception(SWIG_RuntimeError, e.what());
62490     }
62491   }
62492   resultobj = SWIG_Py_Void();
62493   return resultobj;
62494 fail:
62495   return NULL;
62496 }
62497 
62498 
_wrap_DuplexVector___setslice____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)62499 SWIGINTERN PyObject *_wrap_DuplexVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
62500   PyObject *resultobj = 0;
62501   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
62502   std::vector< duplex_list_t >::difference_type arg2 ;
62503   std::vector< duplex_list_t >::difference_type arg3 ;
62504   std::vector< duplex_list_t,std::allocator< duplex_list_t > > *arg4 = 0 ;
62505   void *argp1 = 0 ;
62506   int res1 = 0 ;
62507   ptrdiff_t val2 ;
62508   int ecode2 = 0 ;
62509   ptrdiff_t val3 ;
62510   int ecode3 = 0 ;
62511   int res4 = SWIG_OLDOBJ ;
62512 
62513   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
62514   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
62515   if (!SWIG_IsOK(res1)) {
62516     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector___setslice__" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
62517   }
62518   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
62519   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
62520   if (!SWIG_IsOK(ecode2)) {
62521     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DuplexVector___setslice__" "', argument " "2"" of type '" "std::vector< duplex_list_t >::difference_type""'");
62522   }
62523   arg2 = static_cast< std::vector< duplex_list_t >::difference_type >(val2);
62524   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
62525   if (!SWIG_IsOK(ecode3)) {
62526     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DuplexVector___setslice__" "', argument " "3"" of type '" "std::vector< duplex_list_t >::difference_type""'");
62527   }
62528   arg3 = static_cast< std::vector< duplex_list_t >::difference_type >(val3);
62529   {
62530     std::vector< duplex_list_t,std::allocator< duplex_list_t > > *ptr = (std::vector< duplex_list_t,std::allocator< duplex_list_t > > *)0;
62531     res4 = swig::asptr(swig_obj[3], &ptr);
62532     if (!SWIG_IsOK(res4)) {
62533       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DuplexVector___setslice__" "', argument " "4"" of type '" "std::vector< duplex_list_t,std::allocator< duplex_list_t > > const &""'");
62534     }
62535     if (!ptr) {
62536       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DuplexVector___setslice__" "', argument " "4"" of type '" "std::vector< duplex_list_t,std::allocator< duplex_list_t > > const &""'");
62537     }
62538     arg4 = ptr;
62539   }
62540   {
62541     try {
62542       try {
62543         std_vector_Sl_duplex_list_t_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< duplex_list_t,std::allocator< duplex_list_t > > const &)*arg4);
62544       } catch(std::out_of_range &_e) {
62545         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
62546       } catch(std::invalid_argument &_e) {
62547         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
62548       }
62549     } catch (const std::exception& e) {
62550       SWIG_exception(SWIG_RuntimeError, e.what());
62551     }
62552   }
62553   resultobj = SWIG_Py_Void();
62554   if (SWIG_IsNewObj(res4)) delete arg4;
62555   return resultobj;
62556 fail:
62557   if (SWIG_IsNewObj(res4)) delete arg4;
62558   return NULL;
62559 }
62560 
62561 
_wrap_DuplexVector___setslice__(PyObject * self,PyObject * args)62562 SWIGINTERN PyObject *_wrap_DuplexVector___setslice__(PyObject *self, PyObject *args) {
62563   Py_ssize_t argc;
62564   PyObject *argv[5] = {
62565     0
62566   };
62567 
62568   if (!(argc = SWIG_Python_UnpackTuple(args, "DuplexVector___setslice__", 0, 4, argv))) SWIG_fail;
62569   --argc;
62570   if (argc == 3) {
62571     int _v;
62572     int res = swig::asptr(argv[0], (std::vector< duplex_list_t,std::allocator< duplex_list_t > >**)(0));
62573     _v = SWIG_CheckState(res);
62574     if (_v) {
62575       {
62576         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
62577         _v = SWIG_CheckState(res);
62578       }
62579       if (_v) {
62580         {
62581           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
62582           _v = SWIG_CheckState(res);
62583         }
62584         if (_v) {
62585           return _wrap_DuplexVector___setslice____SWIG_0(self, argc, argv);
62586         }
62587       }
62588     }
62589   }
62590   if (argc == 4) {
62591     int _v;
62592     int res = swig::asptr(argv[0], (std::vector< duplex_list_t,std::allocator< duplex_list_t > >**)(0));
62593     _v = SWIG_CheckState(res);
62594     if (_v) {
62595       {
62596         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
62597         _v = SWIG_CheckState(res);
62598       }
62599       if (_v) {
62600         {
62601           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
62602           _v = SWIG_CheckState(res);
62603         }
62604         if (_v) {
62605           int res = swig::asptr(argv[3], (std::vector< duplex_list_t,std::allocator< duplex_list_t > >**)(0));
62606           _v = SWIG_CheckState(res);
62607           if (_v) {
62608             return _wrap_DuplexVector___setslice____SWIG_1(self, argc, argv);
62609           }
62610         }
62611       }
62612     }
62613   }
62614 
62615 fail:
62616   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DuplexVector___setslice__'.\n"
62617     "  Possible C/C++ prototypes are:\n"
62618     "    std::vector< duplex_list_t >::__setslice__(std::vector< duplex_list_t >::difference_type,std::vector< duplex_list_t >::difference_type)\n"
62619     "    std::vector< duplex_list_t >::__setslice__(std::vector< duplex_list_t >::difference_type,std::vector< duplex_list_t >::difference_type,std::vector< duplex_list_t,std::allocator< duplex_list_t > > const &)\n");
62620   return 0;
62621 }
62622 
62623 
_wrap_DuplexVector___delslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)62624 SWIGINTERN PyObject *_wrap_DuplexVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
62625   PyObject *resultobj = 0;
62626   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
62627   std::vector< duplex_list_t >::difference_type arg2 ;
62628   std::vector< duplex_list_t >::difference_type arg3 ;
62629   void *argp1 = 0 ;
62630   int res1 = 0 ;
62631   ptrdiff_t val2 ;
62632   int ecode2 = 0 ;
62633   ptrdiff_t val3 ;
62634   int ecode3 = 0 ;
62635   PyObject * obj0 = 0 ;
62636   PyObject * obj1 = 0 ;
62637   PyObject * obj2 = 0 ;
62638   char * kwnames[] = {
62639     (char *)"self",  (char *)"i",  (char *)"j",  NULL
62640   };
62641 
62642   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:DuplexVector___delslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
62643   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
62644   if (!SWIG_IsOK(res1)) {
62645     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector___delslice__" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
62646   }
62647   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
62648   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
62649   if (!SWIG_IsOK(ecode2)) {
62650     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DuplexVector___delslice__" "', argument " "2"" of type '" "std::vector< duplex_list_t >::difference_type""'");
62651   }
62652   arg2 = static_cast< std::vector< duplex_list_t >::difference_type >(val2);
62653   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
62654   if (!SWIG_IsOK(ecode3)) {
62655     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DuplexVector___delslice__" "', argument " "3"" of type '" "std::vector< duplex_list_t >::difference_type""'");
62656   }
62657   arg3 = static_cast< std::vector< duplex_list_t >::difference_type >(val3);
62658   {
62659     try {
62660       try {
62661         std_vector_Sl_duplex_list_t_Sg____delslice__(arg1,arg2,arg3);
62662       } catch(std::out_of_range &_e) {
62663         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
62664       } catch(std::invalid_argument &_e) {
62665         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
62666       }
62667     } catch (const std::exception& e) {
62668       SWIG_exception(SWIG_RuntimeError, e.what());
62669     }
62670   }
62671   resultobj = SWIG_Py_Void();
62672   return resultobj;
62673 fail:
62674   return NULL;
62675 }
62676 
62677 
_wrap_DuplexVector___delitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)62678 SWIGINTERN PyObject *_wrap_DuplexVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
62679   PyObject *resultobj = 0;
62680   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
62681   std::vector< duplex_list_t >::difference_type arg2 ;
62682   void *argp1 = 0 ;
62683   int res1 = 0 ;
62684   ptrdiff_t val2 ;
62685   int ecode2 = 0 ;
62686 
62687   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
62688   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
62689   if (!SWIG_IsOK(res1)) {
62690     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector___delitem__" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
62691   }
62692   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
62693   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
62694   if (!SWIG_IsOK(ecode2)) {
62695     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DuplexVector___delitem__" "', argument " "2"" of type '" "std::vector< duplex_list_t >::difference_type""'");
62696   }
62697   arg2 = static_cast< std::vector< duplex_list_t >::difference_type >(val2);
62698   {
62699     try {
62700       try {
62701         std_vector_Sl_duplex_list_t_Sg____delitem____SWIG_0(arg1,arg2);
62702       } catch(std::out_of_range &_e) {
62703         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
62704       } catch(std::invalid_argument &_e) {
62705         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
62706       }
62707     } catch (const std::exception& e) {
62708       SWIG_exception(SWIG_RuntimeError, e.what());
62709     }
62710   }
62711   resultobj = SWIG_Py_Void();
62712   return resultobj;
62713 fail:
62714   return NULL;
62715 }
62716 
62717 
_wrap_DuplexVector___getitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)62718 SWIGINTERN PyObject *_wrap_DuplexVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
62719   PyObject *resultobj = 0;
62720   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
62721   PySliceObject *arg2 = (PySliceObject *) 0 ;
62722   void *argp1 = 0 ;
62723   int res1 = 0 ;
62724   std::vector< duplex_list_t,std::allocator< duplex_list_t > > *result = 0 ;
62725 
62726   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
62727   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
62728   if (!SWIG_IsOK(res1)) {
62729     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector___getitem__" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
62730   }
62731   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
62732   {
62733     if (!PySlice_Check(swig_obj[1])) {
62734       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DuplexVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
62735     }
62736     arg2 = (PySliceObject *) swig_obj[1];
62737   }
62738   {
62739     try {
62740       try {
62741         result = (std::vector< duplex_list_t,std::allocator< duplex_list_t > > *)std_vector_Sl_duplex_list_t_Sg____getitem____SWIG_0(arg1,arg2);
62742       } catch(std::out_of_range &_e) {
62743         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
62744       } catch(std::invalid_argument &_e) {
62745         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
62746       }
62747     } catch (const std::exception& e) {
62748       SWIG_exception(SWIG_RuntimeError, e.what());
62749     }
62750   }
62751   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, SWIG_POINTER_OWN |  0 );
62752   return resultobj;
62753 fail:
62754   return NULL;
62755 }
62756 
62757 
_wrap_DuplexVector___setitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)62758 SWIGINTERN PyObject *_wrap_DuplexVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
62759   PyObject *resultobj = 0;
62760   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
62761   PySliceObject *arg2 = (PySliceObject *) 0 ;
62762   std::vector< duplex_list_t,std::allocator< duplex_list_t > > *arg3 = 0 ;
62763   void *argp1 = 0 ;
62764   int res1 = 0 ;
62765   int res3 = SWIG_OLDOBJ ;
62766 
62767   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
62768   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
62769   if (!SWIG_IsOK(res1)) {
62770     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector___setitem__" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
62771   }
62772   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
62773   {
62774     if (!PySlice_Check(swig_obj[1])) {
62775       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DuplexVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
62776     }
62777     arg2 = (PySliceObject *) swig_obj[1];
62778   }
62779   {
62780     std::vector< duplex_list_t,std::allocator< duplex_list_t > > *ptr = (std::vector< duplex_list_t,std::allocator< duplex_list_t > > *)0;
62781     res3 = swig::asptr(swig_obj[2], &ptr);
62782     if (!SWIG_IsOK(res3)) {
62783       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DuplexVector___setitem__" "', argument " "3"" of type '" "std::vector< duplex_list_t,std::allocator< duplex_list_t > > const &""'");
62784     }
62785     if (!ptr) {
62786       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DuplexVector___setitem__" "', argument " "3"" of type '" "std::vector< duplex_list_t,std::allocator< duplex_list_t > > const &""'");
62787     }
62788     arg3 = ptr;
62789   }
62790   {
62791     try {
62792       try {
62793         std_vector_Sl_duplex_list_t_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< duplex_list_t,std::allocator< duplex_list_t > > const &)*arg3);
62794       } catch(std::out_of_range &_e) {
62795         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
62796       } catch(std::invalid_argument &_e) {
62797         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
62798       }
62799     } catch (const std::exception& e) {
62800       SWIG_exception(SWIG_RuntimeError, e.what());
62801     }
62802   }
62803   resultobj = SWIG_Py_Void();
62804   if (SWIG_IsNewObj(res3)) delete arg3;
62805   return resultobj;
62806 fail:
62807   if (SWIG_IsNewObj(res3)) delete arg3;
62808   return NULL;
62809 }
62810 
62811 
_wrap_DuplexVector___setitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)62812 SWIGINTERN PyObject *_wrap_DuplexVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
62813   PyObject *resultobj = 0;
62814   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
62815   PySliceObject *arg2 = (PySliceObject *) 0 ;
62816   void *argp1 = 0 ;
62817   int res1 = 0 ;
62818 
62819   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
62820   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
62821   if (!SWIG_IsOK(res1)) {
62822     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector___setitem__" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
62823   }
62824   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
62825   {
62826     if (!PySlice_Check(swig_obj[1])) {
62827       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DuplexVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
62828     }
62829     arg2 = (PySliceObject *) swig_obj[1];
62830   }
62831   {
62832     try {
62833       try {
62834         std_vector_Sl_duplex_list_t_Sg____setitem____SWIG_1(arg1,arg2);
62835       } catch(std::out_of_range &_e) {
62836         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
62837       } catch(std::invalid_argument &_e) {
62838         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
62839       }
62840     } catch (const std::exception& e) {
62841       SWIG_exception(SWIG_RuntimeError, e.what());
62842     }
62843   }
62844   resultobj = SWIG_Py_Void();
62845   return resultobj;
62846 fail:
62847   return NULL;
62848 }
62849 
62850 
_wrap_DuplexVector___delitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)62851 SWIGINTERN PyObject *_wrap_DuplexVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
62852   PyObject *resultobj = 0;
62853   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
62854   PySliceObject *arg2 = (PySliceObject *) 0 ;
62855   void *argp1 = 0 ;
62856   int res1 = 0 ;
62857 
62858   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
62859   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
62860   if (!SWIG_IsOK(res1)) {
62861     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector___delitem__" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
62862   }
62863   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
62864   {
62865     if (!PySlice_Check(swig_obj[1])) {
62866       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DuplexVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
62867     }
62868     arg2 = (PySliceObject *) swig_obj[1];
62869   }
62870   {
62871     try {
62872       try {
62873         std_vector_Sl_duplex_list_t_Sg____delitem____SWIG_1(arg1,arg2);
62874       } catch(std::out_of_range &_e) {
62875         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
62876       } catch(std::invalid_argument &_e) {
62877         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
62878       }
62879     } catch (const std::exception& e) {
62880       SWIG_exception(SWIG_RuntimeError, e.what());
62881     }
62882   }
62883   resultobj = SWIG_Py_Void();
62884   return resultobj;
62885 fail:
62886   return NULL;
62887 }
62888 
62889 
_wrap_DuplexVector___delitem__(PyObject * self,PyObject * args)62890 SWIGINTERN PyObject *_wrap_DuplexVector___delitem__(PyObject *self, PyObject *args) {
62891   Py_ssize_t argc;
62892   PyObject *argv[3] = {
62893     0
62894   };
62895 
62896   if (!(argc = SWIG_Python_UnpackTuple(args, "DuplexVector___delitem__", 0, 2, argv))) SWIG_fail;
62897   --argc;
62898   if (argc == 2) {
62899     int _v;
62900     int res = swig::asptr(argv[0], (std::vector< duplex_list_t,std::allocator< duplex_list_t > >**)(0));
62901     _v = SWIG_CheckState(res);
62902     if (_v) {
62903       {
62904         _v = PySlice_Check(argv[1]);
62905       }
62906       if (_v) {
62907         return _wrap_DuplexVector___delitem____SWIG_1(self, argc, argv);
62908       }
62909     }
62910   }
62911   if (argc == 2) {
62912     int _v;
62913     int res = swig::asptr(argv[0], (std::vector< duplex_list_t,std::allocator< duplex_list_t > >**)(0));
62914     _v = SWIG_CheckState(res);
62915     if (_v) {
62916       {
62917         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
62918         _v = SWIG_CheckState(res);
62919       }
62920       if (_v) {
62921         return _wrap_DuplexVector___delitem____SWIG_0(self, argc, argv);
62922       }
62923     }
62924   }
62925 
62926 fail:
62927   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DuplexVector___delitem__'.\n"
62928     "  Possible C/C++ prototypes are:\n"
62929     "    std::vector< duplex_list_t >::__delitem__(std::vector< duplex_list_t >::difference_type)\n"
62930     "    std::vector< duplex_list_t >::__delitem__(PySliceObject *)\n");
62931   return 0;
62932 }
62933 
62934 
_wrap_DuplexVector___getitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)62935 SWIGINTERN PyObject *_wrap_DuplexVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
62936   PyObject *resultobj = 0;
62937   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
62938   std::vector< duplex_list_t >::difference_type arg2 ;
62939   void *argp1 = 0 ;
62940   int res1 = 0 ;
62941   ptrdiff_t val2 ;
62942   int ecode2 = 0 ;
62943   std::vector< duplex_list_t >::value_type *result = 0 ;
62944 
62945   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
62946   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
62947   if (!SWIG_IsOK(res1)) {
62948     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector___getitem__" "', argument " "1"" of type '" "std::vector< duplex_list_t > const *""'");
62949   }
62950   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
62951   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
62952   if (!SWIG_IsOK(ecode2)) {
62953     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DuplexVector___getitem__" "', argument " "2"" of type '" "std::vector< duplex_list_t >::difference_type""'");
62954   }
62955   arg2 = static_cast< std::vector< duplex_list_t >::difference_type >(val2);
62956   {
62957     try {
62958       try {
62959         result = (std::vector< duplex_list_t >::value_type *) &std_vector_Sl_duplex_list_t_Sg____getitem____SWIG_1((std::vector< duplex_list_t > const *)arg1,arg2);
62960       } catch(std::out_of_range &_e) {
62961         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
62962       }
62963     } catch (const std::exception& e) {
62964       SWIG_exception(SWIG_RuntimeError, e.what());
62965     }
62966   }
62967   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_duplex_list_t, 0 |  0 );
62968   (void)swig::container_owner<swig::traits<std::vector< duplex_list_t >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
62969   return resultobj;
62970 fail:
62971   return NULL;
62972 }
62973 
62974 
_wrap_DuplexVector___getitem__(PyObject * self,PyObject * args)62975 SWIGINTERN PyObject *_wrap_DuplexVector___getitem__(PyObject *self, PyObject *args) {
62976   Py_ssize_t argc;
62977   PyObject *argv[3] = {
62978     0
62979   };
62980 
62981   if (!(argc = SWIG_Python_UnpackTuple(args, "DuplexVector___getitem__", 0, 2, argv))) SWIG_fail;
62982   --argc;
62983   if (argc == 2) {
62984     int _v;
62985     int res = swig::asptr(argv[0], (std::vector< duplex_list_t,std::allocator< duplex_list_t > >**)(0));
62986     _v = SWIG_CheckState(res);
62987     if (_v) {
62988       {
62989         _v = PySlice_Check(argv[1]);
62990       }
62991       if (_v) {
62992         return _wrap_DuplexVector___getitem____SWIG_0(self, argc, argv);
62993       }
62994     }
62995   }
62996   if (argc == 2) {
62997     int _v;
62998     int res = swig::asptr(argv[0], (std::vector< duplex_list_t,std::allocator< duplex_list_t > >**)(0));
62999     _v = SWIG_CheckState(res);
63000     if (_v) {
63001       {
63002         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
63003         _v = SWIG_CheckState(res);
63004       }
63005       if (_v) {
63006         return _wrap_DuplexVector___getitem____SWIG_1(self, argc, argv);
63007       }
63008     }
63009   }
63010 
63011 fail:
63012   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DuplexVector___getitem__'.\n"
63013     "  Possible C/C++ prototypes are:\n"
63014     "    std::vector< duplex_list_t >::__getitem__(PySliceObject *)\n"
63015     "    std::vector< duplex_list_t >::__getitem__(std::vector< duplex_list_t >::difference_type) const\n");
63016   return 0;
63017 }
63018 
63019 
_wrap_DuplexVector___setitem____SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)63020 SWIGINTERN PyObject *_wrap_DuplexVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
63021   PyObject *resultobj = 0;
63022   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63023   std::vector< duplex_list_t >::difference_type arg2 ;
63024   std::vector< duplex_list_t >::value_type *arg3 = 0 ;
63025   void *argp1 = 0 ;
63026   int res1 = 0 ;
63027   ptrdiff_t val2 ;
63028   int ecode2 = 0 ;
63029   void *argp3 = 0 ;
63030   int res3 = 0 ;
63031 
63032   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
63033   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63034   if (!SWIG_IsOK(res1)) {
63035     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector___setitem__" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
63036   }
63037   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63038   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
63039   if (!SWIG_IsOK(ecode2)) {
63040     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DuplexVector___setitem__" "', argument " "2"" of type '" "std::vector< duplex_list_t >::difference_type""'");
63041   }
63042   arg2 = static_cast< std::vector< duplex_list_t >::difference_type >(val2);
63043   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_duplex_list_t,  0  | 0);
63044   if (!SWIG_IsOK(res3)) {
63045     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DuplexVector___setitem__" "', argument " "3"" of type '" "std::vector< duplex_list_t >::value_type const &""'");
63046   }
63047   if (!argp3) {
63048     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DuplexVector___setitem__" "', argument " "3"" of type '" "std::vector< duplex_list_t >::value_type const &""'");
63049   }
63050   arg3 = reinterpret_cast< std::vector< duplex_list_t >::value_type * >(argp3);
63051   {
63052     try {
63053       try {
63054         std_vector_Sl_duplex_list_t_Sg____setitem____SWIG_2(arg1,arg2,(duplex_list_t const &)*arg3);
63055       } catch(std::out_of_range &_e) {
63056         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
63057       }
63058     } catch (const std::exception& e) {
63059       SWIG_exception(SWIG_RuntimeError, e.what());
63060     }
63061   }
63062   resultobj = SWIG_Py_Void();
63063   return resultobj;
63064 fail:
63065   return NULL;
63066 }
63067 
63068 
_wrap_DuplexVector___setitem__(PyObject * self,PyObject * args)63069 SWIGINTERN PyObject *_wrap_DuplexVector___setitem__(PyObject *self, PyObject *args) {
63070   Py_ssize_t argc;
63071   PyObject *argv[4] = {
63072     0
63073   };
63074 
63075   if (!(argc = SWIG_Python_UnpackTuple(args, "DuplexVector___setitem__", 0, 3, argv))) SWIG_fail;
63076   --argc;
63077   if (argc == 2) {
63078     int _v;
63079     int res = swig::asptr(argv[0], (std::vector< duplex_list_t,std::allocator< duplex_list_t > >**)(0));
63080     _v = SWIG_CheckState(res);
63081     if (_v) {
63082       {
63083         _v = PySlice_Check(argv[1]);
63084       }
63085       if (_v) {
63086         return _wrap_DuplexVector___setitem____SWIG_1(self, argc, argv);
63087       }
63088     }
63089   }
63090   if (argc == 3) {
63091     int _v;
63092     int res = swig::asptr(argv[0], (std::vector< duplex_list_t,std::allocator< duplex_list_t > >**)(0));
63093     _v = SWIG_CheckState(res);
63094     if (_v) {
63095       {
63096         _v = PySlice_Check(argv[1]);
63097       }
63098       if (_v) {
63099         int res = swig::asptr(argv[2], (std::vector< duplex_list_t,std::allocator< duplex_list_t > >**)(0));
63100         _v = SWIG_CheckState(res);
63101         if (_v) {
63102           return _wrap_DuplexVector___setitem____SWIG_0(self, argc, argv);
63103         }
63104       }
63105     }
63106   }
63107   if (argc == 3) {
63108     int _v;
63109     int res = swig::asptr(argv[0], (std::vector< duplex_list_t,std::allocator< duplex_list_t > >**)(0));
63110     _v = SWIG_CheckState(res);
63111     if (_v) {
63112       {
63113         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
63114         _v = SWIG_CheckState(res);
63115       }
63116       if (_v) {
63117         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_duplex_list_t, SWIG_POINTER_NO_NULL | 0);
63118         _v = SWIG_CheckState(res);
63119         if (_v) {
63120           return _wrap_DuplexVector___setitem____SWIG_2(self, argc, argv);
63121         }
63122       }
63123     }
63124   }
63125 
63126 fail:
63127   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DuplexVector___setitem__'.\n"
63128     "  Possible C/C++ prototypes are:\n"
63129     "    std::vector< duplex_list_t >::__setitem__(PySliceObject *,std::vector< duplex_list_t,std::allocator< duplex_list_t > > const &)\n"
63130     "    std::vector< duplex_list_t >::__setitem__(PySliceObject *)\n"
63131     "    std::vector< duplex_list_t >::__setitem__(std::vector< duplex_list_t >::difference_type,std::vector< duplex_list_t >::value_type const &)\n");
63132   return 0;
63133 }
63134 
63135 
_wrap_DuplexVector_pop(PyObject * SWIGUNUSEDPARM (self),PyObject * args)63136 SWIGINTERN PyObject *_wrap_DuplexVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63137   PyObject *resultobj = 0;
63138   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63139   void *argp1 = 0 ;
63140   int res1 = 0 ;
63141   PyObject *swig_obj[1] ;
63142   std::vector< duplex_list_t >::value_type result;
63143 
63144   if (!args) SWIG_fail;
63145   swig_obj[0] = args;
63146   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63147   if (!SWIG_IsOK(res1)) {
63148     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_pop" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
63149   }
63150   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63151   {
63152     try {
63153       try {
63154         result = std_vector_Sl_duplex_list_t_Sg__pop(arg1);
63155       } catch(std::out_of_range &_e) {
63156         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
63157       }
63158     } catch (const std::exception& e) {
63159       SWIG_exception(SWIG_RuntimeError, e.what());
63160     }
63161   }
63162   resultobj = SWIG_NewPointerObj((new std::vector< duplex_list_t >::value_type(static_cast< const std::vector< duplex_list_t >::value_type& >(result))), SWIGTYPE_p_duplex_list_t, SWIG_POINTER_OWN |  0 );
63163   return resultobj;
63164 fail:
63165   return NULL;
63166 }
63167 
63168 
_wrap_DuplexVector_append(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)63169 SWIGINTERN PyObject *_wrap_DuplexVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
63170   PyObject *resultobj = 0;
63171   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63172   std::vector< duplex_list_t >::value_type *arg2 = 0 ;
63173   void *argp1 = 0 ;
63174   int res1 = 0 ;
63175   void *argp2 = 0 ;
63176   int res2 = 0 ;
63177   PyObject * obj0 = 0 ;
63178   PyObject * obj1 = 0 ;
63179   char * kwnames[] = {
63180     (char *)"self",  (char *)"x",  NULL
63181   };
63182 
63183   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:DuplexVector_append", kwnames, &obj0, &obj1)) SWIG_fail;
63184   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63185   if (!SWIG_IsOK(res1)) {
63186     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_append" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
63187   }
63188   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63189   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_duplex_list_t,  0  | 0);
63190   if (!SWIG_IsOK(res2)) {
63191     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DuplexVector_append" "', argument " "2"" of type '" "std::vector< duplex_list_t >::value_type const &""'");
63192   }
63193   if (!argp2) {
63194     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DuplexVector_append" "', argument " "2"" of type '" "std::vector< duplex_list_t >::value_type const &""'");
63195   }
63196   arg2 = reinterpret_cast< std::vector< duplex_list_t >::value_type * >(argp2);
63197   {
63198     try {
63199       std_vector_Sl_duplex_list_t_Sg__append(arg1,(duplex_list_t const &)*arg2);
63200     } catch (const std::exception& e) {
63201       SWIG_exception(SWIG_RuntimeError, e.what());
63202     }
63203   }
63204   resultobj = SWIG_Py_Void();
63205   return resultobj;
63206 fail:
63207   return NULL;
63208 }
63209 
63210 
_wrap_new_DuplexVector__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))63211 SWIGINTERN PyObject *_wrap_new_DuplexVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
63212   PyObject *resultobj = 0;
63213   std::vector< duplex_list_t > *result = 0 ;
63214 
63215   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
63216   {
63217     try {
63218       result = (std::vector< duplex_list_t > *)new std::vector< duplex_list_t >();
63219     } catch (const std::exception& e) {
63220       SWIG_exception(SWIG_RuntimeError, e.what());
63221     }
63222   }
63223   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, SWIG_POINTER_NEW |  0 );
63224   return resultobj;
63225 fail:
63226   return NULL;
63227 }
63228 
63229 
_wrap_new_DuplexVector__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)63230 SWIGINTERN PyObject *_wrap_new_DuplexVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
63231   PyObject *resultobj = 0;
63232   std::vector< duplex_list_t > *arg1 = 0 ;
63233   int res1 = SWIG_OLDOBJ ;
63234   std::vector< duplex_list_t > *result = 0 ;
63235 
63236   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
63237   {
63238     std::vector< duplex_list_t,std::allocator< duplex_list_t > > *ptr = (std::vector< duplex_list_t,std::allocator< duplex_list_t > > *)0;
63239     res1 = swig::asptr(swig_obj[0], &ptr);
63240     if (!SWIG_IsOK(res1)) {
63241       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DuplexVector" "', argument " "1"" of type '" "std::vector< duplex_list_t > const &""'");
63242     }
63243     if (!ptr) {
63244       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DuplexVector" "', argument " "1"" of type '" "std::vector< duplex_list_t > const &""'");
63245     }
63246     arg1 = ptr;
63247   }
63248   {
63249     try {
63250       result = (std::vector< duplex_list_t > *)new std::vector< duplex_list_t >((std::vector< duplex_list_t > const &)*arg1);
63251     } catch (const std::exception& e) {
63252       SWIG_exception(SWIG_RuntimeError, e.what());
63253     }
63254   }
63255   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, SWIG_POINTER_NEW |  0 );
63256   if (SWIG_IsNewObj(res1)) delete arg1;
63257   return resultobj;
63258 fail:
63259   if (SWIG_IsNewObj(res1)) delete arg1;
63260   return NULL;
63261 }
63262 
63263 
_wrap_DuplexVector_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)63264 SWIGINTERN PyObject *_wrap_DuplexVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63265   PyObject *resultobj = 0;
63266   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63267   void *argp1 = 0 ;
63268   int res1 = 0 ;
63269   PyObject *swig_obj[1] ;
63270   bool result;
63271 
63272   if (!args) SWIG_fail;
63273   swig_obj[0] = args;
63274   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63275   if (!SWIG_IsOK(res1)) {
63276     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_empty" "', argument " "1"" of type '" "std::vector< duplex_list_t > const *""'");
63277   }
63278   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63279   {
63280     try {
63281       result = (bool)((std::vector< duplex_list_t > const *)arg1)->empty();
63282     } catch (const std::exception& e) {
63283       SWIG_exception(SWIG_RuntimeError, e.what());
63284     }
63285   }
63286   resultobj = SWIG_From_bool(static_cast< bool >(result));
63287   return resultobj;
63288 fail:
63289   return NULL;
63290 }
63291 
63292 
_wrap_DuplexVector_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)63293 SWIGINTERN PyObject *_wrap_DuplexVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63294   PyObject *resultobj = 0;
63295   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63296   void *argp1 = 0 ;
63297   int res1 = 0 ;
63298   PyObject *swig_obj[1] ;
63299   std::vector< duplex_list_t >::size_type result;
63300 
63301   if (!args) SWIG_fail;
63302   swig_obj[0] = args;
63303   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63304   if (!SWIG_IsOK(res1)) {
63305     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_size" "', argument " "1"" of type '" "std::vector< duplex_list_t > const *""'");
63306   }
63307   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63308   {
63309     try {
63310       result = ((std::vector< duplex_list_t > const *)arg1)->size();
63311     } catch (const std::exception& e) {
63312       SWIG_exception(SWIG_RuntimeError, e.what());
63313     }
63314   }
63315   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
63316   return resultobj;
63317 fail:
63318   return NULL;
63319 }
63320 
63321 
_wrap_DuplexVector_swap(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)63322 SWIGINTERN PyObject *_wrap_DuplexVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
63323   PyObject *resultobj = 0;
63324   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63325   std::vector< duplex_list_t > *arg2 = 0 ;
63326   void *argp1 = 0 ;
63327   int res1 = 0 ;
63328   void *argp2 = 0 ;
63329   int res2 = 0 ;
63330   PyObject * obj0 = 0 ;
63331   PyObject * obj1 = 0 ;
63332   char * kwnames[] = {
63333     (char *)"self",  (char *)"v",  NULL
63334   };
63335 
63336   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:DuplexVector_swap", kwnames, &obj0, &obj1)) SWIG_fail;
63337   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63338   if (!SWIG_IsOK(res1)) {
63339     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_swap" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
63340   }
63341   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63342   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t,  0 );
63343   if (!SWIG_IsOK(res2)) {
63344     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DuplexVector_swap" "', argument " "2"" of type '" "std::vector< duplex_list_t > &""'");
63345   }
63346   if (!argp2) {
63347     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DuplexVector_swap" "', argument " "2"" of type '" "std::vector< duplex_list_t > &""'");
63348   }
63349   arg2 = reinterpret_cast< std::vector< duplex_list_t > * >(argp2);
63350   {
63351     try {
63352       (arg1)->swap(*arg2);
63353     } catch (const std::exception& e) {
63354       SWIG_exception(SWIG_RuntimeError, e.what());
63355     }
63356   }
63357   resultobj = SWIG_Py_Void();
63358   return resultobj;
63359 fail:
63360   return NULL;
63361 }
63362 
63363 
_wrap_DuplexVector_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)63364 SWIGINTERN PyObject *_wrap_DuplexVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63365   PyObject *resultobj = 0;
63366   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63367   void *argp1 = 0 ;
63368   int res1 = 0 ;
63369   PyObject *swig_obj[1] ;
63370   std::vector< duplex_list_t >::iterator result;
63371 
63372   if (!args) SWIG_fail;
63373   swig_obj[0] = args;
63374   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63375   if (!SWIG_IsOK(res1)) {
63376     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_begin" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
63377   }
63378   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63379   {
63380     try {
63381       result = (arg1)->begin();
63382     } catch (const std::exception& e) {
63383       SWIG_exception(SWIG_RuntimeError, e.what());
63384     }
63385   }
63386   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< duplex_list_t >::iterator & >(result)),
63387     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
63388   return resultobj;
63389 fail:
63390   return NULL;
63391 }
63392 
63393 
_wrap_DuplexVector_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)63394 SWIGINTERN PyObject *_wrap_DuplexVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63395   PyObject *resultobj = 0;
63396   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63397   void *argp1 = 0 ;
63398   int res1 = 0 ;
63399   PyObject *swig_obj[1] ;
63400   std::vector< duplex_list_t >::iterator result;
63401 
63402   if (!args) SWIG_fail;
63403   swig_obj[0] = args;
63404   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63405   if (!SWIG_IsOK(res1)) {
63406     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_end" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
63407   }
63408   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63409   {
63410     try {
63411       result = (arg1)->end();
63412     } catch (const std::exception& e) {
63413       SWIG_exception(SWIG_RuntimeError, e.what());
63414     }
63415   }
63416   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< duplex_list_t >::iterator & >(result)),
63417     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
63418   return resultobj;
63419 fail:
63420   return NULL;
63421 }
63422 
63423 
_wrap_DuplexVector_rbegin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)63424 SWIGINTERN PyObject *_wrap_DuplexVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63425   PyObject *resultobj = 0;
63426   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63427   void *argp1 = 0 ;
63428   int res1 = 0 ;
63429   PyObject *swig_obj[1] ;
63430   std::vector< duplex_list_t >::reverse_iterator result;
63431 
63432   if (!args) SWIG_fail;
63433   swig_obj[0] = args;
63434   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63435   if (!SWIG_IsOK(res1)) {
63436     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_rbegin" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
63437   }
63438   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63439   {
63440     try {
63441       result = (arg1)->rbegin();
63442     } catch (const std::exception& e) {
63443       SWIG_exception(SWIG_RuntimeError, e.what());
63444     }
63445   }
63446   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< duplex_list_t >::reverse_iterator & >(result)),
63447     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
63448   return resultobj;
63449 fail:
63450   return NULL;
63451 }
63452 
63453 
_wrap_DuplexVector_rend(PyObject * SWIGUNUSEDPARM (self),PyObject * args)63454 SWIGINTERN PyObject *_wrap_DuplexVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63455   PyObject *resultobj = 0;
63456   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63457   void *argp1 = 0 ;
63458   int res1 = 0 ;
63459   PyObject *swig_obj[1] ;
63460   std::vector< duplex_list_t >::reverse_iterator result;
63461 
63462   if (!args) SWIG_fail;
63463   swig_obj[0] = args;
63464   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63465   if (!SWIG_IsOK(res1)) {
63466     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_rend" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
63467   }
63468   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63469   {
63470     try {
63471       result = (arg1)->rend();
63472     } catch (const std::exception& e) {
63473       SWIG_exception(SWIG_RuntimeError, e.what());
63474     }
63475   }
63476   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< duplex_list_t >::reverse_iterator & >(result)),
63477     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
63478   return resultobj;
63479 fail:
63480   return NULL;
63481 }
63482 
63483 
_wrap_DuplexVector_clear(PyObject * SWIGUNUSEDPARM (self),PyObject * args)63484 SWIGINTERN PyObject *_wrap_DuplexVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63485   PyObject *resultobj = 0;
63486   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63487   void *argp1 = 0 ;
63488   int res1 = 0 ;
63489   PyObject *swig_obj[1] ;
63490 
63491   if (!args) SWIG_fail;
63492   swig_obj[0] = args;
63493   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63494   if (!SWIG_IsOK(res1)) {
63495     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_clear" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
63496   }
63497   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63498   {
63499     try {
63500       (arg1)->clear();
63501     } catch (const std::exception& e) {
63502       SWIG_exception(SWIG_RuntimeError, e.what());
63503     }
63504   }
63505   resultobj = SWIG_Py_Void();
63506   return resultobj;
63507 fail:
63508   return NULL;
63509 }
63510 
63511 
_wrap_DuplexVector_get_allocator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)63512 SWIGINTERN PyObject *_wrap_DuplexVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63513   PyObject *resultobj = 0;
63514   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63515   void *argp1 = 0 ;
63516   int res1 = 0 ;
63517   PyObject *swig_obj[1] ;
63518   SwigValueWrapper< std::allocator< duplex_list_t > > result;
63519 
63520   if (!args) SWIG_fail;
63521   swig_obj[0] = args;
63522   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63523   if (!SWIG_IsOK(res1)) {
63524     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_get_allocator" "', argument " "1"" of type '" "std::vector< duplex_list_t > const *""'");
63525   }
63526   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63527   {
63528     try {
63529       result = ((std::vector< duplex_list_t > const *)arg1)->get_allocator();
63530     } catch (const std::exception& e) {
63531       SWIG_exception(SWIG_RuntimeError, e.what());
63532     }
63533   }
63534   resultobj = SWIG_NewPointerObj((new std::vector< duplex_list_t >::allocator_type(static_cast< const std::vector< duplex_list_t >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_duplex_list_t_t, SWIG_POINTER_OWN |  0 );
63535   return resultobj;
63536 fail:
63537   return NULL;
63538 }
63539 
63540 
_wrap_new_DuplexVector__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)63541 SWIGINTERN PyObject *_wrap_new_DuplexVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
63542   PyObject *resultobj = 0;
63543   std::vector< duplex_list_t >::size_type arg1 ;
63544   size_t val1 ;
63545   int ecode1 = 0 ;
63546   std::vector< duplex_list_t > *result = 0 ;
63547 
63548   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
63549   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
63550   if (!SWIG_IsOK(ecode1)) {
63551     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DuplexVector" "', argument " "1"" of type '" "std::vector< duplex_list_t >::size_type""'");
63552   }
63553   arg1 = static_cast< std::vector< duplex_list_t >::size_type >(val1);
63554   {
63555     try {
63556       result = (std::vector< duplex_list_t > *)new std::vector< duplex_list_t >(arg1);
63557     } catch (const std::exception& e) {
63558       SWIG_exception(SWIG_RuntimeError, e.what());
63559     }
63560   }
63561   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, SWIG_POINTER_NEW |  0 );
63562   return resultobj;
63563 fail:
63564   return NULL;
63565 }
63566 
63567 
_wrap_DuplexVector_pop_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)63568 SWIGINTERN PyObject *_wrap_DuplexVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63569   PyObject *resultobj = 0;
63570   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63571   void *argp1 = 0 ;
63572   int res1 = 0 ;
63573   PyObject *swig_obj[1] ;
63574 
63575   if (!args) SWIG_fail;
63576   swig_obj[0] = args;
63577   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63578   if (!SWIG_IsOK(res1)) {
63579     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_pop_back" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
63580   }
63581   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63582   {
63583     try {
63584       (arg1)->pop_back();
63585     } catch (const std::exception& e) {
63586       SWIG_exception(SWIG_RuntimeError, e.what());
63587     }
63588   }
63589   resultobj = SWIG_Py_Void();
63590   return resultobj;
63591 fail:
63592   return NULL;
63593 }
63594 
63595 
_wrap_DuplexVector_resize__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)63596 SWIGINTERN PyObject *_wrap_DuplexVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
63597   PyObject *resultobj = 0;
63598   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63599   std::vector< duplex_list_t >::size_type arg2 ;
63600   void *argp1 = 0 ;
63601   int res1 = 0 ;
63602   size_t val2 ;
63603   int ecode2 = 0 ;
63604 
63605   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
63606   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63607   if (!SWIG_IsOK(res1)) {
63608     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_resize" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
63609   }
63610   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63611   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
63612   if (!SWIG_IsOK(ecode2)) {
63613     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DuplexVector_resize" "', argument " "2"" of type '" "std::vector< duplex_list_t >::size_type""'");
63614   }
63615   arg2 = static_cast< std::vector< duplex_list_t >::size_type >(val2);
63616   {
63617     try {
63618       (arg1)->resize(arg2);
63619     } catch (const std::exception& e) {
63620       SWIG_exception(SWIG_RuntimeError, e.what());
63621     }
63622   }
63623   resultobj = SWIG_Py_Void();
63624   return resultobj;
63625 fail:
63626   return NULL;
63627 }
63628 
63629 
_wrap_DuplexVector_erase__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)63630 SWIGINTERN PyObject *_wrap_DuplexVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
63631   PyObject *resultobj = 0;
63632   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63633   std::vector< duplex_list_t >::iterator arg2 ;
63634   void *argp1 = 0 ;
63635   int res1 = 0 ;
63636   swig::SwigPyIterator *iter2 = 0 ;
63637   int res2 ;
63638   std::vector< duplex_list_t >::iterator result;
63639 
63640   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
63641   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63642   if (!SWIG_IsOK(res1)) {
63643     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_erase" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
63644   }
63645   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63646   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
63647   if (!SWIG_IsOK(res2) || !iter2) {
63648     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DuplexVector_erase" "', argument " "2"" of type '" "std::vector< duplex_list_t >::iterator""'");
63649   } else {
63650     swig::SwigPyIterator_T<std::vector< duplex_list_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< duplex_list_t >::iterator > *>(iter2);
63651     if (iter_t) {
63652       arg2 = iter_t->get_current();
63653     } else {
63654       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DuplexVector_erase" "', argument " "2"" of type '" "std::vector< duplex_list_t >::iterator""'");
63655     }
63656   }
63657   {
63658     try {
63659       result = std_vector_Sl_duplex_list_t_Sg__erase__SWIG_0(arg1,arg2);
63660     } catch (const std::exception& e) {
63661       SWIG_exception(SWIG_RuntimeError, e.what());
63662     }
63663   }
63664   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< duplex_list_t >::iterator & >(result)),
63665     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
63666   return resultobj;
63667 fail:
63668   return NULL;
63669 }
63670 
63671 
_wrap_DuplexVector_erase__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)63672 SWIGINTERN PyObject *_wrap_DuplexVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
63673   PyObject *resultobj = 0;
63674   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63675   std::vector< duplex_list_t >::iterator arg2 ;
63676   std::vector< duplex_list_t >::iterator arg3 ;
63677   void *argp1 = 0 ;
63678   int res1 = 0 ;
63679   swig::SwigPyIterator *iter2 = 0 ;
63680   int res2 ;
63681   swig::SwigPyIterator *iter3 = 0 ;
63682   int res3 ;
63683   std::vector< duplex_list_t >::iterator result;
63684 
63685   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
63686   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63687   if (!SWIG_IsOK(res1)) {
63688     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_erase" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
63689   }
63690   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63691   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
63692   if (!SWIG_IsOK(res2) || !iter2) {
63693     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DuplexVector_erase" "', argument " "2"" of type '" "std::vector< duplex_list_t >::iterator""'");
63694   } else {
63695     swig::SwigPyIterator_T<std::vector< duplex_list_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< duplex_list_t >::iterator > *>(iter2);
63696     if (iter_t) {
63697       arg2 = iter_t->get_current();
63698     } else {
63699       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DuplexVector_erase" "', argument " "2"" of type '" "std::vector< duplex_list_t >::iterator""'");
63700     }
63701   }
63702   res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
63703   if (!SWIG_IsOK(res3) || !iter3) {
63704     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DuplexVector_erase" "', argument " "3"" of type '" "std::vector< duplex_list_t >::iterator""'");
63705   } else {
63706     swig::SwigPyIterator_T<std::vector< duplex_list_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< duplex_list_t >::iterator > *>(iter3);
63707     if (iter_t) {
63708       arg3 = iter_t->get_current();
63709     } else {
63710       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DuplexVector_erase" "', argument " "3"" of type '" "std::vector< duplex_list_t >::iterator""'");
63711     }
63712   }
63713   {
63714     try {
63715       result = std_vector_Sl_duplex_list_t_Sg__erase__SWIG_1(arg1,arg2,arg3);
63716     } catch (const std::exception& e) {
63717       SWIG_exception(SWIG_RuntimeError, e.what());
63718     }
63719   }
63720   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< duplex_list_t >::iterator & >(result)),
63721     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
63722   return resultobj;
63723 fail:
63724   return NULL;
63725 }
63726 
63727 
_wrap_DuplexVector_erase(PyObject * self,PyObject * args)63728 SWIGINTERN PyObject *_wrap_DuplexVector_erase(PyObject *self, PyObject *args) {
63729   Py_ssize_t argc;
63730   PyObject *argv[4] = {
63731     0
63732   };
63733 
63734   if (!(argc = SWIG_Python_UnpackTuple(args, "DuplexVector_erase", 0, 3, argv))) SWIG_fail;
63735   --argc;
63736   if (argc == 2) {
63737     int _v;
63738     int res = swig::asptr(argv[0], (std::vector< duplex_list_t,std::allocator< duplex_list_t > >**)(0));
63739     _v = SWIG_CheckState(res);
63740     if (_v) {
63741       swig::SwigPyIterator *iter = 0;
63742       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
63743       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< duplex_list_t >::iterator > *>(iter) != 0));
63744       if (_v) {
63745         return _wrap_DuplexVector_erase__SWIG_0(self, argc, argv);
63746       }
63747     }
63748   }
63749   if (argc == 3) {
63750     int _v;
63751     int res = swig::asptr(argv[0], (std::vector< duplex_list_t,std::allocator< duplex_list_t > >**)(0));
63752     _v = SWIG_CheckState(res);
63753     if (_v) {
63754       swig::SwigPyIterator *iter = 0;
63755       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
63756       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< duplex_list_t >::iterator > *>(iter) != 0));
63757       if (_v) {
63758         swig::SwigPyIterator *iter = 0;
63759         int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
63760         _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< duplex_list_t >::iterator > *>(iter) != 0));
63761         if (_v) {
63762           return _wrap_DuplexVector_erase__SWIG_1(self, argc, argv);
63763         }
63764       }
63765     }
63766   }
63767 
63768 fail:
63769   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DuplexVector_erase'.\n"
63770     "  Possible C/C++ prototypes are:\n"
63771     "    std::vector< duplex_list_t >::erase(std::vector< duplex_list_t >::iterator)\n"
63772     "    std::vector< duplex_list_t >::erase(std::vector< duplex_list_t >::iterator,std::vector< duplex_list_t >::iterator)\n");
63773   return 0;
63774 }
63775 
63776 
_wrap_new_DuplexVector__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)63777 SWIGINTERN PyObject *_wrap_new_DuplexVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
63778   PyObject *resultobj = 0;
63779   std::vector< duplex_list_t >::size_type arg1 ;
63780   std::vector< duplex_list_t >::value_type *arg2 = 0 ;
63781   size_t val1 ;
63782   int ecode1 = 0 ;
63783   void *argp2 = 0 ;
63784   int res2 = 0 ;
63785   std::vector< duplex_list_t > *result = 0 ;
63786 
63787   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
63788   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
63789   if (!SWIG_IsOK(ecode1)) {
63790     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DuplexVector" "', argument " "1"" of type '" "std::vector< duplex_list_t >::size_type""'");
63791   }
63792   arg1 = static_cast< std::vector< duplex_list_t >::size_type >(val1);
63793   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_duplex_list_t,  0  | 0);
63794   if (!SWIG_IsOK(res2)) {
63795     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DuplexVector" "', argument " "2"" of type '" "std::vector< duplex_list_t >::value_type const &""'");
63796   }
63797   if (!argp2) {
63798     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DuplexVector" "', argument " "2"" of type '" "std::vector< duplex_list_t >::value_type const &""'");
63799   }
63800   arg2 = reinterpret_cast< std::vector< duplex_list_t >::value_type * >(argp2);
63801   {
63802     try {
63803       result = (std::vector< duplex_list_t > *)new std::vector< duplex_list_t >(arg1,(std::vector< duplex_list_t >::value_type const &)*arg2);
63804     } catch (const std::exception& e) {
63805       SWIG_exception(SWIG_RuntimeError, e.what());
63806     }
63807   }
63808   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, SWIG_POINTER_NEW |  0 );
63809   return resultobj;
63810 fail:
63811   return NULL;
63812 }
63813 
63814 
_wrap_new_DuplexVector(PyObject * self,PyObject * args)63815 SWIGINTERN PyObject *_wrap_new_DuplexVector(PyObject *self, PyObject *args) {
63816   Py_ssize_t argc;
63817   PyObject *argv[3] = {
63818     0
63819   };
63820 
63821   if (!(argc = SWIG_Python_UnpackTuple(args, "new_DuplexVector", 0, 2, argv))) SWIG_fail;
63822   --argc;
63823   if (argc == 0) {
63824     return _wrap_new_DuplexVector__SWIG_0(self, argc, argv);
63825   }
63826   if (argc == 1) {
63827     int _v;
63828     {
63829       int res = SWIG_AsVal_size_t(argv[0], NULL);
63830       _v = SWIG_CheckState(res);
63831     }
63832     if (_v) {
63833       return _wrap_new_DuplexVector__SWIG_2(self, argc, argv);
63834     }
63835   }
63836   if (argc == 1) {
63837     int _v;
63838     int res = swig::asptr(argv[0], (std::vector< duplex_list_t,std::allocator< duplex_list_t > >**)(0));
63839     _v = SWIG_CheckState(res);
63840     if (_v) {
63841       return _wrap_new_DuplexVector__SWIG_1(self, argc, argv);
63842     }
63843   }
63844   if (argc == 2) {
63845     int _v;
63846     {
63847       int res = SWIG_AsVal_size_t(argv[0], NULL);
63848       _v = SWIG_CheckState(res);
63849     }
63850     if (_v) {
63851       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_duplex_list_t, SWIG_POINTER_NO_NULL | 0);
63852       _v = SWIG_CheckState(res);
63853       if (_v) {
63854         return _wrap_new_DuplexVector__SWIG_3(self, argc, argv);
63855       }
63856     }
63857   }
63858 
63859 fail:
63860   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_DuplexVector'.\n"
63861     "  Possible C/C++ prototypes are:\n"
63862     "    std::vector< duplex_list_t >::vector()\n"
63863     "    std::vector< duplex_list_t >::vector(std::vector< duplex_list_t > const &)\n"
63864     "    std::vector< duplex_list_t >::vector(std::vector< duplex_list_t >::size_type)\n"
63865     "    std::vector< duplex_list_t >::vector(std::vector< duplex_list_t >::size_type,std::vector< duplex_list_t >::value_type const &)\n");
63866   return 0;
63867 }
63868 
63869 
_wrap_DuplexVector_push_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)63870 SWIGINTERN PyObject *_wrap_DuplexVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
63871   PyObject *resultobj = 0;
63872   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63873   std::vector< duplex_list_t >::value_type *arg2 = 0 ;
63874   void *argp1 = 0 ;
63875   int res1 = 0 ;
63876   void *argp2 = 0 ;
63877   int res2 = 0 ;
63878   PyObject * obj0 = 0 ;
63879   PyObject * obj1 = 0 ;
63880   char * kwnames[] = {
63881     (char *)"self",  (char *)"x",  NULL
63882   };
63883 
63884   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:DuplexVector_push_back", kwnames, &obj0, &obj1)) SWIG_fail;
63885   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63886   if (!SWIG_IsOK(res1)) {
63887     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_push_back" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
63888   }
63889   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63890   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_duplex_list_t,  0  | 0);
63891   if (!SWIG_IsOK(res2)) {
63892     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DuplexVector_push_back" "', argument " "2"" of type '" "std::vector< duplex_list_t >::value_type const &""'");
63893   }
63894   if (!argp2) {
63895     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DuplexVector_push_back" "', argument " "2"" of type '" "std::vector< duplex_list_t >::value_type const &""'");
63896   }
63897   arg2 = reinterpret_cast< std::vector< duplex_list_t >::value_type * >(argp2);
63898   {
63899     try {
63900       (arg1)->push_back((std::vector< duplex_list_t >::value_type const &)*arg2);
63901     } catch (const std::exception& e) {
63902       SWIG_exception(SWIG_RuntimeError, e.what());
63903     }
63904   }
63905   resultobj = SWIG_Py_Void();
63906   return resultobj;
63907 fail:
63908   return NULL;
63909 }
63910 
63911 
_wrap_DuplexVector_front(PyObject * SWIGUNUSEDPARM (self),PyObject * args)63912 SWIGINTERN PyObject *_wrap_DuplexVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63913   PyObject *resultobj = 0;
63914   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63915   void *argp1 = 0 ;
63916   int res1 = 0 ;
63917   PyObject *swig_obj[1] ;
63918   std::vector< duplex_list_t >::value_type *result = 0 ;
63919 
63920   if (!args) SWIG_fail;
63921   swig_obj[0] = args;
63922   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63923   if (!SWIG_IsOK(res1)) {
63924     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_front" "', argument " "1"" of type '" "std::vector< duplex_list_t > const *""'");
63925   }
63926   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63927   {
63928     try {
63929       result = (std::vector< duplex_list_t >::value_type *) &((std::vector< duplex_list_t > const *)arg1)->front();
63930     } catch (const std::exception& e) {
63931       SWIG_exception(SWIG_RuntimeError, e.what());
63932     }
63933   }
63934   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_duplex_list_t, 0 |  0 );
63935   (void)swig::container_owner<swig::traits<std::vector< duplex_list_t >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
63936   return resultobj;
63937 fail:
63938   return NULL;
63939 }
63940 
63941 
_wrap_DuplexVector_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)63942 SWIGINTERN PyObject *_wrap_DuplexVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
63943   PyObject *resultobj = 0;
63944   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63945   void *argp1 = 0 ;
63946   int res1 = 0 ;
63947   PyObject *swig_obj[1] ;
63948   std::vector< duplex_list_t >::value_type *result = 0 ;
63949 
63950   if (!args) SWIG_fail;
63951   swig_obj[0] = args;
63952   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63953   if (!SWIG_IsOK(res1)) {
63954     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_back" "', argument " "1"" of type '" "std::vector< duplex_list_t > const *""'");
63955   }
63956   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63957   {
63958     try {
63959       result = (std::vector< duplex_list_t >::value_type *) &((std::vector< duplex_list_t > const *)arg1)->back();
63960     } catch (const std::exception& e) {
63961       SWIG_exception(SWIG_RuntimeError, e.what());
63962     }
63963   }
63964   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_duplex_list_t, 0 |  0 );
63965   (void)swig::container_owner<swig::traits<std::vector< duplex_list_t >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
63966   return resultobj;
63967 fail:
63968   return NULL;
63969 }
63970 
63971 
_wrap_DuplexVector_assign(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)63972 SWIGINTERN PyObject *_wrap_DuplexVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
63973   PyObject *resultobj = 0;
63974   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
63975   std::vector< duplex_list_t >::size_type arg2 ;
63976   std::vector< duplex_list_t >::value_type *arg3 = 0 ;
63977   void *argp1 = 0 ;
63978   int res1 = 0 ;
63979   size_t val2 ;
63980   int ecode2 = 0 ;
63981   void *argp3 = 0 ;
63982   int res3 = 0 ;
63983   PyObject * obj0 = 0 ;
63984   PyObject * obj1 = 0 ;
63985   PyObject * obj2 = 0 ;
63986   char * kwnames[] = {
63987     (char *)"self",  (char *)"n",  (char *)"x",  NULL
63988   };
63989 
63990   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:DuplexVector_assign", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
63991   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
63992   if (!SWIG_IsOK(res1)) {
63993     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_assign" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
63994   }
63995   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
63996   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
63997   if (!SWIG_IsOK(ecode2)) {
63998     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DuplexVector_assign" "', argument " "2"" of type '" "std::vector< duplex_list_t >::size_type""'");
63999   }
64000   arg2 = static_cast< std::vector< duplex_list_t >::size_type >(val2);
64001   res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_duplex_list_t,  0  | 0);
64002   if (!SWIG_IsOK(res3)) {
64003     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DuplexVector_assign" "', argument " "3"" of type '" "std::vector< duplex_list_t >::value_type const &""'");
64004   }
64005   if (!argp3) {
64006     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DuplexVector_assign" "', argument " "3"" of type '" "std::vector< duplex_list_t >::value_type const &""'");
64007   }
64008   arg3 = reinterpret_cast< std::vector< duplex_list_t >::value_type * >(argp3);
64009   {
64010     try {
64011       (arg1)->assign(arg2,(std::vector< duplex_list_t >::value_type const &)*arg3);
64012     } catch (const std::exception& e) {
64013       SWIG_exception(SWIG_RuntimeError, e.what());
64014     }
64015   }
64016   resultobj = SWIG_Py_Void();
64017   return resultobj;
64018 fail:
64019   return NULL;
64020 }
64021 
64022 
_wrap_DuplexVector_resize__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)64023 SWIGINTERN PyObject *_wrap_DuplexVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
64024   PyObject *resultobj = 0;
64025   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
64026   std::vector< duplex_list_t >::size_type arg2 ;
64027   std::vector< duplex_list_t >::value_type *arg3 = 0 ;
64028   void *argp1 = 0 ;
64029   int res1 = 0 ;
64030   size_t val2 ;
64031   int ecode2 = 0 ;
64032   void *argp3 = 0 ;
64033   int res3 = 0 ;
64034 
64035   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
64036   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
64037   if (!SWIG_IsOK(res1)) {
64038     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_resize" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
64039   }
64040   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
64041   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
64042   if (!SWIG_IsOK(ecode2)) {
64043     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DuplexVector_resize" "', argument " "2"" of type '" "std::vector< duplex_list_t >::size_type""'");
64044   }
64045   arg2 = static_cast< std::vector< duplex_list_t >::size_type >(val2);
64046   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_duplex_list_t,  0  | 0);
64047   if (!SWIG_IsOK(res3)) {
64048     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DuplexVector_resize" "', argument " "3"" of type '" "std::vector< duplex_list_t >::value_type const &""'");
64049   }
64050   if (!argp3) {
64051     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DuplexVector_resize" "', argument " "3"" of type '" "std::vector< duplex_list_t >::value_type const &""'");
64052   }
64053   arg3 = reinterpret_cast< std::vector< duplex_list_t >::value_type * >(argp3);
64054   {
64055     try {
64056       (arg1)->resize(arg2,(std::vector< duplex_list_t >::value_type const &)*arg3);
64057     } catch (const std::exception& e) {
64058       SWIG_exception(SWIG_RuntimeError, e.what());
64059     }
64060   }
64061   resultobj = SWIG_Py_Void();
64062   return resultobj;
64063 fail:
64064   return NULL;
64065 }
64066 
64067 
_wrap_DuplexVector_resize(PyObject * self,PyObject * args)64068 SWIGINTERN PyObject *_wrap_DuplexVector_resize(PyObject *self, PyObject *args) {
64069   Py_ssize_t argc;
64070   PyObject *argv[4] = {
64071     0
64072   };
64073 
64074   if (!(argc = SWIG_Python_UnpackTuple(args, "DuplexVector_resize", 0, 3, argv))) SWIG_fail;
64075   --argc;
64076   if (argc == 2) {
64077     int _v;
64078     int res = swig::asptr(argv[0], (std::vector< duplex_list_t,std::allocator< duplex_list_t > >**)(0));
64079     _v = SWIG_CheckState(res);
64080     if (_v) {
64081       {
64082         int res = SWIG_AsVal_size_t(argv[1], NULL);
64083         _v = SWIG_CheckState(res);
64084       }
64085       if (_v) {
64086         return _wrap_DuplexVector_resize__SWIG_0(self, argc, argv);
64087       }
64088     }
64089   }
64090   if (argc == 3) {
64091     int _v;
64092     int res = swig::asptr(argv[0], (std::vector< duplex_list_t,std::allocator< duplex_list_t > >**)(0));
64093     _v = SWIG_CheckState(res);
64094     if (_v) {
64095       {
64096         int res = SWIG_AsVal_size_t(argv[1], NULL);
64097         _v = SWIG_CheckState(res);
64098       }
64099       if (_v) {
64100         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_duplex_list_t, SWIG_POINTER_NO_NULL | 0);
64101         _v = SWIG_CheckState(res);
64102         if (_v) {
64103           return _wrap_DuplexVector_resize__SWIG_1(self, argc, argv);
64104         }
64105       }
64106     }
64107   }
64108 
64109 fail:
64110   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DuplexVector_resize'.\n"
64111     "  Possible C/C++ prototypes are:\n"
64112     "    std::vector< duplex_list_t >::resize(std::vector< duplex_list_t >::size_type)\n"
64113     "    std::vector< duplex_list_t >::resize(std::vector< duplex_list_t >::size_type,std::vector< duplex_list_t >::value_type const &)\n");
64114   return 0;
64115 }
64116 
64117 
_wrap_DuplexVector_insert__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)64118 SWIGINTERN PyObject *_wrap_DuplexVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
64119   PyObject *resultobj = 0;
64120   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
64121   std::vector< duplex_list_t >::iterator arg2 ;
64122   std::vector< duplex_list_t >::value_type *arg3 = 0 ;
64123   void *argp1 = 0 ;
64124   int res1 = 0 ;
64125   swig::SwigPyIterator *iter2 = 0 ;
64126   int res2 ;
64127   void *argp3 = 0 ;
64128   int res3 = 0 ;
64129   std::vector< duplex_list_t >::iterator result;
64130 
64131   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
64132   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
64133   if (!SWIG_IsOK(res1)) {
64134     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_insert" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
64135   }
64136   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
64137   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
64138   if (!SWIG_IsOK(res2) || !iter2) {
64139     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DuplexVector_insert" "', argument " "2"" of type '" "std::vector< duplex_list_t >::iterator""'");
64140   } else {
64141     swig::SwigPyIterator_T<std::vector< duplex_list_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< duplex_list_t >::iterator > *>(iter2);
64142     if (iter_t) {
64143       arg2 = iter_t->get_current();
64144     } else {
64145       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DuplexVector_insert" "', argument " "2"" of type '" "std::vector< duplex_list_t >::iterator""'");
64146     }
64147   }
64148   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_duplex_list_t,  0  | 0);
64149   if (!SWIG_IsOK(res3)) {
64150     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DuplexVector_insert" "', argument " "3"" of type '" "std::vector< duplex_list_t >::value_type const &""'");
64151   }
64152   if (!argp3) {
64153     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DuplexVector_insert" "', argument " "3"" of type '" "std::vector< duplex_list_t >::value_type const &""'");
64154   }
64155   arg3 = reinterpret_cast< std::vector< duplex_list_t >::value_type * >(argp3);
64156   {
64157     try {
64158       result = std_vector_Sl_duplex_list_t_Sg__insert__SWIG_0(arg1,arg2,(duplex_list_t const &)*arg3);
64159     } catch (const std::exception& e) {
64160       SWIG_exception(SWIG_RuntimeError, e.what());
64161     }
64162   }
64163   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< duplex_list_t >::iterator & >(result)),
64164     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
64165   return resultobj;
64166 fail:
64167   return NULL;
64168 }
64169 
64170 
_wrap_DuplexVector_insert__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)64171 SWIGINTERN PyObject *_wrap_DuplexVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
64172   PyObject *resultobj = 0;
64173   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
64174   std::vector< duplex_list_t >::iterator arg2 ;
64175   std::vector< duplex_list_t >::size_type arg3 ;
64176   std::vector< duplex_list_t >::value_type *arg4 = 0 ;
64177   void *argp1 = 0 ;
64178   int res1 = 0 ;
64179   swig::SwigPyIterator *iter2 = 0 ;
64180   int res2 ;
64181   size_t val3 ;
64182   int ecode3 = 0 ;
64183   void *argp4 = 0 ;
64184   int res4 = 0 ;
64185 
64186   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
64187   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
64188   if (!SWIG_IsOK(res1)) {
64189     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_insert" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
64190   }
64191   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
64192   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
64193   if (!SWIG_IsOK(res2) || !iter2) {
64194     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DuplexVector_insert" "', argument " "2"" of type '" "std::vector< duplex_list_t >::iterator""'");
64195   } else {
64196     swig::SwigPyIterator_T<std::vector< duplex_list_t >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< duplex_list_t >::iterator > *>(iter2);
64197     if (iter_t) {
64198       arg2 = iter_t->get_current();
64199     } else {
64200       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DuplexVector_insert" "', argument " "2"" of type '" "std::vector< duplex_list_t >::iterator""'");
64201     }
64202   }
64203   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
64204   if (!SWIG_IsOK(ecode3)) {
64205     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DuplexVector_insert" "', argument " "3"" of type '" "std::vector< duplex_list_t >::size_type""'");
64206   }
64207   arg3 = static_cast< std::vector< duplex_list_t >::size_type >(val3);
64208   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_duplex_list_t,  0  | 0);
64209   if (!SWIG_IsOK(res4)) {
64210     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DuplexVector_insert" "', argument " "4"" of type '" "std::vector< duplex_list_t >::value_type const &""'");
64211   }
64212   if (!argp4) {
64213     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DuplexVector_insert" "', argument " "4"" of type '" "std::vector< duplex_list_t >::value_type const &""'");
64214   }
64215   arg4 = reinterpret_cast< std::vector< duplex_list_t >::value_type * >(argp4);
64216   {
64217     try {
64218       std_vector_Sl_duplex_list_t_Sg__insert__SWIG_1(arg1,arg2,arg3,(duplex_list_t const &)*arg4);
64219     } catch (const std::exception& e) {
64220       SWIG_exception(SWIG_RuntimeError, e.what());
64221     }
64222   }
64223   resultobj = SWIG_Py_Void();
64224   return resultobj;
64225 fail:
64226   return NULL;
64227 }
64228 
64229 
_wrap_DuplexVector_insert(PyObject * self,PyObject * args)64230 SWIGINTERN PyObject *_wrap_DuplexVector_insert(PyObject *self, PyObject *args) {
64231   Py_ssize_t argc;
64232   PyObject *argv[5] = {
64233     0
64234   };
64235 
64236   if (!(argc = SWIG_Python_UnpackTuple(args, "DuplexVector_insert", 0, 4, argv))) SWIG_fail;
64237   --argc;
64238   if (argc == 3) {
64239     int _v;
64240     int res = swig::asptr(argv[0], (std::vector< duplex_list_t,std::allocator< duplex_list_t > >**)(0));
64241     _v = SWIG_CheckState(res);
64242     if (_v) {
64243       swig::SwigPyIterator *iter = 0;
64244       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
64245       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< duplex_list_t >::iterator > *>(iter) != 0));
64246       if (_v) {
64247         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_duplex_list_t, SWIG_POINTER_NO_NULL | 0);
64248         _v = SWIG_CheckState(res);
64249         if (_v) {
64250           return _wrap_DuplexVector_insert__SWIG_0(self, argc, argv);
64251         }
64252       }
64253     }
64254   }
64255   if (argc == 4) {
64256     int _v;
64257     int res = swig::asptr(argv[0], (std::vector< duplex_list_t,std::allocator< duplex_list_t > >**)(0));
64258     _v = SWIG_CheckState(res);
64259     if (_v) {
64260       swig::SwigPyIterator *iter = 0;
64261       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
64262       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< duplex_list_t >::iterator > *>(iter) != 0));
64263       if (_v) {
64264         {
64265           int res = SWIG_AsVal_size_t(argv[2], NULL);
64266           _v = SWIG_CheckState(res);
64267         }
64268         if (_v) {
64269           int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_duplex_list_t, SWIG_POINTER_NO_NULL | 0);
64270           _v = SWIG_CheckState(res);
64271           if (_v) {
64272             return _wrap_DuplexVector_insert__SWIG_1(self, argc, argv);
64273           }
64274         }
64275       }
64276     }
64277   }
64278 
64279 fail:
64280   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DuplexVector_insert'.\n"
64281     "  Possible C/C++ prototypes are:\n"
64282     "    std::vector< duplex_list_t >::insert(std::vector< duplex_list_t >::iterator,std::vector< duplex_list_t >::value_type const &)\n"
64283     "    std::vector< duplex_list_t >::insert(std::vector< duplex_list_t >::iterator,std::vector< duplex_list_t >::size_type,std::vector< duplex_list_t >::value_type const &)\n");
64284   return 0;
64285 }
64286 
64287 
_wrap_DuplexVector_reserve(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)64288 SWIGINTERN PyObject *_wrap_DuplexVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
64289   PyObject *resultobj = 0;
64290   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
64291   std::vector< duplex_list_t >::size_type arg2 ;
64292   void *argp1 = 0 ;
64293   int res1 = 0 ;
64294   size_t val2 ;
64295   int ecode2 = 0 ;
64296   PyObject * obj0 = 0 ;
64297   PyObject * obj1 = 0 ;
64298   char * kwnames[] = {
64299     (char *)"self",  (char *)"n",  NULL
64300   };
64301 
64302   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:DuplexVector_reserve", kwnames, &obj0, &obj1)) SWIG_fail;
64303   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
64304   if (!SWIG_IsOK(res1)) {
64305     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_reserve" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
64306   }
64307   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
64308   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
64309   if (!SWIG_IsOK(ecode2)) {
64310     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DuplexVector_reserve" "', argument " "2"" of type '" "std::vector< duplex_list_t >::size_type""'");
64311   }
64312   arg2 = static_cast< std::vector< duplex_list_t >::size_type >(val2);
64313   {
64314     try {
64315       (arg1)->reserve(arg2);
64316     } catch (const std::exception& e) {
64317       SWIG_exception(SWIG_RuntimeError, e.what());
64318     }
64319   }
64320   resultobj = SWIG_Py_Void();
64321   return resultobj;
64322 fail:
64323   return NULL;
64324 }
64325 
64326 
_wrap_DuplexVector_capacity(PyObject * SWIGUNUSEDPARM (self),PyObject * args)64327 SWIGINTERN PyObject *_wrap_DuplexVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64328   PyObject *resultobj = 0;
64329   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
64330   void *argp1 = 0 ;
64331   int res1 = 0 ;
64332   PyObject *swig_obj[1] ;
64333   std::vector< duplex_list_t >::size_type result;
64334 
64335   if (!args) SWIG_fail;
64336   swig_obj[0] = args;
64337   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0 |  0 );
64338   if (!SWIG_IsOK(res1)) {
64339     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DuplexVector_capacity" "', argument " "1"" of type '" "std::vector< duplex_list_t > const *""'");
64340   }
64341   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
64342   {
64343     try {
64344       result = ((std::vector< duplex_list_t > const *)arg1)->capacity();
64345     } catch (const std::exception& e) {
64346       SWIG_exception(SWIG_RuntimeError, e.what());
64347     }
64348   }
64349   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
64350   return resultobj;
64351 fail:
64352   return NULL;
64353 }
64354 
64355 
_wrap_delete_DuplexVector(PyObject * SWIGUNUSEDPARM (self),PyObject * args)64356 SWIGINTERN PyObject *_wrap_delete_DuplexVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64357   PyObject *resultobj = 0;
64358   std::vector< duplex_list_t > *arg1 = (std::vector< duplex_list_t > *) 0 ;
64359   void *argp1 = 0 ;
64360   int res1 = 0 ;
64361   PyObject *swig_obj[1] ;
64362 
64363   if (!args) SWIG_fail;
64364   swig_obj[0] = args;
64365   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, SWIG_POINTER_DISOWN |  0 );
64366   if (!SWIG_IsOK(res1)) {
64367     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DuplexVector" "', argument " "1"" of type '" "std::vector< duplex_list_t > *""'");
64368   }
64369   arg1 = reinterpret_cast< std::vector< duplex_list_t > * >(argp1);
64370   {
64371     try {
64372       delete arg1;
64373     } catch (const std::exception& e) {
64374       SWIG_exception(SWIG_RuntimeError, e.what());
64375     }
64376   }
64377   resultobj = SWIG_Py_Void();
64378   return resultobj;
64379 fail:
64380   return NULL;
64381 }
64382 
64383 
DuplexVector_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)64384 SWIGINTERN PyObject *DuplexVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64385   PyObject *obj;
64386   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
64387   SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, SWIG_NewClientData(obj));
64388   return SWIG_Py_Void();
64389 }
64390 
DuplexVector_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)64391 SWIGINTERN PyObject *DuplexVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64392   return SWIG_Python_InitShadowInstance(args);
64393 }
64394 
_wrap_duplexfold(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)64395 SWIGINTERN PyObject *_wrap_duplexfold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
64396   PyObject *resultobj = 0;
64397   std::string arg1 ;
64398   std::string arg2 ;
64399   PyObject * obj0 = 0 ;
64400   PyObject * obj1 = 0 ;
64401   char * kwnames[] = {
64402     (char *)"s1",  (char *)"s2",  NULL
64403   };
64404   duplexT result;
64405 
64406   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:duplexfold", kwnames, &obj0, &obj1)) SWIG_fail;
64407   {
64408     std::string *ptr = (std::string *)0;
64409     int res = SWIG_AsPtr_std_string(obj0, &ptr);
64410     if (!SWIG_IsOK(res) || !ptr) {
64411       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "duplexfold" "', argument " "1"" of type '" "std::string""'");
64412     }
64413     arg1 = *ptr;
64414     if (SWIG_IsNewObj(res)) delete ptr;
64415   }
64416   {
64417     std::string *ptr = (std::string *)0;
64418     int res = SWIG_AsPtr_std_string(obj1, &ptr);
64419     if (!SWIG_IsOK(res) || !ptr) {
64420       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "duplexfold" "', argument " "2"" of type '" "std::string""'");
64421     }
64422     arg2 = *ptr;
64423     if (SWIG_IsNewObj(res)) delete ptr;
64424   }
64425   {
64426     try {
64427       result = my_duplexfold(arg1,arg2);
64428     } catch (const std::exception& e) {
64429       SWIG_exception(SWIG_RuntimeError, e.what());
64430     }
64431   }
64432   resultobj = SWIG_NewPointerObj((new duplexT(static_cast< const duplexT& >(result))), SWIGTYPE_p_duplexT, SWIG_POINTER_OWN |  0 );
64433   return resultobj;
64434 fail:
64435   return NULL;
64436 }
64437 
64438 
_wrap_duplex_subopt(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)64439 SWIGINTERN PyObject *_wrap_duplex_subopt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
64440   PyObject *resultobj = 0;
64441   std::string arg1 ;
64442   std::string arg2 ;
64443   int arg3 ;
64444   int arg4 ;
64445   int val3 ;
64446   int ecode3 = 0 ;
64447   int val4 ;
64448   int ecode4 = 0 ;
64449   PyObject * obj0 = 0 ;
64450   PyObject * obj1 = 0 ;
64451   PyObject * obj2 = 0 ;
64452   PyObject * obj3 = 0 ;
64453   char * kwnames[] = {
64454     (char *)"s1",  (char *)"s2",  (char *)"delta",  (char *)"w",  NULL
64455   };
64456   std::vector< duplex_list_t,std::allocator< duplex_list_t > > result;
64457 
64458   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:duplex_subopt", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
64459   {
64460     std::string *ptr = (std::string *)0;
64461     int res = SWIG_AsPtr_std_string(obj0, &ptr);
64462     if (!SWIG_IsOK(res) || !ptr) {
64463       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "duplex_subopt" "', argument " "1"" of type '" "std::string""'");
64464     }
64465     arg1 = *ptr;
64466     if (SWIG_IsNewObj(res)) delete ptr;
64467   }
64468   {
64469     std::string *ptr = (std::string *)0;
64470     int res = SWIG_AsPtr_std_string(obj1, &ptr);
64471     if (!SWIG_IsOK(res) || !ptr) {
64472       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "duplex_subopt" "', argument " "2"" of type '" "std::string""'");
64473     }
64474     arg2 = *ptr;
64475     if (SWIG_IsNewObj(res)) delete ptr;
64476   }
64477   ecode3 = SWIG_AsVal_int(obj2, &val3);
64478   if (!SWIG_IsOK(ecode3)) {
64479     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "duplex_subopt" "', argument " "3"" of type '" "int""'");
64480   }
64481   arg3 = static_cast< int >(val3);
64482   ecode4 = SWIG_AsVal_int(obj3, &val4);
64483   if (!SWIG_IsOK(ecode4)) {
64484     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "duplex_subopt" "', argument " "4"" of type '" "int""'");
64485   }
64486   arg4 = static_cast< int >(val4);
64487   {
64488     try {
64489       result = my_duplex_subopt(arg1,arg2,arg3,arg4);
64490     } catch (const std::exception& e) {
64491       SWIG_exception(SWIG_RuntimeError, e.what());
64492     }
64493   }
64494   resultobj = swig::from(static_cast< std::vector< duplex_list_t,std::allocator< duplex_list_t > > >(result));
64495   return resultobj;
64496 fail:
64497   return NULL;
64498 }
64499 
64500 
_wrap_aliduplexfold(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)64501 SWIGINTERN PyObject *_wrap_aliduplexfold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
64502   PyObject *resultobj = 0;
64503   std::vector< std::string,std::allocator< std::string > > arg1 ;
64504   std::vector< std::string,std::allocator< std::string > > arg2 ;
64505   PyObject * obj0 = 0 ;
64506   PyObject * obj1 = 0 ;
64507   char * kwnames[] = {
64508     (char *)"alignment1",  (char *)"alignment2",  NULL
64509   };
64510   duplexT result;
64511 
64512   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:aliduplexfold", kwnames, &obj0, &obj1)) SWIG_fail;
64513   {
64514     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
64515     int res = swig::asptr(obj0, &ptr);
64516     if (!SWIG_IsOK(res) || !ptr) {
64517       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "aliduplexfold" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
64518     }
64519     arg1 = *ptr;
64520     if (SWIG_IsNewObj(res)) delete ptr;
64521   }
64522   {
64523     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
64524     int res = swig::asptr(obj1, &ptr);
64525     if (!SWIG_IsOK(res) || !ptr) {
64526       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "aliduplexfold" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
64527     }
64528     arg2 = *ptr;
64529     if (SWIG_IsNewObj(res)) delete ptr;
64530   }
64531   {
64532     try {
64533       result = my_aliduplexfold(arg1,arg2);
64534     } catch (const std::exception& e) {
64535       SWIG_exception(SWIG_RuntimeError, e.what());
64536     }
64537   }
64538   resultobj = SWIG_NewPointerObj((new duplexT(static_cast< const duplexT& >(result))), SWIGTYPE_p_duplexT, SWIG_POINTER_OWN |  0 );
64539   return resultobj;
64540 fail:
64541   return NULL;
64542 }
64543 
64544 
_wrap_aliduplex_subopt(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)64545 SWIGINTERN PyObject *_wrap_aliduplex_subopt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
64546   PyObject *resultobj = 0;
64547   std::vector< std::string,std::allocator< std::string > > arg1 ;
64548   std::vector< std::string,std::allocator< std::string > > arg2 ;
64549   int arg3 ;
64550   int arg4 ;
64551   int val3 ;
64552   int ecode3 = 0 ;
64553   int val4 ;
64554   int ecode4 = 0 ;
64555   PyObject * obj0 = 0 ;
64556   PyObject * obj1 = 0 ;
64557   PyObject * obj2 = 0 ;
64558   PyObject * obj3 = 0 ;
64559   char * kwnames[] = {
64560     (char *)"alignment1",  (char *)"alignment2",  (char *)"delta",  (char *)"w",  NULL
64561   };
64562   std::vector< duplex_list_t,std::allocator< duplex_list_t > > result;
64563 
64564   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:aliduplex_subopt", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
64565   {
64566     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
64567     int res = swig::asptr(obj0, &ptr);
64568     if (!SWIG_IsOK(res) || !ptr) {
64569       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "aliduplex_subopt" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
64570     }
64571     arg1 = *ptr;
64572     if (SWIG_IsNewObj(res)) delete ptr;
64573   }
64574   {
64575     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
64576     int res = swig::asptr(obj1, &ptr);
64577     if (!SWIG_IsOK(res) || !ptr) {
64578       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "aliduplex_subopt" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
64579     }
64580     arg2 = *ptr;
64581     if (SWIG_IsNewObj(res)) delete ptr;
64582   }
64583   ecode3 = SWIG_AsVal_int(obj2, &val3);
64584   if (!SWIG_IsOK(ecode3)) {
64585     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "aliduplex_subopt" "', argument " "3"" of type '" "int""'");
64586   }
64587   arg3 = static_cast< int >(val3);
64588   ecode4 = SWIG_AsVal_int(obj3, &val4);
64589   if (!SWIG_IsOK(ecode4)) {
64590     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "aliduplex_subopt" "', argument " "4"" of type '" "int""'");
64591   }
64592   arg4 = static_cast< int >(val4);
64593   {
64594     try {
64595       result = aliduplex_subopt(arg1,arg2,arg3,arg4);
64596     } catch (const std::exception& e) {
64597       SWIG_exception(SWIG_RuntimeError, e.what());
64598     }
64599   }
64600   resultobj = swig::from(static_cast< std::vector< duplex_list_t,std::allocator< duplex_list_t > > >(result));
64601   return resultobj;
64602 fail:
64603   return NULL;
64604 }
64605 
64606 
_wrap_move_pos_5_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)64607 SWIGINTERN PyObject *_wrap_move_pos_5_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64608   PyObject *resultobj = 0;
64609   vrna_move_t *arg1 = (vrna_move_t *) 0 ;
64610   int arg2 ;
64611   void *argp1 = 0 ;
64612   int res1 = 0 ;
64613   int val2 ;
64614   int ecode2 = 0 ;
64615   PyObject *swig_obj[2] ;
64616 
64617   if (!SWIG_Python_UnpackTuple(args, "move_pos_5_set", 2, 2, swig_obj)) SWIG_fail;
64618   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_move_t, 0 |  0 );
64619   if (!SWIG_IsOK(res1)) {
64620     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "move_pos_5_set" "', argument " "1"" of type '" "vrna_move_t *""'");
64621   }
64622   arg1 = reinterpret_cast< vrna_move_t * >(argp1);
64623   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
64624   if (!SWIG_IsOK(ecode2)) {
64625     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "move_pos_5_set" "', argument " "2"" of type '" "int""'");
64626   }
64627   arg2 = static_cast< int >(val2);
64628   if (arg1) (arg1)->pos_5 = arg2;
64629   resultobj = SWIG_Py_Void();
64630   return resultobj;
64631 fail:
64632   return NULL;
64633 }
64634 
64635 
_wrap_move_pos_5_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)64636 SWIGINTERN PyObject *_wrap_move_pos_5_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64637   PyObject *resultobj = 0;
64638   vrna_move_t *arg1 = (vrna_move_t *) 0 ;
64639   void *argp1 = 0 ;
64640   int res1 = 0 ;
64641   PyObject *swig_obj[1] ;
64642   int result;
64643 
64644   if (!args) SWIG_fail;
64645   swig_obj[0] = args;
64646   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_move_t, 0 |  0 );
64647   if (!SWIG_IsOK(res1)) {
64648     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "move_pos_5_get" "', argument " "1"" of type '" "vrna_move_t *""'");
64649   }
64650   arg1 = reinterpret_cast< vrna_move_t * >(argp1);
64651   result = (int) ((arg1)->pos_5);
64652   resultobj = SWIG_From_int(static_cast< int >(result));
64653   return resultobj;
64654 fail:
64655   return NULL;
64656 }
64657 
64658 
_wrap_move_pos_3_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)64659 SWIGINTERN PyObject *_wrap_move_pos_3_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64660   PyObject *resultobj = 0;
64661   vrna_move_t *arg1 = (vrna_move_t *) 0 ;
64662   int arg2 ;
64663   void *argp1 = 0 ;
64664   int res1 = 0 ;
64665   int val2 ;
64666   int ecode2 = 0 ;
64667   PyObject *swig_obj[2] ;
64668 
64669   if (!SWIG_Python_UnpackTuple(args, "move_pos_3_set", 2, 2, swig_obj)) SWIG_fail;
64670   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_move_t, 0 |  0 );
64671   if (!SWIG_IsOK(res1)) {
64672     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "move_pos_3_set" "', argument " "1"" of type '" "vrna_move_t *""'");
64673   }
64674   arg1 = reinterpret_cast< vrna_move_t * >(argp1);
64675   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
64676   if (!SWIG_IsOK(ecode2)) {
64677     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "move_pos_3_set" "', argument " "2"" of type '" "int""'");
64678   }
64679   arg2 = static_cast< int >(val2);
64680   if (arg1) (arg1)->pos_3 = arg2;
64681   resultobj = SWIG_Py_Void();
64682   return resultobj;
64683 fail:
64684   return NULL;
64685 }
64686 
64687 
_wrap_move_pos_3_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)64688 SWIGINTERN PyObject *_wrap_move_pos_3_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64689   PyObject *resultobj = 0;
64690   vrna_move_t *arg1 = (vrna_move_t *) 0 ;
64691   void *argp1 = 0 ;
64692   int res1 = 0 ;
64693   PyObject *swig_obj[1] ;
64694   int result;
64695 
64696   if (!args) SWIG_fail;
64697   swig_obj[0] = args;
64698   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_move_t, 0 |  0 );
64699   if (!SWIG_IsOK(res1)) {
64700     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "move_pos_3_get" "', argument " "1"" of type '" "vrna_move_t *""'");
64701   }
64702   arg1 = reinterpret_cast< vrna_move_t * >(argp1);
64703   result = (int) ((arg1)->pos_3);
64704   resultobj = SWIG_From_int(static_cast< int >(result));
64705   return resultobj;
64706 fail:
64707   return NULL;
64708 }
64709 
64710 
_wrap_new_move(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)64711 SWIGINTERN PyObject *_wrap_new_move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
64712   PyObject *resultobj = 0;
64713   int arg1 = (int) 0 ;
64714   int arg2 = (int) 0 ;
64715   int val1 ;
64716   int ecode1 = 0 ;
64717   int val2 ;
64718   int ecode2 = 0 ;
64719   PyObject * obj0 = 0 ;
64720   PyObject * obj1 = 0 ;
64721   char * kwnames[] = {
64722     (char *)"pos_5",  (char *)"pos_3",  NULL
64723   };
64724   vrna_move_t *result = 0 ;
64725 
64726   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|OO:new_move", kwnames, &obj0, &obj1)) SWIG_fail;
64727   if (obj0) {
64728     ecode1 = SWIG_AsVal_int(obj0, &val1);
64729     if (!SWIG_IsOK(ecode1)) {
64730       SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_move" "', argument " "1"" of type '" "int""'");
64731     }
64732     arg1 = static_cast< int >(val1);
64733   }
64734   if (obj1) {
64735     ecode2 = SWIG_AsVal_int(obj1, &val2);
64736     if (!SWIG_IsOK(ecode2)) {
64737       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_move" "', argument " "2"" of type '" "int""'");
64738     }
64739     arg2 = static_cast< int >(val2);
64740   }
64741   {
64742     try {
64743       result = (vrna_move_t *)new_vrna_move_t(arg1,arg2);
64744     } catch (const std::exception& e) {
64745       SWIG_exception(SWIG_RuntimeError, e.what());
64746     }
64747   }
64748   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_move_t, SWIG_POINTER_NEW |  0 );
64749   return resultobj;
64750 fail:
64751   return NULL;
64752 }
64753 
64754 
_wrap_delete_move(PyObject * SWIGUNUSEDPARM (self),PyObject * args)64755 SWIGINTERN PyObject *_wrap_delete_move(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64756   PyObject *resultobj = 0;
64757   vrna_move_t *arg1 = (vrna_move_t *) 0 ;
64758   void *argp1 = 0 ;
64759   int res1 = 0 ;
64760   PyObject *swig_obj[1] ;
64761 
64762   if (!args) SWIG_fail;
64763   swig_obj[0] = args;
64764   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_move_t, SWIG_POINTER_DISOWN |  0 );
64765   if (!SWIG_IsOK(res1)) {
64766     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_move" "', argument " "1"" of type '" "vrna_move_t *""'");
64767   }
64768   arg1 = reinterpret_cast< vrna_move_t * >(argp1);
64769   {
64770     try {
64771       delete_vrna_move_t(arg1);
64772     } catch (const std::exception& e) {
64773       SWIG_exception(SWIG_RuntimeError, e.what());
64774     }
64775   }
64776   resultobj = SWIG_Py_Void();
64777   return resultobj;
64778 fail:
64779   return NULL;
64780 }
64781 
64782 
_wrap_move_is_removal(PyObject * SWIGUNUSEDPARM (self),PyObject * args)64783 SWIGINTERN PyObject *_wrap_move_is_removal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64784   PyObject *resultobj = 0;
64785   vrna_move_t *arg1 = (vrna_move_t *) 0 ;
64786   void *argp1 = 0 ;
64787   int res1 = 0 ;
64788   PyObject *swig_obj[1] ;
64789   int result;
64790 
64791   if (!args) SWIG_fail;
64792   swig_obj[0] = args;
64793   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_move_t, 0 |  0 );
64794   if (!SWIG_IsOK(res1)) {
64795     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "move_is_removal" "', argument " "1"" of type '" "vrna_move_t *""'");
64796   }
64797   arg1 = reinterpret_cast< vrna_move_t * >(argp1);
64798   {
64799     try {
64800       result = (int)vrna_move_t_is_removal(arg1);
64801     } catch (const std::exception& e) {
64802       SWIG_exception(SWIG_RuntimeError, e.what());
64803     }
64804   }
64805   resultobj = SWIG_From_int(static_cast< int >(result));
64806   return resultobj;
64807 fail:
64808   return NULL;
64809 }
64810 
64811 
_wrap_move_is_insertion(PyObject * SWIGUNUSEDPARM (self),PyObject * args)64812 SWIGINTERN PyObject *_wrap_move_is_insertion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64813   PyObject *resultobj = 0;
64814   vrna_move_t *arg1 = (vrna_move_t *) 0 ;
64815   void *argp1 = 0 ;
64816   int res1 = 0 ;
64817   PyObject *swig_obj[1] ;
64818   int result;
64819 
64820   if (!args) SWIG_fail;
64821   swig_obj[0] = args;
64822   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_move_t, 0 |  0 );
64823   if (!SWIG_IsOK(res1)) {
64824     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "move_is_insertion" "', argument " "1"" of type '" "vrna_move_t *""'");
64825   }
64826   arg1 = reinterpret_cast< vrna_move_t * >(argp1);
64827   {
64828     try {
64829       result = (int)vrna_move_t_is_insertion(arg1);
64830     } catch (const std::exception& e) {
64831       SWIG_exception(SWIG_RuntimeError, e.what());
64832     }
64833   }
64834   resultobj = SWIG_From_int(static_cast< int >(result));
64835   return resultobj;
64836 fail:
64837   return NULL;
64838 }
64839 
64840 
_wrap_move_is_shift(PyObject * SWIGUNUSEDPARM (self),PyObject * args)64841 SWIGINTERN PyObject *_wrap_move_is_shift(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64842   PyObject *resultobj = 0;
64843   vrna_move_t *arg1 = (vrna_move_t *) 0 ;
64844   void *argp1 = 0 ;
64845   int res1 = 0 ;
64846   PyObject *swig_obj[1] ;
64847   int result;
64848 
64849   if (!args) SWIG_fail;
64850   swig_obj[0] = args;
64851   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_move_t, 0 |  0 );
64852   if (!SWIG_IsOK(res1)) {
64853     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "move_is_shift" "', argument " "1"" of type '" "vrna_move_t *""'");
64854   }
64855   arg1 = reinterpret_cast< vrna_move_t * >(argp1);
64856   {
64857     try {
64858       result = (int)vrna_move_t_is_shift(arg1);
64859     } catch (const std::exception& e) {
64860       SWIG_exception(SWIG_RuntimeError, e.what());
64861     }
64862   }
64863   resultobj = SWIG_From_int(static_cast< int >(result));
64864   return resultobj;
64865 fail:
64866   return NULL;
64867 }
64868 
64869 
_wrap_move_compare(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)64870 SWIGINTERN PyObject *_wrap_move_compare(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
64871   PyObject *resultobj = 0;
64872   vrna_move_t *arg1 = (vrna_move_t *) 0 ;
64873   vrna_move_t *arg2 = (vrna_move_t *) 0 ;
64874   std::vector< int,std::allocator< int > > arg3 = (std::vector< int,std::allocator< int > >) (std::vector< int,std::allocator< int > >)std::vector< int >() ;
64875   void *argp1 = 0 ;
64876   int res1 = 0 ;
64877   void *argp2 = 0 ;
64878   int res2 = 0 ;
64879   PyObject * obj0 = 0 ;
64880   PyObject * obj1 = 0 ;
64881   PyObject * obj2 = 0 ;
64882   char * kwnames[] = {
64883     (char *)"self",  (char *)"b",  (char *)"pt",  NULL
64884   };
64885   int result;
64886 
64887   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:move_compare", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
64888   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_move_t, 0 |  0 );
64889   if (!SWIG_IsOK(res1)) {
64890     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "move_compare" "', argument " "1"" of type '" "vrna_move_t *""'");
64891   }
64892   arg1 = reinterpret_cast< vrna_move_t * >(argp1);
64893   res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_vrna_move_t, 0 |  0 );
64894   if (!SWIG_IsOK(res2)) {
64895     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "move_compare" "', argument " "2"" of type '" "vrna_move_t const *""'");
64896   }
64897   arg2 = reinterpret_cast< vrna_move_t * >(argp2);
64898   if (obj2) {
64899     {
64900       std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
64901       int res = swig::asptr(obj2, &ptr);
64902       if (!SWIG_IsOK(res) || !ptr) {
64903         SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "move_compare" "', argument " "3"" of type '" "std::vector< int,std::allocator< int > > const""'");
64904       }
64905       arg3 = *ptr;
64906       if (SWIG_IsNewObj(res)) delete ptr;
64907     }
64908   }
64909   {
64910     try {
64911       result = (int)vrna_move_t_compare(arg1,(vrna_move_t const *)arg2,arg3);
64912     } catch (const std::exception& e) {
64913       SWIG_exception(SWIG_RuntimeError, e.what());
64914     }
64915   }
64916   resultobj = SWIG_From_int(static_cast< int >(result));
64917   return resultobj;
64918 fail:
64919   return NULL;
64920 }
64921 
64922 
_wrap_move___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)64923 SWIGINTERN PyObject *_wrap_move___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64924   PyObject *resultobj = 0;
64925   vrna_move_t *arg1 = (vrna_move_t *) 0 ;
64926   void *argp1 = 0 ;
64927   int res1 = 0 ;
64928   PyObject *swig_obj[1] ;
64929   std::string result;
64930 
64931   if (!args) SWIG_fail;
64932   swig_obj[0] = args;
64933   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_move_t, 0 |  0 );
64934   if (!SWIG_IsOK(res1)) {
64935     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "move___str__" "', argument " "1"" of type '" "vrna_move_t *""'");
64936   }
64937   arg1 = reinterpret_cast< vrna_move_t * >(argp1);
64938   {
64939     try {
64940       result = vrna_move_t___str__(arg1);
64941     } catch (const std::exception& e) {
64942       SWIG_exception(SWIG_RuntimeError, e.what());
64943     }
64944   }
64945   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
64946   return resultobj;
64947 fail:
64948   return NULL;
64949 }
64950 
64951 
move_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)64952 SWIGINTERN PyObject *move_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64953   PyObject *obj;
64954   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
64955   SWIG_TypeNewClientData(SWIGTYPE_p_vrna_move_t, SWIG_NewClientData(obj));
64956   return SWIG_Py_Void();
64957 }
64958 
move_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)64959 SWIGINTERN PyObject *move_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64960   return SWIG_Python_InitShadowInstance(args);
64961 }
64962 
_wrap_path_type_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)64963 SWIGINTERN PyObject *_wrap_path_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64964   PyObject *resultobj = 0;
64965   vrna_path_t *arg1 = (vrna_path_t *) 0 ;
64966   unsigned int arg2 ;
64967   void *argp1 = 0 ;
64968   int res1 = 0 ;
64969   unsigned int val2 ;
64970   int ecode2 = 0 ;
64971   PyObject *swig_obj[2] ;
64972 
64973   if (!SWIG_Python_UnpackTuple(args, "path_type_set", 2, 2, swig_obj)) SWIG_fail;
64974   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_path_t, 0 |  0 );
64975   if (!SWIG_IsOK(res1)) {
64976     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "path_type_set" "', argument " "1"" of type '" "vrna_path_t *""'");
64977   }
64978   arg1 = reinterpret_cast< vrna_path_t * >(argp1);
64979   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
64980   if (!SWIG_IsOK(ecode2)) {
64981     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "path_type_set" "', argument " "2"" of type '" "unsigned int""'");
64982   }
64983   arg2 = static_cast< unsigned int >(val2);
64984   if (arg1) (arg1)->type = arg2;
64985   resultobj = SWIG_Py_Void();
64986   return resultobj;
64987 fail:
64988   return NULL;
64989 }
64990 
64991 
_wrap_path_type_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)64992 SWIGINTERN PyObject *_wrap_path_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
64993   PyObject *resultobj = 0;
64994   vrna_path_t *arg1 = (vrna_path_t *) 0 ;
64995   void *argp1 = 0 ;
64996   int res1 = 0 ;
64997   PyObject *swig_obj[1] ;
64998   unsigned int result;
64999 
65000   if (!args) SWIG_fail;
65001   swig_obj[0] = args;
65002   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_path_t, 0 |  0 );
65003   if (!SWIG_IsOK(res1)) {
65004     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "path_type_get" "', argument " "1"" of type '" "vrna_path_t *""'");
65005   }
65006   arg1 = reinterpret_cast< vrna_path_t * >(argp1);
65007   result = (unsigned int) ((arg1)->type);
65008   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
65009   return resultobj;
65010 fail:
65011   return NULL;
65012 }
65013 
65014 
_wrap_path_en_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65015 SWIGINTERN PyObject *_wrap_path_en_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65016   PyObject *resultobj = 0;
65017   vrna_path_t *arg1 = (vrna_path_t *) 0 ;
65018   double arg2 ;
65019   void *argp1 = 0 ;
65020   int res1 = 0 ;
65021   double val2 ;
65022   int ecode2 = 0 ;
65023   PyObject *swig_obj[2] ;
65024 
65025   if (!SWIG_Python_UnpackTuple(args, "path_en_set", 2, 2, swig_obj)) SWIG_fail;
65026   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_path_t, 0 |  0 );
65027   if (!SWIG_IsOK(res1)) {
65028     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "path_en_set" "', argument " "1"" of type '" "vrna_path_t *""'");
65029   }
65030   arg1 = reinterpret_cast< vrna_path_t * >(argp1);
65031   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
65032   if (!SWIG_IsOK(ecode2)) {
65033     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "path_en_set" "', argument " "2"" of type '" "double""'");
65034   }
65035   arg2 = static_cast< double >(val2);
65036   if (arg1) (arg1)->en = arg2;
65037   resultobj = SWIG_Py_Void();
65038   return resultobj;
65039 fail:
65040   return NULL;
65041 }
65042 
65043 
_wrap_path_en_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65044 SWIGINTERN PyObject *_wrap_path_en_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65045   PyObject *resultobj = 0;
65046   vrna_path_t *arg1 = (vrna_path_t *) 0 ;
65047   void *argp1 = 0 ;
65048   int res1 = 0 ;
65049   PyObject *swig_obj[1] ;
65050   double result;
65051 
65052   if (!args) SWIG_fail;
65053   swig_obj[0] = args;
65054   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_path_t, 0 |  0 );
65055   if (!SWIG_IsOK(res1)) {
65056     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "path_en_get" "', argument " "1"" of type '" "vrna_path_t *""'");
65057   }
65058   arg1 = reinterpret_cast< vrna_path_t * >(argp1);
65059   result = (double) ((arg1)->en);
65060   resultobj = SWIG_From_double(static_cast< double >(result));
65061   return resultobj;
65062 fail:
65063   return NULL;
65064 }
65065 
65066 
_wrap_path_s_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65067 SWIGINTERN PyObject *_wrap_path_s_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65068   PyObject *resultobj = 0;
65069   vrna_path_t *arg1 = (vrna_path_t *) 0 ;
65070   char *arg2 = (char *) 0 ;
65071   void *argp1 = 0 ;
65072   int res1 = 0 ;
65073   int res2 ;
65074   char *buf2 = 0 ;
65075   int alloc2 = 0 ;
65076   PyObject *swig_obj[2] ;
65077 
65078   if (!SWIG_Python_UnpackTuple(args, "path_s_set", 2, 2, swig_obj)) SWIG_fail;
65079   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_path_t, 0 |  0 );
65080   if (!SWIG_IsOK(res1)) {
65081     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "path_s_set" "', argument " "1"" of type '" "vrna_path_t *""'");
65082   }
65083   arg1 = reinterpret_cast< vrna_path_t * >(argp1);
65084   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
65085   if (!SWIG_IsOK(res2)) {
65086     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "path_s_set" "', argument " "2"" of type '" "char *""'");
65087   }
65088   arg2 = reinterpret_cast< char * >(buf2);
65089   if (arg1->s) delete[] arg1->s;
65090   if (arg2) {
65091     size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1;
65092     arg1->s = (char *)reinterpret_cast< char* >(memcpy(new char[size], reinterpret_cast< const char * >(arg2), sizeof(char)*(size)));
65093   } else {
65094     arg1->s = 0;
65095   }
65096   resultobj = SWIG_Py_Void();
65097   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
65098   return resultobj;
65099 fail:
65100   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
65101   return NULL;
65102 }
65103 
65104 
_wrap_path_s_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65105 SWIGINTERN PyObject *_wrap_path_s_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65106   PyObject *resultobj = 0;
65107   vrna_path_t *arg1 = (vrna_path_t *) 0 ;
65108   void *argp1 = 0 ;
65109   int res1 = 0 ;
65110   PyObject *swig_obj[1] ;
65111   char *result = 0 ;
65112 
65113   if (!args) SWIG_fail;
65114   swig_obj[0] = args;
65115   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_path_t, 0 |  0 );
65116   if (!SWIG_IsOK(res1)) {
65117     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "path_s_get" "', argument " "1"" of type '" "vrna_path_t *""'");
65118   }
65119   arg1 = reinterpret_cast< vrna_path_t * >(argp1);
65120   result = (char *) ((arg1)->s);
65121   resultobj = SWIG_FromCharPtr((const char *)result);
65122   return resultobj;
65123 fail:
65124   return NULL;
65125 }
65126 
65127 
_wrap_path_move_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65128 SWIGINTERN PyObject *_wrap_path_move_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65129   PyObject *resultobj = 0;
65130   vrna_path_t *arg1 = (vrna_path_t *) 0 ;
65131   vrna_move_t *arg2 = (vrna_move_t *) 0 ;
65132   void *argp1 = 0 ;
65133   int res1 = 0 ;
65134   void *argp2 = 0 ;
65135   int res2 = 0 ;
65136   PyObject *swig_obj[2] ;
65137 
65138   if (!SWIG_Python_UnpackTuple(args, "path_move_set", 2, 2, swig_obj)) SWIG_fail;
65139   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_path_t, 0 |  0 );
65140   if (!SWIG_IsOK(res1)) {
65141     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "path_move_set" "', argument " "1"" of type '" "vrna_path_t *""'");
65142   }
65143   arg1 = reinterpret_cast< vrna_path_t * >(argp1);
65144   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_vrna_move_t, 0 |  0 );
65145   if (!SWIG_IsOK(res2)) {
65146     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "path_move_set" "', argument " "2"" of type '" "vrna_move_t *""'");
65147   }
65148   arg2 = reinterpret_cast< vrna_move_t * >(argp2);
65149   if (arg1) (arg1)->move = *arg2;
65150   resultobj = SWIG_Py_Void();
65151   return resultobj;
65152 fail:
65153   return NULL;
65154 }
65155 
65156 
_wrap_path_move_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65157 SWIGINTERN PyObject *_wrap_path_move_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65158   PyObject *resultobj = 0;
65159   vrna_path_t *arg1 = (vrna_path_t *) 0 ;
65160   void *argp1 = 0 ;
65161   int res1 = 0 ;
65162   PyObject *swig_obj[1] ;
65163   vrna_move_t *result = 0 ;
65164 
65165   if (!args) SWIG_fail;
65166   swig_obj[0] = args;
65167   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_path_t, 0 |  0 );
65168   if (!SWIG_IsOK(res1)) {
65169     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "path_move_get" "', argument " "1"" of type '" "vrna_path_t *""'");
65170   }
65171   arg1 = reinterpret_cast< vrna_path_t * >(argp1);
65172   result = (vrna_move_t *)& ((arg1)->move);
65173   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_move_t, 0 |  0 );
65174   return resultobj;
65175 fail:
65176   return NULL;
65177 }
65178 
65179 
_wrap_new_path(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)65180 SWIGINTERN PyObject *_wrap_new_path(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
65181   PyObject *resultobj = 0;
65182   double arg1 ;
65183   std::string arg2 = (std::string) "" ;
65184   vrna_move_t *arg3 = (vrna_move_t *) NULL ;
65185   unsigned int arg4 = (unsigned int) VRNA_PATH_TYPE_DOT_BRACKET ;
65186   double val1 ;
65187   int ecode1 = 0 ;
65188   void *argp3 = 0 ;
65189   int res3 = 0 ;
65190   unsigned int val4 ;
65191   int ecode4 = 0 ;
65192   PyObject * obj0 = 0 ;
65193   PyObject * obj1 = 0 ;
65194   PyObject * obj2 = 0 ;
65195   PyObject * obj3 = 0 ;
65196   char * kwnames[] = {
65197     (char *)"en",  (char *)"s",  (char *)"move",  (char *)"type",  NULL
65198   };
65199   vrna_path_t *result = 0 ;
65200 
65201   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|OOO:new_path", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
65202   ecode1 = SWIG_AsVal_double(obj0, &val1);
65203   if (!SWIG_IsOK(ecode1)) {
65204     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_path" "', argument " "1"" of type '" "double""'");
65205   }
65206   arg1 = static_cast< double >(val1);
65207   if (obj1) {
65208     {
65209       std::string *ptr = (std::string *)0;
65210       int res = SWIG_AsPtr_std_string(obj1, &ptr);
65211       if (!SWIG_IsOK(res) || !ptr) {
65212         SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_path" "', argument " "2"" of type '" "std::string""'");
65213       }
65214       arg2 = *ptr;
65215       if (SWIG_IsNewObj(res)) delete ptr;
65216     }
65217   }
65218   if (obj2) {
65219     res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_vrna_move_t, 0 |  0 );
65220     if (!SWIG_IsOK(res3)) {
65221       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_path" "', argument " "3"" of type '" "vrna_move_t *""'");
65222     }
65223     arg3 = reinterpret_cast< vrna_move_t * >(argp3);
65224   }
65225   if (obj3) {
65226     ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
65227     if (!SWIG_IsOK(ecode4)) {
65228       SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_path" "', argument " "4"" of type '" "unsigned int""'");
65229     }
65230     arg4 = static_cast< unsigned int >(val4);
65231   }
65232   {
65233     try {
65234       result = (vrna_path_t *)new_vrna_path_t(arg1,arg2,arg3,arg4);
65235     } catch (const std::exception& e) {
65236       SWIG_exception(SWIG_RuntimeError, e.what());
65237     }
65238   }
65239   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_path_t, SWIG_POINTER_NEW |  0 );
65240   return resultobj;
65241 fail:
65242   return NULL;
65243 }
65244 
65245 
_wrap_delete_path(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65246 SWIGINTERN PyObject *_wrap_delete_path(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65247   PyObject *resultobj = 0;
65248   vrna_path_t *arg1 = (vrna_path_t *) 0 ;
65249   void *argp1 = 0 ;
65250   int res1 = 0 ;
65251   PyObject *swig_obj[1] ;
65252 
65253   if (!args) SWIG_fail;
65254   swig_obj[0] = args;
65255   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_path_t, SWIG_POINTER_DISOWN |  0 );
65256   if (!SWIG_IsOK(res1)) {
65257     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_path" "', argument " "1"" of type '" "vrna_path_t *""'");
65258   }
65259   arg1 = reinterpret_cast< vrna_path_t * >(argp1);
65260   {
65261     try {
65262       delete_vrna_path_t(arg1);
65263     } catch (const std::exception& e) {
65264       SWIG_exception(SWIG_RuntimeError, e.what());
65265     }
65266   }
65267   resultobj = SWIG_Py_Void();
65268   return resultobj;
65269 fail:
65270   return NULL;
65271 }
65272 
65273 
_wrap_path___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65274 SWIGINTERN PyObject *_wrap_path___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65275   PyObject *resultobj = 0;
65276   vrna_path_t *arg1 = (vrna_path_t *) 0 ;
65277   void *argp1 = 0 ;
65278   int res1 = 0 ;
65279   PyObject *swig_obj[1] ;
65280   std::string result;
65281 
65282   if (!args) SWIG_fail;
65283   swig_obj[0] = args;
65284   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_path_t, 0 |  0 );
65285   if (!SWIG_IsOK(res1)) {
65286     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "path___str__" "', argument " "1"" of type '" "vrna_path_t *""'");
65287   }
65288   arg1 = reinterpret_cast< vrna_path_t * >(argp1);
65289   {
65290     try {
65291       result = vrna_path_t___str__(arg1);
65292     } catch (const std::exception& e) {
65293       SWIG_exception(SWIG_RuntimeError, e.what());
65294     }
65295   }
65296   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
65297   return resultobj;
65298 fail:
65299   return NULL;
65300 }
65301 
65302 
path_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65303 SWIGINTERN PyObject *path_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65304   PyObject *obj;
65305   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
65306   SWIG_TypeNewClientData(SWIGTYPE_p_vrna_path_t, SWIG_NewClientData(obj));
65307   return SWIG_Py_Void();
65308 }
65309 
path_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65310 SWIGINTERN PyObject *path_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65311   return SWIG_Python_InitShadowInstance(args);
65312 }
65313 
_wrap_new_path_options(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65314 SWIGINTERN PyObject *_wrap_new_path_options(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65315   PyObject *resultobj = 0;
65316   vrna_path_options_s *result = 0 ;
65317 
65318   if (!SWIG_Python_UnpackTuple(args, "new_path_options", 0, 0, 0)) SWIG_fail;
65319   {
65320     try {
65321       result = (vrna_path_options_s *)new_vrna_path_options_s();
65322     } catch (const std::exception& e) {
65323       SWIG_exception(SWIG_RuntimeError, e.what());
65324     }
65325   }
65326   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_path_options_s, SWIG_POINTER_NEW |  0 );
65327   return resultobj;
65328 fail:
65329   return NULL;
65330 }
65331 
65332 
_wrap_delete_path_options(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65333 SWIGINTERN PyObject *_wrap_delete_path_options(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65334   PyObject *resultobj = 0;
65335   vrna_path_options_s *arg1 = (vrna_path_options_s *) 0 ;
65336   void *argp1 = 0 ;
65337   int res1 = 0 ;
65338   PyObject *swig_obj[1] ;
65339 
65340   if (!args) SWIG_fail;
65341   swig_obj[0] = args;
65342   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_path_options_s, SWIG_POINTER_DISOWN |  0 );
65343   if (!SWIG_IsOK(res1)) {
65344     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_path_options" "', argument " "1"" of type '" "vrna_path_options_s *""'");
65345   }
65346   arg1 = reinterpret_cast< vrna_path_options_s * >(argp1);
65347   {
65348     try {
65349       delete_vrna_path_options_s(arg1);
65350     } catch (const std::exception& e) {
65351       SWIG_exception(SWIG_RuntimeError, e.what());
65352     }
65353   }
65354   resultobj = SWIG_Py_Void();
65355   return resultobj;
65356 fail:
65357   return NULL;
65358 }
65359 
65360 
path_options_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65361 SWIGINTERN PyObject *path_options_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65362   PyObject *obj;
65363   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
65364   SWIG_TypeNewClientData(SWIGTYPE_p_vrna_path_options_s, SWIG_NewClientData(obj));
65365   return SWIG_Py_Void();
65366 }
65367 
path_options_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65368 SWIGINTERN PyObject *path_options_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65369   return SWIG_Python_InitShadowInstance(args);
65370 }
65371 
_wrap_path_options_findpath(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)65372 SWIGINTERN PyObject *_wrap_path_options_findpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
65373   PyObject *resultobj = 0;
65374   int arg1 = (int) 10 ;
65375   unsigned int arg2 = (unsigned int) VRNA_PATH_TYPE_DOT_BRACKET ;
65376   int val1 ;
65377   int ecode1 = 0 ;
65378   unsigned int val2 ;
65379   int ecode2 = 0 ;
65380   PyObject * obj0 = 0 ;
65381   PyObject * obj1 = 0 ;
65382   char * kwnames[] = {
65383     (char *)"width",  (char *)"type",  NULL
65384   };
65385   vrna_path_options_s *result = 0 ;
65386 
65387   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|OO:path_options_findpath", kwnames, &obj0, &obj1)) SWIG_fail;
65388   if (obj0) {
65389     ecode1 = SWIG_AsVal_int(obj0, &val1);
65390     if (!SWIG_IsOK(ecode1)) {
65391       SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "path_options_findpath" "', argument " "1"" of type '" "int""'");
65392     }
65393     arg1 = static_cast< int >(val1);
65394   }
65395   if (obj1) {
65396     ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
65397     if (!SWIG_IsOK(ecode2)) {
65398       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "path_options_findpath" "', argument " "2"" of type '" "unsigned int""'");
65399     }
65400     arg2 = static_cast< unsigned int >(val2);
65401   }
65402   {
65403     try {
65404       result = (vrna_path_options_s *)my_path_options_findpath(arg1,arg2);
65405     } catch (const std::exception& e) {
65406       SWIG_exception(SWIG_RuntimeError, e.what());
65407     }
65408   }
65409   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_path_options_s, 0 |  0 );
65410   return resultobj;
65411 fail:
65412   return NULL;
65413 }
65414 
65415 
_wrap_get_path(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)65416 SWIGINTERN PyObject *_wrap_get_path(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
65417   PyObject *resultobj = 0;
65418   std::string arg1 ;
65419   std::string arg2 ;
65420   std::string arg3 ;
65421   int arg4 ;
65422   int val4 ;
65423   int ecode4 = 0 ;
65424   PyObject * obj0 = 0 ;
65425   PyObject * obj1 = 0 ;
65426   PyObject * obj2 = 0 ;
65427   PyObject * obj3 = 0 ;
65428   char * kwnames[] = {
65429     (char *)"seq",  (char *)"s1",  (char *)"s2",  (char *)"maxkeep",  NULL
65430   };
65431   std::vector< vrna_path_t,std::allocator< vrna_path_t > > result;
65432 
65433   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:get_path", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
65434   {
65435     std::string *ptr = (std::string *)0;
65436     int res = SWIG_AsPtr_std_string(obj0, &ptr);
65437     if (!SWIG_IsOK(res) || !ptr) {
65438       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "get_path" "', argument " "1"" of type '" "std::string""'");
65439     }
65440     arg1 = *ptr;
65441     if (SWIG_IsNewObj(res)) delete ptr;
65442   }
65443   {
65444     std::string *ptr = (std::string *)0;
65445     int res = SWIG_AsPtr_std_string(obj1, &ptr);
65446     if (!SWIG_IsOK(res) || !ptr) {
65447       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "get_path" "', argument " "2"" of type '" "std::string""'");
65448     }
65449     arg2 = *ptr;
65450     if (SWIG_IsNewObj(res)) delete ptr;
65451   }
65452   {
65453     std::string *ptr = (std::string *)0;
65454     int res = SWIG_AsPtr_std_string(obj2, &ptr);
65455     if (!SWIG_IsOK(res) || !ptr) {
65456       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "get_path" "', argument " "3"" of type '" "std::string""'");
65457     }
65458     arg3 = *ptr;
65459     if (SWIG_IsNewObj(res)) delete ptr;
65460   }
65461   ecode4 = SWIG_AsVal_int(obj3, &val4);
65462   if (!SWIG_IsOK(ecode4)) {
65463     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "get_path" "', argument " "4"" of type '" "int""'");
65464   }
65465   arg4 = static_cast< int >(val4);
65466   {
65467     try {
65468       result = my_get_path(arg1,arg2,arg3,arg4);
65469     } catch (const std::exception& e) {
65470       SWIG_exception(SWIG_RuntimeError, e.what());
65471     }
65472   }
65473   resultobj = swig::from(static_cast< std::vector< vrna_path_t,std::allocator< vrna_path_t > > >(result));
65474   return resultobj;
65475 fail:
65476   return NULL;
65477 }
65478 
65479 
_wrap_find_saddle(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)65480 SWIGINTERN PyObject *_wrap_find_saddle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
65481   PyObject *resultobj = 0;
65482   char *arg1 = (char *) 0 ;
65483   char *arg2 = (char *) 0 ;
65484   char *arg3 = (char *) 0 ;
65485   int arg4 ;
65486   int res1 ;
65487   char *buf1 = 0 ;
65488   int alloc1 = 0 ;
65489   int res2 ;
65490   char *buf2 = 0 ;
65491   int alloc2 = 0 ;
65492   int res3 ;
65493   char *buf3 = 0 ;
65494   int alloc3 = 0 ;
65495   int val4 ;
65496   int ecode4 = 0 ;
65497   PyObject * obj0 = 0 ;
65498   PyObject * obj1 = 0 ;
65499   PyObject * obj2 = 0 ;
65500   PyObject * obj3 = 0 ;
65501   char * kwnames[] = {
65502     (char *)"seq",  (char *)"s1",  (char *)"s2",  (char *)"width",  NULL
65503   };
65504   int result;
65505 
65506   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:find_saddle", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
65507   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
65508   if (!SWIG_IsOK(res1)) {
65509     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "find_saddle" "', argument " "1"" of type '" "char const *""'");
65510   }
65511   arg1 = reinterpret_cast< char * >(buf1);
65512   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
65513   if (!SWIG_IsOK(res2)) {
65514     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "find_saddle" "', argument " "2"" of type '" "char const *""'");
65515   }
65516   arg2 = reinterpret_cast< char * >(buf2);
65517   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
65518   if (!SWIG_IsOK(res3)) {
65519     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "find_saddle" "', argument " "3"" of type '" "char const *""'");
65520   }
65521   arg3 = reinterpret_cast< char * >(buf3);
65522   ecode4 = SWIG_AsVal_int(obj3, &val4);
65523   if (!SWIG_IsOK(ecode4)) {
65524     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "find_saddle" "', argument " "4"" of type '" "int""'");
65525   }
65526   arg4 = static_cast< int >(val4);
65527   {
65528     try {
65529       result = (int)find_saddle((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4);
65530     } catch (const std::exception& e) {
65531       SWIG_exception(SWIG_RuntimeError, e.what());
65532     }
65533   }
65534   resultobj = SWIG_From_int(static_cast< int >(result));
65535   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
65536   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
65537   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
65538   return resultobj;
65539 fail:
65540   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
65541   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
65542   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
65543   return NULL;
65544 }
65545 
65546 
_wrap_free_path(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)65547 SWIGINTERN PyObject *_wrap_free_path(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
65548   PyObject *resultobj = 0;
65549   vrna_path_t *arg1 = (vrna_path_t *) 0 ;
65550   void *argp1 = 0 ;
65551   int res1 = 0 ;
65552   PyObject * obj0 = 0 ;
65553   char * kwnames[] = {
65554     (char *)"path",  NULL
65555   };
65556 
65557   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:free_path", kwnames, &obj0)) SWIG_fail;
65558   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_path_t, 0 |  0 );
65559   if (!SWIG_IsOK(res1)) {
65560     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "free_path" "', argument " "1"" of type '" "vrna_path_t *""'");
65561   }
65562   arg1 = reinterpret_cast< vrna_path_t * >(argp1);
65563   {
65564     try {
65565       free_path(arg1);
65566     } catch (const std::exception& e) {
65567       SWIG_exception(SWIG_RuntimeError, e.what());
65568     }
65569   }
65570   resultobj = SWIG_Py_Void();
65571   return resultobj;
65572 fail:
65573   return NULL;
65574 }
65575 
65576 
_wrap_heat_capacity_result_temperature_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65577 SWIGINTERN PyObject *_wrap_heat_capacity_result_temperature_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65578   PyObject *resultobj = 0;
65579   heat_capacity_result *arg1 = (heat_capacity_result *) 0 ;
65580   float arg2 ;
65581   void *argp1 = 0 ;
65582   int res1 = 0 ;
65583   float val2 ;
65584   int ecode2 = 0 ;
65585   PyObject *swig_obj[2] ;
65586 
65587   if (!SWIG_Python_UnpackTuple(args, "heat_capacity_result_temperature_set", 2, 2, swig_obj)) SWIG_fail;
65588   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_heat_capacity_result, 0 |  0 );
65589   if (!SWIG_IsOK(res1)) {
65590     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "heat_capacity_result_temperature_set" "', argument " "1"" of type '" "heat_capacity_result *""'");
65591   }
65592   arg1 = reinterpret_cast< heat_capacity_result * >(argp1);
65593   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
65594   if (!SWIG_IsOK(ecode2)) {
65595     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "heat_capacity_result_temperature_set" "', argument " "2"" of type '" "float""'");
65596   }
65597   arg2 = static_cast< float >(val2);
65598   if (arg1) (arg1)->temperature = arg2;
65599   resultobj = SWIG_Py_Void();
65600   return resultobj;
65601 fail:
65602   return NULL;
65603 }
65604 
65605 
_wrap_heat_capacity_result_temperature_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65606 SWIGINTERN PyObject *_wrap_heat_capacity_result_temperature_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65607   PyObject *resultobj = 0;
65608   heat_capacity_result *arg1 = (heat_capacity_result *) 0 ;
65609   void *argp1 = 0 ;
65610   int res1 = 0 ;
65611   PyObject *swig_obj[1] ;
65612   float result;
65613 
65614   if (!args) SWIG_fail;
65615   swig_obj[0] = args;
65616   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_heat_capacity_result, 0 |  0 );
65617   if (!SWIG_IsOK(res1)) {
65618     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "heat_capacity_result_temperature_get" "', argument " "1"" of type '" "heat_capacity_result *""'");
65619   }
65620   arg1 = reinterpret_cast< heat_capacity_result * >(argp1);
65621   result = (float) ((arg1)->temperature);
65622   resultobj = SWIG_From_float(static_cast< float >(result));
65623   return resultobj;
65624 fail:
65625   return NULL;
65626 }
65627 
65628 
_wrap_heat_capacity_result_heat_capacity_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65629 SWIGINTERN PyObject *_wrap_heat_capacity_result_heat_capacity_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65630   PyObject *resultobj = 0;
65631   heat_capacity_result *arg1 = (heat_capacity_result *) 0 ;
65632   float arg2 ;
65633   void *argp1 = 0 ;
65634   int res1 = 0 ;
65635   float val2 ;
65636   int ecode2 = 0 ;
65637   PyObject *swig_obj[2] ;
65638 
65639   if (!SWIG_Python_UnpackTuple(args, "heat_capacity_result_heat_capacity_set", 2, 2, swig_obj)) SWIG_fail;
65640   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_heat_capacity_result, 0 |  0 );
65641   if (!SWIG_IsOK(res1)) {
65642     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "heat_capacity_result_heat_capacity_set" "', argument " "1"" of type '" "heat_capacity_result *""'");
65643   }
65644   arg1 = reinterpret_cast< heat_capacity_result * >(argp1);
65645   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
65646   if (!SWIG_IsOK(ecode2)) {
65647     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "heat_capacity_result_heat_capacity_set" "', argument " "2"" of type '" "float""'");
65648   }
65649   arg2 = static_cast< float >(val2);
65650   if (arg1) (arg1)->heat_capacity = arg2;
65651   resultobj = SWIG_Py_Void();
65652   return resultobj;
65653 fail:
65654   return NULL;
65655 }
65656 
65657 
_wrap_heat_capacity_result_heat_capacity_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65658 SWIGINTERN PyObject *_wrap_heat_capacity_result_heat_capacity_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65659   PyObject *resultobj = 0;
65660   heat_capacity_result *arg1 = (heat_capacity_result *) 0 ;
65661   void *argp1 = 0 ;
65662   int res1 = 0 ;
65663   PyObject *swig_obj[1] ;
65664   float result;
65665 
65666   if (!args) SWIG_fail;
65667   swig_obj[0] = args;
65668   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_heat_capacity_result, 0 |  0 );
65669   if (!SWIG_IsOK(res1)) {
65670     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "heat_capacity_result_heat_capacity_get" "', argument " "1"" of type '" "heat_capacity_result *""'");
65671   }
65672   arg1 = reinterpret_cast< heat_capacity_result * >(argp1);
65673   result = (float) ((arg1)->heat_capacity);
65674   resultobj = SWIG_From_float(static_cast< float >(result));
65675   return resultobj;
65676 fail:
65677   return NULL;
65678 }
65679 
65680 
_wrap_heat_capacity_result___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65681 SWIGINTERN PyObject *_wrap_heat_capacity_result___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65682   PyObject *resultobj = 0;
65683   heat_capacity_result *arg1 = (heat_capacity_result *) 0 ;
65684   void *argp1 = 0 ;
65685   int res1 = 0 ;
65686   PyObject *swig_obj[1] ;
65687   std::string result;
65688 
65689   if (!args) SWIG_fail;
65690   swig_obj[0] = args;
65691   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_heat_capacity_result, 0 |  0 );
65692   if (!SWIG_IsOK(res1)) {
65693     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "heat_capacity_result___str__" "', argument " "1"" of type '" "heat_capacity_result *""'");
65694   }
65695   arg1 = reinterpret_cast< heat_capacity_result * >(argp1);
65696   {
65697     try {
65698       result = heat_capacity_result___str__(arg1);
65699     } catch (const std::exception& e) {
65700       SWIG_exception(SWIG_RuntimeError, e.what());
65701     }
65702   }
65703   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
65704   return resultobj;
65705 fail:
65706   return NULL;
65707 }
65708 
65709 
_wrap_new_heat_capacity_result(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65710 SWIGINTERN PyObject *_wrap_new_heat_capacity_result(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65711   PyObject *resultobj = 0;
65712   heat_capacity_result *result = 0 ;
65713 
65714   if (!SWIG_Python_UnpackTuple(args, "new_heat_capacity_result", 0, 0, 0)) SWIG_fail;
65715   {
65716     try {
65717       result = (heat_capacity_result *)new heat_capacity_result();
65718     } catch (const std::exception& e) {
65719       SWIG_exception(SWIG_RuntimeError, e.what());
65720     }
65721   }
65722   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_heat_capacity_result, SWIG_POINTER_NEW |  0 );
65723   return resultobj;
65724 fail:
65725   return NULL;
65726 }
65727 
65728 
_wrap_delete_heat_capacity_result(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65729 SWIGINTERN PyObject *_wrap_delete_heat_capacity_result(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65730   PyObject *resultobj = 0;
65731   heat_capacity_result *arg1 = (heat_capacity_result *) 0 ;
65732   void *argp1 = 0 ;
65733   int res1 = 0 ;
65734   PyObject *swig_obj[1] ;
65735 
65736   if (!args) SWIG_fail;
65737   swig_obj[0] = args;
65738   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_heat_capacity_result, SWIG_POINTER_DISOWN |  0 );
65739   if (!SWIG_IsOK(res1)) {
65740     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_heat_capacity_result" "', argument " "1"" of type '" "heat_capacity_result *""'");
65741   }
65742   arg1 = reinterpret_cast< heat_capacity_result * >(argp1);
65743   {
65744     try {
65745       delete arg1;
65746     } catch (const std::exception& e) {
65747       SWIG_exception(SWIG_RuntimeError, e.what());
65748     }
65749   }
65750   resultobj = SWIG_Py_Void();
65751   return resultobj;
65752 fail:
65753   return NULL;
65754 }
65755 
65756 
heat_capacity_result_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65757 SWIGINTERN PyObject *heat_capacity_result_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65758   PyObject *obj;
65759   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
65760   SWIG_TypeNewClientData(SWIGTYPE_p_heat_capacity_result, SWIG_NewClientData(obj));
65761   return SWIG_Py_Void();
65762 }
65763 
heat_capacity_result_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65764 SWIGINTERN PyObject *heat_capacity_result_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65765   return SWIG_Python_InitShadowInstance(args);
65766 }
65767 
_wrap_HeatCapacityVector_iterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65768 SWIGINTERN PyObject *_wrap_HeatCapacityVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65769   PyObject *resultobj = 0;
65770   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
65771   PyObject **arg2 = (PyObject **) 0 ;
65772   void *argp1 = 0 ;
65773   int res1 = 0 ;
65774   PyObject *swig_obj[1] ;
65775   swig::SwigPyIterator *result = 0 ;
65776 
65777   arg2 = &swig_obj[0];
65778   if (!args) SWIG_fail;
65779   swig_obj[0] = args;
65780   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
65781   if (!SWIG_IsOK(res1)) {
65782     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_iterator" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
65783   }
65784   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
65785   {
65786     try {
65787       result = (swig::SwigPyIterator *)std_vector_Sl_heat_capacity_result_Sg__iterator(arg1,arg2);
65788     } catch (const std::exception& e) {
65789       SWIG_exception(SWIG_RuntimeError, e.what());
65790     }
65791   }
65792   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
65793   return resultobj;
65794 fail:
65795   return NULL;
65796 }
65797 
65798 
_wrap_HeatCapacityVector___nonzero__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65799 SWIGINTERN PyObject *_wrap_HeatCapacityVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65800   PyObject *resultobj = 0;
65801   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
65802   void *argp1 = 0 ;
65803   int res1 = 0 ;
65804   PyObject *swig_obj[1] ;
65805   bool result;
65806 
65807   if (!args) SWIG_fail;
65808   swig_obj[0] = args;
65809   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
65810   if (!SWIG_IsOK(res1)) {
65811     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector___nonzero__" "', argument " "1"" of type '" "std::vector< heat_capacity_result > const *""'");
65812   }
65813   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
65814   {
65815     try {
65816       result = (bool)std_vector_Sl_heat_capacity_result_Sg____nonzero__((std::vector< heat_capacity_result > const *)arg1);
65817     } catch (const std::exception& e) {
65818       SWIG_exception(SWIG_RuntimeError, e.what());
65819     }
65820   }
65821   resultobj = SWIG_From_bool(static_cast< bool >(result));
65822   return resultobj;
65823 fail:
65824   return NULL;
65825 }
65826 
65827 
_wrap_HeatCapacityVector___bool__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65828 SWIGINTERN PyObject *_wrap_HeatCapacityVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65829   PyObject *resultobj = 0;
65830   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
65831   void *argp1 = 0 ;
65832   int res1 = 0 ;
65833   PyObject *swig_obj[1] ;
65834   bool result;
65835 
65836   if (!args) SWIG_fail;
65837   swig_obj[0] = args;
65838   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
65839   if (!SWIG_IsOK(res1)) {
65840     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector___bool__" "', argument " "1"" of type '" "std::vector< heat_capacity_result > const *""'");
65841   }
65842   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
65843   {
65844     try {
65845       result = (bool)std_vector_Sl_heat_capacity_result_Sg____bool__((std::vector< heat_capacity_result > const *)arg1);
65846     } catch (const std::exception& e) {
65847       SWIG_exception(SWIG_RuntimeError, e.what());
65848     }
65849   }
65850   resultobj = SWIG_From_bool(static_cast< bool >(result));
65851   return resultobj;
65852 fail:
65853   return NULL;
65854 }
65855 
65856 
_wrap_HeatCapacityVector___len__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)65857 SWIGINTERN PyObject *_wrap_HeatCapacityVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
65858   PyObject *resultobj = 0;
65859   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
65860   void *argp1 = 0 ;
65861   int res1 = 0 ;
65862   PyObject *swig_obj[1] ;
65863   std::vector< heat_capacity_result >::size_type result;
65864 
65865   if (!args) SWIG_fail;
65866   swig_obj[0] = args;
65867   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
65868   if (!SWIG_IsOK(res1)) {
65869     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector___len__" "', argument " "1"" of type '" "std::vector< heat_capacity_result > const *""'");
65870   }
65871   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
65872   {
65873     try {
65874       result = std_vector_Sl_heat_capacity_result_Sg____len__((std::vector< heat_capacity_result > const *)arg1);
65875     } catch (const std::exception& e) {
65876       SWIG_exception(SWIG_RuntimeError, e.what());
65877     }
65878   }
65879   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
65880   return resultobj;
65881 fail:
65882   return NULL;
65883 }
65884 
65885 
_wrap_HeatCapacityVector___getslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)65886 SWIGINTERN PyObject *_wrap_HeatCapacityVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
65887   PyObject *resultobj = 0;
65888   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
65889   std::vector< heat_capacity_result >::difference_type arg2 ;
65890   std::vector< heat_capacity_result >::difference_type arg3 ;
65891   void *argp1 = 0 ;
65892   int res1 = 0 ;
65893   ptrdiff_t val2 ;
65894   int ecode2 = 0 ;
65895   ptrdiff_t val3 ;
65896   int ecode3 = 0 ;
65897   PyObject * obj0 = 0 ;
65898   PyObject * obj1 = 0 ;
65899   PyObject * obj2 = 0 ;
65900   char * kwnames[] = {
65901     (char *)"self",  (char *)"i",  (char *)"j",  NULL
65902   };
65903   std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > *result = 0 ;
65904 
65905   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:HeatCapacityVector___getslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
65906   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
65907   if (!SWIG_IsOK(res1)) {
65908     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector___getslice__" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
65909   }
65910   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
65911   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
65912   if (!SWIG_IsOK(ecode2)) {
65913     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeatCapacityVector___getslice__" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::difference_type""'");
65914   }
65915   arg2 = static_cast< std::vector< heat_capacity_result >::difference_type >(val2);
65916   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
65917   if (!SWIG_IsOK(ecode3)) {
65918     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HeatCapacityVector___getslice__" "', argument " "3"" of type '" "std::vector< heat_capacity_result >::difference_type""'");
65919   }
65920   arg3 = static_cast< std::vector< heat_capacity_result >::difference_type >(val3);
65921   {
65922     try {
65923       try {
65924         result = (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > *)std_vector_Sl_heat_capacity_result_Sg____getslice__(arg1,arg2,arg3);
65925       } catch(std::out_of_range &_e) {
65926         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
65927       } catch(std::invalid_argument &_e) {
65928         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
65929       }
65930     } catch (const std::exception& e) {
65931       SWIG_exception(SWIG_RuntimeError, e.what());
65932     }
65933   }
65934   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, SWIG_POINTER_OWN |  0 );
65935   return resultobj;
65936 fail:
65937   return NULL;
65938 }
65939 
65940 
_wrap_HeatCapacityVector___setslice____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)65941 SWIGINTERN PyObject *_wrap_HeatCapacityVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
65942   PyObject *resultobj = 0;
65943   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
65944   std::vector< heat_capacity_result >::difference_type arg2 ;
65945   std::vector< heat_capacity_result >::difference_type arg3 ;
65946   void *argp1 = 0 ;
65947   int res1 = 0 ;
65948   ptrdiff_t val2 ;
65949   int ecode2 = 0 ;
65950   ptrdiff_t val3 ;
65951   int ecode3 = 0 ;
65952 
65953   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
65954   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
65955   if (!SWIG_IsOK(res1)) {
65956     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector___setslice__" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
65957   }
65958   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
65959   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
65960   if (!SWIG_IsOK(ecode2)) {
65961     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeatCapacityVector___setslice__" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::difference_type""'");
65962   }
65963   arg2 = static_cast< std::vector< heat_capacity_result >::difference_type >(val2);
65964   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
65965   if (!SWIG_IsOK(ecode3)) {
65966     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HeatCapacityVector___setslice__" "', argument " "3"" of type '" "std::vector< heat_capacity_result >::difference_type""'");
65967   }
65968   arg3 = static_cast< std::vector< heat_capacity_result >::difference_type >(val3);
65969   {
65970     try {
65971       try {
65972         std_vector_Sl_heat_capacity_result_Sg____setslice____SWIG_0(arg1,arg2,arg3);
65973       } catch(std::out_of_range &_e) {
65974         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
65975       } catch(std::invalid_argument &_e) {
65976         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
65977       }
65978     } catch (const std::exception& e) {
65979       SWIG_exception(SWIG_RuntimeError, e.what());
65980     }
65981   }
65982   resultobj = SWIG_Py_Void();
65983   return resultobj;
65984 fail:
65985   return NULL;
65986 }
65987 
65988 
_wrap_HeatCapacityVector___setslice____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)65989 SWIGINTERN PyObject *_wrap_HeatCapacityVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
65990   PyObject *resultobj = 0;
65991   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
65992   std::vector< heat_capacity_result >::difference_type arg2 ;
65993   std::vector< heat_capacity_result >::difference_type arg3 ;
65994   std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > *arg4 = 0 ;
65995   void *argp1 = 0 ;
65996   int res1 = 0 ;
65997   ptrdiff_t val2 ;
65998   int ecode2 = 0 ;
65999   ptrdiff_t val3 ;
66000   int ecode3 = 0 ;
66001   int res4 = SWIG_OLDOBJ ;
66002 
66003   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
66004   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
66005   if (!SWIG_IsOK(res1)) {
66006     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector___setslice__" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
66007   }
66008   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
66009   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
66010   if (!SWIG_IsOK(ecode2)) {
66011     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeatCapacityVector___setslice__" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::difference_type""'");
66012   }
66013   arg2 = static_cast< std::vector< heat_capacity_result >::difference_type >(val2);
66014   ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
66015   if (!SWIG_IsOK(ecode3)) {
66016     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HeatCapacityVector___setslice__" "', argument " "3"" of type '" "std::vector< heat_capacity_result >::difference_type""'");
66017   }
66018   arg3 = static_cast< std::vector< heat_capacity_result >::difference_type >(val3);
66019   {
66020     std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > *ptr = (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > *)0;
66021     res4 = swig::asptr(swig_obj[3], &ptr);
66022     if (!SWIG_IsOK(res4)) {
66023       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "HeatCapacityVector___setslice__" "', argument " "4"" of type '" "std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > const &""'");
66024     }
66025     if (!ptr) {
66026       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeatCapacityVector___setslice__" "', argument " "4"" of type '" "std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > const &""'");
66027     }
66028     arg4 = ptr;
66029   }
66030   {
66031     try {
66032       try {
66033         std_vector_Sl_heat_capacity_result_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > const &)*arg4);
66034       } catch(std::out_of_range &_e) {
66035         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
66036       } catch(std::invalid_argument &_e) {
66037         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
66038       }
66039     } catch (const std::exception& e) {
66040       SWIG_exception(SWIG_RuntimeError, e.what());
66041     }
66042   }
66043   resultobj = SWIG_Py_Void();
66044   if (SWIG_IsNewObj(res4)) delete arg4;
66045   return resultobj;
66046 fail:
66047   if (SWIG_IsNewObj(res4)) delete arg4;
66048   return NULL;
66049 }
66050 
66051 
_wrap_HeatCapacityVector___setslice__(PyObject * self,PyObject * args)66052 SWIGINTERN PyObject *_wrap_HeatCapacityVector___setslice__(PyObject *self, PyObject *args) {
66053   Py_ssize_t argc;
66054   PyObject *argv[5] = {
66055     0
66056   };
66057 
66058   if (!(argc = SWIG_Python_UnpackTuple(args, "HeatCapacityVector___setslice__", 0, 4, argv))) SWIG_fail;
66059   --argc;
66060   if (argc == 3) {
66061     int _v;
66062     int res = swig::asptr(argv[0], (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >**)(0));
66063     _v = SWIG_CheckState(res);
66064     if (_v) {
66065       {
66066         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
66067         _v = SWIG_CheckState(res);
66068       }
66069       if (_v) {
66070         {
66071           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
66072           _v = SWIG_CheckState(res);
66073         }
66074         if (_v) {
66075           return _wrap_HeatCapacityVector___setslice____SWIG_0(self, argc, argv);
66076         }
66077       }
66078     }
66079   }
66080   if (argc == 4) {
66081     int _v;
66082     int res = swig::asptr(argv[0], (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >**)(0));
66083     _v = SWIG_CheckState(res);
66084     if (_v) {
66085       {
66086         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
66087         _v = SWIG_CheckState(res);
66088       }
66089       if (_v) {
66090         {
66091           int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
66092           _v = SWIG_CheckState(res);
66093         }
66094         if (_v) {
66095           int res = swig::asptr(argv[3], (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >**)(0));
66096           _v = SWIG_CheckState(res);
66097           if (_v) {
66098             return _wrap_HeatCapacityVector___setslice____SWIG_1(self, argc, argv);
66099           }
66100         }
66101       }
66102     }
66103   }
66104 
66105 fail:
66106   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'HeatCapacityVector___setslice__'.\n"
66107     "  Possible C/C++ prototypes are:\n"
66108     "    std::vector< heat_capacity_result >::__setslice__(std::vector< heat_capacity_result >::difference_type,std::vector< heat_capacity_result >::difference_type)\n"
66109     "    std::vector< heat_capacity_result >::__setslice__(std::vector< heat_capacity_result >::difference_type,std::vector< heat_capacity_result >::difference_type,std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > const &)\n");
66110   return 0;
66111 }
66112 
66113 
_wrap_HeatCapacityVector___delslice__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)66114 SWIGINTERN PyObject *_wrap_HeatCapacityVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
66115   PyObject *resultobj = 0;
66116   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
66117   std::vector< heat_capacity_result >::difference_type arg2 ;
66118   std::vector< heat_capacity_result >::difference_type arg3 ;
66119   void *argp1 = 0 ;
66120   int res1 = 0 ;
66121   ptrdiff_t val2 ;
66122   int ecode2 = 0 ;
66123   ptrdiff_t val3 ;
66124   int ecode3 = 0 ;
66125   PyObject * obj0 = 0 ;
66126   PyObject * obj1 = 0 ;
66127   PyObject * obj2 = 0 ;
66128   char * kwnames[] = {
66129     (char *)"self",  (char *)"i",  (char *)"j",  NULL
66130   };
66131 
66132   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:HeatCapacityVector___delslice__", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
66133   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
66134   if (!SWIG_IsOK(res1)) {
66135     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector___delslice__" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
66136   }
66137   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
66138   ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
66139   if (!SWIG_IsOK(ecode2)) {
66140     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeatCapacityVector___delslice__" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::difference_type""'");
66141   }
66142   arg2 = static_cast< std::vector< heat_capacity_result >::difference_type >(val2);
66143   ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
66144   if (!SWIG_IsOK(ecode3)) {
66145     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HeatCapacityVector___delslice__" "', argument " "3"" of type '" "std::vector< heat_capacity_result >::difference_type""'");
66146   }
66147   arg3 = static_cast< std::vector< heat_capacity_result >::difference_type >(val3);
66148   {
66149     try {
66150       try {
66151         std_vector_Sl_heat_capacity_result_Sg____delslice__(arg1,arg2,arg3);
66152       } catch(std::out_of_range &_e) {
66153         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
66154       } catch(std::invalid_argument &_e) {
66155         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
66156       }
66157     } catch (const std::exception& e) {
66158       SWIG_exception(SWIG_RuntimeError, e.what());
66159     }
66160   }
66161   resultobj = SWIG_Py_Void();
66162   return resultobj;
66163 fail:
66164   return NULL;
66165 }
66166 
66167 
_wrap_HeatCapacityVector___delitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)66168 SWIGINTERN PyObject *_wrap_HeatCapacityVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
66169   PyObject *resultobj = 0;
66170   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
66171   std::vector< heat_capacity_result >::difference_type arg2 ;
66172   void *argp1 = 0 ;
66173   int res1 = 0 ;
66174   ptrdiff_t val2 ;
66175   int ecode2 = 0 ;
66176 
66177   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
66178   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
66179   if (!SWIG_IsOK(res1)) {
66180     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector___delitem__" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
66181   }
66182   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
66183   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
66184   if (!SWIG_IsOK(ecode2)) {
66185     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeatCapacityVector___delitem__" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::difference_type""'");
66186   }
66187   arg2 = static_cast< std::vector< heat_capacity_result >::difference_type >(val2);
66188   {
66189     try {
66190       try {
66191         std_vector_Sl_heat_capacity_result_Sg____delitem____SWIG_0(arg1,arg2);
66192       } catch(std::out_of_range &_e) {
66193         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
66194       } catch(std::invalid_argument &_e) {
66195         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
66196       }
66197     } catch (const std::exception& e) {
66198       SWIG_exception(SWIG_RuntimeError, e.what());
66199     }
66200   }
66201   resultobj = SWIG_Py_Void();
66202   return resultobj;
66203 fail:
66204   return NULL;
66205 }
66206 
66207 
_wrap_HeatCapacityVector___getitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)66208 SWIGINTERN PyObject *_wrap_HeatCapacityVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
66209   PyObject *resultobj = 0;
66210   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
66211   PySliceObject *arg2 = (PySliceObject *) 0 ;
66212   void *argp1 = 0 ;
66213   int res1 = 0 ;
66214   std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > *result = 0 ;
66215 
66216   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
66217   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
66218   if (!SWIG_IsOK(res1)) {
66219     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector___getitem__" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
66220   }
66221   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
66222   {
66223     if (!PySlice_Check(swig_obj[1])) {
66224       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HeatCapacityVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
66225     }
66226     arg2 = (PySliceObject *) swig_obj[1];
66227   }
66228   {
66229     try {
66230       try {
66231         result = (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > *)std_vector_Sl_heat_capacity_result_Sg____getitem____SWIG_0(arg1,arg2);
66232       } catch(std::out_of_range &_e) {
66233         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
66234       } catch(std::invalid_argument &_e) {
66235         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
66236       }
66237     } catch (const std::exception& e) {
66238       SWIG_exception(SWIG_RuntimeError, e.what());
66239     }
66240   }
66241   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, SWIG_POINTER_OWN |  0 );
66242   return resultobj;
66243 fail:
66244   return NULL;
66245 }
66246 
66247 
_wrap_HeatCapacityVector___setitem____SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)66248 SWIGINTERN PyObject *_wrap_HeatCapacityVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
66249   PyObject *resultobj = 0;
66250   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
66251   PySliceObject *arg2 = (PySliceObject *) 0 ;
66252   std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > *arg3 = 0 ;
66253   void *argp1 = 0 ;
66254   int res1 = 0 ;
66255   int res3 = SWIG_OLDOBJ ;
66256 
66257   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
66258   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
66259   if (!SWIG_IsOK(res1)) {
66260     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector___setitem__" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
66261   }
66262   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
66263   {
66264     if (!PySlice_Check(swig_obj[1])) {
66265       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HeatCapacityVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
66266     }
66267     arg2 = (PySliceObject *) swig_obj[1];
66268   }
66269   {
66270     std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > *ptr = (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > *)0;
66271     res3 = swig::asptr(swig_obj[2], &ptr);
66272     if (!SWIG_IsOK(res3)) {
66273       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HeatCapacityVector___setitem__" "', argument " "3"" of type '" "std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > const &""'");
66274     }
66275     if (!ptr) {
66276       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeatCapacityVector___setitem__" "', argument " "3"" of type '" "std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > const &""'");
66277     }
66278     arg3 = ptr;
66279   }
66280   {
66281     try {
66282       try {
66283         std_vector_Sl_heat_capacity_result_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > const &)*arg3);
66284       } catch(std::out_of_range &_e) {
66285         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
66286       } catch(std::invalid_argument &_e) {
66287         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
66288       }
66289     } catch (const std::exception& e) {
66290       SWIG_exception(SWIG_RuntimeError, e.what());
66291     }
66292   }
66293   resultobj = SWIG_Py_Void();
66294   if (SWIG_IsNewObj(res3)) delete arg3;
66295   return resultobj;
66296 fail:
66297   if (SWIG_IsNewObj(res3)) delete arg3;
66298   return NULL;
66299 }
66300 
66301 
_wrap_HeatCapacityVector___setitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)66302 SWIGINTERN PyObject *_wrap_HeatCapacityVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
66303   PyObject *resultobj = 0;
66304   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
66305   PySliceObject *arg2 = (PySliceObject *) 0 ;
66306   void *argp1 = 0 ;
66307   int res1 = 0 ;
66308 
66309   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
66310   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
66311   if (!SWIG_IsOK(res1)) {
66312     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector___setitem__" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
66313   }
66314   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
66315   {
66316     if (!PySlice_Check(swig_obj[1])) {
66317       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HeatCapacityVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
66318     }
66319     arg2 = (PySliceObject *) swig_obj[1];
66320   }
66321   {
66322     try {
66323       try {
66324         std_vector_Sl_heat_capacity_result_Sg____setitem____SWIG_1(arg1,arg2);
66325       } catch(std::out_of_range &_e) {
66326         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
66327       } catch(std::invalid_argument &_e) {
66328         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
66329       }
66330     } catch (const std::exception& e) {
66331       SWIG_exception(SWIG_RuntimeError, e.what());
66332     }
66333   }
66334   resultobj = SWIG_Py_Void();
66335   return resultobj;
66336 fail:
66337   return NULL;
66338 }
66339 
66340 
_wrap_HeatCapacityVector___delitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)66341 SWIGINTERN PyObject *_wrap_HeatCapacityVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
66342   PyObject *resultobj = 0;
66343   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
66344   PySliceObject *arg2 = (PySliceObject *) 0 ;
66345   void *argp1 = 0 ;
66346   int res1 = 0 ;
66347 
66348   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
66349   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
66350   if (!SWIG_IsOK(res1)) {
66351     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector___delitem__" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
66352   }
66353   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
66354   {
66355     if (!PySlice_Check(swig_obj[1])) {
66356       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HeatCapacityVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
66357     }
66358     arg2 = (PySliceObject *) swig_obj[1];
66359   }
66360   {
66361     try {
66362       try {
66363         std_vector_Sl_heat_capacity_result_Sg____delitem____SWIG_1(arg1,arg2);
66364       } catch(std::out_of_range &_e) {
66365         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
66366       } catch(std::invalid_argument &_e) {
66367         SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
66368       }
66369     } catch (const std::exception& e) {
66370       SWIG_exception(SWIG_RuntimeError, e.what());
66371     }
66372   }
66373   resultobj = SWIG_Py_Void();
66374   return resultobj;
66375 fail:
66376   return NULL;
66377 }
66378 
66379 
_wrap_HeatCapacityVector___delitem__(PyObject * self,PyObject * args)66380 SWIGINTERN PyObject *_wrap_HeatCapacityVector___delitem__(PyObject *self, PyObject *args) {
66381   Py_ssize_t argc;
66382   PyObject *argv[3] = {
66383     0
66384   };
66385 
66386   if (!(argc = SWIG_Python_UnpackTuple(args, "HeatCapacityVector___delitem__", 0, 2, argv))) SWIG_fail;
66387   --argc;
66388   if (argc == 2) {
66389     int _v;
66390     int res = swig::asptr(argv[0], (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >**)(0));
66391     _v = SWIG_CheckState(res);
66392     if (_v) {
66393       {
66394         _v = PySlice_Check(argv[1]);
66395       }
66396       if (_v) {
66397         return _wrap_HeatCapacityVector___delitem____SWIG_1(self, argc, argv);
66398       }
66399     }
66400   }
66401   if (argc == 2) {
66402     int _v;
66403     int res = swig::asptr(argv[0], (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >**)(0));
66404     _v = SWIG_CheckState(res);
66405     if (_v) {
66406       {
66407         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
66408         _v = SWIG_CheckState(res);
66409       }
66410       if (_v) {
66411         return _wrap_HeatCapacityVector___delitem____SWIG_0(self, argc, argv);
66412       }
66413     }
66414   }
66415 
66416 fail:
66417   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'HeatCapacityVector___delitem__'.\n"
66418     "  Possible C/C++ prototypes are:\n"
66419     "    std::vector< heat_capacity_result >::__delitem__(std::vector< heat_capacity_result >::difference_type)\n"
66420     "    std::vector< heat_capacity_result >::__delitem__(PySliceObject *)\n");
66421   return 0;
66422 }
66423 
66424 
_wrap_HeatCapacityVector___getitem____SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)66425 SWIGINTERN PyObject *_wrap_HeatCapacityVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
66426   PyObject *resultobj = 0;
66427   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
66428   std::vector< heat_capacity_result >::difference_type arg2 ;
66429   void *argp1 = 0 ;
66430   int res1 = 0 ;
66431   ptrdiff_t val2 ;
66432   int ecode2 = 0 ;
66433   std::vector< heat_capacity_result >::value_type *result = 0 ;
66434 
66435   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
66436   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
66437   if (!SWIG_IsOK(res1)) {
66438     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector___getitem__" "', argument " "1"" of type '" "std::vector< heat_capacity_result > const *""'");
66439   }
66440   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
66441   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
66442   if (!SWIG_IsOK(ecode2)) {
66443     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeatCapacityVector___getitem__" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::difference_type""'");
66444   }
66445   arg2 = static_cast< std::vector< heat_capacity_result >::difference_type >(val2);
66446   {
66447     try {
66448       try {
66449         result = (std::vector< heat_capacity_result >::value_type *) &std_vector_Sl_heat_capacity_result_Sg____getitem____SWIG_1((std::vector< heat_capacity_result > const *)arg1,arg2);
66450       } catch(std::out_of_range &_e) {
66451         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
66452       }
66453     } catch (const std::exception& e) {
66454       SWIG_exception(SWIG_RuntimeError, e.what());
66455     }
66456   }
66457   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_heat_capacity_result, 0 |  0 );
66458   (void)swig::container_owner<swig::traits<std::vector< heat_capacity_result >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
66459   return resultobj;
66460 fail:
66461   return NULL;
66462 }
66463 
66464 
_wrap_HeatCapacityVector___getitem__(PyObject * self,PyObject * args)66465 SWIGINTERN PyObject *_wrap_HeatCapacityVector___getitem__(PyObject *self, PyObject *args) {
66466   Py_ssize_t argc;
66467   PyObject *argv[3] = {
66468     0
66469   };
66470 
66471   if (!(argc = SWIG_Python_UnpackTuple(args, "HeatCapacityVector___getitem__", 0, 2, argv))) SWIG_fail;
66472   --argc;
66473   if (argc == 2) {
66474     int _v;
66475     int res = swig::asptr(argv[0], (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >**)(0));
66476     _v = SWIG_CheckState(res);
66477     if (_v) {
66478       {
66479         _v = PySlice_Check(argv[1]);
66480       }
66481       if (_v) {
66482         return _wrap_HeatCapacityVector___getitem____SWIG_0(self, argc, argv);
66483       }
66484     }
66485   }
66486   if (argc == 2) {
66487     int _v;
66488     int res = swig::asptr(argv[0], (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >**)(0));
66489     _v = SWIG_CheckState(res);
66490     if (_v) {
66491       {
66492         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
66493         _v = SWIG_CheckState(res);
66494       }
66495       if (_v) {
66496         return _wrap_HeatCapacityVector___getitem____SWIG_1(self, argc, argv);
66497       }
66498     }
66499   }
66500 
66501 fail:
66502   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'HeatCapacityVector___getitem__'.\n"
66503     "  Possible C/C++ prototypes are:\n"
66504     "    std::vector< heat_capacity_result >::__getitem__(PySliceObject *)\n"
66505     "    std::vector< heat_capacity_result >::__getitem__(std::vector< heat_capacity_result >::difference_type) const\n");
66506   return 0;
66507 }
66508 
66509 
_wrap_HeatCapacityVector___setitem____SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)66510 SWIGINTERN PyObject *_wrap_HeatCapacityVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
66511   PyObject *resultobj = 0;
66512   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
66513   std::vector< heat_capacity_result >::difference_type arg2 ;
66514   std::vector< heat_capacity_result >::value_type *arg3 = 0 ;
66515   void *argp1 = 0 ;
66516   int res1 = 0 ;
66517   ptrdiff_t val2 ;
66518   int ecode2 = 0 ;
66519   void *argp3 = 0 ;
66520   int res3 = 0 ;
66521 
66522   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
66523   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
66524   if (!SWIG_IsOK(res1)) {
66525     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector___setitem__" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
66526   }
66527   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
66528   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
66529   if (!SWIG_IsOK(ecode2)) {
66530     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeatCapacityVector___setitem__" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::difference_type""'");
66531   }
66532   arg2 = static_cast< std::vector< heat_capacity_result >::difference_type >(val2);
66533   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_heat_capacity_result,  0  | 0);
66534   if (!SWIG_IsOK(res3)) {
66535     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HeatCapacityVector___setitem__" "', argument " "3"" of type '" "std::vector< heat_capacity_result >::value_type const &""'");
66536   }
66537   if (!argp3) {
66538     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeatCapacityVector___setitem__" "', argument " "3"" of type '" "std::vector< heat_capacity_result >::value_type const &""'");
66539   }
66540   arg3 = reinterpret_cast< std::vector< heat_capacity_result >::value_type * >(argp3);
66541   {
66542     try {
66543       try {
66544         std_vector_Sl_heat_capacity_result_Sg____setitem____SWIG_2(arg1,arg2,(heat_capacity_result const &)*arg3);
66545       } catch(std::out_of_range &_e) {
66546         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
66547       }
66548     } catch (const std::exception& e) {
66549       SWIG_exception(SWIG_RuntimeError, e.what());
66550     }
66551   }
66552   resultobj = SWIG_Py_Void();
66553   return resultobj;
66554 fail:
66555   return NULL;
66556 }
66557 
66558 
_wrap_HeatCapacityVector___setitem__(PyObject * self,PyObject * args)66559 SWIGINTERN PyObject *_wrap_HeatCapacityVector___setitem__(PyObject *self, PyObject *args) {
66560   Py_ssize_t argc;
66561   PyObject *argv[4] = {
66562     0
66563   };
66564 
66565   if (!(argc = SWIG_Python_UnpackTuple(args, "HeatCapacityVector___setitem__", 0, 3, argv))) SWIG_fail;
66566   --argc;
66567   if (argc == 2) {
66568     int _v;
66569     int res = swig::asptr(argv[0], (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >**)(0));
66570     _v = SWIG_CheckState(res);
66571     if (_v) {
66572       {
66573         _v = PySlice_Check(argv[1]);
66574       }
66575       if (_v) {
66576         return _wrap_HeatCapacityVector___setitem____SWIG_1(self, argc, argv);
66577       }
66578     }
66579   }
66580   if (argc == 3) {
66581     int _v;
66582     int res = swig::asptr(argv[0], (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >**)(0));
66583     _v = SWIG_CheckState(res);
66584     if (_v) {
66585       {
66586         _v = PySlice_Check(argv[1]);
66587       }
66588       if (_v) {
66589         int res = swig::asptr(argv[2], (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >**)(0));
66590         _v = SWIG_CheckState(res);
66591         if (_v) {
66592           return _wrap_HeatCapacityVector___setitem____SWIG_0(self, argc, argv);
66593         }
66594       }
66595     }
66596   }
66597   if (argc == 3) {
66598     int _v;
66599     int res = swig::asptr(argv[0], (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >**)(0));
66600     _v = SWIG_CheckState(res);
66601     if (_v) {
66602       {
66603         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
66604         _v = SWIG_CheckState(res);
66605       }
66606       if (_v) {
66607         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_heat_capacity_result, SWIG_POINTER_NO_NULL | 0);
66608         _v = SWIG_CheckState(res);
66609         if (_v) {
66610           return _wrap_HeatCapacityVector___setitem____SWIG_2(self, argc, argv);
66611         }
66612       }
66613     }
66614   }
66615 
66616 fail:
66617   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'HeatCapacityVector___setitem__'.\n"
66618     "  Possible C/C++ prototypes are:\n"
66619     "    std::vector< heat_capacity_result >::__setitem__(PySliceObject *,std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > const &)\n"
66620     "    std::vector< heat_capacity_result >::__setitem__(PySliceObject *)\n"
66621     "    std::vector< heat_capacity_result >::__setitem__(std::vector< heat_capacity_result >::difference_type,std::vector< heat_capacity_result >::value_type const &)\n");
66622   return 0;
66623 }
66624 
66625 
_wrap_HeatCapacityVector_pop(PyObject * SWIGUNUSEDPARM (self),PyObject * args)66626 SWIGINTERN PyObject *_wrap_HeatCapacityVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
66627   PyObject *resultobj = 0;
66628   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
66629   void *argp1 = 0 ;
66630   int res1 = 0 ;
66631   PyObject *swig_obj[1] ;
66632   std::vector< heat_capacity_result >::value_type result;
66633 
66634   if (!args) SWIG_fail;
66635   swig_obj[0] = args;
66636   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
66637   if (!SWIG_IsOK(res1)) {
66638     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_pop" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
66639   }
66640   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
66641   {
66642     try {
66643       try {
66644         result = std_vector_Sl_heat_capacity_result_Sg__pop(arg1);
66645       } catch(std::out_of_range &_e) {
66646         SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
66647       }
66648     } catch (const std::exception& e) {
66649       SWIG_exception(SWIG_RuntimeError, e.what());
66650     }
66651   }
66652   resultobj = SWIG_NewPointerObj((new std::vector< heat_capacity_result >::value_type(static_cast< const std::vector< heat_capacity_result >::value_type& >(result))), SWIGTYPE_p_heat_capacity_result, SWIG_POINTER_OWN |  0 );
66653   return resultobj;
66654 fail:
66655   return NULL;
66656 }
66657 
66658 
_wrap_HeatCapacityVector_append(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)66659 SWIGINTERN PyObject *_wrap_HeatCapacityVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
66660   PyObject *resultobj = 0;
66661   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
66662   std::vector< heat_capacity_result >::value_type *arg2 = 0 ;
66663   void *argp1 = 0 ;
66664   int res1 = 0 ;
66665   void *argp2 = 0 ;
66666   int res2 = 0 ;
66667   PyObject * obj0 = 0 ;
66668   PyObject * obj1 = 0 ;
66669   char * kwnames[] = {
66670     (char *)"self",  (char *)"x",  NULL
66671   };
66672 
66673   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:HeatCapacityVector_append", kwnames, &obj0, &obj1)) SWIG_fail;
66674   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
66675   if (!SWIG_IsOK(res1)) {
66676     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_append" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
66677   }
66678   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
66679   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_heat_capacity_result,  0  | 0);
66680   if (!SWIG_IsOK(res2)) {
66681     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeatCapacityVector_append" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::value_type const &""'");
66682   }
66683   if (!argp2) {
66684     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeatCapacityVector_append" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::value_type const &""'");
66685   }
66686   arg2 = reinterpret_cast< std::vector< heat_capacity_result >::value_type * >(argp2);
66687   {
66688     try {
66689       std_vector_Sl_heat_capacity_result_Sg__append(arg1,(heat_capacity_result const &)*arg2);
66690     } catch (const std::exception& e) {
66691       SWIG_exception(SWIG_RuntimeError, e.what());
66692     }
66693   }
66694   resultobj = SWIG_Py_Void();
66695   return resultobj;
66696 fail:
66697   return NULL;
66698 }
66699 
66700 
_wrap_new_HeatCapacityVector__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))66701 SWIGINTERN PyObject *_wrap_new_HeatCapacityVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
66702   PyObject *resultobj = 0;
66703   std::vector< heat_capacity_result > *result = 0 ;
66704 
66705   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
66706   {
66707     try {
66708       result = (std::vector< heat_capacity_result > *)new std::vector< heat_capacity_result >();
66709     } catch (const std::exception& e) {
66710       SWIG_exception(SWIG_RuntimeError, e.what());
66711     }
66712   }
66713   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, SWIG_POINTER_NEW |  0 );
66714   return resultobj;
66715 fail:
66716   return NULL;
66717 }
66718 
66719 
_wrap_new_HeatCapacityVector__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)66720 SWIGINTERN PyObject *_wrap_new_HeatCapacityVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
66721   PyObject *resultobj = 0;
66722   std::vector< heat_capacity_result > *arg1 = 0 ;
66723   int res1 = SWIG_OLDOBJ ;
66724   std::vector< heat_capacity_result > *result = 0 ;
66725 
66726   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
66727   {
66728     std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > *ptr = (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > *)0;
66729     res1 = swig::asptr(swig_obj[0], &ptr);
66730     if (!SWIG_IsOK(res1)) {
66731       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HeatCapacityVector" "', argument " "1"" of type '" "std::vector< heat_capacity_result > const &""'");
66732     }
66733     if (!ptr) {
66734       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HeatCapacityVector" "', argument " "1"" of type '" "std::vector< heat_capacity_result > const &""'");
66735     }
66736     arg1 = ptr;
66737   }
66738   {
66739     try {
66740       result = (std::vector< heat_capacity_result > *)new std::vector< heat_capacity_result >((std::vector< heat_capacity_result > const &)*arg1);
66741     } catch (const std::exception& e) {
66742       SWIG_exception(SWIG_RuntimeError, e.what());
66743     }
66744   }
66745   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, SWIG_POINTER_NEW |  0 );
66746   if (SWIG_IsNewObj(res1)) delete arg1;
66747   return resultobj;
66748 fail:
66749   if (SWIG_IsNewObj(res1)) delete arg1;
66750   return NULL;
66751 }
66752 
66753 
_wrap_HeatCapacityVector_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)66754 SWIGINTERN PyObject *_wrap_HeatCapacityVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
66755   PyObject *resultobj = 0;
66756   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
66757   void *argp1 = 0 ;
66758   int res1 = 0 ;
66759   PyObject *swig_obj[1] ;
66760   bool result;
66761 
66762   if (!args) SWIG_fail;
66763   swig_obj[0] = args;
66764   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
66765   if (!SWIG_IsOK(res1)) {
66766     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_empty" "', argument " "1"" of type '" "std::vector< heat_capacity_result > const *""'");
66767   }
66768   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
66769   {
66770     try {
66771       result = (bool)((std::vector< heat_capacity_result > const *)arg1)->empty();
66772     } catch (const std::exception& e) {
66773       SWIG_exception(SWIG_RuntimeError, e.what());
66774     }
66775   }
66776   resultobj = SWIG_From_bool(static_cast< bool >(result));
66777   return resultobj;
66778 fail:
66779   return NULL;
66780 }
66781 
66782 
_wrap_HeatCapacityVector_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)66783 SWIGINTERN PyObject *_wrap_HeatCapacityVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
66784   PyObject *resultobj = 0;
66785   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
66786   void *argp1 = 0 ;
66787   int res1 = 0 ;
66788   PyObject *swig_obj[1] ;
66789   std::vector< heat_capacity_result >::size_type result;
66790 
66791   if (!args) SWIG_fail;
66792   swig_obj[0] = args;
66793   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
66794   if (!SWIG_IsOK(res1)) {
66795     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_size" "', argument " "1"" of type '" "std::vector< heat_capacity_result > const *""'");
66796   }
66797   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
66798   {
66799     try {
66800       result = ((std::vector< heat_capacity_result > const *)arg1)->size();
66801     } catch (const std::exception& e) {
66802       SWIG_exception(SWIG_RuntimeError, e.what());
66803     }
66804   }
66805   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
66806   return resultobj;
66807 fail:
66808   return NULL;
66809 }
66810 
66811 
_wrap_HeatCapacityVector_swap(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)66812 SWIGINTERN PyObject *_wrap_HeatCapacityVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
66813   PyObject *resultobj = 0;
66814   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
66815   std::vector< heat_capacity_result > *arg2 = 0 ;
66816   void *argp1 = 0 ;
66817   int res1 = 0 ;
66818   void *argp2 = 0 ;
66819   int res2 = 0 ;
66820   PyObject * obj0 = 0 ;
66821   PyObject * obj1 = 0 ;
66822   char * kwnames[] = {
66823     (char *)"self",  (char *)"v",  NULL
66824   };
66825 
66826   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:HeatCapacityVector_swap", kwnames, &obj0, &obj1)) SWIG_fail;
66827   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
66828   if (!SWIG_IsOK(res1)) {
66829     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_swap" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
66830   }
66831   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
66832   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t,  0 );
66833   if (!SWIG_IsOK(res2)) {
66834     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeatCapacityVector_swap" "', argument " "2"" of type '" "std::vector< heat_capacity_result > &""'");
66835   }
66836   if (!argp2) {
66837     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeatCapacityVector_swap" "', argument " "2"" of type '" "std::vector< heat_capacity_result > &""'");
66838   }
66839   arg2 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp2);
66840   {
66841     try {
66842       (arg1)->swap(*arg2);
66843     } catch (const std::exception& e) {
66844       SWIG_exception(SWIG_RuntimeError, e.what());
66845     }
66846   }
66847   resultobj = SWIG_Py_Void();
66848   return resultobj;
66849 fail:
66850   return NULL;
66851 }
66852 
66853 
_wrap_HeatCapacityVector_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)66854 SWIGINTERN PyObject *_wrap_HeatCapacityVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
66855   PyObject *resultobj = 0;
66856   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
66857   void *argp1 = 0 ;
66858   int res1 = 0 ;
66859   PyObject *swig_obj[1] ;
66860   std::vector< heat_capacity_result >::iterator result;
66861 
66862   if (!args) SWIG_fail;
66863   swig_obj[0] = args;
66864   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
66865   if (!SWIG_IsOK(res1)) {
66866     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_begin" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
66867   }
66868   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
66869   {
66870     try {
66871       result = (arg1)->begin();
66872     } catch (const std::exception& e) {
66873       SWIG_exception(SWIG_RuntimeError, e.what());
66874     }
66875   }
66876   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< heat_capacity_result >::iterator & >(result)),
66877     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
66878   return resultobj;
66879 fail:
66880   return NULL;
66881 }
66882 
66883 
_wrap_HeatCapacityVector_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)66884 SWIGINTERN PyObject *_wrap_HeatCapacityVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
66885   PyObject *resultobj = 0;
66886   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
66887   void *argp1 = 0 ;
66888   int res1 = 0 ;
66889   PyObject *swig_obj[1] ;
66890   std::vector< heat_capacity_result >::iterator result;
66891 
66892   if (!args) SWIG_fail;
66893   swig_obj[0] = args;
66894   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
66895   if (!SWIG_IsOK(res1)) {
66896     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_end" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
66897   }
66898   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
66899   {
66900     try {
66901       result = (arg1)->end();
66902     } catch (const std::exception& e) {
66903       SWIG_exception(SWIG_RuntimeError, e.what());
66904     }
66905   }
66906   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< heat_capacity_result >::iterator & >(result)),
66907     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
66908   return resultobj;
66909 fail:
66910   return NULL;
66911 }
66912 
66913 
_wrap_HeatCapacityVector_rbegin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)66914 SWIGINTERN PyObject *_wrap_HeatCapacityVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
66915   PyObject *resultobj = 0;
66916   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
66917   void *argp1 = 0 ;
66918   int res1 = 0 ;
66919   PyObject *swig_obj[1] ;
66920   std::vector< heat_capacity_result >::reverse_iterator result;
66921 
66922   if (!args) SWIG_fail;
66923   swig_obj[0] = args;
66924   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
66925   if (!SWIG_IsOK(res1)) {
66926     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_rbegin" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
66927   }
66928   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
66929   {
66930     try {
66931       result = (arg1)->rbegin();
66932     } catch (const std::exception& e) {
66933       SWIG_exception(SWIG_RuntimeError, e.what());
66934     }
66935   }
66936   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< heat_capacity_result >::reverse_iterator & >(result)),
66937     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
66938   return resultobj;
66939 fail:
66940   return NULL;
66941 }
66942 
66943 
_wrap_HeatCapacityVector_rend(PyObject * SWIGUNUSEDPARM (self),PyObject * args)66944 SWIGINTERN PyObject *_wrap_HeatCapacityVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
66945   PyObject *resultobj = 0;
66946   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
66947   void *argp1 = 0 ;
66948   int res1 = 0 ;
66949   PyObject *swig_obj[1] ;
66950   std::vector< heat_capacity_result >::reverse_iterator result;
66951 
66952   if (!args) SWIG_fail;
66953   swig_obj[0] = args;
66954   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
66955   if (!SWIG_IsOK(res1)) {
66956     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_rend" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
66957   }
66958   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
66959   {
66960     try {
66961       result = (arg1)->rend();
66962     } catch (const std::exception& e) {
66963       SWIG_exception(SWIG_RuntimeError, e.what());
66964     }
66965   }
66966   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< heat_capacity_result >::reverse_iterator & >(result)),
66967     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
66968   return resultobj;
66969 fail:
66970   return NULL;
66971 }
66972 
66973 
_wrap_HeatCapacityVector_clear(PyObject * SWIGUNUSEDPARM (self),PyObject * args)66974 SWIGINTERN PyObject *_wrap_HeatCapacityVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
66975   PyObject *resultobj = 0;
66976   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
66977   void *argp1 = 0 ;
66978   int res1 = 0 ;
66979   PyObject *swig_obj[1] ;
66980 
66981   if (!args) SWIG_fail;
66982   swig_obj[0] = args;
66983   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
66984   if (!SWIG_IsOK(res1)) {
66985     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_clear" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
66986   }
66987   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
66988   {
66989     try {
66990       (arg1)->clear();
66991     } catch (const std::exception& e) {
66992       SWIG_exception(SWIG_RuntimeError, e.what());
66993     }
66994   }
66995   resultobj = SWIG_Py_Void();
66996   return resultobj;
66997 fail:
66998   return NULL;
66999 }
67000 
67001 
_wrap_HeatCapacityVector_get_allocator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)67002 SWIGINTERN PyObject *_wrap_HeatCapacityVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
67003   PyObject *resultobj = 0;
67004   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
67005   void *argp1 = 0 ;
67006   int res1 = 0 ;
67007   PyObject *swig_obj[1] ;
67008   SwigValueWrapper< std::allocator< heat_capacity_result > > result;
67009 
67010   if (!args) SWIG_fail;
67011   swig_obj[0] = args;
67012   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
67013   if (!SWIG_IsOK(res1)) {
67014     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_get_allocator" "', argument " "1"" of type '" "std::vector< heat_capacity_result > const *""'");
67015   }
67016   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
67017   {
67018     try {
67019       result = ((std::vector< heat_capacity_result > const *)arg1)->get_allocator();
67020     } catch (const std::exception& e) {
67021       SWIG_exception(SWIG_RuntimeError, e.what());
67022     }
67023   }
67024   resultobj = SWIG_NewPointerObj((new std::vector< heat_capacity_result >::allocator_type(static_cast< const std::vector< heat_capacity_result >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_heat_capacity_result_t, SWIG_POINTER_OWN |  0 );
67025   return resultobj;
67026 fail:
67027   return NULL;
67028 }
67029 
67030 
_wrap_new_HeatCapacityVector__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)67031 SWIGINTERN PyObject *_wrap_new_HeatCapacityVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
67032   PyObject *resultobj = 0;
67033   std::vector< heat_capacity_result >::size_type arg1 ;
67034   size_t val1 ;
67035   int ecode1 = 0 ;
67036   std::vector< heat_capacity_result > *result = 0 ;
67037 
67038   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
67039   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
67040   if (!SWIG_IsOK(ecode1)) {
67041     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HeatCapacityVector" "', argument " "1"" of type '" "std::vector< heat_capacity_result >::size_type""'");
67042   }
67043   arg1 = static_cast< std::vector< heat_capacity_result >::size_type >(val1);
67044   {
67045     try {
67046       result = (std::vector< heat_capacity_result > *)new std::vector< heat_capacity_result >(arg1);
67047     } catch (const std::exception& e) {
67048       SWIG_exception(SWIG_RuntimeError, e.what());
67049     }
67050   }
67051   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, SWIG_POINTER_NEW |  0 );
67052   return resultobj;
67053 fail:
67054   return NULL;
67055 }
67056 
67057 
_wrap_HeatCapacityVector_pop_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)67058 SWIGINTERN PyObject *_wrap_HeatCapacityVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
67059   PyObject *resultobj = 0;
67060   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
67061   void *argp1 = 0 ;
67062   int res1 = 0 ;
67063   PyObject *swig_obj[1] ;
67064 
67065   if (!args) SWIG_fail;
67066   swig_obj[0] = args;
67067   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
67068   if (!SWIG_IsOK(res1)) {
67069     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_pop_back" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
67070   }
67071   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
67072   {
67073     try {
67074       (arg1)->pop_back();
67075     } catch (const std::exception& e) {
67076       SWIG_exception(SWIG_RuntimeError, e.what());
67077     }
67078   }
67079   resultobj = SWIG_Py_Void();
67080   return resultobj;
67081 fail:
67082   return NULL;
67083 }
67084 
67085 
_wrap_HeatCapacityVector_resize__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)67086 SWIGINTERN PyObject *_wrap_HeatCapacityVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
67087   PyObject *resultobj = 0;
67088   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
67089   std::vector< heat_capacity_result >::size_type arg2 ;
67090   void *argp1 = 0 ;
67091   int res1 = 0 ;
67092   size_t val2 ;
67093   int ecode2 = 0 ;
67094 
67095   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
67096   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
67097   if (!SWIG_IsOK(res1)) {
67098     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_resize" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
67099   }
67100   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
67101   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
67102   if (!SWIG_IsOK(ecode2)) {
67103     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeatCapacityVector_resize" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::size_type""'");
67104   }
67105   arg2 = static_cast< std::vector< heat_capacity_result >::size_type >(val2);
67106   {
67107     try {
67108       (arg1)->resize(arg2);
67109     } catch (const std::exception& e) {
67110       SWIG_exception(SWIG_RuntimeError, e.what());
67111     }
67112   }
67113   resultobj = SWIG_Py_Void();
67114   return resultobj;
67115 fail:
67116   return NULL;
67117 }
67118 
67119 
_wrap_HeatCapacityVector_erase__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)67120 SWIGINTERN PyObject *_wrap_HeatCapacityVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
67121   PyObject *resultobj = 0;
67122   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
67123   std::vector< heat_capacity_result >::iterator arg2 ;
67124   void *argp1 = 0 ;
67125   int res1 = 0 ;
67126   swig::SwigPyIterator *iter2 = 0 ;
67127   int res2 ;
67128   std::vector< heat_capacity_result >::iterator result;
67129 
67130   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
67131   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
67132   if (!SWIG_IsOK(res1)) {
67133     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_erase" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
67134   }
67135   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
67136   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
67137   if (!SWIG_IsOK(res2) || !iter2) {
67138     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HeatCapacityVector_erase" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::iterator""'");
67139   } else {
67140     swig::SwigPyIterator_T<std::vector< heat_capacity_result >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< heat_capacity_result >::iterator > *>(iter2);
67141     if (iter_t) {
67142       arg2 = iter_t->get_current();
67143     } else {
67144       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HeatCapacityVector_erase" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::iterator""'");
67145     }
67146   }
67147   {
67148     try {
67149       result = std_vector_Sl_heat_capacity_result_Sg__erase__SWIG_0(arg1,arg2);
67150     } catch (const std::exception& e) {
67151       SWIG_exception(SWIG_RuntimeError, e.what());
67152     }
67153   }
67154   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< heat_capacity_result >::iterator & >(result)),
67155     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
67156   return resultobj;
67157 fail:
67158   return NULL;
67159 }
67160 
67161 
_wrap_HeatCapacityVector_erase__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)67162 SWIGINTERN PyObject *_wrap_HeatCapacityVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
67163   PyObject *resultobj = 0;
67164   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
67165   std::vector< heat_capacity_result >::iterator arg2 ;
67166   std::vector< heat_capacity_result >::iterator arg3 ;
67167   void *argp1 = 0 ;
67168   int res1 = 0 ;
67169   swig::SwigPyIterator *iter2 = 0 ;
67170   int res2 ;
67171   swig::SwigPyIterator *iter3 = 0 ;
67172   int res3 ;
67173   std::vector< heat_capacity_result >::iterator result;
67174 
67175   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
67176   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
67177   if (!SWIG_IsOK(res1)) {
67178     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_erase" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
67179   }
67180   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
67181   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
67182   if (!SWIG_IsOK(res2) || !iter2) {
67183     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HeatCapacityVector_erase" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::iterator""'");
67184   } else {
67185     swig::SwigPyIterator_T<std::vector< heat_capacity_result >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< heat_capacity_result >::iterator > *>(iter2);
67186     if (iter_t) {
67187       arg2 = iter_t->get_current();
67188     } else {
67189       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HeatCapacityVector_erase" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::iterator""'");
67190     }
67191   }
67192   res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
67193   if (!SWIG_IsOK(res3) || !iter3) {
67194     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HeatCapacityVector_erase" "', argument " "3"" of type '" "std::vector< heat_capacity_result >::iterator""'");
67195   } else {
67196     swig::SwigPyIterator_T<std::vector< heat_capacity_result >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< heat_capacity_result >::iterator > *>(iter3);
67197     if (iter_t) {
67198       arg3 = iter_t->get_current();
67199     } else {
67200       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HeatCapacityVector_erase" "', argument " "3"" of type '" "std::vector< heat_capacity_result >::iterator""'");
67201     }
67202   }
67203   {
67204     try {
67205       result = std_vector_Sl_heat_capacity_result_Sg__erase__SWIG_1(arg1,arg2,arg3);
67206     } catch (const std::exception& e) {
67207       SWIG_exception(SWIG_RuntimeError, e.what());
67208     }
67209   }
67210   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< heat_capacity_result >::iterator & >(result)),
67211     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
67212   return resultobj;
67213 fail:
67214   return NULL;
67215 }
67216 
67217 
_wrap_HeatCapacityVector_erase(PyObject * self,PyObject * args)67218 SWIGINTERN PyObject *_wrap_HeatCapacityVector_erase(PyObject *self, PyObject *args) {
67219   Py_ssize_t argc;
67220   PyObject *argv[4] = {
67221     0
67222   };
67223 
67224   if (!(argc = SWIG_Python_UnpackTuple(args, "HeatCapacityVector_erase", 0, 3, argv))) SWIG_fail;
67225   --argc;
67226   if (argc == 2) {
67227     int _v;
67228     int res = swig::asptr(argv[0], (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >**)(0));
67229     _v = SWIG_CheckState(res);
67230     if (_v) {
67231       swig::SwigPyIterator *iter = 0;
67232       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
67233       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< heat_capacity_result >::iterator > *>(iter) != 0));
67234       if (_v) {
67235         return _wrap_HeatCapacityVector_erase__SWIG_0(self, argc, argv);
67236       }
67237     }
67238   }
67239   if (argc == 3) {
67240     int _v;
67241     int res = swig::asptr(argv[0], (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >**)(0));
67242     _v = SWIG_CheckState(res);
67243     if (_v) {
67244       swig::SwigPyIterator *iter = 0;
67245       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
67246       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< heat_capacity_result >::iterator > *>(iter) != 0));
67247       if (_v) {
67248         swig::SwigPyIterator *iter = 0;
67249         int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
67250         _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< heat_capacity_result >::iterator > *>(iter) != 0));
67251         if (_v) {
67252           return _wrap_HeatCapacityVector_erase__SWIG_1(self, argc, argv);
67253         }
67254       }
67255     }
67256   }
67257 
67258 fail:
67259   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'HeatCapacityVector_erase'.\n"
67260     "  Possible C/C++ prototypes are:\n"
67261     "    std::vector< heat_capacity_result >::erase(std::vector< heat_capacity_result >::iterator)\n"
67262     "    std::vector< heat_capacity_result >::erase(std::vector< heat_capacity_result >::iterator,std::vector< heat_capacity_result >::iterator)\n");
67263   return 0;
67264 }
67265 
67266 
_wrap_new_HeatCapacityVector__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)67267 SWIGINTERN PyObject *_wrap_new_HeatCapacityVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
67268   PyObject *resultobj = 0;
67269   std::vector< heat_capacity_result >::size_type arg1 ;
67270   std::vector< heat_capacity_result >::value_type *arg2 = 0 ;
67271   size_t val1 ;
67272   int ecode1 = 0 ;
67273   void *argp2 = 0 ;
67274   int res2 = 0 ;
67275   std::vector< heat_capacity_result > *result = 0 ;
67276 
67277   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
67278   ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
67279   if (!SWIG_IsOK(ecode1)) {
67280     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HeatCapacityVector" "', argument " "1"" of type '" "std::vector< heat_capacity_result >::size_type""'");
67281   }
67282   arg1 = static_cast< std::vector< heat_capacity_result >::size_type >(val1);
67283   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_heat_capacity_result,  0  | 0);
67284   if (!SWIG_IsOK(res2)) {
67285     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_HeatCapacityVector" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::value_type const &""'");
67286   }
67287   if (!argp2) {
67288     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HeatCapacityVector" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::value_type const &""'");
67289   }
67290   arg2 = reinterpret_cast< std::vector< heat_capacity_result >::value_type * >(argp2);
67291   {
67292     try {
67293       result = (std::vector< heat_capacity_result > *)new std::vector< heat_capacity_result >(arg1,(std::vector< heat_capacity_result >::value_type const &)*arg2);
67294     } catch (const std::exception& e) {
67295       SWIG_exception(SWIG_RuntimeError, e.what());
67296     }
67297   }
67298   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, SWIG_POINTER_NEW |  0 );
67299   return resultobj;
67300 fail:
67301   return NULL;
67302 }
67303 
67304 
_wrap_new_HeatCapacityVector(PyObject * self,PyObject * args)67305 SWIGINTERN PyObject *_wrap_new_HeatCapacityVector(PyObject *self, PyObject *args) {
67306   Py_ssize_t argc;
67307   PyObject *argv[3] = {
67308     0
67309   };
67310 
67311   if (!(argc = SWIG_Python_UnpackTuple(args, "new_HeatCapacityVector", 0, 2, argv))) SWIG_fail;
67312   --argc;
67313   if (argc == 0) {
67314     return _wrap_new_HeatCapacityVector__SWIG_0(self, argc, argv);
67315   }
67316   if (argc == 1) {
67317     int _v;
67318     {
67319       int res = SWIG_AsVal_size_t(argv[0], NULL);
67320       _v = SWIG_CheckState(res);
67321     }
67322     if (_v) {
67323       return _wrap_new_HeatCapacityVector__SWIG_2(self, argc, argv);
67324     }
67325   }
67326   if (argc == 1) {
67327     int _v;
67328     int res = swig::asptr(argv[0], (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >**)(0));
67329     _v = SWIG_CheckState(res);
67330     if (_v) {
67331       return _wrap_new_HeatCapacityVector__SWIG_1(self, argc, argv);
67332     }
67333   }
67334   if (argc == 2) {
67335     int _v;
67336     {
67337       int res = SWIG_AsVal_size_t(argv[0], NULL);
67338       _v = SWIG_CheckState(res);
67339     }
67340     if (_v) {
67341       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_heat_capacity_result, SWIG_POINTER_NO_NULL | 0);
67342       _v = SWIG_CheckState(res);
67343       if (_v) {
67344         return _wrap_new_HeatCapacityVector__SWIG_3(self, argc, argv);
67345       }
67346     }
67347   }
67348 
67349 fail:
67350   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_HeatCapacityVector'.\n"
67351     "  Possible C/C++ prototypes are:\n"
67352     "    std::vector< heat_capacity_result >::vector()\n"
67353     "    std::vector< heat_capacity_result >::vector(std::vector< heat_capacity_result > const &)\n"
67354     "    std::vector< heat_capacity_result >::vector(std::vector< heat_capacity_result >::size_type)\n"
67355     "    std::vector< heat_capacity_result >::vector(std::vector< heat_capacity_result >::size_type,std::vector< heat_capacity_result >::value_type const &)\n");
67356   return 0;
67357 }
67358 
67359 
_wrap_HeatCapacityVector_push_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)67360 SWIGINTERN PyObject *_wrap_HeatCapacityVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
67361   PyObject *resultobj = 0;
67362   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
67363   std::vector< heat_capacity_result >::value_type *arg2 = 0 ;
67364   void *argp1 = 0 ;
67365   int res1 = 0 ;
67366   void *argp2 = 0 ;
67367   int res2 = 0 ;
67368   PyObject * obj0 = 0 ;
67369   PyObject * obj1 = 0 ;
67370   char * kwnames[] = {
67371     (char *)"self",  (char *)"x",  NULL
67372   };
67373 
67374   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:HeatCapacityVector_push_back", kwnames, &obj0, &obj1)) SWIG_fail;
67375   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
67376   if (!SWIG_IsOK(res1)) {
67377     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_push_back" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
67378   }
67379   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
67380   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_heat_capacity_result,  0  | 0);
67381   if (!SWIG_IsOK(res2)) {
67382     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeatCapacityVector_push_back" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::value_type const &""'");
67383   }
67384   if (!argp2) {
67385     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeatCapacityVector_push_back" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::value_type const &""'");
67386   }
67387   arg2 = reinterpret_cast< std::vector< heat_capacity_result >::value_type * >(argp2);
67388   {
67389     try {
67390       (arg1)->push_back((std::vector< heat_capacity_result >::value_type const &)*arg2);
67391     } catch (const std::exception& e) {
67392       SWIG_exception(SWIG_RuntimeError, e.what());
67393     }
67394   }
67395   resultobj = SWIG_Py_Void();
67396   return resultobj;
67397 fail:
67398   return NULL;
67399 }
67400 
67401 
_wrap_HeatCapacityVector_front(PyObject * SWIGUNUSEDPARM (self),PyObject * args)67402 SWIGINTERN PyObject *_wrap_HeatCapacityVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
67403   PyObject *resultobj = 0;
67404   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
67405   void *argp1 = 0 ;
67406   int res1 = 0 ;
67407   PyObject *swig_obj[1] ;
67408   std::vector< heat_capacity_result >::value_type *result = 0 ;
67409 
67410   if (!args) SWIG_fail;
67411   swig_obj[0] = args;
67412   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
67413   if (!SWIG_IsOK(res1)) {
67414     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_front" "', argument " "1"" of type '" "std::vector< heat_capacity_result > const *""'");
67415   }
67416   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
67417   {
67418     try {
67419       result = (std::vector< heat_capacity_result >::value_type *) &((std::vector< heat_capacity_result > const *)arg1)->front();
67420     } catch (const std::exception& e) {
67421       SWIG_exception(SWIG_RuntimeError, e.what());
67422     }
67423   }
67424   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_heat_capacity_result, 0 |  0 );
67425   (void)swig::container_owner<swig::traits<std::vector< heat_capacity_result >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
67426   return resultobj;
67427 fail:
67428   return NULL;
67429 }
67430 
67431 
_wrap_HeatCapacityVector_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)67432 SWIGINTERN PyObject *_wrap_HeatCapacityVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
67433   PyObject *resultobj = 0;
67434   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
67435   void *argp1 = 0 ;
67436   int res1 = 0 ;
67437   PyObject *swig_obj[1] ;
67438   std::vector< heat_capacity_result >::value_type *result = 0 ;
67439 
67440   if (!args) SWIG_fail;
67441   swig_obj[0] = args;
67442   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
67443   if (!SWIG_IsOK(res1)) {
67444     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_back" "', argument " "1"" of type '" "std::vector< heat_capacity_result > const *""'");
67445   }
67446   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
67447   {
67448     try {
67449       result = (std::vector< heat_capacity_result >::value_type *) &((std::vector< heat_capacity_result > const *)arg1)->back();
67450     } catch (const std::exception& e) {
67451       SWIG_exception(SWIG_RuntimeError, e.what());
67452     }
67453   }
67454   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_heat_capacity_result, 0 |  0 );
67455   (void)swig::container_owner<swig::traits<std::vector< heat_capacity_result >::value_type>::category>::back_reference(resultobj, swig_obj[0]);
67456   return resultobj;
67457 fail:
67458   return NULL;
67459 }
67460 
67461 
_wrap_HeatCapacityVector_assign(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)67462 SWIGINTERN PyObject *_wrap_HeatCapacityVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
67463   PyObject *resultobj = 0;
67464   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
67465   std::vector< heat_capacity_result >::size_type arg2 ;
67466   std::vector< heat_capacity_result >::value_type *arg3 = 0 ;
67467   void *argp1 = 0 ;
67468   int res1 = 0 ;
67469   size_t val2 ;
67470   int ecode2 = 0 ;
67471   void *argp3 = 0 ;
67472   int res3 = 0 ;
67473   PyObject * obj0 = 0 ;
67474   PyObject * obj1 = 0 ;
67475   PyObject * obj2 = 0 ;
67476   char * kwnames[] = {
67477     (char *)"self",  (char *)"n",  (char *)"x",  NULL
67478   };
67479 
67480   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:HeatCapacityVector_assign", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
67481   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
67482   if (!SWIG_IsOK(res1)) {
67483     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_assign" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
67484   }
67485   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
67486   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
67487   if (!SWIG_IsOK(ecode2)) {
67488     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeatCapacityVector_assign" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::size_type""'");
67489   }
67490   arg2 = static_cast< std::vector< heat_capacity_result >::size_type >(val2);
67491   res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_heat_capacity_result,  0  | 0);
67492   if (!SWIG_IsOK(res3)) {
67493     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HeatCapacityVector_assign" "', argument " "3"" of type '" "std::vector< heat_capacity_result >::value_type const &""'");
67494   }
67495   if (!argp3) {
67496     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeatCapacityVector_assign" "', argument " "3"" of type '" "std::vector< heat_capacity_result >::value_type const &""'");
67497   }
67498   arg3 = reinterpret_cast< std::vector< heat_capacity_result >::value_type * >(argp3);
67499   {
67500     try {
67501       (arg1)->assign(arg2,(std::vector< heat_capacity_result >::value_type const &)*arg3);
67502     } catch (const std::exception& e) {
67503       SWIG_exception(SWIG_RuntimeError, e.what());
67504     }
67505   }
67506   resultobj = SWIG_Py_Void();
67507   return resultobj;
67508 fail:
67509   return NULL;
67510 }
67511 
67512 
_wrap_HeatCapacityVector_resize__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)67513 SWIGINTERN PyObject *_wrap_HeatCapacityVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
67514   PyObject *resultobj = 0;
67515   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
67516   std::vector< heat_capacity_result >::size_type arg2 ;
67517   std::vector< heat_capacity_result >::value_type *arg3 = 0 ;
67518   void *argp1 = 0 ;
67519   int res1 = 0 ;
67520   size_t val2 ;
67521   int ecode2 = 0 ;
67522   void *argp3 = 0 ;
67523   int res3 = 0 ;
67524 
67525   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
67526   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
67527   if (!SWIG_IsOK(res1)) {
67528     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_resize" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
67529   }
67530   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
67531   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
67532   if (!SWIG_IsOK(ecode2)) {
67533     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeatCapacityVector_resize" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::size_type""'");
67534   }
67535   arg2 = static_cast< std::vector< heat_capacity_result >::size_type >(val2);
67536   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_heat_capacity_result,  0  | 0);
67537   if (!SWIG_IsOK(res3)) {
67538     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HeatCapacityVector_resize" "', argument " "3"" of type '" "std::vector< heat_capacity_result >::value_type const &""'");
67539   }
67540   if (!argp3) {
67541     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeatCapacityVector_resize" "', argument " "3"" of type '" "std::vector< heat_capacity_result >::value_type const &""'");
67542   }
67543   arg3 = reinterpret_cast< std::vector< heat_capacity_result >::value_type * >(argp3);
67544   {
67545     try {
67546       (arg1)->resize(arg2,(std::vector< heat_capacity_result >::value_type const &)*arg3);
67547     } catch (const std::exception& e) {
67548       SWIG_exception(SWIG_RuntimeError, e.what());
67549     }
67550   }
67551   resultobj = SWIG_Py_Void();
67552   return resultobj;
67553 fail:
67554   return NULL;
67555 }
67556 
67557 
_wrap_HeatCapacityVector_resize(PyObject * self,PyObject * args)67558 SWIGINTERN PyObject *_wrap_HeatCapacityVector_resize(PyObject *self, PyObject *args) {
67559   Py_ssize_t argc;
67560   PyObject *argv[4] = {
67561     0
67562   };
67563 
67564   if (!(argc = SWIG_Python_UnpackTuple(args, "HeatCapacityVector_resize", 0, 3, argv))) SWIG_fail;
67565   --argc;
67566   if (argc == 2) {
67567     int _v;
67568     int res = swig::asptr(argv[0], (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >**)(0));
67569     _v = SWIG_CheckState(res);
67570     if (_v) {
67571       {
67572         int res = SWIG_AsVal_size_t(argv[1], NULL);
67573         _v = SWIG_CheckState(res);
67574       }
67575       if (_v) {
67576         return _wrap_HeatCapacityVector_resize__SWIG_0(self, argc, argv);
67577       }
67578     }
67579   }
67580   if (argc == 3) {
67581     int _v;
67582     int res = swig::asptr(argv[0], (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >**)(0));
67583     _v = SWIG_CheckState(res);
67584     if (_v) {
67585       {
67586         int res = SWIG_AsVal_size_t(argv[1], NULL);
67587         _v = SWIG_CheckState(res);
67588       }
67589       if (_v) {
67590         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_heat_capacity_result, SWIG_POINTER_NO_NULL | 0);
67591         _v = SWIG_CheckState(res);
67592         if (_v) {
67593           return _wrap_HeatCapacityVector_resize__SWIG_1(self, argc, argv);
67594         }
67595       }
67596     }
67597   }
67598 
67599 fail:
67600   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'HeatCapacityVector_resize'.\n"
67601     "  Possible C/C++ prototypes are:\n"
67602     "    std::vector< heat_capacity_result >::resize(std::vector< heat_capacity_result >::size_type)\n"
67603     "    std::vector< heat_capacity_result >::resize(std::vector< heat_capacity_result >::size_type,std::vector< heat_capacity_result >::value_type const &)\n");
67604   return 0;
67605 }
67606 
67607 
_wrap_HeatCapacityVector_insert__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)67608 SWIGINTERN PyObject *_wrap_HeatCapacityVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
67609   PyObject *resultobj = 0;
67610   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
67611   std::vector< heat_capacity_result >::iterator arg2 ;
67612   std::vector< heat_capacity_result >::value_type *arg3 = 0 ;
67613   void *argp1 = 0 ;
67614   int res1 = 0 ;
67615   swig::SwigPyIterator *iter2 = 0 ;
67616   int res2 ;
67617   void *argp3 = 0 ;
67618   int res3 = 0 ;
67619   std::vector< heat_capacity_result >::iterator result;
67620 
67621   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
67622   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
67623   if (!SWIG_IsOK(res1)) {
67624     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_insert" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
67625   }
67626   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
67627   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
67628   if (!SWIG_IsOK(res2) || !iter2) {
67629     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HeatCapacityVector_insert" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::iterator""'");
67630   } else {
67631     swig::SwigPyIterator_T<std::vector< heat_capacity_result >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< heat_capacity_result >::iterator > *>(iter2);
67632     if (iter_t) {
67633       arg2 = iter_t->get_current();
67634     } else {
67635       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HeatCapacityVector_insert" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::iterator""'");
67636     }
67637   }
67638   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_heat_capacity_result,  0  | 0);
67639   if (!SWIG_IsOK(res3)) {
67640     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HeatCapacityVector_insert" "', argument " "3"" of type '" "std::vector< heat_capacity_result >::value_type const &""'");
67641   }
67642   if (!argp3) {
67643     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeatCapacityVector_insert" "', argument " "3"" of type '" "std::vector< heat_capacity_result >::value_type const &""'");
67644   }
67645   arg3 = reinterpret_cast< std::vector< heat_capacity_result >::value_type * >(argp3);
67646   {
67647     try {
67648       result = std_vector_Sl_heat_capacity_result_Sg__insert__SWIG_0(arg1,arg2,(heat_capacity_result const &)*arg3);
67649     } catch (const std::exception& e) {
67650       SWIG_exception(SWIG_RuntimeError, e.what());
67651     }
67652   }
67653   resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< heat_capacity_result >::iterator & >(result)),
67654     swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
67655   return resultobj;
67656 fail:
67657   return NULL;
67658 }
67659 
67660 
_wrap_HeatCapacityVector_insert__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)67661 SWIGINTERN PyObject *_wrap_HeatCapacityVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
67662   PyObject *resultobj = 0;
67663   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
67664   std::vector< heat_capacity_result >::iterator arg2 ;
67665   std::vector< heat_capacity_result >::size_type arg3 ;
67666   std::vector< heat_capacity_result >::value_type *arg4 = 0 ;
67667   void *argp1 = 0 ;
67668   int res1 = 0 ;
67669   swig::SwigPyIterator *iter2 = 0 ;
67670   int res2 ;
67671   size_t val3 ;
67672   int ecode3 = 0 ;
67673   void *argp4 = 0 ;
67674   int res4 = 0 ;
67675 
67676   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
67677   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
67678   if (!SWIG_IsOK(res1)) {
67679     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_insert" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
67680   }
67681   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
67682   res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
67683   if (!SWIG_IsOK(res2) || !iter2) {
67684     SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HeatCapacityVector_insert" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::iterator""'");
67685   } else {
67686     swig::SwigPyIterator_T<std::vector< heat_capacity_result >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< heat_capacity_result >::iterator > *>(iter2);
67687     if (iter_t) {
67688       arg2 = iter_t->get_current();
67689     } else {
67690       SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HeatCapacityVector_insert" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::iterator""'");
67691     }
67692   }
67693   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
67694   if (!SWIG_IsOK(ecode3)) {
67695     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HeatCapacityVector_insert" "', argument " "3"" of type '" "std::vector< heat_capacity_result >::size_type""'");
67696   }
67697   arg3 = static_cast< std::vector< heat_capacity_result >::size_type >(val3);
67698   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_heat_capacity_result,  0  | 0);
67699   if (!SWIG_IsOK(res4)) {
67700     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "HeatCapacityVector_insert" "', argument " "4"" of type '" "std::vector< heat_capacity_result >::value_type const &""'");
67701   }
67702   if (!argp4) {
67703     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeatCapacityVector_insert" "', argument " "4"" of type '" "std::vector< heat_capacity_result >::value_type const &""'");
67704   }
67705   arg4 = reinterpret_cast< std::vector< heat_capacity_result >::value_type * >(argp4);
67706   {
67707     try {
67708       std_vector_Sl_heat_capacity_result_Sg__insert__SWIG_1(arg1,arg2,arg3,(heat_capacity_result const &)*arg4);
67709     } catch (const std::exception& e) {
67710       SWIG_exception(SWIG_RuntimeError, e.what());
67711     }
67712   }
67713   resultobj = SWIG_Py_Void();
67714   return resultobj;
67715 fail:
67716   return NULL;
67717 }
67718 
67719 
_wrap_HeatCapacityVector_insert(PyObject * self,PyObject * args)67720 SWIGINTERN PyObject *_wrap_HeatCapacityVector_insert(PyObject *self, PyObject *args) {
67721   Py_ssize_t argc;
67722   PyObject *argv[5] = {
67723     0
67724   };
67725 
67726   if (!(argc = SWIG_Python_UnpackTuple(args, "HeatCapacityVector_insert", 0, 4, argv))) SWIG_fail;
67727   --argc;
67728   if (argc == 3) {
67729     int _v;
67730     int res = swig::asptr(argv[0], (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >**)(0));
67731     _v = SWIG_CheckState(res);
67732     if (_v) {
67733       swig::SwigPyIterator *iter = 0;
67734       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
67735       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< heat_capacity_result >::iterator > *>(iter) != 0));
67736       if (_v) {
67737         int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_heat_capacity_result, SWIG_POINTER_NO_NULL | 0);
67738         _v = SWIG_CheckState(res);
67739         if (_v) {
67740           return _wrap_HeatCapacityVector_insert__SWIG_0(self, argc, argv);
67741         }
67742       }
67743     }
67744   }
67745   if (argc == 4) {
67746     int _v;
67747     int res = swig::asptr(argv[0], (std::vector< heat_capacity_result,std::allocator< heat_capacity_result > >**)(0));
67748     _v = SWIG_CheckState(res);
67749     if (_v) {
67750       swig::SwigPyIterator *iter = 0;
67751       int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
67752       _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< heat_capacity_result >::iterator > *>(iter) != 0));
67753       if (_v) {
67754         {
67755           int res = SWIG_AsVal_size_t(argv[2], NULL);
67756           _v = SWIG_CheckState(res);
67757         }
67758         if (_v) {
67759           int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_heat_capacity_result, SWIG_POINTER_NO_NULL | 0);
67760           _v = SWIG_CheckState(res);
67761           if (_v) {
67762             return _wrap_HeatCapacityVector_insert__SWIG_1(self, argc, argv);
67763           }
67764         }
67765       }
67766     }
67767   }
67768 
67769 fail:
67770   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'HeatCapacityVector_insert'.\n"
67771     "  Possible C/C++ prototypes are:\n"
67772     "    std::vector< heat_capacity_result >::insert(std::vector< heat_capacity_result >::iterator,std::vector< heat_capacity_result >::value_type const &)\n"
67773     "    std::vector< heat_capacity_result >::insert(std::vector< heat_capacity_result >::iterator,std::vector< heat_capacity_result >::size_type,std::vector< heat_capacity_result >::value_type const &)\n");
67774   return 0;
67775 }
67776 
67777 
_wrap_HeatCapacityVector_reserve(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)67778 SWIGINTERN PyObject *_wrap_HeatCapacityVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
67779   PyObject *resultobj = 0;
67780   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
67781   std::vector< heat_capacity_result >::size_type arg2 ;
67782   void *argp1 = 0 ;
67783   int res1 = 0 ;
67784   size_t val2 ;
67785   int ecode2 = 0 ;
67786   PyObject * obj0 = 0 ;
67787   PyObject * obj1 = 0 ;
67788   char * kwnames[] = {
67789     (char *)"self",  (char *)"n",  NULL
67790   };
67791 
67792   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:HeatCapacityVector_reserve", kwnames, &obj0, &obj1)) SWIG_fail;
67793   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
67794   if (!SWIG_IsOK(res1)) {
67795     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_reserve" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
67796   }
67797   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
67798   ecode2 = SWIG_AsVal_size_t(obj1, &val2);
67799   if (!SWIG_IsOK(ecode2)) {
67800     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeatCapacityVector_reserve" "', argument " "2"" of type '" "std::vector< heat_capacity_result >::size_type""'");
67801   }
67802   arg2 = static_cast< std::vector< heat_capacity_result >::size_type >(val2);
67803   {
67804     try {
67805       (arg1)->reserve(arg2);
67806     } catch (const std::exception& e) {
67807       SWIG_exception(SWIG_RuntimeError, e.what());
67808     }
67809   }
67810   resultobj = SWIG_Py_Void();
67811   return resultobj;
67812 fail:
67813   return NULL;
67814 }
67815 
67816 
_wrap_HeatCapacityVector_capacity(PyObject * SWIGUNUSEDPARM (self),PyObject * args)67817 SWIGINTERN PyObject *_wrap_HeatCapacityVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
67818   PyObject *resultobj = 0;
67819   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
67820   void *argp1 = 0 ;
67821   int res1 = 0 ;
67822   PyObject *swig_obj[1] ;
67823   std::vector< heat_capacity_result >::size_type result;
67824 
67825   if (!args) SWIG_fail;
67826   swig_obj[0] = args;
67827   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0 |  0 );
67828   if (!SWIG_IsOK(res1)) {
67829     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeatCapacityVector_capacity" "', argument " "1"" of type '" "std::vector< heat_capacity_result > const *""'");
67830   }
67831   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
67832   {
67833     try {
67834       result = ((std::vector< heat_capacity_result > const *)arg1)->capacity();
67835     } catch (const std::exception& e) {
67836       SWIG_exception(SWIG_RuntimeError, e.what());
67837     }
67838   }
67839   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
67840   return resultobj;
67841 fail:
67842   return NULL;
67843 }
67844 
67845 
_wrap_delete_HeatCapacityVector(PyObject * SWIGUNUSEDPARM (self),PyObject * args)67846 SWIGINTERN PyObject *_wrap_delete_HeatCapacityVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
67847   PyObject *resultobj = 0;
67848   std::vector< heat_capacity_result > *arg1 = (std::vector< heat_capacity_result > *) 0 ;
67849   void *argp1 = 0 ;
67850   int res1 = 0 ;
67851   PyObject *swig_obj[1] ;
67852 
67853   if (!args) SWIG_fail;
67854   swig_obj[0] = args;
67855   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, SWIG_POINTER_DISOWN |  0 );
67856   if (!SWIG_IsOK(res1)) {
67857     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeatCapacityVector" "', argument " "1"" of type '" "std::vector< heat_capacity_result > *""'");
67858   }
67859   arg1 = reinterpret_cast< std::vector< heat_capacity_result > * >(argp1);
67860   {
67861     try {
67862       delete arg1;
67863     } catch (const std::exception& e) {
67864       SWIG_exception(SWIG_RuntimeError, e.what());
67865     }
67866   }
67867   resultobj = SWIG_Py_Void();
67868   return resultobj;
67869 fail:
67870   return NULL;
67871 }
67872 
67873 
HeatCapacityVector_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)67874 SWIGINTERN PyObject *HeatCapacityVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
67875   PyObject *obj;
67876   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
67877   SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, SWIG_NewClientData(obj));
67878   return SWIG_Py_Void();
67879 }
67880 
HeatCapacityVector_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)67881 SWIGINTERN PyObject *HeatCapacityVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
67882   return SWIG_Python_InitShadowInstance(args);
67883 }
67884 
_wrap_heat_capacity(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)67885 SWIGINTERN PyObject *_wrap_heat_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
67886   PyObject *resultobj = 0;
67887   std::string arg1 ;
67888   float arg2 = (float) 0. ;
67889   float arg3 = (float) 100. ;
67890   float arg4 = (float) 1. ;
67891   unsigned int arg5 = (unsigned int) 2U ;
67892   float val2 ;
67893   int ecode2 = 0 ;
67894   float val3 ;
67895   int ecode3 = 0 ;
67896   float val4 ;
67897   int ecode4 = 0 ;
67898   unsigned int val5 ;
67899   int ecode5 = 0 ;
67900   PyObject * obj0 = 0 ;
67901   PyObject * obj1 = 0 ;
67902   PyObject * obj2 = 0 ;
67903   PyObject * obj3 = 0 ;
67904   PyObject * obj4 = 0 ;
67905   char * kwnames[] = {
67906     (char *)"sequence",  (char *)"T_min",  (char *)"T_max",  (char *)"T_increment",  (char *)"mpoints",  NULL
67907   };
67908   std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > result;
67909 
67910   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|OOOO:heat_capacity", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
67911   {
67912     std::string *ptr = (std::string *)0;
67913     int res = SWIG_AsPtr_std_string(obj0, &ptr);
67914     if (!SWIG_IsOK(res) || !ptr) {
67915       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "heat_capacity" "', argument " "1"" of type '" "std::string""'");
67916     }
67917     arg1 = *ptr;
67918     if (SWIG_IsNewObj(res)) delete ptr;
67919   }
67920   if (obj1) {
67921     ecode2 = SWIG_AsVal_float(obj1, &val2);
67922     if (!SWIG_IsOK(ecode2)) {
67923       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "heat_capacity" "', argument " "2"" of type '" "float""'");
67924     }
67925     arg2 = static_cast< float >(val2);
67926   }
67927   if (obj2) {
67928     ecode3 = SWIG_AsVal_float(obj2, &val3);
67929     if (!SWIG_IsOK(ecode3)) {
67930       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "heat_capacity" "', argument " "3"" of type '" "float""'");
67931     }
67932     arg3 = static_cast< float >(val3);
67933   }
67934   if (obj3) {
67935     ecode4 = SWIG_AsVal_float(obj3, &val4);
67936     if (!SWIG_IsOK(ecode4)) {
67937       SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "heat_capacity" "', argument " "4"" of type '" "float""'");
67938     }
67939     arg4 = static_cast< float >(val4);
67940   }
67941   if (obj4) {
67942     ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
67943     if (!SWIG_IsOK(ecode5)) {
67944       SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "heat_capacity" "', argument " "5"" of type '" "unsigned int""'");
67945     }
67946     arg5 = static_cast< unsigned int >(val5);
67947   }
67948   {
67949     try {
67950       result = my_heat_capacity(arg1,arg2,arg3,arg4,arg5);
67951     } catch (const std::exception& e) {
67952       SWIG_exception(SWIG_RuntimeError, e.what());
67953     }
67954   }
67955   resultobj = swig::from(static_cast< std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > >(result));
67956   return resultobj;
67957 fail:
67958   return NULL;
67959 }
67960 
67961 
_wrap_basepair_i_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)67962 SWIGINTERN PyObject *_wrap_basepair_i_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
67963   PyObject *resultobj = 0;
67964   vrna_basepair_t *arg1 = (vrna_basepair_t *) 0 ;
67965   int arg2 ;
67966   void *argp1 = 0 ;
67967   int res1 = 0 ;
67968   int val2 ;
67969   int ecode2 = 0 ;
67970   PyObject *swig_obj[2] ;
67971 
67972   if (!SWIG_Python_UnpackTuple(args, "basepair_i_set", 2, 2, swig_obj)) SWIG_fail;
67973   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_basepair_t, 0 |  0 );
67974   if (!SWIG_IsOK(res1)) {
67975     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "basepair_i_set" "', argument " "1"" of type '" "vrna_basepair_t *""'");
67976   }
67977   arg1 = reinterpret_cast< vrna_basepair_t * >(argp1);
67978   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
67979   if (!SWIG_IsOK(ecode2)) {
67980     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "basepair_i_set" "', argument " "2"" of type '" "int""'");
67981   }
67982   arg2 = static_cast< int >(val2);
67983   if (arg1) (arg1)->i = arg2;
67984   resultobj = SWIG_Py_Void();
67985   return resultobj;
67986 fail:
67987   return NULL;
67988 }
67989 
67990 
_wrap_basepair_i_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)67991 SWIGINTERN PyObject *_wrap_basepair_i_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
67992   PyObject *resultobj = 0;
67993   vrna_basepair_t *arg1 = (vrna_basepair_t *) 0 ;
67994   void *argp1 = 0 ;
67995   int res1 = 0 ;
67996   PyObject *swig_obj[1] ;
67997   int result;
67998 
67999   if (!args) SWIG_fail;
68000   swig_obj[0] = args;
68001   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_basepair_t, 0 |  0 );
68002   if (!SWIG_IsOK(res1)) {
68003     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "basepair_i_get" "', argument " "1"" of type '" "vrna_basepair_t *""'");
68004   }
68005   arg1 = reinterpret_cast< vrna_basepair_t * >(argp1);
68006   result = (int) ((arg1)->i);
68007   resultobj = SWIG_From_int(static_cast< int >(result));
68008   return resultobj;
68009 fail:
68010   return NULL;
68011 }
68012 
68013 
_wrap_basepair_j_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)68014 SWIGINTERN PyObject *_wrap_basepair_j_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
68015   PyObject *resultobj = 0;
68016   vrna_basepair_t *arg1 = (vrna_basepair_t *) 0 ;
68017   int arg2 ;
68018   void *argp1 = 0 ;
68019   int res1 = 0 ;
68020   int val2 ;
68021   int ecode2 = 0 ;
68022   PyObject *swig_obj[2] ;
68023 
68024   if (!SWIG_Python_UnpackTuple(args, "basepair_j_set", 2, 2, swig_obj)) SWIG_fail;
68025   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_basepair_t, 0 |  0 );
68026   if (!SWIG_IsOK(res1)) {
68027     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "basepair_j_set" "', argument " "1"" of type '" "vrna_basepair_t *""'");
68028   }
68029   arg1 = reinterpret_cast< vrna_basepair_t * >(argp1);
68030   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
68031   if (!SWIG_IsOK(ecode2)) {
68032     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "basepair_j_set" "', argument " "2"" of type '" "int""'");
68033   }
68034   arg2 = static_cast< int >(val2);
68035   if (arg1) (arg1)->j = arg2;
68036   resultobj = SWIG_Py_Void();
68037   return resultobj;
68038 fail:
68039   return NULL;
68040 }
68041 
68042 
_wrap_basepair_j_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)68043 SWIGINTERN PyObject *_wrap_basepair_j_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
68044   PyObject *resultobj = 0;
68045   vrna_basepair_t *arg1 = (vrna_basepair_t *) 0 ;
68046   void *argp1 = 0 ;
68047   int res1 = 0 ;
68048   PyObject *swig_obj[1] ;
68049   int result;
68050 
68051   if (!args) SWIG_fail;
68052   swig_obj[0] = args;
68053   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_basepair_t, 0 |  0 );
68054   if (!SWIG_IsOK(res1)) {
68055     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "basepair_j_get" "', argument " "1"" of type '" "vrna_basepair_t *""'");
68056   }
68057   arg1 = reinterpret_cast< vrna_basepair_t * >(argp1);
68058   result = (int) ((arg1)->j);
68059   resultobj = SWIG_From_int(static_cast< int >(result));
68060   return resultobj;
68061 fail:
68062   return NULL;
68063 }
68064 
68065 
_wrap_new_basepair(PyObject * SWIGUNUSEDPARM (self),PyObject * args)68066 SWIGINTERN PyObject *_wrap_new_basepair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
68067   PyObject *resultobj = 0;
68068   vrna_basepair_t *result = 0 ;
68069 
68070   if (!SWIG_Python_UnpackTuple(args, "new_basepair", 0, 0, 0)) SWIG_fail;
68071   {
68072     try {
68073       result = (vrna_basepair_t *)new vrna_basepair_t();
68074     } catch (const std::exception& e) {
68075       SWIG_exception(SWIG_RuntimeError, e.what());
68076     }
68077   }
68078   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_basepair_t, SWIG_POINTER_NEW |  0 );
68079   return resultobj;
68080 fail:
68081   return NULL;
68082 }
68083 
68084 
_wrap_delete_basepair(PyObject * SWIGUNUSEDPARM (self),PyObject * args)68085 SWIGINTERN PyObject *_wrap_delete_basepair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
68086   PyObject *resultobj = 0;
68087   vrna_basepair_t *arg1 = (vrna_basepair_t *) 0 ;
68088   void *argp1 = 0 ;
68089   int res1 = 0 ;
68090   PyObject *swig_obj[1] ;
68091 
68092   if (!args) SWIG_fail;
68093   swig_obj[0] = args;
68094   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_basepair_t, SWIG_POINTER_DISOWN |  0 );
68095   if (!SWIG_IsOK(res1)) {
68096     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_basepair" "', argument " "1"" of type '" "vrna_basepair_t *""'");
68097   }
68098   arg1 = reinterpret_cast< vrna_basepair_t * >(argp1);
68099   {
68100     try {
68101       delete arg1;
68102     } catch (const std::exception& e) {
68103       SWIG_exception(SWIG_RuntimeError, e.what());
68104     }
68105   }
68106   resultobj = SWIG_Py_Void();
68107   return resultobj;
68108 fail:
68109   return NULL;
68110 }
68111 
68112 
basepair_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)68113 SWIGINTERN PyObject *basepair_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
68114   PyObject *obj;
68115   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
68116   SWIG_TypeNewClientData(SWIGTYPE_p_vrna_basepair_t, SWIG_NewClientData(obj));
68117   return SWIG_Py_Void();
68118 }
68119 
basepair_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)68120 SWIGINTERN PyObject *basepair_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
68121   return SWIG_Python_InitShadowInstance(args);
68122 }
68123 
_wrap_fc_add_pycallback(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)68124 SWIGINTERN PyObject *_wrap_fc_add_pycallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
68125   PyObject *resultobj = 0;
68126   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
68127   PyObject *arg2 = (PyObject *) 0 ;
68128   void *argp1 = 0 ;
68129   int res1 = 0 ;
68130   PyObject * obj0 = 0 ;
68131   PyObject * obj1 = 0 ;
68132   char * kwnames[] = {
68133     (char *)"vc",  (char *)"PyFunc",  NULL
68134   };
68135 
68136   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:fc_add_pycallback", kwnames, &obj0, &obj1)) SWIG_fail;
68137   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
68138   if (!SWIG_IsOK(res1)) {
68139     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fc_add_pycallback" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
68140   }
68141   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
68142   {
68143     if (!PyCallable_Check(obj1)) {
68144       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
68145       return NULL;
68146     }
68147     arg2 = obj1;
68148   }
68149   {
68150     try {
68151       fc_add_pycallback(arg1,arg2);
68152     } catch (const std::exception& e) {
68153       SWIG_exception(SWIG_RuntimeError, e.what());
68154     }
68155   }
68156   resultobj = SWIG_Py_Void();
68157   return resultobj;
68158 fail:
68159   return NULL;
68160 }
68161 
68162 
_wrap_fc_add_pydata(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)68163 SWIGINTERN PyObject *_wrap_fc_add_pydata(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
68164   PyObject *resultobj = 0;
68165   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
68166   PyObject *arg2 = (PyObject *) 0 ;
68167   PyObject *arg3 = (PyObject *) 0 ;
68168   void *argp1 = 0 ;
68169   int res1 = 0 ;
68170   PyObject * obj0 = 0 ;
68171   PyObject * obj1 = 0 ;
68172   PyObject * obj2 = 0 ;
68173   char * kwnames[] = {
68174     (char *)"vc",  (char *)"data",  (char *)"PyFuncOrNone",  NULL
68175   };
68176 
68177   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:fc_add_pydata", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
68178   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
68179   if (!SWIG_IsOK(res1)) {
68180     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fc_add_pydata" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
68181   }
68182   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
68183   {
68184     arg2 = obj1;
68185   }
68186   {
68187     if(obj2 != Py_None){
68188       if (!PyCallable_Check(obj2)) {
68189         PyErr_SetString(PyExc_TypeError, "Need a callable object!");
68190         return NULL;
68191       }
68192     }
68193     arg3 = obj2;
68194   }
68195   {
68196     try {
68197       fc_add_pydata(arg1,arg2,arg3);
68198     } catch (const std::exception& e) {
68199       SWIG_exception(SWIG_RuntimeError, e.what());
68200     }
68201   }
68202   resultobj = SWIG_Py_Void();
68203   return resultobj;
68204 fail:
68205   return NULL;
68206 }
68207 
68208 
_wrap_sc_add_f_pycallback(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)68209 SWIGINTERN PyObject *_wrap_sc_add_f_pycallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
68210   PyObject *resultobj = 0;
68211   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
68212   PyObject *arg2 = (PyObject *) 0 ;
68213   void *argp1 = 0 ;
68214   int res1 = 0 ;
68215   PyObject * obj0 = 0 ;
68216   PyObject * obj1 = 0 ;
68217   char * kwnames[] = {
68218     (char *)"vc",  (char *)"callback",  NULL
68219   };
68220   int result;
68221 
68222   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:sc_add_f_pycallback", kwnames, &obj0, &obj1)) SWIG_fail;
68223   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
68224   if (!SWIG_IsOK(res1)) {
68225     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sc_add_f_pycallback" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
68226   }
68227   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
68228   arg2 = obj1;
68229   {
68230     try {
68231       result = (int)sc_add_f_pycallback(arg1,arg2);
68232     } catch (const std::exception& e) {
68233       SWIG_exception(SWIG_RuntimeError, e.what());
68234     }
68235   }
68236   resultobj = SWIG_From_int(static_cast< int >(result));
68237   return resultobj;
68238 fail:
68239   return NULL;
68240 }
68241 
68242 
_wrap_sc_add_bt_pycallback(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)68243 SWIGINTERN PyObject *_wrap_sc_add_bt_pycallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
68244   PyObject *resultobj = 0;
68245   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
68246   PyObject *arg2 = (PyObject *) 0 ;
68247   void *argp1 = 0 ;
68248   int res1 = 0 ;
68249   PyObject * obj0 = 0 ;
68250   PyObject * obj1 = 0 ;
68251   char * kwnames[] = {
68252     (char *)"vc",  (char *)"PyFunc",  NULL
68253   };
68254   int result;
68255 
68256   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:sc_add_bt_pycallback", kwnames, &obj0, &obj1)) SWIG_fail;
68257   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
68258   if (!SWIG_IsOK(res1)) {
68259     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sc_add_bt_pycallback" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
68260   }
68261   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
68262   {
68263     if (!PyCallable_Check(obj1)) {
68264       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
68265       return NULL;
68266     }
68267     arg2 = obj1;
68268   }
68269   {
68270     try {
68271       result = (int)sc_add_bt_pycallback(arg1,arg2);
68272     } catch (const std::exception& e) {
68273       SWIG_exception(SWIG_RuntimeError, e.what());
68274     }
68275   }
68276   resultobj = SWIG_From_int(static_cast< int >(result));
68277   return resultobj;
68278 fail:
68279   return NULL;
68280 }
68281 
68282 
_wrap_sc_add_exp_f_pycallback(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)68283 SWIGINTERN PyObject *_wrap_sc_add_exp_f_pycallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
68284   PyObject *resultobj = 0;
68285   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
68286   PyObject *arg2 = (PyObject *) 0 ;
68287   void *argp1 = 0 ;
68288   int res1 = 0 ;
68289   PyObject * obj0 = 0 ;
68290   PyObject * obj1 = 0 ;
68291   char * kwnames[] = {
68292     (char *)"vc",  (char *)"PyFunc",  NULL
68293   };
68294   int result;
68295 
68296   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:sc_add_exp_f_pycallback", kwnames, &obj0, &obj1)) SWIG_fail;
68297   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
68298   if (!SWIG_IsOK(res1)) {
68299     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sc_add_exp_f_pycallback" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
68300   }
68301   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
68302   {
68303     if (!PyCallable_Check(obj1)) {
68304       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
68305       return NULL;
68306     }
68307     arg2 = obj1;
68308   }
68309   {
68310     try {
68311       result = (int)sc_add_exp_f_pycallback(arg1,arg2);
68312     } catch (const std::exception& e) {
68313       SWIG_exception(SWIG_RuntimeError, e.what());
68314     }
68315   }
68316   resultobj = SWIG_From_int(static_cast< int >(result));
68317   return resultobj;
68318 fail:
68319   return NULL;
68320 }
68321 
68322 
_wrap_sc_add_pydata(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)68323 SWIGINTERN PyObject *_wrap_sc_add_pydata(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
68324   PyObject *resultobj = 0;
68325   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
68326   PyObject *arg2 = (PyObject *) 0 ;
68327   PyObject *arg3 = (PyObject *) 0 ;
68328   void *argp1 = 0 ;
68329   int res1 = 0 ;
68330   PyObject * obj0 = 0 ;
68331   PyObject * obj1 = 0 ;
68332   PyObject * obj2 = 0 ;
68333   char * kwnames[] = {
68334     (char *)"vc",  (char *)"data",  (char *)"callback",  NULL
68335   };
68336   int result;
68337 
68338   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:sc_add_pydata", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
68339   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
68340   if (!SWIG_IsOK(res1)) {
68341     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sc_add_pydata" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
68342   }
68343   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
68344   {
68345     arg2 = obj1;
68346   }
68347   arg3 = obj2;
68348   {
68349     try {
68350       result = (int)sc_add_pydata(arg1,arg2,arg3);
68351     } catch (const std::exception& e) {
68352       SWIG_exception(SWIG_RuntimeError, e.what());
68353     }
68354   }
68355   resultobj = SWIG_From_int(static_cast< int >(result));
68356   return resultobj;
68357 fail:
68358   return NULL;
68359 }
68360 
68361 
_wrap_ud_set_pydata(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)68362 SWIGINTERN PyObject *_wrap_ud_set_pydata(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
68363   PyObject *resultobj = 0;
68364   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
68365   PyObject *arg2 = (PyObject *) 0 ;
68366   PyObject *arg3 = (PyObject *) 0 ;
68367   void *argp1 = 0 ;
68368   int res1 = 0 ;
68369   PyObject * obj0 = 0 ;
68370   PyObject * obj1 = 0 ;
68371   PyObject * obj2 = 0 ;
68372   char * kwnames[] = {
68373     (char *)"vc",  (char *)"data",  (char *)"PyFuncOrNone",  NULL
68374   };
68375 
68376   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:ud_set_pydata", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
68377   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
68378   if (!SWIG_IsOK(res1)) {
68379     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ud_set_pydata" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
68380   }
68381   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
68382   {
68383     arg2 = obj1;
68384   }
68385   {
68386     if(obj2 != Py_None){
68387       if (!PyCallable_Check(obj2)) {
68388         PyErr_SetString(PyExc_TypeError, "Need a callable object!");
68389         return NULL;
68390       }
68391     }
68392     arg3 = obj2;
68393   }
68394   {
68395     try {
68396       ud_set_pydata(arg1,arg2,arg3);
68397     } catch (const std::exception& e) {
68398       SWIG_exception(SWIG_RuntimeError, e.what());
68399     }
68400   }
68401   resultobj = SWIG_Py_Void();
68402   return resultobj;
68403 fail:
68404   return NULL;
68405 }
68406 
68407 
_wrap_ud_set_prod_cb(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)68408 SWIGINTERN PyObject *_wrap_ud_set_prod_cb(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
68409   PyObject *resultobj = 0;
68410   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
68411   PyObject *arg2 = (PyObject *) 0 ;
68412   PyObject *arg3 = (PyObject *) 0 ;
68413   void *argp1 = 0 ;
68414   int res1 = 0 ;
68415   PyObject * obj0 = 0 ;
68416   PyObject * obj1 = 0 ;
68417   PyObject * obj2 = 0 ;
68418   char * kwnames[] = {
68419     (char *)"vc",  (char *)"prod_cb",  (char *)"eval_cb",  NULL
68420   };
68421 
68422   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:ud_set_prod_cb", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
68423   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
68424   if (!SWIG_IsOK(res1)) {
68425     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ud_set_prod_cb" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
68426   }
68427   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
68428   arg2 = obj1;
68429   arg3 = obj2;
68430   {
68431     try {
68432       ud_set_prod_cb(arg1,arg2,arg3);
68433     } catch (const std::exception& e) {
68434       SWIG_exception(SWIG_RuntimeError, e.what());
68435     }
68436   }
68437   resultobj = SWIG_Py_Void();
68438   return resultobj;
68439 fail:
68440   return NULL;
68441 }
68442 
68443 
_wrap_ud_set_exp_prod_cb(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)68444 SWIGINTERN PyObject *_wrap_ud_set_exp_prod_cb(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
68445   PyObject *resultobj = 0;
68446   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
68447   PyObject *arg2 = (PyObject *) 0 ;
68448   PyObject *arg3 = (PyObject *) 0 ;
68449   void *argp1 = 0 ;
68450   int res1 = 0 ;
68451   PyObject * obj0 = 0 ;
68452   PyObject * obj1 = 0 ;
68453   PyObject * obj2 = 0 ;
68454   char * kwnames[] = {
68455     (char *)"vc",  (char *)"prod_cb",  (char *)"eval_cb",  NULL
68456   };
68457 
68458   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:ud_set_exp_prod_cb", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
68459   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
68460   if (!SWIG_IsOK(res1)) {
68461     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ud_set_exp_prod_cb" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
68462   }
68463   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
68464   arg2 = obj1;
68465   arg3 = obj2;
68466   {
68467     try {
68468       ud_set_exp_prod_cb(arg1,arg2,arg3);
68469     } catch (const std::exception& e) {
68470       SWIG_exception(SWIG_RuntimeError, e.what());
68471     }
68472   }
68473   resultobj = SWIG_Py_Void();
68474   return resultobj;
68475 fail:
68476   return NULL;
68477 }
68478 
68479 
_wrap_ud_set_prob_cb(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)68480 SWIGINTERN PyObject *_wrap_ud_set_prob_cb(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
68481   PyObject *resultobj = 0;
68482   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
68483   PyObject *arg2 = (PyObject *) 0 ;
68484   PyObject *arg3 = (PyObject *) 0 ;
68485   void *argp1 = 0 ;
68486   int res1 = 0 ;
68487   PyObject * obj0 = 0 ;
68488   PyObject * obj1 = 0 ;
68489   PyObject * obj2 = 0 ;
68490   char * kwnames[] = {
68491     (char *)"vc",  (char *)"setter",  (char *)"getter",  NULL
68492   };
68493 
68494   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:ud_set_prob_cb", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
68495   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
68496   if (!SWIG_IsOK(res1)) {
68497     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ud_set_prob_cb" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
68498   }
68499   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
68500   arg2 = obj1;
68501   arg3 = obj2;
68502   {
68503     try {
68504       ud_set_prob_cb(arg1,arg2,arg3);
68505     } catch (const std::exception& e) {
68506       SWIG_exception(SWIG_RuntimeError, e.what());
68507     }
68508   }
68509   resultobj = SWIG_Py_Void();
68510   return resultobj;
68511 fail:
68512   return NULL;
68513 }
68514 
68515 
_wrap_Lfold_cb(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)68516 SWIGINTERN PyObject *_wrap_Lfold_cb(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
68517   PyObject *resultobj = 0;
68518   char *arg1 = (char *) 0 ;
68519   int arg2 ;
68520   PyObject *arg3 = (PyObject *) 0 ;
68521   PyObject *arg4 = (PyObject *) 0 ;
68522   int res1 ;
68523   char *buf1 = 0 ;
68524   int alloc1 = 0 ;
68525   int val2 ;
68526   int ecode2 = 0 ;
68527   PyObject * obj0 = 0 ;
68528   PyObject * obj1 = 0 ;
68529   PyObject * obj2 = 0 ;
68530   PyObject * obj3 = 0 ;
68531   char * kwnames[] = {
68532     (char *)"string",  (char *)"window_size",  (char *)"PyFunc",  (char *)"data",  NULL
68533   };
68534   float result;
68535 
68536   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:Lfold_cb", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
68537   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
68538   if (!SWIG_IsOK(res1)) {
68539     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Lfold_cb" "', argument " "1"" of type '" "char *""'");
68540   }
68541   arg1 = reinterpret_cast< char * >(buf1);
68542   ecode2 = SWIG_AsVal_int(obj1, &val2);
68543   if (!SWIG_IsOK(ecode2)) {
68544     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Lfold_cb" "', argument " "2"" of type '" "int""'");
68545   }
68546   arg2 = static_cast< int >(val2);
68547   {
68548     if (!PyCallable_Check(obj2)) {
68549       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
68550       return NULL;
68551     }
68552     arg3 = obj2;
68553   }
68554   {
68555     arg4 = obj3;
68556   }
68557   {
68558     try {
68559       result = (float)my_Lfold_cb(arg1,arg2,arg3,arg4);
68560     } catch (const std::exception& e) {
68561       SWIG_exception(SWIG_RuntimeError, e.what());
68562     }
68563   }
68564   resultobj = SWIG_From_float(static_cast< float >(result));
68565   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
68566   return resultobj;
68567 fail:
68568   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
68569   return NULL;
68570 }
68571 
68572 
_wrap_Lfoldz_cb(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)68573 SWIGINTERN PyObject *_wrap_Lfoldz_cb(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
68574   PyObject *resultobj = 0;
68575   char *arg1 = (char *) 0 ;
68576   int arg2 ;
68577   double arg3 ;
68578   PyObject *arg4 = (PyObject *) 0 ;
68579   PyObject *arg5 = (PyObject *) 0 ;
68580   int res1 ;
68581   char *buf1 = 0 ;
68582   int alloc1 = 0 ;
68583   int val2 ;
68584   int ecode2 = 0 ;
68585   double val3 ;
68586   int ecode3 = 0 ;
68587   PyObject * obj0 = 0 ;
68588   PyObject * obj1 = 0 ;
68589   PyObject * obj2 = 0 ;
68590   PyObject * obj3 = 0 ;
68591   PyObject * obj4 = 0 ;
68592   char * kwnames[] = {
68593     (char *)"string",  (char *)"window_size",  (char *)"min_z",  (char *)"PyFunc",  (char *)"data",  NULL
68594   };
68595   float result;
68596 
68597   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:Lfoldz_cb", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
68598   res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
68599   if (!SWIG_IsOK(res1)) {
68600     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Lfoldz_cb" "', argument " "1"" of type '" "char *""'");
68601   }
68602   arg1 = reinterpret_cast< char * >(buf1);
68603   ecode2 = SWIG_AsVal_int(obj1, &val2);
68604   if (!SWIG_IsOK(ecode2)) {
68605     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Lfoldz_cb" "', argument " "2"" of type '" "int""'");
68606   }
68607   arg2 = static_cast< int >(val2);
68608   ecode3 = SWIG_AsVal_double(obj2, &val3);
68609   if (!SWIG_IsOK(ecode3)) {
68610     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Lfoldz_cb" "', argument " "3"" of type '" "double""'");
68611   }
68612   arg3 = static_cast< double >(val3);
68613   {
68614     if (!PyCallable_Check(obj3)) {
68615       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
68616       return NULL;
68617     }
68618     arg4 = obj3;
68619   }
68620   {
68621     arg5 = obj4;
68622   }
68623   {
68624     try {
68625       result = (float)my_Lfoldz_cb(arg1,arg2,arg3,arg4,arg5);
68626     } catch (const std::exception& e) {
68627       SWIG_exception(SWIG_RuntimeError, e.what());
68628     }
68629   }
68630   resultobj = SWIG_From_float(static_cast< float >(result));
68631   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
68632   return resultobj;
68633 fail:
68634   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
68635   return NULL;
68636 }
68637 
68638 
_wrap_aliLfold_cb(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)68639 SWIGINTERN PyObject *_wrap_aliLfold_cb(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
68640   PyObject *resultobj = 0;
68641   std::vector< std::string,std::allocator< std::string > > arg1 ;
68642   int arg2 ;
68643   PyObject *arg3 = (PyObject *) 0 ;
68644   PyObject *arg4 = (PyObject *) 0 ;
68645   int val2 ;
68646   int ecode2 = 0 ;
68647   PyObject * obj0 = 0 ;
68648   PyObject * obj1 = 0 ;
68649   PyObject * obj2 = 0 ;
68650   PyObject * obj3 = 0 ;
68651   char * kwnames[] = {
68652     (char *)"alignment",  (char *)"window_size",  (char *)"PyFunc",  (char *)"data",  NULL
68653   };
68654   float result;
68655 
68656   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:aliLfold_cb", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
68657   {
68658     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
68659     int res = swig::asptr(obj0, &ptr);
68660     if (!SWIG_IsOK(res) || !ptr) {
68661       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "aliLfold_cb" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
68662     }
68663     arg1 = *ptr;
68664     if (SWIG_IsNewObj(res)) delete ptr;
68665   }
68666   ecode2 = SWIG_AsVal_int(obj1, &val2);
68667   if (!SWIG_IsOK(ecode2)) {
68668     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "aliLfold_cb" "', argument " "2"" of type '" "int""'");
68669   }
68670   arg2 = static_cast< int >(val2);
68671   {
68672     if (!PyCallable_Check(obj2)) {
68673       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
68674       return NULL;
68675     }
68676     arg3 = obj2;
68677   }
68678   {
68679     arg4 = obj3;
68680   }
68681   {
68682     try {
68683       result = (float)my_aliLfold_cb(arg1,arg2,arg3,arg4);
68684     } catch (const std::exception& e) {
68685       SWIG_exception(SWIG_RuntimeError, e.what());
68686     }
68687   }
68688   resultobj = SWIG_From_float(static_cast< float >(result));
68689   return resultobj;
68690 fail:
68691   return NULL;
68692 }
68693 
68694 
_wrap_pfl_fold_cb(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)68695 SWIGINTERN PyObject *_wrap_pfl_fold_cb(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
68696   PyObject *resultobj = 0;
68697   std::string arg1 ;
68698   int arg2 ;
68699   int arg3 ;
68700   PyObject *arg4 = (PyObject *) 0 ;
68701   PyObject *arg5 = (PyObject *) Py_None ;
68702   int val2 ;
68703   int ecode2 = 0 ;
68704   int val3 ;
68705   int ecode3 = 0 ;
68706   PyObject * obj0 = 0 ;
68707   PyObject * obj1 = 0 ;
68708   PyObject * obj2 = 0 ;
68709   PyObject * obj3 = 0 ;
68710   PyObject * obj4 = 0 ;
68711   char * kwnames[] = {
68712     (char *)"sequence",  (char *)"window_size",  (char *)"max_bp_span",  (char *)"PyFunc",  (char *)"data",  NULL
68713   };
68714   int result;
68715 
68716   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO|O:pfl_fold_cb", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
68717   {
68718     std::string *ptr = (std::string *)0;
68719     int res = SWIG_AsPtr_std_string(obj0, &ptr);
68720     if (!SWIG_IsOK(res) || !ptr) {
68721       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "pfl_fold_cb" "', argument " "1"" of type '" "std::string""'");
68722     }
68723     arg1 = *ptr;
68724     if (SWIG_IsNewObj(res)) delete ptr;
68725   }
68726   ecode2 = SWIG_AsVal_int(obj1, &val2);
68727   if (!SWIG_IsOK(ecode2)) {
68728     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pfl_fold_cb" "', argument " "2"" of type '" "int""'");
68729   }
68730   arg2 = static_cast< int >(val2);
68731   ecode3 = SWIG_AsVal_int(obj2, &val3);
68732   if (!SWIG_IsOK(ecode3)) {
68733     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pfl_fold_cb" "', argument " "3"" of type '" "int""'");
68734   }
68735   arg3 = static_cast< int >(val3);
68736   {
68737     if (!PyCallable_Check(obj3)) {
68738       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
68739       return NULL;
68740     }
68741     arg4 = obj3;
68742   }
68743   if (obj4) {
68744     {
68745       arg5 = obj4;
68746     }
68747   }
68748   {
68749     try {
68750       result = (int)pfl_fold_cb(arg1,arg2,arg3,arg4,arg5);
68751     } catch (const std::exception& e) {
68752       SWIG_exception(SWIG_RuntimeError, e.what());
68753     }
68754   }
68755   resultobj = SWIG_From_int(static_cast< int >(result));
68756   return resultobj;
68757 fail:
68758   return NULL;
68759 }
68760 
68761 
_wrap_pfl_fold_up_cb(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)68762 SWIGINTERN PyObject *_wrap_pfl_fold_up_cb(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
68763   PyObject *resultobj = 0;
68764   std::string arg1 ;
68765   int arg2 ;
68766   int arg3 ;
68767   int arg4 ;
68768   PyObject *arg5 = (PyObject *) 0 ;
68769   PyObject *arg6 = (PyObject *) Py_None ;
68770   int val2 ;
68771   int ecode2 = 0 ;
68772   int val3 ;
68773   int ecode3 = 0 ;
68774   int val4 ;
68775   int ecode4 = 0 ;
68776   PyObject * obj0 = 0 ;
68777   PyObject * obj1 = 0 ;
68778   PyObject * obj2 = 0 ;
68779   PyObject * obj3 = 0 ;
68780   PyObject * obj4 = 0 ;
68781   PyObject * obj5 = 0 ;
68782   char * kwnames[] = {
68783     (char *)"sequence",  (char *)"ulength",  (char *)"window_size",  (char *)"max_bp_span",  (char *)"PyFunc",  (char *)"data",  NULL
68784   };
68785   int result;
68786 
68787   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO|O:pfl_fold_up_cb", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
68788   {
68789     std::string *ptr = (std::string *)0;
68790     int res = SWIG_AsPtr_std_string(obj0, &ptr);
68791     if (!SWIG_IsOK(res) || !ptr) {
68792       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "pfl_fold_up_cb" "', argument " "1"" of type '" "std::string""'");
68793     }
68794     arg1 = *ptr;
68795     if (SWIG_IsNewObj(res)) delete ptr;
68796   }
68797   ecode2 = SWIG_AsVal_int(obj1, &val2);
68798   if (!SWIG_IsOK(ecode2)) {
68799     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pfl_fold_up_cb" "', argument " "2"" of type '" "int""'");
68800   }
68801   arg2 = static_cast< int >(val2);
68802   ecode3 = SWIG_AsVal_int(obj2, &val3);
68803   if (!SWIG_IsOK(ecode3)) {
68804     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pfl_fold_up_cb" "', argument " "3"" of type '" "int""'");
68805   }
68806   arg3 = static_cast< int >(val3);
68807   ecode4 = SWIG_AsVal_int(obj3, &val4);
68808   if (!SWIG_IsOK(ecode4)) {
68809     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pfl_fold_up_cb" "', argument " "4"" of type '" "int""'");
68810   }
68811   arg4 = static_cast< int >(val4);
68812   {
68813     if (!PyCallable_Check(obj4)) {
68814       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
68815       return NULL;
68816     }
68817     arg5 = obj4;
68818   }
68819   if (obj5) {
68820     {
68821       arg6 = obj5;
68822     }
68823   }
68824   {
68825     try {
68826       result = (int)pfl_fold_up_cb(arg1,arg2,arg3,arg4,arg5,arg6);
68827     } catch (const std::exception& e) {
68828       SWIG_exception(SWIG_RuntimeError, e.what());
68829     }
68830   }
68831   resultobj = SWIG_From_int(static_cast< int >(result));
68832   return resultobj;
68833 fail:
68834   return NULL;
68835 }
68836 
68837 
_wrap_fold_compound_params_reset(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)68838 SWIGINTERN PyObject *_wrap_fold_compound_params_reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
68839   PyObject *resultobj = 0;
68840   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
68841   vrna_md_t *arg2 = (vrna_md_t *) NULL ;
68842   void *argp1 = 0 ;
68843   int res1 = 0 ;
68844   void *argp2 = 0 ;
68845   int res2 = 0 ;
68846   PyObject * obj0 = 0 ;
68847   PyObject * obj1 = 0 ;
68848   char * kwnames[] = {
68849     (char *)"self",  (char *)"md",  NULL
68850   };
68851 
68852   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:fold_compound_params_reset", kwnames, &obj0, &obj1)) SWIG_fail;
68853   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
68854   if (!SWIG_IsOK(res1)) {
68855     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_params_reset" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
68856   }
68857   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
68858   if (obj1) {
68859     res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_vrna_md_t, 0 |  0 );
68860     if (!SWIG_IsOK(res2)) {
68861       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fold_compound_params_reset" "', argument " "2"" of type '" "vrna_md_t *""'");
68862     }
68863     arg2 = reinterpret_cast< vrna_md_t * >(argp2);
68864   }
68865   {
68866     try {
68867       vrna_fold_compound_t_params_reset(arg1,arg2);
68868     } catch (const std::exception& e) {
68869       SWIG_exception(SWIG_RuntimeError, e.what());
68870     }
68871   }
68872   resultobj = SWIG_Py_Void();
68873   return resultobj;
68874 fail:
68875   return NULL;
68876 }
68877 
68878 
_wrap_fold_compound_params_subst(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)68879 SWIGINTERN PyObject *_wrap_fold_compound_params_subst(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
68880   PyObject *resultobj = 0;
68881   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
68882   vrna_param_t *arg2 = (vrna_param_t *) NULL ;
68883   void *argp1 = 0 ;
68884   int res1 = 0 ;
68885   void *argp2 = 0 ;
68886   int res2 = 0 ;
68887   PyObject * obj0 = 0 ;
68888   PyObject * obj1 = 0 ;
68889   char * kwnames[] = {
68890     (char *)"self",  (char *)"par",  NULL
68891   };
68892 
68893   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:fold_compound_params_subst", kwnames, &obj0, &obj1)) SWIG_fail;
68894   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
68895   if (!SWIG_IsOK(res1)) {
68896     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_params_subst" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
68897   }
68898   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
68899   if (obj1) {
68900     res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_vrna_param_t, 0 |  0 );
68901     if (!SWIG_IsOK(res2)) {
68902       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fold_compound_params_subst" "', argument " "2"" of type '" "vrna_param_t *""'");
68903     }
68904     arg2 = reinterpret_cast< vrna_param_t * >(argp2);
68905   }
68906   {
68907     try {
68908       vrna_fold_compound_t_params_subst(arg1,arg2);
68909     } catch (const std::exception& e) {
68910       SWIG_exception(SWIG_RuntimeError, e.what());
68911     }
68912   }
68913   resultobj = SWIG_Py_Void();
68914   return resultobj;
68915 fail:
68916   return NULL;
68917 }
68918 
68919 
_wrap_fold_compound_exp_params_rescale__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)68920 SWIGINTERN PyObject *_wrap_fold_compound_exp_params_rescale__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
68921   PyObject *resultobj = 0;
68922   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
68923   void *argp1 = 0 ;
68924   int res1 = 0 ;
68925 
68926   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
68927   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
68928   if (!SWIG_IsOK(res1)) {
68929     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_exp_params_rescale" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
68930   }
68931   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
68932   {
68933     try {
68934       vrna_fold_compound_t_exp_params_rescale__SWIG_0(arg1);
68935     } catch (const std::exception& e) {
68936       SWIG_exception(SWIG_RuntimeError, e.what());
68937     }
68938   }
68939   resultobj = SWIG_Py_Void();
68940   return resultobj;
68941 fail:
68942   return NULL;
68943 }
68944 
68945 
_wrap_fold_compound_exp_params_rescale__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)68946 SWIGINTERN PyObject *_wrap_fold_compound_exp_params_rescale__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
68947   PyObject *resultobj = 0;
68948   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
68949   double arg2 ;
68950   void *argp1 = 0 ;
68951   int res1 = 0 ;
68952   double val2 ;
68953   int ecode2 = 0 ;
68954 
68955   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
68956   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
68957   if (!SWIG_IsOK(res1)) {
68958     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_exp_params_rescale" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
68959   }
68960   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
68961   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
68962   if (!SWIG_IsOK(ecode2)) {
68963     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_exp_params_rescale" "', argument " "2"" of type '" "double""'");
68964   }
68965   arg2 = static_cast< double >(val2);
68966   {
68967     try {
68968       vrna_fold_compound_t_exp_params_rescale__SWIG_1(arg1,arg2);
68969     } catch (const std::exception& e) {
68970       SWIG_exception(SWIG_RuntimeError, e.what());
68971     }
68972   }
68973   resultobj = SWIG_Py_Void();
68974   return resultobj;
68975 fail:
68976   return NULL;
68977 }
68978 
68979 
_wrap_fold_compound_exp_params_rescale(PyObject * self,PyObject * args)68980 SWIGINTERN PyObject *_wrap_fold_compound_exp_params_rescale(PyObject *self, PyObject *args) {
68981   Py_ssize_t argc;
68982   PyObject *argv[3] = {
68983     0
68984   };
68985 
68986   if (!(argc = SWIG_Python_UnpackTuple(args, "fold_compound_exp_params_rescale", 0, 2, argv))) SWIG_fail;
68987   --argc;
68988   if (argc == 1) {
68989     int _v;
68990     void *vptr = 0;
68991     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
68992     _v = SWIG_CheckState(res);
68993     if (_v) {
68994       return _wrap_fold_compound_exp_params_rescale__SWIG_0(self, argc, argv);
68995     }
68996   }
68997   if (argc == 2) {
68998     int _v;
68999     void *vptr = 0;
69000     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
69001     _v = SWIG_CheckState(res);
69002     if (_v) {
69003       {
69004         int res = SWIG_AsVal_double(argv[1], NULL);
69005         _v = SWIG_CheckState(res);
69006       }
69007       if (_v) {
69008         return _wrap_fold_compound_exp_params_rescale__SWIG_1(self, argc, argv);
69009       }
69010     }
69011   }
69012 
69013 fail:
69014   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'fold_compound_exp_params_rescale'.\n"
69015     "  Possible C/C++ prototypes are:\n"
69016     "    vrna_fold_compound_t::exp_params_rescale(void)\n"
69017     "    vrna_fold_compound_t::exp_params_rescale(double)\n");
69018   return 0;
69019 }
69020 
69021 
_wrap_fold_compound_exp_params_reset(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)69022 SWIGINTERN PyObject *_wrap_fold_compound_exp_params_reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
69023   PyObject *resultobj = 0;
69024   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
69025   vrna_md_t *arg2 = (vrna_md_t *) NULL ;
69026   void *argp1 = 0 ;
69027   int res1 = 0 ;
69028   void *argp2 = 0 ;
69029   int res2 = 0 ;
69030   PyObject * obj0 = 0 ;
69031   PyObject * obj1 = 0 ;
69032   char * kwnames[] = {
69033     (char *)"self",  (char *)"md",  NULL
69034   };
69035 
69036   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:fold_compound_exp_params_reset", kwnames, &obj0, &obj1)) SWIG_fail;
69037   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
69038   if (!SWIG_IsOK(res1)) {
69039     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_exp_params_reset" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
69040   }
69041   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
69042   if (obj1) {
69043     res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_vrna_md_t, 0 |  0 );
69044     if (!SWIG_IsOK(res2)) {
69045       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fold_compound_exp_params_reset" "', argument " "2"" of type '" "vrna_md_t *""'");
69046     }
69047     arg2 = reinterpret_cast< vrna_md_t * >(argp2);
69048   }
69049   {
69050     try {
69051       vrna_fold_compound_t_exp_params_reset(arg1,arg2);
69052     } catch (const std::exception& e) {
69053       SWIG_exception(SWIG_RuntimeError, e.what());
69054     }
69055   }
69056   resultobj = SWIG_Py_Void();
69057   return resultobj;
69058 fail:
69059   return NULL;
69060 }
69061 
69062 
_wrap_fold_compound_exp_params_subst(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)69063 SWIGINTERN PyObject *_wrap_fold_compound_exp_params_subst(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
69064   PyObject *resultobj = 0;
69065   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
69066   vrna_exp_param_t *arg2 = (vrna_exp_param_t *) 0 ;
69067   void *argp1 = 0 ;
69068   int res1 = 0 ;
69069   void *argp2 = 0 ;
69070   int res2 = 0 ;
69071   PyObject * obj0 = 0 ;
69072   PyObject * obj1 = 0 ;
69073   char * kwnames[] = {
69074     (char *)"self",  (char *)"par",  NULL
69075   };
69076 
69077   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:fold_compound_exp_params_subst", kwnames, &obj0, &obj1)) SWIG_fail;
69078   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
69079   if (!SWIG_IsOK(res1)) {
69080     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_exp_params_subst" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
69081   }
69082   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
69083   res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
69084   if (!SWIG_IsOK(res2)) {
69085     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fold_compound_exp_params_subst" "', argument " "2"" of type '" "vrna_exp_param_t *""'");
69086   }
69087   arg2 = reinterpret_cast< vrna_exp_param_t * >(argp2);
69088   {
69089     try {
69090       vrna_fold_compound_t_exp_params_subst(arg1,arg2);
69091     } catch (const std::exception& e) {
69092       SWIG_exception(SWIG_RuntimeError, e.what());
69093     }
69094   }
69095   resultobj = SWIG_Py_Void();
69096   return resultobj;
69097 fail:
69098   return NULL;
69099 }
69100 
69101 
_wrap_fold_compound_plist_from_probs(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)69102 SWIGINTERN PyObject *_wrap_fold_compound_plist_from_probs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
69103   PyObject *resultobj = 0;
69104   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
69105   double arg2 ;
69106   void *argp1 = 0 ;
69107   int res1 = 0 ;
69108   double val2 ;
69109   int ecode2 = 0 ;
69110   PyObject * obj0 = 0 ;
69111   PyObject * obj1 = 0 ;
69112   char * kwnames[] = {
69113     (char *)"self",  (char *)"cutoff",  NULL
69114   };
69115   std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > result;
69116 
69117   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:fold_compound_plist_from_probs", kwnames, &obj0, &obj1)) SWIG_fail;
69118   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
69119   if (!SWIG_IsOK(res1)) {
69120     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_plist_from_probs" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
69121   }
69122   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
69123   ecode2 = SWIG_AsVal_double(obj1, &val2);
69124   if (!SWIG_IsOK(ecode2)) {
69125     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_plist_from_probs" "', argument " "2"" of type '" "double""'");
69126   }
69127   arg2 = static_cast< double >(val2);
69128   {
69129     try {
69130       result = vrna_fold_compound_t_plist_from_probs(arg1,arg2);
69131     } catch (const std::exception& e) {
69132       SWIG_exception(SWIG_RuntimeError, e.what());
69133     }
69134   }
69135   resultobj = swig::from(static_cast< std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > >(result));
69136   return resultobj;
69137 fail:
69138   return NULL;
69139 }
69140 
69141 
_wrap_fold_compound_constraints_add(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)69142 SWIGINTERN PyObject *_wrap_fold_compound_constraints_add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
69143   PyObject *resultobj = 0;
69144   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
69145   char *arg2 = (char *) 0 ;
69146   unsigned int arg3 = (unsigned int) VRNA_OPTION_MFE ;
69147   void *argp1 = 0 ;
69148   int res1 = 0 ;
69149   int res2 ;
69150   char *buf2 = 0 ;
69151   int alloc2 = 0 ;
69152   unsigned int val3 ;
69153   int ecode3 = 0 ;
69154   PyObject * obj0 = 0 ;
69155   PyObject * obj1 = 0 ;
69156   PyObject * obj2 = 0 ;
69157   char * kwnames[] = {
69158     (char *)"self",  (char *)"constraint",  (char *)"options",  NULL
69159   };
69160 
69161   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:fold_compound_constraints_add", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
69162   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
69163   if (!SWIG_IsOK(res1)) {
69164     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_constraints_add" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
69165   }
69166   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
69167   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
69168   if (!SWIG_IsOK(res2)) {
69169     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fold_compound_constraints_add" "', argument " "2"" of type '" "char const *""'");
69170   }
69171   arg2 = reinterpret_cast< char * >(buf2);
69172   if (obj2) {
69173     ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
69174     if (!SWIG_IsOK(ecode3)) {
69175       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_constraints_add" "', argument " "3"" of type '" "unsigned int""'");
69176     }
69177     arg3 = static_cast< unsigned int >(val3);
69178   }
69179   {
69180     try {
69181       vrna_fold_compound_t_constraints_add(arg1,(char const *)arg2,arg3);
69182     } catch (const std::exception& e) {
69183       SWIG_exception(SWIG_RuntimeError, e.what());
69184     }
69185   }
69186   resultobj = SWIG_Py_Void();
69187   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
69188   return resultobj;
69189 fail:
69190   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
69191   return NULL;
69192 }
69193 
69194 
_wrap_fold_compound_hc_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)69195 SWIGINTERN PyObject *_wrap_fold_compound_hc_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
69196   PyObject *resultobj = 0;
69197   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
69198   void *argp1 = 0 ;
69199   int res1 = 0 ;
69200   PyObject *swig_obj[1] ;
69201 
69202   if (!args) SWIG_fail;
69203   swig_obj[0] = args;
69204   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
69205   if (!SWIG_IsOK(res1)) {
69206     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_hc_init" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
69207   }
69208   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
69209   {
69210     try {
69211       vrna_fold_compound_t_hc_init(arg1);
69212     } catch (const std::exception& e) {
69213       SWIG_exception(SWIG_RuntimeError, e.what());
69214     }
69215   }
69216   resultobj = SWIG_Py_Void();
69217   return resultobj;
69218 fail:
69219   return NULL;
69220 }
69221 
69222 
_wrap_fold_compound_hc_add_up(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)69223 SWIGINTERN PyObject *_wrap_fold_compound_hc_add_up(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
69224   PyObject *resultobj = 0;
69225   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
69226   int arg2 ;
69227   unsigned int arg3 = (unsigned int) VRNA_CONSTRAINT_CONTEXT_ALL_LOOPS ;
69228   void *argp1 = 0 ;
69229   int res1 = 0 ;
69230   int val2 ;
69231   int ecode2 = 0 ;
69232   unsigned int val3 ;
69233   int ecode3 = 0 ;
69234   PyObject * obj0 = 0 ;
69235   PyObject * obj1 = 0 ;
69236   PyObject * obj2 = 0 ;
69237   char * kwnames[] = {
69238     (char *)"self",  (char *)"i",  (char *)"option",  NULL
69239   };
69240 
69241   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:fold_compound_hc_add_up", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
69242   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
69243   if (!SWIG_IsOK(res1)) {
69244     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_hc_add_up" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
69245   }
69246   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
69247   ecode2 = SWIG_AsVal_int(obj1, &val2);
69248   if (!SWIG_IsOK(ecode2)) {
69249     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_hc_add_up" "', argument " "2"" of type '" "int""'");
69250   }
69251   arg2 = static_cast< int >(val2);
69252   if (obj2) {
69253     ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
69254     if (!SWIG_IsOK(ecode3)) {
69255       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_hc_add_up" "', argument " "3"" of type '" "unsigned int""'");
69256     }
69257     arg3 = static_cast< unsigned int >(val3);
69258   }
69259   {
69260     try {
69261       vrna_fold_compound_t_hc_add_up(arg1,arg2,arg3);
69262     } catch (const std::exception& e) {
69263       SWIG_exception(SWIG_RuntimeError, e.what());
69264     }
69265   }
69266   resultobj = SWIG_Py_Void();
69267   return resultobj;
69268 fail:
69269   return NULL;
69270 }
69271 
69272 
_wrap_fold_compound_hc_add_bp_nonspecific(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)69273 SWIGINTERN PyObject *_wrap_fold_compound_hc_add_bp_nonspecific(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
69274   PyObject *resultobj = 0;
69275   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
69276   int arg2 ;
69277   int arg3 ;
69278   unsigned int arg4 = (unsigned int) VRNA_CONSTRAINT_CONTEXT_ALL_LOOPS ;
69279   void *argp1 = 0 ;
69280   int res1 = 0 ;
69281   int val2 ;
69282   int ecode2 = 0 ;
69283   int val3 ;
69284   int ecode3 = 0 ;
69285   unsigned int val4 ;
69286   int ecode4 = 0 ;
69287   PyObject * obj0 = 0 ;
69288   PyObject * obj1 = 0 ;
69289   PyObject * obj2 = 0 ;
69290   PyObject * obj3 = 0 ;
69291   char * kwnames[] = {
69292     (char *)"self",  (char *)"i",  (char *)"d",  (char *)"option",  NULL
69293   };
69294 
69295   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO|O:fold_compound_hc_add_bp_nonspecific", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
69296   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
69297   if (!SWIG_IsOK(res1)) {
69298     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_hc_add_bp_nonspecific" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
69299   }
69300   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
69301   ecode2 = SWIG_AsVal_int(obj1, &val2);
69302   if (!SWIG_IsOK(ecode2)) {
69303     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_hc_add_bp_nonspecific" "', argument " "2"" of type '" "int""'");
69304   }
69305   arg2 = static_cast< int >(val2);
69306   ecode3 = SWIG_AsVal_int(obj2, &val3);
69307   if (!SWIG_IsOK(ecode3)) {
69308     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_hc_add_bp_nonspecific" "', argument " "3"" of type '" "int""'");
69309   }
69310   arg3 = static_cast< int >(val3);
69311   if (obj3) {
69312     ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
69313     if (!SWIG_IsOK(ecode4)) {
69314       SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_hc_add_bp_nonspecific" "', argument " "4"" of type '" "unsigned int""'");
69315     }
69316     arg4 = static_cast< unsigned int >(val4);
69317   }
69318   {
69319     try {
69320       vrna_fold_compound_t_hc_add_bp_nonspecific(arg1,arg2,arg3,arg4);
69321     } catch (const std::exception& e) {
69322       SWIG_exception(SWIG_RuntimeError, e.what());
69323     }
69324   }
69325   resultobj = SWIG_Py_Void();
69326   return resultobj;
69327 fail:
69328   return NULL;
69329 }
69330 
69331 
_wrap_fold_compound_hc_add_bp(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)69332 SWIGINTERN PyObject *_wrap_fold_compound_hc_add_bp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
69333   PyObject *resultobj = 0;
69334   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
69335   int arg2 ;
69336   int arg3 ;
69337   unsigned int arg4 = (unsigned int) VRNA_CONSTRAINT_CONTEXT_ALL_LOOPS ;
69338   void *argp1 = 0 ;
69339   int res1 = 0 ;
69340   int val2 ;
69341   int ecode2 = 0 ;
69342   int val3 ;
69343   int ecode3 = 0 ;
69344   unsigned int val4 ;
69345   int ecode4 = 0 ;
69346   PyObject * obj0 = 0 ;
69347   PyObject * obj1 = 0 ;
69348   PyObject * obj2 = 0 ;
69349   PyObject * obj3 = 0 ;
69350   char * kwnames[] = {
69351     (char *)"self",  (char *)"i",  (char *)"j",  (char *)"option",  NULL
69352   };
69353 
69354   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO|O:fold_compound_hc_add_bp", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
69355   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
69356   if (!SWIG_IsOK(res1)) {
69357     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_hc_add_bp" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
69358   }
69359   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
69360   ecode2 = SWIG_AsVal_int(obj1, &val2);
69361   if (!SWIG_IsOK(ecode2)) {
69362     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_hc_add_bp" "', argument " "2"" of type '" "int""'");
69363   }
69364   arg2 = static_cast< int >(val2);
69365   ecode3 = SWIG_AsVal_int(obj2, &val3);
69366   if (!SWIG_IsOK(ecode3)) {
69367     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_hc_add_bp" "', argument " "3"" of type '" "int""'");
69368   }
69369   arg3 = static_cast< int >(val3);
69370   if (obj3) {
69371     ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
69372     if (!SWIG_IsOK(ecode4)) {
69373       SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_hc_add_bp" "', argument " "4"" of type '" "unsigned int""'");
69374     }
69375     arg4 = static_cast< unsigned int >(val4);
69376   }
69377   {
69378     try {
69379       vrna_fold_compound_t_hc_add_bp(arg1,arg2,arg3,arg4);
69380     } catch (const std::exception& e) {
69381       SWIG_exception(SWIG_RuntimeError, e.what());
69382     }
69383   }
69384   resultobj = SWIG_Py_Void();
69385   return resultobj;
69386 fail:
69387   return NULL;
69388 }
69389 
69390 
_wrap_fold_compound_hc_add_from_db(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)69391 SWIGINTERN PyObject *_wrap_fold_compound_hc_add_from_db(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
69392   PyObject *resultobj = 0;
69393   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
69394   char *arg2 = (char *) 0 ;
69395   unsigned int arg3 = (unsigned int) VRNA_CONSTRAINT_DB_DEFAULT ;
69396   void *argp1 = 0 ;
69397   int res1 = 0 ;
69398   int res2 ;
69399   char *buf2 = 0 ;
69400   int alloc2 = 0 ;
69401   unsigned int val3 ;
69402   int ecode3 = 0 ;
69403   PyObject * obj0 = 0 ;
69404   PyObject * obj1 = 0 ;
69405   PyObject * obj2 = 0 ;
69406   char * kwnames[] = {
69407     (char *)"self",  (char *)"constraint",  (char *)"options",  NULL
69408   };
69409   int result;
69410 
69411   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:fold_compound_hc_add_from_db", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
69412   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
69413   if (!SWIG_IsOK(res1)) {
69414     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_hc_add_from_db" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
69415   }
69416   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
69417   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
69418   if (!SWIG_IsOK(res2)) {
69419     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fold_compound_hc_add_from_db" "', argument " "2"" of type '" "char const *""'");
69420   }
69421   arg2 = reinterpret_cast< char * >(buf2);
69422   if (obj2) {
69423     ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
69424     if (!SWIG_IsOK(ecode3)) {
69425       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_hc_add_from_db" "', argument " "3"" of type '" "unsigned int""'");
69426     }
69427     arg3 = static_cast< unsigned int >(val3);
69428   }
69429   {
69430     try {
69431       result = (int)vrna_fold_compound_t_hc_add_from_db(arg1,(char const *)arg2,arg3);
69432     } catch (const std::exception& e) {
69433       SWIG_exception(SWIG_RuntimeError, e.what());
69434     }
69435   }
69436   resultobj = SWIG_From_int(static_cast< int >(result));
69437   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
69438   return resultobj;
69439 fail:
69440   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
69441   return NULL;
69442 }
69443 
69444 
_wrap_fold_compound_sc_remove(PyObject * SWIGUNUSEDPARM (self),PyObject * args)69445 SWIGINTERN PyObject *_wrap_fold_compound_sc_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
69446   PyObject *resultobj = 0;
69447   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
69448   void *argp1 = 0 ;
69449   int res1 = 0 ;
69450   PyObject *swig_obj[1] ;
69451 
69452   if (!args) SWIG_fail;
69453   swig_obj[0] = args;
69454   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
69455   if (!SWIG_IsOK(res1)) {
69456     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_remove" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
69457   }
69458   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
69459   {
69460     try {
69461       vrna_fold_compound_t_sc_remove(arg1);
69462     } catch (const std::exception& e) {
69463       SWIG_exception(SWIG_RuntimeError, e.what());
69464     }
69465   }
69466   resultobj = SWIG_Py_Void();
69467   return resultobj;
69468 fail:
69469   return NULL;
69470 }
69471 
69472 
_wrap_fold_compound_sc_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)69473 SWIGINTERN PyObject *_wrap_fold_compound_sc_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
69474   PyObject *resultobj = 0;
69475   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
69476   void *argp1 = 0 ;
69477   int res1 = 0 ;
69478   PyObject *swig_obj[1] ;
69479 
69480   if (!args) SWIG_fail;
69481   swig_obj[0] = args;
69482   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
69483   if (!SWIG_IsOK(res1)) {
69484     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_init" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
69485   }
69486   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
69487   {
69488     try {
69489       vrna_fold_compound_t_sc_init(arg1);
69490     } catch (const std::exception& e) {
69491       SWIG_exception(SWIG_RuntimeError, e.what());
69492     }
69493   }
69494   resultobj = SWIG_Py_Void();
69495   return resultobj;
69496 fail:
69497   return NULL;
69498 }
69499 
69500 
_wrap_fold_compound_sc_add_up__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)69501 SWIGINTERN PyObject *_wrap_fold_compound_sc_add_up__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
69502   PyObject *resultobj = 0;
69503   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
69504   int arg2 ;
69505   double arg3 ;
69506   unsigned int arg4 = (unsigned int) VRNA_OPTION_DEFAULT ;
69507   void *argp1 = 0 ;
69508   int res1 = 0 ;
69509   int val2 ;
69510   int ecode2 = 0 ;
69511   double val3 ;
69512   int ecode3 = 0 ;
69513   unsigned int val4 ;
69514   int ecode4 = 0 ;
69515   int result;
69516 
69517   if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
69518   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
69519   if (!SWIG_IsOK(res1)) {
69520     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_add_up" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
69521   }
69522   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
69523   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
69524   if (!SWIG_IsOK(ecode2)) {
69525     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_sc_add_up" "', argument " "2"" of type '" "int""'");
69526   }
69527   arg2 = static_cast< int >(val2);
69528   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
69529   if (!SWIG_IsOK(ecode3)) {
69530     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_sc_add_up" "', argument " "3"" of type '" "double""'");
69531   }
69532   arg3 = static_cast< double >(val3);
69533   if (swig_obj[3]) {
69534     ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
69535     if (!SWIG_IsOK(ecode4)) {
69536       SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_sc_add_up" "', argument " "4"" of type '" "unsigned int""'");
69537     }
69538     arg4 = static_cast< unsigned int >(val4);
69539   }
69540   {
69541     try {
69542       result = (int)vrna_fold_compound_t_sc_add_up__SWIG_0(arg1,arg2,arg3,arg4);
69543     } catch (const std::exception& e) {
69544       SWIG_exception(SWIG_RuntimeError, e.what());
69545     }
69546   }
69547   resultobj = SWIG_From_int(static_cast< int >(result));
69548   return resultobj;
69549 fail:
69550   return NULL;
69551 }
69552 
69553 
_wrap_fold_compound_sc_add_up__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)69554 SWIGINTERN PyObject *_wrap_fold_compound_sc_add_up__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
69555   PyObject *resultobj = 0;
69556   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
69557   std::vector< double,std::allocator< double > > arg2 ;
69558   unsigned int arg3 = (unsigned int) VRNA_OPTION_DEFAULT ;
69559   void *argp1 = 0 ;
69560   int res1 = 0 ;
69561   unsigned int val3 ;
69562   int ecode3 = 0 ;
69563   int result;
69564 
69565   if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
69566   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
69567   if (!SWIG_IsOK(res1)) {
69568     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_add_up" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
69569   }
69570   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
69571   {
69572     std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
69573     int res = swig::asptr(swig_obj[1], &ptr);
69574     if (!SWIG_IsOK(res) || !ptr) {
69575       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_sc_add_up" "', argument " "2"" of type '" "std::vector< double,std::allocator< double > >""'");
69576     }
69577     arg2 = *ptr;
69578     if (SWIG_IsNewObj(res)) delete ptr;
69579   }
69580   if (swig_obj[2]) {
69581     ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
69582     if (!SWIG_IsOK(ecode3)) {
69583       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_sc_add_up" "', argument " "3"" of type '" "unsigned int""'");
69584     }
69585     arg3 = static_cast< unsigned int >(val3);
69586   }
69587   {
69588     try {
69589       result = (int)vrna_fold_compound_t_sc_add_up__SWIG_1(arg1,arg2,arg3);
69590     } catch (const std::exception& e) {
69591       SWIG_exception(SWIG_RuntimeError, e.what());
69592     }
69593   }
69594   resultobj = SWIG_From_int(static_cast< int >(result));
69595   return resultobj;
69596 fail:
69597   return NULL;
69598 }
69599 
69600 
_wrap_fold_compound_sc_add_up(PyObject * self,PyObject * args)69601 SWIGINTERN PyObject *_wrap_fold_compound_sc_add_up(PyObject *self, PyObject *args) {
69602   Py_ssize_t argc;
69603   PyObject *argv[5] = {
69604     0
69605   };
69606 
69607   if (!(argc = SWIG_Python_UnpackTuple(args, "fold_compound_sc_add_up", 0, 4, argv))) SWIG_fail;
69608   --argc;
69609   if ((argc >= 2) && (argc <= 3)) {
69610     int _v;
69611     void *vptr = 0;
69612     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
69613     _v = SWIG_CheckState(res);
69614     if (_v) {
69615       int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
69616       _v = SWIG_CheckState(res);
69617       if (_v) {
69618         if (argc <= 2) {
69619           return _wrap_fold_compound_sc_add_up__SWIG_1(self, argc, argv);
69620         }
69621         {
69622           int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
69623           _v = SWIG_CheckState(res);
69624         }
69625         if (_v) {
69626           return _wrap_fold_compound_sc_add_up__SWIG_1(self, argc, argv);
69627         }
69628       }
69629     }
69630   }
69631   if ((argc >= 3) && (argc <= 4)) {
69632     int _v;
69633     void *vptr = 0;
69634     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
69635     _v = SWIG_CheckState(res);
69636     if (_v) {
69637       {
69638         int res = SWIG_AsVal_int(argv[1], NULL);
69639         _v = SWIG_CheckState(res);
69640       }
69641       if (_v) {
69642         {
69643           int res = SWIG_AsVal_double(argv[2], NULL);
69644           _v = SWIG_CheckState(res);
69645         }
69646         if (_v) {
69647           if (argc <= 3) {
69648             return _wrap_fold_compound_sc_add_up__SWIG_0(self, argc, argv);
69649           }
69650           {
69651             int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
69652             _v = SWIG_CheckState(res);
69653           }
69654           if (_v) {
69655             return _wrap_fold_compound_sc_add_up__SWIG_0(self, argc, argv);
69656           }
69657         }
69658       }
69659     }
69660   }
69661 
69662 fail:
69663   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'fold_compound_sc_add_up'.\n"
69664     "  Possible C/C++ prototypes are:\n"
69665     "    vrna_fold_compound_t::sc_add_up(int,double,unsigned int)\n"
69666     "    vrna_fold_compound_t::sc_add_up(std::vector< double,std::allocator< double > >,unsigned int)\n");
69667   return 0;
69668 }
69669 
69670 
_wrap_fold_compound_sc_add_bp__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)69671 SWIGINTERN PyObject *_wrap_fold_compound_sc_add_bp__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
69672   PyObject *resultobj = 0;
69673   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
69674   int arg2 ;
69675   int arg3 ;
69676   double arg4 ;
69677   unsigned int arg5 = (unsigned int) VRNA_OPTION_DEFAULT ;
69678   void *argp1 = 0 ;
69679   int res1 = 0 ;
69680   int val2 ;
69681   int ecode2 = 0 ;
69682   int val3 ;
69683   int ecode3 = 0 ;
69684   double val4 ;
69685   int ecode4 = 0 ;
69686   unsigned int val5 ;
69687   int ecode5 = 0 ;
69688   int result;
69689 
69690   if ((nobjs < 4) || (nobjs > 5)) SWIG_fail;
69691   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
69692   if (!SWIG_IsOK(res1)) {
69693     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_add_bp" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
69694   }
69695   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
69696   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
69697   if (!SWIG_IsOK(ecode2)) {
69698     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_sc_add_bp" "', argument " "2"" of type '" "int""'");
69699   }
69700   arg2 = static_cast< int >(val2);
69701   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
69702   if (!SWIG_IsOK(ecode3)) {
69703     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_sc_add_bp" "', argument " "3"" of type '" "int""'");
69704   }
69705   arg3 = static_cast< int >(val3);
69706   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
69707   if (!SWIG_IsOK(ecode4)) {
69708     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_sc_add_bp" "', argument " "4"" of type '" "double""'");
69709   }
69710   arg4 = static_cast< double >(val4);
69711   if (swig_obj[4]) {
69712     ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5);
69713     if (!SWIG_IsOK(ecode5)) {
69714       SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "fold_compound_sc_add_bp" "', argument " "5"" of type '" "unsigned int""'");
69715     }
69716     arg5 = static_cast< unsigned int >(val5);
69717   }
69718   {
69719     try {
69720       result = (int)vrna_fold_compound_t_sc_add_bp__SWIG_0(arg1,arg2,arg3,arg4,arg5);
69721     } catch (const std::exception& e) {
69722       SWIG_exception(SWIG_RuntimeError, e.what());
69723     }
69724   }
69725   resultobj = SWIG_From_int(static_cast< int >(result));
69726   return resultobj;
69727 fail:
69728   return NULL;
69729 }
69730 
69731 
_wrap_fold_compound_sc_add_bp__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)69732 SWIGINTERN PyObject *_wrap_fold_compound_sc_add_bp__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
69733   PyObject *resultobj = 0;
69734   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
69735   std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > arg2 ;
69736   unsigned int arg3 = (unsigned int) VRNA_OPTION_DEFAULT ;
69737   void *argp1 = 0 ;
69738   int res1 = 0 ;
69739   unsigned int val3 ;
69740   int ecode3 = 0 ;
69741   int result;
69742 
69743   if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
69744   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
69745   if (!SWIG_IsOK(res1)) {
69746     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_add_bp" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
69747   }
69748   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
69749   {
69750     std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *ptr = (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *)0;
69751     int res = swig::asptr(swig_obj[1], &ptr);
69752     if (!SWIG_IsOK(res) || !ptr) {
69753       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_sc_add_bp" "', argument " "2"" of type '" "std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >""'");
69754     }
69755     arg2 = *ptr;
69756     if (SWIG_IsNewObj(res)) delete ptr;
69757   }
69758   if (swig_obj[2]) {
69759     ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
69760     if (!SWIG_IsOK(ecode3)) {
69761       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_sc_add_bp" "', argument " "3"" of type '" "unsigned int""'");
69762     }
69763     arg3 = static_cast< unsigned int >(val3);
69764   }
69765   {
69766     try {
69767       result = (int)vrna_fold_compound_t_sc_add_bp__SWIG_1(arg1,arg2,arg3);
69768     } catch (const std::exception& e) {
69769       SWIG_exception(SWIG_RuntimeError, e.what());
69770     }
69771   }
69772   resultobj = SWIG_From_int(static_cast< int >(result));
69773   return resultobj;
69774 fail:
69775   return NULL;
69776 }
69777 
69778 
_wrap_fold_compound_sc_add_bp(PyObject * self,PyObject * args)69779 SWIGINTERN PyObject *_wrap_fold_compound_sc_add_bp(PyObject *self, PyObject *args) {
69780   Py_ssize_t argc;
69781   PyObject *argv[6] = {
69782     0
69783   };
69784 
69785   if (!(argc = SWIG_Python_UnpackTuple(args, "fold_compound_sc_add_bp", 0, 5, argv))) SWIG_fail;
69786   --argc;
69787   if ((argc >= 2) && (argc <= 3)) {
69788     int _v;
69789     void *vptr = 0;
69790     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
69791     _v = SWIG_CheckState(res);
69792     if (_v) {
69793       int res = swig::asptr(argv[1], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
69794       _v = SWIG_CheckState(res);
69795       if (_v) {
69796         if (argc <= 2) {
69797           return _wrap_fold_compound_sc_add_bp__SWIG_1(self, argc, argv);
69798         }
69799         {
69800           int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
69801           _v = SWIG_CheckState(res);
69802         }
69803         if (_v) {
69804           return _wrap_fold_compound_sc_add_bp__SWIG_1(self, argc, argv);
69805         }
69806       }
69807     }
69808   }
69809   if ((argc >= 4) && (argc <= 5)) {
69810     int _v;
69811     void *vptr = 0;
69812     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
69813     _v = SWIG_CheckState(res);
69814     if (_v) {
69815       {
69816         int res = SWIG_AsVal_int(argv[1], NULL);
69817         _v = SWIG_CheckState(res);
69818       }
69819       if (_v) {
69820         {
69821           int res = SWIG_AsVal_int(argv[2], NULL);
69822           _v = SWIG_CheckState(res);
69823         }
69824         if (_v) {
69825           {
69826             int res = SWIG_AsVal_double(argv[3], NULL);
69827             _v = SWIG_CheckState(res);
69828           }
69829           if (_v) {
69830             if (argc <= 4) {
69831               return _wrap_fold_compound_sc_add_bp__SWIG_0(self, argc, argv);
69832             }
69833             {
69834               int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL);
69835               _v = SWIG_CheckState(res);
69836             }
69837             if (_v) {
69838               return _wrap_fold_compound_sc_add_bp__SWIG_0(self, argc, argv);
69839             }
69840           }
69841         }
69842       }
69843     }
69844   }
69845 
69846 fail:
69847   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'fold_compound_sc_add_bp'.\n"
69848     "  Possible C/C++ prototypes are:\n"
69849     "    vrna_fold_compound_t::sc_add_bp(int,int,double,unsigned int)\n"
69850     "    vrna_fold_compound_t::sc_add_bp(std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >,unsigned int)\n");
69851   return 0;
69852 }
69853 
69854 
_wrap_fold_compound_sc_set_bp(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)69855 SWIGINTERN PyObject *_wrap_fold_compound_sc_set_bp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
69856   PyObject *resultobj = 0;
69857   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
69858   std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > arg2 ;
69859   unsigned int arg3 = (unsigned int) VRNA_OPTION_DEFAULT ;
69860   void *argp1 = 0 ;
69861   int res1 = 0 ;
69862   unsigned int val3 ;
69863   int ecode3 = 0 ;
69864   PyObject * obj0 = 0 ;
69865   PyObject * obj1 = 0 ;
69866   PyObject * obj2 = 0 ;
69867   char * kwnames[] = {
69868     (char *)"self",  (char *)"constraints",  (char *)"options",  NULL
69869   };
69870   int result;
69871 
69872   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:fold_compound_sc_set_bp", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
69873   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
69874   if (!SWIG_IsOK(res1)) {
69875     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_set_bp" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
69876   }
69877   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
69878   {
69879     std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *ptr = (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *)0;
69880     int res = swig::asptr(obj1, &ptr);
69881     if (!SWIG_IsOK(res) || !ptr) {
69882       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_sc_set_bp" "', argument " "2"" of type '" "std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >""'");
69883     }
69884     arg2 = *ptr;
69885     if (SWIG_IsNewObj(res)) delete ptr;
69886   }
69887   if (obj2) {
69888     ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
69889     if (!SWIG_IsOK(ecode3)) {
69890       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_sc_set_bp" "', argument " "3"" of type '" "unsigned int""'");
69891     }
69892     arg3 = static_cast< unsigned int >(val3);
69893   }
69894   {
69895     try {
69896       result = (int)vrna_fold_compound_t_sc_set_bp(arg1,arg2,arg3);
69897     } catch (const std::exception& e) {
69898       SWIG_exception(SWIG_RuntimeError, e.what());
69899     }
69900   }
69901   resultobj = SWIG_From_int(static_cast< int >(result));
69902   return resultobj;
69903 fail:
69904   return NULL;
69905 }
69906 
69907 
_wrap_fold_compound_sc_set_up(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)69908 SWIGINTERN PyObject *_wrap_fold_compound_sc_set_up(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
69909   PyObject *resultobj = 0;
69910   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
69911   std::vector< double,std::allocator< double > > arg2 ;
69912   unsigned int arg3 = (unsigned int) VRNA_OPTION_DEFAULT ;
69913   void *argp1 = 0 ;
69914   int res1 = 0 ;
69915   unsigned int val3 ;
69916   int ecode3 = 0 ;
69917   PyObject * obj0 = 0 ;
69918   PyObject * obj1 = 0 ;
69919   PyObject * obj2 = 0 ;
69920   char * kwnames[] = {
69921     (char *)"self",  (char *)"constraints",  (char *)"options",  NULL
69922   };
69923   int result;
69924 
69925   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:fold_compound_sc_set_up", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
69926   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
69927   if (!SWIG_IsOK(res1)) {
69928     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_set_up" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
69929   }
69930   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
69931   {
69932     std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
69933     int res = swig::asptr(obj1, &ptr);
69934     if (!SWIG_IsOK(res) || !ptr) {
69935       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_sc_set_up" "', argument " "2"" of type '" "std::vector< double,std::allocator< double > >""'");
69936     }
69937     arg2 = *ptr;
69938     if (SWIG_IsNewObj(res)) delete ptr;
69939   }
69940   if (obj2) {
69941     ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
69942     if (!SWIG_IsOK(ecode3)) {
69943       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_sc_set_up" "', argument " "3"" of type '" "unsigned int""'");
69944     }
69945     arg3 = static_cast< unsigned int >(val3);
69946   }
69947   {
69948     try {
69949       result = (int)vrna_fold_compound_t_sc_set_up(arg1,arg2,arg3);
69950     } catch (const std::exception& e) {
69951       SWIG_exception(SWIG_RuntimeError, e.what());
69952     }
69953   }
69954   resultobj = SWIG_From_int(static_cast< int >(result));
69955   return resultobj;
69956 fail:
69957   return NULL;
69958 }
69959 
69960 
_wrap_fold_compound_sc_set_stack__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)69961 SWIGINTERN PyObject *_wrap_fold_compound_sc_set_stack__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
69962   PyObject *resultobj = 0;
69963   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
69964   std::vector< double,std::allocator< double > > arg2 ;
69965   unsigned int arg3 = (unsigned int) VRNA_OPTION_DEFAULT ;
69966   void *argp1 = 0 ;
69967   int res1 = 0 ;
69968   unsigned int val3 ;
69969   int ecode3 = 0 ;
69970   int result;
69971 
69972   if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
69973   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
69974   if (!SWIG_IsOK(res1)) {
69975     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_set_stack" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
69976   }
69977   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
69978   {
69979     std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
69980     int res = swig::asptr(swig_obj[1], &ptr);
69981     if (!SWIG_IsOK(res) || !ptr) {
69982       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_sc_set_stack" "', argument " "2"" of type '" "std::vector< double,std::allocator< double > >""'");
69983     }
69984     arg2 = *ptr;
69985     if (SWIG_IsNewObj(res)) delete ptr;
69986   }
69987   if (swig_obj[2]) {
69988     ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
69989     if (!SWIG_IsOK(ecode3)) {
69990       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_sc_set_stack" "', argument " "3"" of type '" "unsigned int""'");
69991     }
69992     arg3 = static_cast< unsigned int >(val3);
69993   }
69994   {
69995     try {
69996       result = (int)vrna_fold_compound_t_sc_set_stack__SWIG_0(arg1,arg2,arg3);
69997     } catch (const std::exception& e) {
69998       SWIG_exception(SWIG_RuntimeError, e.what());
69999     }
70000   }
70001   resultobj = SWIG_From_int(static_cast< int >(result));
70002   return resultobj;
70003 fail:
70004   return NULL;
70005 }
70006 
70007 
_wrap_fold_compound_sc_set_stack__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)70008 SWIGINTERN PyObject *_wrap_fold_compound_sc_set_stack__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
70009   PyObject *resultobj = 0;
70010   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
70011   std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > arg2 ;
70012   unsigned int arg3 = (unsigned int) VRNA_OPTION_DEFAULT ;
70013   void *argp1 = 0 ;
70014   int res1 = 0 ;
70015   unsigned int val3 ;
70016   int ecode3 = 0 ;
70017   int result;
70018 
70019   if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
70020   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
70021   if (!SWIG_IsOK(res1)) {
70022     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_set_stack" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
70023   }
70024   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
70025   {
70026     std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *ptr = (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *)0;
70027     int res = swig::asptr(swig_obj[1], &ptr);
70028     if (!SWIG_IsOK(res) || !ptr) {
70029       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_sc_set_stack" "', argument " "2"" of type '" "std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >""'");
70030     }
70031     arg2 = *ptr;
70032     if (SWIG_IsNewObj(res)) delete ptr;
70033   }
70034   if (swig_obj[2]) {
70035     ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
70036     if (!SWIG_IsOK(ecode3)) {
70037       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_sc_set_stack" "', argument " "3"" of type '" "unsigned int""'");
70038     }
70039     arg3 = static_cast< unsigned int >(val3);
70040   }
70041   {
70042     try {
70043       result = (int)vrna_fold_compound_t_sc_set_stack__SWIG_1(arg1,arg2,arg3);
70044     } catch (const std::exception& e) {
70045       SWIG_exception(SWIG_RuntimeError, e.what());
70046     }
70047   }
70048   resultobj = SWIG_From_int(static_cast< int >(result));
70049   return resultobj;
70050 fail:
70051   return NULL;
70052 }
70053 
70054 
_wrap_fold_compound_sc_set_stack(PyObject * self,PyObject * args)70055 SWIGINTERN PyObject *_wrap_fold_compound_sc_set_stack(PyObject *self, PyObject *args) {
70056   Py_ssize_t argc;
70057   PyObject *argv[4] = {
70058     0
70059   };
70060 
70061   if (!(argc = SWIG_Python_UnpackTuple(args, "fold_compound_sc_set_stack", 0, 3, argv))) SWIG_fail;
70062   --argc;
70063   if ((argc >= 2) && (argc <= 3)) {
70064     int _v;
70065     void *vptr = 0;
70066     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
70067     _v = SWIG_CheckState(res);
70068     if (_v) {
70069       int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
70070       _v = SWIG_CheckState(res);
70071       if (_v) {
70072         if (argc <= 2) {
70073           return _wrap_fold_compound_sc_set_stack__SWIG_0(self, argc, argv);
70074         }
70075         {
70076           int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
70077           _v = SWIG_CheckState(res);
70078         }
70079         if (_v) {
70080           return _wrap_fold_compound_sc_set_stack__SWIG_0(self, argc, argv);
70081         }
70082       }
70083     }
70084   }
70085   if ((argc >= 2) && (argc <= 3)) {
70086     int _v;
70087     void *vptr = 0;
70088     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
70089     _v = SWIG_CheckState(res);
70090     if (_v) {
70091       int res = swig::asptr(argv[1], (std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >**)(0));
70092       _v = SWIG_CheckState(res);
70093       if (_v) {
70094         if (argc <= 2) {
70095           return _wrap_fold_compound_sc_set_stack__SWIG_1(self, argc, argv);
70096         }
70097         {
70098           int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
70099           _v = SWIG_CheckState(res);
70100         }
70101         if (_v) {
70102           return _wrap_fold_compound_sc_set_stack__SWIG_1(self, argc, argv);
70103         }
70104       }
70105     }
70106   }
70107 
70108 fail:
70109   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'fold_compound_sc_set_stack'.\n"
70110     "  Possible C/C++ prototypes are:\n"
70111     "    vrna_fold_compound_t::sc_set_stack(std::vector< double,std::allocator< double > >,unsigned int)\n"
70112     "    vrna_fold_compound_t::sc_set_stack(std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >,unsigned int)\n");
70113   return 0;
70114 }
70115 
70116 
_wrap_fold_compound_sc_add_stack__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)70117 SWIGINTERN PyObject *_wrap_fold_compound_sc_add_stack__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
70118   PyObject *resultobj = 0;
70119   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
70120   int arg2 ;
70121   double arg3 ;
70122   unsigned int arg4 = (unsigned int) VRNA_OPTION_DEFAULT ;
70123   void *argp1 = 0 ;
70124   int res1 = 0 ;
70125   int val2 ;
70126   int ecode2 = 0 ;
70127   double val3 ;
70128   int ecode3 = 0 ;
70129   unsigned int val4 ;
70130   int ecode4 = 0 ;
70131   int result;
70132 
70133   if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
70134   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
70135   if (!SWIG_IsOK(res1)) {
70136     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_add_stack" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
70137   }
70138   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
70139   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
70140   if (!SWIG_IsOK(ecode2)) {
70141     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_sc_add_stack" "', argument " "2"" of type '" "int""'");
70142   }
70143   arg2 = static_cast< int >(val2);
70144   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70145   if (!SWIG_IsOK(ecode3)) {
70146     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_sc_add_stack" "', argument " "3"" of type '" "double""'");
70147   }
70148   arg3 = static_cast< double >(val3);
70149   if (swig_obj[3]) {
70150     ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
70151     if (!SWIG_IsOK(ecode4)) {
70152       SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_sc_add_stack" "', argument " "4"" of type '" "unsigned int""'");
70153     }
70154     arg4 = static_cast< unsigned int >(val4);
70155   }
70156   {
70157     try {
70158       result = (int)vrna_fold_compound_t_sc_add_stack__SWIG_0(arg1,arg2,arg3,arg4);
70159     } catch (const std::exception& e) {
70160       SWIG_exception(SWIG_RuntimeError, e.what());
70161     }
70162   }
70163   resultobj = SWIG_From_int(static_cast< int >(result));
70164   return resultobj;
70165 fail:
70166   return NULL;
70167 }
70168 
70169 
_wrap_fold_compound_sc_add_stack__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)70170 SWIGINTERN PyObject *_wrap_fold_compound_sc_add_stack__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
70171   PyObject *resultobj = 0;
70172   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
70173   int arg2 ;
70174   std::vector< double,std::allocator< double > > arg3 ;
70175   unsigned int arg4 = (unsigned int) VRNA_OPTION_DEFAULT ;
70176   void *argp1 = 0 ;
70177   int res1 = 0 ;
70178   int val2 ;
70179   int ecode2 = 0 ;
70180   unsigned int val4 ;
70181   int ecode4 = 0 ;
70182   int result;
70183 
70184   if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
70185   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
70186   if (!SWIG_IsOK(res1)) {
70187     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_add_stack" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
70188   }
70189   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
70190   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
70191   if (!SWIG_IsOK(ecode2)) {
70192     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_sc_add_stack" "', argument " "2"" of type '" "int""'");
70193   }
70194   arg2 = static_cast< int >(val2);
70195   {
70196     std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
70197     int res = swig::asptr(swig_obj[2], &ptr);
70198     if (!SWIG_IsOK(res) || !ptr) {
70199       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_sc_add_stack" "', argument " "3"" of type '" "std::vector< double,std::allocator< double > >""'");
70200     }
70201     arg3 = *ptr;
70202     if (SWIG_IsNewObj(res)) delete ptr;
70203   }
70204   if (swig_obj[3]) {
70205     ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
70206     if (!SWIG_IsOK(ecode4)) {
70207       SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_sc_add_stack" "', argument " "4"" of type '" "unsigned int""'");
70208     }
70209     arg4 = static_cast< unsigned int >(val4);
70210   }
70211   {
70212     try {
70213       result = (int)vrna_fold_compound_t_sc_add_stack__SWIG_1(arg1,arg2,arg3,arg4);
70214     } catch (const std::exception& e) {
70215       SWIG_exception(SWIG_RuntimeError, e.what());
70216     }
70217   }
70218   resultobj = SWIG_From_int(static_cast< int >(result));
70219   return resultobj;
70220 fail:
70221   return NULL;
70222 }
70223 
70224 
_wrap_fold_compound_sc_add_stack(PyObject * self,PyObject * args)70225 SWIGINTERN PyObject *_wrap_fold_compound_sc_add_stack(PyObject *self, PyObject *args) {
70226   Py_ssize_t argc;
70227   PyObject *argv[5] = {
70228     0
70229   };
70230 
70231   if (!(argc = SWIG_Python_UnpackTuple(args, "fold_compound_sc_add_stack", 0, 4, argv))) SWIG_fail;
70232   --argc;
70233   if ((argc >= 3) && (argc <= 4)) {
70234     int _v;
70235     void *vptr = 0;
70236     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
70237     _v = SWIG_CheckState(res);
70238     if (_v) {
70239       {
70240         int res = SWIG_AsVal_int(argv[1], NULL);
70241         _v = SWIG_CheckState(res);
70242       }
70243       if (_v) {
70244         {
70245           int res = SWIG_AsVal_double(argv[2], NULL);
70246           _v = SWIG_CheckState(res);
70247         }
70248         if (_v) {
70249           if (argc <= 3) {
70250             return _wrap_fold_compound_sc_add_stack__SWIG_0(self, argc, argv);
70251           }
70252           {
70253             int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
70254             _v = SWIG_CheckState(res);
70255           }
70256           if (_v) {
70257             return _wrap_fold_compound_sc_add_stack__SWIG_0(self, argc, argv);
70258           }
70259         }
70260       }
70261     }
70262   }
70263   if ((argc >= 3) && (argc <= 4)) {
70264     int _v;
70265     void *vptr = 0;
70266     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
70267     _v = SWIG_CheckState(res);
70268     if (_v) {
70269       {
70270         int res = SWIG_AsVal_int(argv[1], NULL);
70271         _v = SWIG_CheckState(res);
70272       }
70273       if (_v) {
70274         int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
70275         _v = SWIG_CheckState(res);
70276         if (_v) {
70277           if (argc <= 3) {
70278             return _wrap_fold_compound_sc_add_stack__SWIG_1(self, argc, argv);
70279           }
70280           {
70281             int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
70282             _v = SWIG_CheckState(res);
70283           }
70284           if (_v) {
70285             return _wrap_fold_compound_sc_add_stack__SWIG_1(self, argc, argv);
70286           }
70287         }
70288       }
70289     }
70290   }
70291 
70292 fail:
70293   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'fold_compound_sc_add_stack'.\n"
70294     "  Possible C/C++ prototypes are:\n"
70295     "    vrna_fold_compound_t::sc_add_stack(int,double,unsigned int)\n"
70296     "    vrna_fold_compound_t::sc_add_stack(int,std::vector< double,std::allocator< double > >,unsigned int)\n");
70297   return 0;
70298 }
70299 
70300 
_wrap_fold_compound_sc_add_SHAPE_deigan(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)70301 SWIGINTERN PyObject *_wrap_fold_compound_sc_add_SHAPE_deigan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70302   PyObject *resultobj = 0;
70303   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
70304   std::vector< double,std::allocator< double > > arg2 ;
70305   double arg3 ;
70306   double arg4 ;
70307   unsigned int arg5 = (unsigned int) VRNA_OPTION_DEFAULT ;
70308   void *argp1 = 0 ;
70309   int res1 = 0 ;
70310   double val3 ;
70311   int ecode3 = 0 ;
70312   double val4 ;
70313   int ecode4 = 0 ;
70314   unsigned int val5 ;
70315   int ecode5 = 0 ;
70316   PyObject * obj0 = 0 ;
70317   PyObject * obj1 = 0 ;
70318   PyObject * obj2 = 0 ;
70319   PyObject * obj3 = 0 ;
70320   PyObject * obj4 = 0 ;
70321   char * kwnames[] = {
70322     (char *)"self",  (char *)"reactivities",  (char *)"m",  (char *)"b",  (char *)"options",  NULL
70323   };
70324   int result;
70325 
70326   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO|O:fold_compound_sc_add_SHAPE_deigan", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
70327   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
70328   if (!SWIG_IsOK(res1)) {
70329     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_add_SHAPE_deigan" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
70330   }
70331   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
70332   {
70333     std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
70334     int res = swig::asptr(obj1, &ptr);
70335     if (!SWIG_IsOK(res) || !ptr) {
70336       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_sc_add_SHAPE_deigan" "', argument " "2"" of type '" "std::vector< double,std::allocator< double > >""'");
70337     }
70338     arg2 = *ptr;
70339     if (SWIG_IsNewObj(res)) delete ptr;
70340   }
70341   ecode3 = SWIG_AsVal_double(obj2, &val3);
70342   if (!SWIG_IsOK(ecode3)) {
70343     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_sc_add_SHAPE_deigan" "', argument " "3"" of type '" "double""'");
70344   }
70345   arg3 = static_cast< double >(val3);
70346   ecode4 = SWIG_AsVal_double(obj3, &val4);
70347   if (!SWIG_IsOK(ecode4)) {
70348     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_sc_add_SHAPE_deigan" "', argument " "4"" of type '" "double""'");
70349   }
70350   arg4 = static_cast< double >(val4);
70351   if (obj4) {
70352     ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
70353     if (!SWIG_IsOK(ecode5)) {
70354       SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "fold_compound_sc_add_SHAPE_deigan" "', argument " "5"" of type '" "unsigned int""'");
70355     }
70356     arg5 = static_cast< unsigned int >(val5);
70357   }
70358   {
70359     try {
70360       result = (int)vrna_fold_compound_t_sc_add_SHAPE_deigan(arg1,arg2,arg3,arg4,arg5);
70361     } catch (const std::exception& e) {
70362       SWIG_exception(SWIG_RuntimeError, e.what());
70363     }
70364   }
70365   resultobj = SWIG_From_int(static_cast< int >(result));
70366   return resultobj;
70367 fail:
70368   return NULL;
70369 }
70370 
70371 
_wrap_fold_compound_sc_add_SHAPE_deigan_ali(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)70372 SWIGINTERN PyObject *_wrap_fold_compound_sc_add_SHAPE_deigan_ali(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70373   PyObject *resultobj = 0;
70374   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
70375   std::vector< std::string,std::allocator< std::string > > arg2 ;
70376   std::vector< int,std::allocator< int > > arg3 ;
70377   double arg4 ;
70378   double arg5 ;
70379   unsigned int arg6 = (unsigned int) VRNA_OPTION_DEFAULT ;
70380   void *argp1 = 0 ;
70381   int res1 = 0 ;
70382   double val4 ;
70383   int ecode4 = 0 ;
70384   double val5 ;
70385   int ecode5 = 0 ;
70386   unsigned int val6 ;
70387   int ecode6 = 0 ;
70388   PyObject * obj0 = 0 ;
70389   PyObject * obj1 = 0 ;
70390   PyObject * obj2 = 0 ;
70391   PyObject * obj3 = 0 ;
70392   PyObject * obj4 = 0 ;
70393   PyObject * obj5 = 0 ;
70394   char * kwnames[] = {
70395     (char *)"self",  (char *)"shape_files",  (char *)"shape_file_association",  (char *)"m",  (char *)"b",  (char *)"options",  NULL
70396   };
70397   int result;
70398 
70399   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO|O:fold_compound_sc_add_SHAPE_deigan_ali", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
70400   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
70401   if (!SWIG_IsOK(res1)) {
70402     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_add_SHAPE_deigan_ali" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
70403   }
70404   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
70405   {
70406     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
70407     int res = swig::asptr(obj1, &ptr);
70408     if (!SWIG_IsOK(res) || !ptr) {
70409       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_sc_add_SHAPE_deigan_ali" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
70410     }
70411     arg2 = *ptr;
70412     if (SWIG_IsNewObj(res)) delete ptr;
70413   }
70414   {
70415     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
70416     int res = swig::asptr(obj2, &ptr);
70417     if (!SWIG_IsOK(res) || !ptr) {
70418       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_sc_add_SHAPE_deigan_ali" "', argument " "3"" of type '" "std::vector< int,std::allocator< int > >""'");
70419     }
70420     arg3 = *ptr;
70421     if (SWIG_IsNewObj(res)) delete ptr;
70422   }
70423   ecode4 = SWIG_AsVal_double(obj3, &val4);
70424   if (!SWIG_IsOK(ecode4)) {
70425     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_sc_add_SHAPE_deigan_ali" "', argument " "4"" of type '" "double""'");
70426   }
70427   arg4 = static_cast< double >(val4);
70428   ecode5 = SWIG_AsVal_double(obj4, &val5);
70429   if (!SWIG_IsOK(ecode5)) {
70430     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "fold_compound_sc_add_SHAPE_deigan_ali" "', argument " "5"" of type '" "double""'");
70431   }
70432   arg5 = static_cast< double >(val5);
70433   if (obj5) {
70434     ecode6 = SWIG_AsVal_unsigned_SS_int(obj5, &val6);
70435     if (!SWIG_IsOK(ecode6)) {
70436       SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "fold_compound_sc_add_SHAPE_deigan_ali" "', argument " "6"" of type '" "unsigned int""'");
70437     }
70438     arg6 = static_cast< unsigned int >(val6);
70439   }
70440   {
70441     try {
70442       result = (int)vrna_fold_compound_t_sc_add_SHAPE_deigan_ali(arg1,arg2,arg3,arg4,arg5,arg6);
70443     } catch (const std::exception& e) {
70444       SWIG_exception(SWIG_RuntimeError, e.what());
70445     }
70446   }
70447   resultobj = SWIG_From_int(static_cast< int >(result));
70448   return resultobj;
70449 fail:
70450   return NULL;
70451 }
70452 
70453 
_wrap_fold_compound_sc_add_SHAPE_zarringhalam(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)70454 SWIGINTERN PyObject *_wrap_fold_compound_sc_add_SHAPE_zarringhalam(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70455   PyObject *resultobj = 0;
70456   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
70457   std::vector< double,std::allocator< double > > arg2 ;
70458   double arg3 ;
70459   double arg4 ;
70460   char *arg5 = (char *) 0 ;
70461   unsigned int arg6 = (unsigned int) VRNA_OPTION_DEFAULT ;
70462   void *argp1 = 0 ;
70463   int res1 = 0 ;
70464   double val3 ;
70465   int ecode3 = 0 ;
70466   double val4 ;
70467   int ecode4 = 0 ;
70468   int res5 ;
70469   char *buf5 = 0 ;
70470   int alloc5 = 0 ;
70471   unsigned int val6 ;
70472   int ecode6 = 0 ;
70473   PyObject * obj0 = 0 ;
70474   PyObject * obj1 = 0 ;
70475   PyObject * obj2 = 0 ;
70476   PyObject * obj3 = 0 ;
70477   PyObject * obj4 = 0 ;
70478   PyObject * obj5 = 0 ;
70479   char * kwnames[] = {
70480     (char *)"self",  (char *)"reactivities",  (char *)"b",  (char *)"default_value",  (char *)"shape_conversion",  (char *)"options",  NULL
70481   };
70482   int result;
70483 
70484   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO|O:fold_compound_sc_add_SHAPE_zarringhalam", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
70485   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
70486   if (!SWIG_IsOK(res1)) {
70487     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_add_SHAPE_zarringhalam" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
70488   }
70489   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
70490   {
70491     std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
70492     int res = swig::asptr(obj1, &ptr);
70493     if (!SWIG_IsOK(res) || !ptr) {
70494       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_sc_add_SHAPE_zarringhalam" "', argument " "2"" of type '" "std::vector< double,std::allocator< double > >""'");
70495     }
70496     arg2 = *ptr;
70497     if (SWIG_IsNewObj(res)) delete ptr;
70498   }
70499   ecode3 = SWIG_AsVal_double(obj2, &val3);
70500   if (!SWIG_IsOK(ecode3)) {
70501     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_sc_add_SHAPE_zarringhalam" "', argument " "3"" of type '" "double""'");
70502   }
70503   arg3 = static_cast< double >(val3);
70504   ecode4 = SWIG_AsVal_double(obj3, &val4);
70505   if (!SWIG_IsOK(ecode4)) {
70506     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_sc_add_SHAPE_zarringhalam" "', argument " "4"" of type '" "double""'");
70507   }
70508   arg4 = static_cast< double >(val4);
70509   res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
70510   if (!SWIG_IsOK(res5)) {
70511     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "fold_compound_sc_add_SHAPE_zarringhalam" "', argument " "5"" of type '" "char const *""'");
70512   }
70513   arg5 = reinterpret_cast< char * >(buf5);
70514   if (obj5) {
70515     ecode6 = SWIG_AsVal_unsigned_SS_int(obj5, &val6);
70516     if (!SWIG_IsOK(ecode6)) {
70517       SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "fold_compound_sc_add_SHAPE_zarringhalam" "', argument " "6"" of type '" "unsigned int""'");
70518     }
70519     arg6 = static_cast< unsigned int >(val6);
70520   }
70521   {
70522     try {
70523       result = (int)vrna_fold_compound_t_sc_add_SHAPE_zarringhalam(arg1,arg2,arg3,arg4,(char const *)arg5,arg6);
70524     } catch (const std::exception& e) {
70525       SWIG_exception(SWIG_RuntimeError, e.what());
70526     }
70527   }
70528   resultobj = SWIG_From_int(static_cast< int >(result));
70529   if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
70530   return resultobj;
70531 fail:
70532   if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
70533   return NULL;
70534 }
70535 
70536 
_wrap_fold_compound_sc_add_hi_motif(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)70537 SWIGINTERN PyObject *_wrap_fold_compound_sc_add_hi_motif(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70538   PyObject *resultobj = 0;
70539   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
70540   char *arg2 = (char *) 0 ;
70541   char *arg3 = (char *) 0 ;
70542   FLT_OR_DBL arg4 ;
70543   unsigned int arg5 = (unsigned int) VRNA_OPTION_DEFAULT ;
70544   void *argp1 = 0 ;
70545   int res1 = 0 ;
70546   int res2 ;
70547   char *buf2 = 0 ;
70548   int alloc2 = 0 ;
70549   int res3 ;
70550   char *buf3 = 0 ;
70551   int alloc3 = 0 ;
70552   double val4 ;
70553   int ecode4 = 0 ;
70554   unsigned int val5 ;
70555   int ecode5 = 0 ;
70556   PyObject * obj0 = 0 ;
70557   PyObject * obj1 = 0 ;
70558   PyObject * obj2 = 0 ;
70559   PyObject * obj3 = 0 ;
70560   PyObject * obj4 = 0 ;
70561   char * kwnames[] = {
70562     (char *)"self",  (char *)"seq",  (char *)"structure",  (char *)"energy",  (char *)"options",  NULL
70563   };
70564   int result;
70565 
70566   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO|O:fold_compound_sc_add_hi_motif", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
70567   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
70568   if (!SWIG_IsOK(res1)) {
70569     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_add_hi_motif" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
70570   }
70571   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
70572   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
70573   if (!SWIG_IsOK(res2)) {
70574     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fold_compound_sc_add_hi_motif" "', argument " "2"" of type '" "char const *""'");
70575   }
70576   arg2 = reinterpret_cast< char * >(buf2);
70577   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
70578   if (!SWIG_IsOK(res3)) {
70579     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "fold_compound_sc_add_hi_motif" "', argument " "3"" of type '" "char const *""'");
70580   }
70581   arg3 = reinterpret_cast< char * >(buf3);
70582   ecode4 = SWIG_AsVal_double(obj3, &val4);
70583   if (!SWIG_IsOK(ecode4)) {
70584     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_sc_add_hi_motif" "', argument " "4"" of type '" "FLT_OR_DBL""'");
70585   }
70586   arg4 = static_cast< FLT_OR_DBL >(val4);
70587   if (obj4) {
70588     ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
70589     if (!SWIG_IsOK(ecode5)) {
70590       SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "fold_compound_sc_add_hi_motif" "', argument " "5"" of type '" "unsigned int""'");
70591     }
70592     arg5 = static_cast< unsigned int >(val5);
70593   }
70594   {
70595     try {
70596       result = (int)vrna_fold_compound_t_sc_add_hi_motif(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5);
70597     } catch (const std::exception& e) {
70598       SWIG_exception(SWIG_RuntimeError, e.what());
70599     }
70600   }
70601   resultobj = SWIG_From_int(static_cast< int >(result));
70602   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
70603   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
70604   return resultobj;
70605 fail:
70606   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
70607   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
70608   return NULL;
70609 }
70610 
70611 
_wrap_fold_compound_eval_structure(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)70612 SWIGINTERN PyObject *_wrap_fold_compound_eval_structure(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70613   PyObject *resultobj = 0;
70614   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
70615   char *arg2 = (char *) 0 ;
70616   void *argp1 = 0 ;
70617   int res1 = 0 ;
70618   int res2 ;
70619   char *buf2 = 0 ;
70620   int alloc2 = 0 ;
70621   PyObject * obj0 = 0 ;
70622   PyObject * obj1 = 0 ;
70623   char * kwnames[] = {
70624     (char *)"self",  (char *)"structure",  NULL
70625   };
70626   float result;
70627 
70628   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:fold_compound_eval_structure", kwnames, &obj0, &obj1)) SWIG_fail;
70629   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
70630   if (!SWIG_IsOK(res1)) {
70631     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_eval_structure" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
70632   }
70633   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
70634   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
70635   if (!SWIG_IsOK(res2)) {
70636     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fold_compound_eval_structure" "', argument " "2"" of type '" "char const *""'");
70637   }
70638   arg2 = reinterpret_cast< char * >(buf2);
70639   {
70640     try {
70641       result = (float)vrna_fold_compound_t_eval_structure(arg1,(char const *)arg2);
70642     } catch (const std::exception& e) {
70643       SWIG_exception(SWIG_RuntimeError, e.what());
70644     }
70645   }
70646   resultobj = SWIG_From_float(static_cast< float >(result));
70647   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
70648   return resultobj;
70649 fail:
70650   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
70651   return NULL;
70652 }
70653 
70654 
_wrap_fold_compound_eval_structure_pt(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)70655 SWIGINTERN PyObject *_wrap_fold_compound_eval_structure_pt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70656   PyObject *resultobj = 0;
70657   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
70658   std::vector< int,std::allocator< int > > arg2 ;
70659   void *argp1 = 0 ;
70660   int res1 = 0 ;
70661   PyObject * obj0 = 0 ;
70662   PyObject * obj1 = 0 ;
70663   char * kwnames[] = {
70664     (char *)"self",  (char *)"pt",  NULL
70665   };
70666   int result;
70667 
70668   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:fold_compound_eval_structure_pt", kwnames, &obj0, &obj1)) SWIG_fail;
70669   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
70670   if (!SWIG_IsOK(res1)) {
70671     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_eval_structure_pt" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
70672   }
70673   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
70674   {
70675     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
70676     int res = swig::asptr(obj1, &ptr);
70677     if (!SWIG_IsOK(res) || !ptr) {
70678       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_eval_structure_pt" "', argument " "2"" of type '" "std::vector< int,std::allocator< int > >""'");
70679     }
70680     arg2 = *ptr;
70681     if (SWIG_IsNewObj(res)) delete ptr;
70682   }
70683   {
70684     try {
70685       result = (int)vrna_fold_compound_t_eval_structure_pt(arg1,arg2);
70686     } catch (const std::exception& e) {
70687       SWIG_exception(SWIG_RuntimeError, e.what());
70688     }
70689   }
70690   resultobj = SWIG_From_int(static_cast< int >(result));
70691   return resultobj;
70692 fail:
70693   return NULL;
70694 }
70695 
70696 
_wrap_fold_compound_eval_structure_verbose(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)70697 SWIGINTERN PyObject *_wrap_fold_compound_eval_structure_verbose(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70698   PyObject *resultobj = 0;
70699   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
70700   char *arg2 = (char *) 0 ;
70701   FILE *arg3 = (FILE *) NULL ;
70702   void *argp1 = 0 ;
70703   int res1 = 0 ;
70704   int res2 ;
70705   char *buf2 = 0 ;
70706   int alloc2 = 0 ;
70707   PyObject * obj0 = 0 ;
70708   PyObject * obj1 = 0 ;
70709   PyObject * obj2 = 0 ;
70710   char * kwnames[] = {
70711     (char *)"self",  (char *)"structure",  (char *)"nullfile",  NULL
70712   };
70713   float result;
70714 
70715   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:fold_compound_eval_structure_verbose", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
70716   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
70717   if (!SWIG_IsOK(res1)) {
70718     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_eval_structure_verbose" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
70719   }
70720   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
70721   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
70722   if (!SWIG_IsOK(res2)) {
70723     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fold_compound_eval_structure_verbose" "', argument " "2"" of type '" "char *""'");
70724   }
70725   arg2 = reinterpret_cast< char * >(buf2);
70726   if (obj2) {
70727     {
70728       if (PyFile_Check(obj2)) /* check for undef */
70729       arg3 = PyFile_AsFile(obj2);
70730       else  arg3 = NULL;
70731     }
70732   }
70733   {
70734     try {
70735       result = (float)vrna_fold_compound_t_eval_structure_verbose(arg1,arg2,arg3);
70736     } catch (const std::exception& e) {
70737       SWIG_exception(SWIG_RuntimeError, e.what());
70738     }
70739   }
70740   resultobj = SWIG_From_float(static_cast< float >(result));
70741   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
70742   return resultobj;
70743 fail:
70744   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
70745   return NULL;
70746 }
70747 
70748 
_wrap_fold_compound_eval_structure_pt_verbose(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)70749 SWIGINTERN PyObject *_wrap_fold_compound_eval_structure_pt_verbose(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70750   PyObject *resultobj = 0;
70751   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
70752   std::vector< int,std::allocator< int > > arg2 ;
70753   FILE *arg3 = (FILE *) NULL ;
70754   void *argp1 = 0 ;
70755   int res1 = 0 ;
70756   PyObject * obj0 = 0 ;
70757   PyObject * obj1 = 0 ;
70758   PyObject * obj2 = 0 ;
70759   char * kwnames[] = {
70760     (char *)"self",  (char *)"pt",  (char *)"nullfile",  NULL
70761   };
70762   int result;
70763 
70764   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:fold_compound_eval_structure_pt_verbose", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
70765   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
70766   if (!SWIG_IsOK(res1)) {
70767     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_eval_structure_pt_verbose" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
70768   }
70769   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
70770   {
70771     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
70772     int res = swig::asptr(obj1, &ptr);
70773     if (!SWIG_IsOK(res) || !ptr) {
70774       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_eval_structure_pt_verbose" "', argument " "2"" of type '" "std::vector< int,std::allocator< int > >""'");
70775     }
70776     arg2 = *ptr;
70777     if (SWIG_IsNewObj(res)) delete ptr;
70778   }
70779   if (obj2) {
70780     {
70781       if (PyFile_Check(obj2)) /* check for undef */
70782       arg3 = PyFile_AsFile(obj2);
70783       else  arg3 = NULL;
70784     }
70785   }
70786   {
70787     try {
70788       result = (int)vrna_fold_compound_t_eval_structure_pt_verbose(arg1,arg2,arg3);
70789     } catch (const std::exception& e) {
70790       SWIG_exception(SWIG_RuntimeError, e.what());
70791     }
70792   }
70793   resultobj = SWIG_From_int(static_cast< int >(result));
70794   return resultobj;
70795 fail:
70796   return NULL;
70797 }
70798 
70799 
_wrap_fold_compound_eval_covar_structure(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)70800 SWIGINTERN PyObject *_wrap_fold_compound_eval_covar_structure(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70801   PyObject *resultobj = 0;
70802   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
70803   char *arg2 = (char *) 0 ;
70804   void *argp1 = 0 ;
70805   int res1 = 0 ;
70806   int res2 ;
70807   char *buf2 = 0 ;
70808   int alloc2 = 0 ;
70809   PyObject * obj0 = 0 ;
70810   PyObject * obj1 = 0 ;
70811   char * kwnames[] = {
70812     (char *)"self",  (char *)"structure",  NULL
70813   };
70814   float result;
70815 
70816   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:fold_compound_eval_covar_structure", kwnames, &obj0, &obj1)) SWIG_fail;
70817   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
70818   if (!SWIG_IsOK(res1)) {
70819     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_eval_covar_structure" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
70820   }
70821   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
70822   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
70823   if (!SWIG_IsOK(res2)) {
70824     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fold_compound_eval_covar_structure" "', argument " "2"" of type '" "char *""'");
70825   }
70826   arg2 = reinterpret_cast< char * >(buf2);
70827   {
70828     try {
70829       result = (float)vrna_fold_compound_t_eval_covar_structure(arg1,arg2);
70830     } catch (const std::exception& e) {
70831       SWIG_exception(SWIG_RuntimeError, e.what());
70832     }
70833   }
70834   resultobj = SWIG_From_float(static_cast< float >(result));
70835   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
70836   return resultobj;
70837 fail:
70838   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
70839   return NULL;
70840 }
70841 
70842 
_wrap_fold_compound_eval_loop_pt(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)70843 SWIGINTERN PyObject *_wrap_fold_compound_eval_loop_pt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70844   PyObject *resultobj = 0;
70845   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
70846   int arg2 ;
70847   std::vector< int,std::allocator< int > > arg3 ;
70848   void *argp1 = 0 ;
70849   int res1 = 0 ;
70850   int val2 ;
70851   int ecode2 = 0 ;
70852   PyObject * obj0 = 0 ;
70853   PyObject * obj1 = 0 ;
70854   PyObject * obj2 = 0 ;
70855   char * kwnames[] = {
70856     (char *)"self",  (char *)"i",  (char *)"pt",  NULL
70857   };
70858   int result;
70859 
70860   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:fold_compound_eval_loop_pt", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
70861   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
70862   if (!SWIG_IsOK(res1)) {
70863     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_eval_loop_pt" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
70864   }
70865   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
70866   ecode2 = SWIG_AsVal_int(obj1, &val2);
70867   if (!SWIG_IsOK(ecode2)) {
70868     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_eval_loop_pt" "', argument " "2"" of type '" "int""'");
70869   }
70870   arg2 = static_cast< int >(val2);
70871   {
70872     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
70873     int res = swig::asptr(obj2, &ptr);
70874     if (!SWIG_IsOK(res) || !ptr) {
70875       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_eval_loop_pt" "', argument " "3"" of type '" "std::vector< int,std::allocator< int > >""'");
70876     }
70877     arg3 = *ptr;
70878     if (SWIG_IsNewObj(res)) delete ptr;
70879   }
70880   {
70881     try {
70882       result = (int)vrna_fold_compound_t_eval_loop_pt(arg1,arg2,arg3);
70883     } catch (const std::exception& e) {
70884       SWIG_exception(SWIG_RuntimeError, e.what());
70885     }
70886   }
70887   resultobj = SWIG_From_int(static_cast< int >(result));
70888   return resultobj;
70889 fail:
70890   return NULL;
70891 }
70892 
70893 
_wrap_fold_compound_eval_move(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)70894 SWIGINTERN PyObject *_wrap_fold_compound_eval_move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70895   PyObject *resultobj = 0;
70896   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
70897   char *arg2 = (char *) 0 ;
70898   int arg3 ;
70899   int arg4 ;
70900   void *argp1 = 0 ;
70901   int res1 = 0 ;
70902   int res2 ;
70903   char *buf2 = 0 ;
70904   int alloc2 = 0 ;
70905   int val3 ;
70906   int ecode3 = 0 ;
70907   int val4 ;
70908   int ecode4 = 0 ;
70909   PyObject * obj0 = 0 ;
70910   PyObject * obj1 = 0 ;
70911   PyObject * obj2 = 0 ;
70912   PyObject * obj3 = 0 ;
70913   char * kwnames[] = {
70914     (char *)"self",  (char *)"structure",  (char *)"m1",  (char *)"m2",  NULL
70915   };
70916   float result;
70917 
70918   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:fold_compound_eval_move", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
70919   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
70920   if (!SWIG_IsOK(res1)) {
70921     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_eval_move" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
70922   }
70923   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
70924   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
70925   if (!SWIG_IsOK(res2)) {
70926     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fold_compound_eval_move" "', argument " "2"" of type '" "char const *""'");
70927   }
70928   arg2 = reinterpret_cast< char * >(buf2);
70929   ecode3 = SWIG_AsVal_int(obj2, &val3);
70930   if (!SWIG_IsOK(ecode3)) {
70931     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_eval_move" "', argument " "3"" of type '" "int""'");
70932   }
70933   arg3 = static_cast< int >(val3);
70934   ecode4 = SWIG_AsVal_int(obj3, &val4);
70935   if (!SWIG_IsOK(ecode4)) {
70936     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_eval_move" "', argument " "4"" of type '" "int""'");
70937   }
70938   arg4 = static_cast< int >(val4);
70939   {
70940     try {
70941       result = (float)vrna_fold_compound_t_eval_move(arg1,(char const *)arg2,arg3,arg4);
70942     } catch (const std::exception& e) {
70943       SWIG_exception(SWIG_RuntimeError, e.what());
70944     }
70945   }
70946   resultobj = SWIG_From_float(static_cast< float >(result));
70947   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
70948   return resultobj;
70949 fail:
70950   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
70951   return NULL;
70952 }
70953 
70954 
_wrap_fold_compound_eval_move_pt(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)70955 SWIGINTERN PyObject *_wrap_fold_compound_eval_move_pt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70956   PyObject *resultobj = 0;
70957   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
70958   std::vector< int,std::allocator< int > > arg2 ;
70959   int arg3 ;
70960   int arg4 ;
70961   void *argp1 = 0 ;
70962   int res1 = 0 ;
70963   int val3 ;
70964   int ecode3 = 0 ;
70965   int val4 ;
70966   int ecode4 = 0 ;
70967   PyObject * obj0 = 0 ;
70968   PyObject * obj1 = 0 ;
70969   PyObject * obj2 = 0 ;
70970   PyObject * obj3 = 0 ;
70971   char * kwnames[] = {
70972     (char *)"self",  (char *)"pt",  (char *)"m1",  (char *)"m2",  NULL
70973   };
70974   int result;
70975 
70976   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:fold_compound_eval_move_pt", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
70977   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
70978   if (!SWIG_IsOK(res1)) {
70979     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_eval_move_pt" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
70980   }
70981   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
70982   {
70983     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
70984     int res = swig::asptr(obj1, &ptr);
70985     if (!SWIG_IsOK(res) || !ptr) {
70986       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_eval_move_pt" "', argument " "2"" of type '" "std::vector< int,std::allocator< int > >""'");
70987     }
70988     arg2 = *ptr;
70989     if (SWIG_IsNewObj(res)) delete ptr;
70990   }
70991   ecode3 = SWIG_AsVal_int(obj2, &val3);
70992   if (!SWIG_IsOK(ecode3)) {
70993     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_eval_move_pt" "', argument " "3"" of type '" "int""'");
70994   }
70995   arg3 = static_cast< int >(val3);
70996   ecode4 = SWIG_AsVal_int(obj3, &val4);
70997   if (!SWIG_IsOK(ecode4)) {
70998     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_eval_move_pt" "', argument " "4"" of type '" "int""'");
70999   }
71000   arg4 = static_cast< int >(val4);
71001   {
71002     try {
71003       result = (int)vrna_fold_compound_t_eval_move_pt(arg1,arg2,arg3,arg4);
71004     } catch (const std::exception& e) {
71005       SWIG_exception(SWIG_RuntimeError, e.what());
71006     }
71007   }
71008   resultobj = SWIG_From_int(static_cast< int >(result));
71009   return resultobj;
71010 fail:
71011   return NULL;
71012 }
71013 
71014 
_wrap_fold_compound_E_ext_loop(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)71015 SWIGINTERN PyObject *_wrap_fold_compound_E_ext_loop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
71016   PyObject *resultobj = 0;
71017   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71018   int arg2 ;
71019   int arg3 ;
71020   void *argp1 = 0 ;
71021   int res1 = 0 ;
71022   int val2 ;
71023   int ecode2 = 0 ;
71024   int val3 ;
71025   int ecode3 = 0 ;
71026   PyObject * obj0 = 0 ;
71027   PyObject * obj1 = 0 ;
71028   PyObject * obj2 = 0 ;
71029   char * kwnames[] = {
71030     (char *)"self",  (char *)"i",  (char *)"j",  NULL
71031   };
71032   int result;
71033 
71034   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:fold_compound_E_ext_loop", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
71035   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
71036   if (!SWIG_IsOK(res1)) {
71037     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_E_ext_loop" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
71038   }
71039   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
71040   ecode2 = SWIG_AsVal_int(obj1, &val2);
71041   if (!SWIG_IsOK(ecode2)) {
71042     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_E_ext_loop" "', argument " "2"" of type '" "int""'");
71043   }
71044   arg2 = static_cast< int >(val2);
71045   ecode3 = SWIG_AsVal_int(obj2, &val3);
71046   if (!SWIG_IsOK(ecode3)) {
71047     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_E_ext_loop" "', argument " "3"" of type '" "int""'");
71048   }
71049   arg3 = static_cast< int >(val3);
71050   {
71051     try {
71052       result = (int)vrna_fold_compound_t_E_ext_loop(arg1,arg2,arg3);
71053     } catch (const std::exception& e) {
71054       SWIG_exception(SWIG_RuntimeError, e.what());
71055     }
71056   }
71057   resultobj = SWIG_From_int(static_cast< int >(result));
71058   return resultobj;
71059 fail:
71060   return NULL;
71061 }
71062 
71063 
_wrap_fold_compound_E_hp_loop(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)71064 SWIGINTERN PyObject *_wrap_fold_compound_E_hp_loop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
71065   PyObject *resultobj = 0;
71066   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71067   int arg2 ;
71068   int arg3 ;
71069   void *argp1 = 0 ;
71070   int res1 = 0 ;
71071   int val2 ;
71072   int ecode2 = 0 ;
71073   int val3 ;
71074   int ecode3 = 0 ;
71075   PyObject * obj0 = 0 ;
71076   PyObject * obj1 = 0 ;
71077   PyObject * obj2 = 0 ;
71078   char * kwnames[] = {
71079     (char *)"self",  (char *)"i",  (char *)"j",  NULL
71080   };
71081   int result;
71082 
71083   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:fold_compound_E_hp_loop", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
71084   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
71085   if (!SWIG_IsOK(res1)) {
71086     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_E_hp_loop" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
71087   }
71088   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
71089   ecode2 = SWIG_AsVal_int(obj1, &val2);
71090   if (!SWIG_IsOK(ecode2)) {
71091     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_E_hp_loop" "', argument " "2"" of type '" "int""'");
71092   }
71093   arg2 = static_cast< int >(val2);
71094   ecode3 = SWIG_AsVal_int(obj2, &val3);
71095   if (!SWIG_IsOK(ecode3)) {
71096     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_E_hp_loop" "', argument " "3"" of type '" "int""'");
71097   }
71098   arg3 = static_cast< int >(val3);
71099   {
71100     try {
71101       result = (int)vrna_fold_compound_t_E_hp_loop(arg1,arg2,arg3);
71102     } catch (const std::exception& e) {
71103       SWIG_exception(SWIG_RuntimeError, e.what());
71104     }
71105   }
71106   resultobj = SWIG_From_int(static_cast< int >(result));
71107   return resultobj;
71108 fail:
71109   return NULL;
71110 }
71111 
71112 
_wrap_fold_compound_E_ext_hp_loop(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)71113 SWIGINTERN PyObject *_wrap_fold_compound_E_ext_hp_loop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
71114   PyObject *resultobj = 0;
71115   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71116   int arg2 ;
71117   int arg3 ;
71118   void *argp1 = 0 ;
71119   int res1 = 0 ;
71120   int val2 ;
71121   int ecode2 = 0 ;
71122   int val3 ;
71123   int ecode3 = 0 ;
71124   PyObject * obj0 = 0 ;
71125   PyObject * obj1 = 0 ;
71126   PyObject * obj2 = 0 ;
71127   char * kwnames[] = {
71128     (char *)"self",  (char *)"i",  (char *)"j",  NULL
71129   };
71130   int result;
71131 
71132   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:fold_compound_E_ext_hp_loop", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
71133   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
71134   if (!SWIG_IsOK(res1)) {
71135     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_E_ext_hp_loop" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
71136   }
71137   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
71138   ecode2 = SWIG_AsVal_int(obj1, &val2);
71139   if (!SWIG_IsOK(ecode2)) {
71140     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_E_ext_hp_loop" "', argument " "2"" of type '" "int""'");
71141   }
71142   arg2 = static_cast< int >(val2);
71143   ecode3 = SWIG_AsVal_int(obj2, &val3);
71144   if (!SWIG_IsOK(ecode3)) {
71145     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_E_ext_hp_loop" "', argument " "3"" of type '" "int""'");
71146   }
71147   arg3 = static_cast< int >(val3);
71148   {
71149     try {
71150       result = (int)vrna_fold_compound_t_E_ext_hp_loop(arg1,arg2,arg3);
71151     } catch (const std::exception& e) {
71152       SWIG_exception(SWIG_RuntimeError, e.what());
71153     }
71154   }
71155   resultobj = SWIG_From_int(static_cast< int >(result));
71156   return resultobj;
71157 fail:
71158   return NULL;
71159 }
71160 
71161 
_wrap_fold_compound_eval_ext_hp_loop(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)71162 SWIGINTERN PyObject *_wrap_fold_compound_eval_ext_hp_loop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
71163   PyObject *resultobj = 0;
71164   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71165   int arg2 ;
71166   int arg3 ;
71167   void *argp1 = 0 ;
71168   int res1 = 0 ;
71169   int val2 ;
71170   int ecode2 = 0 ;
71171   int val3 ;
71172   int ecode3 = 0 ;
71173   PyObject * obj0 = 0 ;
71174   PyObject * obj1 = 0 ;
71175   PyObject * obj2 = 0 ;
71176   char * kwnames[] = {
71177     (char *)"self",  (char *)"i",  (char *)"j",  NULL
71178   };
71179   int result;
71180 
71181   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:fold_compound_eval_ext_hp_loop", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
71182   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
71183   if (!SWIG_IsOK(res1)) {
71184     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_eval_ext_hp_loop" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
71185   }
71186   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
71187   ecode2 = SWIG_AsVal_int(obj1, &val2);
71188   if (!SWIG_IsOK(ecode2)) {
71189     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_eval_ext_hp_loop" "', argument " "2"" of type '" "int""'");
71190   }
71191   arg2 = static_cast< int >(val2);
71192   ecode3 = SWIG_AsVal_int(obj2, &val3);
71193   if (!SWIG_IsOK(ecode3)) {
71194     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_eval_ext_hp_loop" "', argument " "3"" of type '" "int""'");
71195   }
71196   arg3 = static_cast< int >(val3);
71197   {
71198     try {
71199       result = (int)vrna_fold_compound_t_eval_ext_hp_loop(arg1,arg2,arg3);
71200     } catch (const std::exception& e) {
71201       SWIG_exception(SWIG_RuntimeError, e.what());
71202     }
71203   }
71204   resultobj = SWIG_From_int(static_cast< int >(result));
71205   return resultobj;
71206 fail:
71207   return NULL;
71208 }
71209 
71210 
_wrap_fold_compound_eval_hp_loop(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)71211 SWIGINTERN PyObject *_wrap_fold_compound_eval_hp_loop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
71212   PyObject *resultobj = 0;
71213   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71214   int arg2 ;
71215   int arg3 ;
71216   void *argp1 = 0 ;
71217   int res1 = 0 ;
71218   int val2 ;
71219   int ecode2 = 0 ;
71220   int val3 ;
71221   int ecode3 = 0 ;
71222   PyObject * obj0 = 0 ;
71223   PyObject * obj1 = 0 ;
71224   PyObject * obj2 = 0 ;
71225   char * kwnames[] = {
71226     (char *)"self",  (char *)"i",  (char *)"j",  NULL
71227   };
71228   int result;
71229 
71230   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:fold_compound_eval_hp_loop", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
71231   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
71232   if (!SWIG_IsOK(res1)) {
71233     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_eval_hp_loop" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
71234   }
71235   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
71236   ecode2 = SWIG_AsVal_int(obj1, &val2);
71237   if (!SWIG_IsOK(ecode2)) {
71238     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_eval_hp_loop" "', argument " "2"" of type '" "int""'");
71239   }
71240   arg2 = static_cast< int >(val2);
71241   ecode3 = SWIG_AsVal_int(obj2, &val3);
71242   if (!SWIG_IsOK(ecode3)) {
71243     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_eval_hp_loop" "', argument " "3"" of type '" "int""'");
71244   }
71245   arg3 = static_cast< int >(val3);
71246   {
71247     try {
71248       result = (int)vrna_fold_compound_t_eval_hp_loop(arg1,arg2,arg3);
71249     } catch (const std::exception& e) {
71250       SWIG_exception(SWIG_RuntimeError, e.what());
71251     }
71252   }
71253   resultobj = SWIG_From_int(static_cast< int >(result));
71254   return resultobj;
71255 fail:
71256   return NULL;
71257 }
71258 
71259 
_wrap_fold_compound_exp_E_hp_loop(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)71260 SWIGINTERN PyObject *_wrap_fold_compound_exp_E_hp_loop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
71261   PyObject *resultobj = 0;
71262   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71263   int arg2 ;
71264   int arg3 ;
71265   void *argp1 = 0 ;
71266   int res1 = 0 ;
71267   int val2 ;
71268   int ecode2 = 0 ;
71269   int val3 ;
71270   int ecode3 = 0 ;
71271   PyObject * obj0 = 0 ;
71272   PyObject * obj1 = 0 ;
71273   PyObject * obj2 = 0 ;
71274   char * kwnames[] = {
71275     (char *)"self",  (char *)"i",  (char *)"j",  NULL
71276   };
71277   double result;
71278 
71279   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:fold_compound_exp_E_hp_loop", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
71280   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
71281   if (!SWIG_IsOK(res1)) {
71282     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_exp_E_hp_loop" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
71283   }
71284   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
71285   ecode2 = SWIG_AsVal_int(obj1, &val2);
71286   if (!SWIG_IsOK(ecode2)) {
71287     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_exp_E_hp_loop" "', argument " "2"" of type '" "int""'");
71288   }
71289   arg2 = static_cast< int >(val2);
71290   ecode3 = SWIG_AsVal_int(obj2, &val3);
71291   if (!SWIG_IsOK(ecode3)) {
71292     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_exp_E_hp_loop" "', argument " "3"" of type '" "int""'");
71293   }
71294   arg3 = static_cast< int >(val3);
71295   {
71296     try {
71297       result = (double)vrna_fold_compound_t_exp_E_hp_loop(arg1,arg2,arg3);
71298     } catch (const std::exception& e) {
71299       SWIG_exception(SWIG_RuntimeError, e.what());
71300     }
71301   }
71302   resultobj = SWIG_From_double(static_cast< double >(result));
71303   return resultobj;
71304 fail:
71305   return NULL;
71306 }
71307 
71308 
_wrap_fold_compound_E_int_loop(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)71309 SWIGINTERN PyObject *_wrap_fold_compound_E_int_loop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
71310   PyObject *resultobj = 0;
71311   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71312   int arg2 ;
71313   int arg3 ;
71314   void *argp1 = 0 ;
71315   int res1 = 0 ;
71316   int val2 ;
71317   int ecode2 = 0 ;
71318   int val3 ;
71319   int ecode3 = 0 ;
71320   PyObject * obj0 = 0 ;
71321   PyObject * obj1 = 0 ;
71322   PyObject * obj2 = 0 ;
71323   char * kwnames[] = {
71324     (char *)"self",  (char *)"i",  (char *)"j",  NULL
71325   };
71326   int result;
71327 
71328   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:fold_compound_E_int_loop", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
71329   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
71330   if (!SWIG_IsOK(res1)) {
71331     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_E_int_loop" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
71332   }
71333   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
71334   ecode2 = SWIG_AsVal_int(obj1, &val2);
71335   if (!SWIG_IsOK(ecode2)) {
71336     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_E_int_loop" "', argument " "2"" of type '" "int""'");
71337   }
71338   arg2 = static_cast< int >(val2);
71339   ecode3 = SWIG_AsVal_int(obj2, &val3);
71340   if (!SWIG_IsOK(ecode3)) {
71341     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_E_int_loop" "', argument " "3"" of type '" "int""'");
71342   }
71343   arg3 = static_cast< int >(val3);
71344   {
71345     try {
71346       result = (int)vrna_fold_compound_t_E_int_loop(arg1,arg2,arg3);
71347     } catch (const std::exception& e) {
71348       SWIG_exception(SWIG_RuntimeError, e.what());
71349     }
71350   }
71351   resultobj = SWIG_From_int(static_cast< int >(result));
71352   return resultobj;
71353 fail:
71354   return NULL;
71355 }
71356 
71357 
_wrap_fold_compound_eval_int_loop(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)71358 SWIGINTERN PyObject *_wrap_fold_compound_eval_int_loop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
71359   PyObject *resultobj = 0;
71360   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71361   int arg2 ;
71362   int arg3 ;
71363   int arg4 ;
71364   int arg5 ;
71365   void *argp1 = 0 ;
71366   int res1 = 0 ;
71367   int val2 ;
71368   int ecode2 = 0 ;
71369   int val3 ;
71370   int ecode3 = 0 ;
71371   int val4 ;
71372   int ecode4 = 0 ;
71373   int val5 ;
71374   int ecode5 = 0 ;
71375   PyObject * obj0 = 0 ;
71376   PyObject * obj1 = 0 ;
71377   PyObject * obj2 = 0 ;
71378   PyObject * obj3 = 0 ;
71379   PyObject * obj4 = 0 ;
71380   char * kwnames[] = {
71381     (char *)"self",  (char *)"i",  (char *)"j",  (char *)"k",  (char *)"l",  NULL
71382   };
71383   int result;
71384 
71385   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:fold_compound_eval_int_loop", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
71386   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
71387   if (!SWIG_IsOK(res1)) {
71388     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_eval_int_loop" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
71389   }
71390   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
71391   ecode2 = SWIG_AsVal_int(obj1, &val2);
71392   if (!SWIG_IsOK(ecode2)) {
71393     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_eval_int_loop" "', argument " "2"" of type '" "int""'");
71394   }
71395   arg2 = static_cast< int >(val2);
71396   ecode3 = SWIG_AsVal_int(obj2, &val3);
71397   if (!SWIG_IsOK(ecode3)) {
71398     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_eval_int_loop" "', argument " "3"" of type '" "int""'");
71399   }
71400   arg3 = static_cast< int >(val3);
71401   ecode4 = SWIG_AsVal_int(obj3, &val4);
71402   if (!SWIG_IsOK(ecode4)) {
71403     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_eval_int_loop" "', argument " "4"" of type '" "int""'");
71404   }
71405   arg4 = static_cast< int >(val4);
71406   ecode5 = SWIG_AsVal_int(obj4, &val5);
71407   if (!SWIG_IsOK(ecode5)) {
71408     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "fold_compound_eval_int_loop" "', argument " "5"" of type '" "int""'");
71409   }
71410   arg5 = static_cast< int >(val5);
71411   {
71412     try {
71413       result = (int)vrna_fold_compound_t_eval_int_loop(arg1,arg2,arg3,arg4,arg5);
71414     } catch (const std::exception& e) {
71415       SWIG_exception(SWIG_RuntimeError, e.what());
71416     }
71417   }
71418   resultobj = SWIG_From_int(static_cast< int >(result));
71419   return resultobj;
71420 fail:
71421   return NULL;
71422 }
71423 
71424 
_wrap_fold_compound_E_ext_int_loop(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)71425 SWIGINTERN PyObject *_wrap_fold_compound_E_ext_int_loop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
71426   PyObject *resultobj = 0;
71427   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71428   int arg2 ;
71429   int arg3 ;
71430   int *arg4 = (int *) 0 ;
71431   int *arg5 = (int *) 0 ;
71432   void *argp1 = 0 ;
71433   int res1 = 0 ;
71434   int val2 ;
71435   int ecode2 = 0 ;
71436   int val3 ;
71437   int ecode3 = 0 ;
71438   int temp4 ;
71439   int res4 = SWIG_TMPOBJ ;
71440   int temp5 ;
71441   int res5 = SWIG_TMPOBJ ;
71442   PyObject * obj0 = 0 ;
71443   PyObject * obj1 = 0 ;
71444   PyObject * obj2 = 0 ;
71445   char * kwnames[] = {
71446     (char *)"self",  (char *)"i",  (char *)"j",  NULL
71447   };
71448   int result;
71449 
71450   arg4 = &temp4;
71451   arg5 = &temp5;
71452   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:fold_compound_E_ext_int_loop", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
71453   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
71454   if (!SWIG_IsOK(res1)) {
71455     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_E_ext_int_loop" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
71456   }
71457   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
71458   ecode2 = SWIG_AsVal_int(obj1, &val2);
71459   if (!SWIG_IsOK(ecode2)) {
71460     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_E_ext_int_loop" "', argument " "2"" of type '" "int""'");
71461   }
71462   arg2 = static_cast< int >(val2);
71463   ecode3 = SWIG_AsVal_int(obj2, &val3);
71464   if (!SWIG_IsOK(ecode3)) {
71465     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_E_ext_int_loop" "', argument " "3"" of type '" "int""'");
71466   }
71467   arg3 = static_cast< int >(val3);
71468   {
71469     try {
71470       result = (int)vrna_fold_compound_t_E_ext_int_loop(arg1,arg2,arg3,arg4,arg5);
71471     } catch (const std::exception& e) {
71472       SWIG_exception(SWIG_RuntimeError, e.what());
71473     }
71474   }
71475   resultobj = SWIG_From_int(static_cast< int >(result));
71476   if (SWIG_IsTmpObj(res4)) {
71477     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
71478   } else {
71479     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
71480     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
71481   }
71482   if (SWIG_IsTmpObj(res5)) {
71483     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
71484   } else {
71485     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
71486     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
71487   }
71488   return resultobj;
71489 fail:
71490   return NULL;
71491 }
71492 
71493 
_wrap_fold_compound_E_stack(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)71494 SWIGINTERN PyObject *_wrap_fold_compound_E_stack(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
71495   PyObject *resultobj = 0;
71496   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71497   int arg2 ;
71498   int arg3 ;
71499   void *argp1 = 0 ;
71500   int res1 = 0 ;
71501   int val2 ;
71502   int ecode2 = 0 ;
71503   int val3 ;
71504   int ecode3 = 0 ;
71505   PyObject * obj0 = 0 ;
71506   PyObject * obj1 = 0 ;
71507   PyObject * obj2 = 0 ;
71508   char * kwnames[] = {
71509     (char *)"self",  (char *)"i",  (char *)"j",  NULL
71510   };
71511   int result;
71512 
71513   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:fold_compound_E_stack", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
71514   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
71515   if (!SWIG_IsOK(res1)) {
71516     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_E_stack" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
71517   }
71518   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
71519   ecode2 = SWIG_AsVal_int(obj1, &val2);
71520   if (!SWIG_IsOK(ecode2)) {
71521     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_E_stack" "', argument " "2"" of type '" "int""'");
71522   }
71523   arg2 = static_cast< int >(val2);
71524   ecode3 = SWIG_AsVal_int(obj2, &val3);
71525   if (!SWIG_IsOK(ecode3)) {
71526     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_E_stack" "', argument " "3"" of type '" "int""'");
71527   }
71528   arg3 = static_cast< int >(val3);
71529   {
71530     try {
71531       result = (int)vrna_fold_compound_t_E_stack(arg1,arg2,arg3);
71532     } catch (const std::exception& e) {
71533       SWIG_exception(SWIG_RuntimeError, e.what());
71534     }
71535   }
71536   resultobj = SWIG_From_int(static_cast< int >(result));
71537   return resultobj;
71538 fail:
71539   return NULL;
71540 }
71541 
71542 
_wrap_fold_compound_exp_E_int_loop(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)71543 SWIGINTERN PyObject *_wrap_fold_compound_exp_E_int_loop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
71544   PyObject *resultobj = 0;
71545   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71546   int arg2 ;
71547   int arg3 ;
71548   void *argp1 = 0 ;
71549   int res1 = 0 ;
71550   int val2 ;
71551   int ecode2 = 0 ;
71552   int val3 ;
71553   int ecode3 = 0 ;
71554   PyObject * obj0 = 0 ;
71555   PyObject * obj1 = 0 ;
71556   PyObject * obj2 = 0 ;
71557   char * kwnames[] = {
71558     (char *)"self",  (char *)"i",  (char *)"j",  NULL
71559   };
71560   double result;
71561 
71562   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:fold_compound_exp_E_int_loop", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
71563   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
71564   if (!SWIG_IsOK(res1)) {
71565     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_exp_E_int_loop" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
71566   }
71567   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
71568   ecode2 = SWIG_AsVal_int(obj1, &val2);
71569   if (!SWIG_IsOK(ecode2)) {
71570     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_exp_E_int_loop" "', argument " "2"" of type '" "int""'");
71571   }
71572   arg2 = static_cast< int >(val2);
71573   ecode3 = SWIG_AsVal_int(obj2, &val3);
71574   if (!SWIG_IsOK(ecode3)) {
71575     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_exp_E_int_loop" "', argument " "3"" of type '" "int""'");
71576   }
71577   arg3 = static_cast< int >(val3);
71578   {
71579     try {
71580       result = (double)vrna_fold_compound_t_exp_E_int_loop(arg1,arg2,arg3);
71581     } catch (const std::exception& e) {
71582       SWIG_exception(SWIG_RuntimeError, e.what());
71583     }
71584   }
71585   resultobj = SWIG_From_double(static_cast< double >(result));
71586   return resultobj;
71587 fail:
71588   return NULL;
71589 }
71590 
71591 
_wrap_fold_compound_exp_E_interior_loop(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)71592 SWIGINTERN PyObject *_wrap_fold_compound_exp_E_interior_loop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
71593   PyObject *resultobj = 0;
71594   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71595   int arg2 ;
71596   int arg3 ;
71597   int arg4 ;
71598   int arg5 ;
71599   void *argp1 = 0 ;
71600   int res1 = 0 ;
71601   int val2 ;
71602   int ecode2 = 0 ;
71603   int val3 ;
71604   int ecode3 = 0 ;
71605   int val4 ;
71606   int ecode4 = 0 ;
71607   int val5 ;
71608   int ecode5 = 0 ;
71609   PyObject * obj0 = 0 ;
71610   PyObject * obj1 = 0 ;
71611   PyObject * obj2 = 0 ;
71612   PyObject * obj3 = 0 ;
71613   PyObject * obj4 = 0 ;
71614   char * kwnames[] = {
71615     (char *)"self",  (char *)"i",  (char *)"j",  (char *)"k",  (char *)"l",  NULL
71616   };
71617   double result;
71618 
71619   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:fold_compound_exp_E_interior_loop", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
71620   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
71621   if (!SWIG_IsOK(res1)) {
71622     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_exp_E_interior_loop" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
71623   }
71624   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
71625   ecode2 = SWIG_AsVal_int(obj1, &val2);
71626   if (!SWIG_IsOK(ecode2)) {
71627     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_exp_E_interior_loop" "', argument " "2"" of type '" "int""'");
71628   }
71629   arg2 = static_cast< int >(val2);
71630   ecode3 = SWIG_AsVal_int(obj2, &val3);
71631   if (!SWIG_IsOK(ecode3)) {
71632     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_exp_E_interior_loop" "', argument " "3"" of type '" "int""'");
71633   }
71634   arg3 = static_cast< int >(val3);
71635   ecode4 = SWIG_AsVal_int(obj3, &val4);
71636   if (!SWIG_IsOK(ecode4)) {
71637     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_exp_E_interior_loop" "', argument " "4"" of type '" "int""'");
71638   }
71639   arg4 = static_cast< int >(val4);
71640   ecode5 = SWIG_AsVal_int(obj4, &val5);
71641   if (!SWIG_IsOK(ecode5)) {
71642     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "fold_compound_exp_E_interior_loop" "', argument " "5"" of type '" "int""'");
71643   }
71644   arg5 = static_cast< int >(val5);
71645   {
71646     try {
71647       result = (double)vrna_fold_compound_t_exp_E_interior_loop(arg1,arg2,arg3,arg4,arg5);
71648     } catch (const std::exception& e) {
71649       SWIG_exception(SWIG_RuntimeError, e.what());
71650     }
71651   }
71652   resultobj = SWIG_From_double(static_cast< double >(result));
71653   return resultobj;
71654 fail:
71655   return NULL;
71656 }
71657 
71658 
_wrap_fold_compound_maxmimum_matching(PyObject * SWIGUNUSEDPARM (self),PyObject * args)71659 SWIGINTERN PyObject *_wrap_fold_compound_maxmimum_matching(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
71660   PyObject *resultobj = 0;
71661   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71662   void *argp1 = 0 ;
71663   int res1 = 0 ;
71664   PyObject *swig_obj[1] ;
71665   int result;
71666 
71667   if (!args) SWIG_fail;
71668   swig_obj[0] = args;
71669   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
71670   if (!SWIG_IsOK(res1)) {
71671     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_maxmimum_matching" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
71672   }
71673   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
71674   {
71675     try {
71676       result = (int)vrna_fold_compound_t_maxmimum_matching(arg1);
71677     } catch (const std::exception& e) {
71678       SWIG_exception(SWIG_RuntimeError, e.what());
71679     }
71680   }
71681   resultobj = SWIG_From_int(static_cast< int >(result));
71682   return resultobj;
71683 fail:
71684   return NULL;
71685 }
71686 
71687 
_wrap_fold_compound_mfe(PyObject * SWIGUNUSEDPARM (self),PyObject * args)71688 SWIGINTERN PyObject *_wrap_fold_compound_mfe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
71689   PyObject *resultobj = 0;
71690   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71691   float *arg2 = (float *) 0 ;
71692   void *argp1 = 0 ;
71693   int res1 = 0 ;
71694   float temp2 ;
71695   int res2 = SWIG_TMPOBJ ;
71696   PyObject *swig_obj[1] ;
71697   char *result = 0 ;
71698 
71699   arg2 = &temp2;
71700   if (!args) SWIG_fail;
71701   swig_obj[0] = args;
71702   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
71703   if (!SWIG_IsOK(res1)) {
71704     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_mfe" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
71705   }
71706   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
71707   {
71708     try {
71709       result = (char *)vrna_fold_compound_t_mfe(arg1,arg2);
71710     } catch (const std::exception& e) {
71711       SWIG_exception(SWIG_RuntimeError, e.what());
71712     }
71713   }
71714   resultobj = SWIG_FromCharPtr((const char *)result);
71715   if (SWIG_IsTmpObj(res2)) {
71716     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg2)));
71717   } else {
71718     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
71719     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_float, new_flags));
71720   }
71721   delete[] result;
71722   return resultobj;
71723 fail:
71724   return NULL;
71725 }
71726 
71727 
_wrap_fold_compound_mfe_dimer(PyObject * SWIGUNUSEDPARM (self),PyObject * args)71728 SWIGINTERN PyObject *_wrap_fold_compound_mfe_dimer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
71729   PyObject *resultobj = 0;
71730   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71731   float *arg2 = (float *) 0 ;
71732   void *argp1 = 0 ;
71733   int res1 = 0 ;
71734   float temp2 ;
71735   int res2 = SWIG_TMPOBJ ;
71736   PyObject *swig_obj[1] ;
71737   char *result = 0 ;
71738 
71739   arg2 = &temp2;
71740   if (!args) SWIG_fail;
71741   swig_obj[0] = args;
71742   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
71743   if (!SWIG_IsOK(res1)) {
71744     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_mfe_dimer" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
71745   }
71746   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
71747   {
71748     try {
71749       result = (char *)vrna_fold_compound_t_mfe_dimer(arg1,arg2);
71750     } catch (const std::exception& e) {
71751       SWIG_exception(SWIG_RuntimeError, e.what());
71752     }
71753   }
71754   resultobj = SWIG_FromCharPtr((const char *)result);
71755   if (SWIG_IsTmpObj(res2)) {
71756     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg2)));
71757   } else {
71758     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
71759     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_float, new_flags));
71760   }
71761   delete[] result;
71762   return resultobj;
71763 fail:
71764   return NULL;
71765 }
71766 
71767 
_wrap_fold_compound_backtrack__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)71768 SWIGINTERN PyObject *_wrap_fold_compound_backtrack__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
71769   PyObject *resultobj = 0;
71770   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71771   unsigned int arg2 ;
71772   float *arg3 = (float *) 0 ;
71773   void *argp1 = 0 ;
71774   int res1 = 0 ;
71775   unsigned int val2 ;
71776   int ecode2 = 0 ;
71777   float temp3 ;
71778   int res3 = SWIG_TMPOBJ ;
71779   char *result = 0 ;
71780 
71781   arg3 = &temp3;
71782   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
71783   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
71784   if (!SWIG_IsOK(res1)) {
71785     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_backtrack" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
71786   }
71787   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
71788   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
71789   if (!SWIG_IsOK(ecode2)) {
71790     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_backtrack" "', argument " "2"" of type '" "unsigned int""'");
71791   }
71792   arg2 = static_cast< unsigned int >(val2);
71793   {
71794     try {
71795       result = (char *)vrna_fold_compound_t_backtrack__SWIG_0(arg1,arg2,arg3);
71796     } catch (const std::exception& e) {
71797       SWIG_exception(SWIG_RuntimeError, e.what());
71798     }
71799   }
71800   resultobj = SWIG_FromCharPtr((const char *)result);
71801   if (SWIG_IsTmpObj(res3)) {
71802     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg3)));
71803   } else {
71804     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
71805     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_float, new_flags));
71806   }
71807   delete[] result;
71808   return resultobj;
71809 fail:
71810   return NULL;
71811 }
71812 
71813 
_wrap_fold_compound_backtrack__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)71814 SWIGINTERN PyObject *_wrap_fold_compound_backtrack__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
71815   PyObject *resultobj = 0;
71816   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71817   float *arg2 = (float *) 0 ;
71818   void *argp1 = 0 ;
71819   int res1 = 0 ;
71820   float temp2 ;
71821   int res2 = SWIG_TMPOBJ ;
71822   char *result = 0 ;
71823 
71824   arg2 = &temp2;
71825   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
71826   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
71827   if (!SWIG_IsOK(res1)) {
71828     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_backtrack" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
71829   }
71830   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
71831   {
71832     try {
71833       result = (char *)vrna_fold_compound_t_backtrack__SWIG_1(arg1,arg2);
71834     } catch (const std::exception& e) {
71835       SWIG_exception(SWIG_RuntimeError, e.what());
71836     }
71837   }
71838   resultobj = SWIG_FromCharPtr((const char *)result);
71839   if (SWIG_IsTmpObj(res2)) {
71840     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg2)));
71841   } else {
71842     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
71843     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_float, new_flags));
71844   }
71845   delete[] result;
71846   return resultobj;
71847 fail:
71848   return NULL;
71849 }
71850 
71851 
_wrap_fold_compound_backtrack(PyObject * self,PyObject * args)71852 SWIGINTERN PyObject *_wrap_fold_compound_backtrack(PyObject *self, PyObject *args) {
71853   Py_ssize_t argc;
71854   PyObject *argv[3] = {
71855     0
71856   };
71857 
71858   if (!(argc = SWIG_Python_UnpackTuple(args, "fold_compound_backtrack", 0, 2, argv))) SWIG_fail;
71859   --argc;
71860   if (argc == 1) {
71861     int _v;
71862     void *vptr = 0;
71863     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
71864     _v = SWIG_CheckState(res);
71865     if (_v) {
71866       return _wrap_fold_compound_backtrack__SWIG_1(self, argc, argv);
71867     }
71868   }
71869   if (argc == 2) {
71870     int _v;
71871     void *vptr = 0;
71872     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
71873     _v = SWIG_CheckState(res);
71874     if (_v) {
71875       {
71876         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
71877         _v = SWIG_CheckState(res);
71878       }
71879       if (_v) {
71880         return _wrap_fold_compound_backtrack__SWIG_0(self, argc, argv);
71881       }
71882     }
71883   }
71884 
71885 fail:
71886   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'fold_compound_backtrack'.\n"
71887     "  Possible C/C++ prototypes are:\n"
71888     "    vrna_fold_compound_t::backtrack(unsigned int,float *)\n"
71889     "    vrna_fold_compound_t::backtrack(float *)\n");
71890   return 0;
71891 }
71892 
71893 
_wrap_fold_compound_mfe_window(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)71894 SWIGINTERN PyObject *_wrap_fold_compound_mfe_window(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
71895   PyObject *resultobj = 0;
71896   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71897   FILE *arg2 = (FILE *) NULL ;
71898   void *argp1 = 0 ;
71899   int res1 = 0 ;
71900   PyObject * obj0 = 0 ;
71901   PyObject * obj1 = 0 ;
71902   char * kwnames[] = {
71903     (char *)"self",  (char *)"nullfile",  NULL
71904   };
71905   float result;
71906 
71907   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:fold_compound_mfe_window", kwnames, &obj0, &obj1)) SWIG_fail;
71908   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
71909   if (!SWIG_IsOK(res1)) {
71910     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_mfe_window" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
71911   }
71912   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
71913   if (obj1) {
71914     {
71915       if (PyFile_Check(obj1)) /* check for undef */
71916       arg2 = PyFile_AsFile(obj1);
71917       else  arg2 = NULL;
71918     }
71919   }
71920   {
71921     try {
71922       result = (float)vrna_fold_compound_t_mfe_window(arg1,arg2);
71923     } catch (const std::exception& e) {
71924       SWIG_exception(SWIG_RuntimeError, e.what());
71925     }
71926   }
71927   resultobj = SWIG_From_float(static_cast< float >(result));
71928   return resultobj;
71929 fail:
71930   return NULL;
71931 }
71932 
71933 
_wrap_fold_compound_mfe_window_zscore(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)71934 SWIGINTERN PyObject *_wrap_fold_compound_mfe_window_zscore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
71935   PyObject *resultobj = 0;
71936   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71937   double arg2 ;
71938   FILE *arg3 = (FILE *) NULL ;
71939   void *argp1 = 0 ;
71940   int res1 = 0 ;
71941   double val2 ;
71942   int ecode2 = 0 ;
71943   PyObject * obj0 = 0 ;
71944   PyObject * obj1 = 0 ;
71945   PyObject * obj2 = 0 ;
71946   char * kwnames[] = {
71947     (char *)"self",  (char *)"min_z",  (char *)"nullfile",  NULL
71948   };
71949   float result;
71950 
71951   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:fold_compound_mfe_window_zscore", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
71952   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
71953   if (!SWIG_IsOK(res1)) {
71954     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_mfe_window_zscore" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
71955   }
71956   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
71957   ecode2 = SWIG_AsVal_double(obj1, &val2);
71958   if (!SWIG_IsOK(ecode2)) {
71959     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_mfe_window_zscore" "', argument " "2"" of type '" "double""'");
71960   }
71961   arg2 = static_cast< double >(val2);
71962   if (obj2) {
71963     {
71964       if (PyFile_Check(obj2)) /* check for undef */
71965       arg3 = PyFile_AsFile(obj2);
71966       else  arg3 = NULL;
71967     }
71968   }
71969   {
71970     try {
71971       result = (float)vrna_fold_compound_t_mfe_window_zscore(arg1,arg2,arg3);
71972     } catch (const std::exception& e) {
71973       SWIG_exception(SWIG_RuntimeError, e.what());
71974     }
71975   }
71976   resultobj = SWIG_From_float(static_cast< float >(result));
71977   return resultobj;
71978 fail:
71979   return NULL;
71980 }
71981 
71982 
_wrap_fold_compound_zsc_filter_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)71983 SWIGINTERN PyObject *_wrap_fold_compound_zsc_filter_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
71984   PyObject *resultobj = 0;
71985   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
71986   double arg2 = (double) -2.0 ;
71987   unsigned int arg3 = (unsigned int) VRNA_ZSCORE_SETTINGS_DEFAULT ;
71988   void *argp1 = 0 ;
71989   int res1 = 0 ;
71990   double val2 ;
71991   int ecode2 = 0 ;
71992   unsigned int val3 ;
71993   int ecode3 = 0 ;
71994   PyObject * obj0 = 0 ;
71995   PyObject * obj1 = 0 ;
71996   PyObject * obj2 = 0 ;
71997   char * kwnames[] = {
71998     (char *)"self",  (char *)"min_z",  (char *)"options",  NULL
71999   };
72000   int result;
72001 
72002   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|OO:fold_compound_zsc_filter_init", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
72003   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72004   if (!SWIG_IsOK(res1)) {
72005     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_zsc_filter_init" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72006   }
72007   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72008   if (obj1) {
72009     ecode2 = SWIG_AsVal_double(obj1, &val2);
72010     if (!SWIG_IsOK(ecode2)) {
72011       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_zsc_filter_init" "', argument " "2"" of type '" "double""'");
72012     }
72013     arg2 = static_cast< double >(val2);
72014   }
72015   if (obj2) {
72016     ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
72017     if (!SWIG_IsOK(ecode3)) {
72018       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_zsc_filter_init" "', argument " "3"" of type '" "unsigned int""'");
72019     }
72020     arg3 = static_cast< unsigned int >(val3);
72021   }
72022   {
72023     try {
72024       result = (int)vrna_fold_compound_t_zsc_filter_init(arg1,arg2,arg3);
72025     } catch (const std::exception& e) {
72026       SWIG_exception(SWIG_RuntimeError, e.what());
72027     }
72028   }
72029   resultobj = SWIG_From_int(static_cast< int >(result));
72030   return resultobj;
72031 fail:
72032   return NULL;
72033 }
72034 
72035 
_wrap_fold_compound_zsc_filter_update(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)72036 SWIGINTERN PyObject *_wrap_fold_compound_zsc_filter_update(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72037   PyObject *resultobj = 0;
72038   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72039   double arg2 ;
72040   unsigned int arg3 = (unsigned int) VRNA_ZSCORE_OPTIONS_NONE ;
72041   void *argp1 = 0 ;
72042   int res1 = 0 ;
72043   double val2 ;
72044   int ecode2 = 0 ;
72045   unsigned int val3 ;
72046   int ecode3 = 0 ;
72047   PyObject * obj0 = 0 ;
72048   PyObject * obj1 = 0 ;
72049   PyObject * obj2 = 0 ;
72050   char * kwnames[] = {
72051     (char *)"self",  (char *)"min_z",  (char *)"options",  NULL
72052   };
72053   int result;
72054 
72055   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:fold_compound_zsc_filter_update", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
72056   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72057   if (!SWIG_IsOK(res1)) {
72058     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_zsc_filter_update" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72059   }
72060   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72061   ecode2 = SWIG_AsVal_double(obj1, &val2);
72062   if (!SWIG_IsOK(ecode2)) {
72063     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_zsc_filter_update" "', argument " "2"" of type '" "double""'");
72064   }
72065   arg2 = static_cast< double >(val2);
72066   if (obj2) {
72067     ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
72068     if (!SWIG_IsOK(ecode3)) {
72069       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_zsc_filter_update" "', argument " "3"" of type '" "unsigned int""'");
72070     }
72071     arg3 = static_cast< unsigned int >(val3);
72072   }
72073   {
72074     try {
72075       result = (int)vrna_fold_compound_t_zsc_filter_update(arg1,arg2,arg3);
72076     } catch (const std::exception& e) {
72077       SWIG_exception(SWIG_RuntimeError, e.what());
72078     }
72079   }
72080   resultobj = SWIG_From_int(static_cast< int >(result));
72081   return resultobj;
72082 fail:
72083   return NULL;
72084 }
72085 
72086 
_wrap_fold_compound_zsc_filter_free(PyObject * SWIGUNUSEDPARM (self),PyObject * args)72087 SWIGINTERN PyObject *_wrap_fold_compound_zsc_filter_free(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72088   PyObject *resultobj = 0;
72089   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72090   void *argp1 = 0 ;
72091   int res1 = 0 ;
72092   PyObject *swig_obj[1] ;
72093 
72094   if (!args) SWIG_fail;
72095   swig_obj[0] = args;
72096   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72097   if (!SWIG_IsOK(res1)) {
72098     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_zsc_filter_free" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72099   }
72100   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72101   {
72102     try {
72103       vrna_fold_compound_t_zsc_filter_free(arg1);
72104     } catch (const std::exception& e) {
72105       SWIG_exception(SWIG_RuntimeError, e.what());
72106     }
72107   }
72108   resultobj = SWIG_Py_Void();
72109   return resultobj;
72110 fail:
72111   return NULL;
72112 }
72113 
72114 
_wrap_fold_compound_zsc_filter_on(PyObject * SWIGUNUSEDPARM (self),PyObject * args)72115 SWIGINTERN PyObject *_wrap_fold_compound_zsc_filter_on(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72116   PyObject *resultobj = 0;
72117   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72118   void *argp1 = 0 ;
72119   int res1 = 0 ;
72120   PyObject *swig_obj[1] ;
72121   int result;
72122 
72123   if (!args) SWIG_fail;
72124   swig_obj[0] = args;
72125   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72126   if (!SWIG_IsOK(res1)) {
72127     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_zsc_filter_on" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72128   }
72129   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72130   {
72131     try {
72132       result = (int)vrna_fold_compound_t_zsc_filter_on(arg1);
72133     } catch (const std::exception& e) {
72134       SWIG_exception(SWIG_RuntimeError, e.what());
72135     }
72136   }
72137   resultobj = SWIG_From_int(static_cast< int >(result));
72138   return resultobj;
72139 fail:
72140   return NULL;
72141 }
72142 
72143 
_wrap_fold_compound_zsc_filter_threshold(PyObject * SWIGUNUSEDPARM (self),PyObject * args)72144 SWIGINTERN PyObject *_wrap_fold_compound_zsc_filter_threshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72145   PyObject *resultobj = 0;
72146   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72147   void *argp1 = 0 ;
72148   int res1 = 0 ;
72149   PyObject *swig_obj[1] ;
72150   double result;
72151 
72152   if (!args) SWIG_fail;
72153   swig_obj[0] = args;
72154   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72155   if (!SWIG_IsOK(res1)) {
72156     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_zsc_filter_threshold" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72157   }
72158   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72159   {
72160     try {
72161       result = (double)vrna_fold_compound_t_zsc_filter_threshold(arg1);
72162     } catch (const std::exception& e) {
72163       SWIG_exception(SWIG_RuntimeError, e.what());
72164     }
72165   }
72166   resultobj = SWIG_From_double(static_cast< double >(result));
72167   return resultobj;
72168 fail:
72169   return NULL;
72170 }
72171 
72172 
_wrap_fold_compound_zsc_compute(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)72173 SWIGINTERN PyObject *_wrap_fold_compound_zsc_compute(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72174   PyObject *resultobj = 0;
72175   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72176   unsigned int arg2 ;
72177   unsigned int arg3 ;
72178   int arg4 ;
72179   void *argp1 = 0 ;
72180   int res1 = 0 ;
72181   unsigned int val2 ;
72182   int ecode2 = 0 ;
72183   unsigned int val3 ;
72184   int ecode3 = 0 ;
72185   int val4 ;
72186   int ecode4 = 0 ;
72187   PyObject * obj0 = 0 ;
72188   PyObject * obj1 = 0 ;
72189   PyObject * obj2 = 0 ;
72190   PyObject * obj3 = 0 ;
72191   char * kwnames[] = {
72192     (char *)"self",  (char *)"i",  (char *)"j",  (char *)"e",  NULL
72193   };
72194   double result;
72195 
72196   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:fold_compound_zsc_compute", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
72197   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72198   if (!SWIG_IsOK(res1)) {
72199     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_zsc_compute" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72200   }
72201   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72202   ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
72203   if (!SWIG_IsOK(ecode2)) {
72204     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_zsc_compute" "', argument " "2"" of type '" "unsigned int""'");
72205   }
72206   arg2 = static_cast< unsigned int >(val2);
72207   ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
72208   if (!SWIG_IsOK(ecode3)) {
72209     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_zsc_compute" "', argument " "3"" of type '" "unsigned int""'");
72210   }
72211   arg3 = static_cast< unsigned int >(val3);
72212   ecode4 = SWIG_AsVal_int(obj3, &val4);
72213   if (!SWIG_IsOK(ecode4)) {
72214     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_zsc_compute" "', argument " "4"" of type '" "int""'");
72215   }
72216   arg4 = static_cast< int >(val4);
72217   {
72218     try {
72219       result = (double)vrna_fold_compound_t_zsc_compute(arg1,arg2,arg3,arg4);
72220     } catch (const std::exception& e) {
72221       SWIG_exception(SWIG_RuntimeError, e.what());
72222     }
72223   }
72224   resultobj = SWIG_From_double(static_cast< double >(result));
72225   return resultobj;
72226 fail:
72227   return NULL;
72228 }
72229 
72230 
_wrap_fold_compound_pf(PyObject * SWIGUNUSEDPARM (self),PyObject * args)72231 SWIGINTERN PyObject *_wrap_fold_compound_pf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72232   PyObject *resultobj = 0;
72233   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72234   float *arg2 = (float *) 0 ;
72235   void *argp1 = 0 ;
72236   int res1 = 0 ;
72237   float temp2 ;
72238   int res2 = SWIG_TMPOBJ ;
72239   PyObject *swig_obj[1] ;
72240   char *result = 0 ;
72241 
72242   arg2 = &temp2;
72243   if (!args) SWIG_fail;
72244   swig_obj[0] = args;
72245   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72246   if (!SWIG_IsOK(res1)) {
72247     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_pf" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72248   }
72249   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72250   {
72251     try {
72252       result = (char *)vrna_fold_compound_t_pf(arg1,arg2);
72253     } catch (const std::exception& e) {
72254       SWIG_exception(SWIG_RuntimeError, e.what());
72255     }
72256   }
72257   resultobj = SWIG_FromCharPtr((const char *)result);
72258   if (SWIG_IsTmpObj(res2)) {
72259     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg2)));
72260   } else {
72261     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
72262     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_float, new_flags));
72263   }
72264   delete[] result;
72265   return resultobj;
72266 fail:
72267   return NULL;
72268 }
72269 
72270 
_wrap_fold_compound_mean_bp_distance(PyObject * SWIGUNUSEDPARM (self),PyObject * args)72271 SWIGINTERN PyObject *_wrap_fold_compound_mean_bp_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72272   PyObject *resultobj = 0;
72273   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72274   void *argp1 = 0 ;
72275   int res1 = 0 ;
72276   PyObject *swig_obj[1] ;
72277   double result;
72278 
72279   if (!args) SWIG_fail;
72280   swig_obj[0] = args;
72281   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72282   if (!SWIG_IsOK(res1)) {
72283     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_mean_bp_distance" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72284   }
72285   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72286   {
72287     try {
72288       result = (double)vrna_fold_compound_t_mean_bp_distance(arg1);
72289     } catch (const std::exception& e) {
72290       SWIG_exception(SWIG_RuntimeError, e.what());
72291     }
72292   }
72293   resultobj = SWIG_From_double(static_cast< double >(result));
72294   return resultobj;
72295 fail:
72296   return NULL;
72297 }
72298 
72299 
_wrap_fold_compound_ensemble_defect__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)72300 SWIGINTERN PyObject *_wrap_fold_compound_ensemble_defect__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
72301   PyObject *resultobj = 0;
72302   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72303   std::string arg2 ;
72304   unsigned int arg3 = (unsigned int) 8U ;
72305   void *argp1 = 0 ;
72306   int res1 = 0 ;
72307   unsigned int val3 ;
72308   int ecode3 = 0 ;
72309   double result;
72310 
72311   if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
72312   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72313   if (!SWIG_IsOK(res1)) {
72314     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_ensemble_defect" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72315   }
72316   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72317   {
72318     std::string *ptr = (std::string *)0;
72319     int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
72320     if (!SWIG_IsOK(res) || !ptr) {
72321       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_ensemble_defect" "', argument " "2"" of type '" "std::string""'");
72322     }
72323     arg2 = *ptr;
72324     if (SWIG_IsNewObj(res)) delete ptr;
72325   }
72326   if (swig_obj[2]) {
72327     ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
72328     if (!SWIG_IsOK(ecode3)) {
72329       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_ensemble_defect" "', argument " "3"" of type '" "unsigned int""'");
72330     }
72331     arg3 = static_cast< unsigned int >(val3);
72332   }
72333   {
72334     try {
72335       result = (double)vrna_fold_compound_t_ensemble_defect__SWIG_0(arg1,arg2,arg3);
72336     } catch (const std::exception& e) {
72337       SWIG_exception(SWIG_RuntimeError, e.what());
72338     }
72339   }
72340   resultobj = SWIG_From_double(static_cast< double >(result));
72341   return resultobj;
72342 fail:
72343   return NULL;
72344 }
72345 
72346 
_wrap_fold_compound_ensemble_defect__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)72347 SWIGINTERN PyObject *_wrap_fold_compound_ensemble_defect__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
72348   PyObject *resultobj = 0;
72349   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72350   std::vector< int,std::allocator< int > > arg2 ;
72351   void *argp1 = 0 ;
72352   int res1 = 0 ;
72353   double result;
72354 
72355   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
72356   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72357   if (!SWIG_IsOK(res1)) {
72358     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_ensemble_defect" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72359   }
72360   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72361   {
72362     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
72363     int res = swig::asptr(swig_obj[1], &ptr);
72364     if (!SWIG_IsOK(res) || !ptr) {
72365       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_ensemble_defect" "', argument " "2"" of type '" "std::vector< int,std::allocator< int > >""'");
72366     }
72367     arg2 = *ptr;
72368     if (SWIG_IsNewObj(res)) delete ptr;
72369   }
72370   {
72371     try {
72372       result = (double)vrna_fold_compound_t_ensemble_defect__SWIG_1(arg1,arg2);
72373     } catch (const std::exception& e) {
72374       SWIG_exception(SWIG_RuntimeError, e.what());
72375     }
72376   }
72377   resultobj = SWIG_From_double(static_cast< double >(result));
72378   return resultobj;
72379 fail:
72380   return NULL;
72381 }
72382 
72383 
_wrap_fold_compound_ensemble_defect(PyObject * self,PyObject * args)72384 SWIGINTERN PyObject *_wrap_fold_compound_ensemble_defect(PyObject *self, PyObject *args) {
72385   Py_ssize_t argc;
72386   PyObject *argv[4] = {
72387     0
72388   };
72389 
72390   if (!(argc = SWIG_Python_UnpackTuple(args, "fold_compound_ensemble_defect", 0, 3, argv))) SWIG_fail;
72391   --argc;
72392   if ((argc >= 2) && (argc <= 3)) {
72393     int _v;
72394     void *vptr = 0;
72395     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
72396     _v = SWIG_CheckState(res);
72397     if (_v) {
72398       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
72399       _v = SWIG_CheckState(res);
72400       if (_v) {
72401         if (argc <= 2) {
72402           return _wrap_fold_compound_ensemble_defect__SWIG_0(self, argc, argv);
72403         }
72404         {
72405           int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
72406           _v = SWIG_CheckState(res);
72407         }
72408         if (_v) {
72409           return _wrap_fold_compound_ensemble_defect__SWIG_0(self, argc, argv);
72410         }
72411       }
72412     }
72413   }
72414   if (argc == 2) {
72415     int _v;
72416     void *vptr = 0;
72417     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
72418     _v = SWIG_CheckState(res);
72419     if (_v) {
72420       int res = swig::asptr(argv[1], (std::vector< int,std::allocator< int > >**)(0));
72421       _v = SWIG_CheckState(res);
72422       if (_v) {
72423         return _wrap_fold_compound_ensemble_defect__SWIG_1(self, argc, argv);
72424       }
72425     }
72426   }
72427 
72428 fail:
72429   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'fold_compound_ensemble_defect'.\n"
72430     "  Possible C/C++ prototypes are:\n"
72431     "    vrna_fold_compound_t::ensemble_defect(std::string,unsigned int)\n"
72432     "    vrna_fold_compound_t::ensemble_defect(std::vector< int,std::allocator< int > >)\n");
72433   return 0;
72434 }
72435 
72436 
_wrap_fold_compound_positional_entropy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)72437 SWIGINTERN PyObject *_wrap_fold_compound_positional_entropy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72438   PyObject *resultobj = 0;
72439   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72440   void *argp1 = 0 ;
72441   int res1 = 0 ;
72442   PyObject *swig_obj[1] ;
72443   std::vector< double,std::allocator< double > > result;
72444 
72445   if (!args) SWIG_fail;
72446   swig_obj[0] = args;
72447   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72448   if (!SWIG_IsOK(res1)) {
72449     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_positional_entropy" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72450   }
72451   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72452   {
72453     try {
72454       result = vrna_fold_compound_t_positional_entropy(arg1);
72455     } catch (const std::exception& e) {
72456       SWIG_exception(SWIG_RuntimeError, e.what());
72457     }
72458   }
72459   resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
72460   return resultobj;
72461 fail:
72462   return NULL;
72463 }
72464 
72465 
_wrap_fold_compound_pr_structure(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)72466 SWIGINTERN PyObject *_wrap_fold_compound_pr_structure(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72467   PyObject *resultobj = 0;
72468   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72469   std::string arg2 ;
72470   void *argp1 = 0 ;
72471   int res1 = 0 ;
72472   PyObject * obj0 = 0 ;
72473   PyObject * obj1 = 0 ;
72474   char * kwnames[] = {
72475     (char *)"self",  (char *)"structure",  NULL
72476   };
72477   double result;
72478 
72479   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:fold_compound_pr_structure", kwnames, &obj0, &obj1)) SWIG_fail;
72480   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72481   if (!SWIG_IsOK(res1)) {
72482     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_pr_structure" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72483   }
72484   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72485   {
72486     std::string *ptr = (std::string *)0;
72487     int res = SWIG_AsPtr_std_string(obj1, &ptr);
72488     if (!SWIG_IsOK(res) || !ptr) {
72489       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_pr_structure" "', argument " "2"" of type '" "std::string""'");
72490     }
72491     arg2 = *ptr;
72492     if (SWIG_IsNewObj(res)) delete ptr;
72493   }
72494   {
72495     try {
72496       result = (double)vrna_fold_compound_t_pr_structure(arg1,arg2);
72497     } catch (const std::exception& e) {
72498       SWIG_exception(SWIG_RuntimeError, e.what());
72499     }
72500   }
72501   resultobj = SWIG_From_double(static_cast< double >(result));
72502   return resultobj;
72503 fail:
72504   return NULL;
72505 }
72506 
72507 
_wrap_fold_compound_pr_energy(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)72508 SWIGINTERN PyObject *_wrap_fold_compound_pr_energy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72509   PyObject *resultobj = 0;
72510   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72511   double arg2 ;
72512   void *argp1 = 0 ;
72513   int res1 = 0 ;
72514   double val2 ;
72515   int ecode2 = 0 ;
72516   PyObject * obj0 = 0 ;
72517   PyObject * obj1 = 0 ;
72518   char * kwnames[] = {
72519     (char *)"self",  (char *)"e",  NULL
72520   };
72521   double result;
72522 
72523   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:fold_compound_pr_energy", kwnames, &obj0, &obj1)) SWIG_fail;
72524   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72525   if (!SWIG_IsOK(res1)) {
72526     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_pr_energy" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72527   }
72528   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72529   ecode2 = SWIG_AsVal_double(obj1, &val2);
72530   if (!SWIG_IsOK(ecode2)) {
72531     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_pr_energy" "', argument " "2"" of type '" "double""'");
72532   }
72533   arg2 = static_cast< double >(val2);
72534   {
72535     try {
72536       result = (double)vrna_fold_compound_t_pr_energy(arg1,arg2);
72537     } catch (const std::exception& e) {
72538       SWIG_exception(SWIG_RuntimeError, e.what());
72539     }
72540   }
72541   resultobj = SWIG_From_double(static_cast< double >(result));
72542   return resultobj;
72543 fail:
72544   return NULL;
72545 }
72546 
72547 
_wrap_fold_compound_pf_dimer(PyObject * SWIGUNUSEDPARM (self),PyObject * args)72548 SWIGINTERN PyObject *_wrap_fold_compound_pf_dimer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72549   PyObject *resultobj = 0;
72550   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72551   float *arg2 = (float *) 0 ;
72552   float *arg3 = (float *) 0 ;
72553   float *arg4 = (float *) 0 ;
72554   float *arg5 = (float *) 0 ;
72555   void *argp1 = 0 ;
72556   int res1 = 0 ;
72557   float temp2 ;
72558   int res2 = SWIG_TMPOBJ ;
72559   float temp3 ;
72560   int res3 = SWIG_TMPOBJ ;
72561   float temp4 ;
72562   int res4 = SWIG_TMPOBJ ;
72563   float temp5 ;
72564   int res5 = SWIG_TMPOBJ ;
72565   PyObject *swig_obj[1] ;
72566   char *result = 0 ;
72567 
72568   arg2 = &temp2;
72569   arg3 = &temp3;
72570   arg4 = &temp4;
72571   arg5 = &temp5;
72572   if (!args) SWIG_fail;
72573   swig_obj[0] = args;
72574   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72575   if (!SWIG_IsOK(res1)) {
72576     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_pf_dimer" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72577   }
72578   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72579   {
72580     try {
72581       result = (char *)vrna_fold_compound_t_pf_dimer(arg1,arg2,arg3,arg4,arg5);
72582     } catch (const std::exception& e) {
72583       SWIG_exception(SWIG_RuntimeError, e.what());
72584     }
72585   }
72586   resultobj = SWIG_FromCharPtr((const char *)result);
72587   if (SWIG_IsTmpObj(res2)) {
72588     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg2)));
72589   } else {
72590     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
72591     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_float, new_flags));
72592   }
72593   if (SWIG_IsTmpObj(res3)) {
72594     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg3)));
72595   } else {
72596     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
72597     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_float, new_flags));
72598   }
72599   if (SWIG_IsTmpObj(res4)) {
72600     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg4)));
72601   } else {
72602     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
72603     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_float, new_flags));
72604   }
72605   if (SWIG_IsTmpObj(res5)) {
72606     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg5)));
72607   } else {
72608     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
72609     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_float, new_flags));
72610   }
72611   delete[] result;
72612   return resultobj;
72613 fail:
72614   return NULL;
72615 }
72616 
72617 
_wrap_fold_compound_bpp(PyObject * SWIGUNUSEDPARM (self),PyObject * args)72618 SWIGINTERN PyObject *_wrap_fold_compound_bpp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72619   PyObject *resultobj = 0;
72620   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72621   void *argp1 = 0 ;
72622   int res1 = 0 ;
72623   PyObject *swig_obj[1] ;
72624   std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > result;
72625 
72626   if (!args) SWIG_fail;
72627   swig_obj[0] = args;
72628   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72629   if (!SWIG_IsOK(res1)) {
72630     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_bpp" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72631   }
72632   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72633   {
72634     try {
72635       result = vrna_fold_compound_t_bpp(arg1);
72636     } catch (const std::exception& e) {
72637       SWIG_exception(SWIG_RuntimeError, e.what());
72638     }
72639   }
72640   resultobj = swig::from(static_cast< std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > >(result));
72641   return resultobj;
72642 fail:
72643   return NULL;
72644 }
72645 
72646 
_wrap_fold_compound_centroid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)72647 SWIGINTERN PyObject *_wrap_fold_compound_centroid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72648   PyObject *resultobj = 0;
72649   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72650   double *arg2 = (double *) 0 ;
72651   void *argp1 = 0 ;
72652   int res1 = 0 ;
72653   double temp2 ;
72654   int res2 = SWIG_TMPOBJ ;
72655   PyObject *swig_obj[1] ;
72656   char *result = 0 ;
72657 
72658   arg2 = &temp2;
72659   if (!args) SWIG_fail;
72660   swig_obj[0] = args;
72661   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72662   if (!SWIG_IsOK(res1)) {
72663     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_centroid" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72664   }
72665   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72666   {
72667     try {
72668       result = (char *)vrna_fold_compound_t_centroid(arg1,arg2);
72669     } catch (const std::exception& e) {
72670       SWIG_exception(SWIG_RuntimeError, e.what());
72671     }
72672   }
72673   resultobj = SWIG_FromCharPtr((const char *)result);
72674   if (SWIG_IsTmpObj(res2)) {
72675     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
72676   } else {
72677     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
72678     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
72679   }
72680   delete[] result;
72681   return resultobj;
72682 fail:
72683   return NULL;
72684 }
72685 
72686 
_wrap_fold_compound_MEA__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)72687 SWIGINTERN PyObject *_wrap_fold_compound_MEA__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
72688   PyObject *resultobj = 0;
72689   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72690   float *arg2 = (float *) 0 ;
72691   void *argp1 = 0 ;
72692   int res1 = 0 ;
72693   float temp2 ;
72694   int res2 = SWIG_TMPOBJ ;
72695   char *result = 0 ;
72696 
72697   arg2 = &temp2;
72698   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
72699   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72700   if (!SWIG_IsOK(res1)) {
72701     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_MEA" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72702   }
72703   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72704   {
72705     try {
72706       result = (char *)vrna_fold_compound_t_MEA__SWIG_0(arg1,arg2);
72707     } catch (const std::exception& e) {
72708       SWIG_exception(SWIG_RuntimeError, e.what());
72709     }
72710   }
72711   resultobj = SWIG_FromCharPtr((const char *)result);
72712   if (SWIG_IsTmpObj(res2)) {
72713     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg2)));
72714   } else {
72715     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
72716     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_float, new_flags));
72717   }
72718   delete[] result;
72719   return resultobj;
72720 fail:
72721   return NULL;
72722 }
72723 
72724 
_wrap_fold_compound_MEA__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)72725 SWIGINTERN PyObject *_wrap_fold_compound_MEA__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
72726   PyObject *resultobj = 0;
72727   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72728   double arg2 ;
72729   float *arg3 = (float *) 0 ;
72730   void *argp1 = 0 ;
72731   int res1 = 0 ;
72732   double val2 ;
72733   int ecode2 = 0 ;
72734   float temp3 ;
72735   int res3 = SWIG_TMPOBJ ;
72736   char *result = 0 ;
72737 
72738   arg3 = &temp3;
72739   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
72740   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72741   if (!SWIG_IsOK(res1)) {
72742     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_MEA" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72743   }
72744   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72745   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
72746   if (!SWIG_IsOK(ecode2)) {
72747     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_MEA" "', argument " "2"" of type '" "double""'");
72748   }
72749   arg2 = static_cast< double >(val2);
72750   {
72751     try {
72752       result = (char *)vrna_fold_compound_t_MEA__SWIG_1(arg1,arg2,arg3);
72753     } catch (const std::exception& e) {
72754       SWIG_exception(SWIG_RuntimeError, e.what());
72755     }
72756   }
72757   resultobj = SWIG_FromCharPtr((const char *)result);
72758   if (SWIG_IsTmpObj(res3)) {
72759     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg3)));
72760   } else {
72761     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
72762     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_float, new_flags));
72763   }
72764   delete[] result;
72765   return resultobj;
72766 fail:
72767   return NULL;
72768 }
72769 
72770 
_wrap_fold_compound_MEA(PyObject * self,PyObject * args)72771 SWIGINTERN PyObject *_wrap_fold_compound_MEA(PyObject *self, PyObject *args) {
72772   Py_ssize_t argc;
72773   PyObject *argv[3] = {
72774     0
72775   };
72776 
72777   if (!(argc = SWIG_Python_UnpackTuple(args, "fold_compound_MEA", 0, 2, argv))) SWIG_fail;
72778   --argc;
72779   if (argc == 1) {
72780     int _v;
72781     void *vptr = 0;
72782     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
72783     _v = SWIG_CheckState(res);
72784     if (_v) {
72785       return _wrap_fold_compound_MEA__SWIG_0(self, argc, argv);
72786     }
72787   }
72788   if (argc == 2) {
72789     int _v;
72790     void *vptr = 0;
72791     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
72792     _v = SWIG_CheckState(res);
72793     if (_v) {
72794       {
72795         int res = SWIG_AsVal_double(argv[1], NULL);
72796         _v = SWIG_CheckState(res);
72797       }
72798       if (_v) {
72799         return _wrap_fold_compound_MEA__SWIG_1(self, argc, argv);
72800       }
72801     }
72802   }
72803 
72804 fail:
72805   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'fold_compound_MEA'.\n"
72806     "  Possible C/C++ prototypes are:\n"
72807     "    vrna_fold_compound_t::MEA(float *)\n"
72808     "    vrna_fold_compound_t::MEA(double,float *)\n");
72809   return 0;
72810 }
72811 
72812 
_wrap_fold_compound_pbacktrack__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)72813 SWIGINTERN PyObject *_wrap_fold_compound_pbacktrack__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
72814   PyObject *resultobj = 0;
72815   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72816   void *argp1 = 0 ;
72817   int res1 = 0 ;
72818   char *result = 0 ;
72819 
72820   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
72821   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72822   if (!SWIG_IsOK(res1)) {
72823     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_pbacktrack" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72824   }
72825   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72826   {
72827     try {
72828       result = (char *)vrna_fold_compound_t_pbacktrack__SWIG_0(arg1);
72829     } catch (const std::exception& e) {
72830       SWIG_exception(SWIG_RuntimeError, e.what());
72831     }
72832   }
72833   resultobj = SWIG_FromCharPtr((const char *)result);
72834   delete[] result;
72835   return resultobj;
72836 fail:
72837   return NULL;
72838 }
72839 
72840 
_wrap_fold_compound_pbacktrack5__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)72841 SWIGINTERN PyObject *_wrap_fold_compound_pbacktrack5__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
72842   PyObject *resultobj = 0;
72843   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72844   unsigned int arg2 ;
72845   void *argp1 = 0 ;
72846   int res1 = 0 ;
72847   unsigned int val2 ;
72848   int ecode2 = 0 ;
72849   char *result = 0 ;
72850 
72851   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
72852   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72853   if (!SWIG_IsOK(res1)) {
72854     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_pbacktrack5" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72855   }
72856   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72857   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
72858   if (!SWIG_IsOK(ecode2)) {
72859     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_pbacktrack5" "', argument " "2"" of type '" "unsigned int""'");
72860   }
72861   arg2 = static_cast< unsigned int >(val2);
72862   {
72863     try {
72864       result = (char *)vrna_fold_compound_t_pbacktrack5__SWIG_0(arg1,arg2);
72865     } catch (const std::exception& e) {
72866       SWIG_exception(SWIG_RuntimeError, e.what());
72867     }
72868   }
72869   resultobj = SWIG_FromCharPtr((const char *)result);
72870   return resultobj;
72871 fail:
72872   return NULL;
72873 }
72874 
72875 
_wrap_fold_compound_pbacktrack__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)72876 SWIGINTERN PyObject *_wrap_fold_compound_pbacktrack__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
72877   PyObject *resultobj = 0;
72878   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72879   unsigned int arg2 ;
72880   unsigned int arg3 = (unsigned int) VRNA_PBACKTRACK_DEFAULT ;
72881   void *argp1 = 0 ;
72882   int res1 = 0 ;
72883   unsigned int val2 ;
72884   int ecode2 = 0 ;
72885   unsigned int val3 ;
72886   int ecode3 = 0 ;
72887   std::vector< std::string,std::allocator< std::string > > result;
72888 
72889   if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
72890   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72891   if (!SWIG_IsOK(res1)) {
72892     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_pbacktrack" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72893   }
72894   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72895   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
72896   if (!SWIG_IsOK(ecode2)) {
72897     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_pbacktrack" "', argument " "2"" of type '" "unsigned int""'");
72898   }
72899   arg2 = static_cast< unsigned int >(val2);
72900   if (swig_obj[2]) {
72901     ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
72902     if (!SWIG_IsOK(ecode3)) {
72903       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_pbacktrack" "', argument " "3"" of type '" "unsigned int""'");
72904     }
72905     arg3 = static_cast< unsigned int >(val3);
72906   }
72907   {
72908     try {
72909       result = vrna_fold_compound_t_pbacktrack__SWIG_1(arg1,arg2,arg3);
72910     } catch (const std::exception& e) {
72911       SWIG_exception(SWIG_RuntimeError, e.what());
72912     }
72913   }
72914   resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result));
72915   return resultobj;
72916 fail:
72917   return NULL;
72918 }
72919 
72920 
_wrap_fold_compound_pbacktrack5__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)72921 SWIGINTERN PyObject *_wrap_fold_compound_pbacktrack5__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
72922   PyObject *resultobj = 0;
72923   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72924   unsigned int arg2 ;
72925   unsigned int arg3 ;
72926   unsigned int arg4 = (unsigned int) VRNA_PBACKTRACK_DEFAULT ;
72927   void *argp1 = 0 ;
72928   int res1 = 0 ;
72929   unsigned int val2 ;
72930   int ecode2 = 0 ;
72931   unsigned int val3 ;
72932   int ecode3 = 0 ;
72933   unsigned int val4 ;
72934   int ecode4 = 0 ;
72935   std::vector< std::string,std::allocator< std::string > > result;
72936 
72937   if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
72938   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72939   if (!SWIG_IsOK(res1)) {
72940     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_pbacktrack5" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72941   }
72942   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72943   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
72944   if (!SWIG_IsOK(ecode2)) {
72945     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_pbacktrack5" "', argument " "2"" of type '" "unsigned int""'");
72946   }
72947   arg2 = static_cast< unsigned int >(val2);
72948   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
72949   if (!SWIG_IsOK(ecode3)) {
72950     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_pbacktrack5" "', argument " "3"" of type '" "unsigned int""'");
72951   }
72952   arg3 = static_cast< unsigned int >(val3);
72953   if (swig_obj[3]) {
72954     ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
72955     if (!SWIG_IsOK(ecode4)) {
72956       SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_pbacktrack5" "', argument " "4"" of type '" "unsigned int""'");
72957     }
72958     arg4 = static_cast< unsigned int >(val4);
72959   }
72960   {
72961     try {
72962       result = vrna_fold_compound_t_pbacktrack5__SWIG_1(arg1,arg2,arg3,arg4);
72963     } catch (const std::exception& e) {
72964       SWIG_exception(SWIG_RuntimeError, e.what());
72965     }
72966   }
72967   resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result));
72968   return resultobj;
72969 fail:
72970   return NULL;
72971 }
72972 
72973 
_wrap_fold_compound_pbacktrack__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)72974 SWIGINTERN PyObject *_wrap_fold_compound_pbacktrack__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
72975   PyObject *resultobj = 0;
72976   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
72977   unsigned int arg2 ;
72978   vrna_pbacktrack_mem_t *arg3 = (vrna_pbacktrack_mem_t *) 0 ;
72979   unsigned int arg4 = (unsigned int) VRNA_PBACKTRACK_DEFAULT ;
72980   void *argp1 = 0 ;
72981   int res1 = 0 ;
72982   unsigned int val2 ;
72983   int ecode2 = 0 ;
72984   vrna_pbacktrack_mem_t *retval3 ;
72985   unsigned int val4 ;
72986   int ecode4 = 0 ;
72987   std::vector< std::string,std::allocator< std::string > > result;
72988 
72989   if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
72990   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
72991   if (!SWIG_IsOK(res1)) {
72992     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_pbacktrack" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
72993   }
72994   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
72995   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
72996   if (!SWIG_IsOK(ecode2)) {
72997     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_pbacktrack" "', argument " "2"" of type '" "unsigned int""'");
72998   }
72999   arg2 = static_cast< unsigned int >(val2);
73000   {
73001     if (swig_obj[2] == Py_None) {
73002       retval3 = new vrna_pbacktrack_mem_t();
73003       arg3 = retval3;
73004     } else {
73005       /* INOUT in */
73006       SWIG_ConvertPtr(swig_obj[2],SWIG_as_voidptrptr(&retval3), 0, SWIG_POINTER_DISOWN);
73007       arg3 = retval3;
73008     }
73009   }
73010   if (swig_obj[3]) {
73011     ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
73012     if (!SWIG_IsOK(ecode4)) {
73013       SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_pbacktrack" "', argument " "4"" of type '" "unsigned int""'");
73014     }
73015     arg4 = static_cast< unsigned int >(val4);
73016   }
73017   {
73018     try {
73019       result = vrna_fold_compound_t_pbacktrack__SWIG_2(arg1,arg2,arg3,arg4);
73020     } catch (const std::exception& e) {
73021       SWIG_exception(SWIG_RuntimeError, e.what());
73022     }
73023   }
73024   resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result));
73025   {
73026     PyObject *o, *o2, *o3;
73027     o = SWIG_NewPointerObj(SWIG_as_voidptr(retval3), SWIGTYPE_p_vrna_pbacktrack_mem_t, 1);
73028     if ((!resultobj) || (resultobj == Py_None)) {
73029       resultobj = o;
73030     } else {
73031       PyObject *o2 = resultobj;
73032       resultobj = PyTuple_New(1);
73033       PyTuple_SetItem(resultobj,0,o2);
73034       o3 = PyTuple_New(1);
73035       PyTuple_SetItem(o3,0,o);
73036       o2 = resultobj;
73037       resultobj = PySequence_Concat(o3,o2);
73038       Py_DECREF(o2);
73039       Py_DECREF(o3);
73040     }
73041   }
73042   return resultobj;
73043 fail:
73044   return NULL;
73045 }
73046 
73047 
_wrap_fold_compound_pbacktrack5__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)73048 SWIGINTERN PyObject *_wrap_fold_compound_pbacktrack5__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
73049   PyObject *resultobj = 0;
73050   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
73051   unsigned int arg2 ;
73052   unsigned int arg3 ;
73053   vrna_pbacktrack_mem_t *arg4 = (vrna_pbacktrack_mem_t *) 0 ;
73054   unsigned int arg5 = (unsigned int) VRNA_PBACKTRACK_DEFAULT ;
73055   void *argp1 = 0 ;
73056   int res1 = 0 ;
73057   unsigned int val2 ;
73058   int ecode2 = 0 ;
73059   unsigned int val3 ;
73060   int ecode3 = 0 ;
73061   vrna_pbacktrack_mem_t *retval4 ;
73062   unsigned int val5 ;
73063   int ecode5 = 0 ;
73064   std::vector< std::string,std::allocator< std::string > > result;
73065 
73066   if ((nobjs < 4) || (nobjs > 5)) SWIG_fail;
73067   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
73068   if (!SWIG_IsOK(res1)) {
73069     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_pbacktrack5" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
73070   }
73071   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
73072   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
73073   if (!SWIG_IsOK(ecode2)) {
73074     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_pbacktrack5" "', argument " "2"" of type '" "unsigned int""'");
73075   }
73076   arg2 = static_cast< unsigned int >(val2);
73077   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
73078   if (!SWIG_IsOK(ecode3)) {
73079     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_pbacktrack5" "', argument " "3"" of type '" "unsigned int""'");
73080   }
73081   arg3 = static_cast< unsigned int >(val3);
73082   {
73083     if (swig_obj[3] == Py_None) {
73084       retval4 = new vrna_pbacktrack_mem_t();
73085       arg4 = retval4;
73086     } else {
73087       /* INOUT in */
73088       SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&retval4), 0, SWIG_POINTER_DISOWN);
73089       arg4 = retval4;
73090     }
73091   }
73092   if (swig_obj[4]) {
73093     ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5);
73094     if (!SWIG_IsOK(ecode5)) {
73095       SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "fold_compound_pbacktrack5" "', argument " "5"" of type '" "unsigned int""'");
73096     }
73097     arg5 = static_cast< unsigned int >(val5);
73098   }
73099   {
73100     try {
73101       result = vrna_fold_compound_t_pbacktrack5__SWIG_2(arg1,arg2,arg3,arg4,arg5);
73102     } catch (const std::exception& e) {
73103       SWIG_exception(SWIG_RuntimeError, e.what());
73104     }
73105   }
73106   resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result));
73107   {
73108     PyObject *o, *o2, *o3;
73109     o = SWIG_NewPointerObj(SWIG_as_voidptr(retval4), SWIGTYPE_p_vrna_pbacktrack_mem_t, 1);
73110     if ((!resultobj) || (resultobj == Py_None)) {
73111       resultobj = o;
73112     } else {
73113       PyObject *o2 = resultobj;
73114       resultobj = PyTuple_New(1);
73115       PyTuple_SetItem(resultobj,0,o2);
73116       o3 = PyTuple_New(1);
73117       PyTuple_SetItem(o3,0,o);
73118       o2 = resultobj;
73119       resultobj = PySequence_Concat(o3,o2);
73120       Py_DECREF(o2);
73121       Py_DECREF(o3);
73122     }
73123   }
73124   return resultobj;
73125 fail:
73126   return NULL;
73127 }
73128 
73129 
_wrap_fold_compound_subopt(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)73130 SWIGINTERN PyObject *_wrap_fold_compound_subopt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
73131   PyObject *resultobj = 0;
73132   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
73133   int arg2 ;
73134   int arg3 = (int) 1 ;
73135   FILE *arg4 = (FILE *) NULL ;
73136   void *argp1 = 0 ;
73137   int res1 = 0 ;
73138   int val2 ;
73139   int ecode2 = 0 ;
73140   int val3 ;
73141   int ecode3 = 0 ;
73142   PyObject * obj0 = 0 ;
73143   PyObject * obj1 = 0 ;
73144   PyObject * obj2 = 0 ;
73145   PyObject * obj3 = 0 ;
73146   char * kwnames[] = {
73147     (char *)"self",  (char *)"delta",  (char *)"sorted",  (char *)"nullfile",  NULL
73148   };
73149   std::vector< subopt_solution,std::allocator< subopt_solution > > result;
73150 
73151   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|OO:fold_compound_subopt", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
73152   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
73153   if (!SWIG_IsOK(res1)) {
73154     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_subopt" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
73155   }
73156   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
73157   ecode2 = SWIG_AsVal_int(obj1, &val2);
73158   if (!SWIG_IsOK(ecode2)) {
73159     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_subopt" "', argument " "2"" of type '" "int""'");
73160   }
73161   arg2 = static_cast< int >(val2);
73162   if (obj2) {
73163     ecode3 = SWIG_AsVal_int(obj2, &val3);
73164     if (!SWIG_IsOK(ecode3)) {
73165       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_subopt" "', argument " "3"" of type '" "int""'");
73166     }
73167     arg3 = static_cast< int >(val3);
73168   }
73169   if (obj3) {
73170     {
73171       if (PyFile_Check(obj3)) /* check for undef */
73172       arg4 = PyFile_AsFile(obj3);
73173       else  arg4 = NULL;
73174     }
73175   }
73176   {
73177     try {
73178       result = vrna_fold_compound_t_subopt(arg1,arg2,arg3,arg4);
73179     } catch (const std::exception& e) {
73180       SWIG_exception(SWIG_RuntimeError, e.what());
73181     }
73182   }
73183   resultobj = swig::from(static_cast< std::vector< subopt_solution,std::allocator< subopt_solution > > >(result));
73184   return resultobj;
73185 fail:
73186   return NULL;
73187 }
73188 
73189 
_wrap_fold_compound_subopt_zuker(PyObject * SWIGUNUSEDPARM (self),PyObject * args)73190 SWIGINTERN PyObject *_wrap_fold_compound_subopt_zuker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
73191   PyObject *resultobj = 0;
73192   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
73193   void *argp1 = 0 ;
73194   int res1 = 0 ;
73195   PyObject *swig_obj[1] ;
73196   std::vector< subopt_solution,std::allocator< subopt_solution > > result;
73197 
73198   if (!args) SWIG_fail;
73199   swig_obj[0] = args;
73200   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
73201   if (!SWIG_IsOK(res1)) {
73202     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_subopt_zuker" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
73203   }
73204   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
73205   {
73206     try {
73207       result = vrna_fold_compound_t_subopt_zuker(arg1);
73208     } catch (const std::exception& e) {
73209       SWIG_exception(SWIG_RuntimeError, e.what());
73210     }
73211   }
73212   resultobj = swig::from(static_cast< std::vector< subopt_solution,std::allocator< subopt_solution > > >(result));
73213   return resultobj;
73214 fail:
73215   return NULL;
73216 }
73217 
73218 
_wrap_fold_compound_sequence_add(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)73219 SWIGINTERN PyObject *_wrap_fold_compound_sequence_add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
73220   PyObject *resultobj = 0;
73221   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
73222   std::string arg2 ;
73223   unsigned int arg3 = (unsigned int) VRNA_SEQUENCE_RNA ;
73224   void *argp1 = 0 ;
73225   int res1 = 0 ;
73226   unsigned int val3 ;
73227   int ecode3 = 0 ;
73228   PyObject * obj0 = 0 ;
73229   PyObject * obj1 = 0 ;
73230   PyObject * obj2 = 0 ;
73231   char * kwnames[] = {
73232     (char *)"self",  (char *)"sequence",  (char *)"options",  NULL
73233   };
73234   int result;
73235 
73236   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:fold_compound_sequence_add", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
73237   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
73238   if (!SWIG_IsOK(res1)) {
73239     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sequence_add" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
73240   }
73241   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
73242   {
73243     std::string *ptr = (std::string *)0;
73244     int res = SWIG_AsPtr_std_string(obj1, &ptr);
73245     if (!SWIG_IsOK(res) || !ptr) {
73246       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_sequence_add" "', argument " "2"" of type '" "std::string""'");
73247     }
73248     arg2 = *ptr;
73249     if (SWIG_IsNewObj(res)) delete ptr;
73250   }
73251   if (obj2) {
73252     ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
73253     if (!SWIG_IsOK(ecode3)) {
73254       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_sequence_add" "', argument " "3"" of type '" "unsigned int""'");
73255     }
73256     arg3 = static_cast< unsigned int >(val3);
73257   }
73258   {
73259     try {
73260       result = (int)vrna_fold_compound_t_sequence_add(arg1,arg2,arg3);
73261     } catch (const std::exception& e) {
73262       SWIG_exception(SWIG_RuntimeError, e.what());
73263     }
73264   }
73265   resultobj = SWIG_From_int(static_cast< int >(result));
73266   return resultobj;
73267 fail:
73268   return NULL;
73269 }
73270 
73271 
_wrap_fold_compound_sequence_remove(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)73272 SWIGINTERN PyObject *_wrap_fold_compound_sequence_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
73273   PyObject *resultobj = 0;
73274   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
73275   unsigned int arg2 ;
73276   void *argp1 = 0 ;
73277   int res1 = 0 ;
73278   unsigned int val2 ;
73279   int ecode2 = 0 ;
73280   PyObject * obj0 = 0 ;
73281   PyObject * obj1 = 0 ;
73282   char * kwnames[] = {
73283     (char *)"self",  (char *)"i",  NULL
73284   };
73285   int result;
73286 
73287   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:fold_compound_sequence_remove", kwnames, &obj0, &obj1)) SWIG_fail;
73288   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
73289   if (!SWIG_IsOK(res1)) {
73290     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sequence_remove" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
73291   }
73292   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
73293   ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
73294   if (!SWIG_IsOK(ecode2)) {
73295     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_sequence_remove" "', argument " "2"" of type '" "unsigned int""'");
73296   }
73297   arg2 = static_cast< unsigned int >(val2);
73298   {
73299     try {
73300       result = (int)vrna_fold_compound_t_sequence_remove(arg1,arg2);
73301     } catch (const std::exception& e) {
73302       SWIG_exception(SWIG_RuntimeError, e.what());
73303     }
73304   }
73305   resultobj = SWIG_From_int(static_cast< int >(result));
73306   return resultobj;
73307 fail:
73308   return NULL;
73309 }
73310 
73311 
_wrap_fold_compound_sequence_remove_all(PyObject * SWIGUNUSEDPARM (self),PyObject * args)73312 SWIGINTERN PyObject *_wrap_fold_compound_sequence_remove_all(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
73313   PyObject *resultobj = 0;
73314   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
73315   void *argp1 = 0 ;
73316   int res1 = 0 ;
73317   PyObject *swig_obj[1] ;
73318 
73319   if (!args) SWIG_fail;
73320   swig_obj[0] = args;
73321   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
73322   if (!SWIG_IsOK(res1)) {
73323     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sequence_remove_all" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
73324   }
73325   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
73326   {
73327     try {
73328       vrna_fold_compound_t_sequence_remove_all(arg1);
73329     } catch (const std::exception& e) {
73330       SWIG_exception(SWIG_RuntimeError, e.what());
73331     }
73332   }
73333   resultobj = SWIG_Py_Void();
73334   return resultobj;
73335 fail:
73336   return NULL;
73337 }
73338 
73339 
_wrap_fold_compound_sequence_prepare(PyObject * SWIGUNUSEDPARM (self),PyObject * args)73340 SWIGINTERN PyObject *_wrap_fold_compound_sequence_prepare(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
73341   PyObject *resultobj = 0;
73342   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
73343   void *argp1 = 0 ;
73344   int res1 = 0 ;
73345   PyObject *swig_obj[1] ;
73346 
73347   if (!args) SWIG_fail;
73348   swig_obj[0] = args;
73349   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
73350   if (!SWIG_IsOK(res1)) {
73351     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sequence_prepare" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
73352   }
73353   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
73354   {
73355     try {
73356       vrna_fold_compound_t_sequence_prepare(arg1);
73357     } catch (const std::exception& e) {
73358       SWIG_exception(SWIG_RuntimeError, e.what());
73359     }
73360   }
73361   resultobj = SWIG_Py_Void();
73362   return resultobj;
73363 fail:
73364   return NULL;
73365 }
73366 
73367 
_wrap_fold_compound_ud_add_motif(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)73368 SWIGINTERN PyObject *_wrap_fold_compound_ud_add_motif(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
73369   PyObject *resultobj = 0;
73370   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
73371   std::string arg2 ;
73372   double arg3 ;
73373   std::string arg4 = (std::string) "" ;
73374   unsigned int arg5 = (unsigned int) VRNA_UNSTRUCTURED_DOMAIN_ALL_LOOPS ;
73375   void *argp1 = 0 ;
73376   int res1 = 0 ;
73377   double val3 ;
73378   int ecode3 = 0 ;
73379   unsigned int val5 ;
73380   int ecode5 = 0 ;
73381   PyObject * obj0 = 0 ;
73382   PyObject * obj1 = 0 ;
73383   PyObject * obj2 = 0 ;
73384   PyObject * obj3 = 0 ;
73385   PyObject * obj4 = 0 ;
73386   char * kwnames[] = {
73387     (char *)"self",  (char *)"motif",  (char *)"motif_en",  (char *)"name",  (char *)"options",  NULL
73388   };
73389 
73390   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO|OO:fold_compound_ud_add_motif", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
73391   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
73392   if (!SWIG_IsOK(res1)) {
73393     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_ud_add_motif" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
73394   }
73395   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
73396   {
73397     std::string *ptr = (std::string *)0;
73398     int res = SWIG_AsPtr_std_string(obj1, &ptr);
73399     if (!SWIG_IsOK(res) || !ptr) {
73400       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_ud_add_motif" "', argument " "2"" of type '" "std::string""'");
73401     }
73402     arg2 = *ptr;
73403     if (SWIG_IsNewObj(res)) delete ptr;
73404   }
73405   ecode3 = SWIG_AsVal_double(obj2, &val3);
73406   if (!SWIG_IsOK(ecode3)) {
73407     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_ud_add_motif" "', argument " "3"" of type '" "double""'");
73408   }
73409   arg3 = static_cast< double >(val3);
73410   if (obj3) {
73411     {
73412       std::string *ptr = (std::string *)0;
73413       int res = SWIG_AsPtr_std_string(obj3, &ptr);
73414       if (!SWIG_IsOK(res) || !ptr) {
73415         SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_ud_add_motif" "', argument " "4"" of type '" "std::string""'");
73416       }
73417       arg4 = *ptr;
73418       if (SWIG_IsNewObj(res)) delete ptr;
73419     }
73420   }
73421   if (obj4) {
73422     ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
73423     if (!SWIG_IsOK(ecode5)) {
73424       SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "fold_compound_ud_add_motif" "', argument " "5"" of type '" "unsigned int""'");
73425     }
73426     arg5 = static_cast< unsigned int >(val5);
73427   }
73428   {
73429     try {
73430       vrna_fold_compound_t_ud_add_motif(arg1,arg2,arg3,arg4,arg5);
73431     } catch (const std::exception& e) {
73432       SWIG_exception(SWIG_RuntimeError, e.what());
73433     }
73434   }
73435   resultobj = SWIG_Py_Void();
73436   return resultobj;
73437 fail:
73438   return NULL;
73439 }
73440 
73441 
_wrap_fold_compound_ud_remove(PyObject * SWIGUNUSEDPARM (self),PyObject * args)73442 SWIGINTERN PyObject *_wrap_fold_compound_ud_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
73443   PyObject *resultobj = 0;
73444   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
73445   void *argp1 = 0 ;
73446   int res1 = 0 ;
73447   PyObject *swig_obj[1] ;
73448 
73449   if (!args) SWIG_fail;
73450   swig_obj[0] = args;
73451   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
73452   if (!SWIG_IsOK(res1)) {
73453     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_ud_remove" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
73454   }
73455   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
73456   {
73457     try {
73458       vrna_fold_compound_t_ud_remove(arg1);
73459     } catch (const std::exception& e) {
73460       SWIG_exception(SWIG_RuntimeError, e.what());
73461     }
73462   }
73463   resultobj = SWIG_Py_Void();
73464   return resultobj;
73465 fail:
73466   return NULL;
73467 }
73468 
73469 
_wrap_fold_compound_commands_apply(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)73470 SWIGINTERN PyObject *_wrap_fold_compound_commands_apply(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
73471   PyObject *resultobj = 0;
73472   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
73473   vrna_command_s *arg2 = (vrna_command_s *) 0 ;
73474   unsigned int arg3 = (unsigned int) VRNA_CMD_PARSE_DEFAULTS ;
73475   void *argp1 = 0 ;
73476   int res1 = 0 ;
73477   void *argp2 = 0 ;
73478   int res2 = 0 ;
73479   unsigned int val3 ;
73480   int ecode3 = 0 ;
73481   PyObject * obj0 = 0 ;
73482   PyObject * obj1 = 0 ;
73483   PyObject * obj2 = 0 ;
73484   char * kwnames[] = {
73485     (char *)"self",  (char *)"commands",  (char *)"options",  NULL
73486   };
73487   int result;
73488 
73489   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:fold_compound_commands_apply", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
73490   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
73491   if (!SWIG_IsOK(res1)) {
73492     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_commands_apply" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
73493   }
73494   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
73495   res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_vrna_command_s, 0 |  0 );
73496   if (!SWIG_IsOK(res2)) {
73497     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fold_compound_commands_apply" "', argument " "2"" of type '" "vrna_command_s *""'");
73498   }
73499   arg2 = reinterpret_cast< vrna_command_s * >(argp2);
73500   if (obj2) {
73501     ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
73502     if (!SWIG_IsOK(ecode3)) {
73503       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_commands_apply" "', argument " "3"" of type '" "unsigned int""'");
73504     }
73505     arg3 = static_cast< unsigned int >(val3);
73506   }
73507   {
73508     try {
73509       result = (int)vrna_fold_compound_t_commands_apply(arg1,arg2,arg3);
73510     } catch (const std::exception& e) {
73511       SWIG_exception(SWIG_RuntimeError, e.what());
73512     }
73513   }
73514   resultobj = SWIG_From_int(static_cast< int >(result));
73515   return resultobj;
73516 fail:
73517   return NULL;
73518 }
73519 
73520 
_wrap_fold_compound_file_commands_apply(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)73521 SWIGINTERN PyObject *_wrap_fold_compound_file_commands_apply(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
73522   PyObject *resultobj = 0;
73523   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
73524   std::string arg2 ;
73525   unsigned int arg3 = (unsigned int) VRNA_CMD_PARSE_DEFAULTS ;
73526   void *argp1 = 0 ;
73527   int res1 = 0 ;
73528   unsigned int val3 ;
73529   int ecode3 = 0 ;
73530   PyObject * obj0 = 0 ;
73531   PyObject * obj1 = 0 ;
73532   PyObject * obj2 = 0 ;
73533   char * kwnames[] = {
73534     (char *)"self",  (char *)"filename",  (char *)"options",  NULL
73535   };
73536   int result;
73537 
73538   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:fold_compound_file_commands_apply", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
73539   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
73540   if (!SWIG_IsOK(res1)) {
73541     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_file_commands_apply" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
73542   }
73543   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
73544   {
73545     std::string *ptr = (std::string *)0;
73546     int res = SWIG_AsPtr_std_string(obj1, &ptr);
73547     if (!SWIG_IsOK(res) || !ptr) {
73548       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_file_commands_apply" "', argument " "2"" of type '" "std::string""'");
73549     }
73550     arg2 = *ptr;
73551     if (SWIG_IsNewObj(res)) delete ptr;
73552   }
73553   if (obj2) {
73554     ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
73555     if (!SWIG_IsOK(ecode3)) {
73556       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_file_commands_apply" "', argument " "3"" of type '" "unsigned int""'");
73557     }
73558     arg3 = static_cast< unsigned int >(val3);
73559   }
73560   {
73561     try {
73562       result = (int)vrna_fold_compound_t_file_commands_apply(arg1,arg2,arg3);
73563     } catch (const std::exception& e) {
73564       SWIG_exception(SWIG_RuntimeError, e.what());
73565     }
73566   }
73567   resultobj = SWIG_From_int(static_cast< int >(result));
73568   return resultobj;
73569 fail:
73570   return NULL;
73571 }
73572 
73573 
_wrap_fold_compound_rotational_symmetry_db(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)73574 SWIGINTERN PyObject *_wrap_fold_compound_rotational_symmetry_db(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
73575   PyObject *resultobj = 0;
73576   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
73577   std::string arg2 ;
73578   void *argp1 = 0 ;
73579   int res1 = 0 ;
73580   PyObject * obj0 = 0 ;
73581   PyObject * obj1 = 0 ;
73582   char * kwnames[] = {
73583     (char *)"self",  (char *)"structure",  NULL
73584   };
73585   std::vector< unsigned int,std::allocator< unsigned int > > result;
73586 
73587   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:fold_compound_rotational_symmetry_db", kwnames, &obj0, &obj1)) SWIG_fail;
73588   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
73589   if (!SWIG_IsOK(res1)) {
73590     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_rotational_symmetry_db" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
73591   }
73592   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
73593   {
73594     std::string *ptr = (std::string *)0;
73595     int res = SWIG_AsPtr_std_string(obj1, &ptr);
73596     if (!SWIG_IsOK(res) || !ptr) {
73597       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_rotational_symmetry_db" "', argument " "2"" of type '" "std::string""'");
73598     }
73599     arg2 = *ptr;
73600     if (SWIG_IsNewObj(res)) delete ptr;
73601   }
73602   {
73603     try {
73604       result = vrna_fold_compound_t_rotational_symmetry_db(arg1,arg2);
73605     } catch (const std::exception& e) {
73606       SWIG_exception(SWIG_RuntimeError, e.what());
73607     }
73608   }
73609   resultobj = swig::from(static_cast< std::vector< unsigned int,std::allocator< unsigned int > > >(result));
73610   return resultobj;
73611 fail:
73612   return NULL;
73613 }
73614 
73615 
_wrap_fold_compound_neighbors(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)73616 SWIGINTERN PyObject *_wrap_fold_compound_neighbors(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
73617   PyObject *resultobj = 0;
73618   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
73619   std::vector< int,std::allocator< int > > arg2 ;
73620   unsigned int arg3 = (unsigned int) (4|8) ;
73621   void *argp1 = 0 ;
73622   int res1 = 0 ;
73623   unsigned int val3 ;
73624   int ecode3 = 0 ;
73625   PyObject * obj0 = 0 ;
73626   PyObject * obj1 = 0 ;
73627   PyObject * obj2 = 0 ;
73628   char * kwnames[] = {
73629     (char *)"self",  (char *)"pt",  (char *)"options",  NULL
73630   };
73631   std::vector< vrna_move_t,std::allocator< vrna_move_t > > result;
73632 
73633   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:fold_compound_neighbors", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
73634   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
73635   if (!SWIG_IsOK(res1)) {
73636     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_neighbors" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
73637   }
73638   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
73639   {
73640     std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
73641     int res = swig::asptr(obj1, &ptr);
73642     if (!SWIG_IsOK(res) || !ptr) {
73643       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_neighbors" "', argument " "2"" of type '" "std::vector< int,std::allocator< int > >""'");
73644     }
73645     arg2 = *ptr;
73646     if (SWIG_IsNewObj(res)) delete ptr;
73647   }
73648   if (obj2) {
73649     ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
73650     if (!SWIG_IsOK(ecode3)) {
73651       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_neighbors" "', argument " "3"" of type '" "unsigned int""'");
73652     }
73653     arg3 = static_cast< unsigned int >(val3);
73654   }
73655   {
73656     try {
73657       result = vrna_fold_compound_t_neighbors(arg1,arg2,arg3);
73658     } catch (const std::exception& e) {
73659       SWIG_exception(SWIG_RuntimeError, e.what());
73660     }
73661   }
73662   resultobj = swig::from(static_cast< std::vector< vrna_move_t,std::allocator< vrna_move_t > > >(result));
73663   return resultobj;
73664 fail:
73665   return NULL;
73666 }
73667 
73668 
_wrap_fold_compound_path(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)73669 SWIGINTERN PyObject *_wrap_fold_compound_path(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
73670   PyObject *resultobj = 0;
73671   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
73672   std::vector< int,std::allocator< int > > *arg2 = 0 ;
73673   unsigned int arg3 ;
73674   unsigned int arg4 = (unsigned int) VRNA_PATH_DEFAULT ;
73675   void *argp1 = 0 ;
73676   int res1 = 0 ;
73677   void *argp2 = 0 ;
73678   int res2 = 0 ;
73679   unsigned int val3 ;
73680   int ecode3 = 0 ;
73681   unsigned int val4 ;
73682   int ecode4 = 0 ;
73683   PyObject * obj0 = 0 ;
73684   PyObject * obj1 = 0 ;
73685   PyObject * obj2 = 0 ;
73686   PyObject * obj3 = 0 ;
73687   char * kwnames[] = {
73688     (char *)"self",  (char *)"pt",  (char *)"steps",  (char *)"options",  NULL
73689   };
73690   std::vector< vrna_move_t,std::allocator< vrna_move_t > > result;
73691 
73692   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO|O:fold_compound_path", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
73693   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
73694   if (!SWIG_IsOK(res1)) {
73695     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_path" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
73696   }
73697   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
73698   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t,  0 );
73699   if (!SWIG_IsOK(res2)) {
73700     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fold_compound_path" "', argument " "2"" of type '" "std::vector< int,std::allocator< int > > &""'");
73701   }
73702   if (!argp2) {
73703     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "fold_compound_path" "', argument " "2"" of type '" "std::vector< int,std::allocator< int > > &""'");
73704   }
73705   arg2 = reinterpret_cast< std::vector< int,std::allocator< int > > * >(argp2);
73706   ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
73707   if (!SWIG_IsOK(ecode3)) {
73708     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_path" "', argument " "3"" of type '" "unsigned int""'");
73709   }
73710   arg3 = static_cast< unsigned int >(val3);
73711   if (obj3) {
73712     ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
73713     if (!SWIG_IsOK(ecode4)) {
73714       SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_path" "', argument " "4"" of type '" "unsigned int""'");
73715     }
73716     arg4 = static_cast< unsigned int >(val4);
73717   }
73718   {
73719     try {
73720       result = vrna_fold_compound_t_path(arg1,*arg2,arg3,arg4);
73721     } catch (const std::exception& e) {
73722       SWIG_exception(SWIG_RuntimeError, e.what());
73723     }
73724   }
73725   resultobj = swig::from(static_cast< std::vector< vrna_move_t,std::allocator< vrna_move_t > > >(result));
73726   return resultobj;
73727 fail:
73728   return NULL;
73729 }
73730 
73731 
_wrap_fold_compound_path_gradient(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)73732 SWIGINTERN PyObject *_wrap_fold_compound_path_gradient(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
73733   PyObject *resultobj = 0;
73734   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
73735   std::vector< int,std::allocator< int > > *arg2 = 0 ;
73736   unsigned int arg3 = (unsigned int) VRNA_PATH_DEFAULT ;
73737   void *argp1 = 0 ;
73738   int res1 = 0 ;
73739   void *argp2 = 0 ;
73740   int res2 = 0 ;
73741   unsigned int val3 ;
73742   int ecode3 = 0 ;
73743   PyObject * obj0 = 0 ;
73744   PyObject * obj1 = 0 ;
73745   PyObject * obj2 = 0 ;
73746   char * kwnames[] = {
73747     (char *)"self",  (char *)"pt",  (char *)"options",  NULL
73748   };
73749   std::vector< vrna_move_t,std::allocator< vrna_move_t > > result;
73750 
73751   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:fold_compound_path_gradient", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
73752   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
73753   if (!SWIG_IsOK(res1)) {
73754     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_path_gradient" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
73755   }
73756   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
73757   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t,  0 );
73758   if (!SWIG_IsOK(res2)) {
73759     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fold_compound_path_gradient" "', argument " "2"" of type '" "std::vector< int,std::allocator< int > > &""'");
73760   }
73761   if (!argp2) {
73762     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "fold_compound_path_gradient" "', argument " "2"" of type '" "std::vector< int,std::allocator< int > > &""'");
73763   }
73764   arg2 = reinterpret_cast< std::vector< int,std::allocator< int > > * >(argp2);
73765   if (obj2) {
73766     ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
73767     if (!SWIG_IsOK(ecode3)) {
73768       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_path_gradient" "', argument " "3"" of type '" "unsigned int""'");
73769     }
73770     arg3 = static_cast< unsigned int >(val3);
73771   }
73772   {
73773     try {
73774       result = vrna_fold_compound_t_path_gradient(arg1,*arg2,arg3);
73775     } catch (const std::exception& e) {
73776       SWIG_exception(SWIG_RuntimeError, e.what());
73777     }
73778   }
73779   resultobj = swig::from(static_cast< std::vector< vrna_move_t,std::allocator< vrna_move_t > > >(result));
73780   return resultobj;
73781 fail:
73782   return NULL;
73783 }
73784 
73785 
_wrap_fold_compound_path_random(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)73786 SWIGINTERN PyObject *_wrap_fold_compound_path_random(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
73787   PyObject *resultobj = 0;
73788   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
73789   std::vector< int,std::allocator< int > > *arg2 = 0 ;
73790   unsigned int arg3 ;
73791   unsigned int arg4 = (unsigned int) VRNA_PATH_DEFAULT ;
73792   void *argp1 = 0 ;
73793   int res1 = 0 ;
73794   void *argp2 = 0 ;
73795   int res2 = 0 ;
73796   unsigned int val3 ;
73797   int ecode3 = 0 ;
73798   unsigned int val4 ;
73799   int ecode4 = 0 ;
73800   PyObject * obj0 = 0 ;
73801   PyObject * obj1 = 0 ;
73802   PyObject * obj2 = 0 ;
73803   PyObject * obj3 = 0 ;
73804   char * kwnames[] = {
73805     (char *)"self",  (char *)"pt",  (char *)"steps",  (char *)"options",  NULL
73806   };
73807   std::vector< vrna_move_t,std::allocator< vrna_move_t > > result;
73808 
73809   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO|O:fold_compound_path_random", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
73810   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
73811   if (!SWIG_IsOK(res1)) {
73812     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_path_random" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
73813   }
73814   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
73815   res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t,  0 );
73816   if (!SWIG_IsOK(res2)) {
73817     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fold_compound_path_random" "', argument " "2"" of type '" "std::vector< int,std::allocator< int > > &""'");
73818   }
73819   if (!argp2) {
73820     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "fold_compound_path_random" "', argument " "2"" of type '" "std::vector< int,std::allocator< int > > &""'");
73821   }
73822   arg2 = reinterpret_cast< std::vector< int,std::allocator< int > > * >(argp2);
73823   ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
73824   if (!SWIG_IsOK(ecode3)) {
73825     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_path_random" "', argument " "3"" of type '" "unsigned int""'");
73826   }
73827   arg3 = static_cast< unsigned int >(val3);
73828   if (obj3) {
73829     ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
73830     if (!SWIG_IsOK(ecode4)) {
73831       SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_path_random" "', argument " "4"" of type '" "unsigned int""'");
73832     }
73833     arg4 = static_cast< unsigned int >(val4);
73834   }
73835   {
73836     try {
73837       result = vrna_fold_compound_t_path_random(arg1,*arg2,arg3,arg4);
73838     } catch (const std::exception& e) {
73839       SWIG_exception(SWIG_RuntimeError, e.what());
73840     }
73841   }
73842   resultobj = swig::from(static_cast< std::vector< vrna_move_t,std::allocator< vrna_move_t > > >(result));
73843   return resultobj;
73844 fail:
73845   return NULL;
73846 }
73847 
73848 
_wrap_fold_compound_path_findpath_saddle(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)73849 SWIGINTERN PyObject *_wrap_fold_compound_path_findpath_saddle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
73850   PyObject *resultobj = 0;
73851   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
73852   std::string arg2 ;
73853   std::string arg3 ;
73854   int arg4 = (int) 1 ;
73855   int arg5 = (int) INT_MAX ;
73856   void *argp1 = 0 ;
73857   int res1 = 0 ;
73858   int val4 ;
73859   int ecode4 = 0 ;
73860   int val5 ;
73861   int ecode5 = 0 ;
73862   PyObject * obj0 = 0 ;
73863   PyObject * obj1 = 0 ;
73864   PyObject * obj2 = 0 ;
73865   PyObject * obj3 = 0 ;
73866   PyObject * obj4 = 0 ;
73867   char * kwnames[] = {
73868     (char *)"self",  (char *)"s1",  (char *)"s2",  (char *)"width",  (char *)"maxE",  NULL
73869   };
73870   PyObject *result = 0 ;
73871 
73872   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO|OO:fold_compound_path_findpath_saddle", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
73873   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
73874   if (!SWIG_IsOK(res1)) {
73875     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_path_findpath_saddle" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
73876   }
73877   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
73878   {
73879     std::string *ptr = (std::string *)0;
73880     int res = SWIG_AsPtr_std_string(obj1, &ptr);
73881     if (!SWIG_IsOK(res) || !ptr) {
73882       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_path_findpath_saddle" "', argument " "2"" of type '" "std::string""'");
73883     }
73884     arg2 = *ptr;
73885     if (SWIG_IsNewObj(res)) delete ptr;
73886   }
73887   {
73888     std::string *ptr = (std::string *)0;
73889     int res = SWIG_AsPtr_std_string(obj2, &ptr);
73890     if (!SWIG_IsOK(res) || !ptr) {
73891       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_path_findpath_saddle" "', argument " "3"" of type '" "std::string""'");
73892     }
73893     arg3 = *ptr;
73894     if (SWIG_IsNewObj(res)) delete ptr;
73895   }
73896   if (obj3) {
73897     ecode4 = SWIG_AsVal_int(obj3, &val4);
73898     if (!SWIG_IsOK(ecode4)) {
73899       SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_path_findpath_saddle" "', argument " "4"" of type '" "int""'");
73900     }
73901     arg4 = static_cast< int >(val4);
73902   }
73903   if (obj4) {
73904     ecode5 = SWIG_AsVal_int(obj4, &val5);
73905     if (!SWIG_IsOK(ecode5)) {
73906       SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "fold_compound_path_findpath_saddle" "', argument " "5"" of type '" "int""'");
73907     }
73908     arg5 = static_cast< int >(val5);
73909   }
73910   {
73911     try {
73912       result = (PyObject *)vrna_fold_compound_t_path_findpath_saddle(arg1,arg2,arg3,arg4,arg5);
73913     } catch (const std::exception& e) {
73914       SWIG_exception(SWIG_RuntimeError, e.what());
73915     }
73916   }
73917   resultobj = result;
73918   return resultobj;
73919 fail:
73920   return NULL;
73921 }
73922 
73923 
_wrap_fold_compound_path_findpath(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)73924 SWIGINTERN PyObject *_wrap_fold_compound_path_findpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
73925   PyObject *resultobj = 0;
73926   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
73927   std::string arg2 ;
73928   std::string arg3 ;
73929   int arg4 = (int) 1 ;
73930   int arg5 = (int) INT_MAX-1 ;
73931   void *argp1 = 0 ;
73932   int res1 = 0 ;
73933   int val4 ;
73934   int ecode4 = 0 ;
73935   int val5 ;
73936   int ecode5 = 0 ;
73937   PyObject * obj0 = 0 ;
73938   PyObject * obj1 = 0 ;
73939   PyObject * obj2 = 0 ;
73940   PyObject * obj3 = 0 ;
73941   PyObject * obj4 = 0 ;
73942   char * kwnames[] = {
73943     (char *)"self",  (char *)"s1",  (char *)"s2",  (char *)"width",  (char *)"maxE",  NULL
73944   };
73945   std::vector< vrna_path_t,std::allocator< vrna_path_t > > result;
73946 
73947   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO|OO:fold_compound_path_findpath", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
73948   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
73949   if (!SWIG_IsOK(res1)) {
73950     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_path_findpath" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
73951   }
73952   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
73953   {
73954     std::string *ptr = (std::string *)0;
73955     int res = SWIG_AsPtr_std_string(obj1, &ptr);
73956     if (!SWIG_IsOK(res) || !ptr) {
73957       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_path_findpath" "', argument " "2"" of type '" "std::string""'");
73958     }
73959     arg2 = *ptr;
73960     if (SWIG_IsNewObj(res)) delete ptr;
73961   }
73962   {
73963     std::string *ptr = (std::string *)0;
73964     int res = SWIG_AsPtr_std_string(obj2, &ptr);
73965     if (!SWIG_IsOK(res) || !ptr) {
73966       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_path_findpath" "', argument " "3"" of type '" "std::string""'");
73967     }
73968     arg3 = *ptr;
73969     if (SWIG_IsNewObj(res)) delete ptr;
73970   }
73971   if (obj3) {
73972     ecode4 = SWIG_AsVal_int(obj3, &val4);
73973     if (!SWIG_IsOK(ecode4)) {
73974       SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_path_findpath" "', argument " "4"" of type '" "int""'");
73975     }
73976     arg4 = static_cast< int >(val4);
73977   }
73978   if (obj4) {
73979     ecode5 = SWIG_AsVal_int(obj4, &val5);
73980     if (!SWIG_IsOK(ecode5)) {
73981       SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "fold_compound_path_findpath" "', argument " "5"" of type '" "int""'");
73982     }
73983     arg5 = static_cast< int >(val5);
73984   }
73985   {
73986     try {
73987       result = vrna_fold_compound_t_path_findpath(arg1,arg2,arg3,arg4,arg5);
73988     } catch (const std::exception& e) {
73989       SWIG_exception(SWIG_RuntimeError, e.what());
73990     }
73991   }
73992   resultobj = swig::from(static_cast< std::vector< vrna_path_t,std::allocator< vrna_path_t > > >(result));
73993   return resultobj;
73994 fail:
73995   return NULL;
73996 }
73997 
73998 
_wrap_fold_compound_path_direct(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)73999 SWIGINTERN PyObject *_wrap_fold_compound_path_direct(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
74000   PyObject *resultobj = 0;
74001   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
74002   std::string arg2 ;
74003   std::string arg3 ;
74004   int arg4 = (int) INT_MAX-1 ;
74005   vrna_path_options_s *arg5 = (vrna_path_options_s *) NULL ;
74006   void *argp1 = 0 ;
74007   int res1 = 0 ;
74008   int val4 ;
74009   int ecode4 = 0 ;
74010   void *argp5 = 0 ;
74011   int res5 = 0 ;
74012   PyObject * obj0 = 0 ;
74013   PyObject * obj1 = 0 ;
74014   PyObject * obj2 = 0 ;
74015   PyObject * obj3 = 0 ;
74016   PyObject * obj4 = 0 ;
74017   char * kwnames[] = {
74018     (char *)"self",  (char *)"s1",  (char *)"s2",  (char *)"maxE",  (char *)"options",  NULL
74019   };
74020   std::vector< vrna_path_t,std::allocator< vrna_path_t > > result;
74021 
74022   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO|OO:fold_compound_path_direct", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
74023   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
74024   if (!SWIG_IsOK(res1)) {
74025     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_path_direct" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
74026   }
74027   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
74028   {
74029     std::string *ptr = (std::string *)0;
74030     int res = SWIG_AsPtr_std_string(obj1, &ptr);
74031     if (!SWIG_IsOK(res) || !ptr) {
74032       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_path_direct" "', argument " "2"" of type '" "std::string""'");
74033     }
74034     arg2 = *ptr;
74035     if (SWIG_IsNewObj(res)) delete ptr;
74036   }
74037   {
74038     std::string *ptr = (std::string *)0;
74039     int res = SWIG_AsPtr_std_string(obj2, &ptr);
74040     if (!SWIG_IsOK(res) || !ptr) {
74041       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "fold_compound_path_direct" "', argument " "3"" of type '" "std::string""'");
74042     }
74043     arg3 = *ptr;
74044     if (SWIG_IsNewObj(res)) delete ptr;
74045   }
74046   if (obj3) {
74047     ecode4 = SWIG_AsVal_int(obj3, &val4);
74048     if (!SWIG_IsOK(ecode4)) {
74049       SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_path_direct" "', argument " "4"" of type '" "int""'");
74050     }
74051     arg4 = static_cast< int >(val4);
74052   }
74053   if (obj4) {
74054     res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_vrna_path_options_s, 0 |  0 );
74055     if (!SWIG_IsOK(res5)) {
74056       SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "fold_compound_path_direct" "', argument " "5"" of type '" "vrna_path_options_s *""'");
74057     }
74058     arg5 = reinterpret_cast< vrna_path_options_s * >(argp5);
74059   }
74060   {
74061     try {
74062       result = vrna_fold_compound_t_path_direct(arg1,arg2,arg3,arg4,arg5);
74063     } catch (const std::exception& e) {
74064       SWIG_exception(SWIG_RuntimeError, e.what());
74065     }
74066   }
74067   resultobj = swig::from(static_cast< std::vector< vrna_path_t,std::allocator< vrna_path_t > > >(result));
74068   return resultobj;
74069 fail:
74070   return NULL;
74071 }
74072 
74073 
_wrap_fold_compound_heat_capacity(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)74074 SWIGINTERN PyObject *_wrap_fold_compound_heat_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
74075   PyObject *resultobj = 0;
74076   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
74077   float arg2 = (float) 0. ;
74078   float arg3 = (float) 100. ;
74079   float arg4 = (float) 1. ;
74080   unsigned int arg5 = (unsigned int) 2U ;
74081   void *argp1 = 0 ;
74082   int res1 = 0 ;
74083   float val2 ;
74084   int ecode2 = 0 ;
74085   float val3 ;
74086   int ecode3 = 0 ;
74087   float val4 ;
74088   int ecode4 = 0 ;
74089   unsigned int val5 ;
74090   int ecode5 = 0 ;
74091   PyObject * obj0 = 0 ;
74092   PyObject * obj1 = 0 ;
74093   PyObject * obj2 = 0 ;
74094   PyObject * obj3 = 0 ;
74095   PyObject * obj4 = 0 ;
74096   char * kwnames[] = {
74097     (char *)"self",  (char *)"T_min",  (char *)"T_max",  (char *)"T_increment",  (char *)"mpoints",  NULL
74098   };
74099   std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > result;
74100 
74101   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|OOOO:fold_compound_heat_capacity", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
74102   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
74103   if (!SWIG_IsOK(res1)) {
74104     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_heat_capacity" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
74105   }
74106   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
74107   if (obj1) {
74108     ecode2 = SWIG_AsVal_float(obj1, &val2);
74109     if (!SWIG_IsOK(ecode2)) {
74110       SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_heat_capacity" "', argument " "2"" of type '" "float""'");
74111     }
74112     arg2 = static_cast< float >(val2);
74113   }
74114   if (obj2) {
74115     ecode3 = SWIG_AsVal_float(obj2, &val3);
74116     if (!SWIG_IsOK(ecode3)) {
74117       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_heat_capacity" "', argument " "3"" of type '" "float""'");
74118     }
74119     arg3 = static_cast< float >(val3);
74120   }
74121   if (obj3) {
74122     ecode4 = SWIG_AsVal_float(obj3, &val4);
74123     if (!SWIG_IsOK(ecode4)) {
74124       SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_heat_capacity" "', argument " "4"" of type '" "float""'");
74125     }
74126     arg4 = static_cast< float >(val4);
74127   }
74128   if (obj4) {
74129     ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
74130     if (!SWIG_IsOK(ecode5)) {
74131       SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "fold_compound_heat_capacity" "', argument " "5"" of type '" "unsigned int""'");
74132     }
74133     arg5 = static_cast< unsigned int >(val5);
74134   }
74135   {
74136     try {
74137       result = vrna_fold_compound_t_heat_capacity(arg1,arg2,arg3,arg4,arg5);
74138     } catch (const std::exception& e) {
74139       SWIG_exception(SWIG_RuntimeError, e.what());
74140     }
74141   }
74142   resultobj = swig::from(static_cast< std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > >(result));
74143   return resultobj;
74144 fail:
74145   return NULL;
74146 }
74147 
74148 
_wrap_fold_compound_add_auxdata(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)74149 SWIGINTERN PyObject *_wrap_fold_compound_add_auxdata(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
74150   PyObject *resultobj = 0;
74151   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
74152   PyObject *arg2 = (PyObject *) 0 ;
74153   PyObject *arg3 = (PyObject *) Py_None ;
74154   void *argp1 = 0 ;
74155   int res1 = 0 ;
74156   PyObject * obj0 = 0 ;
74157   PyObject * obj1 = 0 ;
74158   PyObject * obj2 = 0 ;
74159   char * kwnames[] = {
74160     (char *)"self",  (char *)"data",  (char *)"PyFuncOrNone",  NULL
74161   };
74162   PyObject *result = 0 ;
74163 
74164   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:fold_compound_add_auxdata", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
74165   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
74166   if (!SWIG_IsOK(res1)) {
74167     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_add_auxdata" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
74168   }
74169   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
74170   {
74171     arg2 = obj1;
74172   }
74173   if (obj2) {
74174     {
74175       if(obj2 != Py_None){
74176         if (!PyCallable_Check(obj2)) {
74177           PyErr_SetString(PyExc_TypeError, "Need a callable object!");
74178           return NULL;
74179         }
74180       }
74181       arg3 = obj2;
74182     }
74183   }
74184   {
74185     try {
74186       result = (PyObject *)vrna_fold_compound_t_add_auxdata(arg1,arg2,arg3);
74187     } catch (const std::exception& e) {
74188       SWIG_exception(SWIG_RuntimeError, e.what());
74189     }
74190   }
74191   resultobj = result;
74192   return resultobj;
74193 fail:
74194   return NULL;
74195 }
74196 
74197 
_wrap_fold_compound_add_callback(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)74198 SWIGINTERN PyObject *_wrap_fold_compound_add_callback(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
74199   PyObject *resultobj = 0;
74200   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
74201   PyObject *arg2 = (PyObject *) 0 ;
74202   void *argp1 = 0 ;
74203   int res1 = 0 ;
74204   PyObject * obj0 = 0 ;
74205   PyObject * obj1 = 0 ;
74206   char * kwnames[] = {
74207     (char *)"self",  (char *)"PyFunc",  NULL
74208   };
74209   PyObject *result = 0 ;
74210 
74211   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:fold_compound_add_callback", kwnames, &obj0, &obj1)) SWIG_fail;
74212   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
74213   if (!SWIG_IsOK(res1)) {
74214     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_add_callback" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
74215   }
74216   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
74217   {
74218     if (!PyCallable_Check(obj1)) {
74219       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
74220       return NULL;
74221     }
74222     arg2 = obj1;
74223   }
74224   {
74225     try {
74226       result = (PyObject *)vrna_fold_compound_t_add_callback(arg1,arg2);
74227     } catch (const std::exception& e) {
74228       SWIG_exception(SWIG_RuntimeError, e.what());
74229     }
74230   }
74231   resultobj = result;
74232   return resultobj;
74233 fail:
74234   return NULL;
74235 }
74236 
74237 
_wrap_fold_compound_sc_add_data(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)74238 SWIGINTERN PyObject *_wrap_fold_compound_sc_add_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
74239   PyObject *resultobj = 0;
74240   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
74241   PyObject *arg2 = (PyObject *) 0 ;
74242   PyObject *arg3 = (PyObject *) Py_None ;
74243   void *argp1 = 0 ;
74244   int res1 = 0 ;
74245   PyObject * obj0 = 0 ;
74246   PyObject * obj1 = 0 ;
74247   PyObject * obj2 = 0 ;
74248   char * kwnames[] = {
74249     (char *)"self",  (char *)"data",  (char *)"callback",  NULL
74250   };
74251   int result;
74252 
74253   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:fold_compound_sc_add_data", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
74254   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
74255   if (!SWIG_IsOK(res1)) {
74256     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_add_data" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
74257   }
74258   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
74259   {
74260     arg2 = obj1;
74261   }
74262   if (obj2) {
74263     arg3 = obj2;
74264   }
74265   {
74266     try {
74267       result = (int)vrna_fold_compound_t_sc_add_data(arg1,arg2,arg3);
74268     } catch (const std::exception& e) {
74269       SWIG_exception(SWIG_RuntimeError, e.what());
74270     }
74271   }
74272   resultobj = SWIG_From_int(static_cast< int >(result));
74273   return resultobj;
74274 fail:
74275   return NULL;
74276 }
74277 
74278 
_wrap_fold_compound_sc_add_f(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)74279 SWIGINTERN PyObject *_wrap_fold_compound_sc_add_f(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
74280   PyObject *resultobj = 0;
74281   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
74282   PyObject *arg2 = (PyObject *) 0 ;
74283   void *argp1 = 0 ;
74284   int res1 = 0 ;
74285   PyObject * obj0 = 0 ;
74286   PyObject * obj1 = 0 ;
74287   char * kwnames[] = {
74288     (char *)"self",  (char *)"callback",  NULL
74289   };
74290   int result;
74291 
74292   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:fold_compound_sc_add_f", kwnames, &obj0, &obj1)) SWIG_fail;
74293   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
74294   if (!SWIG_IsOK(res1)) {
74295     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_add_f" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
74296   }
74297   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
74298   arg2 = obj1;
74299   {
74300     try {
74301       result = (int)vrna_fold_compound_t_sc_add_f(arg1,arg2);
74302     } catch (const std::exception& e) {
74303       SWIG_exception(SWIG_RuntimeError, e.what());
74304     }
74305   }
74306   resultobj = SWIG_From_int(static_cast< int >(result));
74307   return resultobj;
74308 fail:
74309   return NULL;
74310 }
74311 
74312 
_wrap_fold_compound_sc_add_bt(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)74313 SWIGINTERN PyObject *_wrap_fold_compound_sc_add_bt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
74314   PyObject *resultobj = 0;
74315   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
74316   PyObject *arg2 = (PyObject *) 0 ;
74317   void *argp1 = 0 ;
74318   int res1 = 0 ;
74319   PyObject * obj0 = 0 ;
74320   PyObject * obj1 = 0 ;
74321   char * kwnames[] = {
74322     (char *)"self",  (char *)"PyFunc",  NULL
74323   };
74324   int result;
74325 
74326   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:fold_compound_sc_add_bt", kwnames, &obj0, &obj1)) SWIG_fail;
74327   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
74328   if (!SWIG_IsOK(res1)) {
74329     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_add_bt" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
74330   }
74331   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
74332   {
74333     if (!PyCallable_Check(obj1)) {
74334       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
74335       return NULL;
74336     }
74337     arg2 = obj1;
74338   }
74339   {
74340     try {
74341       result = (int)vrna_fold_compound_t_sc_add_bt(arg1,arg2);
74342     } catch (const std::exception& e) {
74343       SWIG_exception(SWIG_RuntimeError, e.what());
74344     }
74345   }
74346   resultobj = SWIG_From_int(static_cast< int >(result));
74347   return resultobj;
74348 fail:
74349   return NULL;
74350 }
74351 
74352 
_wrap_fold_compound_sc_add_exp_f(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)74353 SWIGINTERN PyObject *_wrap_fold_compound_sc_add_exp_f(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
74354   PyObject *resultobj = 0;
74355   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
74356   PyObject *arg2 = (PyObject *) 0 ;
74357   void *argp1 = 0 ;
74358   int res1 = 0 ;
74359   PyObject * obj0 = 0 ;
74360   PyObject * obj1 = 0 ;
74361   char * kwnames[] = {
74362     (char *)"self",  (char *)"PyFunc",  NULL
74363   };
74364   int result;
74365 
74366   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:fold_compound_sc_add_exp_f", kwnames, &obj0, &obj1)) SWIG_fail;
74367   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
74368   if (!SWIG_IsOK(res1)) {
74369     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_sc_add_exp_f" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
74370   }
74371   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
74372   {
74373     if (!PyCallable_Check(obj1)) {
74374       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
74375       return NULL;
74376     }
74377     arg2 = obj1;
74378   }
74379   {
74380     try {
74381       result = (int)vrna_fold_compound_t_sc_add_exp_f(arg1,arg2);
74382     } catch (const std::exception& e) {
74383       SWIG_exception(SWIG_RuntimeError, e.what());
74384     }
74385   }
74386   resultobj = SWIG_From_int(static_cast< int >(result));
74387   return resultobj;
74388 fail:
74389   return NULL;
74390 }
74391 
74392 
_wrap_fold_compound_ud_set_data(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)74393 SWIGINTERN PyObject *_wrap_fold_compound_ud_set_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
74394   PyObject *resultobj = 0;
74395   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
74396   PyObject *arg2 = (PyObject *) 0 ;
74397   PyObject *arg3 = (PyObject *) Py_None ;
74398   void *argp1 = 0 ;
74399   int res1 = 0 ;
74400   PyObject * obj0 = 0 ;
74401   PyObject * obj1 = 0 ;
74402   PyObject * obj2 = 0 ;
74403   char * kwnames[] = {
74404     (char *)"self",  (char *)"data",  (char *)"PyFuncOrNone",  NULL
74405   };
74406   PyObject *result = 0 ;
74407 
74408   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:fold_compound_ud_set_data", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
74409   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
74410   if (!SWIG_IsOK(res1)) {
74411     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_ud_set_data" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
74412   }
74413   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
74414   {
74415     arg2 = obj1;
74416   }
74417   if (obj2) {
74418     {
74419       if(obj2 != Py_None){
74420         if (!PyCallable_Check(obj2)) {
74421           PyErr_SetString(PyExc_TypeError, "Need a callable object!");
74422           return NULL;
74423         }
74424       }
74425       arg3 = obj2;
74426     }
74427   }
74428   {
74429     try {
74430       result = (PyObject *)vrna_fold_compound_t_ud_set_data(arg1,arg2,arg3);
74431     } catch (const std::exception& e) {
74432       SWIG_exception(SWIG_RuntimeError, e.what());
74433     }
74434   }
74435   resultobj = result;
74436   return resultobj;
74437 fail:
74438   return NULL;
74439 }
74440 
74441 
_wrap_fold_compound_ud_set_prod_rule_cb(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)74442 SWIGINTERN PyObject *_wrap_fold_compound_ud_set_prod_rule_cb(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
74443   PyObject *resultobj = 0;
74444   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
74445   PyObject *arg2 = (PyObject *) 0 ;
74446   PyObject *arg3 = (PyObject *) 0 ;
74447   void *argp1 = 0 ;
74448   int res1 = 0 ;
74449   PyObject * obj0 = 0 ;
74450   PyObject * obj1 = 0 ;
74451   PyObject * obj2 = 0 ;
74452   char * kwnames[] = {
74453     (char *)"self",  (char *)"prod_cb",  (char *)"eval_cb",  NULL
74454   };
74455   PyObject *result = 0 ;
74456 
74457   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:fold_compound_ud_set_prod_rule_cb", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
74458   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
74459   if (!SWIG_IsOK(res1)) {
74460     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_ud_set_prod_rule_cb" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
74461   }
74462   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
74463   arg2 = obj1;
74464   arg3 = obj2;
74465   {
74466     try {
74467       result = (PyObject *)vrna_fold_compound_t_ud_set_prod_rule_cb(arg1,arg2,arg3);
74468     } catch (const std::exception& e) {
74469       SWIG_exception(SWIG_RuntimeError, e.what());
74470     }
74471   }
74472   resultobj = result;
74473   return resultobj;
74474 fail:
74475   return NULL;
74476 }
74477 
74478 
_wrap_fold_compound_ud_set_exp_prod_rule_cb(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)74479 SWIGINTERN PyObject *_wrap_fold_compound_ud_set_exp_prod_rule_cb(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
74480   PyObject *resultobj = 0;
74481   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
74482   PyObject *arg2 = (PyObject *) 0 ;
74483   PyObject *arg3 = (PyObject *) 0 ;
74484   void *argp1 = 0 ;
74485   int res1 = 0 ;
74486   PyObject * obj0 = 0 ;
74487   PyObject * obj1 = 0 ;
74488   PyObject * obj2 = 0 ;
74489   char * kwnames[] = {
74490     (char *)"self",  (char *)"prod_cb",  (char *)"eval_cb",  NULL
74491   };
74492   PyObject *result = 0 ;
74493 
74494   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:fold_compound_ud_set_exp_prod_rule_cb", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
74495   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
74496   if (!SWIG_IsOK(res1)) {
74497     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_ud_set_exp_prod_rule_cb" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
74498   }
74499   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
74500   arg2 = obj1;
74501   arg3 = obj2;
74502   {
74503     try {
74504       result = (PyObject *)vrna_fold_compound_t_ud_set_exp_prod_rule_cb(arg1,arg2,arg3);
74505     } catch (const std::exception& e) {
74506       SWIG_exception(SWIG_RuntimeError, e.what());
74507     }
74508   }
74509   resultobj = result;
74510   return resultobj;
74511 fail:
74512   return NULL;
74513 }
74514 
74515 
_wrap_fold_compound_ud_set_prob_cb(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)74516 SWIGINTERN PyObject *_wrap_fold_compound_ud_set_prob_cb(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
74517   PyObject *resultobj = 0;
74518   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
74519   PyObject *arg2 = (PyObject *) 0 ;
74520   PyObject *arg3 = (PyObject *) 0 ;
74521   void *argp1 = 0 ;
74522   int res1 = 0 ;
74523   PyObject * obj0 = 0 ;
74524   PyObject * obj1 = 0 ;
74525   PyObject * obj2 = 0 ;
74526   char * kwnames[] = {
74527     (char *)"self",  (char *)"setter",  (char *)"getter",  NULL
74528   };
74529   PyObject *result = 0 ;
74530 
74531   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:fold_compound_ud_set_prob_cb", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
74532   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
74533   if (!SWIG_IsOK(res1)) {
74534     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_ud_set_prob_cb" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
74535   }
74536   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
74537   arg2 = obj1;
74538   arg3 = obj2;
74539   {
74540     try {
74541       result = (PyObject *)vrna_fold_compound_t_ud_set_prob_cb(arg1,arg2,arg3);
74542     } catch (const std::exception& e) {
74543       SWIG_exception(SWIG_RuntimeError, e.what());
74544     }
74545   }
74546   resultobj = result;
74547   return resultobj;
74548 fail:
74549   return NULL;
74550 }
74551 
74552 
_wrap_fold_compound_subopt_cb(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)74553 SWIGINTERN PyObject *_wrap_fold_compound_subopt_cb(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
74554   PyObject *resultobj = 0;
74555   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
74556   int arg2 ;
74557   PyObject *arg3 = (PyObject *) 0 ;
74558   PyObject *arg4 = (PyObject *) Py_None ;
74559   void *argp1 = 0 ;
74560   int res1 = 0 ;
74561   int val2 ;
74562   int ecode2 = 0 ;
74563   PyObject * obj0 = 0 ;
74564   PyObject * obj1 = 0 ;
74565   PyObject * obj2 = 0 ;
74566   PyObject * obj3 = 0 ;
74567   char * kwnames[] = {
74568     (char *)"self",  (char *)"delta",  (char *)"PyFunc",  (char *)"data",  NULL
74569   };
74570   PyObject *result = 0 ;
74571 
74572   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO|O:fold_compound_subopt_cb", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
74573   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
74574   if (!SWIG_IsOK(res1)) {
74575     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_subopt_cb" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
74576   }
74577   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
74578   ecode2 = SWIG_AsVal_int(obj1, &val2);
74579   if (!SWIG_IsOK(ecode2)) {
74580     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_subopt_cb" "', argument " "2"" of type '" "int""'");
74581   }
74582   arg2 = static_cast< int >(val2);
74583   {
74584     if (!PyCallable_Check(obj2)) {
74585       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
74586       return NULL;
74587     }
74588     arg3 = obj2;
74589   }
74590   if (obj3) {
74591     {
74592       arg4 = obj3;
74593     }
74594   }
74595   {
74596     try {
74597       result = (PyObject *)vrna_fold_compound_t_subopt_cb(arg1,arg2,arg3,arg4);
74598     } catch (const std::exception& e) {
74599       SWIG_exception(SWIG_RuntimeError, e.what());
74600     }
74601   }
74602   resultobj = result;
74603   return resultobj;
74604 fail:
74605   return NULL;
74606 }
74607 
74608 
_wrap_fold_compound_pbacktrack5__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)74609 SWIGINTERN PyObject *_wrap_fold_compound_pbacktrack5__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
74610   PyObject *resultobj = 0;
74611   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
74612   unsigned int arg2 ;
74613   unsigned int arg3 ;
74614   PyObject *arg4 = (PyObject *) 0 ;
74615   PyObject *arg5 = (PyObject *) Py_None ;
74616   unsigned int arg6 = (unsigned int) 0 ;
74617   void *argp1 = 0 ;
74618   int res1 = 0 ;
74619   unsigned int val2 ;
74620   int ecode2 = 0 ;
74621   unsigned int val3 ;
74622   int ecode3 = 0 ;
74623   unsigned int val6 ;
74624   int ecode6 = 0 ;
74625   unsigned int result;
74626 
74627   if ((nobjs < 4) || (nobjs > 6)) SWIG_fail;
74628   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
74629   if (!SWIG_IsOK(res1)) {
74630     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_pbacktrack5" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
74631   }
74632   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
74633   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
74634   if (!SWIG_IsOK(ecode2)) {
74635     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_pbacktrack5" "', argument " "2"" of type '" "unsigned int""'");
74636   }
74637   arg2 = static_cast< unsigned int >(val2);
74638   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
74639   if (!SWIG_IsOK(ecode3)) {
74640     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_pbacktrack5" "', argument " "3"" of type '" "unsigned int""'");
74641   }
74642   arg3 = static_cast< unsigned int >(val3);
74643   {
74644     if (!PyCallable_Check(swig_obj[3])) {
74645       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
74646       return NULL;
74647     }
74648     arg4 = swig_obj[3];
74649   }
74650   if (swig_obj[4]) {
74651     {
74652       arg5 = swig_obj[4];
74653     }
74654   }
74655   if (swig_obj[5]) {
74656     ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6);
74657     if (!SWIG_IsOK(ecode6)) {
74658       SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "fold_compound_pbacktrack5" "', argument " "6"" of type '" "unsigned int""'");
74659     }
74660     arg6 = static_cast< unsigned int >(val6);
74661   }
74662   {
74663     try {
74664       result = (unsigned int)vrna_fold_compound_t_pbacktrack5__SWIG_3(arg1,arg2,arg3,arg4,arg5,arg6);
74665     } catch (const std::exception& e) {
74666       SWIG_exception(SWIG_RuntimeError, e.what());
74667     }
74668   }
74669   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
74670   return resultobj;
74671 fail:
74672   return NULL;
74673 }
74674 
74675 
_wrap_fold_compound_pbacktrack__SWIG_3(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)74676 SWIGINTERN PyObject *_wrap_fold_compound_pbacktrack__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
74677   PyObject *resultobj = 0;
74678   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
74679   unsigned int arg2 ;
74680   PyObject *arg3 = (PyObject *) 0 ;
74681   PyObject *arg4 = (PyObject *) Py_None ;
74682   unsigned int arg5 = (unsigned int) 0 ;
74683   void *argp1 = 0 ;
74684   int res1 = 0 ;
74685   unsigned int val2 ;
74686   int ecode2 = 0 ;
74687   unsigned int val5 ;
74688   int ecode5 = 0 ;
74689   unsigned int result;
74690 
74691   if ((nobjs < 3) || (nobjs > 5)) SWIG_fail;
74692   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
74693   if (!SWIG_IsOK(res1)) {
74694     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_pbacktrack" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
74695   }
74696   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
74697   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
74698   if (!SWIG_IsOK(ecode2)) {
74699     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_pbacktrack" "', argument " "2"" of type '" "unsigned int""'");
74700   }
74701   arg2 = static_cast< unsigned int >(val2);
74702   {
74703     if (!PyCallable_Check(swig_obj[2])) {
74704       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
74705       return NULL;
74706     }
74707     arg3 = swig_obj[2];
74708   }
74709   if (swig_obj[3]) {
74710     {
74711       arg4 = swig_obj[3];
74712     }
74713   }
74714   if (swig_obj[4]) {
74715     ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5);
74716     if (!SWIG_IsOK(ecode5)) {
74717       SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "fold_compound_pbacktrack" "', argument " "5"" of type '" "unsigned int""'");
74718     }
74719     arg5 = static_cast< unsigned int >(val5);
74720   }
74721   {
74722     try {
74723       result = (unsigned int)vrna_fold_compound_t_pbacktrack__SWIG_3(arg1,arg2,arg3,arg4,arg5);
74724     } catch (const std::exception& e) {
74725       SWIG_exception(SWIG_RuntimeError, e.what());
74726     }
74727   }
74728   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
74729   return resultobj;
74730 fail:
74731   return NULL;
74732 }
74733 
74734 
_wrap_fold_compound_pbacktrack__SWIG_4(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)74735 SWIGINTERN PyObject *_wrap_fold_compound_pbacktrack__SWIG_4(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
74736   PyObject *resultobj = 0;
74737   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
74738   unsigned int arg2 ;
74739   PyObject *arg3 = (PyObject *) 0 ;
74740   PyObject *arg4 = (PyObject *) 0 ;
74741   vrna_pbacktrack_mem_t *arg5 = (vrna_pbacktrack_mem_t *) 0 ;
74742   unsigned int arg6 = (unsigned int) 0 ;
74743   void *argp1 = 0 ;
74744   int res1 = 0 ;
74745   unsigned int val2 ;
74746   int ecode2 = 0 ;
74747   vrna_pbacktrack_mem_t *retval5 ;
74748   unsigned int val6 ;
74749   int ecode6 = 0 ;
74750   unsigned int result;
74751 
74752   if ((nobjs < 5) || (nobjs > 6)) SWIG_fail;
74753   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
74754   if (!SWIG_IsOK(res1)) {
74755     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_pbacktrack" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
74756   }
74757   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
74758   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
74759   if (!SWIG_IsOK(ecode2)) {
74760     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_pbacktrack" "', argument " "2"" of type '" "unsigned int""'");
74761   }
74762   arg2 = static_cast< unsigned int >(val2);
74763   {
74764     if (!PyCallable_Check(swig_obj[2])) {
74765       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
74766       return NULL;
74767     }
74768     arg3 = swig_obj[2];
74769   }
74770   {
74771     arg4 = swig_obj[3];
74772   }
74773   {
74774     if (swig_obj[4] == Py_None) {
74775       retval5 = new vrna_pbacktrack_mem_t();
74776       arg5 = retval5;
74777     } else {
74778       /* INOUT in */
74779       SWIG_ConvertPtr(swig_obj[4],SWIG_as_voidptrptr(&retval5), 0, SWIG_POINTER_DISOWN);
74780       arg5 = retval5;
74781     }
74782   }
74783   if (swig_obj[5]) {
74784     ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6);
74785     if (!SWIG_IsOK(ecode6)) {
74786       SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "fold_compound_pbacktrack" "', argument " "6"" of type '" "unsigned int""'");
74787     }
74788     arg6 = static_cast< unsigned int >(val6);
74789   }
74790   {
74791     try {
74792       result = (unsigned int)vrna_fold_compound_t_pbacktrack__SWIG_4(arg1,arg2,arg3,arg4,arg5,arg6);
74793     } catch (const std::exception& e) {
74794       SWIG_exception(SWIG_RuntimeError, e.what());
74795     }
74796   }
74797   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
74798   {
74799     PyObject *o, *o2, *o3;
74800     o = SWIG_NewPointerObj(SWIG_as_voidptr(retval5), SWIGTYPE_p_vrna_pbacktrack_mem_t, 1);
74801     if ((!resultobj) || (resultobj == Py_None)) {
74802       resultobj = o;
74803     } else {
74804       PyObject *o2 = resultobj;
74805       resultobj = PyTuple_New(1);
74806       PyTuple_SetItem(resultobj,0,o2);
74807       o3 = PyTuple_New(1);
74808       PyTuple_SetItem(o3,0,o);
74809       o2 = resultobj;
74810       resultobj = PySequence_Concat(o3,o2);
74811       Py_DECREF(o2);
74812       Py_DECREF(o3);
74813     }
74814   }
74815   return resultobj;
74816 fail:
74817   return NULL;
74818 }
74819 
74820 
_wrap_fold_compound_pbacktrack(PyObject * self,PyObject * args)74821 SWIGINTERN PyObject *_wrap_fold_compound_pbacktrack(PyObject *self, PyObject *args) {
74822   Py_ssize_t argc;
74823   PyObject *argv[7] = {
74824     0
74825   };
74826 
74827   if (!(argc = SWIG_Python_UnpackTuple(args, "fold_compound_pbacktrack", 0, 6, argv))) SWIG_fail;
74828   --argc;
74829   if (argc == 1) {
74830     int _v;
74831     void *vptr = 0;
74832     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
74833     _v = SWIG_CheckState(res);
74834     if (_v) {
74835       return _wrap_fold_compound_pbacktrack__SWIG_0(self, argc, argv);
74836     }
74837   }
74838   if ((argc >= 2) && (argc <= 3)) {
74839     int _v;
74840     void *vptr = 0;
74841     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
74842     _v = SWIG_CheckState(res);
74843     if (_v) {
74844       {
74845         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
74846         _v = SWIG_CheckState(res);
74847       }
74848       if (_v) {
74849         if (argc <= 2) {
74850           return _wrap_fold_compound_pbacktrack__SWIG_1(self, argc, argv);
74851         }
74852         {
74853           int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
74854           _v = SWIG_CheckState(res);
74855         }
74856         if (_v) {
74857           return _wrap_fold_compound_pbacktrack__SWIG_1(self, argc, argv);
74858         }
74859       }
74860     }
74861   }
74862   if ((argc >= 3) && (argc <= 4)) {
74863     int _v;
74864     void *vptr = 0;
74865     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
74866     _v = SWIG_CheckState(res);
74867     if (_v) {
74868       {
74869         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
74870         _v = SWIG_CheckState(res);
74871       }
74872       if (_v) {
74873         void *vptr = 0;
74874         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_vrna_pbacktrack_mem_t, 0);
74875         _v = SWIG_CheckState(res);
74876         if (_v) {
74877           if (argc <= 3) {
74878             return _wrap_fold_compound_pbacktrack__SWIG_2(self, argc, argv);
74879           }
74880           {
74881             int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
74882             _v = SWIG_CheckState(res);
74883           }
74884           if (_v) {
74885             return _wrap_fold_compound_pbacktrack__SWIG_2(self, argc, argv);
74886           }
74887         }
74888       }
74889     }
74890   }
74891   if ((argc >= 3) && (argc <= 5)) {
74892     int _v;
74893     void *vptr = 0;
74894     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
74895     _v = SWIG_CheckState(res);
74896     if (_v) {
74897       {
74898         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
74899         _v = SWIG_CheckState(res);
74900       }
74901       if (_v) {
74902         _v = (argv[2] != 0);
74903         if (_v) {
74904           if (argc <= 3) {
74905             return _wrap_fold_compound_pbacktrack__SWIG_3(self, argc, argv);
74906           }
74907           _v = (argv[3] != 0);
74908           if (_v) {
74909             if (argc <= 4) {
74910               return _wrap_fold_compound_pbacktrack__SWIG_3(self, argc, argv);
74911             }
74912             {
74913               int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL);
74914               _v = SWIG_CheckState(res);
74915             }
74916             if (_v) {
74917               return _wrap_fold_compound_pbacktrack__SWIG_3(self, argc, argv);
74918             }
74919           }
74920         }
74921       }
74922     }
74923   }
74924   if ((argc >= 5) && (argc <= 6)) {
74925     int _v;
74926     void *vptr = 0;
74927     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
74928     _v = SWIG_CheckState(res);
74929     if (_v) {
74930       {
74931         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
74932         _v = SWIG_CheckState(res);
74933       }
74934       if (_v) {
74935         _v = (argv[2] != 0);
74936         if (_v) {
74937           _v = (argv[3] != 0);
74938           if (_v) {
74939             void *vptr = 0;
74940             int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_vrna_pbacktrack_mem_t, 0);
74941             _v = SWIG_CheckState(res);
74942             if (_v) {
74943               if (argc <= 5) {
74944                 return _wrap_fold_compound_pbacktrack__SWIG_4(self, argc, argv);
74945               }
74946               {
74947                 int res = SWIG_AsVal_unsigned_SS_int(argv[5], NULL);
74948                 _v = SWIG_CheckState(res);
74949               }
74950               if (_v) {
74951                 return _wrap_fold_compound_pbacktrack__SWIG_4(self, argc, argv);
74952               }
74953             }
74954           }
74955         }
74956       }
74957     }
74958   }
74959 
74960 fail:
74961   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'fold_compound_pbacktrack'.\n"
74962     "  Possible C/C++ prototypes are:\n"
74963     "    vrna_fold_compound_t::pbacktrack(void)\n"
74964     "    vrna_fold_compound_t::pbacktrack(unsigned int,unsigned int)\n"
74965     "    vrna_fold_compound_t::pbacktrack(unsigned int,vrna_pbacktrack_mem_t *,unsigned int)\n"
74966     "    vrna_fold_compound_t::pbacktrack(unsigned int,PyObject *,PyObject *,unsigned int)\n"
74967     "    vrna_fold_compound_t::pbacktrack(unsigned int,PyObject *,PyObject *,vrna_pbacktrack_mem_t *,unsigned int)\n");
74968   return 0;
74969 }
74970 
74971 
_wrap_fold_compound_pbacktrack5__SWIG_4(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)74972 SWIGINTERN PyObject *_wrap_fold_compound_pbacktrack5__SWIG_4(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
74973   PyObject *resultobj = 0;
74974   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
74975   unsigned int arg2 ;
74976   unsigned int arg3 ;
74977   PyObject *arg4 = (PyObject *) 0 ;
74978   PyObject *arg5 = (PyObject *) 0 ;
74979   vrna_pbacktrack_mem_t *arg6 = (vrna_pbacktrack_mem_t *) 0 ;
74980   unsigned int arg7 = (unsigned int) 0 ;
74981   void *argp1 = 0 ;
74982   int res1 = 0 ;
74983   unsigned int val2 ;
74984   int ecode2 = 0 ;
74985   unsigned int val3 ;
74986   int ecode3 = 0 ;
74987   vrna_pbacktrack_mem_t *retval6 ;
74988   unsigned int val7 ;
74989   int ecode7 = 0 ;
74990   unsigned int result;
74991 
74992   if ((nobjs < 6) || (nobjs > 7)) SWIG_fail;
74993   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
74994   if (!SWIG_IsOK(res1)) {
74995     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_pbacktrack5" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
74996   }
74997   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
74998   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
74999   if (!SWIG_IsOK(ecode2)) {
75000     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_pbacktrack5" "', argument " "2"" of type '" "unsigned int""'");
75001   }
75002   arg2 = static_cast< unsigned int >(val2);
75003   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
75004   if (!SWIG_IsOK(ecode3)) {
75005     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_pbacktrack5" "', argument " "3"" of type '" "unsigned int""'");
75006   }
75007   arg3 = static_cast< unsigned int >(val3);
75008   {
75009     if (!PyCallable_Check(swig_obj[3])) {
75010       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
75011       return NULL;
75012     }
75013     arg4 = swig_obj[3];
75014   }
75015   {
75016     arg5 = swig_obj[4];
75017   }
75018   {
75019     if (swig_obj[5] == Py_None) {
75020       retval6 = new vrna_pbacktrack_mem_t();
75021       arg6 = retval6;
75022     } else {
75023       /* INOUT in */
75024       SWIG_ConvertPtr(swig_obj[5],SWIG_as_voidptrptr(&retval6), 0, SWIG_POINTER_DISOWN);
75025       arg6 = retval6;
75026     }
75027   }
75028   if (swig_obj[6]) {
75029     ecode7 = SWIG_AsVal_unsigned_SS_int(swig_obj[6], &val7);
75030     if (!SWIG_IsOK(ecode7)) {
75031       SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "fold_compound_pbacktrack5" "', argument " "7"" of type '" "unsigned int""'");
75032     }
75033     arg7 = static_cast< unsigned int >(val7);
75034   }
75035   {
75036     try {
75037       result = (unsigned int)vrna_fold_compound_t_pbacktrack5__SWIG_4(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
75038     } catch (const std::exception& e) {
75039       SWIG_exception(SWIG_RuntimeError, e.what());
75040     }
75041   }
75042   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
75043   {
75044     PyObject *o, *o2, *o3;
75045     o = SWIG_NewPointerObj(SWIG_as_voidptr(retval6), SWIGTYPE_p_vrna_pbacktrack_mem_t, 1);
75046     if ((!resultobj) || (resultobj == Py_None)) {
75047       resultobj = o;
75048     } else {
75049       PyObject *o2 = resultobj;
75050       resultobj = PyTuple_New(1);
75051       PyTuple_SetItem(resultobj,0,o2);
75052       o3 = PyTuple_New(1);
75053       PyTuple_SetItem(o3,0,o);
75054       o2 = resultobj;
75055       resultobj = PySequence_Concat(o3,o2);
75056       Py_DECREF(o2);
75057       Py_DECREF(o3);
75058     }
75059   }
75060   return resultobj;
75061 fail:
75062   return NULL;
75063 }
75064 
75065 
_wrap_fold_compound_pbacktrack5(PyObject * self,PyObject * args)75066 SWIGINTERN PyObject *_wrap_fold_compound_pbacktrack5(PyObject *self, PyObject *args) {
75067   Py_ssize_t argc;
75068   PyObject *argv[8] = {
75069     0
75070   };
75071 
75072   if (!(argc = SWIG_Python_UnpackTuple(args, "fold_compound_pbacktrack5", 0, 7, argv))) SWIG_fail;
75073   --argc;
75074   if (argc == 2) {
75075     int _v;
75076     void *vptr = 0;
75077     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
75078     _v = SWIG_CheckState(res);
75079     if (_v) {
75080       {
75081         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
75082         _v = SWIG_CheckState(res);
75083       }
75084       if (_v) {
75085         return _wrap_fold_compound_pbacktrack5__SWIG_0(self, argc, argv);
75086       }
75087     }
75088   }
75089   if ((argc >= 3) && (argc <= 4)) {
75090     int _v;
75091     void *vptr = 0;
75092     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
75093     _v = SWIG_CheckState(res);
75094     if (_v) {
75095       {
75096         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
75097         _v = SWIG_CheckState(res);
75098       }
75099       if (_v) {
75100         {
75101           int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
75102           _v = SWIG_CheckState(res);
75103         }
75104         if (_v) {
75105           if (argc <= 3) {
75106             return _wrap_fold_compound_pbacktrack5__SWIG_1(self, argc, argv);
75107           }
75108           {
75109             int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
75110             _v = SWIG_CheckState(res);
75111           }
75112           if (_v) {
75113             return _wrap_fold_compound_pbacktrack5__SWIG_1(self, argc, argv);
75114           }
75115         }
75116       }
75117     }
75118   }
75119   if ((argc >= 4) && (argc <= 5)) {
75120     int _v;
75121     void *vptr = 0;
75122     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
75123     _v = SWIG_CheckState(res);
75124     if (_v) {
75125       {
75126         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
75127         _v = SWIG_CheckState(res);
75128       }
75129       if (_v) {
75130         {
75131           int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
75132           _v = SWIG_CheckState(res);
75133         }
75134         if (_v) {
75135           void *vptr = 0;
75136           int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_vrna_pbacktrack_mem_t, 0);
75137           _v = SWIG_CheckState(res);
75138           if (_v) {
75139             if (argc <= 4) {
75140               return _wrap_fold_compound_pbacktrack5__SWIG_2(self, argc, argv);
75141             }
75142             {
75143               int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL);
75144               _v = SWIG_CheckState(res);
75145             }
75146             if (_v) {
75147               return _wrap_fold_compound_pbacktrack5__SWIG_2(self, argc, argv);
75148             }
75149           }
75150         }
75151       }
75152     }
75153   }
75154   if ((argc >= 4) && (argc <= 6)) {
75155     int _v;
75156     void *vptr = 0;
75157     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
75158     _v = SWIG_CheckState(res);
75159     if (_v) {
75160       {
75161         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
75162         _v = SWIG_CheckState(res);
75163       }
75164       if (_v) {
75165         {
75166           int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
75167           _v = SWIG_CheckState(res);
75168         }
75169         if (_v) {
75170           _v = (argv[3] != 0);
75171           if (_v) {
75172             if (argc <= 4) {
75173               return _wrap_fold_compound_pbacktrack5__SWIG_3(self, argc, argv);
75174             }
75175             _v = (argv[4] != 0);
75176             if (_v) {
75177               if (argc <= 5) {
75178                 return _wrap_fold_compound_pbacktrack5__SWIG_3(self, argc, argv);
75179               }
75180               {
75181                 int res = SWIG_AsVal_unsigned_SS_int(argv[5], NULL);
75182                 _v = SWIG_CheckState(res);
75183               }
75184               if (_v) {
75185                 return _wrap_fold_compound_pbacktrack5__SWIG_3(self, argc, argv);
75186               }
75187             }
75188           }
75189         }
75190       }
75191     }
75192   }
75193   if ((argc >= 6) && (argc <= 7)) {
75194     int _v;
75195     void *vptr = 0;
75196     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_vrna_fold_compound_t, 0);
75197     _v = SWIG_CheckState(res);
75198     if (_v) {
75199       {
75200         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
75201         _v = SWIG_CheckState(res);
75202       }
75203       if (_v) {
75204         {
75205           int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
75206           _v = SWIG_CheckState(res);
75207         }
75208         if (_v) {
75209           _v = (argv[3] != 0);
75210           if (_v) {
75211             _v = (argv[4] != 0);
75212             if (_v) {
75213               void *vptr = 0;
75214               int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_vrna_pbacktrack_mem_t, 0);
75215               _v = SWIG_CheckState(res);
75216               if (_v) {
75217                 if (argc <= 6) {
75218                   return _wrap_fold_compound_pbacktrack5__SWIG_4(self, argc, argv);
75219                 }
75220                 {
75221                   int res = SWIG_AsVal_unsigned_SS_int(argv[6], NULL);
75222                   _v = SWIG_CheckState(res);
75223                 }
75224                 if (_v) {
75225                   return _wrap_fold_compound_pbacktrack5__SWIG_4(self, argc, argv);
75226                 }
75227               }
75228             }
75229           }
75230         }
75231       }
75232     }
75233   }
75234 
75235 fail:
75236   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'fold_compound_pbacktrack5'.\n"
75237     "  Possible C/C++ prototypes are:\n"
75238     "    vrna_fold_compound_t::pbacktrack5(unsigned int)\n"
75239     "    vrna_fold_compound_t::pbacktrack5(unsigned int,unsigned int,unsigned int)\n"
75240     "    vrna_fold_compound_t::pbacktrack5(unsigned int,unsigned int,vrna_pbacktrack_mem_t *,unsigned int)\n"
75241     "    vrna_fold_compound_t::pbacktrack5(unsigned int,unsigned int,PyObject *,PyObject *,unsigned int)\n"
75242     "    vrna_fold_compound_t::pbacktrack5(unsigned int,unsigned int,PyObject *,PyObject *,vrna_pbacktrack_mem_t *,unsigned int)\n");
75243   return 0;
75244 }
75245 
75246 
_wrap_fold_compound_mfe_window_cb(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)75247 SWIGINTERN PyObject *_wrap_fold_compound_mfe_window_cb(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
75248   PyObject *resultobj = 0;
75249   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
75250   PyObject *arg2 = (PyObject *) 0 ;
75251   PyObject *arg3 = (PyObject *) Py_None ;
75252   void *argp1 = 0 ;
75253   int res1 = 0 ;
75254   PyObject * obj0 = 0 ;
75255   PyObject * obj1 = 0 ;
75256   PyObject * obj2 = 0 ;
75257   char * kwnames[] = {
75258     (char *)"self",  (char *)"PyFunc",  (char *)"data",  NULL
75259   };
75260   float result;
75261 
75262   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|O:fold_compound_mfe_window_cb", kwnames, &obj0, &obj1, &obj2)) SWIG_fail;
75263   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
75264   if (!SWIG_IsOK(res1)) {
75265     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_mfe_window_cb" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
75266   }
75267   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
75268   {
75269     if (!PyCallable_Check(obj1)) {
75270       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
75271       return NULL;
75272     }
75273     arg2 = obj1;
75274   }
75275   if (obj2) {
75276     {
75277       arg3 = obj2;
75278     }
75279   }
75280   {
75281     try {
75282       result = (float)vrna_fold_compound_t_mfe_window_cb(arg1,arg2,arg3);
75283     } catch (const std::exception& e) {
75284       SWIG_exception(SWIG_RuntimeError, e.what());
75285     }
75286   }
75287   resultobj = SWIG_From_float(static_cast< float >(result));
75288   return resultobj;
75289 fail:
75290   return NULL;
75291 }
75292 
75293 
_wrap_fold_compound_mfe_window_score_cb(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)75294 SWIGINTERN PyObject *_wrap_fold_compound_mfe_window_score_cb(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
75295   PyObject *resultobj = 0;
75296   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
75297   double arg2 ;
75298   PyObject *arg3 = (PyObject *) 0 ;
75299   PyObject *arg4 = (PyObject *) Py_None ;
75300   void *argp1 = 0 ;
75301   int res1 = 0 ;
75302   double val2 ;
75303   int ecode2 = 0 ;
75304   PyObject * obj0 = 0 ;
75305   PyObject * obj1 = 0 ;
75306   PyObject * obj2 = 0 ;
75307   PyObject * obj3 = 0 ;
75308   char * kwnames[] = {
75309     (char *)"self",  (char *)"min_z",  (char *)"PyFunc",  (char *)"data",  NULL
75310   };
75311   float result;
75312 
75313   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO|O:fold_compound_mfe_window_score_cb", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
75314   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
75315   if (!SWIG_IsOK(res1)) {
75316     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_mfe_window_score_cb" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
75317   }
75318   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
75319   ecode2 = SWIG_AsVal_double(obj1, &val2);
75320   if (!SWIG_IsOK(ecode2)) {
75321     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_mfe_window_score_cb" "', argument " "2"" of type '" "double""'");
75322   }
75323   arg2 = static_cast< double >(val2);
75324   {
75325     if (!PyCallable_Check(obj2)) {
75326       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
75327       return NULL;
75328     }
75329     arg3 = obj2;
75330   }
75331   if (obj3) {
75332     {
75333       arg4 = obj3;
75334     }
75335   }
75336   {
75337     try {
75338       result = (float)vrna_fold_compound_t_mfe_window_score_cb(arg1,arg2,arg3,arg4);
75339     } catch (const std::exception& e) {
75340       SWIG_exception(SWIG_RuntimeError, e.what());
75341     }
75342   }
75343   resultobj = SWIG_From_float(static_cast< float >(result));
75344   return resultobj;
75345 fail:
75346   return NULL;
75347 }
75348 
75349 
_wrap_fold_compound_probs_window(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)75350 SWIGINTERN PyObject *_wrap_fold_compound_probs_window(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
75351   PyObject *resultobj = 0;
75352   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
75353   int arg2 ;
75354   unsigned int arg3 ;
75355   PyObject *arg4 = (PyObject *) 0 ;
75356   PyObject *arg5 = (PyObject *) Py_None ;
75357   void *argp1 = 0 ;
75358   int res1 = 0 ;
75359   int val2 ;
75360   int ecode2 = 0 ;
75361   unsigned int val3 ;
75362   int ecode3 = 0 ;
75363   PyObject * obj0 = 0 ;
75364   PyObject * obj1 = 0 ;
75365   PyObject * obj2 = 0 ;
75366   PyObject * obj3 = 0 ;
75367   PyObject * obj4 = 0 ;
75368   char * kwnames[] = {
75369     (char *)"self",  (char *)"ulength",  (char *)"options",  (char *)"PyFunc",  (char *)"data",  NULL
75370   };
75371   int result;
75372 
75373   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO|O:fold_compound_probs_window", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
75374   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
75375   if (!SWIG_IsOK(res1)) {
75376     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_probs_window" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
75377   }
75378   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
75379   ecode2 = SWIG_AsVal_int(obj1, &val2);
75380   if (!SWIG_IsOK(ecode2)) {
75381     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_probs_window" "', argument " "2"" of type '" "int""'");
75382   }
75383   arg2 = static_cast< int >(val2);
75384   ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
75385   if (!SWIG_IsOK(ecode3)) {
75386     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_probs_window" "', argument " "3"" of type '" "unsigned int""'");
75387   }
75388   arg3 = static_cast< unsigned int >(val3);
75389   {
75390     if (!PyCallable_Check(obj3)) {
75391       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
75392       return NULL;
75393     }
75394     arg4 = obj3;
75395   }
75396   if (obj4) {
75397     {
75398       arg5 = obj4;
75399     }
75400   }
75401   {
75402     try {
75403       result = (int)vrna_fold_compound_t_probs_window(arg1,arg2,arg3,arg4,arg5);
75404     } catch (const std::exception& e) {
75405       SWIG_exception(SWIG_RuntimeError, e.what());
75406     }
75407   }
75408   resultobj = SWIG_From_int(static_cast< int >(result));
75409   return resultobj;
75410 fail:
75411   return NULL;
75412 }
75413 
75414 
_wrap_fold_compound_heat_capacity_cb(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * kwargs)75415 SWIGINTERN PyObject *_wrap_fold_compound_heat_capacity_cb(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
75416   PyObject *resultobj = 0;
75417   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
75418   float arg2 ;
75419   float arg3 ;
75420   float arg4 ;
75421   unsigned int arg5 ;
75422   PyObject *arg6 = (PyObject *) 0 ;
75423   PyObject *arg7 = (PyObject *) Py_None ;
75424   void *argp1 = 0 ;
75425   int res1 = 0 ;
75426   float val2 ;
75427   int ecode2 = 0 ;
75428   float val3 ;
75429   int ecode3 = 0 ;
75430   float val4 ;
75431   int ecode4 = 0 ;
75432   unsigned int val5 ;
75433   int ecode5 = 0 ;
75434   PyObject * obj0 = 0 ;
75435   PyObject * obj1 = 0 ;
75436   PyObject * obj2 = 0 ;
75437   PyObject * obj3 = 0 ;
75438   PyObject * obj4 = 0 ;
75439   PyObject * obj5 = 0 ;
75440   PyObject * obj6 = 0 ;
75441   char * kwnames[] = {
75442     (char *)"self",  (char *)"T_min",  (char *)"T_max",  (char *)"T_increment",  (char *)"mpoints",  (char *)"PyFunc",  (char *)"data",  NULL
75443   };
75444   PyObject *result = 0 ;
75445 
75446   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOO|O:fold_compound_heat_capacity_cb", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6)) SWIG_fail;
75447   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
75448   if (!SWIG_IsOK(res1)) {
75449     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_heat_capacity_cb" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
75450   }
75451   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
75452   ecode2 = SWIG_AsVal_float(obj1, &val2);
75453   if (!SWIG_IsOK(ecode2)) {
75454     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fold_compound_heat_capacity_cb" "', argument " "2"" of type '" "float""'");
75455   }
75456   arg2 = static_cast< float >(val2);
75457   ecode3 = SWIG_AsVal_float(obj2, &val3);
75458   if (!SWIG_IsOK(ecode3)) {
75459     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fold_compound_heat_capacity_cb" "', argument " "3"" of type '" "float""'");
75460   }
75461   arg3 = static_cast< float >(val3);
75462   ecode4 = SWIG_AsVal_float(obj3, &val4);
75463   if (!SWIG_IsOK(ecode4)) {
75464     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fold_compound_heat_capacity_cb" "', argument " "4"" of type '" "float""'");
75465   }
75466   arg4 = static_cast< float >(val4);
75467   ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
75468   if (!SWIG_IsOK(ecode5)) {
75469     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "fold_compound_heat_capacity_cb" "', argument " "5"" of type '" "unsigned int""'");
75470   }
75471   arg5 = static_cast< unsigned int >(val5);
75472   {
75473     if (!PyCallable_Check(obj5)) {
75474       PyErr_SetString(PyExc_TypeError, "Need a callable object!");
75475       return NULL;
75476     }
75477     arg6 = obj5;
75478   }
75479   if (obj6) {
75480     {
75481       arg7 = obj6;
75482     }
75483   }
75484   {
75485     try {
75486       result = (PyObject *)vrna_fold_compound_t_heat_capacity_cb(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
75487     } catch (const std::exception& e) {
75488       SWIG_exception(SWIG_RuntimeError, e.what());
75489     }
75490   }
75491   resultobj = result;
75492   return resultobj;
75493 fail:
75494   return NULL;
75495 }
75496 
75497 
_wrap_fold_compound_type_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)75498 SWIGINTERN PyObject *_wrap_fold_compound_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
75499   PyObject *resultobj = 0;
75500   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
75501   void *argp1 = 0 ;
75502   int res1 = 0 ;
75503   PyObject *swig_obj[1] ;
75504   vrna_fc_type_e result;
75505 
75506   if (!args) SWIG_fail;
75507   swig_obj[0] = args;
75508   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
75509   if (!SWIG_IsOK(res1)) {
75510     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_type_get" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
75511   }
75512   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
75513   result = (vrna_fc_type_e)(vrna_fc_type_e) ((arg1)->type);
75514   resultobj = SWIG_From_int(static_cast< int >(result));
75515   return resultobj;
75516 fail:
75517   return NULL;
75518 }
75519 
75520 
_wrap_fold_compound_length_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)75521 SWIGINTERN PyObject *_wrap_fold_compound_length_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
75522   PyObject *resultobj = 0;
75523   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
75524   void *argp1 = 0 ;
75525   int res1 = 0 ;
75526   PyObject *swig_obj[1] ;
75527   unsigned int result;
75528 
75529   if (!args) SWIG_fail;
75530   swig_obj[0] = args;
75531   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
75532   if (!SWIG_IsOK(res1)) {
75533     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_length_get" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
75534   }
75535   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
75536   result = (unsigned int)(unsigned int) ((arg1)->length);
75537   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
75538   return resultobj;
75539 fail:
75540   return NULL;
75541 }
75542 
75543 
_wrap_fold_compound_strands_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)75544 SWIGINTERN PyObject *_wrap_fold_compound_strands_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
75545   PyObject *resultobj = 0;
75546   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
75547   void *argp1 = 0 ;
75548   int res1 = 0 ;
75549   PyObject *swig_obj[1] ;
75550   unsigned int result;
75551 
75552   if (!args) SWIG_fail;
75553   swig_obj[0] = args;
75554   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
75555   if (!SWIG_IsOK(res1)) {
75556     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_strands_get" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
75557   }
75558   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
75559   result = (unsigned int)(unsigned int) ((arg1)->strands);
75560   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
75561   return resultobj;
75562 fail:
75563   return NULL;
75564 }
75565 
75566 
_wrap_fold_compound_params_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)75567 SWIGINTERN PyObject *_wrap_fold_compound_params_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
75568   PyObject *resultobj = 0;
75569   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
75570   void *argp1 = 0 ;
75571   int res1 = 0 ;
75572   PyObject *swig_obj[1] ;
75573   vrna_param_t *result = 0 ;
75574 
75575   if (!args) SWIG_fail;
75576   swig_obj[0] = args;
75577   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
75578   if (!SWIG_IsOK(res1)) {
75579     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_params_get" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
75580   }
75581   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
75582   result = (vrna_param_t *)(vrna_param_t *) ((arg1)->params);
75583   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_param_t, 0 |  0 );
75584   return resultobj;
75585 fail:
75586   return NULL;
75587 }
75588 
75589 
_wrap_fold_compound_exp_params_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)75590 SWIGINTERN PyObject *_wrap_fold_compound_exp_params_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
75591   PyObject *resultobj = 0;
75592   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
75593   void *argp1 = 0 ;
75594   int res1 = 0 ;
75595   PyObject *swig_obj[1] ;
75596   vrna_exp_param_t *result = 0 ;
75597 
75598   if (!args) SWIG_fail;
75599   swig_obj[0] = args;
75600   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
75601   if (!SWIG_IsOK(res1)) {
75602     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound_exp_params_get" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
75603   }
75604   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
75605   result = (vrna_exp_param_t *)(vrna_exp_param_t *) ((arg1)->exp_params);
75606   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_exp_param_t, 0 |  0 );
75607   return resultobj;
75608 fail:
75609   return NULL;
75610 }
75611 
75612 
_wrap_new_fold_compound__SWIG_0(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)75613 SWIGINTERN PyObject *_wrap_new_fold_compound__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
75614   PyObject *resultobj = 0;
75615   char *arg1 = (char *) 0 ;
75616   vrna_md_t *arg2 = (vrna_md_t *) NULL ;
75617   unsigned int arg3 = (unsigned int) VRNA_OPTION_DEFAULT ;
75618   int res1 ;
75619   char *buf1 = 0 ;
75620   int alloc1 = 0 ;
75621   void *argp2 = 0 ;
75622   int res2 = 0 ;
75623   unsigned int val3 ;
75624   int ecode3 = 0 ;
75625   vrna_fold_compound_t *result = 0 ;
75626 
75627   if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
75628   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
75629   if (!SWIG_IsOK(res1)) {
75630     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_fold_compound" "', argument " "1"" of type '" "char const *""'");
75631   }
75632   arg1 = reinterpret_cast< char * >(buf1);
75633   if (swig_obj[1]) {
75634     res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_vrna_md_t, 0 |  0 );
75635     if (!SWIG_IsOK(res2)) {
75636       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_fold_compound" "', argument " "2"" of type '" "vrna_md_t *""'");
75637     }
75638     arg2 = reinterpret_cast< vrna_md_t * >(argp2);
75639   }
75640   if (swig_obj[2]) {
75641     ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
75642     if (!SWIG_IsOK(ecode3)) {
75643       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_fold_compound" "', argument " "3"" of type '" "unsigned int""'");
75644     }
75645     arg3 = static_cast< unsigned int >(val3);
75646   }
75647   {
75648     try {
75649       result = (vrna_fold_compound_t *)new_vrna_fold_compound_t__SWIG_0((char const *)arg1,arg2,arg3);
75650     } catch (const std::exception& e) {
75651       SWIG_exception(SWIG_RuntimeError, e.what());
75652     }
75653   }
75654   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_fold_compound_t, SWIG_POINTER_NEW |  0 );
75655   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
75656   return resultobj;
75657 fail:
75658   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
75659   return NULL;
75660 }
75661 
75662 
_wrap_new_fold_compound__SWIG_1(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)75663 SWIGINTERN PyObject *_wrap_new_fold_compound__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
75664   PyObject *resultobj = 0;
75665   std::vector< std::string,std::allocator< std::string > > arg1 ;
75666   vrna_md_t *arg2 = (vrna_md_t *) NULL ;
75667   unsigned int arg3 = (unsigned int) VRNA_OPTION_DEFAULT ;
75668   void *argp2 = 0 ;
75669   int res2 = 0 ;
75670   unsigned int val3 ;
75671   int ecode3 = 0 ;
75672   vrna_fold_compound_t *result = 0 ;
75673 
75674   if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
75675   {
75676     std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
75677     int res = swig::asptr(swig_obj[0], &ptr);
75678     if (!SWIG_IsOK(res) || !ptr) {
75679       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_fold_compound" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > >""'");
75680     }
75681     arg1 = *ptr;
75682     if (SWIG_IsNewObj(res)) delete ptr;
75683   }
75684   if (swig_obj[1]) {
75685     res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_vrna_md_t, 0 |  0 );
75686     if (!SWIG_IsOK(res2)) {
75687       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_fold_compound" "', argument " "2"" of type '" "vrna_md_t *""'");
75688     }
75689     arg2 = reinterpret_cast< vrna_md_t * >(argp2);
75690   }
75691   if (swig_obj[2]) {
75692     ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
75693     if (!SWIG_IsOK(ecode3)) {
75694       SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_fold_compound" "', argument " "3"" of type '" "unsigned int""'");
75695     }
75696     arg3 = static_cast< unsigned int >(val3);
75697   }
75698   {
75699     try {
75700       result = (vrna_fold_compound_t *)new_vrna_fold_compound_t__SWIG_1(arg1,arg2,arg3);
75701     } catch (const std::exception& e) {
75702       SWIG_exception(SWIG_RuntimeError, e.what());
75703     }
75704   }
75705   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_fold_compound_t, SWIG_POINTER_NEW |  0 );
75706   return resultobj;
75707 fail:
75708   return NULL;
75709 }
75710 
75711 
_wrap_new_fold_compound__SWIG_2(PyObject * SWIGUNUSEDPARM (self),Py_ssize_t nobjs,PyObject ** swig_obj)75712 SWIGINTERN PyObject *_wrap_new_fold_compound__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
75713   PyObject *resultobj = 0;
75714   char *arg1 = (char *) 0 ;
75715   char *arg2 = (char *) 0 ;
75716   char *arg3 = (char *) 0 ;
75717   vrna_md_t *arg4 = (vrna_md_t *) NULL ;
75718   unsigned int arg5 = (unsigned int) VRNA_OPTION_DEFAULT ;
75719   int res1 ;
75720   char *buf1 = 0 ;
75721   int alloc1 = 0 ;
75722   int res2 ;
75723   char *buf2 = 0 ;
75724   int alloc2 = 0 ;
75725   int res3 ;
75726   char *buf3 = 0 ;
75727   int alloc3 = 0 ;
75728   void *argp4 = 0 ;
75729   int res4 = 0 ;
75730   unsigned int val5 ;
75731   int ecode5 = 0 ;
75732   vrna_fold_compound_t *result = 0 ;
75733 
75734   if ((nobjs < 3) || (nobjs > 5)) SWIG_fail;
75735   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
75736   if (!SWIG_IsOK(res1)) {
75737     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_fold_compound" "', argument " "1"" of type '" "char const *""'");
75738   }
75739   arg1 = reinterpret_cast< char * >(buf1);
75740   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
75741   if (!SWIG_IsOK(res2)) {
75742     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_fold_compound" "', argument " "2"" of type '" "char *""'");
75743   }
75744   arg2 = reinterpret_cast< char * >(buf2);
75745   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
75746   if (!SWIG_IsOK(res3)) {
75747     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_fold_compound" "', argument " "3"" of type '" "char *""'");
75748   }
75749   arg3 = reinterpret_cast< char * >(buf3);
75750   if (swig_obj[3]) {
75751     res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_vrna_md_t, 0 |  0 );
75752     if (!SWIG_IsOK(res4)) {
75753       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_fold_compound" "', argument " "4"" of type '" "vrna_md_t *""'");
75754     }
75755     arg4 = reinterpret_cast< vrna_md_t * >(argp4);
75756   }
75757   if (swig_obj[4]) {
75758     ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5);
75759     if (!SWIG_IsOK(ecode5)) {
75760       SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_fold_compound" "', argument " "5"" of type '" "unsigned int""'");
75761     }
75762     arg5 = static_cast< unsigned int >(val5);
75763   }
75764   {
75765     try {
75766       result = (vrna_fold_compound_t *)new_vrna_fold_compound_t__SWIG_2((char const *)arg1,arg2,arg3,arg4,arg5);
75767     } catch (const std::exception& e) {
75768       SWIG_exception(SWIG_RuntimeError, e.what());
75769     }
75770   }
75771   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_vrna_fold_compound_t, SWIG_POINTER_NEW |  0 );
75772   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
75773   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
75774   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
75775   return resultobj;
75776 fail:
75777   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
75778   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
75779   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
75780   return NULL;
75781 }
75782 
75783 
_wrap_new_fold_compound(PyObject * self,PyObject * args)75784 SWIGINTERN PyObject *_wrap_new_fold_compound(PyObject *self, PyObject *args) {
75785   Py_ssize_t argc;
75786   PyObject *argv[6] = {
75787     0
75788   };
75789 
75790   if (!(argc = SWIG_Python_UnpackTuple(args, "new_fold_compound", 0, 5, argv))) SWIG_fail;
75791   --argc;
75792   if ((argc >= 1) && (argc <= 3)) {
75793     int _v;
75794     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
75795     _v = SWIG_CheckState(res);
75796     if (_v) {
75797       if (argc <= 1) {
75798         return _wrap_new_fold_compound__SWIG_0(self, argc, argv);
75799       }
75800       void *vptr = 0;
75801       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_vrna_md_t, 0);
75802       _v = SWIG_CheckState(res);
75803       if (_v) {
75804         if (argc <= 2) {
75805           return _wrap_new_fold_compound__SWIG_0(self, argc, argv);
75806         }
75807         {
75808           int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
75809           _v = SWIG_CheckState(res);
75810         }
75811         if (_v) {
75812           return _wrap_new_fold_compound__SWIG_0(self, argc, argv);
75813         }
75814       }
75815     }
75816   }
75817   if ((argc >= 1) && (argc <= 3)) {
75818     int _v;
75819     int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
75820     _v = SWIG_CheckState(res);
75821     if (_v) {
75822       if (argc <= 1) {
75823         return _wrap_new_fold_compound__SWIG_1(self, argc, argv);
75824       }
75825       void *vptr = 0;
75826       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_vrna_md_t, 0);
75827       _v = SWIG_CheckState(res);
75828       if (_v) {
75829         if (argc <= 2) {
75830           return _wrap_new_fold_compound__SWIG_1(self, argc, argv);
75831         }
75832         {
75833           int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
75834           _v = SWIG_CheckState(res);
75835         }
75836         if (_v) {
75837           return _wrap_new_fold_compound__SWIG_1(self, argc, argv);
75838         }
75839       }
75840     }
75841   }
75842   if ((argc >= 3) && (argc <= 5)) {
75843     int _v;
75844     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
75845     _v = SWIG_CheckState(res);
75846     if (_v) {
75847       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
75848       _v = SWIG_CheckState(res);
75849       if (_v) {
75850         int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
75851         _v = SWIG_CheckState(res);
75852         if (_v) {
75853           if (argc <= 3) {
75854             return _wrap_new_fold_compound__SWIG_2(self, argc, argv);
75855           }
75856           void *vptr = 0;
75857           int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_vrna_md_t, 0);
75858           _v = SWIG_CheckState(res);
75859           if (_v) {
75860             if (argc <= 4) {
75861               return _wrap_new_fold_compound__SWIG_2(self, argc, argv);
75862             }
75863             {
75864               int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL);
75865               _v = SWIG_CheckState(res);
75866             }
75867             if (_v) {
75868               return _wrap_new_fold_compound__SWIG_2(self, argc, argv);
75869             }
75870           }
75871         }
75872       }
75873     }
75874   }
75875 
75876 fail:
75877   SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_fold_compound'.\n"
75878     "  Possible C/C++ prototypes are:\n"
75879     "    vrna_fold_compound_t::vrna_fold_compound_t(char const *,vrna_md_t *,unsigned int)\n"
75880     "    vrna_fold_compound_t::vrna_fold_compound_t(std::vector< std::string,std::allocator< std::string > >,vrna_md_t *,unsigned int)\n"
75881     "    vrna_fold_compound_t::vrna_fold_compound_t(char const *,char *,char *,vrna_md_t *,unsigned int)\n");
75882   return 0;
75883 }
75884 
75885 
_wrap_delete_fold_compound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)75886 SWIGINTERN PyObject *_wrap_delete_fold_compound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
75887   PyObject *resultobj = 0;
75888   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
75889   void *argp1 = 0 ;
75890   int res1 = 0 ;
75891   PyObject *swig_obj[1] ;
75892 
75893   if (!args) SWIG_fail;
75894   swig_obj[0] = args;
75895   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, SWIG_POINTER_DISOWN |  0 );
75896   if (!SWIG_IsOK(res1)) {
75897     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_fold_compound" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
75898   }
75899   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
75900   {
75901     try {
75902       delete_vrna_fold_compound_t(arg1);
75903     } catch (const std::exception& e) {
75904       SWIG_exception(SWIG_RuntimeError, e.what());
75905     }
75906   }
75907   resultobj = SWIG_Py_Void();
75908   return resultobj;
75909 fail:
75910   return NULL;
75911 }
75912 
75913 
_wrap_fold_compound___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)75914 SWIGINTERN PyObject *_wrap_fold_compound___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
75915   PyObject *resultobj = 0;
75916   vrna_fold_compound_t *arg1 = (vrna_fold_compound_t *) 0 ;
75917   void *argp1 = 0 ;
75918   int res1 = 0 ;
75919   PyObject *swig_obj[1] ;
75920   std::string result;
75921 
75922   if (!args) SWIG_fail;
75923   swig_obj[0] = args;
75924   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_vrna_fold_compound_t, 0 |  0 );
75925   if (!SWIG_IsOK(res1)) {
75926     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fold_compound___str__" "', argument " "1"" of type '" "vrna_fold_compound_t *""'");
75927   }
75928   arg1 = reinterpret_cast< vrna_fold_compound_t * >(argp1);
75929   {
75930     try {
75931       result = vrna_fold_compound_t___str__(arg1);
75932     } catch (const std::exception& e) {
75933       SWIG_exception(SWIG_RuntimeError, e.what());
75934     }
75935   }
75936   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
75937   return resultobj;
75938 fail:
75939   return NULL;
75940 }
75941 
75942 
fold_compound_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)75943 SWIGINTERN PyObject *fold_compound_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
75944   PyObject *obj;
75945   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
75946   SWIG_TypeNewClientData(SWIGTYPE_p_vrna_fold_compound_t, SWIG_NewClientData(obj));
75947   return SWIG_Py_Void();
75948 }
75949 
fold_compound_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)75950 SWIGINTERN PyObject *fold_compound_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
75951   return SWIG_Python_InitShadowInstance(args);
75952 }
75953 
Swig_var_base_pair_set(PyObject *)75954 SWIGINTERN int Swig_var_base_pair_set(PyObject *) {
75955   SWIG_Error(SWIG_AttributeError,"Variable base_pair is read-only.");
75956   return 1;
75957 }
75958 
75959 
Swig_var_base_pair_get(void)75960 SWIGINTERN PyObject *Swig_var_base_pair_get(void) {
75961   PyObject *pyobj = 0;
75962 
75963   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(base_pair), SWIGTYPE_p_vrna_bp_stack_s,  0 );
75964   return pyobj;
75965 }
75966 
75967 
Swig_var_pr_set(PyObject *)75968 SWIGINTERN int Swig_var_pr_set(PyObject *) {
75969   SWIG_Error(SWIG_AttributeError,"Variable pr is read-only.");
75970   return 1;
75971 }
75972 
75973 
Swig_var_pr_get(void)75974 SWIGINTERN PyObject *Swig_var_pr_get(void) {
75975   PyObject *pyobj = 0;
75976 
75977   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(pr), SWIGTYPE_p_double,  0 );
75978   return pyobj;
75979 }
75980 
75981 
Swig_var_iindx_set(PyObject *)75982 SWIGINTERN int Swig_var_iindx_set(PyObject *) {
75983   SWIG_Error(SWIG_AttributeError,"Variable iindx is read-only.");
75984   return 1;
75985 }
75986 
75987 
Swig_var_iindx_get(void)75988 SWIGINTERN PyObject *Swig_var_iindx_get(void) {
75989   PyObject *pyobj = 0;
75990 
75991   pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(iindx), SWIGTYPE_p_int,  0 );
75992   return pyobj;
75993 }
75994 
75995 
Swig_var_fold_constrained_set(PyObject * _val)75996 SWIGINTERN int Swig_var_fold_constrained_set(PyObject *_val) {
75997   {
75998     int val;
75999     int res = SWIG_AsVal_int(_val, &val);
76000     if (!SWIG_IsOK(res)) {
76001       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""fold_constrained""' of type '""int""'");
76002     }
76003     fold_constrained = static_cast< int >(val);
76004   }
76005   return 0;
76006 fail:
76007   return 1;
76008 }
76009 
76010 
Swig_var_fold_constrained_get(void)76011 SWIGINTERN PyObject *Swig_var_fold_constrained_get(void) {
76012   PyObject *pyobj = 0;
76013 
76014   pyobj = SWIG_From_int(static_cast< int >(fold_constrained));
76015   return pyobj;
76016 }
76017 
76018 
Swig_var_csv_set(PyObject * _val)76019 SWIGINTERN int Swig_var_csv_set(PyObject *_val) {
76020   {
76021     int val;
76022     int res = SWIG_AsVal_int(_val, &val);
76023     if (!SWIG_IsOK(res)) {
76024       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""csv""' of type '""int""'");
76025     }
76026     csv = static_cast< int >(val);
76027   }
76028   return 0;
76029 fail:
76030   return 1;
76031 }
76032 
76033 
Swig_var_csv_get(void)76034 SWIGINTERN PyObject *Swig_var_csv_get(void) {
76035   PyObject *pyobj = 0;
76036 
76037   pyobj = SWIG_From_int(static_cast< int >(csv));
76038   return pyobj;
76039 }
76040 
76041 
Swig_var_RibosumFile_set(PyObject * _val)76042 SWIGINTERN int Swig_var_RibosumFile_set(PyObject *_val) {
76043   {
76044     char *cptr = 0; size_t csize = 0; int alloc = SWIG_NEWOBJ;
76045     int res = SWIG_AsCharPtrAndSize(_val, &cptr, &csize, &alloc);
76046     if (!SWIG_IsOK(res)) {
76047       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""RibosumFile""' of type '""char *""'");
76048     }
76049     if (RibosumFile) delete[] RibosumFile;
76050     if (alloc == SWIG_NEWOBJ) {
76051       RibosumFile = cptr;
76052     } else {
76053       RibosumFile = csize ? (char *)reinterpret_cast< char* >(memcpy(new char[csize], cptr, sizeof(char)*(csize))) : 0;
76054     }
76055   }
76056   return 0;
76057 fail:
76058   return 1;
76059 }
76060 
76061 
Swig_var_RibosumFile_get(void)76062 SWIGINTERN PyObject *Swig_var_RibosumFile_get(void) {
76063   PyObject *pyobj = 0;
76064 
76065   pyobj = SWIG_FromCharPtr(RibosumFile);
76066   return pyobj;
76067 }
76068 
76069 
Swig_var_james_rule_set(PyObject * _val)76070 SWIGINTERN int Swig_var_james_rule_set(PyObject *_val) {
76071   {
76072     int val;
76073     int res = SWIG_AsVal_int(_val, &val);
76074     if (!SWIG_IsOK(res)) {
76075       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""james_rule""' of type '""int""'");
76076     }
76077     james_rule = static_cast< int >(val);
76078   }
76079   return 0;
76080 fail:
76081   return 1;
76082 }
76083 
76084 
Swig_var_james_rule_get(void)76085 SWIGINTERN PyObject *Swig_var_james_rule_get(void) {
76086   PyObject *pyobj = 0;
76087 
76088   pyobj = SWIG_From_int(static_cast< int >(james_rule));
76089   return pyobj;
76090 }
76091 
76092 
76093 static PyMethodDef SwigMethods[] = {
76094 	 { "SWIG_PyInstanceMethod_New", SWIG_PyInstanceMethod_New, METH_O, NULL},
76095 	 { "new_intP", (PyCFunction)(void(*)(void))_wrap_new_intP, METH_VARARGS|METH_KEYWORDS, NULL},
76096 	 { "delete_intP", (PyCFunction)(void(*)(void))_wrap_delete_intP, METH_VARARGS|METH_KEYWORDS, NULL},
76097 	 { "intP_getitem", (PyCFunction)(void(*)(void))_wrap_intP_getitem, METH_VARARGS|METH_KEYWORDS, NULL},
76098 	 { "intP_setitem", (PyCFunction)(void(*)(void))_wrap_intP_setitem, METH_VARARGS|METH_KEYWORDS, NULL},
76099 	 { "new_intArray", (PyCFunction)(void(*)(void))_wrap_new_intArray, METH_VARARGS|METH_KEYWORDS, NULL},
76100 	 { "delete_intArray", _wrap_delete_intArray, METH_O, NULL},
76101 	 { "intArray___getitem__", (PyCFunction)(void(*)(void))_wrap_intArray___getitem__, METH_VARARGS|METH_KEYWORDS, NULL},
76102 	 { "intArray___setitem__", (PyCFunction)(void(*)(void))_wrap_intArray___setitem__, METH_VARARGS|METH_KEYWORDS, NULL},
76103 	 { "intArray_cast", _wrap_intArray_cast, METH_O, NULL},
76104 	 { "intArray_frompointer", (PyCFunction)(void(*)(void))_wrap_intArray_frompointer, METH_VARARGS|METH_KEYWORDS, NULL},
76105 	 { "intArray_swigregister", intArray_swigregister, METH_O, NULL},
76106 	 { "intArray_swiginit", intArray_swiginit, METH_VARARGS, NULL},
76107 	 { "new_floatP", (PyCFunction)(void(*)(void))_wrap_new_floatP, METH_VARARGS|METH_KEYWORDS, NULL},
76108 	 { "delete_floatP", (PyCFunction)(void(*)(void))_wrap_delete_floatP, METH_VARARGS|METH_KEYWORDS, NULL},
76109 	 { "floatP_getitem", (PyCFunction)(void(*)(void))_wrap_floatP_getitem, METH_VARARGS|METH_KEYWORDS, NULL},
76110 	 { "floatP_setitem", (PyCFunction)(void(*)(void))_wrap_floatP_setitem, METH_VARARGS|METH_KEYWORDS, NULL},
76111 	 { "new_floatArray", (PyCFunction)(void(*)(void))_wrap_new_floatArray, METH_VARARGS|METH_KEYWORDS, NULL},
76112 	 { "delete_floatArray", _wrap_delete_floatArray, METH_O, NULL},
76113 	 { "floatArray___getitem__", (PyCFunction)(void(*)(void))_wrap_floatArray___getitem__, METH_VARARGS|METH_KEYWORDS, NULL},
76114 	 { "floatArray___setitem__", (PyCFunction)(void(*)(void))_wrap_floatArray___setitem__, METH_VARARGS|METH_KEYWORDS, NULL},
76115 	 { "floatArray_cast", _wrap_floatArray_cast, METH_O, NULL},
76116 	 { "floatArray_frompointer", (PyCFunction)(void(*)(void))_wrap_floatArray_frompointer, METH_VARARGS|METH_KEYWORDS, NULL},
76117 	 { "floatArray_swigregister", floatArray_swigregister, METH_O, NULL},
76118 	 { "floatArray_swiginit", floatArray_swiginit, METH_VARARGS, NULL},
76119 	 { "new_doubleP", (PyCFunction)(void(*)(void))_wrap_new_doubleP, METH_VARARGS|METH_KEYWORDS, NULL},
76120 	 { "delete_doubleP", (PyCFunction)(void(*)(void))_wrap_delete_doubleP, METH_VARARGS|METH_KEYWORDS, NULL},
76121 	 { "doubleP_getitem", (PyCFunction)(void(*)(void))_wrap_doubleP_getitem, METH_VARARGS|METH_KEYWORDS, NULL},
76122 	 { "doubleP_setitem", (PyCFunction)(void(*)(void))_wrap_doubleP_setitem, METH_VARARGS|METH_KEYWORDS, NULL},
76123 	 { "new_doubleArray", (PyCFunction)(void(*)(void))_wrap_new_doubleArray, METH_VARARGS|METH_KEYWORDS, NULL},
76124 	 { "delete_doubleArray", _wrap_delete_doubleArray, METH_O, NULL},
76125 	 { "doubleArray___getitem__", (PyCFunction)(void(*)(void))_wrap_doubleArray___getitem__, METH_VARARGS|METH_KEYWORDS, NULL},
76126 	 { "doubleArray___setitem__", (PyCFunction)(void(*)(void))_wrap_doubleArray___setitem__, METH_VARARGS|METH_KEYWORDS, NULL},
76127 	 { "doubleArray_cast", _wrap_doubleArray_cast, METH_O, NULL},
76128 	 { "doubleArray_frompointer", (PyCFunction)(void(*)(void))_wrap_doubleArray_frompointer, METH_VARARGS|METH_KEYWORDS, NULL},
76129 	 { "doubleArray_swigregister", doubleArray_swigregister, METH_O, NULL},
76130 	 { "doubleArray_swiginit", doubleArray_swiginit, METH_VARARGS, NULL},
76131 	 { "new_ushortP", (PyCFunction)(void(*)(void))_wrap_new_ushortP, METH_VARARGS|METH_KEYWORDS, NULL},
76132 	 { "delete_ushortP", (PyCFunction)(void(*)(void))_wrap_delete_ushortP, METH_VARARGS|METH_KEYWORDS, NULL},
76133 	 { "ushortP_getitem", (PyCFunction)(void(*)(void))_wrap_ushortP_getitem, METH_VARARGS|METH_KEYWORDS, NULL},
76134 	 { "ushortP_setitem", (PyCFunction)(void(*)(void))_wrap_ushortP_setitem, METH_VARARGS|METH_KEYWORDS, NULL},
76135 	 { "new_shortP", (PyCFunction)(void(*)(void))_wrap_new_shortP, METH_VARARGS|METH_KEYWORDS, NULL},
76136 	 { "delete_shortP", (PyCFunction)(void(*)(void))_wrap_delete_shortP, METH_VARARGS|METH_KEYWORDS, NULL},
76137 	 { "shortP_getitem", (PyCFunction)(void(*)(void))_wrap_shortP_getitem, METH_VARARGS|METH_KEYWORDS, NULL},
76138 	 { "shortP_setitem", (PyCFunction)(void(*)(void))_wrap_shortP_setitem, METH_VARARGS|METH_KEYWORDS, NULL},
76139 	 { "cdata", (PyCFunction)(void(*)(void))_wrap_cdata, METH_VARARGS|METH_KEYWORDS, NULL},
76140 	 { "memmove", (PyCFunction)(void(*)(void))_wrap_memmove, METH_VARARGS|METH_KEYWORDS, NULL},
76141 	 { "delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_O, NULL},
76142 	 { "SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_O, NULL},
76143 	 { "SwigPyIterator_incr", (PyCFunction)(void(*)(void))_wrap_SwigPyIterator_incr, METH_VARARGS|METH_KEYWORDS, NULL},
76144 	 { "SwigPyIterator_decr", (PyCFunction)(void(*)(void))_wrap_SwigPyIterator_decr, METH_VARARGS|METH_KEYWORDS, NULL},
76145 	 { "SwigPyIterator_distance", (PyCFunction)(void(*)(void))_wrap_SwigPyIterator_distance, METH_VARARGS|METH_KEYWORDS, NULL},
76146 	 { "SwigPyIterator_equal", (PyCFunction)(void(*)(void))_wrap_SwigPyIterator_equal, METH_VARARGS|METH_KEYWORDS, NULL},
76147 	 { "SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_O, NULL},
76148 	 { "SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_O, NULL},
76149 	 { "SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_O, NULL},
76150 	 { "SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_O, NULL},
76151 	 { "SwigPyIterator_advance", (PyCFunction)(void(*)(void))_wrap_SwigPyIterator_advance, METH_VARARGS|METH_KEYWORDS, NULL},
76152 	 { "SwigPyIterator___eq__", (PyCFunction)(void(*)(void))_wrap_SwigPyIterator___eq__, METH_VARARGS|METH_KEYWORDS, NULL},
76153 	 { "SwigPyIterator___ne__", (PyCFunction)(void(*)(void))_wrap_SwigPyIterator___ne__, METH_VARARGS|METH_KEYWORDS, NULL},
76154 	 { "SwigPyIterator___iadd__", (PyCFunction)(void(*)(void))_wrap_SwigPyIterator___iadd__, METH_VARARGS|METH_KEYWORDS, NULL},
76155 	 { "SwigPyIterator___isub__", (PyCFunction)(void(*)(void))_wrap_SwigPyIterator___isub__, METH_VARARGS|METH_KEYWORDS, NULL},
76156 	 { "SwigPyIterator___add__", (PyCFunction)(void(*)(void))_wrap_SwigPyIterator___add__, METH_VARARGS|METH_KEYWORDS, NULL},
76157 	 { "SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS, NULL},
76158 	 { "SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_O, NULL},
76159 	 { "new_DoublePair", _wrap_new_DoublePair, METH_VARARGS, NULL},
76160 	 { "DoublePair_first_set", _wrap_DoublePair_first_set, METH_VARARGS, NULL},
76161 	 { "DoublePair_first_get", _wrap_DoublePair_first_get, METH_O, NULL},
76162 	 { "DoublePair_second_set", _wrap_DoublePair_second_set, METH_VARARGS, NULL},
76163 	 { "DoublePair_second_get", _wrap_DoublePair_second_get, METH_O, NULL},
76164 	 { "delete_DoublePair", _wrap_delete_DoublePair, METH_O, NULL},
76165 	 { "DoublePair_swigregister", DoublePair_swigregister, METH_O, NULL},
76166 	 { "DoublePair_swiginit", DoublePair_swiginit, METH_VARARGS, NULL},
76167 	 { "IntVector_iterator", _wrap_IntVector_iterator, METH_O, NULL},
76168 	 { "IntVector___nonzero__", _wrap_IntVector___nonzero__, METH_O, NULL},
76169 	 { "IntVector___bool__", _wrap_IntVector___bool__, METH_O, NULL},
76170 	 { "IntVector___len__", _wrap_IntVector___len__, METH_O, NULL},
76171 	 { "IntVector___getslice__", (PyCFunction)(void(*)(void))_wrap_IntVector___getslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76172 	 { "IntVector___setslice__", _wrap_IntVector___setslice__, METH_VARARGS, NULL},
76173 	 { "IntVector___delslice__", (PyCFunction)(void(*)(void))_wrap_IntVector___delslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76174 	 { "IntVector___delitem__", _wrap_IntVector___delitem__, METH_VARARGS, NULL},
76175 	 { "IntVector___getitem__", _wrap_IntVector___getitem__, METH_VARARGS, NULL},
76176 	 { "IntVector___setitem__", _wrap_IntVector___setitem__, METH_VARARGS, NULL},
76177 	 { "IntVector_pop", _wrap_IntVector_pop, METH_O, NULL},
76178 	 { "IntVector_append", (PyCFunction)(void(*)(void))_wrap_IntVector_append, METH_VARARGS|METH_KEYWORDS, NULL},
76179 	 { "IntVector_empty", _wrap_IntVector_empty, METH_O, NULL},
76180 	 { "IntVector_size", _wrap_IntVector_size, METH_O, NULL},
76181 	 { "IntVector_swap", (PyCFunction)(void(*)(void))_wrap_IntVector_swap, METH_VARARGS|METH_KEYWORDS, NULL},
76182 	 { "IntVector_begin", _wrap_IntVector_begin, METH_O, NULL},
76183 	 { "IntVector_end", _wrap_IntVector_end, METH_O, NULL},
76184 	 { "IntVector_rbegin", _wrap_IntVector_rbegin, METH_O, NULL},
76185 	 { "IntVector_rend", _wrap_IntVector_rend, METH_O, NULL},
76186 	 { "IntVector_clear", _wrap_IntVector_clear, METH_O, NULL},
76187 	 { "IntVector_get_allocator", _wrap_IntVector_get_allocator, METH_O, NULL},
76188 	 { "IntVector_pop_back", _wrap_IntVector_pop_back, METH_O, NULL},
76189 	 { "IntVector_erase", _wrap_IntVector_erase, METH_VARARGS, NULL},
76190 	 { "new_IntVector", _wrap_new_IntVector, METH_VARARGS, NULL},
76191 	 { "IntVector_push_back", (PyCFunction)(void(*)(void))_wrap_IntVector_push_back, METH_VARARGS|METH_KEYWORDS, NULL},
76192 	 { "IntVector_front", _wrap_IntVector_front, METH_O, NULL},
76193 	 { "IntVector_back", _wrap_IntVector_back, METH_O, NULL},
76194 	 { "IntVector_assign", (PyCFunction)(void(*)(void))_wrap_IntVector_assign, METH_VARARGS|METH_KEYWORDS, NULL},
76195 	 { "IntVector_resize", _wrap_IntVector_resize, METH_VARARGS, NULL},
76196 	 { "IntVector_insert", _wrap_IntVector_insert, METH_VARARGS, NULL},
76197 	 { "IntVector_reserve", (PyCFunction)(void(*)(void))_wrap_IntVector_reserve, METH_VARARGS|METH_KEYWORDS, NULL},
76198 	 { "IntVector_capacity", _wrap_IntVector_capacity, METH_O, NULL},
76199 	 { "delete_IntVector", _wrap_delete_IntVector, METH_O, NULL},
76200 	 { "IntVector_swigregister", IntVector_swigregister, METH_O, NULL},
76201 	 { "IntVector_swiginit", IntVector_swiginit, METH_VARARGS, NULL},
76202 	 { "UIntVector_iterator", _wrap_UIntVector_iterator, METH_O, NULL},
76203 	 { "UIntVector___nonzero__", _wrap_UIntVector___nonzero__, METH_O, NULL},
76204 	 { "UIntVector___bool__", _wrap_UIntVector___bool__, METH_O, NULL},
76205 	 { "UIntVector___len__", _wrap_UIntVector___len__, METH_O, NULL},
76206 	 { "UIntVector___getslice__", (PyCFunction)(void(*)(void))_wrap_UIntVector___getslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76207 	 { "UIntVector___setslice__", _wrap_UIntVector___setslice__, METH_VARARGS, NULL},
76208 	 { "UIntVector___delslice__", (PyCFunction)(void(*)(void))_wrap_UIntVector___delslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76209 	 { "UIntVector___delitem__", _wrap_UIntVector___delitem__, METH_VARARGS, NULL},
76210 	 { "UIntVector___getitem__", _wrap_UIntVector___getitem__, METH_VARARGS, NULL},
76211 	 { "UIntVector___setitem__", _wrap_UIntVector___setitem__, METH_VARARGS, NULL},
76212 	 { "UIntVector_pop", _wrap_UIntVector_pop, METH_O, NULL},
76213 	 { "UIntVector_append", (PyCFunction)(void(*)(void))_wrap_UIntVector_append, METH_VARARGS|METH_KEYWORDS, NULL},
76214 	 { "UIntVector_empty", _wrap_UIntVector_empty, METH_O, NULL},
76215 	 { "UIntVector_size", _wrap_UIntVector_size, METH_O, NULL},
76216 	 { "UIntVector_swap", (PyCFunction)(void(*)(void))_wrap_UIntVector_swap, METH_VARARGS|METH_KEYWORDS, NULL},
76217 	 { "UIntVector_begin", _wrap_UIntVector_begin, METH_O, NULL},
76218 	 { "UIntVector_end", _wrap_UIntVector_end, METH_O, NULL},
76219 	 { "UIntVector_rbegin", _wrap_UIntVector_rbegin, METH_O, NULL},
76220 	 { "UIntVector_rend", _wrap_UIntVector_rend, METH_O, NULL},
76221 	 { "UIntVector_clear", _wrap_UIntVector_clear, METH_O, NULL},
76222 	 { "UIntVector_get_allocator", _wrap_UIntVector_get_allocator, METH_O, NULL},
76223 	 { "UIntVector_pop_back", _wrap_UIntVector_pop_back, METH_O, NULL},
76224 	 { "UIntVector_erase", _wrap_UIntVector_erase, METH_VARARGS, NULL},
76225 	 { "new_UIntVector", _wrap_new_UIntVector, METH_VARARGS, NULL},
76226 	 { "UIntVector_push_back", (PyCFunction)(void(*)(void))_wrap_UIntVector_push_back, METH_VARARGS|METH_KEYWORDS, NULL},
76227 	 { "UIntVector_front", _wrap_UIntVector_front, METH_O, NULL},
76228 	 { "UIntVector_back", _wrap_UIntVector_back, METH_O, NULL},
76229 	 { "UIntVector_assign", (PyCFunction)(void(*)(void))_wrap_UIntVector_assign, METH_VARARGS|METH_KEYWORDS, NULL},
76230 	 { "UIntVector_resize", _wrap_UIntVector_resize, METH_VARARGS, NULL},
76231 	 { "UIntVector_insert", _wrap_UIntVector_insert, METH_VARARGS, NULL},
76232 	 { "UIntVector_reserve", (PyCFunction)(void(*)(void))_wrap_UIntVector_reserve, METH_VARARGS|METH_KEYWORDS, NULL},
76233 	 { "UIntVector_capacity", _wrap_UIntVector_capacity, METH_O, NULL},
76234 	 { "delete_UIntVector", _wrap_delete_UIntVector, METH_O, NULL},
76235 	 { "UIntVector_swigregister", UIntVector_swigregister, METH_O, NULL},
76236 	 { "UIntVector_swiginit", UIntVector_swiginit, METH_VARARGS, NULL},
76237 	 { "DoubleVector_iterator", _wrap_DoubleVector_iterator, METH_O, NULL},
76238 	 { "DoubleVector___nonzero__", _wrap_DoubleVector___nonzero__, METH_O, NULL},
76239 	 { "DoubleVector___bool__", _wrap_DoubleVector___bool__, METH_O, NULL},
76240 	 { "DoubleVector___len__", _wrap_DoubleVector___len__, METH_O, NULL},
76241 	 { "DoubleVector___getslice__", (PyCFunction)(void(*)(void))_wrap_DoubleVector___getslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76242 	 { "DoubleVector___setslice__", _wrap_DoubleVector___setslice__, METH_VARARGS, NULL},
76243 	 { "DoubleVector___delslice__", (PyCFunction)(void(*)(void))_wrap_DoubleVector___delslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76244 	 { "DoubleVector___delitem__", _wrap_DoubleVector___delitem__, METH_VARARGS, NULL},
76245 	 { "DoubleVector___getitem__", _wrap_DoubleVector___getitem__, METH_VARARGS, NULL},
76246 	 { "DoubleVector___setitem__", _wrap_DoubleVector___setitem__, METH_VARARGS, NULL},
76247 	 { "DoubleVector_pop", _wrap_DoubleVector_pop, METH_O, NULL},
76248 	 { "DoubleVector_append", (PyCFunction)(void(*)(void))_wrap_DoubleVector_append, METH_VARARGS|METH_KEYWORDS, NULL},
76249 	 { "DoubleVector_empty", _wrap_DoubleVector_empty, METH_O, NULL},
76250 	 { "DoubleVector_size", _wrap_DoubleVector_size, METH_O, NULL},
76251 	 { "DoubleVector_swap", (PyCFunction)(void(*)(void))_wrap_DoubleVector_swap, METH_VARARGS|METH_KEYWORDS, NULL},
76252 	 { "DoubleVector_begin", _wrap_DoubleVector_begin, METH_O, NULL},
76253 	 { "DoubleVector_end", _wrap_DoubleVector_end, METH_O, NULL},
76254 	 { "DoubleVector_rbegin", _wrap_DoubleVector_rbegin, METH_O, NULL},
76255 	 { "DoubleVector_rend", _wrap_DoubleVector_rend, METH_O, NULL},
76256 	 { "DoubleVector_clear", _wrap_DoubleVector_clear, METH_O, NULL},
76257 	 { "DoubleVector_get_allocator", _wrap_DoubleVector_get_allocator, METH_O, NULL},
76258 	 { "DoubleVector_pop_back", _wrap_DoubleVector_pop_back, METH_O, NULL},
76259 	 { "DoubleVector_erase", _wrap_DoubleVector_erase, METH_VARARGS, NULL},
76260 	 { "new_DoubleVector", _wrap_new_DoubleVector, METH_VARARGS, NULL},
76261 	 { "DoubleVector_push_back", (PyCFunction)(void(*)(void))_wrap_DoubleVector_push_back, METH_VARARGS|METH_KEYWORDS, NULL},
76262 	 { "DoubleVector_front", _wrap_DoubleVector_front, METH_O, NULL},
76263 	 { "DoubleVector_back", _wrap_DoubleVector_back, METH_O, NULL},
76264 	 { "DoubleVector_assign", (PyCFunction)(void(*)(void))_wrap_DoubleVector_assign, METH_VARARGS|METH_KEYWORDS, NULL},
76265 	 { "DoubleVector_resize", _wrap_DoubleVector_resize, METH_VARARGS, NULL},
76266 	 { "DoubleVector_insert", _wrap_DoubleVector_insert, METH_VARARGS, NULL},
76267 	 { "DoubleVector_reserve", (PyCFunction)(void(*)(void))_wrap_DoubleVector_reserve, METH_VARARGS|METH_KEYWORDS, NULL},
76268 	 { "DoubleVector_capacity", _wrap_DoubleVector_capacity, METH_O, NULL},
76269 	 { "delete_DoubleVector", _wrap_delete_DoubleVector, METH_O, NULL},
76270 	 { "DoubleVector_swigregister", DoubleVector_swigregister, METH_O, NULL},
76271 	 { "DoubleVector_swiginit", DoubleVector_swiginit, METH_VARARGS, NULL},
76272 	 { "StringVector_iterator", _wrap_StringVector_iterator, METH_O, NULL},
76273 	 { "StringVector___nonzero__", _wrap_StringVector___nonzero__, METH_O, NULL},
76274 	 { "StringVector___bool__", _wrap_StringVector___bool__, METH_O, NULL},
76275 	 { "StringVector___len__", _wrap_StringVector___len__, METH_O, NULL},
76276 	 { "StringVector___getslice__", (PyCFunction)(void(*)(void))_wrap_StringVector___getslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76277 	 { "StringVector___setslice__", _wrap_StringVector___setslice__, METH_VARARGS, NULL},
76278 	 { "StringVector___delslice__", (PyCFunction)(void(*)(void))_wrap_StringVector___delslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76279 	 { "StringVector___delitem__", _wrap_StringVector___delitem__, METH_VARARGS, NULL},
76280 	 { "StringVector___getitem__", _wrap_StringVector___getitem__, METH_VARARGS, NULL},
76281 	 { "StringVector___setitem__", _wrap_StringVector___setitem__, METH_VARARGS, NULL},
76282 	 { "StringVector_pop", _wrap_StringVector_pop, METH_O, NULL},
76283 	 { "StringVector_append", (PyCFunction)(void(*)(void))_wrap_StringVector_append, METH_VARARGS|METH_KEYWORDS, NULL},
76284 	 { "StringVector_empty", _wrap_StringVector_empty, METH_O, NULL},
76285 	 { "StringVector_size", _wrap_StringVector_size, METH_O, NULL},
76286 	 { "StringVector_swap", (PyCFunction)(void(*)(void))_wrap_StringVector_swap, METH_VARARGS|METH_KEYWORDS, NULL},
76287 	 { "StringVector_begin", _wrap_StringVector_begin, METH_O, NULL},
76288 	 { "StringVector_end", _wrap_StringVector_end, METH_O, NULL},
76289 	 { "StringVector_rbegin", _wrap_StringVector_rbegin, METH_O, NULL},
76290 	 { "StringVector_rend", _wrap_StringVector_rend, METH_O, NULL},
76291 	 { "StringVector_clear", _wrap_StringVector_clear, METH_O, NULL},
76292 	 { "StringVector_get_allocator", _wrap_StringVector_get_allocator, METH_O, NULL},
76293 	 { "StringVector_pop_back", _wrap_StringVector_pop_back, METH_O, NULL},
76294 	 { "StringVector_erase", _wrap_StringVector_erase, METH_VARARGS, NULL},
76295 	 { "new_StringVector", _wrap_new_StringVector, METH_VARARGS, NULL},
76296 	 { "StringVector_push_back", (PyCFunction)(void(*)(void))_wrap_StringVector_push_back, METH_VARARGS|METH_KEYWORDS, NULL},
76297 	 { "StringVector_front", _wrap_StringVector_front, METH_O, NULL},
76298 	 { "StringVector_back", _wrap_StringVector_back, METH_O, NULL},
76299 	 { "StringVector_assign", (PyCFunction)(void(*)(void))_wrap_StringVector_assign, METH_VARARGS|METH_KEYWORDS, NULL},
76300 	 { "StringVector_resize", _wrap_StringVector_resize, METH_VARARGS, NULL},
76301 	 { "StringVector_insert", _wrap_StringVector_insert, METH_VARARGS, NULL},
76302 	 { "StringVector_reserve", (PyCFunction)(void(*)(void))_wrap_StringVector_reserve, METH_VARARGS|METH_KEYWORDS, NULL},
76303 	 { "StringVector_capacity", _wrap_StringVector_capacity, METH_O, NULL},
76304 	 { "delete_StringVector", _wrap_delete_StringVector, METH_O, NULL},
76305 	 { "StringVector_swigregister", StringVector_swigregister, METH_O, NULL},
76306 	 { "StringVector_swiginit", StringVector_swiginit, METH_VARARGS, NULL},
76307 	 { "ConstCharVector_iterator", _wrap_ConstCharVector_iterator, METH_O, NULL},
76308 	 { "ConstCharVector___nonzero__", _wrap_ConstCharVector___nonzero__, METH_O, NULL},
76309 	 { "ConstCharVector___bool__", _wrap_ConstCharVector___bool__, METH_O, NULL},
76310 	 { "ConstCharVector___len__", _wrap_ConstCharVector___len__, METH_O, NULL},
76311 	 { "ConstCharVector___getslice__", (PyCFunction)(void(*)(void))_wrap_ConstCharVector___getslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76312 	 { "ConstCharVector___setslice__", _wrap_ConstCharVector___setslice__, METH_VARARGS, NULL},
76313 	 { "ConstCharVector___delslice__", (PyCFunction)(void(*)(void))_wrap_ConstCharVector___delslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76314 	 { "ConstCharVector___delitem__", _wrap_ConstCharVector___delitem__, METH_VARARGS, NULL},
76315 	 { "ConstCharVector___getitem__", _wrap_ConstCharVector___getitem__, METH_VARARGS, NULL},
76316 	 { "ConstCharVector___setitem__", _wrap_ConstCharVector___setitem__, METH_VARARGS, NULL},
76317 	 { "ConstCharVector_pop", _wrap_ConstCharVector_pop, METH_O, NULL},
76318 	 { "ConstCharVector_append", (PyCFunction)(void(*)(void))_wrap_ConstCharVector_append, METH_VARARGS|METH_KEYWORDS, NULL},
76319 	 { "ConstCharVector_empty", _wrap_ConstCharVector_empty, METH_O, NULL},
76320 	 { "ConstCharVector_size", _wrap_ConstCharVector_size, METH_O, NULL},
76321 	 { "ConstCharVector_swap", (PyCFunction)(void(*)(void))_wrap_ConstCharVector_swap, METH_VARARGS|METH_KEYWORDS, NULL},
76322 	 { "ConstCharVector_begin", _wrap_ConstCharVector_begin, METH_O, NULL},
76323 	 { "ConstCharVector_end", _wrap_ConstCharVector_end, METH_O, NULL},
76324 	 { "ConstCharVector_rbegin", _wrap_ConstCharVector_rbegin, METH_O, NULL},
76325 	 { "ConstCharVector_rend", _wrap_ConstCharVector_rend, METH_O, NULL},
76326 	 { "ConstCharVector_clear", _wrap_ConstCharVector_clear, METH_O, NULL},
76327 	 { "ConstCharVector_get_allocator", _wrap_ConstCharVector_get_allocator, METH_O, NULL},
76328 	 { "ConstCharVector_pop_back", _wrap_ConstCharVector_pop_back, METH_O, NULL},
76329 	 { "ConstCharVector_erase", _wrap_ConstCharVector_erase, METH_VARARGS, NULL},
76330 	 { "new_ConstCharVector", _wrap_new_ConstCharVector, METH_VARARGS, NULL},
76331 	 { "ConstCharVector_push_back", (PyCFunction)(void(*)(void))_wrap_ConstCharVector_push_back, METH_VARARGS|METH_KEYWORDS, NULL},
76332 	 { "ConstCharVector_front", _wrap_ConstCharVector_front, METH_O, NULL},
76333 	 { "ConstCharVector_back", _wrap_ConstCharVector_back, METH_O, NULL},
76334 	 { "ConstCharVector_assign", (PyCFunction)(void(*)(void))_wrap_ConstCharVector_assign, METH_VARARGS|METH_KEYWORDS, NULL},
76335 	 { "ConstCharVector_resize", _wrap_ConstCharVector_resize, METH_VARARGS, NULL},
76336 	 { "ConstCharVector_insert", _wrap_ConstCharVector_insert, METH_VARARGS, NULL},
76337 	 { "ConstCharVector_reserve", (PyCFunction)(void(*)(void))_wrap_ConstCharVector_reserve, METH_VARARGS|METH_KEYWORDS, NULL},
76338 	 { "ConstCharVector_capacity", _wrap_ConstCharVector_capacity, METH_O, NULL},
76339 	 { "delete_ConstCharVector", _wrap_delete_ConstCharVector, METH_O, NULL},
76340 	 { "ConstCharVector_swigregister", ConstCharVector_swigregister, METH_O, NULL},
76341 	 { "ConstCharVector_swiginit", ConstCharVector_swiginit, METH_VARARGS, NULL},
76342 	 { "SOLUTIONVector_iterator", _wrap_SOLUTIONVector_iterator, METH_O, NULL},
76343 	 { "SOLUTIONVector___nonzero__", _wrap_SOLUTIONVector___nonzero__, METH_O, NULL},
76344 	 { "SOLUTIONVector___bool__", _wrap_SOLUTIONVector___bool__, METH_O, NULL},
76345 	 { "SOLUTIONVector___len__", _wrap_SOLUTIONVector___len__, METH_O, NULL},
76346 	 { "SOLUTIONVector___getslice__", (PyCFunction)(void(*)(void))_wrap_SOLUTIONVector___getslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76347 	 { "SOLUTIONVector___setslice__", _wrap_SOLUTIONVector___setslice__, METH_VARARGS, NULL},
76348 	 { "SOLUTIONVector___delslice__", (PyCFunction)(void(*)(void))_wrap_SOLUTIONVector___delslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76349 	 { "SOLUTIONVector___delitem__", _wrap_SOLUTIONVector___delitem__, METH_VARARGS, NULL},
76350 	 { "SOLUTIONVector___getitem__", _wrap_SOLUTIONVector___getitem__, METH_VARARGS, NULL},
76351 	 { "SOLUTIONVector___setitem__", _wrap_SOLUTIONVector___setitem__, METH_VARARGS, NULL},
76352 	 { "SOLUTIONVector_pop", _wrap_SOLUTIONVector_pop, METH_O, NULL},
76353 	 { "SOLUTIONVector_append", (PyCFunction)(void(*)(void))_wrap_SOLUTIONVector_append, METH_VARARGS|METH_KEYWORDS, NULL},
76354 	 { "SOLUTIONVector_empty", _wrap_SOLUTIONVector_empty, METH_O, NULL},
76355 	 { "SOLUTIONVector_size", _wrap_SOLUTIONVector_size, METH_O, NULL},
76356 	 { "SOLUTIONVector_swap", (PyCFunction)(void(*)(void))_wrap_SOLUTIONVector_swap, METH_VARARGS|METH_KEYWORDS, NULL},
76357 	 { "SOLUTIONVector_begin", _wrap_SOLUTIONVector_begin, METH_O, NULL},
76358 	 { "SOLUTIONVector_end", _wrap_SOLUTIONVector_end, METH_O, NULL},
76359 	 { "SOLUTIONVector_rbegin", _wrap_SOLUTIONVector_rbegin, METH_O, NULL},
76360 	 { "SOLUTIONVector_rend", _wrap_SOLUTIONVector_rend, METH_O, NULL},
76361 	 { "SOLUTIONVector_clear", _wrap_SOLUTIONVector_clear, METH_O, NULL},
76362 	 { "SOLUTIONVector_get_allocator", _wrap_SOLUTIONVector_get_allocator, METH_O, NULL},
76363 	 { "SOLUTIONVector_pop_back", _wrap_SOLUTIONVector_pop_back, METH_O, NULL},
76364 	 { "SOLUTIONVector_erase", _wrap_SOLUTIONVector_erase, METH_VARARGS, NULL},
76365 	 { "new_SOLUTIONVector", _wrap_new_SOLUTIONVector, METH_VARARGS, NULL},
76366 	 { "SOLUTIONVector_push_back", (PyCFunction)(void(*)(void))_wrap_SOLUTIONVector_push_back, METH_VARARGS|METH_KEYWORDS, NULL},
76367 	 { "SOLUTIONVector_front", _wrap_SOLUTIONVector_front, METH_O, NULL},
76368 	 { "SOLUTIONVector_back", _wrap_SOLUTIONVector_back, METH_O, NULL},
76369 	 { "SOLUTIONVector_assign", (PyCFunction)(void(*)(void))_wrap_SOLUTIONVector_assign, METH_VARARGS|METH_KEYWORDS, NULL},
76370 	 { "SOLUTIONVector_resize", _wrap_SOLUTIONVector_resize, METH_VARARGS, NULL},
76371 	 { "SOLUTIONVector_insert", _wrap_SOLUTIONVector_insert, METH_VARARGS, NULL},
76372 	 { "SOLUTIONVector_reserve", (PyCFunction)(void(*)(void))_wrap_SOLUTIONVector_reserve, METH_VARARGS|METH_KEYWORDS, NULL},
76373 	 { "SOLUTIONVector_capacity", _wrap_SOLUTIONVector_capacity, METH_O, NULL},
76374 	 { "delete_SOLUTIONVector", _wrap_delete_SOLUTIONVector, METH_O, NULL},
76375 	 { "SOLUTIONVector_swigregister", SOLUTIONVector_swigregister, METH_O, NULL},
76376 	 { "SOLUTIONVector_swiginit", SOLUTIONVector_swiginit, METH_VARARGS, NULL},
76377 	 { "CoordinateVector_iterator", _wrap_CoordinateVector_iterator, METH_O, NULL},
76378 	 { "CoordinateVector___nonzero__", _wrap_CoordinateVector___nonzero__, METH_O, NULL},
76379 	 { "CoordinateVector___bool__", _wrap_CoordinateVector___bool__, METH_O, NULL},
76380 	 { "CoordinateVector___len__", _wrap_CoordinateVector___len__, METH_O, NULL},
76381 	 { "CoordinateVector___getslice__", (PyCFunction)(void(*)(void))_wrap_CoordinateVector___getslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76382 	 { "CoordinateVector___setslice__", _wrap_CoordinateVector___setslice__, METH_VARARGS, NULL},
76383 	 { "CoordinateVector___delslice__", (PyCFunction)(void(*)(void))_wrap_CoordinateVector___delslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76384 	 { "CoordinateVector___delitem__", _wrap_CoordinateVector___delitem__, METH_VARARGS, NULL},
76385 	 { "CoordinateVector___getitem__", _wrap_CoordinateVector___getitem__, METH_VARARGS, NULL},
76386 	 { "CoordinateVector___setitem__", _wrap_CoordinateVector___setitem__, METH_VARARGS, NULL},
76387 	 { "CoordinateVector_pop", _wrap_CoordinateVector_pop, METH_O, NULL},
76388 	 { "CoordinateVector_append", (PyCFunction)(void(*)(void))_wrap_CoordinateVector_append, METH_VARARGS|METH_KEYWORDS, NULL},
76389 	 { "CoordinateVector_empty", _wrap_CoordinateVector_empty, METH_O, NULL},
76390 	 { "CoordinateVector_size", _wrap_CoordinateVector_size, METH_O, NULL},
76391 	 { "CoordinateVector_swap", (PyCFunction)(void(*)(void))_wrap_CoordinateVector_swap, METH_VARARGS|METH_KEYWORDS, NULL},
76392 	 { "CoordinateVector_begin", _wrap_CoordinateVector_begin, METH_O, NULL},
76393 	 { "CoordinateVector_end", _wrap_CoordinateVector_end, METH_O, NULL},
76394 	 { "CoordinateVector_rbegin", _wrap_CoordinateVector_rbegin, METH_O, NULL},
76395 	 { "CoordinateVector_rend", _wrap_CoordinateVector_rend, METH_O, NULL},
76396 	 { "CoordinateVector_clear", _wrap_CoordinateVector_clear, METH_O, NULL},
76397 	 { "CoordinateVector_get_allocator", _wrap_CoordinateVector_get_allocator, METH_O, NULL},
76398 	 { "CoordinateVector_pop_back", _wrap_CoordinateVector_pop_back, METH_O, NULL},
76399 	 { "CoordinateVector_erase", _wrap_CoordinateVector_erase, METH_VARARGS, NULL},
76400 	 { "new_CoordinateVector", _wrap_new_CoordinateVector, METH_VARARGS, NULL},
76401 	 { "CoordinateVector_push_back", (PyCFunction)(void(*)(void))_wrap_CoordinateVector_push_back, METH_VARARGS|METH_KEYWORDS, NULL},
76402 	 { "CoordinateVector_front", _wrap_CoordinateVector_front, METH_O, NULL},
76403 	 { "CoordinateVector_back", _wrap_CoordinateVector_back, METH_O, NULL},
76404 	 { "CoordinateVector_assign", (PyCFunction)(void(*)(void))_wrap_CoordinateVector_assign, METH_VARARGS|METH_KEYWORDS, NULL},
76405 	 { "CoordinateVector_resize", _wrap_CoordinateVector_resize, METH_VARARGS, NULL},
76406 	 { "CoordinateVector_insert", _wrap_CoordinateVector_insert, METH_VARARGS, NULL},
76407 	 { "CoordinateVector_reserve", (PyCFunction)(void(*)(void))_wrap_CoordinateVector_reserve, METH_VARARGS|METH_KEYWORDS, NULL},
76408 	 { "CoordinateVector_capacity", _wrap_CoordinateVector_capacity, METH_O, NULL},
76409 	 { "delete_CoordinateVector", _wrap_delete_CoordinateVector, METH_O, NULL},
76410 	 { "CoordinateVector_swigregister", CoordinateVector_swigregister, METH_O, NULL},
76411 	 { "CoordinateVector_swiginit", CoordinateVector_swiginit, METH_VARARGS, NULL},
76412 	 { "DoubleDoubleVector_iterator", _wrap_DoubleDoubleVector_iterator, METH_O, NULL},
76413 	 { "DoubleDoubleVector___nonzero__", _wrap_DoubleDoubleVector___nonzero__, METH_O, NULL},
76414 	 { "DoubleDoubleVector___bool__", _wrap_DoubleDoubleVector___bool__, METH_O, NULL},
76415 	 { "DoubleDoubleVector___len__", _wrap_DoubleDoubleVector___len__, METH_O, NULL},
76416 	 { "DoubleDoubleVector___getslice__", (PyCFunction)(void(*)(void))_wrap_DoubleDoubleVector___getslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76417 	 { "DoubleDoubleVector___setslice__", _wrap_DoubleDoubleVector___setslice__, METH_VARARGS, NULL},
76418 	 { "DoubleDoubleVector___delslice__", (PyCFunction)(void(*)(void))_wrap_DoubleDoubleVector___delslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76419 	 { "DoubleDoubleVector___delitem__", _wrap_DoubleDoubleVector___delitem__, METH_VARARGS, NULL},
76420 	 { "DoubleDoubleVector___getitem__", _wrap_DoubleDoubleVector___getitem__, METH_VARARGS, NULL},
76421 	 { "DoubleDoubleVector___setitem__", _wrap_DoubleDoubleVector___setitem__, METH_VARARGS, NULL},
76422 	 { "DoubleDoubleVector_pop", _wrap_DoubleDoubleVector_pop, METH_O, NULL},
76423 	 { "DoubleDoubleVector_append", (PyCFunction)(void(*)(void))_wrap_DoubleDoubleVector_append, METH_VARARGS|METH_KEYWORDS, NULL},
76424 	 { "DoubleDoubleVector_empty", _wrap_DoubleDoubleVector_empty, METH_O, NULL},
76425 	 { "DoubleDoubleVector_size", _wrap_DoubleDoubleVector_size, METH_O, NULL},
76426 	 { "DoubleDoubleVector_swap", (PyCFunction)(void(*)(void))_wrap_DoubleDoubleVector_swap, METH_VARARGS|METH_KEYWORDS, NULL},
76427 	 { "DoubleDoubleVector_begin", _wrap_DoubleDoubleVector_begin, METH_O, NULL},
76428 	 { "DoubleDoubleVector_end", _wrap_DoubleDoubleVector_end, METH_O, NULL},
76429 	 { "DoubleDoubleVector_rbegin", _wrap_DoubleDoubleVector_rbegin, METH_O, NULL},
76430 	 { "DoubleDoubleVector_rend", _wrap_DoubleDoubleVector_rend, METH_O, NULL},
76431 	 { "DoubleDoubleVector_clear", _wrap_DoubleDoubleVector_clear, METH_O, NULL},
76432 	 { "DoubleDoubleVector_get_allocator", _wrap_DoubleDoubleVector_get_allocator, METH_O, NULL},
76433 	 { "DoubleDoubleVector_pop_back", _wrap_DoubleDoubleVector_pop_back, METH_O, NULL},
76434 	 { "DoubleDoubleVector_erase", _wrap_DoubleDoubleVector_erase, METH_VARARGS, NULL},
76435 	 { "new_DoubleDoubleVector", _wrap_new_DoubleDoubleVector, METH_VARARGS, NULL},
76436 	 { "DoubleDoubleVector_push_back", (PyCFunction)(void(*)(void))_wrap_DoubleDoubleVector_push_back, METH_VARARGS|METH_KEYWORDS, NULL},
76437 	 { "DoubleDoubleVector_front", _wrap_DoubleDoubleVector_front, METH_O, NULL},
76438 	 { "DoubleDoubleVector_back", _wrap_DoubleDoubleVector_back, METH_O, NULL},
76439 	 { "DoubleDoubleVector_assign", (PyCFunction)(void(*)(void))_wrap_DoubleDoubleVector_assign, METH_VARARGS|METH_KEYWORDS, NULL},
76440 	 { "DoubleDoubleVector_resize", _wrap_DoubleDoubleVector_resize, METH_VARARGS, NULL},
76441 	 { "DoubleDoubleVector_insert", _wrap_DoubleDoubleVector_insert, METH_VARARGS, NULL},
76442 	 { "DoubleDoubleVector_reserve", (PyCFunction)(void(*)(void))_wrap_DoubleDoubleVector_reserve, METH_VARARGS|METH_KEYWORDS, NULL},
76443 	 { "DoubleDoubleVector_capacity", _wrap_DoubleDoubleVector_capacity, METH_O, NULL},
76444 	 { "delete_DoubleDoubleVector", _wrap_delete_DoubleDoubleVector, METH_O, NULL},
76445 	 { "DoubleDoubleVector_swigregister", DoubleDoubleVector_swigregister, METH_O, NULL},
76446 	 { "DoubleDoubleVector_swiginit", DoubleDoubleVector_swiginit, METH_VARARGS, NULL},
76447 	 { "IntIntVector_iterator", _wrap_IntIntVector_iterator, METH_O, NULL},
76448 	 { "IntIntVector___nonzero__", _wrap_IntIntVector___nonzero__, METH_O, NULL},
76449 	 { "IntIntVector___bool__", _wrap_IntIntVector___bool__, METH_O, NULL},
76450 	 { "IntIntVector___len__", _wrap_IntIntVector___len__, METH_O, NULL},
76451 	 { "IntIntVector___getslice__", (PyCFunction)(void(*)(void))_wrap_IntIntVector___getslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76452 	 { "IntIntVector___setslice__", _wrap_IntIntVector___setslice__, METH_VARARGS, NULL},
76453 	 { "IntIntVector___delslice__", (PyCFunction)(void(*)(void))_wrap_IntIntVector___delslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76454 	 { "IntIntVector___delitem__", _wrap_IntIntVector___delitem__, METH_VARARGS, NULL},
76455 	 { "IntIntVector___getitem__", _wrap_IntIntVector___getitem__, METH_VARARGS, NULL},
76456 	 { "IntIntVector___setitem__", _wrap_IntIntVector___setitem__, METH_VARARGS, NULL},
76457 	 { "IntIntVector_pop", _wrap_IntIntVector_pop, METH_O, NULL},
76458 	 { "IntIntVector_append", (PyCFunction)(void(*)(void))_wrap_IntIntVector_append, METH_VARARGS|METH_KEYWORDS, NULL},
76459 	 { "IntIntVector_empty", _wrap_IntIntVector_empty, METH_O, NULL},
76460 	 { "IntIntVector_size", _wrap_IntIntVector_size, METH_O, NULL},
76461 	 { "IntIntVector_swap", (PyCFunction)(void(*)(void))_wrap_IntIntVector_swap, METH_VARARGS|METH_KEYWORDS, NULL},
76462 	 { "IntIntVector_begin", _wrap_IntIntVector_begin, METH_O, NULL},
76463 	 { "IntIntVector_end", _wrap_IntIntVector_end, METH_O, NULL},
76464 	 { "IntIntVector_rbegin", _wrap_IntIntVector_rbegin, METH_O, NULL},
76465 	 { "IntIntVector_rend", _wrap_IntIntVector_rend, METH_O, NULL},
76466 	 { "IntIntVector_clear", _wrap_IntIntVector_clear, METH_O, NULL},
76467 	 { "IntIntVector_get_allocator", _wrap_IntIntVector_get_allocator, METH_O, NULL},
76468 	 { "IntIntVector_pop_back", _wrap_IntIntVector_pop_back, METH_O, NULL},
76469 	 { "IntIntVector_erase", _wrap_IntIntVector_erase, METH_VARARGS, NULL},
76470 	 { "new_IntIntVector", _wrap_new_IntIntVector, METH_VARARGS, NULL},
76471 	 { "IntIntVector_push_back", (PyCFunction)(void(*)(void))_wrap_IntIntVector_push_back, METH_VARARGS|METH_KEYWORDS, NULL},
76472 	 { "IntIntVector_front", _wrap_IntIntVector_front, METH_O, NULL},
76473 	 { "IntIntVector_back", _wrap_IntIntVector_back, METH_O, NULL},
76474 	 { "IntIntVector_assign", (PyCFunction)(void(*)(void))_wrap_IntIntVector_assign, METH_VARARGS|METH_KEYWORDS, NULL},
76475 	 { "IntIntVector_resize", _wrap_IntIntVector_resize, METH_VARARGS, NULL},
76476 	 { "IntIntVector_insert", _wrap_IntIntVector_insert, METH_VARARGS, NULL},
76477 	 { "IntIntVector_reserve", (PyCFunction)(void(*)(void))_wrap_IntIntVector_reserve, METH_VARARGS|METH_KEYWORDS, NULL},
76478 	 { "IntIntVector_capacity", _wrap_IntIntVector_capacity, METH_O, NULL},
76479 	 { "delete_IntIntVector", _wrap_delete_IntIntVector, METH_O, NULL},
76480 	 { "IntIntVector_swigregister", IntIntVector_swigregister, METH_O, NULL},
76481 	 { "IntIntVector_swiginit", IntIntVector_swiginit, METH_VARARGS, NULL},
76482 	 { "ElemProbVector_iterator", _wrap_ElemProbVector_iterator, METH_O, NULL},
76483 	 { "ElemProbVector___nonzero__", _wrap_ElemProbVector___nonzero__, METH_O, NULL},
76484 	 { "ElemProbVector___bool__", _wrap_ElemProbVector___bool__, METH_O, NULL},
76485 	 { "ElemProbVector___len__", _wrap_ElemProbVector___len__, METH_O, NULL},
76486 	 { "ElemProbVector___getslice__", (PyCFunction)(void(*)(void))_wrap_ElemProbVector___getslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76487 	 { "ElemProbVector___setslice__", _wrap_ElemProbVector___setslice__, METH_VARARGS, NULL},
76488 	 { "ElemProbVector___delslice__", (PyCFunction)(void(*)(void))_wrap_ElemProbVector___delslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76489 	 { "ElemProbVector___delitem__", _wrap_ElemProbVector___delitem__, METH_VARARGS, NULL},
76490 	 { "ElemProbVector___getitem__", _wrap_ElemProbVector___getitem__, METH_VARARGS, NULL},
76491 	 { "ElemProbVector___setitem__", _wrap_ElemProbVector___setitem__, METH_VARARGS, NULL},
76492 	 { "ElemProbVector_pop", _wrap_ElemProbVector_pop, METH_O, NULL},
76493 	 { "ElemProbVector_append", (PyCFunction)(void(*)(void))_wrap_ElemProbVector_append, METH_VARARGS|METH_KEYWORDS, NULL},
76494 	 { "ElemProbVector_empty", _wrap_ElemProbVector_empty, METH_O, NULL},
76495 	 { "ElemProbVector_size", _wrap_ElemProbVector_size, METH_O, NULL},
76496 	 { "ElemProbVector_swap", (PyCFunction)(void(*)(void))_wrap_ElemProbVector_swap, METH_VARARGS|METH_KEYWORDS, NULL},
76497 	 { "ElemProbVector_begin", _wrap_ElemProbVector_begin, METH_O, NULL},
76498 	 { "ElemProbVector_end", _wrap_ElemProbVector_end, METH_O, NULL},
76499 	 { "ElemProbVector_rbegin", _wrap_ElemProbVector_rbegin, METH_O, NULL},
76500 	 { "ElemProbVector_rend", _wrap_ElemProbVector_rend, METH_O, NULL},
76501 	 { "ElemProbVector_clear", _wrap_ElemProbVector_clear, METH_O, NULL},
76502 	 { "ElemProbVector_get_allocator", _wrap_ElemProbVector_get_allocator, METH_O, NULL},
76503 	 { "ElemProbVector_pop_back", _wrap_ElemProbVector_pop_back, METH_O, NULL},
76504 	 { "ElemProbVector_erase", _wrap_ElemProbVector_erase, METH_VARARGS, NULL},
76505 	 { "new_ElemProbVector", _wrap_new_ElemProbVector, METH_VARARGS, NULL},
76506 	 { "ElemProbVector_push_back", (PyCFunction)(void(*)(void))_wrap_ElemProbVector_push_back, METH_VARARGS|METH_KEYWORDS, NULL},
76507 	 { "ElemProbVector_front", _wrap_ElemProbVector_front, METH_O, NULL},
76508 	 { "ElemProbVector_back", _wrap_ElemProbVector_back, METH_O, NULL},
76509 	 { "ElemProbVector_assign", (PyCFunction)(void(*)(void))_wrap_ElemProbVector_assign, METH_VARARGS|METH_KEYWORDS, NULL},
76510 	 { "ElemProbVector_resize", _wrap_ElemProbVector_resize, METH_VARARGS, NULL},
76511 	 { "ElemProbVector_insert", _wrap_ElemProbVector_insert, METH_VARARGS, NULL},
76512 	 { "ElemProbVector_reserve", (PyCFunction)(void(*)(void))_wrap_ElemProbVector_reserve, METH_VARARGS|METH_KEYWORDS, NULL},
76513 	 { "ElemProbVector_capacity", _wrap_ElemProbVector_capacity, METH_O, NULL},
76514 	 { "delete_ElemProbVector", _wrap_delete_ElemProbVector, METH_O, NULL},
76515 	 { "ElemProbVector_swigregister", ElemProbVector_swigregister, METH_O, NULL},
76516 	 { "ElemProbVector_swiginit", ElemProbVector_swiginit, METH_VARARGS, NULL},
76517 	 { "PathVector_iterator", _wrap_PathVector_iterator, METH_O, NULL},
76518 	 { "PathVector___nonzero__", _wrap_PathVector___nonzero__, METH_O, NULL},
76519 	 { "PathVector___bool__", _wrap_PathVector___bool__, METH_O, NULL},
76520 	 { "PathVector___len__", _wrap_PathVector___len__, METH_O, NULL},
76521 	 { "PathVector___getslice__", (PyCFunction)(void(*)(void))_wrap_PathVector___getslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76522 	 { "PathVector___setslice__", _wrap_PathVector___setslice__, METH_VARARGS, NULL},
76523 	 { "PathVector___delslice__", (PyCFunction)(void(*)(void))_wrap_PathVector___delslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76524 	 { "PathVector___delitem__", _wrap_PathVector___delitem__, METH_VARARGS, NULL},
76525 	 { "PathVector___getitem__", _wrap_PathVector___getitem__, METH_VARARGS, NULL},
76526 	 { "PathVector___setitem__", _wrap_PathVector___setitem__, METH_VARARGS, NULL},
76527 	 { "PathVector_pop", _wrap_PathVector_pop, METH_O, NULL},
76528 	 { "PathVector_append", (PyCFunction)(void(*)(void))_wrap_PathVector_append, METH_VARARGS|METH_KEYWORDS, NULL},
76529 	 { "PathVector_empty", _wrap_PathVector_empty, METH_O, NULL},
76530 	 { "PathVector_size", _wrap_PathVector_size, METH_O, NULL},
76531 	 { "PathVector_swap", (PyCFunction)(void(*)(void))_wrap_PathVector_swap, METH_VARARGS|METH_KEYWORDS, NULL},
76532 	 { "PathVector_begin", _wrap_PathVector_begin, METH_O, NULL},
76533 	 { "PathVector_end", _wrap_PathVector_end, METH_O, NULL},
76534 	 { "PathVector_rbegin", _wrap_PathVector_rbegin, METH_O, NULL},
76535 	 { "PathVector_rend", _wrap_PathVector_rend, METH_O, NULL},
76536 	 { "PathVector_clear", _wrap_PathVector_clear, METH_O, NULL},
76537 	 { "PathVector_get_allocator", _wrap_PathVector_get_allocator, METH_O, NULL},
76538 	 { "PathVector_pop_back", _wrap_PathVector_pop_back, METH_O, NULL},
76539 	 { "PathVector_erase", _wrap_PathVector_erase, METH_VARARGS, NULL},
76540 	 { "new_PathVector", _wrap_new_PathVector, METH_VARARGS, NULL},
76541 	 { "PathVector_push_back", (PyCFunction)(void(*)(void))_wrap_PathVector_push_back, METH_VARARGS|METH_KEYWORDS, NULL},
76542 	 { "PathVector_front", _wrap_PathVector_front, METH_O, NULL},
76543 	 { "PathVector_back", _wrap_PathVector_back, METH_O, NULL},
76544 	 { "PathVector_assign", (PyCFunction)(void(*)(void))_wrap_PathVector_assign, METH_VARARGS|METH_KEYWORDS, NULL},
76545 	 { "PathVector_resize", _wrap_PathVector_resize, METH_VARARGS, NULL},
76546 	 { "PathVector_insert", _wrap_PathVector_insert, METH_VARARGS, NULL},
76547 	 { "PathVector_reserve", (PyCFunction)(void(*)(void))_wrap_PathVector_reserve, METH_VARARGS|METH_KEYWORDS, NULL},
76548 	 { "PathVector_capacity", _wrap_PathVector_capacity, METH_O, NULL},
76549 	 { "delete_PathVector", _wrap_delete_PathVector, METH_O, NULL},
76550 	 { "PathVector_swigregister", PathVector_swigregister, METH_O, NULL},
76551 	 { "PathVector_swiginit", PathVector_swiginit, METH_VARARGS, NULL},
76552 	 { "MoveVector_iterator", _wrap_MoveVector_iterator, METH_O, NULL},
76553 	 { "MoveVector___nonzero__", _wrap_MoveVector___nonzero__, METH_O, NULL},
76554 	 { "MoveVector___bool__", _wrap_MoveVector___bool__, METH_O, NULL},
76555 	 { "MoveVector___len__", _wrap_MoveVector___len__, METH_O, NULL},
76556 	 { "MoveVector___getslice__", (PyCFunction)(void(*)(void))_wrap_MoveVector___getslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76557 	 { "MoveVector___setslice__", _wrap_MoveVector___setslice__, METH_VARARGS, NULL},
76558 	 { "MoveVector___delslice__", (PyCFunction)(void(*)(void))_wrap_MoveVector___delslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76559 	 { "MoveVector___delitem__", _wrap_MoveVector___delitem__, METH_VARARGS, NULL},
76560 	 { "MoveVector___getitem__", _wrap_MoveVector___getitem__, METH_VARARGS, NULL},
76561 	 { "MoveVector___setitem__", _wrap_MoveVector___setitem__, METH_VARARGS, NULL},
76562 	 { "MoveVector_pop", _wrap_MoveVector_pop, METH_O, NULL},
76563 	 { "MoveVector_append", (PyCFunction)(void(*)(void))_wrap_MoveVector_append, METH_VARARGS|METH_KEYWORDS, NULL},
76564 	 { "MoveVector_empty", _wrap_MoveVector_empty, METH_O, NULL},
76565 	 { "MoveVector_size", _wrap_MoveVector_size, METH_O, NULL},
76566 	 { "MoveVector_swap", (PyCFunction)(void(*)(void))_wrap_MoveVector_swap, METH_VARARGS|METH_KEYWORDS, NULL},
76567 	 { "MoveVector_begin", _wrap_MoveVector_begin, METH_O, NULL},
76568 	 { "MoveVector_end", _wrap_MoveVector_end, METH_O, NULL},
76569 	 { "MoveVector_rbegin", _wrap_MoveVector_rbegin, METH_O, NULL},
76570 	 { "MoveVector_rend", _wrap_MoveVector_rend, METH_O, NULL},
76571 	 { "MoveVector_clear", _wrap_MoveVector_clear, METH_O, NULL},
76572 	 { "MoveVector_get_allocator", _wrap_MoveVector_get_allocator, METH_O, NULL},
76573 	 { "MoveVector_pop_back", _wrap_MoveVector_pop_back, METH_O, NULL},
76574 	 { "MoveVector_erase", _wrap_MoveVector_erase, METH_VARARGS, NULL},
76575 	 { "new_MoveVector", _wrap_new_MoveVector, METH_VARARGS, NULL},
76576 	 { "MoveVector_push_back", (PyCFunction)(void(*)(void))_wrap_MoveVector_push_back, METH_VARARGS|METH_KEYWORDS, NULL},
76577 	 { "MoveVector_front", _wrap_MoveVector_front, METH_O, NULL},
76578 	 { "MoveVector_back", _wrap_MoveVector_back, METH_O, NULL},
76579 	 { "MoveVector_assign", (PyCFunction)(void(*)(void))_wrap_MoveVector_assign, METH_VARARGS|METH_KEYWORDS, NULL},
76580 	 { "MoveVector_resize", _wrap_MoveVector_resize, METH_VARARGS, NULL},
76581 	 { "MoveVector_insert", _wrap_MoveVector_insert, METH_VARARGS, NULL},
76582 	 { "MoveVector_reserve", (PyCFunction)(void(*)(void))_wrap_MoveVector_reserve, METH_VARARGS|METH_KEYWORDS, NULL},
76583 	 { "MoveVector_capacity", _wrap_MoveVector_capacity, METH_O, NULL},
76584 	 { "delete_MoveVector", _wrap_delete_MoveVector, METH_O, NULL},
76585 	 { "MoveVector_swigregister", MoveVector_swigregister, METH_O, NULL},
76586 	 { "MoveVector_swiginit", MoveVector_swiginit, METH_VARARGS, NULL},
76587 	 { "param_id_get", _wrap_param_id_get, METH_O, NULL},
76588 	 { "param_stack_get", _wrap_param_stack_get, METH_O, NULL},
76589 	 { "param_hairpin_get", _wrap_param_hairpin_get, METH_O, NULL},
76590 	 { "param_bulge_get", _wrap_param_bulge_get, METH_O, NULL},
76591 	 { "param_internal_loop_get", _wrap_param_internal_loop_get, METH_O, NULL},
76592 	 { "param_mismatchExt_get", _wrap_param_mismatchExt_get, METH_O, NULL},
76593 	 { "param_mismatchI_get", _wrap_param_mismatchI_get, METH_O, NULL},
76594 	 { "param_mismatch1nI_get", _wrap_param_mismatch1nI_get, METH_O, NULL},
76595 	 { "param_mismatch23I_get", _wrap_param_mismatch23I_get, METH_O, NULL},
76596 	 { "param_mismatchH_get", _wrap_param_mismatchH_get, METH_O, NULL},
76597 	 { "param_mismatchM_get", _wrap_param_mismatchM_get, METH_O, NULL},
76598 	 { "param_dangle5_get", _wrap_param_dangle5_get, METH_O, NULL},
76599 	 { "param_dangle3_get", _wrap_param_dangle3_get, METH_O, NULL},
76600 	 { "param_int11_get", _wrap_param_int11_get, METH_O, NULL},
76601 	 { "param_int21_get", _wrap_param_int21_get, METH_O, NULL},
76602 	 { "param_int22_get", _wrap_param_int22_get, METH_O, NULL},
76603 	 { "param_ninio_get", _wrap_param_ninio_get, METH_O, NULL},
76604 	 { "param_lxc_get", _wrap_param_lxc_get, METH_O, NULL},
76605 	 { "param_MLbase_get", _wrap_param_MLbase_get, METH_O, NULL},
76606 	 { "param_MLintern_get", _wrap_param_MLintern_get, METH_O, NULL},
76607 	 { "param_MLclosing_get", _wrap_param_MLclosing_get, METH_O, NULL},
76608 	 { "param_TerminalAU_get", _wrap_param_TerminalAU_get, METH_O, NULL},
76609 	 { "param_DuplexInit_get", _wrap_param_DuplexInit_get, METH_O, NULL},
76610 	 { "param_Tetraloop_E_get", _wrap_param_Tetraloop_E_get, METH_O, NULL},
76611 	 { "param_Tetraloops_get", _wrap_param_Tetraloops_get, METH_O, NULL},
76612 	 { "param_Triloop_E_get", _wrap_param_Triloop_E_get, METH_O, NULL},
76613 	 { "param_Triloops_get", _wrap_param_Triloops_get, METH_O, NULL},
76614 	 { "param_Hexaloop_E_get", _wrap_param_Hexaloop_E_get, METH_O, NULL},
76615 	 { "param_Hexaloops_get", _wrap_param_Hexaloops_get, METH_O, NULL},
76616 	 { "param_TripleC_get", _wrap_param_TripleC_get, METH_O, NULL},
76617 	 { "param_MultipleCA_get", _wrap_param_MultipleCA_get, METH_O, NULL},
76618 	 { "param_MultipleCB_get", _wrap_param_MultipleCB_get, METH_O, NULL},
76619 	 { "param_gquad_get", _wrap_param_gquad_get, METH_O, NULL},
76620 	 { "param_gquadLayerMismatch_get", _wrap_param_gquadLayerMismatch_get, METH_O, NULL},
76621 	 { "param_gquadLayerMismatchMax_get", _wrap_param_gquadLayerMismatchMax_get, METH_O, NULL},
76622 	 { "param_temperature_get", _wrap_param_temperature_get, METH_O, NULL},
76623 	 { "param_model_details_get", _wrap_param_model_details_get, METH_O, NULL},
76624 	 { "param_param_file_get", _wrap_param_param_file_get, METH_O, NULL},
76625 	 { "new_param", (PyCFunction)(void(*)(void))_wrap_new_param, METH_VARARGS|METH_KEYWORDS, NULL},
76626 	 { "param___str__", _wrap_param___str__, METH_O, NULL},
76627 	 { "delete_param", _wrap_delete_param, METH_O, NULL},
76628 	 { "param_swigregister", param_swigregister, METH_O, NULL},
76629 	 { "param_swiginit", param_swiginit, METH_VARARGS, NULL},
76630 	 { "exp_param_id_get", _wrap_exp_param_id_get, METH_O, NULL},
76631 	 { "exp_param_expstack_get", _wrap_exp_param_expstack_get, METH_O, NULL},
76632 	 { "exp_param_exphairpin_get", _wrap_exp_param_exphairpin_get, METH_O, NULL},
76633 	 { "exp_param_expbulge_get", _wrap_exp_param_expbulge_get, METH_O, NULL},
76634 	 { "exp_param_expinternal_get", _wrap_exp_param_expinternal_get, METH_O, NULL},
76635 	 { "exp_param_expmismatchExt_get", _wrap_exp_param_expmismatchExt_get, METH_O, NULL},
76636 	 { "exp_param_expmismatchI_get", _wrap_exp_param_expmismatchI_get, METH_O, NULL},
76637 	 { "exp_param_expmismatch23I_get", _wrap_exp_param_expmismatch23I_get, METH_O, NULL},
76638 	 { "exp_param_expmismatch1nI_get", _wrap_exp_param_expmismatch1nI_get, METH_O, NULL},
76639 	 { "exp_param_expmismatchH_get", _wrap_exp_param_expmismatchH_get, METH_O, NULL},
76640 	 { "exp_param_expmismatchM_get", _wrap_exp_param_expmismatchM_get, METH_O, NULL},
76641 	 { "exp_param_expdangle5_get", _wrap_exp_param_expdangle5_get, METH_O, NULL},
76642 	 { "exp_param_expdangle3_get", _wrap_exp_param_expdangle3_get, METH_O, NULL},
76643 	 { "exp_param_expint11_get", _wrap_exp_param_expint11_get, METH_O, NULL},
76644 	 { "exp_param_expint21_get", _wrap_exp_param_expint21_get, METH_O, NULL},
76645 	 { "exp_param_expint22_get", _wrap_exp_param_expint22_get, METH_O, NULL},
76646 	 { "exp_param_expninio_get", _wrap_exp_param_expninio_get, METH_O, NULL},
76647 	 { "exp_param_lxc_get", _wrap_exp_param_lxc_get, METH_O, NULL},
76648 	 { "exp_param_expMLbase_get", _wrap_exp_param_expMLbase_get, METH_O, NULL},
76649 	 { "exp_param_expMLintern_get", _wrap_exp_param_expMLintern_get, METH_O, NULL},
76650 	 { "exp_param_expMLclosing_get", _wrap_exp_param_expMLclosing_get, METH_O, NULL},
76651 	 { "exp_param_expTermAU_get", _wrap_exp_param_expTermAU_get, METH_O, NULL},
76652 	 { "exp_param_expDuplexInit_get", _wrap_exp_param_expDuplexInit_get, METH_O, NULL},
76653 	 { "exp_param_exptetra_get", _wrap_exp_param_exptetra_get, METH_O, NULL},
76654 	 { "exp_param_exptri_get", _wrap_exp_param_exptri_get, METH_O, NULL},
76655 	 { "exp_param_exphex_get", _wrap_exp_param_exphex_get, METH_O, NULL},
76656 	 { "exp_param_Tetraloops_get", _wrap_exp_param_Tetraloops_get, METH_O, NULL},
76657 	 { "exp_param_expTriloop_get", _wrap_exp_param_expTriloop_get, METH_O, NULL},
76658 	 { "exp_param_Triloops_get", _wrap_exp_param_Triloops_get, METH_O, NULL},
76659 	 { "exp_param_Hexaloops_get", _wrap_exp_param_Hexaloops_get, METH_O, NULL},
76660 	 { "exp_param_expTripleC_get", _wrap_exp_param_expTripleC_get, METH_O, NULL},
76661 	 { "exp_param_expMultipleCA_get", _wrap_exp_param_expMultipleCA_get, METH_O, NULL},
76662 	 { "exp_param_expMultipleCB_get", _wrap_exp_param_expMultipleCB_get, METH_O, NULL},
76663 	 { "exp_param_expgquad_get", _wrap_exp_param_expgquad_get, METH_O, NULL},
76664 	 { "exp_param_expgquadLayerMismatch_get", _wrap_exp_param_expgquadLayerMismatch_get, METH_O, NULL},
76665 	 { "exp_param_gquadLayerMismatchMax_get", _wrap_exp_param_gquadLayerMismatchMax_get, METH_O, NULL},
76666 	 { "exp_param_kT_get", _wrap_exp_param_kT_get, METH_O, NULL},
76667 	 { "exp_param_pf_scale_get", _wrap_exp_param_pf_scale_get, METH_O, NULL},
76668 	 { "exp_param_temperature_get", _wrap_exp_param_temperature_get, METH_O, NULL},
76669 	 { "exp_param_alpha_get", _wrap_exp_param_alpha_get, METH_O, NULL},
76670 	 { "exp_param_model_details_get", _wrap_exp_param_model_details_get, METH_O, NULL},
76671 	 { "exp_param_param_file_get", _wrap_exp_param_param_file_get, METH_O, NULL},
76672 	 { "new_exp_param", (PyCFunction)(void(*)(void))_wrap_new_exp_param, METH_VARARGS|METH_KEYWORDS, NULL},
76673 	 { "exp_param___str__", _wrap_exp_param___str__, METH_O, NULL},
76674 	 { "delete_exp_param", _wrap_delete_exp_param, METH_O, NULL},
76675 	 { "exp_param_swigregister", exp_param_swigregister, METH_O, NULL},
76676 	 { "exp_param_swiginit", exp_param_swiginit, METH_VARARGS, NULL},
76677 	 { "params_load", (PyCFunction)(void(*)(void))_wrap_params_load, METH_VARARGS|METH_KEYWORDS, "params_load(std::string filename=\"\", unsigned int options=) -> int"},
76678 	 { "params_save", (PyCFunction)(void(*)(void))_wrap_params_save, METH_VARARGS|METH_KEYWORDS, "params_save(std::string filename, unsigned int options=) -> int"},
76679 	 { "params_load_from_string", (PyCFunction)(void(*)(void))_wrap_params_load_from_string, METH_VARARGS|METH_KEYWORDS, "params_load_from_string(std::string parameters, std::string name=\"\", unsigned int options=) -> int"},
76680 	 { "params_load_RNA_Turner2004", _wrap_params_load_RNA_Turner2004, METH_NOARGS, NULL},
76681 	 { "params_load_RNA_Turner1999", _wrap_params_load_RNA_Turner1999, METH_NOARGS, NULL},
76682 	 { "params_load_RNA_Andronescu2007", _wrap_params_load_RNA_Andronescu2007, METH_NOARGS, NULL},
76683 	 { "params_load_RNA_Langdon2018", _wrap_params_load_RNA_Langdon2018, METH_NOARGS, NULL},
76684 	 { "params_load_RNA_misc_special_hairpins", _wrap_params_load_RNA_misc_special_hairpins, METH_NOARGS, NULL},
76685 	 { "params_load_DNA_Mathews2004", _wrap_params_load_DNA_Mathews2004, METH_NOARGS, NULL},
76686 	 { "params_load_DNA_Mathews1999", _wrap_params_load_DNA_Mathews1999, METH_NOARGS, NULL},
76687 	 { "last_parameter_file", _wrap_last_parameter_file, METH_NOARGS, NULL},
76688 	 { "read_parameter_file", (PyCFunction)(void(*)(void))_wrap_read_parameter_file, METH_VARARGS|METH_KEYWORDS, NULL},
76689 	 { "write_parameter_file", (PyCFunction)(void(*)(void))_wrap_write_parameter_file, METH_VARARGS|METH_KEYWORDS, NULL},
76690 	 { "gettype", (PyCFunction)(void(*)(void))_wrap_gettype, METH_VARARGS|METH_KEYWORDS, NULL},
76691 	 { "settype", (PyCFunction)(void(*)(void))_wrap_settype, METH_VARARGS|METH_KEYWORDS, NULL},
76692 	 { "md_temperature_set", _wrap_md_temperature_set, METH_VARARGS, NULL},
76693 	 { "md_temperature_get", _wrap_md_temperature_get, METH_O, NULL},
76694 	 { "md_betaScale_set", _wrap_md_betaScale_set, METH_VARARGS, NULL},
76695 	 { "md_betaScale_get", _wrap_md_betaScale_get, METH_O, NULL},
76696 	 { "md_pf_smooth_set", _wrap_md_pf_smooth_set, METH_VARARGS, NULL},
76697 	 { "md_pf_smooth_get", _wrap_md_pf_smooth_get, METH_O, NULL},
76698 	 { "md_dangles_set", _wrap_md_dangles_set, METH_VARARGS, NULL},
76699 	 { "md_dangles_get", _wrap_md_dangles_get, METH_O, NULL},
76700 	 { "md_special_hp_set", _wrap_md_special_hp_set, METH_VARARGS, NULL},
76701 	 { "md_special_hp_get", _wrap_md_special_hp_get, METH_O, NULL},
76702 	 { "md_noLP_set", _wrap_md_noLP_set, METH_VARARGS, NULL},
76703 	 { "md_noLP_get", _wrap_md_noLP_get, METH_O, NULL},
76704 	 { "md_noGU_set", _wrap_md_noGU_set, METH_VARARGS, NULL},
76705 	 { "md_noGU_get", _wrap_md_noGU_get, METH_O, NULL},
76706 	 { "md_noGUclosure_set", _wrap_md_noGUclosure_set, METH_VARARGS, NULL},
76707 	 { "md_noGUclosure_get", _wrap_md_noGUclosure_get, METH_O, NULL},
76708 	 { "md_logML_set", _wrap_md_logML_set, METH_VARARGS, NULL},
76709 	 { "md_logML_get", _wrap_md_logML_get, METH_O, NULL},
76710 	 { "md_circ_set", _wrap_md_circ_set, METH_VARARGS, NULL},
76711 	 { "md_circ_get", _wrap_md_circ_get, METH_O, NULL},
76712 	 { "md_gquad_set", _wrap_md_gquad_set, METH_VARARGS, NULL},
76713 	 { "md_gquad_get", _wrap_md_gquad_get, METH_O, NULL},
76714 	 { "md_uniq_ML_set", _wrap_md_uniq_ML_set, METH_VARARGS, NULL},
76715 	 { "md_uniq_ML_get", _wrap_md_uniq_ML_get, METH_O, NULL},
76716 	 { "md_energy_set_set", _wrap_md_energy_set_set, METH_VARARGS, NULL},
76717 	 { "md_energy_set_get", _wrap_md_energy_set_get, METH_O, NULL},
76718 	 { "md_backtrack_set", _wrap_md_backtrack_set, METH_VARARGS, NULL},
76719 	 { "md_backtrack_get", _wrap_md_backtrack_get, METH_O, NULL},
76720 	 { "md_backtrack_type_set", _wrap_md_backtrack_type_set, METH_VARARGS, NULL},
76721 	 { "md_backtrack_type_get", _wrap_md_backtrack_type_get, METH_O, NULL},
76722 	 { "md_compute_bpp_set", _wrap_md_compute_bpp_set, METH_VARARGS, NULL},
76723 	 { "md_compute_bpp_get", _wrap_md_compute_bpp_get, METH_O, NULL},
76724 	 { "md_nonstandards_set", _wrap_md_nonstandards_set, METH_VARARGS, NULL},
76725 	 { "md_nonstandards_get", _wrap_md_nonstandards_get, METH_O, NULL},
76726 	 { "md_max_bp_span_set", _wrap_md_max_bp_span_set, METH_VARARGS, NULL},
76727 	 { "md_max_bp_span_get", _wrap_md_max_bp_span_get, METH_O, NULL},
76728 	 { "md_min_loop_size_set", _wrap_md_min_loop_size_set, METH_VARARGS, NULL},
76729 	 { "md_min_loop_size_get", _wrap_md_min_loop_size_get, METH_O, NULL},
76730 	 { "md_window_size_set", _wrap_md_window_size_set, METH_VARARGS, NULL},
76731 	 { "md_window_size_get", _wrap_md_window_size_get, METH_O, NULL},
76732 	 { "md_oldAliEn_set", _wrap_md_oldAliEn_set, METH_VARARGS, NULL},
76733 	 { "md_oldAliEn_get", _wrap_md_oldAliEn_get, METH_O, NULL},
76734 	 { "md_ribo_set", _wrap_md_ribo_set, METH_VARARGS, NULL},
76735 	 { "md_ribo_get", _wrap_md_ribo_get, METH_O, NULL},
76736 	 { "md_cv_fact_set", _wrap_md_cv_fact_set, METH_VARARGS, NULL},
76737 	 { "md_cv_fact_get", _wrap_md_cv_fact_get, METH_O, NULL},
76738 	 { "md_nc_fact_set", _wrap_md_nc_fact_set, METH_VARARGS, NULL},
76739 	 { "md_nc_fact_get", _wrap_md_nc_fact_get, METH_O, NULL},
76740 	 { "md_sfact_set", _wrap_md_sfact_set, METH_VARARGS, NULL},
76741 	 { "md_sfact_get", _wrap_md_sfact_get, METH_O, NULL},
76742 	 { "md_rtype_get", _wrap_md_rtype_get, METH_O, NULL},
76743 	 { "md_alias_get", _wrap_md_alias_get, METH_O, NULL},
76744 	 { "md_pair_get", _wrap_md_pair_get, METH_O, NULL},
76745 	 { "new_md", (PyCFunction)(void(*)(void))_wrap_new_md, METH_VARARGS|METH_KEYWORDS, NULL},
76746 	 { "delete_md", _wrap_delete_md, METH_O, NULL},
76747 	 { "md_reset", _wrap_md_reset, METH_O, NULL},
76748 	 { "md_set_from_globals", _wrap_md_set_from_globals, METH_O, NULL},
76749 	 { "md_option_string", _wrap_md_option_string, METH_O, NULL},
76750 	 { "md___str__", _wrap_md___str__, METH_O, NULL},
76751 	 { "md_swigregister", md_swigregister, METH_O, NULL},
76752 	 { "md_swiginit", md_swiginit, METH_VARARGS, NULL},
76753 	 { "init_rand", _wrap_init_rand, METH_NOARGS, NULL},
76754 	 { "urn", _wrap_urn, METH_NOARGS, NULL},
76755 	 { "int_urn", (PyCFunction)(void(*)(void))_wrap_int_urn, METH_VARARGS|METH_KEYWORDS, NULL},
76756 	 { "hamming", (PyCFunction)(void(*)(void))_wrap_hamming, METH_VARARGS|METH_KEYWORDS, NULL},
76757 	 { "hamming_bound", (PyCFunction)(void(*)(void))_wrap_hamming_bound, METH_VARARGS|METH_KEYWORDS, NULL},
76758 	 { "encode_seq", (PyCFunction)(void(*)(void))_wrap_encode_seq, METH_VARARGS|METH_KEYWORDS, NULL},
76759 	 { "random_string", (PyCFunction)(void(*)(void))_wrap_random_string, METH_VARARGS|METH_KEYWORDS, NULL},
76760 	 { "hamming_distance", (PyCFunction)(void(*)(void))_wrap_hamming_distance, METH_VARARGS|METH_KEYWORDS, NULL},
76761 	 { "hamming_distance_bound", (PyCFunction)(void(*)(void))_wrap_hamming_distance_bound, METH_VARARGS|METH_KEYWORDS, NULL},
76762 	 { "ep_i_set", _wrap_ep_i_set, METH_VARARGS, NULL},
76763 	 { "ep_i_get", _wrap_ep_i_get, METH_O, NULL},
76764 	 { "ep_j_set", _wrap_ep_j_set, METH_VARARGS, NULL},
76765 	 { "ep_j_get", _wrap_ep_j_get, METH_O, NULL},
76766 	 { "ep_p_set", _wrap_ep_p_set, METH_VARARGS, NULL},
76767 	 { "ep_p_get", _wrap_ep_p_get, METH_O, NULL},
76768 	 { "ep_type_set", _wrap_ep_type_set, METH_VARARGS, NULL},
76769 	 { "ep_type_get", _wrap_ep_type_get, METH_O, NULL},
76770 	 { "new_ep", (PyCFunction)(void(*)(void))_wrap_new_ep, METH_VARARGS|METH_KEYWORDS, NULL},
76771 	 { "ep___str__", _wrap_ep___str__, METH_O, NULL},
76772 	 { "delete_ep", _wrap_delete_ep, METH_O, NULL},
76773 	 { "ep_swigregister", ep_swigregister, METH_O, NULL},
76774 	 { "ep_swiginit", ep_swiginit, METH_VARARGS, NULL},
76775 	 { "pack_structure", (PyCFunction)(void(*)(void))_wrap_pack_structure, METH_VARARGS|METH_KEYWORDS, "pack_structure(char const * s) -> char *"},
76776 	 { "unpack_structure", (PyCFunction)(void(*)(void))_wrap_unpack_structure, METH_VARARGS|METH_KEYWORDS, "unpack_structure(char const * packed) -> char *"},
76777 	 { "db_from_ptable", (PyCFunction)(void(*)(void))_wrap_db_from_ptable, METH_VARARGS|METH_KEYWORDS, "db_from_ptable(IntVector pt) -> char *"},
76778 	 { "db_flatten", _wrap_db_flatten, METH_VARARGS, NULL},
76779 	 { "db_from_WUSS", (PyCFunction)(void(*)(void))_wrap_db_from_WUSS, METH_VARARGS|METH_KEYWORDS, NULL},
76780 	 { "abstract_shapes", _wrap_abstract_shapes, METH_VARARGS, "\n"
76781 		"abstract_shapes(std::string structure, unsigned int level=5) -> std::string\n"
76782 		"abstract_shapes(IntVector arg1, unsigned int level=5) -> std::string\n"
76783 		""},
76784 	 { "ptable", (PyCFunction)(void(*)(void))_wrap_ptable, METH_VARARGS|METH_KEYWORDS, "ptable(std::string str, unsigned int options=) -> IntVector"},
76785 	 { "ptable_pk", (PyCFunction)(void(*)(void))_wrap_ptable_pk, METH_VARARGS|METH_KEYWORDS, "ptable_pk(std::string str) -> IntVector"},
76786 	 { "pt_pk_remove", (PyCFunction)(void(*)(void))_wrap_pt_pk_remove, METH_VARARGS|METH_KEYWORDS, "pt_pk_remove(IntVector pt, unsigned int options=0) -> IntVector"},
76787 	 { "plist", (PyCFunction)(void(*)(void))_wrap_plist, METH_VARARGS|METH_KEYWORDS, "plist(std::string structure, float pr) -> ElemProbVector"},
76788 	 { "db_from_plist", (PyCFunction)(void(*)(void))_wrap_db_from_plist, METH_VARARGS|METH_KEYWORDS, "db_from_plist(ElemProbVector elem_probs, unsigned int length) -> std::string"},
76789 	 { "db_pk_remove", (PyCFunction)(void(*)(void))_wrap_db_pk_remove, METH_VARARGS|METH_KEYWORDS, "db_pk_remove(std::string structure, unsigned int options=) -> std::string"},
76790 	 { "db_to_tree_string", (PyCFunction)(void(*)(void))_wrap_db_to_tree_string, METH_VARARGS|METH_KEYWORDS, "db_to_tree_string(std::string structure, unsigned int type) -> std::string"},
76791 	 { "tree_string_unweight", (PyCFunction)(void(*)(void))_wrap_tree_string_unweight, METH_VARARGS|METH_KEYWORDS, NULL},
76792 	 { "tree_string_to_db", (PyCFunction)(void(*)(void))_wrap_tree_string_to_db, METH_VARARGS|METH_KEYWORDS, NULL},
76793 	 { "make_loop_index", (PyCFunction)(void(*)(void))_wrap_make_loop_index, METH_VARARGS|METH_KEYWORDS, NULL},
76794 	 { "loopidx_from_ptable", (PyCFunction)(void(*)(void))_wrap_loopidx_from_ptable, METH_VARARGS|METH_KEYWORDS, "loopidx_from_ptable(IntVector pt) -> IntVector"},
76795 	 { "bp_distance", (PyCFunction)(void(*)(void))_wrap_bp_distance, METH_VARARGS|METH_KEYWORDS, "bp_distance(char const * str1, char const * str2) -> int"},
76796 	 { "dist_mountain", (PyCFunction)(void(*)(void))_wrap_dist_mountain, METH_VARARGS|METH_KEYWORDS, NULL},
76797 	 { "db_pack", (PyCFunction)(void(*)(void))_wrap_db_pack, METH_VARARGS|METH_KEYWORDS, NULL},
76798 	 { "db_unpack", (PyCFunction)(void(*)(void))_wrap_db_unpack, METH_VARARGS|METH_KEYWORDS, NULL},
76799 	 { "db_to_element_string", (PyCFunction)(void(*)(void))_wrap_db_to_element_string, METH_VARARGS|METH_KEYWORDS, NULL},
76800 	 { "consensus", (PyCFunction)(void(*)(void))_wrap_consensus, METH_VARARGS|METH_KEYWORDS, "consensus(StringVector alignment, md md_p=None) -> std::string"},
76801 	 { "consens_mis", (PyCFunction)(void(*)(void))_wrap_consens_mis, METH_VARARGS|METH_KEYWORDS, "consens_mis(StringVector alignment, md md_p=None) -> std::string"},
76802 	 { "aln_mpi", (PyCFunction)(void(*)(void))_wrap_aln_mpi, METH_VARARGS|METH_KEYWORDS, "aln_mpi(StringVector alignment) -> int"},
76803 	 { "aln_pscore", (PyCFunction)(void(*)(void))_wrap_aln_pscore, METH_VARARGS|METH_KEYWORDS, "aln_pscore(StringVector alignment, md md=None) -> IntIntVector"},
76804 	 { "aln_conservation_struct", (PyCFunction)(void(*)(void))_wrap_aln_conservation_struct, METH_VARARGS|METH_KEYWORDS, "aln_conservation_struct(StringVector alignment, std::string structure, md md=None) -> DoubleVector"},
76805 	 { "aln_conservation_col", (PyCFunction)(void(*)(void))_wrap_aln_conservation_col, METH_VARARGS|METH_KEYWORDS, "aln_conservation_col(StringVector alignment, md md=None, unsigned int options=) -> DoubleVector"},
76806 	 { "move_standard", (PyCFunction)(void(*)(void))_wrap_move_standard, METH_VARARGS|METH_KEYWORDS, "move_standard(char * seq, char * struc, enum MOVE_TYPE type, int verbosity_level, int shifts, int noLP) -> char *"},
76807 	 { "struct_en_energy_set", _wrap_struct_en_energy_set, METH_VARARGS, NULL},
76808 	 { "struct_en_energy_get", _wrap_struct_en_energy_get, METH_O, NULL},
76809 	 { "struct_en_structure_set", _wrap_struct_en_structure_set, METH_VARARGS, NULL},
76810 	 { "struct_en_structure_get", _wrap_struct_en_structure_get, METH_O, NULL},
76811 	 { "new_struct_en", _wrap_new_struct_en, METH_NOARGS, NULL},
76812 	 { "delete_struct_en", _wrap_delete_struct_en, METH_O, NULL},
76813 	 { "struct_en_swigregister", struct_en_swigregister, METH_O, NULL},
76814 	 { "struct_en_swiginit", struct_en_swiginit, METH_VARARGS, NULL},
76815 	 { "filename_sanitize", _wrap_filename_sanitize, METH_VARARGS, NULL},
76816 	 { "get_xy_coordinates", (PyCFunction)(void(*)(void))_wrap_get_xy_coordinates, METH_VARARGS|METH_KEYWORDS, "get_xy_coordinates(char const * structure) -> COORDINATE"},
76817 	 { "simple_circplot_coordinates", (PyCFunction)(void(*)(void))_wrap_simple_circplot_coordinates, METH_VARARGS|METH_KEYWORDS, "simple_circplot_coordinates(std::string arg1) -> CoordinateVector"},
76818 	 { "naview_xy_coordinates", (PyCFunction)(void(*)(void))_wrap_naview_xy_coordinates, METH_VARARGS|METH_KEYWORDS, "naview_xy_coordinates(std::string arg1) -> CoordinateVector"},
76819 	 { "COORDINATE_get", (PyCFunction)(void(*)(void))_wrap_COORDINATE_get, METH_VARARGS|METH_KEYWORDS, NULL},
76820 	 { "COORDINATE_X_set", _wrap_COORDINATE_X_set, METH_VARARGS, NULL},
76821 	 { "COORDINATE_X_get", _wrap_COORDINATE_X_get, METH_O, NULL},
76822 	 { "COORDINATE_Y_set", _wrap_COORDINATE_Y_set, METH_VARARGS, NULL},
76823 	 { "COORDINATE_Y_get", _wrap_COORDINATE_Y_get, METH_O, NULL},
76824 	 { "new_COORDINATE", _wrap_new_COORDINATE, METH_NOARGS, NULL},
76825 	 { "delete_COORDINATE", _wrap_delete_COORDINATE, METH_O, NULL},
76826 	 { "COORDINATE_swigregister", COORDINATE_swigregister, METH_O, NULL},
76827 	 { "COORDINATE_swiginit", COORDINATE_swiginit, METH_VARARGS, NULL},
76828 	 { "simple_xy_coordinates", _wrap_simple_xy_coordinates, METH_VARARGS, NULL},
76829 	 { "my_PS_rna_plot_snoop_a", (PyCFunction)(void(*)(void))_wrap_my_PS_rna_plot_snoop_a, METH_VARARGS|METH_KEYWORDS, "my_PS_rna_plot_snoop_a(std::string sequence, std::string structure, std::string filename, IntVector relative_access, StringVector seqs) -> int"},
76830 	 { "file_PS_rnaplot", _wrap_file_PS_rnaplot, METH_VARARGS, NULL},
76831 	 { "file_PS_rnaplot_a", _wrap_file_PS_rnaplot_a, METH_VARARGS, NULL},
76832 	 { "gmlRNA", (PyCFunction)(void(*)(void))_wrap_gmlRNA, METH_VARARGS|METH_KEYWORDS, NULL},
76833 	 { "ssv_rna_plot", (PyCFunction)(void(*)(void))_wrap_ssv_rna_plot, METH_VARARGS|METH_KEYWORDS, NULL},
76834 	 { "svg_rna_plot", (PyCFunction)(void(*)(void))_wrap_svg_rna_plot, METH_VARARGS|METH_KEYWORDS, NULL},
76835 	 { "xrna_plot", (PyCFunction)(void(*)(void))_wrap_xrna_plot, METH_VARARGS|METH_KEYWORDS, NULL},
76836 	 { "PS_rna_plot", (PyCFunction)(void(*)(void))_wrap_PS_rna_plot, METH_VARARGS|METH_KEYWORDS, NULL},
76837 	 { "PS_rna_plot_a", (PyCFunction)(void(*)(void))_wrap_PS_rna_plot_a, METH_VARARGS|METH_KEYWORDS, NULL},
76838 	 { "PS_rna_plot_a_gquad", (PyCFunction)(void(*)(void))_wrap_PS_rna_plot_a_gquad, METH_VARARGS|METH_KEYWORDS, NULL},
76839 	 { "file_PS_aln", (PyCFunction)(void(*)(void))_wrap_file_PS_aln, METH_VARARGS|METH_KEYWORDS, "file_PS_aln(std::string filename, StringVector alignment, StringVector identifiers, std::string structure, unsigned int start=0, unsigned int end=0, int offset=0, unsigned int columns=60) -> int"},
76840 	 { "PS_color_dot_plot", (PyCFunction)(void(*)(void))_wrap_PS_color_dot_plot, METH_VARARGS|METH_KEYWORDS, NULL},
76841 	 { "PS_color_dot_plot_turn", (PyCFunction)(void(*)(void))_wrap_PS_color_dot_plot_turn, METH_VARARGS|METH_KEYWORDS, NULL},
76842 	 { "PS_dot_plot_turn", (PyCFunction)(void(*)(void))_wrap_PS_dot_plot_turn, METH_VARARGS|METH_KEYWORDS, NULL},
76843 	 { "PS_dot_plot_list", (PyCFunction)(void(*)(void))_wrap_PS_dot_plot_list, METH_VARARGS|METH_KEYWORDS, NULL},
76844 	 { "PS_dot_plot", (PyCFunction)(void(*)(void))_wrap_PS_dot_plot, METH_VARARGS|METH_KEYWORDS, NULL},
76845 	 { "eval_structure_simple", _wrap_eval_structure_simple, METH_VARARGS, NULL},
76846 	 { "eval_circ_structure", _wrap_eval_circ_structure, METH_VARARGS, NULL},
76847 	 { "eval_gquad_structure", _wrap_eval_gquad_structure, METH_VARARGS, NULL},
76848 	 { "eval_circ_gquad_structure", _wrap_eval_circ_gquad_structure, METH_VARARGS, NULL},
76849 	 { "eval_structure_pt_simple", _wrap_eval_structure_pt_simple, METH_VARARGS, NULL},
76850 	 { "energy_of_structure", (PyCFunction)(void(*)(void))_wrap_energy_of_structure, METH_VARARGS|METH_KEYWORDS, NULL},
76851 	 { "energy_of_circ_structure", (PyCFunction)(void(*)(void))_wrap_energy_of_circ_structure, METH_VARARGS|METH_KEYWORDS, NULL},
76852 	 { "energy_of_gquad_structure", (PyCFunction)(void(*)(void))_wrap_energy_of_gquad_structure, METH_VARARGS|METH_KEYWORDS, NULL},
76853 	 { "energy_of_structure_pt", (PyCFunction)(void(*)(void))_wrap_energy_of_structure_pt, METH_VARARGS|METH_KEYWORDS, NULL},
76854 	 { "energy_of_move", (PyCFunction)(void(*)(void))_wrap_energy_of_move, METH_VARARGS|METH_KEYWORDS, NULL},
76855 	 { "energy_of_move_pt", (PyCFunction)(void(*)(void))_wrap_energy_of_move_pt, METH_VARARGS|METH_KEYWORDS, NULL},
76856 	 { "loop_energy", (PyCFunction)(void(*)(void))_wrap_loop_energy, METH_VARARGS|METH_KEYWORDS, NULL},
76857 	 { "energy_of_struct", (PyCFunction)(void(*)(void))_wrap_energy_of_struct, METH_VARARGS|METH_KEYWORDS, NULL},
76858 	 { "energy_of_struct_pt", (PyCFunction)(void(*)(void))_wrap_energy_of_struct_pt, METH_VARARGS|METH_KEYWORDS, NULL},
76859 	 { "energy_of_circ_struct", (PyCFunction)(void(*)(void))_wrap_energy_of_circ_struct, METH_VARARGS|METH_KEYWORDS, NULL},
76860 	 { "E_ext_stem", (PyCFunction)(void(*)(void))_wrap_E_ext_stem, METH_VARARGS|METH_KEYWORDS, NULL},
76861 	 { "exp_E_ext_stem", (PyCFunction)(void(*)(void))_wrap_exp_E_ext_stem, METH_VARARGS|METH_KEYWORDS, NULL},
76862 	 { "E_Stem", (PyCFunction)(void(*)(void))_wrap_E_Stem, METH_VARARGS|METH_KEYWORDS, NULL},
76863 	 { "E_ExtLoop", (PyCFunction)(void(*)(void))_wrap_E_ExtLoop, METH_VARARGS|METH_KEYWORDS, NULL},
76864 	 { "exp_E_ExtLoop", (PyCFunction)(void(*)(void))_wrap_exp_E_ExtLoop, METH_VARARGS|METH_KEYWORDS, NULL},
76865 	 { "exp_E_Stem", (PyCFunction)(void(*)(void))_wrap_exp_E_Stem, METH_VARARGS|METH_KEYWORDS, NULL},
76866 	 { "E_Hairpin", (PyCFunction)(void(*)(void))_wrap_E_Hairpin, METH_VARARGS|METH_KEYWORDS, NULL},
76867 	 { "exp_E_Hairpin", (PyCFunction)(void(*)(void))_wrap_exp_E_Hairpin, METH_VARARGS|METH_KEYWORDS, NULL},
76868 	 { "E_IntLoop", (PyCFunction)(void(*)(void))_wrap_E_IntLoop, METH_VARARGS|METH_KEYWORDS, NULL},
76869 	 { "exp_E_IntLoop", (PyCFunction)(void(*)(void))_wrap_exp_E_IntLoop, METH_VARARGS|METH_KEYWORDS, NULL},
76870 	 { "E_IntLoop_Co", (PyCFunction)(void(*)(void))_wrap_E_IntLoop_Co, METH_VARARGS|METH_KEYWORDS, NULL},
76871 	 { "ubf_eval_int_loop", (PyCFunction)(void(*)(void))_wrap_ubf_eval_int_loop, METH_VARARGS|METH_KEYWORDS, NULL},
76872 	 { "ubf_eval_int_loop2", (PyCFunction)(void(*)(void))_wrap_ubf_eval_int_loop2, METH_VARARGS|METH_KEYWORDS, NULL},
76873 	 { "ubf_eval_ext_int_loop", (PyCFunction)(void(*)(void))_wrap_ubf_eval_ext_int_loop, METH_VARARGS|METH_KEYWORDS, NULL},
76874 	 { "E_ml_rightmost_stem", (PyCFunction)(void(*)(void))_wrap_E_ml_rightmost_stem, METH_VARARGS|METH_KEYWORDS, NULL},
76875 	 { "E_MLstem", (PyCFunction)(void(*)(void))_wrap_E_MLstem, METH_VARARGS|METH_KEYWORDS, NULL},
76876 	 { "exp_E_MLstem", (PyCFunction)(void(*)(void))_wrap_exp_E_MLstem, METH_VARARGS|METH_KEYWORDS, NULL},
76877 	 { "maximum_matching", (PyCFunction)(void(*)(void))_wrap_maximum_matching, METH_VARARGS|METH_KEYWORDS, NULL},
76878 	 { "fold", _wrap_fold, METH_VARARGS, NULL},
76879 	 { "alifold", _wrap_alifold, METH_VARARGS, NULL},
76880 	 { "cofold", _wrap_cofold, METH_VARARGS, NULL},
76881 	 { "circfold", _wrap_circfold, METH_VARARGS, NULL},
76882 	 { "free_arrays", _wrap_free_arrays, METH_NOARGS, NULL},
76883 	 { "update_fold_params", _wrap_update_fold_params, METH_NOARGS, NULL},
76884 	 { "circalifold", _wrap_circalifold, METH_VARARGS, NULL},
76885 	 { "free_alifold_arrays", _wrap_free_alifold_arrays, METH_NOARGS, NULL},
76886 	 { "free_co_arrays", _wrap_free_co_arrays, METH_NOARGS, NULL},
76887 	 { "update_cofold_params", _wrap_update_cofold_params, METH_NOARGS, NULL},
76888 	 { "initialize_cofold", (PyCFunction)(void(*)(void))_wrap_initialize_cofold, METH_VARARGS|METH_KEYWORDS, NULL},
76889 	 { "Lfoldz", (PyCFunction)(void(*)(void))_wrap_Lfoldz, METH_VARARGS|METH_KEYWORDS, NULL},
76890 	 { "Lfold", (PyCFunction)(void(*)(void))_wrap_Lfold, METH_VARARGS|METH_KEYWORDS, NULL},
76891 	 { "aliLfold", (PyCFunction)(void(*)(void))_wrap_aliLfold, METH_VARARGS|METH_KEYWORDS, NULL},
76892 	 { "pf_fold", _wrap_pf_fold, METH_VARARGS, NULL},
76893 	 { "pf_circ_fold", _wrap_pf_circ_fold, METH_VARARGS, NULL},
76894 	 { "pf_float_precision", _wrap_pf_float_precision, METH_NOARGS, NULL},
76895 	 { "pbacktrack", (PyCFunction)(void(*)(void))_wrap_pbacktrack, METH_VARARGS|METH_KEYWORDS, NULL},
76896 	 { "pbacktrack5", (PyCFunction)(void(*)(void))_wrap_pbacktrack5, METH_VARARGS|METH_KEYWORDS, NULL},
76897 	 { "pbacktrack_circ", (PyCFunction)(void(*)(void))_wrap_pbacktrack_circ, METH_VARARGS|METH_KEYWORDS, NULL},
76898 	 { "free_pf_arrays", _wrap_free_pf_arrays, METH_NOARGS, NULL},
76899 	 { "update_pf_params", (PyCFunction)(void(*)(void))_wrap_update_pf_params, METH_VARARGS|METH_KEYWORDS, NULL},
76900 	 { "mean_bp_distance", (PyCFunction)(void(*)(void))_wrap_mean_bp_distance, METH_VARARGS|METH_KEYWORDS, NULL},
76901 	 { "init_pf_fold", (PyCFunction)(void(*)(void))_wrap_init_pf_fold, METH_VARARGS|METH_KEYWORDS, NULL},
76902 	 { "centroid", (PyCFunction)(void(*)(void))_wrap_centroid, METH_VARARGS|METH_KEYWORDS, NULL},
76903 	 { "co_pf_fold", _wrap_co_pf_fold, METH_VARARGS, NULL},
76904 	 { "get_concentrations", (PyCFunction)(void(*)(void))_wrap_get_concentrations, METH_VARARGS|METH_KEYWORDS, NULL},
76905 	 { "free_co_pf_arrays", _wrap_free_co_pf_arrays, METH_NOARGS, NULL},
76906 	 { "update_co_pf_params", (PyCFunction)(void(*)(void))_wrap_update_co_pf_params, METH_VARARGS|METH_KEYWORDS, NULL},
76907 	 { "get_pr", (PyCFunction)(void(*)(void))_wrap_get_pr, METH_VARARGS|METH_KEYWORDS, NULL},
76908 	 { "get_centroid_struct_pl", (PyCFunction)(void(*)(void))_wrap_get_centroid_struct_pl, METH_VARARGS|METH_KEYWORDS, NULL},
76909 	 { "get_centroid_struct_pr", (PyCFunction)(void(*)(void))_wrap_get_centroid_struct_pr, METH_VARARGS|METH_KEYWORDS, NULL},
76910 	 { "MEA_from_plist", _wrap_MEA_from_plist, METH_VARARGS, NULL},
76911 	 { "new_pbacktrack_mem", _wrap_new_pbacktrack_mem, METH_NOARGS, NULL},
76912 	 { "delete_pbacktrack_mem", _wrap_delete_pbacktrack_mem, METH_O, NULL},
76913 	 { "pbacktrack_mem_swigregister", pbacktrack_mem_swigregister, METH_O, NULL},
76914 	 { "pbacktrack_mem_swiginit", pbacktrack_mem_swiginit, METH_VARARGS, NULL},
76915 	 { "pfl_fold", (PyCFunction)(void(*)(void))_wrap_pfl_fold, METH_VARARGS|METH_KEYWORDS, "pfl_fold(std::string sequence, int w, int L, double cutoff) -> ElemProbVector"},
76916 	 { "pfl_fold_up", (PyCFunction)(void(*)(void))_wrap_pfl_fold_up, METH_VARARGS|METH_KEYWORDS, "pfl_fold_up(std::string sequence, int ulength, int window_size, int max_bp_span) -> DoubleDoubleVector"},
76917 	 { "SOLUTION_energy_set", _wrap_SOLUTION_energy_set, METH_VARARGS, NULL},
76918 	 { "SOLUTION_energy_get", _wrap_SOLUTION_energy_get, METH_O, NULL},
76919 	 { "SOLUTION_structure_set", _wrap_SOLUTION_structure_set, METH_VARARGS, NULL},
76920 	 { "SOLUTION_structure_get", _wrap_SOLUTION_structure_get, METH_O, NULL},
76921 	 { "SOLUTION_get", (PyCFunction)(void(*)(void))_wrap_SOLUTION_get, METH_VARARGS|METH_KEYWORDS, NULL},
76922 	 { "SOLUTION_size", _wrap_SOLUTION_size, METH_O, NULL},
76923 	 { "delete_SOLUTION", _wrap_delete_SOLUTION, METH_O, NULL},
76924 	 { "new_SOLUTION", _wrap_new_SOLUTION, METH_NOARGS, NULL},
76925 	 { "SOLUTION_swigregister", SOLUTION_swigregister, METH_O, NULL},
76926 	 { "SOLUTION_swiginit", SOLUTION_swiginit, METH_VARARGS, NULL},
76927 	 { "subopt_solution_energy_set", _wrap_subopt_solution_energy_set, METH_VARARGS, NULL},
76928 	 { "subopt_solution_energy_get", _wrap_subopt_solution_energy_get, METH_O, NULL},
76929 	 { "subopt_solution_structure_set", _wrap_subopt_solution_structure_set, METH_VARARGS, NULL},
76930 	 { "subopt_solution_structure_get", _wrap_subopt_solution_structure_get, METH_O, NULL},
76931 	 { "delete_subopt_solution", _wrap_delete_subopt_solution, METH_O, NULL},
76932 	 { "subopt_solution___str__", _wrap_subopt_solution___str__, METH_O, NULL},
76933 	 { "new_subopt_solution", _wrap_new_subopt_solution, METH_NOARGS, NULL},
76934 	 { "subopt_solution_swigregister", subopt_solution_swigregister, METH_O, NULL},
76935 	 { "subopt_solution_swiginit", subopt_solution_swiginit, METH_VARARGS, NULL},
76936 	 { "SuboptVector_iterator", _wrap_SuboptVector_iterator, METH_O, NULL},
76937 	 { "SuboptVector___nonzero__", _wrap_SuboptVector___nonzero__, METH_O, NULL},
76938 	 { "SuboptVector___bool__", _wrap_SuboptVector___bool__, METH_O, NULL},
76939 	 { "SuboptVector___len__", _wrap_SuboptVector___len__, METH_O, NULL},
76940 	 { "SuboptVector___getslice__", (PyCFunction)(void(*)(void))_wrap_SuboptVector___getslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76941 	 { "SuboptVector___setslice__", _wrap_SuboptVector___setslice__, METH_VARARGS, NULL},
76942 	 { "SuboptVector___delslice__", (PyCFunction)(void(*)(void))_wrap_SuboptVector___delslice__, METH_VARARGS|METH_KEYWORDS, NULL},
76943 	 { "SuboptVector___delitem__", _wrap_SuboptVector___delitem__, METH_VARARGS, NULL},
76944 	 { "SuboptVector___getitem__", _wrap_SuboptVector___getitem__, METH_VARARGS, NULL},
76945 	 { "SuboptVector___setitem__", _wrap_SuboptVector___setitem__, METH_VARARGS, NULL},
76946 	 { "SuboptVector_pop", _wrap_SuboptVector_pop, METH_O, NULL},
76947 	 { "SuboptVector_append", (PyCFunction)(void(*)(void))_wrap_SuboptVector_append, METH_VARARGS|METH_KEYWORDS, NULL},
76948 	 { "SuboptVector_empty", _wrap_SuboptVector_empty, METH_O, NULL},
76949 	 { "SuboptVector_size", _wrap_SuboptVector_size, METH_O, NULL},
76950 	 { "SuboptVector_swap", (PyCFunction)(void(*)(void))_wrap_SuboptVector_swap, METH_VARARGS|METH_KEYWORDS, NULL},
76951 	 { "SuboptVector_begin", _wrap_SuboptVector_begin, METH_O, NULL},
76952 	 { "SuboptVector_end", _wrap_SuboptVector_end, METH_O, NULL},
76953 	 { "SuboptVector_rbegin", _wrap_SuboptVector_rbegin, METH_O, NULL},
76954 	 { "SuboptVector_rend", _wrap_SuboptVector_rend, METH_O, NULL},
76955 	 { "SuboptVector_clear", _wrap_SuboptVector_clear, METH_O, NULL},
76956 	 { "SuboptVector_get_allocator", _wrap_SuboptVector_get_allocator, METH_O, NULL},
76957 	 { "SuboptVector_pop_back", _wrap_SuboptVector_pop_back, METH_O, NULL},
76958 	 { "SuboptVector_erase", _wrap_SuboptVector_erase, METH_VARARGS, NULL},
76959 	 { "new_SuboptVector", _wrap_new_SuboptVector, METH_VARARGS, NULL},
76960 	 { "SuboptVector_push_back", (PyCFunction)(void(*)(void))_wrap_SuboptVector_push_back, METH_VARARGS|METH_KEYWORDS, NULL},
76961 	 { "SuboptVector_front", _wrap_SuboptVector_front, METH_O, NULL},
76962 	 { "SuboptVector_back", _wrap_SuboptVector_back, METH_O, NULL},
76963 	 { "SuboptVector_assign", (PyCFunction)(void(*)(void))_wrap_SuboptVector_assign, METH_VARARGS|METH_KEYWORDS, NULL},
76964 	 { "SuboptVector_resize", _wrap_SuboptVector_resize, METH_VARARGS, NULL},
76965 	 { "SuboptVector_insert", _wrap_SuboptVector_insert, METH_VARARGS, NULL},
76966 	 { "SuboptVector_reserve", (PyCFunction)(void(*)(void))_wrap_SuboptVector_reserve, METH_VARARGS|METH_KEYWORDS, NULL},
76967 	 { "SuboptVector_capacity", _wrap_SuboptVector_capacity, METH_O, NULL},
76968 	 { "delete_SuboptVector", _wrap_delete_SuboptVector, METH_O, NULL},
76969 	 { "SuboptVector_swigregister", SuboptVector_swigregister, METH_O, NULL},
76970 	 { "SuboptVector_swiginit", SuboptVector_swiginit, METH_VARARGS, NULL},
76971 	 { "subopt", _wrap_subopt, METH_VARARGS, NULL},
76972 	 { "zukersubopt", (PyCFunction)(void(*)(void))_wrap_zukersubopt, METH_VARARGS|METH_KEYWORDS, NULL},
76973 	 { "inverse_fold", (PyCFunction)(void(*)(void))_wrap_inverse_fold, METH_VARARGS|METH_KEYWORDS, "inverse_fold(char * start, char const * target) -> char *"},
76974 	 { "inverse_pf_fold", (PyCFunction)(void(*)(void))_wrap_inverse_pf_fold, METH_VARARGS|METH_KEYWORDS, "inverse_pf_fold(char * start, char const * target) -> char *"},
76975 	 { "b2HIT", (PyCFunction)(void(*)(void))_wrap_b2HIT, METH_VARARGS|METH_KEYWORDS, NULL},
76976 	 { "b2C", (PyCFunction)(void(*)(void))_wrap_b2C, METH_VARARGS|METH_KEYWORDS, NULL},
76977 	 { "b2Shapiro", (PyCFunction)(void(*)(void))_wrap_b2Shapiro, METH_VARARGS|METH_KEYWORDS, NULL},
76978 	 { "add_root", (PyCFunction)(void(*)(void))_wrap_add_root, METH_VARARGS|METH_KEYWORDS, NULL},
76979 	 { "expand_Shapiro", (PyCFunction)(void(*)(void))_wrap_expand_Shapiro, METH_VARARGS|METH_KEYWORDS, NULL},
76980 	 { "expand_Full", (PyCFunction)(void(*)(void))_wrap_expand_Full, METH_VARARGS|METH_KEYWORDS, NULL},
76981 	 { "unexpand_Full", (PyCFunction)(void(*)(void))_wrap_unexpand_Full, METH_VARARGS|METH_KEYWORDS, NULL},
76982 	 { "unweight", (PyCFunction)(void(*)(void))_wrap_unweight, METH_VARARGS|METH_KEYWORDS, NULL},
76983 	 { "unexpand_aligned_F", (PyCFunction)(void(*)(void))_wrap_unexpand_aligned_F, METH_VARARGS|METH_KEYWORDS, NULL},
76984 	 { "parse_structure", (PyCFunction)(void(*)(void))_wrap_parse_structure, METH_VARARGS|METH_KEYWORDS, NULL},
76985 	 { "make_tree", (PyCFunction)(void(*)(void))_wrap_make_tree, METH_VARARGS|METH_KEYWORDS, NULL},
76986 	 { "tree_edit_distance", (PyCFunction)(void(*)(void))_wrap_tree_edit_distance, METH_VARARGS|METH_KEYWORDS, NULL},
76987 	 { "print_tree", (PyCFunction)(void(*)(void))_wrap_print_tree, METH_VARARGS|METH_KEYWORDS, NULL},
76988 	 { "free_tree", (PyCFunction)(void(*)(void))_wrap_free_tree, METH_VARARGS|METH_KEYWORDS, NULL},
76989 	 { "Make_swString", (PyCFunction)(void(*)(void))_wrap_Make_swString, METH_VARARGS|METH_KEYWORDS, NULL},
76990 	 { "string_edit_distance", (PyCFunction)(void(*)(void))_wrap_string_edit_distance, METH_VARARGS|METH_KEYWORDS, NULL},
76991 	 { "profile_edit_distance", (PyCFunction)(void(*)(void))_wrap_profile_edit_distance, METH_VARARGS|METH_KEYWORDS, NULL},
76992 	 { "Make_bp_profile_bppm", (PyCFunction)(void(*)(void))_wrap_Make_bp_profile_bppm, METH_VARARGS|METH_KEYWORDS, NULL},
76993 	 { "print_bppm", (PyCFunction)(void(*)(void))_wrap_print_bppm, METH_VARARGS|METH_KEYWORDS, NULL},
76994 	 { "free_profile", (PyCFunction)(void(*)(void))_wrap_free_profile, METH_VARARGS|METH_KEYWORDS, NULL},
76995 	 { "Make_bp_profile", (PyCFunction)(void(*)(void))_wrap_Make_bp_profile, METH_VARARGS|METH_KEYWORDS, NULL},
76996 	 { "deref_any", (PyCFunction)(void(*)(void))_wrap_deref_any, METH_VARARGS|METH_KEYWORDS, NULL},
76997 	 { "get_aligned_line", (PyCFunction)(void(*)(void))_wrap_get_aligned_line, METH_VARARGS|METH_KEYWORDS, NULL},
76998 	 { "file_SHAPE_read", (PyCFunction)(void(*)(void))_wrap_file_SHAPE_read, METH_VARARGS|METH_KEYWORDS, NULL},
76999 	 { "file_fasta_read", (PyCFunction)(void(*)(void))_wrap_file_fasta_read, METH_VARARGS|METH_KEYWORDS, "file_fasta_read(FILE * file, unsigned int options=0) -> int"},
77000 	 { "extract_record_rest_structure", (PyCFunction)(void(*)(void))_wrap_extract_record_rest_structure, METH_VARARGS|METH_KEYWORDS, NULL},
77001 	 { "read_record", (PyCFunction)(void(*)(void))_wrap_read_record, METH_VARARGS|METH_KEYWORDS, NULL},
77002 	 { "get_multi_input_line", (PyCFunction)(void(*)(void))_wrap_get_multi_input_line, METH_VARARGS|METH_KEYWORDS, NULL},
77003 	 { "file_msa_detect_format", (PyCFunction)(void(*)(void))_wrap_file_msa_detect_format, METH_VARARGS|METH_KEYWORDS, "file_msa_detect_format(std::string filename, unsigned int options=) -> unsigned int"},
77004 	 { "file_msa_write", (PyCFunction)(void(*)(void))_wrap_file_msa_write, METH_VARARGS|METH_KEYWORDS, "file_msa_write(std::string filename, StringVector names, StringVector alignment, std::string id=\"\", std::string structure=\"\", std::string source=\"\", unsigned int options=VRNA_FILE_FORMAT_MSA_STOCKHOLM|VRNA_FILE_FORMAT_MSA_APPEND) -> int"},
77005 	 { "file_msa_read", (PyCFunction)(void(*)(void))_wrap_file_msa_read, METH_VARARGS|METH_KEYWORDS, "file_msa_read(std::string filename, unsigned int options=) -> int"},
77006 	 { "file_msa_read_record", (PyCFunction)(void(*)(void))_wrap_file_msa_read_record, METH_VARARGS|METH_KEYWORDS, "file_msa_read_record(FILE * filehandle, unsigned int options=) -> int"},
77007 	 { "seq_encode", (PyCFunction)(void(*)(void))_wrap_seq_encode, METH_VARARGS|METH_KEYWORDS, "seq_encode(std::string sequence, md md_p=None) -> IntVector"},
77008 	 { "new_cmd", _wrap_new_cmd, METH_NOARGS, NULL},
77009 	 { "delete_cmd", _wrap_delete_cmd, METH_O, NULL},
77010 	 { "cmd_swigregister", cmd_swigregister, METH_O, NULL},
77011 	 { "cmd_swiginit", cmd_swiginit, METH_VARARGS, NULL},
77012 	 { "file_commands_read", (PyCFunction)(void(*)(void))_wrap_file_commands_read, METH_VARARGS|METH_KEYWORDS, "file_commands_read(std::string filename, unsigned int options=) -> cmd"},
77013 	 { "enumerate_necklaces", (PyCFunction)(void(*)(void))_wrap_enumerate_necklaces, METH_VARARGS|METH_KEYWORDS, NULL},
77014 	 { "rotational_symmetry", _wrap_rotational_symmetry, METH_VARARGS, NULL},
77015 	 { "duplexT_i_set", _wrap_duplexT_i_set, METH_VARARGS, NULL},
77016 	 { "duplexT_i_get", _wrap_duplexT_i_get, METH_O, NULL},
77017 	 { "duplexT_j_set", _wrap_duplexT_j_set, METH_VARARGS, NULL},
77018 	 { "duplexT_j_get", _wrap_duplexT_j_get, METH_O, NULL},
77019 	 { "duplexT_structure_set", _wrap_duplexT_structure_set, METH_VARARGS, NULL},
77020 	 { "duplexT_structure_get", _wrap_duplexT_structure_get, METH_O, NULL},
77021 	 { "duplexT_energy_set", _wrap_duplexT_energy_set, METH_VARARGS, NULL},
77022 	 { "duplexT_energy_get", _wrap_duplexT_energy_get, METH_O, NULL},
77023 	 { "delete_duplexT", _wrap_delete_duplexT, METH_O, NULL},
77024 	 { "duplexT_swigregister", duplexT_swigregister, METH_O, NULL},
77025 	 { "duplex_list_t_i_set", _wrap_duplex_list_t_i_set, METH_VARARGS, NULL},
77026 	 { "duplex_list_t_i_get", _wrap_duplex_list_t_i_get, METH_O, NULL},
77027 	 { "duplex_list_t_j_set", _wrap_duplex_list_t_j_set, METH_VARARGS, NULL},
77028 	 { "duplex_list_t_j_get", _wrap_duplex_list_t_j_get, METH_O, NULL},
77029 	 { "duplex_list_t_energy_set", _wrap_duplex_list_t_energy_set, METH_VARARGS, NULL},
77030 	 { "duplex_list_t_energy_get", _wrap_duplex_list_t_energy_get, METH_O, NULL},
77031 	 { "duplex_list_t_structure_set", _wrap_duplex_list_t_structure_set, METH_VARARGS, NULL},
77032 	 { "duplex_list_t_structure_get", _wrap_duplex_list_t_structure_get, METH_O, NULL},
77033 	 { "delete_duplex_list_t", _wrap_delete_duplex_list_t, METH_O, NULL},
77034 	 { "new_duplex_list_t", _wrap_new_duplex_list_t, METH_NOARGS, NULL},
77035 	 { "duplex_list_t_swigregister", duplex_list_t_swigregister, METH_O, NULL},
77036 	 { "duplex_list_t_swiginit", duplex_list_t_swiginit, METH_VARARGS, NULL},
77037 	 { "DuplexVector_iterator", _wrap_DuplexVector_iterator, METH_O, NULL},
77038 	 { "DuplexVector___nonzero__", _wrap_DuplexVector___nonzero__, METH_O, NULL},
77039 	 { "DuplexVector___bool__", _wrap_DuplexVector___bool__, METH_O, NULL},
77040 	 { "DuplexVector___len__", _wrap_DuplexVector___len__, METH_O, NULL},
77041 	 { "DuplexVector___getslice__", (PyCFunction)(void(*)(void))_wrap_DuplexVector___getslice__, METH_VARARGS|METH_KEYWORDS, NULL},
77042 	 { "DuplexVector___setslice__", _wrap_DuplexVector___setslice__, METH_VARARGS, NULL},
77043 	 { "DuplexVector___delslice__", (PyCFunction)(void(*)(void))_wrap_DuplexVector___delslice__, METH_VARARGS|METH_KEYWORDS, NULL},
77044 	 { "DuplexVector___delitem__", _wrap_DuplexVector___delitem__, METH_VARARGS, NULL},
77045 	 { "DuplexVector___getitem__", _wrap_DuplexVector___getitem__, METH_VARARGS, NULL},
77046 	 { "DuplexVector___setitem__", _wrap_DuplexVector___setitem__, METH_VARARGS, NULL},
77047 	 { "DuplexVector_pop", _wrap_DuplexVector_pop, METH_O, NULL},
77048 	 { "DuplexVector_append", (PyCFunction)(void(*)(void))_wrap_DuplexVector_append, METH_VARARGS|METH_KEYWORDS, NULL},
77049 	 { "DuplexVector_empty", _wrap_DuplexVector_empty, METH_O, NULL},
77050 	 { "DuplexVector_size", _wrap_DuplexVector_size, METH_O, NULL},
77051 	 { "DuplexVector_swap", (PyCFunction)(void(*)(void))_wrap_DuplexVector_swap, METH_VARARGS|METH_KEYWORDS, NULL},
77052 	 { "DuplexVector_begin", _wrap_DuplexVector_begin, METH_O, NULL},
77053 	 { "DuplexVector_end", _wrap_DuplexVector_end, METH_O, NULL},
77054 	 { "DuplexVector_rbegin", _wrap_DuplexVector_rbegin, METH_O, NULL},
77055 	 { "DuplexVector_rend", _wrap_DuplexVector_rend, METH_O, NULL},
77056 	 { "DuplexVector_clear", _wrap_DuplexVector_clear, METH_O, NULL},
77057 	 { "DuplexVector_get_allocator", _wrap_DuplexVector_get_allocator, METH_O, NULL},
77058 	 { "DuplexVector_pop_back", _wrap_DuplexVector_pop_back, METH_O, NULL},
77059 	 { "DuplexVector_erase", _wrap_DuplexVector_erase, METH_VARARGS, NULL},
77060 	 { "new_DuplexVector", _wrap_new_DuplexVector, METH_VARARGS, NULL},
77061 	 { "DuplexVector_push_back", (PyCFunction)(void(*)(void))_wrap_DuplexVector_push_back, METH_VARARGS|METH_KEYWORDS, NULL},
77062 	 { "DuplexVector_front", _wrap_DuplexVector_front, METH_O, NULL},
77063 	 { "DuplexVector_back", _wrap_DuplexVector_back, METH_O, NULL},
77064 	 { "DuplexVector_assign", (PyCFunction)(void(*)(void))_wrap_DuplexVector_assign, METH_VARARGS|METH_KEYWORDS, NULL},
77065 	 { "DuplexVector_resize", _wrap_DuplexVector_resize, METH_VARARGS, NULL},
77066 	 { "DuplexVector_insert", _wrap_DuplexVector_insert, METH_VARARGS, NULL},
77067 	 { "DuplexVector_reserve", (PyCFunction)(void(*)(void))_wrap_DuplexVector_reserve, METH_VARARGS|METH_KEYWORDS, NULL},
77068 	 { "DuplexVector_capacity", _wrap_DuplexVector_capacity, METH_O, NULL},
77069 	 { "delete_DuplexVector", _wrap_delete_DuplexVector, METH_O, NULL},
77070 	 { "DuplexVector_swigregister", DuplexVector_swigregister, METH_O, NULL},
77071 	 { "DuplexVector_swiginit", DuplexVector_swiginit, METH_VARARGS, NULL},
77072 	 { "duplexfold", (PyCFunction)(void(*)(void))_wrap_duplexfold, METH_VARARGS|METH_KEYWORDS, "duplexfold(std::string s1, std::string s2) -> duplexT"},
77073 	 { "duplex_subopt", (PyCFunction)(void(*)(void))_wrap_duplex_subopt, METH_VARARGS|METH_KEYWORDS, "duplex_subopt(std::string s1, std::string s2, int delta, int w) -> DuplexVector"},
77074 	 { "aliduplexfold", (PyCFunction)(void(*)(void))_wrap_aliduplexfold, METH_VARARGS|METH_KEYWORDS, "aliduplexfold(StringVector alignment1, StringVector alignment2) -> duplexT"},
77075 	 { "aliduplex_subopt", (PyCFunction)(void(*)(void))_wrap_aliduplex_subopt, METH_VARARGS|METH_KEYWORDS, "aliduplex_subopt(StringVector alignment1, StringVector alignment2, int delta, int w) -> DuplexVector"},
77076 	 { "move_pos_5_set", _wrap_move_pos_5_set, METH_VARARGS, NULL},
77077 	 { "move_pos_5_get", _wrap_move_pos_5_get, METH_O, NULL},
77078 	 { "move_pos_3_set", _wrap_move_pos_3_set, METH_VARARGS, NULL},
77079 	 { "move_pos_3_get", _wrap_move_pos_3_get, METH_O, NULL},
77080 	 { "new_move", (PyCFunction)(void(*)(void))_wrap_new_move, METH_VARARGS|METH_KEYWORDS, NULL},
77081 	 { "delete_move", _wrap_delete_move, METH_O, NULL},
77082 	 { "move_is_removal", _wrap_move_is_removal, METH_O, NULL},
77083 	 { "move_is_insertion", _wrap_move_is_insertion, METH_O, NULL},
77084 	 { "move_is_shift", _wrap_move_is_shift, METH_O, NULL},
77085 	 { "move_compare", (PyCFunction)(void(*)(void))_wrap_move_compare, METH_VARARGS|METH_KEYWORDS, NULL},
77086 	 { "move___str__", _wrap_move___str__, METH_O, NULL},
77087 	 { "move_swigregister", move_swigregister, METH_O, NULL},
77088 	 { "move_swiginit", move_swiginit, METH_VARARGS, NULL},
77089 	 { "path_type_set", _wrap_path_type_set, METH_VARARGS, NULL},
77090 	 { "path_type_get", _wrap_path_type_get, METH_O, NULL},
77091 	 { "path_en_set", _wrap_path_en_set, METH_VARARGS, NULL},
77092 	 { "path_en_get", _wrap_path_en_get, METH_O, NULL},
77093 	 { "path_s_set", _wrap_path_s_set, METH_VARARGS, NULL},
77094 	 { "path_s_get", _wrap_path_s_get, METH_O, NULL},
77095 	 { "path_move_set", _wrap_path_move_set, METH_VARARGS, NULL},
77096 	 { "path_move_get", _wrap_path_move_get, METH_O, NULL},
77097 	 { "new_path", (PyCFunction)(void(*)(void))_wrap_new_path, METH_VARARGS|METH_KEYWORDS, NULL},
77098 	 { "delete_path", _wrap_delete_path, METH_O, NULL},
77099 	 { "path___str__", _wrap_path___str__, METH_O, NULL},
77100 	 { "path_swigregister", path_swigregister, METH_O, NULL},
77101 	 { "path_swiginit", path_swiginit, METH_VARARGS, NULL},
77102 	 { "new_path_options", _wrap_new_path_options, METH_NOARGS, NULL},
77103 	 { "delete_path_options", _wrap_delete_path_options, METH_O, NULL},
77104 	 { "path_options_swigregister", path_options_swigregister, METH_O, NULL},
77105 	 { "path_options_swiginit", path_options_swiginit, METH_VARARGS, NULL},
77106 	 { "path_options_findpath", (PyCFunction)(void(*)(void))_wrap_path_options_findpath, METH_VARARGS|METH_KEYWORDS, NULL},
77107 	 { "get_path", (PyCFunction)(void(*)(void))_wrap_get_path, METH_VARARGS|METH_KEYWORDS, "get_path(std::string seq, std::string s1, std::string s2, int maxkeep) -> PathVector"},
77108 	 { "find_saddle", (PyCFunction)(void(*)(void))_wrap_find_saddle, METH_VARARGS|METH_KEYWORDS, NULL},
77109 	 { "free_path", (PyCFunction)(void(*)(void))_wrap_free_path, METH_VARARGS|METH_KEYWORDS, NULL},
77110 	 { "heat_capacity_result_temperature_set", _wrap_heat_capacity_result_temperature_set, METH_VARARGS, NULL},
77111 	 { "heat_capacity_result_temperature_get", _wrap_heat_capacity_result_temperature_get, METH_O, NULL},
77112 	 { "heat_capacity_result_heat_capacity_set", _wrap_heat_capacity_result_heat_capacity_set, METH_VARARGS, NULL},
77113 	 { "heat_capacity_result_heat_capacity_get", _wrap_heat_capacity_result_heat_capacity_get, METH_O, NULL},
77114 	 { "heat_capacity_result___str__", _wrap_heat_capacity_result___str__, METH_O, NULL},
77115 	 { "new_heat_capacity_result", _wrap_new_heat_capacity_result, METH_NOARGS, NULL},
77116 	 { "delete_heat_capacity_result", _wrap_delete_heat_capacity_result, METH_O, NULL},
77117 	 { "heat_capacity_result_swigregister", heat_capacity_result_swigregister, METH_O, NULL},
77118 	 { "heat_capacity_result_swiginit", heat_capacity_result_swiginit, METH_VARARGS, NULL},
77119 	 { "HeatCapacityVector_iterator", _wrap_HeatCapacityVector_iterator, METH_O, NULL},
77120 	 { "HeatCapacityVector___nonzero__", _wrap_HeatCapacityVector___nonzero__, METH_O, NULL},
77121 	 { "HeatCapacityVector___bool__", _wrap_HeatCapacityVector___bool__, METH_O, NULL},
77122 	 { "HeatCapacityVector___len__", _wrap_HeatCapacityVector___len__, METH_O, NULL},
77123 	 { "HeatCapacityVector___getslice__", (PyCFunction)(void(*)(void))_wrap_HeatCapacityVector___getslice__, METH_VARARGS|METH_KEYWORDS, NULL},
77124 	 { "HeatCapacityVector___setslice__", _wrap_HeatCapacityVector___setslice__, METH_VARARGS, NULL},
77125 	 { "HeatCapacityVector___delslice__", (PyCFunction)(void(*)(void))_wrap_HeatCapacityVector___delslice__, METH_VARARGS|METH_KEYWORDS, NULL},
77126 	 { "HeatCapacityVector___delitem__", _wrap_HeatCapacityVector___delitem__, METH_VARARGS, NULL},
77127 	 { "HeatCapacityVector___getitem__", _wrap_HeatCapacityVector___getitem__, METH_VARARGS, NULL},
77128 	 { "HeatCapacityVector___setitem__", _wrap_HeatCapacityVector___setitem__, METH_VARARGS, NULL},
77129 	 { "HeatCapacityVector_pop", _wrap_HeatCapacityVector_pop, METH_O, NULL},
77130 	 { "HeatCapacityVector_append", (PyCFunction)(void(*)(void))_wrap_HeatCapacityVector_append, METH_VARARGS|METH_KEYWORDS, NULL},
77131 	 { "HeatCapacityVector_empty", _wrap_HeatCapacityVector_empty, METH_O, NULL},
77132 	 { "HeatCapacityVector_size", _wrap_HeatCapacityVector_size, METH_O, NULL},
77133 	 { "HeatCapacityVector_swap", (PyCFunction)(void(*)(void))_wrap_HeatCapacityVector_swap, METH_VARARGS|METH_KEYWORDS, NULL},
77134 	 { "HeatCapacityVector_begin", _wrap_HeatCapacityVector_begin, METH_O, NULL},
77135 	 { "HeatCapacityVector_end", _wrap_HeatCapacityVector_end, METH_O, NULL},
77136 	 { "HeatCapacityVector_rbegin", _wrap_HeatCapacityVector_rbegin, METH_O, NULL},
77137 	 { "HeatCapacityVector_rend", _wrap_HeatCapacityVector_rend, METH_O, NULL},
77138 	 { "HeatCapacityVector_clear", _wrap_HeatCapacityVector_clear, METH_O, NULL},
77139 	 { "HeatCapacityVector_get_allocator", _wrap_HeatCapacityVector_get_allocator, METH_O, NULL},
77140 	 { "HeatCapacityVector_pop_back", _wrap_HeatCapacityVector_pop_back, METH_O, NULL},
77141 	 { "HeatCapacityVector_erase", _wrap_HeatCapacityVector_erase, METH_VARARGS, NULL},
77142 	 { "new_HeatCapacityVector", _wrap_new_HeatCapacityVector, METH_VARARGS, NULL},
77143 	 { "HeatCapacityVector_push_back", (PyCFunction)(void(*)(void))_wrap_HeatCapacityVector_push_back, METH_VARARGS|METH_KEYWORDS, NULL},
77144 	 { "HeatCapacityVector_front", _wrap_HeatCapacityVector_front, METH_O, NULL},
77145 	 { "HeatCapacityVector_back", _wrap_HeatCapacityVector_back, METH_O, NULL},
77146 	 { "HeatCapacityVector_assign", (PyCFunction)(void(*)(void))_wrap_HeatCapacityVector_assign, METH_VARARGS|METH_KEYWORDS, NULL},
77147 	 { "HeatCapacityVector_resize", _wrap_HeatCapacityVector_resize, METH_VARARGS, NULL},
77148 	 { "HeatCapacityVector_insert", _wrap_HeatCapacityVector_insert, METH_VARARGS, NULL},
77149 	 { "HeatCapacityVector_reserve", (PyCFunction)(void(*)(void))_wrap_HeatCapacityVector_reserve, METH_VARARGS|METH_KEYWORDS, NULL},
77150 	 { "HeatCapacityVector_capacity", _wrap_HeatCapacityVector_capacity, METH_O, NULL},
77151 	 { "delete_HeatCapacityVector", _wrap_delete_HeatCapacityVector, METH_O, NULL},
77152 	 { "HeatCapacityVector_swigregister", HeatCapacityVector_swigregister, METH_O, NULL},
77153 	 { "HeatCapacityVector_swiginit", HeatCapacityVector_swiginit, METH_VARARGS, NULL},
77154 	 { "heat_capacity", (PyCFunction)(void(*)(void))_wrap_heat_capacity, METH_VARARGS|METH_KEYWORDS, NULL},
77155 	 { "basepair_i_set", _wrap_basepair_i_set, METH_VARARGS, NULL},
77156 	 { "basepair_i_get", _wrap_basepair_i_get, METH_O, NULL},
77157 	 { "basepair_j_set", _wrap_basepair_j_set, METH_VARARGS, NULL},
77158 	 { "basepair_j_get", _wrap_basepair_j_get, METH_O, NULL},
77159 	 { "new_basepair", _wrap_new_basepair, METH_NOARGS, NULL},
77160 	 { "delete_basepair", _wrap_delete_basepair, METH_O, NULL},
77161 	 { "basepair_swigregister", basepair_swigregister, METH_O, NULL},
77162 	 { "basepair_swiginit", basepair_swiginit, METH_VARARGS, NULL},
77163 	 { "fc_add_pycallback", (PyCFunction)(void(*)(void))_wrap_fc_add_pycallback, METH_VARARGS|METH_KEYWORDS, NULL},
77164 	 { "fc_add_pydata", (PyCFunction)(void(*)(void))_wrap_fc_add_pydata, METH_VARARGS|METH_KEYWORDS, NULL},
77165 	 { "sc_add_f_pycallback", (PyCFunction)(void(*)(void))_wrap_sc_add_f_pycallback, METH_VARARGS|METH_KEYWORDS, NULL},
77166 	 { "sc_add_bt_pycallback", (PyCFunction)(void(*)(void))_wrap_sc_add_bt_pycallback, METH_VARARGS|METH_KEYWORDS, NULL},
77167 	 { "sc_add_exp_f_pycallback", (PyCFunction)(void(*)(void))_wrap_sc_add_exp_f_pycallback, METH_VARARGS|METH_KEYWORDS, NULL},
77168 	 { "sc_add_pydata", (PyCFunction)(void(*)(void))_wrap_sc_add_pydata, METH_VARARGS|METH_KEYWORDS, NULL},
77169 	 { "ud_set_pydata", (PyCFunction)(void(*)(void))_wrap_ud_set_pydata, METH_VARARGS|METH_KEYWORDS, NULL},
77170 	 { "ud_set_prod_cb", (PyCFunction)(void(*)(void))_wrap_ud_set_prod_cb, METH_VARARGS|METH_KEYWORDS, NULL},
77171 	 { "ud_set_exp_prod_cb", (PyCFunction)(void(*)(void))_wrap_ud_set_exp_prod_cb, METH_VARARGS|METH_KEYWORDS, NULL},
77172 	 { "ud_set_prob_cb", (PyCFunction)(void(*)(void))_wrap_ud_set_prob_cb, METH_VARARGS|METH_KEYWORDS, NULL},
77173 	 { "Lfold_cb", (PyCFunction)(void(*)(void))_wrap_Lfold_cb, METH_VARARGS|METH_KEYWORDS, "Lfold_cb(char * string, int window_size, PyObject * PyFunc, PyObject * data) -> float"},
77174 	 { "Lfoldz_cb", (PyCFunction)(void(*)(void))_wrap_Lfoldz_cb, METH_VARARGS|METH_KEYWORDS, "Lfoldz_cb(char * string, int window_size, double min_z, PyObject * PyFunc, PyObject * data) -> float"},
77175 	 { "aliLfold_cb", (PyCFunction)(void(*)(void))_wrap_aliLfold_cb, METH_VARARGS|METH_KEYWORDS, "aliLfold_cb(StringVector alignment, int window_size, PyObject * PyFunc, PyObject * data) -> float"},
77176 	 { "pfl_fold_cb", (PyCFunction)(void(*)(void))_wrap_pfl_fold_cb, METH_VARARGS|METH_KEYWORDS, "pfl_fold_cb(std::string sequence, int window_size, int max_bp_span, PyObject * PyFunc, PyObject * data=Py_None) -> int"},
77177 	 { "pfl_fold_up_cb", (PyCFunction)(void(*)(void))_wrap_pfl_fold_up_cb, METH_VARARGS|METH_KEYWORDS, "pfl_fold_up_cb(std::string sequence, int ulength, int window_size, int max_bp_span, PyObject * PyFunc, PyObject * data=Py_None) -> int"},
77178 	 { "fold_compound_params_reset", (PyCFunction)(void(*)(void))_wrap_fold_compound_params_reset, METH_VARARGS|METH_KEYWORDS, NULL},
77179 	 { "fold_compound_params_subst", (PyCFunction)(void(*)(void))_wrap_fold_compound_params_subst, METH_VARARGS|METH_KEYWORDS, NULL},
77180 	 { "fold_compound_exp_params_rescale", _wrap_fold_compound_exp_params_rescale, METH_VARARGS, NULL},
77181 	 { "fold_compound_exp_params_reset", (PyCFunction)(void(*)(void))_wrap_fold_compound_exp_params_reset, METH_VARARGS|METH_KEYWORDS, NULL},
77182 	 { "fold_compound_exp_params_subst", (PyCFunction)(void(*)(void))_wrap_fold_compound_exp_params_subst, METH_VARARGS|METH_KEYWORDS, NULL},
77183 	 { "fold_compound_plist_from_probs", (PyCFunction)(void(*)(void))_wrap_fold_compound_plist_from_probs, METH_VARARGS|METH_KEYWORDS, "fold_compound_plist_from_probs(fold_compound self, double cutoff) -> ElemProbVector"},
77184 	 { "fold_compound_constraints_add", (PyCFunction)(void(*)(void))_wrap_fold_compound_constraints_add, METH_VARARGS|METH_KEYWORDS, "fold_compound_constraints_add(fold_compound self, char const * constraint, unsigned int options=)"},
77185 	 { "fold_compound_hc_init", _wrap_fold_compound_hc_init, METH_O, NULL},
77186 	 { "fold_compound_hc_add_up", (PyCFunction)(void(*)(void))_wrap_fold_compound_hc_add_up, METH_VARARGS|METH_KEYWORDS, "fold_compound_hc_add_up(fold_compound self, int i, unsigned int option=VRNA_CONSTRAINT_CONTEXT_ALL_LOOPS)"},
77187 	 { "fold_compound_hc_add_bp_nonspecific", (PyCFunction)(void(*)(void))_wrap_fold_compound_hc_add_bp_nonspecific, METH_VARARGS|METH_KEYWORDS, "fold_compound_hc_add_bp_nonspecific(fold_compound self, int i, int d, unsigned int option=VRNA_CONSTRAINT_CONTEXT_ALL_LOOPS)"},
77188 	 { "fold_compound_hc_add_bp", (PyCFunction)(void(*)(void))_wrap_fold_compound_hc_add_bp, METH_VARARGS|METH_KEYWORDS, "fold_compound_hc_add_bp(fold_compound self, int i, int j, unsigned int option=VRNA_CONSTRAINT_CONTEXT_ALL_LOOPS)"},
77189 	 { "fold_compound_hc_add_from_db", (PyCFunction)(void(*)(void))_wrap_fold_compound_hc_add_from_db, METH_VARARGS|METH_KEYWORDS, "fold_compound_hc_add_from_db(fold_compound self, char const * constraint, unsigned int options=) -> int"},
77190 	 { "fold_compound_sc_remove", _wrap_fold_compound_sc_remove, METH_O, NULL},
77191 	 { "fold_compound_sc_init", _wrap_fold_compound_sc_init, METH_O, NULL},
77192 	 { "fold_compound_sc_add_up", _wrap_fold_compound_sc_add_up, METH_VARARGS, NULL},
77193 	 { "fold_compound_sc_add_bp", _wrap_fold_compound_sc_add_bp, METH_VARARGS, NULL},
77194 	 { "fold_compound_sc_set_bp", (PyCFunction)(void(*)(void))_wrap_fold_compound_sc_set_bp, METH_VARARGS|METH_KEYWORDS, "fold_compound_sc_set_bp(fold_compound self, DoubleDoubleVector constraints, unsigned int options=) -> int"},
77195 	 { "fold_compound_sc_set_up", (PyCFunction)(void(*)(void))_wrap_fold_compound_sc_set_up, METH_VARARGS|METH_KEYWORDS, "fold_compound_sc_set_up(fold_compound self, DoubleVector constraints, unsigned int options=) -> int"},
77196 	 { "fold_compound_sc_set_stack", _wrap_fold_compound_sc_set_stack, METH_VARARGS, "\n"
77197 		"fold_compound_sc_set_stack(fold_compound self, DoubleVector constraints, unsigned int options=) -> int\n"
77198 		"fold_compound_sc_set_stack(fold_compound self, DoubleDoubleVector constraints, unsigned int options=) -> int\n"
77199 		""},
77200 	 { "fold_compound_sc_add_stack", _wrap_fold_compound_sc_add_stack, METH_VARARGS, "\n"
77201 		"fold_compound_sc_add_stack(fold_compound self, int i, double energy, unsigned int options=) -> int\n"
77202 		"fold_compound_sc_add_stack(fold_compound self, int i, DoubleVector energies, unsigned int options=) -> int\n"
77203 		""},
77204 	 { "fold_compound_sc_add_SHAPE_deigan", (PyCFunction)(void(*)(void))_wrap_fold_compound_sc_add_SHAPE_deigan, METH_VARARGS|METH_KEYWORDS, "fold_compound_sc_add_SHAPE_deigan(fold_compound self, DoubleVector reactivities, double m, double b, unsigned int options=) -> int"},
77205 	 { "fold_compound_sc_add_SHAPE_deigan_ali", (PyCFunction)(void(*)(void))_wrap_fold_compound_sc_add_SHAPE_deigan_ali, METH_VARARGS|METH_KEYWORDS, "fold_compound_sc_add_SHAPE_deigan_ali(fold_compound self, StringVector shape_files, IntVector shape_file_association, double m, double b, unsigned int options=) -> int"},
77206 	 { "fold_compound_sc_add_SHAPE_zarringhalam", (PyCFunction)(void(*)(void))_wrap_fold_compound_sc_add_SHAPE_zarringhalam, METH_VARARGS|METH_KEYWORDS, "fold_compound_sc_add_SHAPE_zarringhalam(fold_compound self, DoubleVector reactivities, double b, double default_value, char const * shape_conversion, unsigned int options=) -> int"},
77207 	 { "fold_compound_sc_add_hi_motif", (PyCFunction)(void(*)(void))_wrap_fold_compound_sc_add_hi_motif, METH_VARARGS|METH_KEYWORDS, "fold_compound_sc_add_hi_motif(fold_compound self, char const * seq, char const * structure, FLT_OR_DBL energy, unsigned int options=) -> int"},
77208 	 { "fold_compound_eval_structure", (PyCFunction)(void(*)(void))_wrap_fold_compound_eval_structure, METH_VARARGS|METH_KEYWORDS, NULL},
77209 	 { "fold_compound_eval_structure_pt", (PyCFunction)(void(*)(void))_wrap_fold_compound_eval_structure_pt, METH_VARARGS|METH_KEYWORDS, NULL},
77210 	 { "fold_compound_eval_structure_verbose", (PyCFunction)(void(*)(void))_wrap_fold_compound_eval_structure_verbose, METH_VARARGS|METH_KEYWORDS, NULL},
77211 	 { "fold_compound_eval_structure_pt_verbose", (PyCFunction)(void(*)(void))_wrap_fold_compound_eval_structure_pt_verbose, METH_VARARGS|METH_KEYWORDS, NULL},
77212 	 { "fold_compound_eval_covar_structure", (PyCFunction)(void(*)(void))_wrap_fold_compound_eval_covar_structure, METH_VARARGS|METH_KEYWORDS, NULL},
77213 	 { "fold_compound_eval_loop_pt", (PyCFunction)(void(*)(void))_wrap_fold_compound_eval_loop_pt, METH_VARARGS|METH_KEYWORDS, NULL},
77214 	 { "fold_compound_eval_move", (PyCFunction)(void(*)(void))_wrap_fold_compound_eval_move, METH_VARARGS|METH_KEYWORDS, NULL},
77215 	 { "fold_compound_eval_move_pt", (PyCFunction)(void(*)(void))_wrap_fold_compound_eval_move_pt, METH_VARARGS|METH_KEYWORDS, NULL},
77216 	 { "fold_compound_E_ext_loop", (PyCFunction)(void(*)(void))_wrap_fold_compound_E_ext_loop, METH_VARARGS|METH_KEYWORDS, "fold_compound_E_ext_loop(fold_compound self, int i, int j) -> int"},
77217 	 { "fold_compound_E_hp_loop", (PyCFunction)(void(*)(void))_wrap_fold_compound_E_hp_loop, METH_VARARGS|METH_KEYWORDS, NULL},
77218 	 { "fold_compound_E_ext_hp_loop", (PyCFunction)(void(*)(void))_wrap_fold_compound_E_ext_hp_loop, METH_VARARGS|METH_KEYWORDS, NULL},
77219 	 { "fold_compound_eval_ext_hp_loop", (PyCFunction)(void(*)(void))_wrap_fold_compound_eval_ext_hp_loop, METH_VARARGS|METH_KEYWORDS, NULL},
77220 	 { "fold_compound_eval_hp_loop", (PyCFunction)(void(*)(void))_wrap_fold_compound_eval_hp_loop, METH_VARARGS|METH_KEYWORDS, "fold_compound_eval_hp_loop(fold_compound self, int i, int j) -> int"},
77221 	 { "fold_compound_exp_E_hp_loop", (PyCFunction)(void(*)(void))_wrap_fold_compound_exp_E_hp_loop, METH_VARARGS|METH_KEYWORDS, NULL},
77222 	 { "fold_compound_E_int_loop", (PyCFunction)(void(*)(void))_wrap_fold_compound_E_int_loop, METH_VARARGS|METH_KEYWORDS, NULL},
77223 	 { "fold_compound_eval_int_loop", (PyCFunction)(void(*)(void))_wrap_fold_compound_eval_int_loop, METH_VARARGS|METH_KEYWORDS, "fold_compound_eval_int_loop(fold_compound self, int i, int j, int k, int l) -> int"},
77224 	 { "fold_compound_E_ext_int_loop", (PyCFunction)(void(*)(void))_wrap_fold_compound_E_ext_int_loop, METH_VARARGS|METH_KEYWORDS, NULL},
77225 	 { "fold_compound_E_stack", (PyCFunction)(void(*)(void))_wrap_fold_compound_E_stack, METH_VARARGS|METH_KEYWORDS, NULL},
77226 	 { "fold_compound_exp_E_int_loop", (PyCFunction)(void(*)(void))_wrap_fold_compound_exp_E_int_loop, METH_VARARGS|METH_KEYWORDS, NULL},
77227 	 { "fold_compound_exp_E_interior_loop", (PyCFunction)(void(*)(void))_wrap_fold_compound_exp_E_interior_loop, METH_VARARGS|METH_KEYWORDS, NULL},
77228 	 { "fold_compound_maxmimum_matching", _wrap_fold_compound_maxmimum_matching, METH_O, NULL},
77229 	 { "fold_compound_mfe", _wrap_fold_compound_mfe, METH_O, "fold_compound_mfe(fold_compound self) -> char *"},
77230 	 { "fold_compound_mfe_dimer", _wrap_fold_compound_mfe_dimer, METH_O, "fold_compound_mfe_dimer(fold_compound self) -> char *"},
77231 	 { "fold_compound_backtrack", _wrap_fold_compound_backtrack, METH_VARARGS, "\n"
77232 		"fold_compound_backtrack(fold_compound self, unsigned int length) -> char\n"
77233 		"fold_compound_backtrack(fold_compound self) -> char *\n"
77234 		""},
77235 	 { "fold_compound_mfe_window", (PyCFunction)(void(*)(void))_wrap_fold_compound_mfe_window, METH_VARARGS|METH_KEYWORDS, "fold_compound_mfe_window(fold_compound self, FILE * nullfile=None) -> float"},
77236 	 { "fold_compound_mfe_window_zscore", (PyCFunction)(void(*)(void))_wrap_fold_compound_mfe_window_zscore, METH_VARARGS|METH_KEYWORDS, NULL},
77237 	 { "fold_compound_zsc_filter_init", (PyCFunction)(void(*)(void))_wrap_fold_compound_zsc_filter_init, METH_VARARGS|METH_KEYWORDS, NULL},
77238 	 { "fold_compound_zsc_filter_update", (PyCFunction)(void(*)(void))_wrap_fold_compound_zsc_filter_update, METH_VARARGS|METH_KEYWORDS, NULL},
77239 	 { "fold_compound_zsc_filter_free", _wrap_fold_compound_zsc_filter_free, METH_O, NULL},
77240 	 { "fold_compound_zsc_filter_on", _wrap_fold_compound_zsc_filter_on, METH_O, NULL},
77241 	 { "fold_compound_zsc_filter_threshold", _wrap_fold_compound_zsc_filter_threshold, METH_O, NULL},
77242 	 { "fold_compound_zsc_compute", (PyCFunction)(void(*)(void))_wrap_fold_compound_zsc_compute, METH_VARARGS|METH_KEYWORDS, NULL},
77243 	 { "fold_compound_pf", _wrap_fold_compound_pf, METH_O, NULL},
77244 	 { "fold_compound_mean_bp_distance", _wrap_fold_compound_mean_bp_distance, METH_O, NULL},
77245 	 { "fold_compound_ensemble_defect", _wrap_fold_compound_ensemble_defect, METH_VARARGS, NULL},
77246 	 { "fold_compound_positional_entropy", _wrap_fold_compound_positional_entropy, METH_O, NULL},
77247 	 { "fold_compound_pr_structure", (PyCFunction)(void(*)(void))_wrap_fold_compound_pr_structure, METH_VARARGS|METH_KEYWORDS, NULL},
77248 	 { "fold_compound_pr_energy", (PyCFunction)(void(*)(void))_wrap_fold_compound_pr_energy, METH_VARARGS|METH_KEYWORDS, NULL},
77249 	 { "fold_compound_pf_dimer", _wrap_fold_compound_pf_dimer, METH_O, NULL},
77250 	 { "fold_compound_bpp", _wrap_fold_compound_bpp, METH_O, NULL},
77251 	 { "fold_compound_centroid", _wrap_fold_compound_centroid, METH_O, "fold_compound_centroid(fold_compound self) -> char *"},
77252 	 { "fold_compound_MEA", _wrap_fold_compound_MEA, METH_VARARGS, "\n"
77253 		"fold_compound_MEA(fold_compound self) -> char\n"
77254 		"fold_compound_MEA(fold_compound self, double gamma) -> char *\n"
77255 		""},
77256 	 { "fold_compound_subopt", (PyCFunction)(void(*)(void))_wrap_fold_compound_subopt, METH_VARARGS|METH_KEYWORDS, "fold_compound_subopt(fold_compound self, int delta, int sorted=1, FILE * nullfile=None) -> SuboptVector"},
77257 	 { "fold_compound_subopt_zuker", _wrap_fold_compound_subopt_zuker, METH_O, NULL},
77258 	 { "fold_compound_sequence_add", (PyCFunction)(void(*)(void))_wrap_fold_compound_sequence_add, METH_VARARGS|METH_KEYWORDS, NULL},
77259 	 { "fold_compound_sequence_remove", (PyCFunction)(void(*)(void))_wrap_fold_compound_sequence_remove, METH_VARARGS|METH_KEYWORDS, NULL},
77260 	 { "fold_compound_sequence_remove_all", _wrap_fold_compound_sequence_remove_all, METH_O, NULL},
77261 	 { "fold_compound_sequence_prepare", _wrap_fold_compound_sequence_prepare, METH_O, NULL},
77262 	 { "fold_compound_ud_add_motif", (PyCFunction)(void(*)(void))_wrap_fold_compound_ud_add_motif, METH_VARARGS|METH_KEYWORDS, "fold_compound_ud_add_motif(fold_compound self, std::string motif, double motif_en, std::string name=\"\", unsigned int options=)"},
77263 	 { "fold_compound_ud_remove", _wrap_fold_compound_ud_remove, METH_O, NULL},
77264 	 { "fold_compound_commands_apply", (PyCFunction)(void(*)(void))_wrap_fold_compound_commands_apply, METH_VARARGS|METH_KEYWORDS, "fold_compound_commands_apply(fold_compound self, cmd commands, unsigned int options=) -> int"},
77265 	 { "fold_compound_file_commands_apply", (PyCFunction)(void(*)(void))_wrap_fold_compound_file_commands_apply, METH_VARARGS|METH_KEYWORDS, "fold_compound_file_commands_apply(fold_compound self, std::string filename, unsigned int options=) -> int"},
77266 	 { "fold_compound_rotational_symmetry_db", (PyCFunction)(void(*)(void))_wrap_fold_compound_rotational_symmetry_db, METH_VARARGS|METH_KEYWORDS, NULL},
77267 	 { "fold_compound_neighbors", (PyCFunction)(void(*)(void))_wrap_fold_compound_neighbors, METH_VARARGS|METH_KEYWORDS, "fold_compound_neighbors(fold_compound self, IntVector pt, unsigned int options=(4|8)) -> MoveVector"},
77268 	 { "fold_compound_path", (PyCFunction)(void(*)(void))_wrap_fold_compound_path, METH_VARARGS|METH_KEYWORDS, "fold_compound_path(fold_compound self, IntVector pt, unsigned int steps, unsigned int options=) -> MoveVector"},
77269 	 { "fold_compound_path_gradient", (PyCFunction)(void(*)(void))_wrap_fold_compound_path_gradient, METH_VARARGS|METH_KEYWORDS, "fold_compound_path_gradient(fold_compound self, IntVector pt, unsigned int options=) -> MoveVector"},
77270 	 { "fold_compound_path_random", (PyCFunction)(void(*)(void))_wrap_fold_compound_path_random, METH_VARARGS|METH_KEYWORDS, "fold_compound_path_random(fold_compound self, IntVector pt, unsigned int steps, unsigned int options=) -> MoveVector"},
77271 	 { "fold_compound_path_findpath_saddle", (PyCFunction)(void(*)(void))_wrap_fold_compound_path_findpath_saddle, METH_VARARGS|METH_KEYWORDS, "fold_compound_path_findpath_saddle(fold_compound self, std::string s1, std::string s2, int width=1, int maxE=INT_MAX) -> PyObject *"},
77272 	 { "fold_compound_path_findpath", (PyCFunction)(void(*)(void))_wrap_fold_compound_path_findpath, METH_VARARGS|METH_KEYWORDS, "fold_compound_path_findpath(fold_compound self, std::string s1, std::string s2, int width=1, int maxE=INT_MAX-1) -> PathVector"},
77273 	 { "fold_compound_path_direct", (PyCFunction)(void(*)(void))_wrap_fold_compound_path_direct, METH_VARARGS|METH_KEYWORDS, "fold_compound_path_direct(fold_compound self, std::string s1, std::string s2, int maxE=INT_MAX-1, path_options options=None) -> PathVector"},
77274 	 { "fold_compound_heat_capacity", (PyCFunction)(void(*)(void))_wrap_fold_compound_heat_capacity, METH_VARARGS|METH_KEYWORDS, "fold_compound_heat_capacity(fold_compound self, float T_min=0., float T_max=100., float T_increment=1., unsigned int mpoints=2) -> HeatCapacityVector"},
77275 	 { "fold_compound_add_auxdata", (PyCFunction)(void(*)(void))_wrap_fold_compound_add_auxdata, METH_VARARGS|METH_KEYWORDS, "fold_compound_add_auxdata(fold_compound self, PyObject * data, PyObject * PyFuncOrNone=Py_None) -> PyObject *"},
77276 	 { "fold_compound_add_callback", (PyCFunction)(void(*)(void))_wrap_fold_compound_add_callback, METH_VARARGS|METH_KEYWORDS, "fold_compound_add_callback(fold_compound self, PyObject * PyFunc) -> PyObject *"},
77277 	 { "fold_compound_sc_add_data", (PyCFunction)(void(*)(void))_wrap_fold_compound_sc_add_data, METH_VARARGS|METH_KEYWORDS, "fold_compound_sc_add_data(fold_compound self, PyObject * data, PyObject * callback=Py_None) -> int"},
77278 	 { "fold_compound_sc_add_f", (PyCFunction)(void(*)(void))_wrap_fold_compound_sc_add_f, METH_VARARGS|METH_KEYWORDS, "fold_compound_sc_add_f(fold_compound self, PyObject * callback) -> int"},
77279 	 { "fold_compound_sc_add_bt", (PyCFunction)(void(*)(void))_wrap_fold_compound_sc_add_bt, METH_VARARGS|METH_KEYWORDS, "fold_compound_sc_add_bt(fold_compound self, PyObject * PyFunc) -> int"},
77280 	 { "fold_compound_sc_add_exp_f", (PyCFunction)(void(*)(void))_wrap_fold_compound_sc_add_exp_f, METH_VARARGS|METH_KEYWORDS, "fold_compound_sc_add_exp_f(fold_compound self, PyObject * PyFunc) -> int"},
77281 	 { "fold_compound_ud_set_data", (PyCFunction)(void(*)(void))_wrap_fold_compound_ud_set_data, METH_VARARGS|METH_KEYWORDS, "fold_compound_ud_set_data(fold_compound self, PyObject * data, PyObject * PyFuncOrNone=Py_None) -> PyObject *"},
77282 	 { "fold_compound_ud_set_prod_rule_cb", (PyCFunction)(void(*)(void))_wrap_fold_compound_ud_set_prod_rule_cb, METH_VARARGS|METH_KEYWORDS, "fold_compound_ud_set_prod_rule_cb(fold_compound self, PyObject * prod_cb, PyObject * eval_cb) -> PyObject *"},
77283 	 { "fold_compound_ud_set_exp_prod_rule_cb", (PyCFunction)(void(*)(void))_wrap_fold_compound_ud_set_exp_prod_rule_cb, METH_VARARGS|METH_KEYWORDS, "fold_compound_ud_set_exp_prod_rule_cb(fold_compound self, PyObject * prod_cb, PyObject * eval_cb) -> PyObject *"},
77284 	 { "fold_compound_ud_set_prob_cb", (PyCFunction)(void(*)(void))_wrap_fold_compound_ud_set_prob_cb, METH_VARARGS|METH_KEYWORDS, "fold_compound_ud_set_prob_cb(fold_compound self, PyObject * setter, PyObject * getter) -> PyObject *"},
77285 	 { "fold_compound_subopt_cb", (PyCFunction)(void(*)(void))_wrap_fold_compound_subopt_cb, METH_VARARGS|METH_KEYWORDS, "fold_compound_subopt_cb(fold_compound self, int delta, PyObject * PyFunc, PyObject * data=Py_None) -> PyObject *"},
77286 	 { "fold_compound_pbacktrack", _wrap_fold_compound_pbacktrack, METH_VARARGS, "\n"
77287 		"fold_compound_pbacktrack(fold_compound self) -> char\n"
77288 		"fold_compound_pbacktrack(fold_compound self, unsigned int num_samples, unsigned int options=) -> StringVector\n"
77289 		"fold_compound_pbacktrack(fold_compound self, unsigned int num_samples, pbacktrack_mem nr_memory, unsigned int options=) -> StringVector\n"
77290 		"fold_compound_pbacktrack(self, num_samples, PyFunc, data=Py_None, options=0) -> unsigned int\n"
77291 		"\n"
77292 		"Parameters\n"
77293 		"----------\n"
77294 		"num_samples: unsigned int\n"
77295 		"PyFunc: PyObject *\n"
77296 		"data: PyObject *\n"
77297 		"options: unsigned int\n"
77298 		"\n"
77299 		"fold_compound_pbacktrack(self, num_samples, PyFunc, data, nr_memory, options=0) -> unsigned int\n"
77300 		"\n"
77301 		"Parameters\n"
77302 		"----------\n"
77303 		"num_samples: unsigned int\n"
77304 		"PyFunc: PyObject *\n"
77305 		"data: PyObject *\n"
77306 		"nr_memory: vrna_pbacktrack_mem_t *\n"
77307 		"options: unsigned int\n"
77308 		"\n"
77309 		""},
77310 	 { "fold_compound_pbacktrack5", _wrap_fold_compound_pbacktrack5, METH_VARARGS, "\n"
77311 		"fold_compound_pbacktrack5(fold_compound self, unsigned int length) -> char\n"
77312 		"fold_compound_pbacktrack5(fold_compound self, unsigned int num_samples, unsigned int length, unsigned int options=) -> StringVector\n"
77313 		"fold_compound_pbacktrack5(fold_compound self, unsigned int num_samples, unsigned int length, pbacktrack_mem nr_memory, unsigned int options=) -> StringVector\n"
77314 		"fold_compound_pbacktrack5(fold_compound self, unsigned int num_samples, unsigned int length, PyObject * PyFunc, PyObject * data=Py_None, unsigned int options=0) -> unsigned int\n"
77315 		"fold_compound_pbacktrack5(fold_compound self, unsigned int num_samples, unsigned int length, PyObject * PyFunc, PyObject * data, pbacktrack_mem nr_memory, unsigned int options=0) -> unsigned int\n"
77316 		""},
77317 	 { "fold_compound_mfe_window_cb", (PyCFunction)(void(*)(void))_wrap_fold_compound_mfe_window_cb, METH_VARARGS|METH_KEYWORDS, "fold_compound_mfe_window_cb(fold_compound self, PyObject * PyFunc, PyObject * data=Py_None) -> float"},
77318 	 { "fold_compound_mfe_window_score_cb", (PyCFunction)(void(*)(void))_wrap_fold_compound_mfe_window_score_cb, METH_VARARGS|METH_KEYWORDS, "fold_compound_mfe_window_score_cb(fold_compound self, double min_z, PyObject * PyFunc, PyObject * data=Py_None) -> float"},
77319 	 { "fold_compound_probs_window", (PyCFunction)(void(*)(void))_wrap_fold_compound_probs_window, METH_VARARGS|METH_KEYWORDS, "fold_compound_probs_window(fold_compound self, int ulength, unsigned int options, PyObject * PyFunc, PyObject * data=Py_None) -> int"},
77320 	 { "fold_compound_heat_capacity_cb", (PyCFunction)(void(*)(void))_wrap_fold_compound_heat_capacity_cb, METH_VARARGS|METH_KEYWORDS, "fold_compound_heat_capacity_cb(fold_compound self, float T_min, float T_max, float T_increment, unsigned int mpoints, PyObject * PyFunc, PyObject * data=Py_None) -> PyObject *"},
77321 	 { "fold_compound_type_get", _wrap_fold_compound_type_get, METH_O, NULL},
77322 	 { "fold_compound_length_get", _wrap_fold_compound_length_get, METH_O, NULL},
77323 	 { "fold_compound_strands_get", _wrap_fold_compound_strands_get, METH_O, NULL},
77324 	 { "fold_compound_params_get", _wrap_fold_compound_params_get, METH_O, NULL},
77325 	 { "fold_compound_exp_params_get", _wrap_fold_compound_exp_params_get, METH_O, NULL},
77326 	 { "new_fold_compound", _wrap_new_fold_compound, METH_VARARGS, NULL},
77327 	 { "delete_fold_compound", _wrap_delete_fold_compound, METH_O, NULL},
77328 	 { "fold_compound___str__", _wrap_fold_compound___str__, METH_O, NULL},
77329 	 { "fold_compound_swigregister", fold_compound_swigregister, METH_O, NULL},
77330 	 { "fold_compound_swiginit", fold_compound_swiginit, METH_VARARGS, NULL},
77331 	 { NULL, NULL, 0, NULL }
77332 };
77333 
77334 static PyMethodDef SwigMethods_proxydocs[] = {
77335 	 { NULL, NULL, 0, NULL }
77336 };
77337 
77338 
77339 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
77340 
_p_a_NBPAIRS_1__doubleArrayTo_p_a_NBPAIRS_1__double(void * x,int * SWIGUNUSEDPARM (newmemory))77341 static void *_p_a_NBPAIRS_1__doubleArrayTo_p_a_NBPAIRS_1__double(void *x, int *SWIGUNUSEDPARM(newmemory)) {
77342     return (void *)((double (*)[NBPAIRS+1])  ((doubleArray (*)[NBPAIRS+1]) x));
77343 }
_p_doubleArrayTo_p_double(void * x,int * SWIGUNUSEDPARM (newmemory))77344 static void *_p_doubleArrayTo_p_double(void *x, int *SWIGUNUSEDPARM(newmemory)) {
77345     return (void *)((double *)  ((doubleArray *) x));
77346 }
_p_a_5__a_5__doubleArrayTo_p_a_5__a_5__double(void * x,int * SWIGUNUSEDPARM (newmemory))77347 static void *_p_a_5__a_5__doubleArrayTo_p_a_5__a_5__double(void *x, int *SWIGUNUSEDPARM(newmemory)) {
77348     return (void *)((double (*)[5][5])  ((doubleArray (*)[5][5]) x));
77349 }
_p_a_5__doubleArrayTo_p_a_5__double(void * x,int * SWIGUNUSEDPARM (newmemory))77350 static void *_p_a_5__doubleArrayTo_p_a_5__double(void *x, int *SWIGUNUSEDPARM(newmemory)) {
77351     return (void *)((double (*)[5])  ((doubleArray (*)[5]) x));
77352 }
_p_a_NBPAIRS_1__a_5__a_5__doubleArrayTo_p_a_NBPAIRS_1__a_5__a_5__double(void * x,int * SWIGUNUSEDPARM (newmemory))77353 static void *_p_a_NBPAIRS_1__a_5__a_5__doubleArrayTo_p_a_NBPAIRS_1__a_5__a_5__double(void *x, int *SWIGUNUSEDPARM(newmemory)) {
77354     return (void *)((double (*)[NBPAIRS+1][5][5])  ((doubleArray (*)[NBPAIRS+1][5][5]) x));
77355 }
_p_a_NBPAIRS_1__a_5__a_5__a_5__doubleArrayTo_p_a_NBPAIRS_1__a_5__a_5__a_5__double(void * x,int * SWIGUNUSEDPARM (newmemory))77356 static void *_p_a_NBPAIRS_1__a_5__a_5__a_5__doubleArrayTo_p_a_NBPAIRS_1__a_5__a_5__a_5__double(void *x, int *SWIGUNUSEDPARM(newmemory)) {
77357     return (void *)((double (*)[NBPAIRS+1][5][5][5])  ((doubleArray (*)[NBPAIRS+1][5][5][5]) x));
77358 }
_p_a_MAXLOOP_1__doubleArrayTo_p_a_MAXLOOP_1__double(void * x,int * SWIGUNUSEDPARM (newmemory))77359 static void *_p_a_MAXLOOP_1__doubleArrayTo_p_a_MAXLOOP_1__double(void *x, int *SWIGUNUSEDPARM(newmemory)) {
77360     return (void *)((double (*)[MAXLOOP+1])  ((doubleArray (*)[MAXLOOP+1]) x));
77361 }
_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__intArrayTo_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__int(void * x,int * SWIGUNUSEDPARM (newmemory))77362 static void *_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__intArrayTo_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__int(void *x, int *SWIGUNUSEDPARM(newmemory)) {
77363     return (void *)((int (*)[NBPAIRS+1][5][5][5][5])  ((intArray (*)[NBPAIRS+1][5][5][5][5]) x));
77364 }
_p_a_NBPAIRS_1__a_5__a_5__a_5__intArrayTo_p_a_NBPAIRS_1__a_5__a_5__a_5__int(void * x,int * SWIGUNUSEDPARM (newmemory))77365 static void *_p_a_NBPAIRS_1__a_5__a_5__a_5__intArrayTo_p_a_NBPAIRS_1__a_5__a_5__a_5__int(void *x, int *SWIGUNUSEDPARM(newmemory)) {
77366     return (void *)((int (*)[NBPAIRS+1][5][5][5])  ((intArray (*)[NBPAIRS+1][5][5][5]) x));
77367 }
_p_a_NBPAIRS_1__a_5__a_5__intArrayTo_p_a_NBPAIRS_1__a_5__a_5__int(void * x,int * SWIGUNUSEDPARM (newmemory))77368 static void *_p_a_NBPAIRS_1__a_5__a_5__intArrayTo_p_a_NBPAIRS_1__a_5__a_5__int(void *x, int *SWIGUNUSEDPARM(newmemory)) {
77369     return (void *)((int (*)[NBPAIRS+1][5][5])  ((intArray (*)[NBPAIRS+1][5][5]) x));
77370 }
_p_a_5__a_5__intArrayTo_p_a_5__a_5__int(void * x,int * SWIGUNUSEDPARM (newmemory))77371 static void *_p_a_5__a_5__intArrayTo_p_a_5__a_5__int(void *x, int *SWIGUNUSEDPARM(newmemory)) {
77372     return (void *)((int (*)[5][5])  ((intArray (*)[5][5]) x));
77373 }
_p_a_7_1__a_5__a_5__intArrayTo_p_a_7_1__a_5__a_5__int(void * x,int * SWIGUNUSEDPARM (newmemory))77374 static void *_p_a_7_1__a_5__a_5__intArrayTo_p_a_7_1__a_5__a_5__int(void *x, int *SWIGUNUSEDPARM(newmemory)) {
77375     return (void *)((int (*)[7+1][5][5])  ((intArray (*)[7+1][5][5]) x));
77376 }
_p_a_7_1__a_5__a_5__a_5__intArrayTo_p_a_7_1__a_5__a_5__a_5__int(void * x,int * SWIGUNUSEDPARM (newmemory))77377 static void *_p_a_7_1__a_5__a_5__a_5__intArrayTo_p_a_7_1__a_5__a_5__a_5__int(void *x, int *SWIGUNUSEDPARM(newmemory)) {
77378     return (void *)((int (*)[7+1][5][5][5])  ((intArray (*)[7+1][5][5][5]) x));
77379 }
_p_a_7_1__a_5__a_5__a_5__a_5__intArrayTo_p_a_7_1__a_5__a_5__a_5__a_5__int(void * x,int * SWIGUNUSEDPARM (newmemory))77380 static void *_p_a_7_1__a_5__a_5__a_5__a_5__intArrayTo_p_a_7_1__a_5__a_5__a_5__a_5__int(void *x, int *SWIGUNUSEDPARM(newmemory)) {
77381     return (void *)((int (*)[7+1][5][5][5][5])  ((intArray (*)[7+1][5][5][5][5]) x));
77382 }
_p_floatArrayTo_p_float(void * x,int * SWIGUNUSEDPARM (newmemory))77383 static void *_p_floatArrayTo_p_float(void *x, int *SWIGUNUSEDPARM(newmemory)) {
77384     return (void *)((float *)  ((floatArray *) x));
77385 }
_p_intArrayTo_p_int(void * x,int * SWIGUNUSEDPARM (newmemory))77386 static void *_p_intArrayTo_p_int(void *x, int *SWIGUNUSEDPARM(newmemory)) {
77387     return (void *)((int *)  ((intArray *) x));
77388 }
_p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__doubleArrayTo_p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__double(void * x,int * SWIGUNUSEDPARM (newmemory))77389 static void *_p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__doubleArrayTo_p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__double(void *x, int *SWIGUNUSEDPARM(newmemory)) {
77390     return (void *)((double (*)[3*VRNA_GQUAD_MAX_LINKER_LENGTH+1])  ((doubleArray (*)[3*VRNA_GQUAD_MAX_LINKER_LENGTH+1]) x));
77391 }
_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__doubleArrayTo_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__double(void * x,int * SWIGUNUSEDPARM (newmemory))77392 static void *_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__doubleArrayTo_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__double(void *x, int *SWIGUNUSEDPARM(newmemory)) {
77393     return (void *)((double (*)[NBPAIRS+1][5][5][5][5])  ((doubleArray (*)[NBPAIRS+1][5][5][5][5]) x));
77394 }
77395 static swig_type_info _swigt__p_COORDINATE = {"_p_COORDINATE", "std::vector< COORDINATE >::value_type *|COORDINATE *", 0, 0, (void*)0, 0};
77396 static swig_type_info _swigt__p_SOLUTION = {"_p_SOLUTION", "std::vector< SOLUTION >::value_type *|SOLUTION *", 0, 0, (void*)0, 0};
77397 static swig_type_info _swigt__p_Tree = {"_p_Tree", "Tree *", 0, 0, (void*)0, 0};
77398 static swig_type_info _swigt__p__struct_en = {"_p__struct_en", "_struct_en *|struct_en *", 0, 0, (void*)0, 0};
77399 static swig_type_info _swigt__p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__double = {"_p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__double", "double (*)[3*VRNA_GQUAD_MAX_LINKER_LENGTH+1]", 0, 0, (void*)0, 0};
77400 static swig_type_info _swigt__p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__doubleArray = {"_p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__doubleArray", 0, 0, 0, 0, 0};
77401 static swig_type_info _swigt__p_a_5__a_5__double = {"_p_a_5__a_5__double", "double (*)[5][5]", 0, 0, (void*)0, 0};
77402 static swig_type_info _swigt__p_a_5__a_5__doubleArray = {"_p_a_5__a_5__doubleArray", 0, 0, 0, 0, 0};
77403 static swig_type_info _swigt__p_a_5__a_5__int = {"_p_a_5__a_5__int", "int (*)[5][5]", 0, 0, (void*)0, 0};
77404 static swig_type_info _swigt__p_a_5__a_5__intArray = {"_p_a_5__a_5__intArray", 0, 0, 0, 0, 0};
77405 static swig_type_info _swigt__p_a_5__double = {"_p_a_5__double", "double (*)[5]", 0, 0, (void*)0, 0};
77406 static swig_type_info _swigt__p_a_5__doubleArray = {"_p_a_5__doubleArray", 0, 0, 0, 0, 0};
77407 static swig_type_info _swigt__p_a_7_1__a_5__a_5__a_5__a_5__int = {"_p_a_7_1__a_5__a_5__a_5__a_5__int", "int (*)[7+1][5][5][5][5]", 0, 0, (void*)0, 0};
77408 static swig_type_info _swigt__p_a_7_1__a_5__a_5__a_5__a_5__intArray = {"_p_a_7_1__a_5__a_5__a_5__a_5__intArray", 0, 0, 0, 0, 0};
77409 static swig_type_info _swigt__p_a_7_1__a_5__a_5__a_5__int = {"_p_a_7_1__a_5__a_5__a_5__int", "int (*)[7+1][5][5][5]", 0, 0, (void*)0, 0};
77410 static swig_type_info _swigt__p_a_7_1__a_5__a_5__a_5__intArray = {"_p_a_7_1__a_5__a_5__a_5__intArray", 0, 0, 0, 0, 0};
77411 static swig_type_info _swigt__p_a_7_1__a_5__a_5__int = {"_p_a_7_1__a_5__a_5__int", "int (*)[7+1][5][5]", 0, 0, (void*)0, 0};
77412 static swig_type_info _swigt__p_a_7_1__a_5__a_5__intArray = {"_p_a_7_1__a_5__a_5__intArray", 0, 0, 0, 0, 0};
77413 static swig_type_info _swigt__p_a_MAXLOOP_1__double = {"_p_a_MAXLOOP_1__double", "double (*)[MAXLOOP+1]", 0, 0, (void*)0, 0};
77414 static swig_type_info _swigt__p_a_MAXLOOP_1__doubleArray = {"_p_a_MAXLOOP_1__doubleArray", 0, 0, 0, 0, 0};
77415 static swig_type_info _swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__double = {"_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__double", "double (*)[NBPAIRS+1][5][5][5][5]", 0, 0, (void*)0, 0};
77416 static swig_type_info _swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__doubleArray = {"_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__doubleArray", 0, 0, 0, 0, 0};
77417 static swig_type_info _swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__int = {"_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__int", "int (*)[NBPAIRS+1][5][5][5][5]", 0, 0, (void*)0, 0};
77418 static swig_type_info _swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__intArray = {"_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__intArray", 0, 0, 0, 0, 0};
77419 static swig_type_info _swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__double = {"_p_a_NBPAIRS_1__a_5__a_5__a_5__double", "double (*)[NBPAIRS+1][5][5][5]", 0, 0, (void*)0, 0};
77420 static swig_type_info _swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__doubleArray = {"_p_a_NBPAIRS_1__a_5__a_5__a_5__doubleArray", 0, 0, 0, 0, 0};
77421 static swig_type_info _swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__int = {"_p_a_NBPAIRS_1__a_5__a_5__a_5__int", "int (*)[NBPAIRS+1][5][5][5]", 0, 0, (void*)0, 0};
77422 static swig_type_info _swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__intArray = {"_p_a_NBPAIRS_1__a_5__a_5__a_5__intArray", 0, 0, 0, 0, 0};
77423 static swig_type_info _swigt__p_a_NBPAIRS_1__a_5__a_5__double = {"_p_a_NBPAIRS_1__a_5__a_5__double", "double (*)[NBPAIRS+1][5][5]", 0, 0, (void*)0, 0};
77424 static swig_type_info _swigt__p_a_NBPAIRS_1__a_5__a_5__doubleArray = {"_p_a_NBPAIRS_1__a_5__a_5__doubleArray", 0, 0, 0, 0, 0};
77425 static swig_type_info _swigt__p_a_NBPAIRS_1__a_5__a_5__int = {"_p_a_NBPAIRS_1__a_5__a_5__int", "int (*)[NBPAIRS+1][5][5]", 0, 0, (void*)0, 0};
77426 static swig_type_info _swigt__p_a_NBPAIRS_1__a_5__a_5__intArray = {"_p_a_NBPAIRS_1__a_5__a_5__intArray", 0, 0, 0, 0, 0};
77427 static swig_type_info _swigt__p_a_NBPAIRS_1__double = {"_p_a_NBPAIRS_1__double", "double (*)[NBPAIRS+1]", 0, 0, (void*)0, 0};
77428 static swig_type_info _swigt__p_a_NBPAIRS_1__doubleArray = {"_p_a_NBPAIRS_1__doubleArray", 0, 0, 0, 0, 0};
77429 static swig_type_info _swigt__p_allocator_type = {"_p_allocator_type", "allocator_type *", 0, 0, (void*)0, 0};
77430 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
77431 static swig_type_info _swigt__p_difference_type = {"_p_difference_type", "difference_type *", 0, 0, (void*)0, 0};
77432 static swig_type_info _swigt__p_double = {"_p_double", "FLT_OR_DBL *|double *", 0, 0, (void*)0, 0};
77433 static swig_type_info _swigt__p_doubleArray = {"_p_doubleArray", "doubleArray *", 0, 0, (void*)0, 0};
77434 static swig_type_info _swigt__p_duplexT = {"_p_duplexT", "duplexT *", 0, 0, (void*)0, 0};
77435 static swig_type_info _swigt__p_duplex_list_t = {"_p_duplex_list_t", "std::vector< duplex_list_t >::value_type *|duplex_list_t *", 0, 0, (void*)0, 0};
77436 static swig_type_info _swigt__p_first_type = {"_p_first_type", "first_type *", 0, 0, (void*)0, 0};
77437 static swig_type_info _swigt__p_float = {"_p_float", "float *", 0, 0, (void*)0, 0};
77438 static swig_type_info _swigt__p_floatArray = {"_p_floatArray", "floatArray *", 0, 0, (void*)0, 0};
77439 static swig_type_info _swigt__p_heat_capacity_result = {"_p_heat_capacity_result", "std::vector< heat_capacity_result >::value_type *|heat_capacity_result *", 0, 0, (void*)0, 0};
77440 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
77441 static swig_type_info _swigt__p_intArray = {"_p_intArray", "intArray *", 0, 0, (void*)0, 0};
77442 static swig_type_info _swigt__p_my_fc_type_e = {"_p_my_fc_type_e", "enum my_fc_type_e *|my_fc_type_e *", 0, 0, (void*)0, 0};
77443 static swig_type_info _swigt__p_p_PyObject = {"_p_p_PyObject", "PyObject **", 0, 0, (void*)0, 0};
77444 static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
77445 static swig_type_info _swigt__p_p_p_char = {"_p_p_p_char", "char ***", 0, 0, (void*)0, 0};
77446 static swig_type_info _swigt__p_p_void = {"_p_p_void", "void **", 0, 0, (void*)0, 0};
77447 static swig_type_info _swigt__p_second_type = {"_p_second_type", "second_type *", 0, 0, (void*)0, 0};
77448 static swig_type_info _swigt__p_short = {"_p_short", "short *", 0, 0, (void*)0, 0};
77449 static swig_type_info _swigt__p_size_type = {"_p_size_type", "size_type *", 0, 0, (void*)0, 0};
77450 static swig_type_info _swigt__p_std__allocatorT_COORDINATE_t = {"_p_std__allocatorT_COORDINATE_t", "std::vector< COORDINATE >::allocator_type *|std::allocator< COORDINATE > *", 0, 0, (void*)0, 0};
77451 static swig_type_info _swigt__p_std__allocatorT_SOLUTION_t = {"_p_std__allocatorT_SOLUTION_t", "std::vector< SOLUTION >::allocator_type *|std::allocator< SOLUTION > *", 0, 0, (void*)0, 0};
77452 static swig_type_info _swigt__p_std__allocatorT_char_const_p_t = {"_p_std__allocatorT_char_const_p_t", "std::vector< char const * >::allocator_type *|std::allocator< char const * > *", 0, 0, (void*)0, 0};
77453 static swig_type_info _swigt__p_std__allocatorT_double_t = {"_p_std__allocatorT_double_t", "std::vector< double >::allocator_type *|std::allocator< double > *", 0, 0, (void*)0, 0};
77454 static swig_type_info _swigt__p_std__allocatorT_duplex_list_t_t = {"_p_std__allocatorT_duplex_list_t_t", "std::vector< duplex_list_t >::allocator_type *|std::allocator< duplex_list_t > *", 0, 0, (void*)0, 0};
77455 static swig_type_info _swigt__p_std__allocatorT_heat_capacity_result_t = {"_p_std__allocatorT_heat_capacity_result_t", "std::allocator< heat_capacity_result > *|std::vector< heat_capacity_result >::allocator_type *", 0, 0, (void*)0, 0};
77456 static swig_type_info _swigt__p_std__allocatorT_int_t = {"_p_std__allocatorT_int_t", "std::vector< int >::allocator_type *|std::allocator< int > *", 0, 0, (void*)0, 0};
77457 static swig_type_info _swigt__p_std__allocatorT_std__string_t = {"_p_std__allocatorT_std__string_t", "std::vector< std::string >::allocator_type *|std::allocator< std::string > *", 0, 0, (void*)0, 0};
77458 static swig_type_info _swigt__p_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t = {"_p_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t", "std::vector< std::vector< double > >::allocator_type *|std::allocator< std::vector< double,std::allocator< double > > > *", 0, 0, (void*)0, 0};
77459 static swig_type_info _swigt__p_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t = {"_p_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t", "std::vector< std::vector< int > >::allocator_type *|std::allocator< std::vector< int,std::allocator< int > > > *", 0, 0, (void*)0, 0};
77460 static swig_type_info _swigt__p_std__allocatorT_subopt_solution_t = {"_p_std__allocatorT_subopt_solution_t", "std::vector< subopt_solution >::allocator_type *|std::allocator< subopt_solution > *", 0, 0, (void*)0, 0};
77461 static swig_type_info _swigt__p_std__allocatorT_unsigned_int_t = {"_p_std__allocatorT_unsigned_int_t", "std::vector< unsigned int >::allocator_type *|std::allocator< unsigned int > *", 0, 0, (void*)0, 0};
77462 static swig_type_info _swigt__p_std__allocatorT_vrna_ep_t_t = {"_p_std__allocatorT_vrna_ep_t_t", "std::vector< vrna_ep_t >::allocator_type *|std::allocator< vrna_ep_t > *", 0, 0, (void*)0, 0};
77463 static swig_type_info _swigt__p_std__allocatorT_vrna_move_t_t = {"_p_std__allocatorT_vrna_move_t_t", "std::vector< vrna_move_t >::allocator_type *|std::allocator< vrna_move_t > *", 0, 0, (void*)0, 0};
77464 static swig_type_info _swigt__p_std__allocatorT_vrna_path_t_t = {"_p_std__allocatorT_vrna_path_t_t", "std::vector< vrna_path_t >::allocator_type *|std::allocator< vrna_path_t > *", 0, 0, (void*)0, 0};
77465 static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0};
77466 static swig_type_info _swigt__p_std__pairT_double_double_t = {"_p_std__pairT_double_double_t", "std::pair< double,double > *", 0, 0, (void*)0, 0};
77467 static swig_type_info _swigt__p_std__string = {"_p_std__string", "std::string *", 0, 0, (void*)0, 0};
77468 static swig_type_info _swigt__p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t = {"_p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t", "std::vector< COORDINATE,std::allocator< COORDINATE > > *|std::vector< COORDINATE > *", 0, 0, (void*)0, 0};
77469 static swig_type_info _swigt__p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t = {"_p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t", "std::vector< SOLUTION,std::allocator< SOLUTION > > *|std::vector< SOLUTION > *", 0, 0, (void*)0, 0};
77470 static swig_type_info _swigt__p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t = {"_p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t", "std::vector< char const *,std::allocator< char const * > > *|std::vector< char const * > *", 0, 0, (void*)0, 0};
77471 static swig_type_info _swigt__p_std__vectorT_double_std__allocatorT_double_t_t = {"_p_std__vectorT_double_std__allocatorT_double_t_t", "std::vector< double,std::allocator< double > > *|std::vector< double > *", 0, 0, (void*)0, 0};
77472 static swig_type_info _swigt__p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t = {"_p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t", "std::vector< duplex_list_t,std::allocator< duplex_list_t > > *|std::vector< duplex_list_t > *", 0, 0, (void*)0, 0};
77473 static swig_type_info _swigt__p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t = {"_p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t", "std::vector< heat_capacity_result > *|std::vector< heat_capacity_result,std::allocator< heat_capacity_result > > *", 0, 0, (void*)0, 0};
77474 static swig_type_info _swigt__p_std__vectorT_int_std__allocatorT_int_t_t = {"_p_std__vectorT_int_std__allocatorT_int_t_t", "std::vector< int,std::allocator< int > > *|std::vector< int > *", 0, 0, (void*)0, 0};
77475 static swig_type_info _swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t = {"_p_std__vectorT_std__string_std__allocatorT_std__string_t_t", "std::vector< std::string,std::allocator< std::string > > *|std::vector< std::string > *", 0, 0, (void*)0, 0};
77476 static swig_type_info _swigt__p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t = {"_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t", "std::vector< std::vector< double > > *|std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *|std::vector< std::vector< double,std::allocator< double > > > *", 0, 0, (void*)0, 0};
77477 static swig_type_info _swigt__p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t = {"_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t", "std::vector< std::vector< int > > *|std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > > *|std::vector< std::vector< int,std::allocator< int > > > *", 0, 0, (void*)0, 0};
77478 static swig_type_info _swigt__p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t = {"_p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t", "std::vector< subopt_solution,std::allocator< subopt_solution > > *|std::vector< subopt_solution > *", 0, 0, (void*)0, 0};
77479 static swig_type_info _swigt__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t = {"_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t", "std::vector< unsigned int,std::allocator< unsigned int > > *|std::vector< unsigned int > *", 0, 0, (void*)0, 0};
77480 static swig_type_info _swigt__p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t = {"_p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t", "std::vector< vrna_ep_t,std::allocator< vrna_ep_t > > *|std::vector< vrna_ep_t > *", 0, 0, (void*)0, 0};
77481 static swig_type_info _swigt__p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t = {"_p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t", "std::vector< vrna_move_t > *|std::vector< vrna_move_t,std::allocator< vrna_move_t > > *", 0, 0, (void*)0, 0};
77482 static swig_type_info _swigt__p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t = {"_p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t", "std::vector< vrna_path_t,std::allocator< vrna_path_t > > *|std::vector< vrna_path_t > *", 0, 0, (void*)0, 0};
77483 static swig_type_info _swigt__p_subopt_solution = {"_p_subopt_solution", "std::vector< subopt_solution >::value_type *|subopt_solution *", 0, 0, (void*)0, 0};
77484 static swig_type_info _swigt__p_swString = {"_p_swString", "swString *", 0, 0, (void*)0, 0};
77485 static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0};
77486 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *", 0, 0, (void*)0, 0};
77487 static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *", 0, 0, (void*)0, 0};
77488 static swig_type_info _swigt__p_value_type = {"_p_value_type", "value_type *", 0, 0, (void*)0, 0};
77489 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
77490 static swig_type_info _swigt__p_vrna_basepair_t = {"_p_vrna_basepair_t", "vrna_basepair_t *", 0, 0, (void*)0, 0};
77491 static swig_type_info _swigt__p_vrna_bp_stack_s = {"_p_vrna_bp_stack_s", "vrna_bp_stack_s *|bondT *", 0, 0, (void*)0, 0};
77492 static swig_type_info _swigt__p_vrna_command_s = {"_p_vrna_command_s", "vrna_command_s *", 0, 0, (void*)0, 0};
77493 static swig_type_info _swigt__p_vrna_cpair_s = {"_p_vrna_cpair_s", "vrna_cpair_s *|cpair *", 0, 0, (void*)0, 0};
77494 static swig_type_info _swigt__p_vrna_dimer_pf_s = {"_p_vrna_dimer_pf_s", "vrna_dimer_pf_s *|cofoldF *", 0, 0, (void*)0, 0};
77495 static swig_type_info _swigt__p_vrna_elem_prob_s = {"_p_vrna_elem_prob_s", "vrna_elem_prob_s *|plist *", 0, 0, (void*)0, 0};
77496 static swig_type_info _swigt__p_vrna_ep_t = {"_p_vrna_ep_t", "std::vector< vrna_ep_t >::value_type *|vrna_ep_t *", 0, 0, (void*)0, 0};
77497 static swig_type_info _swigt__p_vrna_exp_param_t = {"_p_vrna_exp_param_t", "vrna_exp_param_t *", 0, 0, (void*)0, 0};
77498 static swig_type_info _swigt__p_vrna_fold_compound_t = {"_p_vrna_fold_compound_t", "vrna_fold_compound_t *", 0, 0, (void*)0, 0};
77499 static swig_type_info _swigt__p_vrna_md_t = {"_p_vrna_md_t", "vrna_md_t *", 0, 0, (void*)0, 0};
77500 static swig_type_info _swigt__p_vrna_move_t = {"_p_vrna_move_t", "vrna_move_t *|std::vector< vrna_move_t >::value_type *", 0, 0, (void*)0, 0};
77501 static swig_type_info _swigt__p_vrna_param_t = {"_p_vrna_param_t", "vrna_param_t *", 0, 0, (void*)0, 0};
77502 static swig_type_info _swigt__p_vrna_path_options_s = {"_p_vrna_path_options_s", "vrna_path_options_s *", 0, 0, (void*)0, 0};
77503 static swig_type_info _swigt__p_vrna_path_s = {"_p_vrna_path_s", "path_t *|vrna_path_s *", 0, 0, (void*)0, 0};
77504 static swig_type_info _swigt__p_vrna_path_t = {"_p_vrna_path_t", "std::vector< vrna_path_t >::value_type *|vrna_path_t *", 0, 0, (void*)0, 0};
77505 static swig_type_info _swigt__p_vrna_pbacktrack_mem_t = {"_p_vrna_pbacktrack_mem_t", "vrna_pbacktrack_mem_t *", 0, 0, (void*)0, 0};
77506 static swig_type_info _swigt__p_vrna_pinfo_s = {"_p_vrna_pinfo_s", "vrna_pinfo_s *|pair_info *", 0, 0, (void*)0, 0};
77507 static swig_type_info _swigt__p_vrna_sc_s = {"_p_vrna_sc_s", "vrna_sc_t *|vrna_sc_s *", 0, 0, (void*)0, 0};
77508 
77509 static swig_type_info *swig_type_initial[] = {
77510   &_swigt__p_COORDINATE,
77511   &_swigt__p_SOLUTION,
77512   &_swigt__p_Tree,
77513   &_swigt__p__struct_en,
77514   &_swigt__p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__double,
77515   &_swigt__p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__doubleArray,
77516   &_swigt__p_a_5__a_5__double,
77517   &_swigt__p_a_5__a_5__doubleArray,
77518   &_swigt__p_a_5__a_5__int,
77519   &_swigt__p_a_5__a_5__intArray,
77520   &_swigt__p_a_5__double,
77521   &_swigt__p_a_5__doubleArray,
77522   &_swigt__p_a_7_1__a_5__a_5__a_5__a_5__int,
77523   &_swigt__p_a_7_1__a_5__a_5__a_5__a_5__intArray,
77524   &_swigt__p_a_7_1__a_5__a_5__a_5__int,
77525   &_swigt__p_a_7_1__a_5__a_5__a_5__intArray,
77526   &_swigt__p_a_7_1__a_5__a_5__int,
77527   &_swigt__p_a_7_1__a_5__a_5__intArray,
77528   &_swigt__p_a_MAXLOOP_1__double,
77529   &_swigt__p_a_MAXLOOP_1__doubleArray,
77530   &_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__double,
77531   &_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__doubleArray,
77532   &_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__int,
77533   &_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__intArray,
77534   &_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__double,
77535   &_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__doubleArray,
77536   &_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__int,
77537   &_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__intArray,
77538   &_swigt__p_a_NBPAIRS_1__a_5__a_5__double,
77539   &_swigt__p_a_NBPAIRS_1__a_5__a_5__doubleArray,
77540   &_swigt__p_a_NBPAIRS_1__a_5__a_5__int,
77541   &_swigt__p_a_NBPAIRS_1__a_5__a_5__intArray,
77542   &_swigt__p_a_NBPAIRS_1__double,
77543   &_swigt__p_a_NBPAIRS_1__doubleArray,
77544   &_swigt__p_allocator_type,
77545   &_swigt__p_char,
77546   &_swigt__p_difference_type,
77547   &_swigt__p_double,
77548   &_swigt__p_doubleArray,
77549   &_swigt__p_duplexT,
77550   &_swigt__p_duplex_list_t,
77551   &_swigt__p_first_type,
77552   &_swigt__p_float,
77553   &_swigt__p_floatArray,
77554   &_swigt__p_heat_capacity_result,
77555   &_swigt__p_int,
77556   &_swigt__p_intArray,
77557   &_swigt__p_my_fc_type_e,
77558   &_swigt__p_p_PyObject,
77559   &_swigt__p_p_char,
77560   &_swigt__p_p_p_char,
77561   &_swigt__p_p_void,
77562   &_swigt__p_second_type,
77563   &_swigt__p_short,
77564   &_swigt__p_size_type,
77565   &_swigt__p_std__allocatorT_COORDINATE_t,
77566   &_swigt__p_std__allocatorT_SOLUTION_t,
77567   &_swigt__p_std__allocatorT_char_const_p_t,
77568   &_swigt__p_std__allocatorT_double_t,
77569   &_swigt__p_std__allocatorT_duplex_list_t_t,
77570   &_swigt__p_std__allocatorT_heat_capacity_result_t,
77571   &_swigt__p_std__allocatorT_int_t,
77572   &_swigt__p_std__allocatorT_std__string_t,
77573   &_swigt__p_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t,
77574   &_swigt__p_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t,
77575   &_swigt__p_std__allocatorT_subopt_solution_t,
77576   &_swigt__p_std__allocatorT_unsigned_int_t,
77577   &_swigt__p_std__allocatorT_vrna_ep_t_t,
77578   &_swigt__p_std__allocatorT_vrna_move_t_t,
77579   &_swigt__p_std__allocatorT_vrna_path_t_t,
77580   &_swigt__p_std__invalid_argument,
77581   &_swigt__p_std__pairT_double_double_t,
77582   &_swigt__p_std__string,
77583   &_swigt__p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t,
77584   &_swigt__p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t,
77585   &_swigt__p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t,
77586   &_swigt__p_std__vectorT_double_std__allocatorT_double_t_t,
77587   &_swigt__p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t,
77588   &_swigt__p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t,
77589   &_swigt__p_std__vectorT_int_std__allocatorT_int_t_t,
77590   &_swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t,
77591   &_swigt__p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t,
77592   &_swigt__p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t,
77593   &_swigt__p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t,
77594   &_swigt__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t,
77595   &_swigt__p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t,
77596   &_swigt__p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t,
77597   &_swigt__p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t,
77598   &_swigt__p_subopt_solution,
77599   &_swigt__p_swString,
77600   &_swigt__p_swig__SwigPyIterator,
77601   &_swigt__p_unsigned_int,
77602   &_swigt__p_unsigned_short,
77603   &_swigt__p_value_type,
77604   &_swigt__p_void,
77605   &_swigt__p_vrna_basepair_t,
77606   &_swigt__p_vrna_bp_stack_s,
77607   &_swigt__p_vrna_command_s,
77608   &_swigt__p_vrna_cpair_s,
77609   &_swigt__p_vrna_dimer_pf_s,
77610   &_swigt__p_vrna_elem_prob_s,
77611   &_swigt__p_vrna_ep_t,
77612   &_swigt__p_vrna_exp_param_t,
77613   &_swigt__p_vrna_fold_compound_t,
77614   &_swigt__p_vrna_md_t,
77615   &_swigt__p_vrna_move_t,
77616   &_swigt__p_vrna_param_t,
77617   &_swigt__p_vrna_path_options_s,
77618   &_swigt__p_vrna_path_s,
77619   &_swigt__p_vrna_path_t,
77620   &_swigt__p_vrna_pbacktrack_mem_t,
77621   &_swigt__p_vrna_pinfo_s,
77622   &_swigt__p_vrna_sc_s,
77623 };
77624 
77625 static swig_cast_info _swigc__p_COORDINATE[] = {  {&_swigt__p_COORDINATE, 0, 0, 0},{0, 0, 0, 0}};
77626 static swig_cast_info _swigc__p_SOLUTION[] = {  {&_swigt__p_SOLUTION, 0, 0, 0},{0, 0, 0, 0}};
77627 static swig_cast_info _swigc__p_Tree[] = {  {&_swigt__p_Tree, 0, 0, 0},{0, 0, 0, 0}};
77628 static swig_cast_info _swigc__p__struct_en[] = {  {&_swigt__p__struct_en, 0, 0, 0},{0, 0, 0, 0}};
77629 static swig_cast_info _swigc__p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__doubleArray[] = {{&_swigt__p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__doubleArray, 0, 0, 0},{0, 0, 0, 0}};
77630 static swig_cast_info _swigc__p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__double[] = {  {&_swigt__p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__doubleArray, _p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__doubleArrayTo_p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__double, 0, 0},  {&_swigt__p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__double, 0, 0, 0},{0, 0, 0, 0}};
77631 static swig_cast_info _swigc__p_a_5__a_5__doubleArray[] = {{&_swigt__p_a_5__a_5__doubleArray, 0, 0, 0},{0, 0, 0, 0}};
77632 static swig_cast_info _swigc__p_a_5__a_5__double[] = {  {&_swigt__p_a_5__a_5__doubleArray, _p_a_5__a_5__doubleArrayTo_p_a_5__a_5__double, 0, 0},  {&_swigt__p_a_5__a_5__double, 0, 0, 0},{0, 0, 0, 0}};
77633 static swig_cast_info _swigc__p_a_5__a_5__intArray[] = {{&_swigt__p_a_5__a_5__intArray, 0, 0, 0},{0, 0, 0, 0}};
77634 static swig_cast_info _swigc__p_a_5__a_5__int[] = {  {&_swigt__p_a_5__a_5__int, 0, 0, 0},  {&_swigt__p_a_5__a_5__intArray, _p_a_5__a_5__intArrayTo_p_a_5__a_5__int, 0, 0},{0, 0, 0, 0}};
77635 static swig_cast_info _swigc__p_a_5__doubleArray[] = {{&_swigt__p_a_5__doubleArray, 0, 0, 0},{0, 0, 0, 0}};
77636 static swig_cast_info _swigc__p_a_5__double[] = {  {&_swigt__p_a_5__doubleArray, _p_a_5__doubleArrayTo_p_a_5__double, 0, 0},  {&_swigt__p_a_5__double, 0, 0, 0},{0, 0, 0, 0}};
77637 static swig_cast_info _swigc__p_a_7_1__a_5__a_5__a_5__a_5__intArray[] = {{&_swigt__p_a_7_1__a_5__a_5__a_5__a_5__intArray, 0, 0, 0},{0, 0, 0, 0}};
77638 static swig_cast_info _swigc__p_a_7_1__a_5__a_5__a_5__a_5__int[] = {  {&_swigt__p_a_7_1__a_5__a_5__a_5__a_5__int, 0, 0, 0},  {&_swigt__p_a_7_1__a_5__a_5__a_5__a_5__intArray, _p_a_7_1__a_5__a_5__a_5__a_5__intArrayTo_p_a_7_1__a_5__a_5__a_5__a_5__int, 0, 0},{0, 0, 0, 0}};
77639 static swig_cast_info _swigc__p_a_7_1__a_5__a_5__a_5__intArray[] = {{&_swigt__p_a_7_1__a_5__a_5__a_5__intArray, 0, 0, 0},{0, 0, 0, 0}};
77640 static swig_cast_info _swigc__p_a_7_1__a_5__a_5__a_5__int[] = {  {&_swigt__p_a_7_1__a_5__a_5__a_5__int, 0, 0, 0},  {&_swigt__p_a_7_1__a_5__a_5__a_5__intArray, _p_a_7_1__a_5__a_5__a_5__intArrayTo_p_a_7_1__a_5__a_5__a_5__int, 0, 0},{0, 0, 0, 0}};
77641 static swig_cast_info _swigc__p_a_7_1__a_5__a_5__intArray[] = {{&_swigt__p_a_7_1__a_5__a_5__intArray, 0, 0, 0},{0, 0, 0, 0}};
77642 static swig_cast_info _swigc__p_a_7_1__a_5__a_5__int[] = {  {&_swigt__p_a_7_1__a_5__a_5__int, 0, 0, 0},  {&_swigt__p_a_7_1__a_5__a_5__intArray, _p_a_7_1__a_5__a_5__intArrayTo_p_a_7_1__a_5__a_5__int, 0, 0},{0, 0, 0, 0}};
77643 static swig_cast_info _swigc__p_a_MAXLOOP_1__doubleArray[] = {{&_swigt__p_a_MAXLOOP_1__doubleArray, 0, 0, 0},{0, 0, 0, 0}};
77644 static swig_cast_info _swigc__p_a_MAXLOOP_1__double[] = {  {&_swigt__p_a_MAXLOOP_1__doubleArray, _p_a_MAXLOOP_1__doubleArrayTo_p_a_MAXLOOP_1__double, 0, 0},  {&_swigt__p_a_MAXLOOP_1__double, 0, 0, 0},{0, 0, 0, 0}};
77645 static swig_cast_info _swigc__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__doubleArray[] = {{&_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__doubleArray, 0, 0, 0},{0, 0, 0, 0}};
77646 static swig_cast_info _swigc__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__double[] = {  {&_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__doubleArray, _p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__doubleArrayTo_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__double, 0, 0},  {&_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__double, 0, 0, 0},{0, 0, 0, 0}};
77647 static swig_cast_info _swigc__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__intArray[] = {{&_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__intArray, 0, 0, 0},{0, 0, 0, 0}};
77648 static swig_cast_info _swigc__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__int[] = {  {&_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__int, 0, 0, 0},  {&_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__intArray, _p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__intArrayTo_p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__int, 0, 0},{0, 0, 0, 0}};
77649 static swig_cast_info _swigc__p_a_NBPAIRS_1__a_5__a_5__a_5__doubleArray[] = {{&_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__doubleArray, 0, 0, 0},{0, 0, 0, 0}};
77650 static swig_cast_info _swigc__p_a_NBPAIRS_1__a_5__a_5__a_5__double[] = {  {&_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__doubleArray, _p_a_NBPAIRS_1__a_5__a_5__a_5__doubleArrayTo_p_a_NBPAIRS_1__a_5__a_5__a_5__double, 0, 0},  {&_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__double, 0, 0, 0},{0, 0, 0, 0}};
77651 static swig_cast_info _swigc__p_a_NBPAIRS_1__a_5__a_5__a_5__intArray[] = {{&_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__intArray, 0, 0, 0},{0, 0, 0, 0}};
77652 static swig_cast_info _swigc__p_a_NBPAIRS_1__a_5__a_5__a_5__int[] = {  {&_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__int, 0, 0, 0},  {&_swigt__p_a_NBPAIRS_1__a_5__a_5__a_5__intArray, _p_a_NBPAIRS_1__a_5__a_5__a_5__intArrayTo_p_a_NBPAIRS_1__a_5__a_5__a_5__int, 0, 0},{0, 0, 0, 0}};
77653 static swig_cast_info _swigc__p_a_NBPAIRS_1__a_5__a_5__doubleArray[] = {{&_swigt__p_a_NBPAIRS_1__a_5__a_5__doubleArray, 0, 0, 0},{0, 0, 0, 0}};
77654 static swig_cast_info _swigc__p_a_NBPAIRS_1__a_5__a_5__double[] = {  {&_swigt__p_a_NBPAIRS_1__a_5__a_5__doubleArray, _p_a_NBPAIRS_1__a_5__a_5__doubleArrayTo_p_a_NBPAIRS_1__a_5__a_5__double, 0, 0},  {&_swigt__p_a_NBPAIRS_1__a_5__a_5__double, 0, 0, 0},{0, 0, 0, 0}};
77655 static swig_cast_info _swigc__p_a_NBPAIRS_1__a_5__a_5__intArray[] = {{&_swigt__p_a_NBPAIRS_1__a_5__a_5__intArray, 0, 0, 0},{0, 0, 0, 0}};
77656 static swig_cast_info _swigc__p_a_NBPAIRS_1__a_5__a_5__int[] = {  {&_swigt__p_a_NBPAIRS_1__a_5__a_5__int, 0, 0, 0},  {&_swigt__p_a_NBPAIRS_1__a_5__a_5__intArray, _p_a_NBPAIRS_1__a_5__a_5__intArrayTo_p_a_NBPAIRS_1__a_5__a_5__int, 0, 0},{0, 0, 0, 0}};
77657 static swig_cast_info _swigc__p_a_NBPAIRS_1__doubleArray[] = {{&_swigt__p_a_NBPAIRS_1__doubleArray, 0, 0, 0},{0, 0, 0, 0}};
77658 static swig_cast_info _swigc__p_a_NBPAIRS_1__double[] = {  {&_swigt__p_a_NBPAIRS_1__doubleArray, _p_a_NBPAIRS_1__doubleArrayTo_p_a_NBPAIRS_1__double, 0, 0},  {&_swigt__p_a_NBPAIRS_1__double, 0, 0, 0},{0, 0, 0, 0}};
77659 static swig_cast_info _swigc__p_allocator_type[] = {  {&_swigt__p_allocator_type, 0, 0, 0},{0, 0, 0, 0}};
77660 static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
77661 static swig_cast_info _swigc__p_difference_type[] = {  {&_swigt__p_difference_type, 0, 0, 0},{0, 0, 0, 0}};
77662 static swig_cast_info _swigc__p_double[] = {  {&_swigt__p_doubleArray, _p_doubleArrayTo_p_double, 0, 0},  {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
77663 static swig_cast_info _swigc__p_doubleArray[] = {  {&_swigt__p_doubleArray, 0, 0, 0},{0, 0, 0, 0}};
77664 static swig_cast_info _swigc__p_duplexT[] = {  {&_swigt__p_duplexT, 0, 0, 0},{0, 0, 0, 0}};
77665 static swig_cast_info _swigc__p_duplex_list_t[] = {  {&_swigt__p_duplex_list_t, 0, 0, 0},{0, 0, 0, 0}};
77666 static swig_cast_info _swigc__p_first_type[] = {  {&_swigt__p_first_type, 0, 0, 0},{0, 0, 0, 0}};
77667 static swig_cast_info _swigc__p_float[] = {  {&_swigt__p_float, 0, 0, 0},  {&_swigt__p_floatArray, _p_floatArrayTo_p_float, 0, 0},{0, 0, 0, 0}};
77668 static swig_cast_info _swigc__p_floatArray[] = {  {&_swigt__p_floatArray, 0, 0, 0},{0, 0, 0, 0}};
77669 static swig_cast_info _swigc__p_heat_capacity_result[] = {  {&_swigt__p_heat_capacity_result, 0, 0, 0},{0, 0, 0, 0}};
77670 static swig_cast_info _swigc__p_int[] = {  {&_swigt__p_intArray, _p_intArrayTo_p_int, 0, 0},  {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
77671 static swig_cast_info _swigc__p_intArray[] = {  {&_swigt__p_intArray, 0, 0, 0},{0, 0, 0, 0}};
77672 static swig_cast_info _swigc__p_my_fc_type_e[] = {  {&_swigt__p_my_fc_type_e, 0, 0, 0},{0, 0, 0, 0}};
77673 static swig_cast_info _swigc__p_p_PyObject[] = {  {&_swigt__p_p_PyObject, 0, 0, 0},{0, 0, 0, 0}};
77674 static swig_cast_info _swigc__p_p_char[] = {  {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
77675 static swig_cast_info _swigc__p_p_p_char[] = {  {&_swigt__p_p_p_char, 0, 0, 0},{0, 0, 0, 0}};
77676 static swig_cast_info _swigc__p_p_void[] = {  {&_swigt__p_p_void, 0, 0, 0},{0, 0, 0, 0}};
77677 static swig_cast_info _swigc__p_second_type[] = {  {&_swigt__p_second_type, 0, 0, 0},{0, 0, 0, 0}};
77678 static swig_cast_info _swigc__p_short[] = {  {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}};
77679 static swig_cast_info _swigc__p_size_type[] = {  {&_swigt__p_size_type, 0, 0, 0},{0, 0, 0, 0}};
77680 static swig_cast_info _swigc__p_std__allocatorT_COORDINATE_t[] = {  {&_swigt__p_std__allocatorT_COORDINATE_t, 0, 0, 0},{0, 0, 0, 0}};
77681 static swig_cast_info _swigc__p_std__allocatorT_SOLUTION_t[] = {  {&_swigt__p_std__allocatorT_SOLUTION_t, 0, 0, 0},{0, 0, 0, 0}};
77682 static swig_cast_info _swigc__p_std__allocatorT_char_const_p_t[] = {  {&_swigt__p_std__allocatorT_char_const_p_t, 0, 0, 0},{0, 0, 0, 0}};
77683 static swig_cast_info _swigc__p_std__allocatorT_double_t[] = {  {&_swigt__p_std__allocatorT_double_t, 0, 0, 0},{0, 0, 0, 0}};
77684 static swig_cast_info _swigc__p_std__allocatorT_duplex_list_t_t[] = {  {&_swigt__p_std__allocatorT_duplex_list_t_t, 0, 0, 0},{0, 0, 0, 0}};
77685 static swig_cast_info _swigc__p_std__allocatorT_heat_capacity_result_t[] = {  {&_swigt__p_std__allocatorT_heat_capacity_result_t, 0, 0, 0},{0, 0, 0, 0}};
77686 static swig_cast_info _swigc__p_std__allocatorT_int_t[] = {  {&_swigt__p_std__allocatorT_int_t, 0, 0, 0},{0, 0, 0, 0}};
77687 static swig_cast_info _swigc__p_std__allocatorT_std__string_t[] = {  {&_swigt__p_std__allocatorT_std__string_t, 0, 0, 0},{0, 0, 0, 0}};
77688 static swig_cast_info _swigc__p_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t[] = {  {&_swigt__p_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
77689 static swig_cast_info _swigc__p_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t[] = {  {&_swigt__p_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
77690 static swig_cast_info _swigc__p_std__allocatorT_subopt_solution_t[] = {  {&_swigt__p_std__allocatorT_subopt_solution_t, 0, 0, 0},{0, 0, 0, 0}};
77691 static swig_cast_info _swigc__p_std__allocatorT_unsigned_int_t[] = {  {&_swigt__p_std__allocatorT_unsigned_int_t, 0, 0, 0},{0, 0, 0, 0}};
77692 static swig_cast_info _swigc__p_std__allocatorT_vrna_ep_t_t[] = {  {&_swigt__p_std__allocatorT_vrna_ep_t_t, 0, 0, 0},{0, 0, 0, 0}};
77693 static swig_cast_info _swigc__p_std__allocatorT_vrna_move_t_t[] = {  {&_swigt__p_std__allocatorT_vrna_move_t_t, 0, 0, 0},{0, 0, 0, 0}};
77694 static swig_cast_info _swigc__p_std__allocatorT_vrna_path_t_t[] = {  {&_swigt__p_std__allocatorT_vrna_path_t_t, 0, 0, 0},{0, 0, 0, 0}};
77695 static swig_cast_info _swigc__p_std__invalid_argument[] = {  {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}};
77696 static swig_cast_info _swigc__p_std__pairT_double_double_t[] = {  {&_swigt__p_std__pairT_double_double_t, 0, 0, 0},{0, 0, 0, 0}};
77697 static swig_cast_info _swigc__p_std__string[] = {  {&_swigt__p_std__string, 0, 0, 0},{0, 0, 0, 0}};
77698 static swig_cast_info _swigc__p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t[] = {  {&_swigt__p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t, 0, 0, 0},{0, 0, 0, 0}};
77699 static swig_cast_info _swigc__p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t[] = {  {&_swigt__p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t, 0, 0, 0},{0, 0, 0, 0}};
77700 static swig_cast_info _swigc__p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t[] = {  {&_swigt__p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t, 0, 0, 0},{0, 0, 0, 0}};
77701 static swig_cast_info _swigc__p_std__vectorT_double_std__allocatorT_double_t_t[] = {  {&_swigt__p_std__vectorT_double_std__allocatorT_double_t_t, 0, 0, 0},{0, 0, 0, 0}};
77702 static swig_cast_info _swigc__p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t[] = {  {&_swigt__p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
77703 static swig_cast_info _swigc__p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t[] = {  {&_swigt__p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t, 0, 0, 0},{0, 0, 0, 0}};
77704 static swig_cast_info _swigc__p_std__vectorT_int_std__allocatorT_int_t_t[] = {  {&_swigt__p_std__vectorT_int_std__allocatorT_int_t_t, 0, 0, 0},{0, 0, 0, 0}};
77705 static swig_cast_info _swigc__p_std__vectorT_std__string_std__allocatorT_std__string_t_t[] = {  {&_swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0, 0, 0},{0, 0, 0, 0}};
77706 static swig_cast_info _swigc__p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t[] = {  {&_swigt__p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
77707 static swig_cast_info _swigc__p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t[] = {  {&_swigt__p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
77708 static swig_cast_info _swigc__p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t[] = {  {&_swigt__p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t, 0, 0, 0},{0, 0, 0, 0}};
77709 static swig_cast_info _swigc__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t[] = {  {&_swigt__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0, 0, 0},{0, 0, 0, 0}};
77710 static swig_cast_info _swigc__p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t[] = {  {&_swigt__p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
77711 static swig_cast_info _swigc__p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t[] = {  {&_swigt__p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
77712 static swig_cast_info _swigc__p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t[] = {  {&_swigt__p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
77713 static swig_cast_info _swigc__p_subopt_solution[] = {  {&_swigt__p_subopt_solution, 0, 0, 0},{0, 0, 0, 0}};
77714 static swig_cast_info _swigc__p_swString[] = {  {&_swigt__p_swString, 0, 0, 0},{0, 0, 0, 0}};
77715 static swig_cast_info _swigc__p_swig__SwigPyIterator[] = {  {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}};
77716 static swig_cast_info _swigc__p_unsigned_int[] = {  {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
77717 static swig_cast_info _swigc__p_unsigned_short[] = {  {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}};
77718 static swig_cast_info _swigc__p_value_type[] = {  {&_swigt__p_value_type, 0, 0, 0},{0, 0, 0, 0}};
77719 static swig_cast_info _swigc__p_void[] = {  {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
77720 static swig_cast_info _swigc__p_vrna_basepair_t[] = {  {&_swigt__p_vrna_basepair_t, 0, 0, 0},{0, 0, 0, 0}};
77721 static swig_cast_info _swigc__p_vrna_bp_stack_s[] = {  {&_swigt__p_vrna_bp_stack_s, 0, 0, 0},{0, 0, 0, 0}};
77722 static swig_cast_info _swigc__p_vrna_command_s[] = {  {&_swigt__p_vrna_command_s, 0, 0, 0},{0, 0, 0, 0}};
77723 static swig_cast_info _swigc__p_vrna_cpair_s[] = {  {&_swigt__p_vrna_cpair_s, 0, 0, 0},{0, 0, 0, 0}};
77724 static swig_cast_info _swigc__p_vrna_dimer_pf_s[] = {  {&_swigt__p_vrna_dimer_pf_s, 0, 0, 0},{0, 0, 0, 0}};
77725 static swig_cast_info _swigc__p_vrna_elem_prob_s[] = {  {&_swigt__p_vrna_elem_prob_s, 0, 0, 0},{0, 0, 0, 0}};
77726 static swig_cast_info _swigc__p_vrna_ep_t[] = {  {&_swigt__p_vrna_ep_t, 0, 0, 0},{0, 0, 0, 0}};
77727 static swig_cast_info _swigc__p_vrna_exp_param_t[] = {  {&_swigt__p_vrna_exp_param_t, 0, 0, 0},{0, 0, 0, 0}};
77728 static swig_cast_info _swigc__p_vrna_fold_compound_t[] = {  {&_swigt__p_vrna_fold_compound_t, 0, 0, 0},{0, 0, 0, 0}};
77729 static swig_cast_info _swigc__p_vrna_md_t[] = {  {&_swigt__p_vrna_md_t, 0, 0, 0},{0, 0, 0, 0}};
77730 static swig_cast_info _swigc__p_vrna_move_t[] = {  {&_swigt__p_vrna_move_t, 0, 0, 0},{0, 0, 0, 0}};
77731 static swig_cast_info _swigc__p_vrna_param_t[] = {  {&_swigt__p_vrna_param_t, 0, 0, 0},{0, 0, 0, 0}};
77732 static swig_cast_info _swigc__p_vrna_path_options_s[] = {  {&_swigt__p_vrna_path_options_s, 0, 0, 0},{0, 0, 0, 0}};
77733 static swig_cast_info _swigc__p_vrna_path_s[] = {  {&_swigt__p_vrna_path_s, 0, 0, 0},{0, 0, 0, 0}};
77734 static swig_cast_info _swigc__p_vrna_path_t[] = {  {&_swigt__p_vrna_path_t, 0, 0, 0},{0, 0, 0, 0}};
77735 static swig_cast_info _swigc__p_vrna_pbacktrack_mem_t[] = {  {&_swigt__p_vrna_pbacktrack_mem_t, 0, 0, 0},{0, 0, 0, 0}};
77736 static swig_cast_info _swigc__p_vrna_pinfo_s[] = {  {&_swigt__p_vrna_pinfo_s, 0, 0, 0},{0, 0, 0, 0}};
77737 static swig_cast_info _swigc__p_vrna_sc_s[] = {  {&_swigt__p_vrna_sc_s, 0, 0, 0},{0, 0, 0, 0}};
77738 
77739 static swig_cast_info *swig_cast_initial[] = {
77740   _swigc__p_COORDINATE,
77741   _swigc__p_SOLUTION,
77742   _swigc__p_Tree,
77743   _swigc__p__struct_en,
77744   _swigc__p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__double,
77745   _swigc__p_a_3_VRNA_GQUAD_MAX_LINKER_LENGTH_1__doubleArray,
77746   _swigc__p_a_5__a_5__double,
77747   _swigc__p_a_5__a_5__doubleArray,
77748   _swigc__p_a_5__a_5__int,
77749   _swigc__p_a_5__a_5__intArray,
77750   _swigc__p_a_5__double,
77751   _swigc__p_a_5__doubleArray,
77752   _swigc__p_a_7_1__a_5__a_5__a_5__a_5__int,
77753   _swigc__p_a_7_1__a_5__a_5__a_5__a_5__intArray,
77754   _swigc__p_a_7_1__a_5__a_5__a_5__int,
77755   _swigc__p_a_7_1__a_5__a_5__a_5__intArray,
77756   _swigc__p_a_7_1__a_5__a_5__int,
77757   _swigc__p_a_7_1__a_5__a_5__intArray,
77758   _swigc__p_a_MAXLOOP_1__double,
77759   _swigc__p_a_MAXLOOP_1__doubleArray,
77760   _swigc__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__double,
77761   _swigc__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__doubleArray,
77762   _swigc__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__int,
77763   _swigc__p_a_NBPAIRS_1__a_5__a_5__a_5__a_5__intArray,
77764   _swigc__p_a_NBPAIRS_1__a_5__a_5__a_5__double,
77765   _swigc__p_a_NBPAIRS_1__a_5__a_5__a_5__doubleArray,
77766   _swigc__p_a_NBPAIRS_1__a_5__a_5__a_5__int,
77767   _swigc__p_a_NBPAIRS_1__a_5__a_5__a_5__intArray,
77768   _swigc__p_a_NBPAIRS_1__a_5__a_5__double,
77769   _swigc__p_a_NBPAIRS_1__a_5__a_5__doubleArray,
77770   _swigc__p_a_NBPAIRS_1__a_5__a_5__int,
77771   _swigc__p_a_NBPAIRS_1__a_5__a_5__intArray,
77772   _swigc__p_a_NBPAIRS_1__double,
77773   _swigc__p_a_NBPAIRS_1__doubleArray,
77774   _swigc__p_allocator_type,
77775   _swigc__p_char,
77776   _swigc__p_difference_type,
77777   _swigc__p_double,
77778   _swigc__p_doubleArray,
77779   _swigc__p_duplexT,
77780   _swigc__p_duplex_list_t,
77781   _swigc__p_first_type,
77782   _swigc__p_float,
77783   _swigc__p_floatArray,
77784   _swigc__p_heat_capacity_result,
77785   _swigc__p_int,
77786   _swigc__p_intArray,
77787   _swigc__p_my_fc_type_e,
77788   _swigc__p_p_PyObject,
77789   _swigc__p_p_char,
77790   _swigc__p_p_p_char,
77791   _swigc__p_p_void,
77792   _swigc__p_second_type,
77793   _swigc__p_short,
77794   _swigc__p_size_type,
77795   _swigc__p_std__allocatorT_COORDINATE_t,
77796   _swigc__p_std__allocatorT_SOLUTION_t,
77797   _swigc__p_std__allocatorT_char_const_p_t,
77798   _swigc__p_std__allocatorT_double_t,
77799   _swigc__p_std__allocatorT_duplex_list_t_t,
77800   _swigc__p_std__allocatorT_heat_capacity_result_t,
77801   _swigc__p_std__allocatorT_int_t,
77802   _swigc__p_std__allocatorT_std__string_t,
77803   _swigc__p_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t,
77804   _swigc__p_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t,
77805   _swigc__p_std__allocatorT_subopt_solution_t,
77806   _swigc__p_std__allocatorT_unsigned_int_t,
77807   _swigc__p_std__allocatorT_vrna_ep_t_t,
77808   _swigc__p_std__allocatorT_vrna_move_t_t,
77809   _swigc__p_std__allocatorT_vrna_path_t_t,
77810   _swigc__p_std__invalid_argument,
77811   _swigc__p_std__pairT_double_double_t,
77812   _swigc__p_std__string,
77813   _swigc__p_std__vectorT_COORDINATE_std__allocatorT_COORDINATE_t_t,
77814   _swigc__p_std__vectorT_SOLUTION_std__allocatorT_SOLUTION_t_t,
77815   _swigc__p_std__vectorT_char_const_p_std__allocatorT_char_const_p_t_t,
77816   _swigc__p_std__vectorT_double_std__allocatorT_double_t_t,
77817   _swigc__p_std__vectorT_duplex_list_t_std__allocatorT_duplex_list_t_t_t,
77818   _swigc__p_std__vectorT_heat_capacity_result_std__allocatorT_heat_capacity_result_t_t,
77819   _swigc__p_std__vectorT_int_std__allocatorT_int_t_t,
77820   _swigc__p_std__vectorT_std__string_std__allocatorT_std__string_t_t,
77821   _swigc__p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t,
77822   _swigc__p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t,
77823   _swigc__p_std__vectorT_subopt_solution_std__allocatorT_subopt_solution_t_t,
77824   _swigc__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t,
77825   _swigc__p_std__vectorT_vrna_ep_t_std__allocatorT_vrna_ep_t_t_t,
77826   _swigc__p_std__vectorT_vrna_move_t_std__allocatorT_vrna_move_t_t_t,
77827   _swigc__p_std__vectorT_vrna_path_t_std__allocatorT_vrna_path_t_t_t,
77828   _swigc__p_subopt_solution,
77829   _swigc__p_swString,
77830   _swigc__p_swig__SwigPyIterator,
77831   _swigc__p_unsigned_int,
77832   _swigc__p_unsigned_short,
77833   _swigc__p_value_type,
77834   _swigc__p_void,
77835   _swigc__p_vrna_basepair_t,
77836   _swigc__p_vrna_bp_stack_s,
77837   _swigc__p_vrna_command_s,
77838   _swigc__p_vrna_cpair_s,
77839   _swigc__p_vrna_dimer_pf_s,
77840   _swigc__p_vrna_elem_prob_s,
77841   _swigc__p_vrna_ep_t,
77842   _swigc__p_vrna_exp_param_t,
77843   _swigc__p_vrna_fold_compound_t,
77844   _swigc__p_vrna_md_t,
77845   _swigc__p_vrna_move_t,
77846   _swigc__p_vrna_param_t,
77847   _swigc__p_vrna_path_options_s,
77848   _swigc__p_vrna_path_s,
77849   _swigc__p_vrna_path_t,
77850   _swigc__p_vrna_pbacktrack_mem_t,
77851   _swigc__p_vrna_pinfo_s,
77852   _swigc__p_vrna_sc_s,
77853 };
77854 
77855 
77856 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
77857 
77858 static swig_const_info swig_const_table[] = {
77859 {0, 0, 0, 0.0, 0, 0}};
77860 
77861 #ifdef __cplusplus
77862 }
77863 #endif
77864 /* -----------------------------------------------------------------------------
77865  * Type initialization:
77866  * This problem is tough by the requirement that no dynamic
77867  * memory is used. Also, since swig_type_info structures store pointers to
77868  * swig_cast_info structures and swig_cast_info structures store pointers back
77869  * to swig_type_info structures, we need some lookup code at initialization.
77870  * The idea is that swig generates all the structures that are needed.
77871  * The runtime then collects these partially filled structures.
77872  * The SWIG_InitializeModule function takes these initial arrays out of
77873  * swig_module, and does all the lookup, filling in the swig_module.types
77874  * array with the correct data and linking the correct swig_cast_info
77875  * structures together.
77876  *
77877  * The generated swig_type_info structures are assigned statically to an initial
77878  * array. We just loop through that array, and handle each type individually.
77879  * First we lookup if this type has been already loaded, and if so, use the
77880  * loaded structure instead of the generated one. Then we have to fill in the
77881  * cast linked list. The cast data is initially stored in something like a
77882  * two-dimensional array. Each row corresponds to a type (there are the same
77883  * number of rows as there are in the swig_type_initial array). Each entry in
77884  * a column is one of the swig_cast_info structures for that type.
77885  * The cast_initial array is actually an array of arrays, because each row has
77886  * a variable number of columns. So to actually build the cast linked list,
77887  * we find the array of casts associated with the type, and loop through it
77888  * adding the casts to the list. The one last trick we need to do is making
77889  * sure the type pointer in the swig_cast_info struct is correct.
77890  *
77891  * First off, we lookup the cast->type name to see if it is already loaded.
77892  * There are three cases to handle:
77893  *  1) If the cast->type has already been loaded AND the type we are adding
77894  *     casting info to has not been loaded (it is in this module), THEN we
77895  *     replace the cast->type pointer with the type pointer that has already
77896  *     been loaded.
77897  *  2) If BOTH types (the one we are adding casting info to, and the
77898  *     cast->type) are loaded, THEN the cast info has already been loaded by
77899  *     the previous module so we just ignore it.
77900  *  3) Finally, if cast->type has not already been loaded, then we add that
77901  *     swig_cast_info to the linked list (because the cast->type) pointer will
77902  *     be correct.
77903  * ----------------------------------------------------------------------------- */
77904 
77905 #ifdef __cplusplus
77906 extern "C" {
77907 #if 0
77908 } /* c-mode */
77909 #endif
77910 #endif
77911 
77912 #if 0
77913 #define SWIGRUNTIME_DEBUG
77914 #endif
77915 
77916 
77917 SWIGRUNTIME void
SWIG_InitializeModule(void * clientdata)77918 SWIG_InitializeModule(void *clientdata) {
77919   size_t i;
77920   swig_module_info *module_head, *iter;
77921   int init;
77922 
77923   /* check to see if the circular list has been setup, if not, set it up */
77924   if (swig_module.next==0) {
77925     /* Initialize the swig_module */
77926     swig_module.type_initial = swig_type_initial;
77927     swig_module.cast_initial = swig_cast_initial;
77928     swig_module.next = &swig_module;
77929     init = 1;
77930   } else {
77931     init = 0;
77932   }
77933 
77934   /* Try and load any already created modules */
77935   module_head = SWIG_GetModule(clientdata);
77936   if (!module_head) {
77937     /* This is the first module loaded for this interpreter */
77938     /* so set the swig module into the interpreter */
77939     SWIG_SetModule(clientdata, &swig_module);
77940   } else {
77941     /* the interpreter has loaded a SWIG module, but has it loaded this one? */
77942     iter=module_head;
77943     do {
77944       if (iter==&swig_module) {
77945         /* Our module is already in the list, so there's nothing more to do. */
77946         return;
77947       }
77948       iter=iter->next;
77949     } while (iter!= module_head);
77950 
77951     /* otherwise we must add our module into the list */
77952     swig_module.next = module_head->next;
77953     module_head->next = &swig_module;
77954   }
77955 
77956   /* When multiple interpreters are used, a module could have already been initialized in
77957        a different interpreter, but not yet have a pointer in this interpreter.
77958        In this case, we do not want to continue adding types... everything should be
77959        set up already */
77960   if (init == 0) return;
77961 
77962   /* Now work on filling in swig_module.types */
77963 #ifdef SWIGRUNTIME_DEBUG
77964   printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
77965 #endif
77966   for (i = 0; i < swig_module.size; ++i) {
77967     swig_type_info *type = 0;
77968     swig_type_info *ret;
77969     swig_cast_info *cast;
77970 
77971 #ifdef SWIGRUNTIME_DEBUG
77972     printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
77973 #endif
77974 
77975     /* if there is another module already loaded */
77976     if (swig_module.next != &swig_module) {
77977       type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
77978     }
77979     if (type) {
77980       /* Overwrite clientdata field */
77981 #ifdef SWIGRUNTIME_DEBUG
77982       printf("SWIG_InitializeModule: found type %s\n", type->name);
77983 #endif
77984       if (swig_module.type_initial[i]->clientdata) {
77985         type->clientdata = swig_module.type_initial[i]->clientdata;
77986 #ifdef SWIGRUNTIME_DEBUG
77987         printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
77988 #endif
77989       }
77990     } else {
77991       type = swig_module.type_initial[i];
77992     }
77993 
77994     /* Insert casting types */
77995     cast = swig_module.cast_initial[i];
77996     while (cast->type) {
77997       /* Don't need to add information already in the list */
77998       ret = 0;
77999 #ifdef SWIGRUNTIME_DEBUG
78000       printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
78001 #endif
78002       if (swig_module.next != &swig_module) {
78003         ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
78004 #ifdef SWIGRUNTIME_DEBUG
78005         if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
78006 #endif
78007       }
78008       if (ret) {
78009         if (type == swig_module.type_initial[i]) {
78010 #ifdef SWIGRUNTIME_DEBUG
78011           printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
78012 #endif
78013           cast->type = ret;
78014           ret = 0;
78015         } else {
78016           /* Check for casting already in the list */
78017           swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
78018 #ifdef SWIGRUNTIME_DEBUG
78019           if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
78020 #endif
78021           if (!ocast) ret = 0;
78022         }
78023       }
78024 
78025       if (!ret) {
78026 #ifdef SWIGRUNTIME_DEBUG
78027         printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
78028 #endif
78029         if (type->cast) {
78030           type->cast->prev = cast;
78031           cast->next = type->cast;
78032         }
78033         type->cast = cast;
78034       }
78035       cast++;
78036     }
78037     /* Set entry in modules->types array equal to the type */
78038     swig_module.types[i] = type;
78039   }
78040   swig_module.types[i] = 0;
78041 
78042 #ifdef SWIGRUNTIME_DEBUG
78043   printf("**** SWIG_InitializeModule: Cast List ******\n");
78044   for (i = 0; i < swig_module.size; ++i) {
78045     int j = 0;
78046     swig_cast_info *cast = swig_module.cast_initial[i];
78047     printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
78048     while (cast->type) {
78049       printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
78050       cast++;
78051       ++j;
78052     }
78053     printf("---- Total casts: %d\n",j);
78054   }
78055   printf("**** SWIG_InitializeModule: Cast List ******\n");
78056 #endif
78057 }
78058 
78059 /* This function will propagate the clientdata field of type to
78060 * any new swig_type_info structures that have been added into the list
78061 * of equivalent types.  It is like calling
78062 * SWIG_TypeClientData(type, clientdata) a second time.
78063 */
78064 SWIGRUNTIME void
SWIG_PropagateClientData(void)78065 SWIG_PropagateClientData(void) {
78066   size_t i;
78067   swig_cast_info *equiv;
78068   static int init_run = 0;
78069 
78070   if (init_run) return;
78071   init_run = 1;
78072 
78073   for (i = 0; i < swig_module.size; i++) {
78074     if (swig_module.types[i]->clientdata) {
78075       equiv = swig_module.types[i]->cast;
78076       while (equiv) {
78077         if (!equiv->converter) {
78078           if (equiv->type && !equiv->type->clientdata)
78079           SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
78080         }
78081         equiv = equiv->next;
78082       }
78083     }
78084   }
78085 }
78086 
78087 #ifdef __cplusplus
78088 #if 0
78089 {
78090   /* c-mode */
78091 #endif
78092 }
78093 #endif
78094 
78095 
78096 
78097 #ifdef __cplusplus
78098 extern "C" {
78099 #endif
78100 
78101   /* Python-specific SWIG API */
78102 #define SWIG_newvarlink()                             SWIG_Python_newvarlink()
78103 #define SWIG_addvarlink(p, name, get_attr, set_attr)  SWIG_Python_addvarlink(p, name, get_attr, set_attr)
78104 #define SWIG_InstallConstants(d, constants)           SWIG_Python_InstallConstants(d, constants)
78105 
78106   /* -----------------------------------------------------------------------------
78107    * global variable support code.
78108    * ----------------------------------------------------------------------------- */
78109 
78110   typedef struct swig_globalvar {
78111     char       *name;                  /* Name of global variable */
78112     PyObject *(*get_attr)(void);       /* Return the current value */
78113     int       (*set_attr)(PyObject *); /* Set the value */
78114     struct swig_globalvar *next;
78115   } swig_globalvar;
78116 
78117   typedef struct swig_varlinkobject {
78118     PyObject_HEAD
78119     swig_globalvar *vars;
78120   } swig_varlinkobject;
78121 
78122   SWIGINTERN PyObject *
swig_varlink_repr(swig_varlinkobject * SWIGUNUSEDPARM (v))78123   swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
78124 #if PY_VERSION_HEX >= 0x03000000
78125     return PyUnicode_InternFromString("<Swig global variables>");
78126 #else
78127     return PyString_FromString("<Swig global variables>");
78128 #endif
78129   }
78130 
78131   SWIGINTERN PyObject *
swig_varlink_str(swig_varlinkobject * v)78132   swig_varlink_str(swig_varlinkobject *v) {
78133 #if PY_VERSION_HEX >= 0x03000000
78134     PyObject *str = PyUnicode_InternFromString("(");
78135     PyObject *tail;
78136     PyObject *joined;
78137     swig_globalvar *var;
78138     for (var = v->vars; var; var=var->next) {
78139       tail = PyUnicode_FromString(var->name);
78140       joined = PyUnicode_Concat(str, tail);
78141       Py_DecRef(str);
78142       Py_DecRef(tail);
78143       str = joined;
78144       if (var->next) {
78145         tail = PyUnicode_InternFromString(", ");
78146         joined = PyUnicode_Concat(str, tail);
78147         Py_DecRef(str);
78148         Py_DecRef(tail);
78149         str = joined;
78150       }
78151     }
78152     tail = PyUnicode_InternFromString(")");
78153     joined = PyUnicode_Concat(str, tail);
78154     Py_DecRef(str);
78155     Py_DecRef(tail);
78156     str = joined;
78157 #else
78158     PyObject *str = PyString_FromString("(");
78159     swig_globalvar *var;
78160     for (var = v->vars; var; var=var->next) {
78161       PyString_ConcatAndDel(&str,PyString_FromString(var->name));
78162       if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
78163     }
78164     PyString_ConcatAndDel(&str,PyString_FromString(")"));
78165 #endif
78166     return str;
78167   }
78168 
78169   SWIGINTERN void
swig_varlink_dealloc(swig_varlinkobject * v)78170   swig_varlink_dealloc(swig_varlinkobject *v) {
78171     swig_globalvar *var = v->vars;
78172     while (var) {
78173       swig_globalvar *n = var->next;
78174       free(var->name);
78175       free(var);
78176       var = n;
78177     }
78178   }
78179 
78180   SWIGINTERN PyObject *
swig_varlink_getattr(swig_varlinkobject * v,char * n)78181   swig_varlink_getattr(swig_varlinkobject *v, char *n) {
78182     PyObject *res = NULL;
78183     swig_globalvar *var = v->vars;
78184     while (var) {
78185       if (strcmp(var->name,n) == 0) {
78186         res = (*var->get_attr)();
78187         break;
78188       }
78189       var = var->next;
78190     }
78191     if (res == NULL && !PyErr_Occurred()) {
78192       PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
78193     }
78194     return res;
78195   }
78196 
78197   SWIGINTERN int
swig_varlink_setattr(swig_varlinkobject * v,char * n,PyObject * p)78198   swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
78199     int res = 1;
78200     swig_globalvar *var = v->vars;
78201     while (var) {
78202       if (strcmp(var->name,n) == 0) {
78203         res = (*var->set_attr)(p);
78204         break;
78205       }
78206       var = var->next;
78207     }
78208     if (res == 1 && !PyErr_Occurred()) {
78209       PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
78210     }
78211     return res;
78212   }
78213 
78214   SWIGINTERN PyTypeObject*
swig_varlink_type(void)78215   swig_varlink_type(void) {
78216     static char varlink__doc__[] = "Swig var link object";
78217     static PyTypeObject varlink_type;
78218     static int type_init = 0;
78219     if (!type_init) {
78220       const PyTypeObject tmp = {
78221 #if PY_VERSION_HEX >= 0x03000000
78222         PyVarObject_HEAD_INIT(NULL, 0)
78223 #else
78224         PyObject_HEAD_INIT(NULL)
78225         0,                                  /* ob_size */
78226 #endif
78227         "swigvarlink",                      /* tp_name */
78228         sizeof(swig_varlinkobject),         /* tp_basicsize */
78229         0,                                  /* tp_itemsize */
78230         (destructor) swig_varlink_dealloc,  /* tp_dealloc */
78231         0,                                  /* tp_print */
78232         (getattrfunc) swig_varlink_getattr, /* tp_getattr */
78233         (setattrfunc) swig_varlink_setattr, /* tp_setattr */
78234         0,                                  /* tp_compare */
78235         (reprfunc) swig_varlink_repr,       /* tp_repr */
78236         0,                                  /* tp_as_number */
78237         0,                                  /* tp_as_sequence */
78238         0,                                  /* tp_as_mapping */
78239         0,                                  /* tp_hash */
78240         0,                                  /* tp_call */
78241         (reprfunc) swig_varlink_str,        /* tp_str */
78242         0,                                  /* tp_getattro */
78243         0,                                  /* tp_setattro */
78244         0,                                  /* tp_as_buffer */
78245         0,                                  /* tp_flags */
78246         varlink__doc__,                     /* tp_doc */
78247         0,                                  /* tp_traverse */
78248         0,                                  /* tp_clear */
78249         0,                                  /* tp_richcompare */
78250         0,                                  /* tp_weaklistoffset */
78251         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
78252         0,                                  /* tp_del */
78253         0,                                  /* tp_version_tag */
78254 #if PY_VERSION_HEX >= 0x03040000
78255         0,                                  /* tp_finalize */
78256 #endif
78257 #if PY_VERSION_HEX >= 0x03080000
78258         0,                                  /* tp_vectorcall */
78259 #endif
78260 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
78261         0,                                  /* tp_print */
78262 #endif
78263 #ifdef COUNT_ALLOCS
78264         0,                                  /* tp_allocs */
78265         0,                                  /* tp_frees */
78266         0,                                  /* tp_maxalloc */
78267         0,                                  /* tp_prev */
78268         0                                   /* tp_next */
78269 #endif
78270       };
78271       varlink_type = tmp;
78272       type_init = 1;
78273       if (PyType_Ready(&varlink_type) < 0)
78274       return NULL;
78275     }
78276     return &varlink_type;
78277   }
78278 
78279   /* Create a variable linking object for use later */
78280   SWIGINTERN PyObject *
SWIG_Python_newvarlink(void)78281   SWIG_Python_newvarlink(void) {
78282     swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
78283     if (result) {
78284       result->vars = 0;
78285     }
78286     return ((PyObject*) result);
78287   }
78288 
78289   SWIGINTERN void
SWIG_Python_addvarlink(PyObject * p,const char * name,PyObject * (* get_attr)(void),int (* set_attr)(PyObject * p))78290   SWIG_Python_addvarlink(PyObject *p, const char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
78291     swig_varlinkobject *v = (swig_varlinkobject *) p;
78292     swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
78293     if (gv) {
78294       size_t size = strlen(name)+1;
78295       gv->name = (char *)malloc(size);
78296       if (gv->name) {
78297         memcpy(gv->name, name, size);
78298         gv->get_attr = get_attr;
78299         gv->set_attr = set_attr;
78300         gv->next = v->vars;
78301       }
78302     }
78303     v->vars = gv;
78304   }
78305 
78306   SWIGINTERN PyObject *
SWIG_globals(void)78307   SWIG_globals(void) {
78308     static PyObject *globals = 0;
78309     if (!globals) {
78310       globals = SWIG_newvarlink();
78311     }
78312     return globals;
78313   }
78314 
78315   /* -----------------------------------------------------------------------------
78316    * constants/methods manipulation
78317    * ----------------------------------------------------------------------------- */
78318 
78319   /* Install Constants */
78320   SWIGINTERN void
SWIG_Python_InstallConstants(PyObject * d,swig_const_info constants[])78321   SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
78322     PyObject *obj = 0;
78323     size_t i;
78324     for (i = 0; constants[i].type; ++i) {
78325       switch(constants[i].type) {
78326       case SWIG_PY_POINTER:
78327         obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
78328         break;
78329       case SWIG_PY_BINARY:
78330         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
78331         break;
78332       default:
78333         obj = 0;
78334         break;
78335       }
78336       if (obj) {
78337         PyDict_SetItemString(d, constants[i].name, obj);
78338         Py_DECREF(obj);
78339       }
78340     }
78341   }
78342 
78343   /* -----------------------------------------------------------------------------*/
78344   /* Fix SwigMethods to carry the callback ptrs when needed */
78345   /* -----------------------------------------------------------------------------*/
78346 
78347   SWIGINTERN void
SWIG_Python_FixMethods(PyMethodDef * methods,swig_const_info * const_table,swig_type_info ** types,swig_type_info ** types_initial)78348   SWIG_Python_FixMethods(PyMethodDef *methods,
78349     swig_const_info *const_table,
78350     swig_type_info **types,
78351     swig_type_info **types_initial) {
78352     size_t i;
78353     for (i = 0; methods[i].ml_name; ++i) {
78354       const char *c = methods[i].ml_doc;
78355       if (!c) continue;
78356       c = strstr(c, "swig_ptr: ");
78357       if (c) {
78358         int j;
78359         swig_const_info *ci = 0;
78360         const char *name = c + 10;
78361         for (j = 0; const_table[j].type; ++j) {
78362           if (strncmp(const_table[j].name, name,
78363               strlen(const_table[j].name)) == 0) {
78364             ci = &(const_table[j]);
78365             break;
78366           }
78367         }
78368         if (ci) {
78369           void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
78370           if (ptr) {
78371             size_t shift = (ci->ptype) - types;
78372             swig_type_info *ty = types_initial[shift];
78373             size_t ldoc = (c - methods[i].ml_doc);
78374             size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
78375             char *ndoc = (char*)malloc(ldoc + lptr + 10);
78376             if (ndoc) {
78377               char *buff = ndoc;
78378               memcpy(buff, methods[i].ml_doc, ldoc);
78379               buff += ldoc;
78380               memcpy(buff, "swig_ptr: ", 10);
78381               buff += 10;
78382               SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
78383               methods[i].ml_doc = ndoc;
78384             }
78385           }
78386         }
78387       }
78388     }
78389   }
78390 
78391   /* -----------------------------------------------------------------------------
78392    * Method creation and docstring support functions
78393    * ----------------------------------------------------------------------------- */
78394 
78395   /* -----------------------------------------------------------------------------
78396    * Function to find the method definition with the correct docstring for the
78397    * proxy module as opposed to the low-level API
78398    * ----------------------------------------------------------------------------- */
78399 
SWIG_PythonGetProxyDoc(const char * name)78400   SWIGINTERN PyMethodDef *SWIG_PythonGetProxyDoc(const char *name) {
78401     /* Find the function in the modified method table */
78402     size_t offset = 0;
78403     int found = 0;
78404     while (SwigMethods_proxydocs[offset].ml_meth != NULL) {
78405       if (strcmp(SwigMethods_proxydocs[offset].ml_name, name) == 0) {
78406         found = 1;
78407         break;
78408       }
78409       offset++;
78410     }
78411     /* Use the copy with the modified docstring if available */
78412     return found ? &SwigMethods_proxydocs[offset] : NULL;
78413   }
78414 
78415   /* -----------------------------------------------------------------------------
78416    * Wrapper of PyInstanceMethod_New() used in Python 3
78417    * It is exported to the generated module, used for -fastproxy
78418    * ----------------------------------------------------------------------------- */
78419 
SWIG_PyInstanceMethod_New(PyObject * SWIGUNUSEDPARM (self),PyObject * func)78420   SWIGINTERN PyObject *SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) {
78421     if (PyCFunction_Check(func)) {
78422       PyCFunctionObject *funcobj = (PyCFunctionObject *)func;
78423       PyMethodDef *ml = SWIG_PythonGetProxyDoc(funcobj->m_ml->ml_name);
78424       if (ml)
78425       func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module);
78426     }
78427 #if PY_VERSION_HEX >= 0x03000000
78428     return PyInstanceMethod_New(func);
78429 #else
78430     return PyMethod_New(func, NULL, NULL);
78431 #endif
78432   }
78433 
78434   /* -----------------------------------------------------------------------------
78435    * Wrapper of PyStaticMethod_New()
78436    * It is exported to the generated module, used for -fastproxy
78437    * ----------------------------------------------------------------------------- */
78438 
SWIG_PyStaticMethod_New(PyObject * SWIGUNUSEDPARM (self),PyObject * func)78439   SWIGINTERN PyObject *SWIG_PyStaticMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) {
78440     if (PyCFunction_Check(func)) {
78441       PyCFunctionObject *funcobj = (PyCFunctionObject *)func;
78442       PyMethodDef *ml = SWIG_PythonGetProxyDoc(funcobj->m_ml->ml_name);
78443       if (ml)
78444       func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module);
78445     }
78446     return PyStaticMethod_New(func);
78447   }
78448 
78449 #ifdef __cplusplus
78450 }
78451 #endif
78452 
78453 /* -----------------------------------------------------------------------------*
78454  *  Partial Init method
78455  * -----------------------------------------------------------------------------*/
78456 
78457 #ifdef __cplusplus
78458 extern "C"
78459 #endif
78460 
78461 SWIGEXPORT
78462 #if PY_VERSION_HEX >= 0x03000000
78463 PyObject*
78464 #else
78465 void
78466 #endif
SWIG_init(void)78467 SWIG_init(void) {
78468   PyObject *m, *d, *md, *globals;
78469 
78470 #if PY_VERSION_HEX >= 0x03000000
78471   static struct PyModuleDef SWIG_module = {
78472     PyModuleDef_HEAD_INIT,
78473     SWIG_name,
78474     NULL,
78475     -1,
78476     SwigMethods,
78477     NULL,
78478     NULL,
78479     NULL,
78480     NULL
78481   };
78482 #endif
78483 
78484 #if defined(SWIGPYTHON_BUILTIN)
78485   static SwigPyClientData SwigPyObject_clientdata = {
78486     0, 0, 0, 0, 0, 0, 0
78487   };
78488   static PyGetSetDef this_getset_def = {
78489     (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
78490   };
78491   static SwigPyGetSet thisown_getset_closure = {
78492     SwigPyObject_own,
78493     SwigPyObject_own
78494   };
78495   static PyGetSetDef thisown_getset_def = {
78496     (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
78497   };
78498   PyTypeObject *builtin_pytype;
78499   int builtin_base_count;
78500   swig_type_info *builtin_basetype;
78501   PyObject *tuple;
78502   PyGetSetDescrObject *static_getset;
78503   PyTypeObject *metatype;
78504   PyTypeObject *swigpyobject;
78505   SwigPyClientData *cd;
78506   PyObject *public_interface, *public_symbol;
78507   PyObject *this_descr;
78508   PyObject *thisown_descr;
78509   PyObject *self = 0;
78510   int i;
78511 
78512   (void)builtin_pytype;
78513   (void)builtin_base_count;
78514   (void)builtin_basetype;
78515   (void)tuple;
78516   (void)static_getset;
78517   (void)self;
78518 
78519   /* Metaclass is used to implement static member variables */
78520   metatype = SwigPyObjectType();
78521   assert(metatype);
78522 #endif
78523 
78524   (void)globals;
78525 
78526   /* Create singletons now to avoid potential deadlocks with multi-threaded usage after module initialization */
78527   SWIG_This();
78528   SWIG_Python_TypeCache();
78529   SwigPyPacked_type();
78530 #ifndef SWIGPYTHON_BUILTIN
78531   SwigPyObject_type();
78532 #endif
78533 
78534   /* Fix SwigMethods to carry the callback ptrs when needed */
78535   SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
78536 
78537 #if PY_VERSION_HEX >= 0x03000000
78538   m = PyModule_Create(&SWIG_module);
78539 #else
78540   m = Py_InitModule(SWIG_name, SwigMethods);
78541 #endif
78542 
78543   md = d = PyModule_GetDict(m);
78544   (void)md;
78545 
78546   SWIG_InitializeModule(0);
78547 
78548 #ifdef SWIGPYTHON_BUILTIN
78549   swigpyobject = SwigPyObject_TypeOnce();
78550 
78551   SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject");
78552   assert(SwigPyObject_stype);
78553   cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
78554   if (!cd) {
78555     SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
78556     SwigPyObject_clientdata.pytype = swigpyobject;
78557   } else if (swigpyobject->tp_basicsize != cd->pytype->tp_basicsize) {
78558     PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
78559 # if PY_VERSION_HEX >= 0x03000000
78560     return NULL;
78561 # else
78562     return;
78563 # endif
78564   }
78565 
78566   /* All objects have a 'this' attribute */
78567   this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
78568   (void)this_descr;
78569 
78570   /* All objects have a 'thisown' attribute */
78571   thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
78572   (void)thisown_descr;
78573 
78574   public_interface = PyList_New(0);
78575   public_symbol = 0;
78576   (void)public_symbol;
78577 
78578   PyDict_SetItemString(md, "__all__", public_interface);
78579   Py_DECREF(public_interface);
78580   for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
78581   SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
78582   for (i = 0; swig_const_table[i].name != 0; ++i)
78583   SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
78584 #endif
78585 
78586   SWIG_InstallConstants(d,swig_const_table);
78587 
78588 
78589   // thread safe initialization
78590   swig::container_owner_attribute();
78591 
78592   SWIG_Python_SetConstant(d, "PARAMETER_FORMAT_DEFAULT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_PARAMETER_FORMAT_DEFAULT)));
78593   SWIG_Python_SetConstant(d, "UNKNOWN",SWIG_From_int(static_cast< int >(UNKNOWN)));
78594   SWIG_Python_SetConstant(d, "QUIT",SWIG_From_int(static_cast< int >(QUIT)));
78595   SWIG_Python_SetConstant(d, "S",SWIG_From_int(static_cast< int >(S)));
78596   SWIG_Python_SetConstant(d, "S_H",SWIG_From_int(static_cast< int >(S_H)));
78597   SWIG_Python_SetConstant(d, "HP",SWIG_From_int(static_cast< int >(HP)));
78598   SWIG_Python_SetConstant(d, "HP_H",SWIG_From_int(static_cast< int >(HP_H)));
78599   SWIG_Python_SetConstant(d, "B",SWIG_From_int(static_cast< int >(B)));
78600   SWIG_Python_SetConstant(d, "B_H",SWIG_From_int(static_cast< int >(B_H)));
78601   SWIG_Python_SetConstant(d, "IL",SWIG_From_int(static_cast< int >(IL)));
78602   SWIG_Python_SetConstant(d, "IL_H",SWIG_From_int(static_cast< int >(IL_H)));
78603   SWIG_Python_SetConstant(d, "MMH",SWIG_From_int(static_cast< int >(MMH)));
78604   SWIG_Python_SetConstant(d, "MMH_H",SWIG_From_int(static_cast< int >(MMH_H)));
78605   SWIG_Python_SetConstant(d, "MMI",SWIG_From_int(static_cast< int >(MMI)));
78606   SWIG_Python_SetConstant(d, "MMI_H",SWIG_From_int(static_cast< int >(MMI_H)));
78607   SWIG_Python_SetConstant(d, "MMI1N",SWIG_From_int(static_cast< int >(MMI1N)));
78608   SWIG_Python_SetConstant(d, "MMI1N_H",SWIG_From_int(static_cast< int >(MMI1N_H)));
78609   SWIG_Python_SetConstant(d, "MMI23",SWIG_From_int(static_cast< int >(MMI23)));
78610   SWIG_Python_SetConstant(d, "MMI23_H",SWIG_From_int(static_cast< int >(MMI23_H)));
78611   SWIG_Python_SetConstant(d, "MMM",SWIG_From_int(static_cast< int >(MMM)));
78612   SWIG_Python_SetConstant(d, "MMM_H",SWIG_From_int(static_cast< int >(MMM_H)));
78613   SWIG_Python_SetConstant(d, "MME",SWIG_From_int(static_cast< int >(MME)));
78614   SWIG_Python_SetConstant(d, "MME_H",SWIG_From_int(static_cast< int >(MME_H)));
78615   SWIG_Python_SetConstant(d, "D5",SWIG_From_int(static_cast< int >(D5)));
78616   SWIG_Python_SetConstant(d, "D5_H",SWIG_From_int(static_cast< int >(D5_H)));
78617   SWIG_Python_SetConstant(d, "D3",SWIG_From_int(static_cast< int >(D3)));
78618   SWIG_Python_SetConstant(d, "D3_H",SWIG_From_int(static_cast< int >(D3_H)));
78619   SWIG_Python_SetConstant(d, "INT11",SWIG_From_int(static_cast< int >(INT11)));
78620   SWIG_Python_SetConstant(d, "INT11_H",SWIG_From_int(static_cast< int >(INT11_H)));
78621   SWIG_Python_SetConstant(d, "INT21",SWIG_From_int(static_cast< int >(INT21)));
78622   SWIG_Python_SetConstant(d, "INT21_H",SWIG_From_int(static_cast< int >(INT21_H)));
78623   SWIG_Python_SetConstant(d, "INT22",SWIG_From_int(static_cast< int >(INT22)));
78624   SWIG_Python_SetConstant(d, "INT22_H",SWIG_From_int(static_cast< int >(INT22_H)));
78625   SWIG_Python_SetConstant(d, "ML",SWIG_From_int(static_cast< int >(ML)));
78626   SWIG_Python_SetConstant(d, "TL",SWIG_From_int(static_cast< int >(TL)));
78627   SWIG_Python_SetConstant(d, "TRI",SWIG_From_int(static_cast< int >(TRI)));
78628   SWIG_Python_SetConstant(d, "HEX",SWIG_From_int(static_cast< int >(HEX)));
78629   SWIG_Python_SetConstant(d, "NIN",SWIG_From_int(static_cast< int >(NIN)));
78630   SWIG_Python_SetConstant(d, "MISC",SWIG_From_int(static_cast< int >(MISC)));
78631   SWIG_Python_SetConstant(d, "GASCONST",SWIG_From_double(static_cast< double >(1.98717)));
78632   SWIG_Python_SetConstant(d, "K0",SWIG_From_double(static_cast< double >(273.15)));
78633   SWIG_Python_SetConstant(d, "INF",SWIG_From_int(static_cast< int >(10000000)));
78634   SWIG_Python_SetConstant(d, "EMAX",SWIG_From_int(static_cast< int >((10000000/10))));
78635   SWIG_Python_SetConstant(d, "FORBIDDEN",SWIG_From_int(static_cast< int >(9999)));
78636   SWIG_Python_SetConstant(d, "BONUS",SWIG_From_int(static_cast< int >(10000)));
78637   SWIG_Python_SetConstant(d, "NBPAIRS",SWIG_From_int(static_cast< int >(7)));
78638   SWIG_Python_SetConstant(d, "TURN",SWIG_From_int(static_cast< int >(3)));
78639   SWIG_Python_SetConstant(d, "MAXLOOP",SWIG_From_int(static_cast< int >(30)));
78640   SWIG_Python_SetConstant(d, "UNIT",SWIG_From_int(static_cast< int >(100)));
78641   SWIG_Python_SetConstant(d, "MINPSCORE",SWIG_From_int(static_cast< int >(-2*100)));
78642   globals = SWIG_globals();
78643   if (!globals) {
78644     PyErr_SetString(PyExc_TypeError, "Failure to create SWIG globals.");
78645 #if PY_VERSION_HEX >= 0x03000000
78646     return NULL;
78647 #else
78648     return;
78649 #endif
78650   }
78651   PyDict_SetItemString(md, "cvar", globals);
78652   Py_DECREF(globals);
78653   SWIG_addvarlink(globals, "lxc37", Swig_var_lxc37_get, Swig_var_lxc37_set);
78654   SWIG_addvarlink(globals, "stack37", Swig_var_stack37_get, Swig_var_stack37_set);
78655   SWIG_addvarlink(globals, "stackdH", Swig_var_stackdH_get, Swig_var_stackdH_set);
78656   SWIG_addvarlink(globals, "hairpin37", Swig_var_hairpin37_get, Swig_var_hairpin37_set);
78657   SWIG_addvarlink(globals, "hairpindH", Swig_var_hairpindH_get, Swig_var_hairpindH_set);
78658   SWIG_addvarlink(globals, "bulge37", Swig_var_bulge37_get, Swig_var_bulge37_set);
78659   SWIG_addvarlink(globals, "bulgedH", Swig_var_bulgedH_get, Swig_var_bulgedH_set);
78660   SWIG_addvarlink(globals, "internal_loop37", Swig_var_internal_loop37_get, Swig_var_internal_loop37_set);
78661   SWIG_addvarlink(globals, "internal_loopdH", Swig_var_internal_loopdH_get, Swig_var_internal_loopdH_set);
78662   SWIG_addvarlink(globals, "mismatchI37", Swig_var_mismatchI37_get, Swig_var_mismatchI37_set);
78663   SWIG_addvarlink(globals, "mismatchIdH", Swig_var_mismatchIdH_get, Swig_var_mismatchIdH_set);
78664   SWIG_addvarlink(globals, "mismatch1nI37", Swig_var_mismatch1nI37_get, Swig_var_mismatch1nI37_set);
78665   SWIG_addvarlink(globals, "mismatch23I37", Swig_var_mismatch23I37_get, Swig_var_mismatch23I37_set);
78666   SWIG_addvarlink(globals, "mismatch1nIdH", Swig_var_mismatch1nIdH_get, Swig_var_mismatch1nIdH_set);
78667   SWIG_addvarlink(globals, "mismatch23IdH", Swig_var_mismatch23IdH_get, Swig_var_mismatch23IdH_set);
78668   SWIG_addvarlink(globals, "mismatchH37", Swig_var_mismatchH37_get, Swig_var_mismatchH37_set);
78669   SWIG_addvarlink(globals, "mismatchM37", Swig_var_mismatchM37_get, Swig_var_mismatchM37_set);
78670   SWIG_addvarlink(globals, "mismatchHdH", Swig_var_mismatchHdH_get, Swig_var_mismatchHdH_set);
78671   SWIG_addvarlink(globals, "mismatchMdH", Swig_var_mismatchMdH_get, Swig_var_mismatchMdH_set);
78672   SWIG_addvarlink(globals, "mismatchExt37", Swig_var_mismatchExt37_get, Swig_var_mismatchExt37_set);
78673   SWIG_addvarlink(globals, "mismatchExtdH", Swig_var_mismatchExtdH_get, Swig_var_mismatchExtdH_set);
78674   SWIG_addvarlink(globals, "dangle5_37", Swig_var_dangle5_37_get, Swig_var_dangle5_37_set);
78675   SWIG_addvarlink(globals, "dangle3_37", Swig_var_dangle3_37_get, Swig_var_dangle3_37_set);
78676   SWIG_addvarlink(globals, "dangle3_dH", Swig_var_dangle3_dH_get, Swig_var_dangle3_dH_set);
78677   SWIG_addvarlink(globals, "dangle5_dH", Swig_var_dangle5_dH_get, Swig_var_dangle5_dH_set);
78678   SWIG_addvarlink(globals, "int11_37", Swig_var_int11_37_get, Swig_var_int11_37_set);
78679   SWIG_addvarlink(globals, "int11_dH", Swig_var_int11_dH_get, Swig_var_int11_dH_set);
78680   SWIG_addvarlink(globals, "int21_37", Swig_var_int21_37_get, Swig_var_int21_37_set);
78681   SWIG_addvarlink(globals, "int21_dH", Swig_var_int21_dH_get, Swig_var_int21_dH_set);
78682   SWIG_addvarlink(globals, "int22_37", Swig_var_int22_37_get, Swig_var_int22_37_set);
78683   SWIG_addvarlink(globals, "int22_dH", Swig_var_int22_dH_get, Swig_var_int22_dH_set);
78684   SWIG_addvarlink(globals, "ML_BASE37", Swig_var_ML_BASE37_get, Swig_var_ML_BASE37_set);
78685   SWIG_addvarlink(globals, "ML_BASEdH", Swig_var_ML_BASEdH_get, Swig_var_ML_BASEdH_set);
78686   SWIG_addvarlink(globals, "ML_closing37", Swig_var_ML_closing37_get, Swig_var_ML_closing37_set);
78687   SWIG_addvarlink(globals, "ML_closingdH", Swig_var_ML_closingdH_get, Swig_var_ML_closingdH_set);
78688   SWIG_addvarlink(globals, "ML_intern37", Swig_var_ML_intern37_get, Swig_var_ML_intern37_set);
78689   SWIG_addvarlink(globals, "ML_interndH", Swig_var_ML_interndH_get, Swig_var_ML_interndH_set);
78690   SWIG_addvarlink(globals, "TripleC37", Swig_var_TripleC37_get, Swig_var_TripleC37_set);
78691   SWIG_addvarlink(globals, "TripleCdH", Swig_var_TripleCdH_get, Swig_var_TripleCdH_set);
78692   SWIG_addvarlink(globals, "MultipleCA37", Swig_var_MultipleCA37_get, Swig_var_MultipleCA37_set);
78693   SWIG_addvarlink(globals, "MultipleCAdH", Swig_var_MultipleCAdH_get, Swig_var_MultipleCAdH_set);
78694   SWIG_addvarlink(globals, "MultipleCB37", Swig_var_MultipleCB37_get, Swig_var_MultipleCB37_set);
78695   SWIG_addvarlink(globals, "MultipleCBdH", Swig_var_MultipleCBdH_get, Swig_var_MultipleCBdH_set);
78696   SWIG_addvarlink(globals, "MAX_NINIO", Swig_var_MAX_NINIO_get, Swig_var_MAX_NINIO_set);
78697   SWIG_addvarlink(globals, "ninio37", Swig_var_ninio37_get, Swig_var_ninio37_set);
78698   SWIG_addvarlink(globals, "niniodH", Swig_var_niniodH_get, Swig_var_niniodH_set);
78699   SWIG_addvarlink(globals, "TerminalAU37", Swig_var_TerminalAU37_get, Swig_var_TerminalAU37_set);
78700   SWIG_addvarlink(globals, "TerminalAUdH", Swig_var_TerminalAUdH_get, Swig_var_TerminalAUdH_set);
78701   SWIG_addvarlink(globals, "DuplexInit37", Swig_var_DuplexInit37_get, Swig_var_DuplexInit37_set);
78702   SWIG_addvarlink(globals, "DuplexInitdH", Swig_var_DuplexInitdH_get, Swig_var_DuplexInitdH_set);
78703   SWIG_addvarlink(globals, "Tetraloops", Swig_var_Tetraloops_get, Swig_var_Tetraloops_set);
78704   SWIG_addvarlink(globals, "Tetraloop37", Swig_var_Tetraloop37_get, Swig_var_Tetraloop37_set);
78705   SWIG_addvarlink(globals, "TetraloopdH", Swig_var_TetraloopdH_get, Swig_var_TetraloopdH_set);
78706   SWIG_addvarlink(globals, "Triloops", Swig_var_Triloops_get, Swig_var_Triloops_set);
78707   SWIG_addvarlink(globals, "Triloop37", Swig_var_Triloop37_get, Swig_var_Triloop37_set);
78708   SWIG_addvarlink(globals, "TriloopdH", Swig_var_TriloopdH_get, Swig_var_TriloopdH_set);
78709   SWIG_addvarlink(globals, "Hexaloops", Swig_var_Hexaloops_get, Swig_var_Hexaloops_set);
78710   SWIG_addvarlink(globals, "Hexaloop37", Swig_var_Hexaloop37_get, Swig_var_Hexaloop37_set);
78711   SWIG_addvarlink(globals, "HexaloopdH", Swig_var_HexaloopdH_get, Swig_var_HexaloopdH_set);
78712   SWIG_addvarlink(globals, "GQuadAlpha37", Swig_var_GQuadAlpha37_get, Swig_var_GQuadAlpha37_set);
78713   SWIG_addvarlink(globals, "GQuadAlphadH", Swig_var_GQuadAlphadH_get, Swig_var_GQuadAlphadH_set);
78714   SWIG_addvarlink(globals, "GQuadBeta37", Swig_var_GQuadBeta37_get, Swig_var_GQuadBeta37_set);
78715   SWIG_addvarlink(globals, "GQuadBetadH", Swig_var_GQuadBetadH_get, Swig_var_GQuadBetadH_set);
78716   SWIG_addvarlink(globals, "GQuadLayerMismatch37", Swig_var_GQuadLayerMismatch37_get, Swig_var_GQuadLayerMismatch37_set);
78717   SWIG_addvarlink(globals, "GQuadLayerMismatchH", Swig_var_GQuadLayerMismatchH_get, Swig_var_GQuadLayerMismatchH_set);
78718   SWIG_addvarlink(globals, "GQuadLayerMismatchMax", Swig_var_GQuadLayerMismatchMax_get, Swig_var_GQuadLayerMismatchMax_set);
78719   SWIG_addvarlink(globals, "Tmeasure", Swig_var_Tmeasure_get, Swig_var_Tmeasure_set);
78720   SWIG_addvarlink(globals, "temperature", Swig_var_temperature_get, Swig_var_temperature_set);
78721   SWIG_addvarlink(globals, "dangles", Swig_var_dangles_get, Swig_var_dangles_set);
78722   SWIG_addvarlink(globals, "betaScale", Swig_var_betaScale_get, Swig_var_betaScale_set);
78723   SWIG_addvarlink(globals, "pf_smooth", Swig_var_pf_smooth_get, Swig_var_pf_smooth_set);
78724   SWIG_addvarlink(globals, "tetra_loop", Swig_var_tetra_loop_get, Swig_var_tetra_loop_set);
78725   SWIG_addvarlink(globals, "special_hp", Swig_var_special_hp_get, Swig_var_special_hp_set);
78726   SWIG_addvarlink(globals, "noLonelyPairs", Swig_var_noLonelyPairs_get, Swig_var_noLonelyPairs_set);
78727   SWIG_addvarlink(globals, "noLP", Swig_var_noLP_get, Swig_var_noLP_set);
78728   SWIG_addvarlink(globals, "noGU", Swig_var_noGU_get, Swig_var_noGU_set);
78729   SWIG_addvarlink(globals, "no_closingGU", Swig_var_no_closingGU_get, Swig_var_no_closingGU_set);
78730   SWIG_addvarlink(globals, "noGUclosure", Swig_var_noGUclosure_get, Swig_var_noGUclosure_set);
78731   SWIG_addvarlink(globals, "logML", Swig_var_logML_get, Swig_var_logML_set);
78732   SWIG_addvarlink(globals, "circ", Swig_var_circ_get, Swig_var_circ_set);
78733   SWIG_addvarlink(globals, "gquad", Swig_var_gquad_get, Swig_var_gquad_set);
78734   SWIG_addvarlink(globals, "uniq_ML", Swig_var_uniq_ML_get, Swig_var_uniq_ML_set);
78735   SWIG_addvarlink(globals, "energy_set", Swig_var_energy_set_get, Swig_var_energy_set_set);
78736   SWIG_addvarlink(globals, "backtrack", Swig_var_backtrack_get, Swig_var_backtrack_set);
78737   SWIG_addvarlink(globals, "backtrack_type", Swig_var_backtrack_type_get, Swig_var_backtrack_type_set);
78738   SWIG_addvarlink(globals, "do_backtrack", Swig_var_do_backtrack_get, Swig_var_do_backtrack_set);
78739   SWIG_addvarlink(globals, "compute_bpp", Swig_var_compute_bpp_get, Swig_var_compute_bpp_set);
78740   SWIG_addvarlink(globals, "max_bp_span", Swig_var_max_bp_span_get, Swig_var_max_bp_span_set);
78741   SWIG_addvarlink(globals, "min_loop_size", Swig_var_min_loop_size_get, Swig_var_min_loop_size_set);
78742   SWIG_addvarlink(globals, "window_size", Swig_var_window_size_get, Swig_var_window_size_set);
78743   SWIG_addvarlink(globals, "oldAliEn", Swig_var_oldAliEn_get, Swig_var_oldAliEn_set);
78744   SWIG_addvarlink(globals, "ribo", Swig_var_ribo_get, Swig_var_ribo_set);
78745   SWIG_addvarlink(globals, "cv_fact", Swig_var_cv_fact_get, Swig_var_cv_fact_set);
78746   SWIG_addvarlink(globals, "nc_fact", Swig_var_nc_fact_get, Swig_var_nc_fact_set);
78747   SWIG_addvarlink(globals, "sfact", Swig_var_sfact_get, Swig_var_sfact_set);
78748   SWIG_Python_SetConstant(d, "NBASES",SWIG_From_int(static_cast< int >(8)));
78749   SWIG_Python_SetConstant(d, "MAXALPHA",SWIG_From_int(static_cast< int >(20)));
78750   SWIG_addvarlink(globals, "pf_scale", Swig_var_pf_scale_get, Swig_var_pf_scale_set);
78751   SWIG_addvarlink(globals, "nonstandards", Swig_var_nonstandards_get, Swig_var_nonstandards_set);
78752   SWIG_addvarlink(globals, "xsubi", Swig_var_xsubi_get, Swig_var_xsubi_set);
78753   SWIG_Python_SetConstant(d, "FILENAME_MAX_LENGTH",SWIG_From_int(static_cast< int >(80)));
78754   SWIG_Python_SetConstant(d, "FILENAME_ID_LENGTH",SWIG_From_int(static_cast< int >(42)));
78755   SWIG_Python_SetConstant(d, "PLIST_TYPE_BASEPAIR",SWIG_From_int(static_cast< int >(VRNA_PLIST_TYPE_BASEPAIR)));
78756   SWIG_Python_SetConstant(d, "PLIST_TYPE_GQUAD",SWIG_From_int(static_cast< int >(VRNA_PLIST_TYPE_GQUAD)));
78757   SWIG_Python_SetConstant(d, "PLIST_TYPE_H_MOTIF",SWIG_From_int(static_cast< int >(VRNA_PLIST_TYPE_H_MOTIF)));
78758   SWIG_Python_SetConstant(d, "PLIST_TYPE_I_MOTIF",SWIG_From_int(static_cast< int >(VRNA_PLIST_TYPE_I_MOTIF)));
78759   SWIG_Python_SetConstant(d, "PLIST_TYPE_UD_MOTIF",SWIG_From_int(static_cast< int >(VRNA_PLIST_TYPE_UD_MOTIF)));
78760   SWIG_Python_SetConstant(d, "PLIST_TYPE_STACK",SWIG_From_int(static_cast< int >(VRNA_PLIST_TYPE_STACK)));
78761   SWIG_Python_SetConstant(d, "STRUCTURE_TREE_HIT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_STRUCTURE_TREE_HIT)));
78762   SWIG_Python_SetConstant(d, "STRUCTURE_TREE_SHAPIRO_SHORT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_STRUCTURE_TREE_SHAPIRO_SHORT)));
78763   SWIG_Python_SetConstant(d, "STRUCTURE_TREE_SHAPIRO",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_STRUCTURE_TREE_SHAPIRO)));
78764   SWIG_Python_SetConstant(d, "STRUCTURE_TREE_SHAPIRO_EXT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_STRUCTURE_TREE_SHAPIRO_EXT)));
78765   SWIG_Python_SetConstant(d, "STRUCTURE_TREE_SHAPIRO_WEIGHT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_STRUCTURE_TREE_SHAPIRO_WEIGHT)));
78766   SWIG_Python_SetConstant(d, "STRUCTURE_TREE_EXPANDED",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_STRUCTURE_TREE_EXPANDED)));
78767   SWIG_Python_SetConstant(d, "BRACKETS_RND",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_BRACKETS_RND)));
78768   SWIG_Python_SetConstant(d, "BRACKETS_ANG",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_BRACKETS_ANG)));
78769   SWIG_Python_SetConstant(d, "BRACKETS_SQR",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_BRACKETS_SQR)));
78770   SWIG_Python_SetConstant(d, "BRACKETS_CLY",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_BRACKETS_CLY)));
78771   SWIG_Python_SetConstant(d, "BRACKETS_ALPHA",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_BRACKETS_ALPHA)));
78772   SWIG_Python_SetConstant(d, "BRACKETS_DEFAULT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_BRACKETS_DEFAULT)));
78773   SWIG_Python_SetConstant(d, "BRACKETS_ANY",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_BRACKETS_ANY)));
78774   SWIG_Python_SetConstant(d, "ALN_DEFAULT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_ALN_DEFAULT)));
78775   SWIG_Python_SetConstant(d, "ALN_RNA",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_ALN_RNA)));
78776   SWIG_Python_SetConstant(d, "ALN_DNA",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_ALN_DNA)));
78777   SWIG_Python_SetConstant(d, "ALN_UPPERCASE",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_ALN_UPPERCASE)));
78778   SWIG_Python_SetConstant(d, "ALN_LOWERCASE",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_ALN_LOWERCASE)));
78779   SWIG_Python_SetConstant(d, "MEASURE_SHANNON_ENTROPY",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_MEASURE_SHANNON_ENTROPY)));
78780   SWIG_Python_SetConstant(d, "GRADIENT",SWIG_From_int(static_cast< int >(GRADIENT)));
78781   SWIG_Python_SetConstant(d, "FIRST",SWIG_From_int(static_cast< int >(FIRST)));
78782   SWIG_Python_SetConstant(d, "ADAPTIVE",SWIG_From_int(static_cast< int >(ADAPTIVE)));
78783   SWIG_addvarlink(globals, "rna_plot_type", Swig_var_rna_plot_type_get, Swig_var_rna_plot_type_set);
78784   SWIG_Python_SetConstant(d, "DECOMP_PAIR_HP",SWIG_From_int(static_cast< int >((int) VRNA_DECOMP_PAIR_HP)));
78785   SWIG_Python_SetConstant(d, "DECOMP_PAIR_IL",SWIG_From_int(static_cast< int >((int) VRNA_DECOMP_PAIR_IL)));
78786   SWIG_Python_SetConstant(d, "DECOMP_PAIR_ML",SWIG_From_int(static_cast< int >((int) VRNA_DECOMP_PAIR_ML)));
78787   SWIG_Python_SetConstant(d, "DECOMP_ML_ML_ML",SWIG_From_int(static_cast< int >((int) VRNA_DECOMP_ML_ML_ML)));
78788   SWIG_Python_SetConstant(d, "DECOMP_ML_STEM",SWIG_From_int(static_cast< int >((int) VRNA_DECOMP_ML_STEM)));
78789   SWIG_Python_SetConstant(d, "DECOMP_ML_ML",SWIG_From_int(static_cast< int >((int) VRNA_DECOMP_ML_ML)));
78790   SWIG_Python_SetConstant(d, "DECOMP_ML_UP",SWIG_From_int(static_cast< int >((int) VRNA_DECOMP_ML_UP)));
78791   SWIG_Python_SetConstant(d, "DECOMP_ML_ML_STEM",SWIG_From_int(static_cast< int >((int) VRNA_DECOMP_ML_ML_STEM)));
78792   SWIG_Python_SetConstant(d, "DECOMP_ML_COAXIAL",SWIG_From_int(static_cast< int >((int) VRNA_DECOMP_ML_COAXIAL)));
78793   SWIG_Python_SetConstant(d, "DECOMP_EXT_EXT",SWIG_From_int(static_cast< int >((int) VRNA_DECOMP_EXT_EXT)));
78794   SWIG_Python_SetConstant(d, "DECOMP_EXT_UP",SWIG_From_int(static_cast< int >((int) VRNA_DECOMP_EXT_UP)));
78795   SWIG_Python_SetConstant(d, "DECOMP_EXT_STEM",SWIG_From_int(static_cast< int >((int) VRNA_DECOMP_EXT_STEM)));
78796   SWIG_Python_SetConstant(d, "DECOMP_EXT_EXT_EXT",SWIG_From_int(static_cast< int >((int) VRNA_DECOMP_EXT_EXT_EXT)));
78797   SWIG_Python_SetConstant(d, "DECOMP_EXT_STEM_EXT",SWIG_From_int(static_cast< int >((int) VRNA_DECOMP_EXT_STEM_EXT)));
78798   SWIG_Python_SetConstant(d, "DECOMP_EXT_STEM_OUTSIDE",SWIG_From_int(static_cast< int >((int) VRNA_DECOMP_EXT_STEM_OUTSIDE)));
78799   SWIG_Python_SetConstant(d, "DECOMP_EXT_EXT_STEM",SWIG_From_int(static_cast< int >((int) VRNA_DECOMP_EXT_EXT_STEM)));
78800   SWIG_Python_SetConstant(d, "DECOMP_EXT_EXT_STEM1",SWIG_From_int(static_cast< int >((int) VRNA_DECOMP_EXT_EXT_STEM1)));
78801   SWIG_Python_SetConstant(d, "CONSTRAINT_DB",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_DB)));
78802   SWIG_Python_SetConstant(d, "CONSTRAINT_DB_ENFORCE_BP",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_DB_ENFORCE_BP)));
78803   SWIG_Python_SetConstant(d, "CONSTRAINT_DB_PIPE",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_DB_PIPE)));
78804   SWIG_Python_SetConstant(d, "CONSTRAINT_DB_DOT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_DB_DOT)));
78805   SWIG_Python_SetConstant(d, "CONSTRAINT_DB_X",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_DB_X)));
78806   SWIG_Python_SetConstant(d, "CONSTRAINT_DB_ANG_BRACK",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_DB_ANG_BRACK)));
78807   SWIG_Python_SetConstant(d, "CONSTRAINT_DB_RND_BRACK",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_DB_RND_BRACK)));
78808   SWIG_Python_SetConstant(d, "CONSTRAINT_DB_INTRAMOL",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_DB_INTRAMOL)));
78809   SWIG_Python_SetConstant(d, "CONSTRAINT_DB_INTERMOL",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_DB_INTERMOL)));
78810   SWIG_Python_SetConstant(d, "CONSTRAINT_DB_GQUAD",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_DB_GQUAD)));
78811   SWIG_Python_SetConstant(d, "CONSTRAINT_DB_DEFAULT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_DB_DEFAULT)));
78812   SWIG_Python_SetConstant(d, "CONSTRAINT_CONTEXT_EXT_LOOP",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_CONTEXT_EXT_LOOP)));
78813   SWIG_Python_SetConstant(d, "CONSTRAINT_CONTEXT_HP_LOOP",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_CONTEXT_HP_LOOP)));
78814   SWIG_Python_SetConstant(d, "CONSTRAINT_CONTEXT_INT_LOOP",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_CONTEXT_INT_LOOP)));
78815   SWIG_Python_SetConstant(d, "CONSTRAINT_CONTEXT_INT_LOOP_ENC",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_CONTEXT_INT_LOOP_ENC)));
78816   SWIG_Python_SetConstant(d, "CONSTRAINT_CONTEXT_MB_LOOP",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_CONTEXT_MB_LOOP)));
78817   SWIG_Python_SetConstant(d, "CONSTRAINT_CONTEXT_MB_LOOP_ENC",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_CONTEXT_MB_LOOP_ENC)));
78818   SWIG_Python_SetConstant(d, "CONSTRAINT_CONTEXT_ENFORCE",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_CONTEXT_ENFORCE)));
78819   SWIG_Python_SetConstant(d, "CONSTRAINT_CONTEXT_NO_REMOVE",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_CONTEXT_NO_REMOVE)));
78820   SWIG_Python_SetConstant(d, "CONSTRAINT_CONTEXT_ALL_LOOPS",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_CONTEXT_ALL_LOOPS)));
78821   SWIG_Python_SetConstant(d, "CONSTRAINT_CONTEXT_NONE",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_CONTEXT_NONE)));
78822   SWIG_Python_SetConstant(d, "CONSTRAINT_CONTEXT_CLOSING_LOOPS",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_CONTEXT_CLOSING_LOOPS)));
78823   SWIG_Python_SetConstant(d, "CONSTRAINT_CONTEXT_ENCLOSED_LOOPS",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CONSTRAINT_CONTEXT_ENCLOSED_LOOPS)));
78824   SWIG_addvarlink(globals, "cut_point", Swig_var_cut_point_get, Swig_var_cut_point_set);
78825   SWIG_addvarlink(globals, "eos_debug", Swig_var_eos_debug_get, Swig_var_eos_debug_set);
78826   SWIG_Python_SetConstant(d, "ZSCORE_OPTIONS_NONE",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_ZSCORE_OPTIONS_NONE)));
78827   SWIG_Python_SetConstant(d, "ZSCORE_FILTER_ON",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_ZSCORE_FILTER_ON)));
78828   SWIG_Python_SetConstant(d, "ZSCORE_PRE_FILTER",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_ZSCORE_PRE_FILTER)));
78829   SWIG_Python_SetConstant(d, "ZSCORE_REPORT_SUBSUMED",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_ZSCORE_REPORT_SUBSUMED)));
78830   SWIG_Python_SetConstant(d, "ZSCORE_MODEL_DEFAULT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_ZSCORE_MODEL_DEFAULT)));
78831   SWIG_Python_SetConstant(d, "ZSCORE_SETTINGS_DEFAULT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_ZSCORE_SETTINGS_DEFAULT)));
78832   SWIG_addvarlink(globals, "st_back", Swig_var_st_back_get, Swig_var_st_back_set);
78833   SWIG_addvarlink(globals, "mirnatog", Swig_var_mirnatog_get, Swig_var_mirnatog_set);
78834   SWIG_addvarlink(globals, "F_monomer", Swig_var_F_monomer_get, Swig_var_F_monomer_set);
78835   SWIG_Python_SetConstant(d, "PBACKTRACK_DEFAULT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_PBACKTRACK_DEFAULT)));
78836   SWIG_Python_SetConstant(d, "PBACKTRACK_NON_REDUNDANT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_PBACKTRACK_NON_REDUNDANT)));
78837   SWIG_Python_SetConstant(d, "EXT_LOOP",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_EXT_LOOP)));
78838   SWIG_Python_SetConstant(d, "HP_LOOP",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_HP_LOOP)));
78839   SWIG_Python_SetConstant(d, "INT_LOOP",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_INT_LOOP)));
78840   SWIG_Python_SetConstant(d, "MB_LOOP",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_MB_LOOP)));
78841   SWIG_Python_SetConstant(d, "ANY_LOOP",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_ANY_LOOP)));
78842   SWIG_Python_SetConstant(d, "PROBS_WINDOW_BPP",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_PROBS_WINDOW_BPP)));
78843   SWIG_Python_SetConstant(d, "PROBS_WINDOW_UP",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_PROBS_WINDOW_UP)));
78844   SWIG_Python_SetConstant(d, "PROBS_WINDOW_STACKP",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_PROBS_WINDOW_STACKP)));
78845   SWIG_Python_SetConstant(d, "PROBS_WINDOW_UP_SPLIT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_PROBS_WINDOW_UP_SPLIT)));
78846   SWIG_Python_SetConstant(d, "PROBS_WINDOW_PF",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_PROBS_WINDOW_PF)));
78847   SWIG_addvarlink(globals, "subopt_sorted", Swig_var_subopt_sorted_get, Swig_var_subopt_sorted_set);
78848   SWIG_Python_SetConstant(d, "MAXDOS",SWIG_From_int(static_cast< int >(1000)));
78849   SWIG_addvarlink(globals, "print_energy", Swig_var_print_energy_get, Swig_var_print_energy_set);
78850   SWIG_addvarlink(globals, "density_of_states", Swig_var_density_of_states_get, Swig_var_density_of_states_set);
78851 
78852   /* work around segfault when script tries to free symbolset */
78853 
78854   symbolset = (char *) vrna_alloc(21);
78855   strcpy(symbolset, "AUGC");
78856 
78857 
78858   SWIG_addvarlink(globals, "symbolset", Swig_var_symbolset_get, Swig_var_symbolset_set);
78859   SWIG_addvarlink(globals, "final_cost", Swig_var_final_cost_get, Swig_var_final_cost_set);
78860   SWIG_addvarlink(globals, "give_up", Swig_var_give_up_get, Swig_var_give_up_set);
78861   SWIG_addvarlink(globals, "inv_verbose", Swig_var_inv_verbose_get, Swig_var_inv_verbose_set);
78862   SWIG_addvarlink(globals, "loop_size", Swig_var_loop_size_get, Swig_var_loop_size_set);
78863   SWIG_addvarlink(globals, "helix_size", Swig_var_helix_size_get, Swig_var_helix_size_set);
78864   SWIG_addvarlink(globals, "loop_degree", Swig_var_loop_degree_get, Swig_var_loop_degree_set);
78865   SWIG_addvarlink(globals, "loops", Swig_var_loops_get, Swig_var_loops_set);
78866   SWIG_addvarlink(globals, "unpaired", Swig_var_unpaired_get, Swig_var_unpaired_set);
78867   SWIG_addvarlink(globals, "pairs", Swig_var_pairs_get, Swig_var_pairs_set);
78868   SWIG_addvarlink(globals, "edit_backtrack", Swig_var_edit_backtrack_get, Swig_var_edit_backtrack_set);
78869   SWIG_addvarlink(globals, "aligned_line", Swig_var_aligned_line_get, Swig_var_aligned_line_set);
78870   SWIG_addvarlink(globals, "cost_matrix", Swig_var_cost_matrix_get, Swig_var_cost_matrix_set);
78871   SWIG_Python_SetConstant(d, "FILE_FORMAT_MSA_CLUSTAL",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_FILE_FORMAT_MSA_CLUSTAL)));
78872   SWIG_Python_SetConstant(d, "FILE_FORMAT_MSA_DEFAULT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_FILE_FORMAT_MSA_DEFAULT)));
78873   SWIG_Python_SetConstant(d, "FILE_FORMAT_MSA_FASTA",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_FILE_FORMAT_MSA_FASTA)));
78874   SWIG_Python_SetConstant(d, "FILE_FORMAT_MSA_MAF",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_FILE_FORMAT_MSA_MAF)));
78875   SWIG_Python_SetConstant(d, "FILE_FORMAT_MSA_NOCHECK",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_FILE_FORMAT_MSA_NOCHECK)));
78876   SWIG_Python_SetConstant(d, "FILE_FORMAT_MSA_STOCKHOLM",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_FILE_FORMAT_MSA_STOCKHOLM)));
78877   SWIG_Python_SetConstant(d, "FILE_FORMAT_MSA_MIS",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_FILE_FORMAT_MSA_MIS)));
78878   SWIG_Python_SetConstant(d, "FILE_FORMAT_MSA_UNKNOWN",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_FILE_FORMAT_MSA_UNKNOWN)));
78879   SWIG_Python_SetConstant(d, "FILE_FORMAT_MSA_QUIET",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_FILE_FORMAT_MSA_QUIET)));
78880   SWIG_Python_SetConstant(d, "FILE_FORMAT_MSA_SILENT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_FILE_FORMAT_MSA_SILENT)));
78881   SWIG_Python_SetConstant(d, "FILE_FORMAT_MSA_APPEND",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_FILE_FORMAT_MSA_APPEND)));
78882   SWIG_Python_SetConstant(d, "SEQUENCE_RNA",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_SEQUENCE_RNA)));
78883   SWIG_Python_SetConstant(d, "SEQUENCE_DNA",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_SEQUENCE_DNA)));
78884   SWIG_Python_SetConstant(d, "UNSTRUCTURED_DOMAIN_EXT_LOOP",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_UNSTRUCTURED_DOMAIN_EXT_LOOP)));
78885   SWIG_Python_SetConstant(d, "UNSTRUCTURED_DOMAIN_HP_LOOP",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_UNSTRUCTURED_DOMAIN_HP_LOOP)));
78886   SWIG_Python_SetConstant(d, "UNSTRUCTURED_DOMAIN_INT_LOOP",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_UNSTRUCTURED_DOMAIN_INT_LOOP)));
78887   SWIG_Python_SetConstant(d, "UNSTRUCTURED_DOMAIN_MB_LOOP",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_UNSTRUCTURED_DOMAIN_MB_LOOP)));
78888   SWIG_Python_SetConstant(d, "UNSTRUCTURED_DOMAIN_ALL_LOOPS",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_UNSTRUCTURED_DOMAIN_ALL_LOOPS)));
78889   SWIG_Python_SetConstant(d, "UNSTRUCTURED_DOMAIN_MOTIF",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_UNSTRUCTURED_DOMAIN_MOTIF)));
78890   SWIG_Python_SetConstant(d, "CMD_PARSE_DEFAULTS",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CMD_PARSE_DEFAULTS)));
78891   SWIG_Python_SetConstant(d, "CMD_PARSE_HC",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CMD_PARSE_HC)));
78892   SWIG_Python_SetConstant(d, "CMD_PARSE_SC",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CMD_PARSE_SC)));
78893   SWIG_Python_SetConstant(d, "CMD_PARSE_SD",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CMD_PARSE_SD)));
78894   SWIG_Python_SetConstant(d, "CMD_PARSE_UD",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_CMD_PARSE_UD)));
78895   SWIG_Python_SetConstant(d, "MOVESET_INSERTION",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_MOVESET_INSERTION)));
78896   SWIG_Python_SetConstant(d, "MOVESET_DELETION",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_MOVESET_DELETION)));
78897   SWIG_Python_SetConstant(d, "MOVESET_SHIFT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_MOVESET_SHIFT)));
78898   SWIG_Python_SetConstant(d, "MOVESET_NO_LP",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_MOVESET_NO_LP)));
78899   SWIG_Python_SetConstant(d, "MOVESET_DEFAULT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_MOVESET_DEFAULT)));
78900   SWIG_Python_SetConstant(d, "NEIGHBOR_CHANGE",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_NEIGHBOR_CHANGE)));
78901   SWIG_Python_SetConstant(d, "NEIGHBOR_INVALID",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_NEIGHBOR_INVALID)));
78902   SWIG_Python_SetConstant(d, "NEIGHBOR_NEW",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_NEIGHBOR_NEW)));
78903   SWIG_Python_SetConstant(d, "PATH_STEEPEST_DESCENT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_PATH_STEEPEST_DESCENT)));
78904   SWIG_Python_SetConstant(d, "PATH_RANDOM",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_PATH_RANDOM)));
78905   SWIG_Python_SetConstant(d, "PATH_NO_TRANSITION_OUTPUT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_PATH_NO_TRANSITION_OUTPUT)));
78906   SWIG_Python_SetConstant(d, "PATH_DEFAULT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_PATH_DEFAULT)));
78907   SWIG_Python_SetConstant(d, "PATH_TYPE_DOT_BRACKET",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_PATH_TYPE_DOT_BRACKET)));
78908   SWIG_Python_SetConstant(d, "PATH_TYPE_MOVES",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_PATH_TYPE_MOVES)));
78909   SWIG_Python_SetConstant(d, "FC_TYPE_SINGLE",SWIG_From_int(static_cast< int >(FC_TYPE_SINGLE)));
78910   SWIG_Python_SetConstant(d, "FC_TYPE_COMPARATIVE",SWIG_From_int(static_cast< int >(FC_TYPE_COMPARATIVE)));
78911   SWIG_Python_SetConstant(d, "STATUS_MFE_PRE",SWIG_From_unsigned_SS_char(static_cast< unsigned char >(VRNA_STATUS_MFE_PRE)));
78912   SWIG_Python_SetConstant(d, "STATUS_MFE_POST",SWIG_From_unsigned_SS_char(static_cast< unsigned char >(VRNA_STATUS_MFE_POST)));
78913   SWIG_Python_SetConstant(d, "STATUS_PF_PRE",SWIG_From_unsigned_SS_char(static_cast< unsigned char >(VRNA_STATUS_PF_PRE)));
78914   SWIG_Python_SetConstant(d, "STATUS_PF_POST",SWIG_From_unsigned_SS_char(static_cast< unsigned char >(VRNA_STATUS_PF_POST)));
78915   SWIG_Python_SetConstant(d, "OPTION_DEFAULT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_OPTION_DEFAULT)));
78916   SWIG_Python_SetConstant(d, "OPTION_MFE",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_OPTION_MFE)));
78917   SWIG_Python_SetConstant(d, "OPTION_PF",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_OPTION_PF)));
78918   SWIG_Python_SetConstant(d, "OPTION_HYBRID",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_OPTION_HYBRID)));
78919   SWIG_Python_SetConstant(d, "OPTION_EVAL_ONLY",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_OPTION_EVAL_ONLY)));
78920   SWIG_Python_SetConstant(d, "OPTION_WINDOW",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(VRNA_OPTION_WINDOW)));
78921   SWIG_addvarlink(globals, "base_pair", Swig_var_base_pair_get, Swig_var_base_pair_set);
78922   SWIG_addvarlink(globals, "pr", Swig_var_pr_get, Swig_var_pr_set);
78923   SWIG_addvarlink(globals, "iindx", Swig_var_iindx_get, Swig_var_iindx_set);
78924   SWIG_addvarlink(globals, "fold_constrained", Swig_var_fold_constrained_get, Swig_var_fold_constrained_set);
78925   SWIG_addvarlink(globals, "csv", Swig_var_csv_get, Swig_var_csv_set);
78926   SWIG_addvarlink(globals, "RibosumFile", Swig_var_RibosumFile_get, Swig_var_RibosumFile_set);
78927   SWIG_addvarlink(globals, "james_rule", Swig_var_james_rule_get, Swig_var_james_rule_set);
78928 #if PY_VERSION_HEX >= 0x03000000
78929   return m;
78930 #else
78931   return;
78932 #endif
78933 }
78934 
78935