00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #define SWIGPYTHON
00012 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
00013
00014 #ifdef __cplusplus
00015 template<class T> class SwigValueWrapper {
00016 T *tt;
00017 public:
00018 SwigValueWrapper() : tt(0) { }
00019 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
00020 SwigValueWrapper(const T& t) : tt(new T(t)) { }
00021 ~SwigValueWrapper() { delete tt; }
00022 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
00023 operator T&() const { return *tt; }
00024 T *operator&() { return tt; }
00025 private:
00026 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
00027 };
00028 #endif
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef SWIGTEMPLATEDISAMBIGUATOR
00037 # if defined(__SUNPRO_CC)
00038 # if (__SUNPRO_CC <= 0x560)
00039 # define SWIGTEMPLATEDISAMBIGUATOR template
00040 # else
00041 # define SWIGTEMPLATEDISAMBIGUATOR
00042 # endif
00043 # else
00044 # define SWIGTEMPLATEDISAMBIGUATOR
00045 # endif
00046 #endif
00047
00048
00049 #ifndef SWIGINLINE
00050 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
00051 # define SWIGINLINE inline
00052 # else
00053 # define SWIGINLINE
00054 # endif
00055 #endif
00056
00057
00058 #ifndef SWIGUNUSED
00059 # if defined(__GNUC__)
00060 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
00061 # define SWIGUNUSED __attribute__ ((__unused__))
00062 # else
00063 # define SWIGUNUSED
00064 # endif
00065 # elif defined(__ICC)
00066 # define SWIGUNUSED __attribute__ ((__unused__))
00067 # else
00068 # define SWIGUNUSED
00069 # endif
00070 #endif
00071
00072 #ifndef SWIGUNUSEDPARM
00073 # ifdef __cplusplus
00074 # define SWIGUNUSEDPARM(p)
00075 # else
00076 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
00077 # endif
00078 #endif
00079
00080
00081 #ifndef SWIGINTERN
00082 # define SWIGINTERN static SWIGUNUSED
00083 #endif
00084
00085
00086 #ifndef SWIGINTERNINLINE
00087 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
00088 #endif
00089
00090
00091 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
00092 # ifndef GCC_HASCLASSVISIBILITY
00093 # define GCC_HASCLASSVISIBILITY
00094 # endif
00095 #endif
00096
00097 #ifndef SWIGEXPORT
00098 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
00099 # if defined(STATIC_LINKED)
00100 # define SWIGEXPORT
00101 # else
00102 # define SWIGEXPORT __declspec(dllexport)
00103 # endif
00104 # else
00105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
00106 # define SWIGEXPORT __attribute__ ((visibility("default")))
00107 # else
00108 # define SWIGEXPORT
00109 # endif
00110 # endif
00111 #endif
00112
00113
00114 #ifndef SWIGSTDCALL
00115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
00116 # define SWIGSTDCALL __stdcall
00117 # else
00118 # define SWIGSTDCALL
00119 # endif
00120 #endif
00121
00122
00123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
00124 # define _CRT_SECURE_NO_DEPRECATE
00125 #endif
00126
00127
00128
00129 #include <Python.h>
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140 #define SWIG_RUNTIME_VERSION "2"
00141
00142
00143 #ifdef SWIG_TYPE_TABLE
00144 # define SWIG_QUOTE_STRING(x) #x
00145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
00146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
00147 #else
00148 # define SWIG_TYPE_TABLE_NAME
00149 #endif
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160 #ifndef SWIGRUNTIME
00161 # define SWIGRUNTIME SWIGINTERN
00162 #endif
00163
00164 #ifndef SWIGRUNTIMEINLINE
00165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
00166 #endif
00167
00168
00169 #ifndef SWIG_BUFFER_SIZE
00170 # define SWIG_BUFFER_SIZE 1024
00171 #endif
00172
00173
00174 #define SWIG_POINTER_DISOWN 0x1
00175
00176
00177 #define SWIG_POINTER_OWN 0x1
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260 #define SWIG_OK (0)
00261 #define SWIG_ERROR (-1)
00262 #define SWIG_IsOK(r) (r >= 0)
00263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
00264
00265
00266 #define SWIG_CASTRANKLIMIT (1 << 8)
00267
00268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
00269
00270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
00271
00272 #define SWIG_BADOBJ (SWIG_ERROR)
00273 #define SWIG_OLDOBJ (SWIG_OK)
00274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
00275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
00276
00277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
00278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
00279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
00280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
00281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
00282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
00283
00284
00285
00286 #if defined(SWIG_CASTRANK_MODE)
00287 # ifndef SWIG_TypeRank
00288 # define SWIG_TypeRank unsigned long
00289 # endif
00290 # ifndef SWIG_MAXCASTRANK
00291 # define SWIG_MAXCASTRANK (2)
00292 # endif
00293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
00294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
00295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
00296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
00297 }
00298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
00299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
00300 }
00301 #else
00302 # define SWIG_AddCast
00303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
00304 #endif
00305
00306
00307
00308
00309 #include <string.h>
00310
00311 #ifdef __cplusplus
00312 extern "C" {
00313 #endif
00314
00315 typedef void *(*swig_converter_func)(void *);
00316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
00317
00318
00319 typedef struct swig_type_info {
00320 const char *name;
00321 const char *str;
00322 swig_dycast_func dcast;
00323 struct swig_cast_info *cast;
00324 void *clientdata;
00325 int owndata;
00326 } swig_type_info;
00327
00328
00329 typedef struct swig_cast_info {
00330 swig_type_info *type;
00331 swig_converter_func converter;
00332 struct swig_cast_info *next;
00333 struct swig_cast_info *prev;
00334 } swig_cast_info;
00335
00336
00337
00338
00339 typedef struct swig_module_info {
00340 swig_type_info **types;
00341 size_t size;
00342 struct swig_module_info *next;
00343 swig_type_info **type_initial;
00344 swig_cast_info **cast_initial;
00345 void *clientdata;
00346 } swig_module_info;
00347
00348
00349
00350
00351
00352
00353
00354
00355 SWIGRUNTIME int
00356 SWIG_TypeNameComp(const char *f1, const char *l1,
00357 const char *f2, const char *l2) {
00358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
00359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
00360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
00361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
00362 }
00363 return (l1 - f1) - (l2 - f2);
00364 }
00365
00366
00367
00368
00369
00370 SWIGRUNTIME int
00371 SWIG_TypeEquiv(const char *nb, const char *tb) {
00372 int equiv = 0;
00373 const char* te = tb + strlen(tb);
00374 const char* ne = nb;
00375 while (!equiv && *ne) {
00376 for (nb = ne; *ne; ++ne) {
00377 if (*ne == '|') break;
00378 }
00379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
00380 if (*ne) ++ne;
00381 }
00382 return equiv;
00383 }
00384
00385
00386
00387
00388
00389 SWIGRUNTIME int
00390 SWIG_TypeCompare(const char *nb, const char *tb) {
00391 int equiv = 0;
00392 const char* te = tb + strlen(tb);
00393 const char* ne = nb;
00394 while (!equiv && *ne) {
00395 for (nb = ne; *ne; ++ne) {
00396 if (*ne == '|') break;
00397 }
00398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
00399 if (*ne) ++ne;
00400 }
00401 return equiv;
00402 }
00403
00404
00405
00406 #define SWIG_TypeCheck_Template(comparison, ty) \
00407 if (ty) { \
00408 swig_cast_info *iter = ty->cast; \
00409 while (iter) { \
00410 if (comparison) { \
00411 if (iter == ty->cast) return iter; \
00412 \
00413 iter->prev->next = iter->next; \
00414 if (iter->next) \
00415 iter->next->prev = iter->prev; \
00416 iter->next = ty->cast; \
00417 iter->prev = 0; \
00418 if (ty->cast) ty->cast->prev = iter; \
00419 ty->cast = iter; \
00420 return iter; \
00421 } \
00422 iter = iter->next; \
00423 } \
00424 } \
00425 return 0
00426
00427
00428
00429
00430 SWIGRUNTIME swig_cast_info *
00431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
00432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
00433 }
00434
00435
00436 SWIGRUNTIME swig_cast_info *
00437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
00438 SWIG_TypeCheck_Template(iter->type == from, into);
00439 }
00440
00441
00442
00443
00444 SWIGRUNTIMEINLINE void *
00445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
00446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
00447 }
00448
00449
00450
00451
00452 SWIGRUNTIME swig_type_info *
00453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
00454 swig_type_info *lastty = ty;
00455 if (!ty || !ty->dcast) return ty;
00456 while (ty && (ty->dcast)) {
00457 ty = (*ty->dcast)(ptr);
00458 if (ty) lastty = ty;
00459 }
00460 return lastty;
00461 }
00462
00463
00464
00465
00466 SWIGRUNTIMEINLINE const char *
00467 SWIG_TypeName(const swig_type_info *ty) {
00468 return ty->name;
00469 }
00470
00471
00472
00473
00474
00475 SWIGRUNTIME const char *
00476 SWIG_TypePrettyName(const swig_type_info *type) {
00477
00478
00479
00480
00481 if (!type) return NULL;
00482 if (type->str != NULL) {
00483 const char *last_name = type->str;
00484 const char *s;
00485 for (s = type->str; *s; s++)
00486 if (*s == '|') last_name = s+1;
00487 return last_name;
00488 }
00489 else
00490 return type->name;
00491 }
00492
00493
00494
00495
00496 SWIGRUNTIME void
00497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
00498 swig_cast_info *cast = ti->cast;
00499
00500 ti->clientdata = clientdata;
00501
00502 while (cast) {
00503 if (!cast->converter) {
00504 swig_type_info *tc = cast->type;
00505 if (!tc->clientdata) {
00506 SWIG_TypeClientData(tc, clientdata);
00507 }
00508 }
00509 cast = cast->next;
00510 }
00511 }
00512 SWIGRUNTIME void
00513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
00514 SWIG_TypeClientData(ti, clientdata);
00515 ti->owndata = 1;
00516 }
00517
00518
00519
00520
00521
00522
00523
00524
00525
00526 SWIGRUNTIME swig_type_info *
00527 SWIG_MangledTypeQueryModule(swig_module_info *start,
00528 swig_module_info *end,
00529 const char *name) {
00530 swig_module_info *iter = start;
00531 do {
00532 if (iter->size) {
00533 register size_t l = 0;
00534 register size_t r = iter->size - 1;
00535 do {
00536
00537 register size_t i = (l + r) >> 1;
00538 const char *iname = iter->types[i]->name;
00539 if (iname) {
00540 register int compare = strcmp(name, iname);
00541 if (compare == 0) {
00542 return iter->types[i];
00543 } else if (compare < 0) {
00544 if (i) {
00545 r = i - 1;
00546 } else {
00547 break;
00548 }
00549 } else if (compare > 0) {
00550 l = i + 1;
00551 }
00552 } else {
00553 break;
00554 }
00555 } while (l <= r);
00556 }
00557 iter = iter->next;
00558 } while (iter != end);
00559 return 0;
00560 }
00561
00562
00563
00564
00565
00566
00567
00568
00569
00570
00571 SWIGRUNTIME swig_type_info *
00572 SWIG_TypeQueryModule(swig_module_info *start,
00573 swig_module_info *end,
00574 const char *name) {
00575
00576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
00577 if (ret) {
00578 return ret;
00579 } else {
00580
00581
00582 swig_module_info *iter = start;
00583 do {
00584 register size_t i = 0;
00585 for (; i < iter->size; ++i) {
00586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
00587 return iter->types[i];
00588 }
00589 iter = iter->next;
00590 } while (iter != end);
00591 }
00592
00593
00594 return 0;
00595 }
00596
00597
00598
00599
00600 SWIGRUNTIME char *
00601 SWIG_PackData(char *c, void *ptr, size_t sz) {
00602 static const char hex[17] = "0123456789abcdef";
00603 register const unsigned char *u = (unsigned char *) ptr;
00604 register const unsigned char *eu = u + sz;
00605 for (; u != eu; ++u) {
00606 register unsigned char uu = *u;
00607 *(c++) = hex[(uu & 0xf0) >> 4];
00608 *(c++) = hex[uu & 0xf];
00609 }
00610 return c;
00611 }
00612
00613
00614
00615
00616 SWIGRUNTIME const char *
00617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
00618 register unsigned char *u = (unsigned char *) ptr;
00619 register const unsigned char *eu = u + sz;
00620 for (; u != eu; ++u) {
00621 register char d = *(c++);
00622 register unsigned char uu;
00623 if ((d >= '0') && (d <= '9'))
00624 uu = ((d - '0') << 4);
00625 else if ((d >= 'a') && (d <= 'f'))
00626 uu = ((d - ('a'-10)) << 4);
00627 else
00628 return (char *) 0;
00629 d = *(c++);
00630 if ((d >= '0') && (d <= '9'))
00631 uu |= (d - '0');
00632 else if ((d >= 'a') && (d <= 'f'))
00633 uu |= (d - ('a'-10));
00634 else
00635 return (char *) 0;
00636 *u = uu;
00637 }
00638 return c;
00639 }
00640
00641
00642
00643
00644 SWIGRUNTIME char *
00645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
00646 char *r = buff;
00647 if ((2*sizeof(void *) + 2) > bsz) return 0;
00648 *(r++) = '_';
00649 r = SWIG_PackData(r,&ptr,sizeof(void *));
00650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
00651 strcpy(r,name);
00652 return buff;
00653 }
00654
00655 SWIGRUNTIME const char *
00656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
00657 if (*c != '_') {
00658 if (strcmp(c,"NULL") == 0) {
00659 *ptr = (void *) 0;
00660 return name;
00661 } else {
00662 return 0;
00663 }
00664 }
00665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
00666 }
00667
00668 SWIGRUNTIME char *
00669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
00670 char *r = buff;
00671 size_t lname = (name ? strlen(name) : 0);
00672 if ((2*sz + 2 + lname) > bsz) return 0;
00673 *(r++) = '_';
00674 r = SWIG_PackData(r,ptr,sz);
00675 if (lname) {
00676 strncpy(r,name,lname+1);
00677 } else {
00678 *r = 0;
00679 }
00680 return buff;
00681 }
00682
00683 SWIGRUNTIME const char *
00684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
00685 if (*c != '_') {
00686 if (strcmp(c,"NULL") == 0) {
00687 memset(ptr,0,sz);
00688 return name;
00689 } else {
00690 return 0;
00691 }
00692 }
00693 return SWIG_UnpackData(++c,ptr,sz);
00694 }
00695
00696 #ifdef __cplusplus
00697 }
00698 #endif
00699
00700
00701 #define SWIG_UnknownError -1
00702 #define SWIG_IOError -2
00703 #define SWIG_RuntimeError -3
00704 #define SWIG_IndexError -4
00705 #define SWIG_TypeError -5
00706 #define SWIG_DivisionByZero -6
00707 #define SWIG_OverflowError -7
00708 #define SWIG_SyntaxError -8
00709 #define SWIG_ValueError -9
00710 #define SWIG_SystemError -10
00711 #define SWIG_AttributeError -11
00712 #define SWIG_MemoryError -12
00713 #define SWIG_NullReferenceError -13
00714
00715
00716
00717
00718 #include <Python.h>
00719
00720
00721 #if PY_VERSION_HEX < 0x02020000
00722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
00723 # define PyOS_snprintf _snprintf
00724 # else
00725 # define PyOS_snprintf snprintf
00726 # endif
00727 #endif
00728
00729
00730 #if PY_VERSION_HEX < 0x02020000
00731
00732 #ifndef SWIG_PYBUFFER_SIZE
00733 # define SWIG_PYBUFFER_SIZE 1024
00734 #endif
00735
00736 static PyObject *
00737 PyString_FromFormat(const char *fmt, ...) {
00738 va_list ap;
00739 char buf[SWIG_PYBUFFER_SIZE * 2];
00740 int res;
00741 va_start(ap, fmt);
00742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
00743 va_end(ap);
00744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
00745 }
00746 #endif
00747
00748
00749 #if PY_VERSION_HEX < 0x01060000
00750 # define PyObject_Del(op) PyMem_DEL((op))
00751 #endif
00752 #ifndef PyObject_DEL
00753 # define PyObject_DEL PyObject_Del
00754 #endif
00755
00756
00757 #if PY_VERSION_HEX < 0x02020000
00758 # ifndef PyExc_StopIteration
00759 # define PyExc_StopIteration PyExc_RuntimeError
00760 # endif
00761 # ifndef PyObject_GenericGetAttr
00762 # define PyObject_GenericGetAttr 0
00763 # endif
00764 #endif
00765
00766 #if PY_VERSION_HEX < 0x02010000
00767 # ifndef Py_NotImplemented
00768 # define Py_NotImplemented PyExc_RuntimeError
00769 # endif
00770 #endif
00771
00772
00773
00774 #if PY_VERSION_HEX < 0x02010000
00775 # ifndef PyString_AsStringAndSize
00776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
00777 # endif
00778 #endif
00779
00780
00781 #if PY_VERSION_HEX < 0x02000000
00782 # ifndef PySequence_Size
00783 # define PySequence_Size PySequence_Length
00784 # endif
00785 #endif
00786
00787
00788
00789 #if PY_VERSION_HEX < 0x02030000
00790 static
00791 PyObject *PyBool_FromLong(long ok)
00792 {
00793 PyObject *result = ok ? Py_True : Py_False;
00794 Py_INCREF(result);
00795 return result;
00796 }
00797 #endif
00798
00799
00800
00801
00802
00803
00804 SWIGRUNTIME PyObject*
00805 SWIG_Python_ErrorType(int code) {
00806 PyObject* type = 0;
00807 switch(code) {
00808 case SWIG_MemoryError:
00809 type = PyExc_MemoryError;
00810 break;
00811 case SWIG_IOError:
00812 type = PyExc_IOError;
00813 break;
00814 case SWIG_RuntimeError:
00815 type = PyExc_RuntimeError;
00816 break;
00817 case SWIG_IndexError:
00818 type = PyExc_IndexError;
00819 break;
00820 case SWIG_TypeError:
00821 type = PyExc_TypeError;
00822 break;
00823 case SWIG_DivisionByZero:
00824 type = PyExc_ZeroDivisionError;
00825 break;
00826 case SWIG_OverflowError:
00827 type = PyExc_OverflowError;
00828 break;
00829 case SWIG_SyntaxError:
00830 type = PyExc_SyntaxError;
00831 break;
00832 case SWIG_ValueError:
00833 type = PyExc_ValueError;
00834 break;
00835 case SWIG_SystemError:
00836 type = PyExc_SystemError;
00837 break;
00838 case SWIG_AttributeError:
00839 type = PyExc_AttributeError;
00840 break;
00841 default:
00842 type = PyExc_RuntimeError;
00843 }
00844 return type;
00845 }
00846
00847
00848 SWIGRUNTIME void
00849 SWIG_Python_AddErrorMsg(const char* mesg)
00850 {
00851 PyObject *type = 0;
00852 PyObject *value = 0;
00853 PyObject *traceback = 0;
00854
00855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
00856 if (value) {
00857 PyObject *old_str = PyObject_Str(value);
00858 PyErr_Clear();
00859 Py_XINCREF(type);
00860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
00861 Py_DECREF(old_str);
00862 Py_DECREF(value);
00863 } else {
00864 PyErr_Format(PyExc_RuntimeError, mesg);
00865 }
00866 }
00867
00868
00869
00870 #if defined(SWIG_PYTHON_NO_THREADS)
00871 # if defined(SWIG_PYTHON_THREADS)
00872 # undef SWIG_PYTHON_THREADS
00873 # endif
00874 #endif
00875 #if defined(SWIG_PYTHON_THREADS)
00876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
00877 # if (PY_VERSION_HEX >= 0x02030000)
00878 # define SWIG_PYTHON_USE_GIL
00879 # endif
00880 # endif
00881 # if defined(SWIG_PYTHON_USE_GIL)
00882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
00883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
00884 # endif
00885 # ifdef __cplusplus
00886 class SWIG_Python_Thread_Block {
00887 bool status;
00888 PyGILState_STATE state;
00889 public:
00890 void end() { if (status) { PyGILState_Release(state); status = false;} }
00891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
00892 ~SWIG_Python_Thread_Block() { end(); }
00893 };
00894 class SWIG_Python_Thread_Allow {
00895 bool status;
00896 PyThreadState *save;
00897 public:
00898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
00899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
00900 ~SWIG_Python_Thread_Allow() { end(); }
00901 };
00902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
00903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
00904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
00905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
00906 # else
00907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
00908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
00909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
00910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
00911 # endif
00912 # else
00913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
00914 # define SWIG_PYTHON_INITIALIZE_THREADS
00915 # endif
00916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
00917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
00918 # endif
00919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
00920 # define SWIG_PYTHON_THREAD_END_BLOCK
00921 # endif
00922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
00923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
00924 # endif
00925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
00926 # define SWIG_PYTHON_THREAD_END_ALLOW
00927 # endif
00928 # endif
00929 #else
00930 # define SWIG_PYTHON_INITIALIZE_THREADS
00931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
00932 # define SWIG_PYTHON_THREAD_END_BLOCK
00933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
00934 # define SWIG_PYTHON_THREAD_END_ALLOW
00935 #endif
00936
00937
00938
00939
00940
00941 #ifdef __cplusplus
00942 extern "C" {
00943 #if 0
00944 }
00945 #endif
00946 #endif
00947
00948
00949
00950
00951
00952
00953 #define SWIG_PY_POINTER 4
00954 #define SWIG_PY_BINARY 5
00955
00956
00957 typedef struct swig_const_info {
00958 int type;
00959 char *name;
00960 long lvalue;
00961 double dvalue;
00962 void *pvalue;
00963 swig_type_info **ptype;
00964 } swig_const_info;
00965
00966 #ifdef __cplusplus
00967 #if 0
00968 {
00969 #endif
00970 }
00971 #endif
00972
00973
00974
00975
00976
00977
00978
00979
00980
00981
00982
00983
00984
00985
00986
00987
00988 #if PY_VERSION_HEX < 0x02050000
00989 typedef int Py_ssize_t;
00990 #endif
00991
00992
00993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
00994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
00995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
00996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
00997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
00998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
00999 #define swig_owntype int
01000
01001
01002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
01003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
01004
01005
01006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
01007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
01008
01009
01010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
01011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
01012
01013
01014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
01015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
01016
01017
01018
01019
01020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
01021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
01022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
01023
01024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
01025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
01026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
01027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
01028 #define SWIG_fail goto fail
01029
01030
01031
01032
01033
01034
01035 SWIGINTERN void
01036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
01037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
01038 PyErr_SetObject(errtype, obj);
01039 Py_DECREF(obj);
01040 SWIG_PYTHON_THREAD_END_BLOCK;
01041 }
01042
01043 SWIGINTERN void
01044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
01045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
01046 PyErr_SetString(errtype, (char *) msg);
01047 SWIG_PYTHON_THREAD_END_BLOCK;
01048 }
01049
01050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
01051
01052
01053
01054 SWIGINTERN void
01055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
01056 PyDict_SetItemString(d, (char*) name, obj);
01057 Py_DECREF(obj);
01058 }
01059
01060
01061
01062 SWIGINTERN PyObject*
01063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
01064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
01065 if (!result) {
01066 result = obj;
01067 } else if (result == Py_None) {
01068 Py_DECREF(result);
01069 result = obj;
01070 } else {
01071 if (!PyList_Check(result)) {
01072 PyObject *o2 = result;
01073 result = PyList_New(1);
01074 PyList_SetItem(result, 0, o2);
01075 }
01076 PyList_Append(result,obj);
01077 Py_DECREF(obj);
01078 }
01079 return result;
01080 #else
01081 PyObject* o2;
01082 PyObject* o3;
01083 if (!result) {
01084 result = obj;
01085 } else if (result == Py_None) {
01086 Py_DECREF(result);
01087 result = obj;
01088 } else {
01089 if (!PyTuple_Check(result)) {
01090 o2 = result;
01091 result = PyTuple_New(1);
01092 PyTuple_SET_ITEM(result, 0, o2);
01093 }
01094 o3 = PyTuple_New(1);
01095 PyTuple_SET_ITEM(o3, 0, obj);
01096 o2 = result;
01097 result = PySequence_Concat(o2, o3);
01098 Py_DECREF(o2);
01099 Py_DECREF(o3);
01100 }
01101 return result;
01102 #endif
01103 }
01104
01105
01106
01107 SWIGINTERN int
01108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
01109 {
01110 if (!args) {
01111 if (!min && !max) {
01112 return 1;
01113 } else {
01114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
01115 name, (min == max ? "" : "at least "), min);
01116 return 0;
01117 }
01118 }
01119 if (!PyTuple_Check(args)) {
01120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
01121 return 0;
01122 } else {
01123 register int l = PyTuple_GET_SIZE(args);
01124 if (l < min) {
01125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
01126 name, (min == max ? "" : "at least "), min, l);
01127 return 0;
01128 } else if (l > max) {
01129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
01130 name, (min == max ? "" : "at most "), max, l);
01131 return 0;
01132 } else {
01133 register int i;
01134 for (i = 0; i < l; ++i) {
01135 objs[i] = PyTuple_GET_ITEM(args, i);
01136 }
01137 for (; l < max; ++l) {
01138 objs[l] = 0;
01139 }
01140 return i + 1;
01141 }
01142 }
01143 }
01144
01145
01146 #if PY_VERSION_HEX >= 0x02020000
01147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
01148 #else
01149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
01150 #endif
01151
01152
01153
01154
01155
01156 #ifdef __cplusplus
01157 #define SWIG_STATIC_POINTER(var) var
01158 #else
01159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
01160 #endif
01161
01162
01163
01164
01165
01166
01167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
01168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
01169
01170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
01171
01172 #ifdef __cplusplus
01173 extern "C" {
01174 #if 0
01175 }
01176 #endif
01177 #endif
01178
01179
01180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
01181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
01182 # ifndef SWIG_PYTHON_BUILD_NONE
01183 # define SWIG_PYTHON_BUILD_NONE
01184 # endif
01185 # endif
01186 #endif
01187
01188 #ifdef SWIG_PYTHON_BUILD_NONE
01189 # ifdef Py_None
01190 # undef Py_None
01191 # define Py_None SWIG_Py_None()
01192 # endif
01193 SWIGRUNTIMEINLINE PyObject *
01194 _SWIG_Py_None(void)
01195 {
01196 PyObject *none = Py_BuildValue("");
01197 Py_DECREF(none);
01198 return none;
01199 }
01200 SWIGRUNTIME PyObject *
01201 SWIG_Py_None(void)
01202 {
01203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
01204 return none;
01205 }
01206 #endif
01207
01208
01209
01210 SWIGRUNTIMEINLINE PyObject *
01211 SWIG_Py_Void(void)
01212 {
01213 PyObject *none = Py_None;
01214 Py_INCREF(none);
01215 return none;
01216 }
01217
01218
01219
01220 typedef struct {
01221 PyObject *klass;
01222 PyObject *newraw;
01223 PyObject *newargs;
01224 PyObject *destroy;
01225 int delargs;
01226 int implicitconv;
01227 } PySwigClientData;
01228
01229 SWIGRUNTIMEINLINE int
01230 SWIG_Python_CheckImplicit(swig_type_info *ty)
01231 {
01232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
01233 return data ? data->implicitconv : 0;
01234 }
01235
01236 SWIGRUNTIMEINLINE PyObject *
01237 SWIG_Python_ExceptionType(swig_type_info *desc) {
01238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
01239 PyObject *klass = data ? data->klass : 0;
01240 return (klass ? klass : PyExc_RuntimeError);
01241 }
01242
01243
01244 SWIGRUNTIME PySwigClientData *
01245 PySwigClientData_New(PyObject* obj)
01246 {
01247 if (!obj) {
01248 return 0;
01249 } else {
01250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
01251
01252 data->klass = obj;
01253 Py_INCREF(data->klass);
01254
01255 if (PyClass_Check(obj)) {
01256 data->newraw = 0;
01257 data->newargs = obj;
01258 Py_INCREF(obj);
01259 } else {
01260 #if (PY_VERSION_HEX < 0x02020000)
01261 data->newraw = 0;
01262 #else
01263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
01264 #endif
01265 if (data->newraw) {
01266 Py_INCREF(data->newraw);
01267 data->newargs = PyTuple_New(1);
01268 PyTuple_SetItem(data->newargs, 0, obj);
01269 } else {
01270 data->newargs = obj;
01271 }
01272 Py_INCREF(data->newargs);
01273 }
01274
01275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
01276 if (PyErr_Occurred()) {
01277 PyErr_Clear();
01278 data->destroy = 0;
01279 }
01280 if (data->destroy) {
01281 int flags;
01282 Py_INCREF(data->destroy);
01283 flags = PyCFunction_GET_FLAGS(data->destroy);
01284 #ifdef METH_O
01285 data->delargs = !(flags & (METH_O));
01286 #else
01287 data->delargs = 0;
01288 #endif
01289 } else {
01290 data->delargs = 0;
01291 }
01292 data->implicitconv = 0;
01293 return data;
01294 }
01295 }
01296
01297 SWIGRUNTIME void
01298 PySwigClientData_Del(PySwigClientData* data)
01299 {
01300 Py_XDECREF(data->newraw);
01301 Py_XDECREF(data->newargs);
01302 Py_XDECREF(data->destroy);
01303 }
01304
01305
01306
01307 typedef struct {
01308 PyObject_HEAD
01309 void *ptr;
01310 swig_type_info *ty;
01311 int own;
01312 PyObject *next;
01313 } PySwigObject;
01314
01315 SWIGRUNTIME PyObject *
01316 PySwigObject_long(PySwigObject *v)
01317 {
01318 return PyLong_FromVoidPtr(v->ptr);
01319 }
01320
01321 SWIGRUNTIME PyObject *
01322 PySwigObject_format(const char* fmt, PySwigObject *v)
01323 {
01324 PyObject *res = NULL;
01325 PyObject *args = PyTuple_New(1);
01326 if (args) {
01327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
01328 PyObject *ofmt = PyString_FromString(fmt);
01329 if (ofmt) {
01330 res = PyString_Format(ofmt,args);
01331 Py_DECREF(ofmt);
01332 }
01333 Py_DECREF(args);
01334 }
01335 }
01336 return res;
01337 }
01338
01339 SWIGRUNTIME PyObject *
01340 PySwigObject_oct(PySwigObject *v)
01341 {
01342 return PySwigObject_format("%o",v);
01343 }
01344
01345 SWIGRUNTIME PyObject *
01346 PySwigObject_hex(PySwigObject *v)
01347 {
01348 return PySwigObject_format("%x",v);
01349 }
01350
01351 SWIGRUNTIME PyObject *
01352 #ifdef METH_NOARGS
01353 PySwigObject_repr(PySwigObject *v)
01354 #else
01355 PySwigObject_repr(PySwigObject *v, PyObject *args)
01356 #endif
01357 {
01358 const char *name = SWIG_TypePrettyName(v->ty);
01359 PyObject *hex = PySwigObject_hex(v);
01360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
01361 Py_DECREF(hex);
01362 if (v->next) {
01363 #ifdef METH_NOARGS
01364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
01365 #else
01366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
01367 #endif
01368 PyString_ConcatAndDel(&repr,nrep);
01369 }
01370 return repr;
01371 }
01372
01373 SWIGRUNTIME int
01374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
01375 {
01376 #ifdef METH_NOARGS
01377 PyObject *repr = PySwigObject_repr(v);
01378 #else
01379 PyObject *repr = PySwigObject_repr(v, NULL);
01380 #endif
01381 if (repr) {
01382 fputs(PyString_AsString(repr), fp);
01383 Py_DECREF(repr);
01384 return 0;
01385 } else {
01386 return 1;
01387 }
01388 }
01389
01390 SWIGRUNTIME PyObject *
01391 PySwigObject_str(PySwigObject *v)
01392 {
01393 char result[SWIG_BUFFER_SIZE];
01394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
01395 PyString_FromString(result) : 0;
01396 }
01397
01398 SWIGRUNTIME int
01399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
01400 {
01401 void *i = v->ptr;
01402 void *j = w->ptr;
01403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
01404 }
01405
01406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
01407
01408 SWIGRUNTIME PyTypeObject*
01409 PySwigObject_type(void) {
01410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
01411 return type;
01412 }
01413
01414 SWIGRUNTIMEINLINE int
01415 PySwigObject_Check(PyObject *op) {
01416 return ((op)->ob_type == PySwigObject_type())
01417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
01418 }
01419
01420 SWIGRUNTIME PyObject *
01421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
01422
01423 SWIGRUNTIME void
01424 PySwigObject_dealloc(PyObject *v)
01425 {
01426 PySwigObject *sobj = (PySwigObject *) v;
01427 PyObject *next = sobj->next;
01428 if (sobj->own) {
01429 swig_type_info *ty = sobj->ty;
01430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
01431 PyObject *destroy = data ? data->destroy : 0;
01432 if (destroy) {
01433
01434 PyObject *res;
01435 if (data->delargs) {
01436
01437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
01438 res = SWIG_Python_CallFunctor(destroy, tmp);
01439 Py_DECREF(tmp);
01440 } else {
01441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
01442 PyObject *mself = PyCFunction_GET_SELF(destroy);
01443 res = ((*meth)(mself, v));
01444 }
01445 Py_XDECREF(res);
01446 } else {
01447 const char *name = SWIG_TypePrettyName(ty);
01448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
01449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
01450 #endif
01451 }
01452 }
01453 Py_XDECREF(next);
01454 PyObject_DEL(v);
01455 }
01456
01457 SWIGRUNTIME PyObject*
01458 PySwigObject_append(PyObject* v, PyObject* next)
01459 {
01460 PySwigObject *sobj = (PySwigObject *) v;
01461 #ifndef METH_O
01462 PyObject *tmp = 0;
01463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
01464 next = tmp;
01465 #endif
01466 if (!PySwigObject_Check(next)) {
01467 return NULL;
01468 }
01469 sobj->next = next;
01470 Py_INCREF(next);
01471 return SWIG_Py_Void();
01472 }
01473
01474 SWIGRUNTIME PyObject*
01475 #ifdef METH_NOARGS
01476 PySwigObject_next(PyObject* v)
01477 #else
01478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
01479 #endif
01480 {
01481 PySwigObject *sobj = (PySwigObject *) v;
01482 if (sobj->next) {
01483 Py_INCREF(sobj->next);
01484 return sobj->next;
01485 } else {
01486 return SWIG_Py_Void();
01487 }
01488 }
01489
01490 SWIGINTERN PyObject*
01491 #ifdef METH_NOARGS
01492 PySwigObject_disown(PyObject *v)
01493 #else
01494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
01495 #endif
01496 {
01497 PySwigObject *sobj = (PySwigObject *)v;
01498 sobj->own = 0;
01499 return SWIG_Py_Void();
01500 }
01501
01502 SWIGINTERN PyObject*
01503 #ifdef METH_NOARGS
01504 PySwigObject_acquire(PyObject *v)
01505 #else
01506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
01507 #endif
01508 {
01509 PySwigObject *sobj = (PySwigObject *)v;
01510 sobj->own = SWIG_POINTER_OWN;
01511 return SWIG_Py_Void();
01512 }
01513
01514 SWIGINTERN PyObject*
01515 PySwigObject_own(PyObject *v, PyObject *args)
01516 {
01517 PyObject *val = 0;
01518 #if (PY_VERSION_HEX < 0x02020000)
01519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
01520 #else
01521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
01522 #endif
01523 {
01524 return NULL;
01525 }
01526 else
01527 {
01528 PySwigObject *sobj = (PySwigObject *)v;
01529 PyObject *obj = PyBool_FromLong(sobj->own);
01530 if (val) {
01531 #ifdef METH_NOARGS
01532 if (PyObject_IsTrue(val)) {
01533 PySwigObject_acquire(v);
01534 } else {
01535 PySwigObject_disown(v);
01536 }
01537 #else
01538 if (PyObject_IsTrue(val)) {
01539 PySwigObject_acquire(v,args);
01540 } else {
01541 PySwigObject_disown(v,args);
01542 }
01543 #endif
01544 }
01545 return obj;
01546 }
01547 }
01548
01549 #ifdef METH_O
01550 static PyMethodDef
01551 swigobject_methods[] = {
01552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
01553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
01554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
01555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
01556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
01557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
01558 {0, 0, 0, 0}
01559 };
01560 #else
01561 static PyMethodDef
01562 swigobject_methods[] = {
01563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
01564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
01565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
01566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
01567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
01568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
01569 {0, 0, 0, 0}
01570 };
01571 #endif
01572
01573 #if PY_VERSION_HEX < 0x02020000
01574 SWIGINTERN PyObject *
01575 PySwigObject_getattr(PySwigObject *sobj,char *name)
01576 {
01577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
01578 }
01579 #endif
01580
01581 SWIGRUNTIME PyTypeObject*
01582 _PySwigObject_type(void) {
01583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
01584
01585 static PyNumberMethods PySwigObject_as_number = {
01586 (binaryfunc)0,
01587 (binaryfunc)0,
01588 (binaryfunc)0,
01589 (binaryfunc)0,
01590 (binaryfunc)0,
01591 (binaryfunc)0,
01592 (ternaryfunc)0,
01593 (unaryfunc)0,
01594 (unaryfunc)0,
01595 (unaryfunc)0,
01596 (inquiry)0,
01597 0,
01598 0,
01599 0,
01600 0,
01601 0,
01602 0,
01603 (coercion)0,
01604 (unaryfunc)PySwigObject_long,
01605 (unaryfunc)PySwigObject_long,
01606 (unaryfunc)0,
01607 (unaryfunc)PySwigObject_oct,
01608 (unaryfunc)PySwigObject_hex,
01609 #if PY_VERSION_HEX >= 0x02020000
01610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
01611 #elif PY_VERSION_HEX >= 0x02000000
01612 0,0,0,0,0,0,0,0,0,0,0
01613 #endif
01614 };
01615
01616 static PyTypeObject pyswigobject_type;
01617 static int type_init = 0;
01618 if (!type_init) {
01619 const PyTypeObject tmp
01620 = {
01621 PyObject_HEAD_INIT(NULL)
01622 0,
01623 (char *)"PySwigObject",
01624 sizeof(PySwigObject),
01625 0,
01626 (destructor)PySwigObject_dealloc,
01627 (printfunc)PySwigObject_print,
01628 #if PY_VERSION_HEX < 0x02020000
01629 (getattrfunc)PySwigObject_getattr,
01630 #else
01631 (getattrfunc)0,
01632 #endif
01633 (setattrfunc)0,
01634 (cmpfunc)PySwigObject_compare,
01635 (reprfunc)PySwigObject_repr,
01636 &PySwigObject_as_number,
01637 0,
01638 0,
01639 (hashfunc)0,
01640 (ternaryfunc)0,
01641 (reprfunc)PySwigObject_str,
01642 PyObject_GenericGetAttr,
01643 0,
01644 0,
01645 Py_TPFLAGS_DEFAULT,
01646 swigobject_doc,
01647 0,
01648 0,
01649 0,
01650 0,
01651 #if PY_VERSION_HEX >= 0x02020000
01652 0,
01653 0,
01654 swigobject_methods,
01655 0,
01656 0,
01657 0,
01658 0,
01659 0,
01660 0,
01661 0,
01662 0,
01663 0,
01664 0,
01665 0,
01666 0,
01667 0,
01668 0,
01669 0,
01670 0,
01671 0,
01672 #endif
01673 #if PY_VERSION_HEX >= 0x02030000
01674 0,
01675 #endif
01676 #ifdef COUNT_ALLOCS
01677 0,0,0,0
01678 #endif
01679 };
01680 pyswigobject_type = tmp;
01681 pyswigobject_type.ob_type = &PyType_Type;
01682 type_init = 1;
01683 }
01684 return &pyswigobject_type;
01685 }
01686
01687 SWIGRUNTIME PyObject *
01688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
01689 {
01690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
01691 if (sobj) {
01692 sobj->ptr = ptr;
01693 sobj->ty = ty;
01694 sobj->own = own;
01695 sobj->next = 0;
01696 }
01697 return (PyObject *)sobj;
01698 }
01699
01700
01701
01702
01703
01704 typedef struct {
01705 PyObject_HEAD
01706 void *pack;
01707 swig_type_info *ty;
01708 size_t size;
01709 } PySwigPacked;
01710
01711 SWIGRUNTIME int
01712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
01713 {
01714 char result[SWIG_BUFFER_SIZE];
01715 fputs("<Swig Packed ", fp);
01716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
01717 fputs("at ", fp);
01718 fputs(result, fp);
01719 }
01720 fputs(v->ty->name,fp);
01721 fputs(">", fp);
01722 return 0;
01723 }
01724
01725 SWIGRUNTIME PyObject *
01726 PySwigPacked_repr(PySwigPacked *v)
01727 {
01728 char result[SWIG_BUFFER_SIZE];
01729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
01730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
01731 } else {
01732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
01733 }
01734 }
01735
01736 SWIGRUNTIME PyObject *
01737 PySwigPacked_str(PySwigPacked *v)
01738 {
01739 char result[SWIG_BUFFER_SIZE];
01740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
01741 return PyString_FromFormat("%s%s", result, v->ty->name);
01742 } else {
01743 return PyString_FromString(v->ty->name);
01744 }
01745 }
01746
01747 SWIGRUNTIME int
01748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
01749 {
01750 size_t i = v->size;
01751 size_t j = w->size;
01752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
01753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
01754 }
01755
01756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
01757
01758 SWIGRUNTIME PyTypeObject*
01759 PySwigPacked_type(void) {
01760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
01761 return type;
01762 }
01763
01764 SWIGRUNTIMEINLINE int
01765 PySwigPacked_Check(PyObject *op) {
01766 return ((op)->ob_type == _PySwigPacked_type())
01767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
01768 }
01769
01770 SWIGRUNTIME void
01771 PySwigPacked_dealloc(PyObject *v)
01772 {
01773 if (PySwigPacked_Check(v)) {
01774 PySwigPacked *sobj = (PySwigPacked *) v;
01775 free(sobj->pack);
01776 }
01777 PyObject_DEL(v);
01778 }
01779
01780 SWIGRUNTIME PyTypeObject*
01781 _PySwigPacked_type(void) {
01782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
01783 static PyTypeObject pyswigpacked_type;
01784 static int type_init = 0;
01785 if (!type_init) {
01786 const PyTypeObject tmp
01787 = {
01788 PyObject_HEAD_INIT(NULL)
01789 0,
01790 (char *)"PySwigPacked",
01791 sizeof(PySwigPacked),
01792 0,
01793 (destructor)PySwigPacked_dealloc,
01794 (printfunc)PySwigPacked_print,
01795 (getattrfunc)0,
01796 (setattrfunc)0,
01797 (cmpfunc)PySwigPacked_compare,
01798 (reprfunc)PySwigPacked_repr,
01799 0,
01800 0,
01801 0,
01802 (hashfunc)0,
01803 (ternaryfunc)0,
01804 (reprfunc)PySwigPacked_str,
01805 PyObject_GenericGetAttr,
01806 0,
01807 0,
01808 Py_TPFLAGS_DEFAULT,
01809 swigpacked_doc,
01810 0,
01811 0,
01812 0,
01813 0,
01814 #if PY_VERSION_HEX >= 0x02020000
01815 0,
01816 0,
01817 0,
01818 0,
01819 0,
01820 0,
01821 0,
01822 0,
01823 0,
01824 0,
01825 0,
01826 0,
01827 0,
01828 0,
01829 0,
01830 0,
01831 0,
01832 0,
01833 0,
01834 0,
01835 #endif
01836 #if PY_VERSION_HEX >= 0x02030000
01837 0,
01838 #endif
01839 #ifdef COUNT_ALLOCS
01840 0,0,0,0
01841 #endif
01842 };
01843 pyswigpacked_type = tmp;
01844 pyswigpacked_type.ob_type = &PyType_Type;
01845 type_init = 1;
01846 }
01847 return &pyswigpacked_type;
01848 }
01849
01850 SWIGRUNTIME PyObject *
01851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
01852 {
01853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
01854 if (sobj) {
01855 void *pack = malloc(size);
01856 if (pack) {
01857 memcpy(pack, ptr, size);
01858 sobj->pack = pack;
01859 sobj->ty = ty;
01860 sobj->size = size;
01861 } else {
01862 PyObject_DEL((PyObject *) sobj);
01863 sobj = 0;
01864 }
01865 }
01866 return (PyObject *) sobj;
01867 }
01868
01869 SWIGRUNTIME swig_type_info *
01870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
01871 {
01872 if (PySwigPacked_Check(obj)) {
01873 PySwigPacked *sobj = (PySwigPacked *)obj;
01874 if (sobj->size != size) return 0;
01875 memcpy(ptr, sobj->pack, size);
01876 return sobj->ty;
01877 } else {
01878 return 0;
01879 }
01880 }
01881
01882
01883
01884
01885
01886 SWIGRUNTIMEINLINE PyObject *
01887 _SWIG_This(void)
01888 {
01889 return PyString_FromString("this");
01890 }
01891
01892 SWIGRUNTIME PyObject *
01893 SWIG_This(void)
01894 {
01895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
01896 return swig_this;
01897 }
01898
01899
01900
01901 SWIGRUNTIME PySwigObject *
01902 SWIG_Python_GetSwigThis(PyObject *pyobj)
01903 {
01904 if (PySwigObject_Check(pyobj)) {
01905 return (PySwigObject *) pyobj;
01906 } else {
01907 PyObject *obj = 0;
01908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
01909 if (PyInstance_Check(pyobj)) {
01910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
01911 } else {
01912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
01913 if (dictptr != NULL) {
01914 PyObject *dict = *dictptr;
01915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
01916 } else {
01917 #ifdef PyWeakref_CheckProxy
01918 if (PyWeakref_CheckProxy(pyobj)) {
01919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
01920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
01921 }
01922 #endif
01923 obj = PyObject_GetAttr(pyobj,SWIG_This());
01924 if (obj) {
01925 Py_DECREF(obj);
01926 } else {
01927 if (PyErr_Occurred()) PyErr_Clear();
01928 return 0;
01929 }
01930 }
01931 }
01932 #else
01933 obj = PyObject_GetAttr(pyobj,SWIG_This());
01934 if (obj) {
01935 Py_DECREF(obj);
01936 } else {
01937 if (PyErr_Occurred()) PyErr_Clear();
01938 return 0;
01939 }
01940 #endif
01941 if (obj && !PySwigObject_Check(obj)) {
01942
01943
01944 return SWIG_Python_GetSwigThis(obj);
01945 }
01946 return (PySwigObject *)obj;
01947 }
01948 }
01949
01950
01951
01952 SWIGRUNTIME int
01953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
01954 if (own) {
01955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
01956 if (sobj) {
01957 int oldown = sobj->own;
01958 sobj->own = own;
01959 return oldown;
01960 }
01961 }
01962 return 0;
01963 }
01964
01965
01966
01967 SWIGRUNTIME int
01968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
01969 if (!obj) return SWIG_ERROR;
01970 if (obj == Py_None) {
01971 if (ptr) *ptr = 0;
01972 return SWIG_OK;
01973 } else {
01974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
01975 while (sobj) {
01976 void *vptr = sobj->ptr;
01977 if (ty) {
01978 swig_type_info *to = sobj->ty;
01979 if (to == ty) {
01980
01981 if (ptr) *ptr = vptr;
01982 break;
01983 } else {
01984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
01985 if (!tc) {
01986 sobj = (PySwigObject *)sobj->next;
01987 } else {
01988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
01989 break;
01990 }
01991 }
01992 } else {
01993 if (ptr) *ptr = vptr;
01994 break;
01995 }
01996 }
01997 if (sobj) {
01998 if (own) *own = sobj->own;
01999 if (flags & SWIG_POINTER_DISOWN) {
02000 sobj->own = 0;
02001 }
02002 return SWIG_OK;
02003 } else {
02004 int res = SWIG_ERROR;
02005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
02006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
02007 if (data && !data->implicitconv) {
02008 PyObject *klass = data->klass;
02009 if (klass) {
02010 PyObject *impconv;
02011 data->implicitconv = 1;
02012 impconv = SWIG_Python_CallFunctor(klass, obj);
02013 data->implicitconv = 0;
02014 if (PyErr_Occurred()) {
02015 PyErr_Clear();
02016 impconv = 0;
02017 }
02018 if (impconv) {
02019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
02020 if (iobj) {
02021 void *vptr;
02022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
02023 if (SWIG_IsOK(res)) {
02024 if (ptr) {
02025 *ptr = vptr;
02026
02027 iobj->own = 0;
02028 res = SWIG_AddCast(res);
02029 res = SWIG_AddNewMask(res);
02030 } else {
02031 res = SWIG_AddCast(res);
02032 }
02033 }
02034 }
02035 Py_DECREF(impconv);
02036 }
02037 }
02038 }
02039 }
02040 return res;
02041 }
02042 }
02043 }
02044
02045
02046
02047 SWIGRUNTIME int
02048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
02049 if (!PyCFunction_Check(obj)) {
02050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
02051 } else {
02052 void *vptr = 0;
02053
02054
02055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
02056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
02057 if (desc) {
02058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
02059 if (!desc) return SWIG_ERROR;
02060 }
02061 if (ty) {
02062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
02063 if (!tc) return SWIG_ERROR;
02064 *ptr = SWIG_TypeCast(tc,vptr);
02065 } else {
02066 *ptr = vptr;
02067 }
02068 return SWIG_OK;
02069 }
02070 }
02071
02072
02073
02074 SWIGRUNTIME int
02075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
02076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
02077 if (!to) return SWIG_ERROR;
02078 if (ty) {
02079 if (to != ty) {
02080
02081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
02082 if (!tc) return SWIG_ERROR;
02083 }
02084 }
02085 return SWIG_OK;
02086 }
02087
02088
02089
02090
02091
02092
02093
02094
02095
02096
02097 SWIGRUNTIME PyObject*
02098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
02099 {
02100 #if (PY_VERSION_HEX >= 0x02020000)
02101 PyObject *inst = 0;
02102 PyObject *newraw = data->newraw;
02103 if (newraw) {
02104 inst = PyObject_Call(newraw, data->newargs, NULL);
02105 if (inst) {
02106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
02107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
02108 if (dictptr != NULL) {
02109 PyObject *dict = *dictptr;
02110 if (dict == NULL) {
02111 dict = PyDict_New();
02112 *dictptr = dict;
02113 PyDict_SetItem(dict, SWIG_This(), swig_this);
02114 }
02115 }
02116 #else
02117 PyObject *key = SWIG_This();
02118 PyObject_SetAttr(inst, key, swig_this);
02119 #endif
02120 }
02121 } else {
02122 PyObject *dict = PyDict_New();
02123 PyDict_SetItem(dict, SWIG_This(), swig_this);
02124 inst = PyInstance_NewRaw(data->newargs, dict);
02125 Py_DECREF(dict);
02126 }
02127 return inst;
02128 #else
02129 #if (PY_VERSION_HEX >= 0x02010000)
02130 PyObject *inst;
02131 PyObject *dict = PyDict_New();
02132 PyDict_SetItem(dict, SWIG_This(), swig_this);
02133 inst = PyInstance_NewRaw(data->newargs, dict);
02134 Py_DECREF(dict);
02135 return (PyObject *) inst;
02136 #else
02137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
02138 if (inst == NULL) {
02139 return NULL;
02140 }
02141 inst->in_class = (PyClassObject *)data->newargs;
02142 Py_INCREF(inst->in_class);
02143 inst->in_dict = PyDict_New();
02144 if (inst->in_dict == NULL) {
02145 Py_DECREF(inst);
02146 return NULL;
02147 }
02148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
02149 inst->in_weakreflist = NULL;
02150 #endif
02151 #ifdef Py_TPFLAGS_GC
02152 PyObject_GC_Init(inst);
02153 #endif
02154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
02155 return (PyObject *) inst;
02156 #endif
02157 #endif
02158 }
02159
02160 SWIGRUNTIME void
02161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
02162 {
02163 PyObject *dict;
02164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
02165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
02166 if (dictptr != NULL) {
02167 dict = *dictptr;
02168 if (dict == NULL) {
02169 dict = PyDict_New();
02170 *dictptr = dict;
02171 }
02172 PyDict_SetItem(dict, SWIG_This(), swig_this);
02173 return;
02174 }
02175 #endif
02176 dict = PyObject_GetAttrString(inst, "__dict__");
02177 PyDict_SetItem(dict, SWIG_This(), swig_this);
02178 Py_DECREF(dict);
02179 }
02180
02181
02182 SWIGINTERN PyObject *
02183 SWIG_Python_InitShadowInstance(PyObject *args) {
02184 PyObject *obj[2];
02185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
02186 return NULL;
02187 } else {
02188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
02189 if (sthis) {
02190 PySwigObject_append((PyObject*) sthis, obj[1]);
02191 } else {
02192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
02193 }
02194 return SWIG_Py_Void();
02195 }
02196 }
02197
02198
02199
02200 SWIGRUNTIME PyObject *
02201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
02202 if (!ptr) {
02203 return SWIG_Py_Void();
02204 } else {
02205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
02206 PyObject *robj = PySwigObject_New(ptr, type, own);
02207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
02208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
02209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
02210 if (inst) {
02211 Py_DECREF(robj);
02212 robj = inst;
02213 }
02214 }
02215 return robj;
02216 }
02217 }
02218
02219
02220
02221 SWIGRUNTIMEINLINE PyObject *
02222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
02223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
02224 }
02225
02226
02227
02228
02229
02230 #ifdef SWIG_LINK_RUNTIME
02231 void *SWIG_ReturnGlobalTypeList(void *);
02232 #endif
02233
02234 SWIGRUNTIME swig_module_info *
02235 SWIG_Python_GetModule(void) {
02236 static void *type_pointer = (void *)0;
02237
02238 if (!type_pointer) {
02239 #ifdef SWIG_LINK_RUNTIME
02240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
02241 #else
02242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
02243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
02244 if (PyErr_Occurred()) {
02245 PyErr_Clear();
02246 type_pointer = (void *)0;
02247 }
02248 #endif
02249 }
02250 return (swig_module_info *) type_pointer;
02251 }
02252
02253 #if PY_MAJOR_VERSION < 2
02254
02255
02256 SWIGINTERN int
02257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
02258 {
02259 PyObject *dict;
02260 if (!PyModule_Check(m)) {
02261 PyErr_SetString(PyExc_TypeError,
02262 "PyModule_AddObject() needs module as first arg");
02263 return SWIG_ERROR;
02264 }
02265 if (!o) {
02266 PyErr_SetString(PyExc_TypeError,
02267 "PyModule_AddObject() needs non-NULL value");
02268 return SWIG_ERROR;
02269 }
02270
02271 dict = PyModule_GetDict(m);
02272 if (dict == NULL) {
02273
02274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
02275 PyModule_GetName(m));
02276 return SWIG_ERROR;
02277 }
02278 if (PyDict_SetItemString(dict, name, o))
02279 return SWIG_ERROR;
02280 Py_DECREF(o);
02281 return SWIG_OK;
02282 }
02283 #endif
02284
02285 SWIGRUNTIME void
02286 SWIG_Python_DestroyModule(void *vptr)
02287 {
02288 swig_module_info *swig_module = (swig_module_info *) vptr;
02289 swig_type_info **types = swig_module->types;
02290 size_t i;
02291 for (i =0; i < swig_module->size; ++i) {
02292 swig_type_info *ty = types[i];
02293 if (ty->owndata) {
02294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
02295 if (data) PySwigClientData_Del(data);
02296 }
02297 }
02298 Py_DECREF(SWIG_This());
02299 }
02300
02301 SWIGRUNTIME void
02302 SWIG_Python_SetModule(swig_module_info *swig_module) {
02303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };
02304
02305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
02306 swig_empty_runtime_method_table);
02307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
02308 if (pointer && module) {
02309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
02310 } else {
02311 Py_XDECREF(pointer);
02312 }
02313 }
02314
02315
02316 SWIGRUNTIME PyObject *
02317 SWIG_Python_TypeCache() {
02318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
02319 return cache;
02320 }
02321
02322 SWIGRUNTIME swig_type_info *
02323 SWIG_Python_TypeQuery(const char *type)
02324 {
02325 PyObject *cache = SWIG_Python_TypeCache();
02326 PyObject *key = PyString_FromString(type);
02327 PyObject *obj = PyDict_GetItem(cache, key);
02328 swig_type_info *descriptor;
02329 if (obj) {
02330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
02331 } else {
02332 swig_module_info *swig_module = SWIG_Python_GetModule();
02333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
02334 if (descriptor) {
02335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
02336 PyDict_SetItem(cache, key, obj);
02337 Py_DECREF(obj);
02338 }
02339 }
02340 Py_DECREF(key);
02341 return descriptor;
02342 }
02343
02344
02345
02346
02347 #define SWIG_POINTER_EXCEPTION 0
02348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
02349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
02350
02351 SWIGRUNTIME int
02352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
02353 {
02354 if (PyErr_Occurred()) {
02355 PyObject *type = 0;
02356 PyObject *value = 0;
02357 PyObject *traceback = 0;
02358 PyErr_Fetch(&type, &value, &traceback);
02359 if (value) {
02360 PyObject *old_str = PyObject_Str(value);
02361 Py_XINCREF(type);
02362 PyErr_Clear();
02363 if (infront) {
02364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
02365 } else {
02366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
02367 }
02368 Py_DECREF(old_str);
02369 }
02370 return 1;
02371 } else {
02372 return 0;
02373 }
02374 }
02375
02376 SWIGRUNTIME int
02377 SWIG_Python_ArgFail(int argnum)
02378 {
02379 if (PyErr_Occurred()) {
02380
02381 char mesg[256];
02382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
02383 return SWIG_Python_AddErrMesg(mesg, 1);
02384 } else {
02385 return 0;
02386 }
02387 }
02388
02389 SWIGRUNTIMEINLINE const char *
02390 PySwigObject_GetDesc(PyObject *self)
02391 {
02392 PySwigObject *v = (PySwigObject *)self;
02393 swig_type_info *ty = v ? v->ty : 0;
02394 return ty ? ty->str : (char*)"";
02395 }
02396
02397 SWIGRUNTIME void
02398 SWIG_Python_TypeError(const char *type, PyObject *obj)
02399 {
02400 if (type) {
02401 #if defined(SWIG_COBJECT_TYPES)
02402 if (obj && PySwigObject_Check(obj)) {
02403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
02404 if (otype) {
02405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
02406 type, otype);
02407 return;
02408 }
02409 } else
02410 #endif
02411 {
02412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
02413 if (otype) {
02414 PyObject *str = PyObject_Str(obj);
02415 const char *cstr = str ? PyString_AsString(str) : 0;
02416 if (cstr) {
02417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
02418 type, otype, cstr);
02419 } else {
02420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
02421 type, otype);
02422 }
02423 Py_XDECREF(str);
02424 return;
02425 }
02426 }
02427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
02428 } else {
02429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
02430 }
02431 }
02432
02433
02434
02435 SWIGRUNTIME void *
02436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
02437 void *result;
02438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
02439 PyErr_Clear();
02440 if (flags & SWIG_POINTER_EXCEPTION) {
02441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
02442 SWIG_Python_ArgFail(argnum);
02443 }
02444 }
02445 return result;
02446 }
02447
02448
02449 #ifdef __cplusplus
02450 #if 0
02451 {
02452 #endif
02453 }
02454 #endif
02455
02456
02457
02458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
02459
02460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
02461
02462
02463
02464 #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0)
02465
02466
02467
02468
02469 #define SWIGTYPE_p_allocator_type swig_types[0]
02470 #define SWIGTYPE_p_char swig_types[1]
02471 #define SWIGTYPE_p_difference_type swig_types[2]
02472 #define SWIGTYPE_p_p_PyObject swig_types[3]
02473 #define SWIGTYPE_p_size_type swig_types[4]
02474 #define SWIGTYPE_p_std__invalid_argument swig_types[5]
02475 #define SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t swig_types[6]
02476 #define SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t__allocator_type swig_types[7]
02477 #define SWIGTYPE_p_swig__PySwigIterator swig_types[8]
02478 #define SWIGTYPE_p_value_type swig_types[9]
02479 static swig_type_info *swig_types[11];
02480 static swig_module_info swig_module = {swig_types, 10, 0, 0, 0, 0};
02481 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
02482 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
02483
02484
02485
02486 #if (PY_VERSION_HEX <= 0x02000000)
02487 # if !defined(SWIG_PYTHON_CLASSIC)
02488 # error "This python version requires to use swig with the '-classic' option"
02489 # endif
02490 #endif
02491 #if (PY_VERSION_HEX <= 0x02020000)
02492 # error "This python version requires to use swig with the '-nomodern' option"
02493 #endif
02494 #if (PY_VERSION_HEX <= 0x02020000)
02495 # error "This python version requires to use swig with the '-nomodernargs' option"
02496 #endif
02497 #ifndef METH_O
02498 # error "This python version requires to use swig with the '-nofastunpack' option"
02499 #endif
02500
02501
02502
02503
02504 #define SWIG_init init_ogre_tools
02505
02506 #define SWIG_name "_ogre_tools"
02507
02508 #define SWIGVERSION 0x010329
02509
02510
02511 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
02512 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
02513
02514
02515 #include <stdexcept>
02516
02517
02518 namespace swig {
02519 class PyObject_ptr {
02520 protected:
02521 PyObject *_obj;
02522
02523 public:
02524 PyObject_ptr() :_obj(0)
02525 {
02526 }
02527
02528 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
02529 {
02530 Py_XINCREF(_obj);
02531 }
02532
02533 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
02534 {
02535 if (initial_ref) Py_XINCREF(_obj);
02536 }
02537
02538 PyObject_ptr & operator=(const PyObject_ptr& item)
02539 {
02540 Py_XINCREF(item._obj);
02541 Py_XDECREF(_obj);
02542 _obj = item._obj;
02543 return *this;
02544 }
02545
02546 ~PyObject_ptr()
02547 {
02548 Py_XDECREF(_obj);
02549 }
02550
02551 operator PyObject *() const
02552 {
02553 return _obj;
02554 }
02555
02556 PyObject *operator->() const
02557 {
02558 return _obj;
02559 }
02560 };
02561 }
02562
02563
02564 namespace swig {
02565 struct PyObject_var : PyObject_ptr {
02566 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
02567
02568 PyObject_var & operator = (PyObject* obj)
02569 {
02570 Py_XDECREF(_obj);
02571 _obj = obj;
02572 return *this;
02573 }
02574 };
02575 }
02576
02577
02578 #include "initialization.h"
02579
02580
02581 #include <string>
02582
02583
02584 #include <iostream>
02585
02586
02587 #include <stdexcept>
02588
02589
02590
02591 #if defined(__SUNPRO_CC) && defined(_RWSTD_VER)
02592 # define SWIG_STD_NOASSIGN_STL
02593 # define SWIG_STD_NOINSERT_TEMPLATE_STL
02594 # define SWIG_STD_NOITERATOR_TRAITS_STL
02595 #endif
02596
02597 #if defined(__GNUC__)
02598 # if __GNUC__ == 2 && __GNUC_MINOR <= 96
02599 # define SWIG_STD_NOMODERN_STL
02600 # endif
02601 #endif
02602
02603
02604
02605
02606 #include <string>
02607 #include <stdexcept>
02608
02609
02610 namespace swig {
02611 struct stop_iteration {
02612 };
02613
02614 struct PySwigIterator {
02615 private:
02616 PyObject_ptr _seq;
02617
02618 protected:
02619 PySwigIterator(PyObject *seq) : _seq(seq)
02620 {
02621 }
02622
02623 public:
02624 virtual ~PySwigIterator() {}
02625
02626
02627 virtual PyObject *value() const = 0;
02628
02629
02630 virtual PySwigIterator *incr(size_t n = 1) = 0;
02631
02632
02633 virtual PySwigIterator *decr(size_t n = 1)
02634 {
02635 throw stop_iteration();
02636 }
02637
02638
02639 virtual ptrdiff_t distance(const PySwigIterator &x) const
02640 {
02641 throw std::invalid_argument("operation not supported");
02642 }
02643
02644 virtual bool equal (const PySwigIterator &x) const
02645 {
02646 throw std::invalid_argument("operation not supported");
02647 }
02648
02649
02650 virtual PySwigIterator *copy() const = 0;
02651
02652 PyObject *next()
02653 {
02654 PyObject *obj = value();
02655 incr();
02656 return obj;
02657 }
02658
02659 PyObject *previous()
02660 {
02661 decr();
02662 return value();
02663 }
02664
02665 PySwigIterator *advance(ptrdiff_t n)
02666 {
02667 return (n > 0) ? incr(n) : decr(-n);
02668 }
02669
02670 bool operator == (const PySwigIterator& x) const
02671 {
02672 return equal(x);
02673 }
02674
02675 bool operator != (const PySwigIterator& x) const
02676 {
02677 return ! operator==(x);
02678 }
02679
02680 PySwigIterator& operator += (ptrdiff_t n)
02681 {
02682 return *advance(n);
02683 }
02684
02685 PySwigIterator& operator -= (ptrdiff_t n)
02686 {
02687 return *advance(-n);
02688 }
02689
02690 PySwigIterator* operator + (ptrdiff_t n) const
02691 {
02692 return copy()->advance(n);
02693 }
02694
02695 PySwigIterator* operator - (ptrdiff_t n) const
02696 {
02697 return copy()->advance(-n);
02698 }
02699
02700 ptrdiff_t operator - (const PySwigIterator& x) const
02701 {
02702 return x.distance(*this);
02703 }
02704
02705 static swig_type_info* descriptor() {
02706 static int init = 0;
02707 static swig_type_info* desc = 0;
02708 if (!init) {
02709 desc = SWIG_TypeQuery("swig::PySwigIterator *");
02710 init = 1;
02711 }
02712 return desc;
02713 }
02714 };
02715 }
02716
02717
02718 SWIGINTERN int
02719 SWIG_AsVal_double (PyObject *obj, double *val)
02720 {
02721 int res = SWIG_TypeError;
02722 if (PyFloat_Check(obj)) {
02723 if (val) *val = PyFloat_AsDouble(obj);
02724 return SWIG_OK;
02725 } else if (PyInt_Check(obj)) {
02726 if (val) *val = PyInt_AsLong(obj);
02727 return SWIG_OK;
02728 } else if (PyLong_Check(obj)) {
02729 double v = PyLong_AsDouble(obj);
02730 if (!PyErr_Occurred()) {
02731 if (val) *val = v;
02732 return SWIG_OK;
02733 } else {
02734 PyErr_Clear();
02735 }
02736 }
02737 #ifdef SWIG_PYTHON_CAST_MODE
02738 {
02739 int dispatch = 0;
02740 double d = PyFloat_AsDouble(obj);
02741 if (!PyErr_Occurred()) {
02742 if (val) *val = d;
02743 return SWIG_AddCast(SWIG_OK);
02744 } else {
02745 PyErr_Clear();
02746 }
02747 if (!dispatch) {
02748 long v = PyLong_AsLong(obj);
02749 if (!PyErr_Occurred()) {
02750 if (val) *val = v;
02751 return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
02752 } else {
02753 PyErr_Clear();
02754 }
02755 }
02756 }
02757 #endif
02758 return res;
02759 }
02760
02761
02762 #include <float.h>
02763
02764
02765 #include <math.h>
02766
02767
02768 SWIGINTERNINLINE int
02769 SWIG_CanCastAsInteger(double *d, double min, double max) {
02770 double x = *d;
02771 if ((min <= x && x <= max)) {
02772 double fx = floor(x);
02773 double cx = ceil(x);
02774 double rd = ((x - fx) < 0.5) ? fx : cx;
02775 if ((errno == EDOM) || (errno == ERANGE)) {
02776 errno = 0;
02777 } else {
02778 double summ, reps, diff;
02779 if (rd < x) {
02780 diff = x - rd;
02781 } else if (rd > x) {
02782 diff = rd - x;
02783 } else {
02784 return 1;
02785 }
02786 summ = rd + x;
02787 reps = diff/summ;
02788 if (reps < 8*DBL_EPSILON) {
02789 *d = rd;
02790 return 1;
02791 }
02792 }
02793 }
02794 return 0;
02795 }
02796
02797
02798 SWIGINTERN int
02799 SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
02800 {
02801 if (PyInt_Check(obj)) {
02802 long v = PyInt_AsLong(obj);
02803 if (v >= 0) {
02804 if (val) *val = v;
02805 return SWIG_OK;
02806 } else {
02807 return SWIG_OverflowError;
02808 }
02809 } else if (PyLong_Check(obj)) {
02810 unsigned long v = PyLong_AsUnsignedLong(obj);
02811 if (!PyErr_Occurred()) {
02812 if (val) *val = v;
02813 return SWIG_OK;
02814 } else {
02815 PyErr_Clear();
02816 }
02817 }
02818 #ifdef SWIG_PYTHON_CAST_MODE
02819 {
02820 int dispatch = 0;
02821 unsigned long v = PyLong_AsUnsignedLong(obj);
02822 if (!PyErr_Occurred()) {
02823 if (val) *val = v;
02824 return SWIG_AddCast(SWIG_OK);
02825 } else {
02826 PyErr_Clear();
02827 }
02828 if (!dispatch) {
02829 double d;
02830 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
02831 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
02832 if (val) *val = (unsigned long)(d);
02833 return res;
02834 }
02835 }
02836 }
02837 #endif
02838 return SWIG_TypeError;
02839 }
02840
02841
02842 SWIGINTERNINLINE int
02843 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
02844 {
02845 unsigned long v;
02846 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
02847 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
02848 return res;
02849 }
02850
02851
02852 #define SWIG_From_long PyInt_FromLong
02853
02854
02855 SWIGINTERNINLINE PyObject *
02856 SWIG_From_ptrdiff_t (ptrdiff_t value)
02857 {
02858 return SWIG_From_long (static_cast< long >(value));
02859 }
02860
02861
02862 SWIGINTERNINLINE PyObject*
02863 SWIG_From_bool (bool value)
02864 {
02865 return PyBool_FromLong(value ? 1 : 0);
02866 }
02867
02868
02869 SWIGINTERN int
02870 SWIG_AsVal_long (PyObject *obj, long* val)
02871 {
02872 if (PyInt_Check(obj)) {
02873 if (val) *val = PyInt_AsLong(obj);
02874 return SWIG_OK;
02875 } else if (PyLong_Check(obj)) {
02876 long v = PyLong_AsLong(obj);
02877 if (!PyErr_Occurred()) {
02878 if (val) *val = v;
02879 return SWIG_OK;
02880 } else {
02881 PyErr_Clear();
02882 }
02883 }
02884 #ifdef SWIG_PYTHON_CAST_MODE
02885 {
02886 int dispatch = 0;
02887 long v = PyInt_AsLong(obj);
02888 if (!PyErr_Occurred()) {
02889 if (val) *val = v;
02890 return SWIG_AddCast(SWIG_OK);
02891 } else {
02892 PyErr_Clear();
02893 }
02894 if (!dispatch) {
02895 double d;
02896 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
02897 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
02898 if (val) *val = (long)(d);
02899 return res;
02900 }
02901 }
02902 }
02903 #endif
02904 return SWIG_TypeError;
02905 }
02906
02907
02908 SWIGINTERNINLINE int
02909 SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val)
02910 {
02911 long v;
02912 int res = SWIG_AsVal_long (obj, val ? &v : 0);
02913 if (SWIG_IsOK(res) && val) *val = static_cast< ptrdiff_t >(v);
02914 return res;
02915 }
02916
02917
02918 #include <stdexcept>
02919
02920
02921 #include <algorithm>
02922
02923
02924 #include <vector>
02925
02926
02927 namespace swig {
02928 template <class Type>
02929 struct noconst_traits {
02930 typedef Type noconst_type;
02931 };
02932
02933 template <class Type>
02934 struct noconst_traits<const Type> {
02935 typedef Type noconst_type;
02936 };
02937
02938
02939
02940
02941 struct pointer_category { };
02942 struct value_category { };
02943
02944
02945
02946
02947 template <class Type> struct traits { };
02948
02949 template <class Type>
02950 inline const char* type_name() {
02951 return traits<typename noconst_traits<Type >::noconst_type >::type_name();
02952 }
02953
02954 template <class Type>
02955 struct traits_info {
02956 static swig_type_info *type_query(std::string name) {
02957 name += " *";
02958 return SWIG_TypeQuery(name.c_str());
02959 }
02960 static swig_type_info *type_info() {
02961 static swig_type_info *info = type_query(type_name<Type>());
02962 return info;
02963 }
02964 };
02965
02966 template <class Type>
02967 inline swig_type_info *type_info() {
02968 return traits_info<Type>::type_info();
02969 }
02970
02971
02972
02973
02974 template <class Type> struct traits <Type *> {
02975 typedef pointer_category category;
02976 static std::string make_ptr_name(const char* name) {
02977 std::string ptrname = name;
02978 ptrname += " *";
02979 return ptrname;
02980 }
02981 static const char* type_name() {
02982 static std::string name = make_ptr_name(swig::type_name<Type>());
02983 return name.c_str();
02984 }
02985 };
02986
02987 template <class Type, class Category>
02988 struct traits_as { };
02989
02990 template <class Type, class Category>
02991 struct traits_check { };
02992
02993 }
02994
02995
02996 namespace swig {
02997
02998
02999
03000 template <class Type> struct traits_from_ptr {
03001 static PyObject *from(Type *val, int owner = 0) {
03002 return SWIG_NewPointerObj(val, type_info<Type>(), owner);
03003 }
03004 };
03005
03006 template <class Type> struct traits_from {
03007 static PyObject *from(const Type& val) {
03008 return traits_from_ptr<Type>::from(new Type(val), 1);
03009 }
03010 };
03011
03012 template <class Type> struct traits_from<Type *> {
03013 static PyObject *from(Type* val) {
03014 return traits_from_ptr<Type>::from(val, 0);
03015 }
03016 };
03017
03018 template <class Type>
03019 inline PyObject *from(const Type& val) {
03020 return traits_from<Type>::from(val);
03021 }
03022
03023 template <class Type>
03024 inline PyObject *from_ptr(Type* val, int owner) {
03025 return traits_from_ptr<Type>::from(val, owner);
03026 }
03027
03028
03029
03030
03031 template <class Type>
03032 struct traits_asptr {
03033 static int asptr(PyObject *obj, Type **val) {
03034 Type *p;
03035 int res = (SWIG_ConvertPtr(obj, (void**)&p, type_info<Type>(), 0) == SWIG_OK) ? SWIG_OLDOBJ : 0;
03036 if (SWIG_IsOK(res)) {
03037 if (val) *val = p;
03038 }
03039 return res;
03040 }
03041 };
03042
03043 template <class Type>
03044 inline int asptr(PyObject *obj, Type **vptr) {
03045 return traits_asptr<Type>::asptr(obj, vptr);
03046 }
03047
03048 template <class Type>
03049 struct traits_asval {
03050 static int asval(PyObject *obj, Type *val) {
03051 if (val) {
03052 Type *p = 0;
03053 int res = traits_asptr<Type>::asptr(obj, &p);
03054 if (!SWIG_IsOK(res)) return res;
03055 if (p) {
03056 typedef typename noconst_traits<Type>::noconst_type noconst_type;
03057 *(const_cast<noconst_type*>(val)) = *p;
03058 if (SWIG_IsNewObj(res)){
03059 delete p;
03060 res = SWIG_DelNewMask(res);
03061 }
03062 return res;
03063 } else {
03064 return SWIG_ERROR;
03065 }
03066 } else {
03067 return traits_asptr<Type>::asptr(obj, (Type **)(0));
03068 }
03069 }
03070 };
03071
03072 template <class Type> struct traits_asval<Type*> {
03073 static int asval(PyObject *obj, Type **val) {
03074 if (val) {
03075 typedef typename noconst_traits<Type>::noconst_type noconst_type;
03076 noconst_type *p = 0;
03077 int res = traits_asptr<noconst_type>::asptr(obj, &p);
03078 if (SWIG_IsOK(res)) {
03079 *(const_cast<noconst_type**>(val)) = p;
03080 }
03081 return res;
03082 } else {
03083 return traits_asptr<Type>::asptr(obj, (Type **)(0));
03084 }
03085 }
03086 };
03087
03088 template <class Type>
03089 inline int asval(PyObject *obj, Type *val) {
03090 return traits_asval<Type>::asval(obj, val);
03091 }
03092
03093 template <class Type>
03094 struct traits_as<Type, value_category> {
03095 static Type as(PyObject *obj, bool throw_error) {
03096 Type v;
03097 int res = asval(obj, &v);
03098 if (!obj || !SWIG_IsOK(res)) {
03099 if (!PyErr_Occurred()) {
03100 SWIG_Error(SWIG_TypeError, swig::type_name<Type>());
03101 }
03102 if (throw_error) throw std::invalid_argument("bad type");
03103 }
03104 return v;
03105 }
03106 };
03107
03108 template <class Type>
03109 struct traits_as<Type, pointer_category> {
03110 static Type as(PyObject *obj, bool throw_error) {
03111 Type *v = 0;
03112 int res = (obj ? traits_asptr<Type>::asptr(obj, &v) : SWIG_ERROR);
03113 if (SWIG_IsOK(res) && v) {
03114 if (SWIG_IsNewObj(res)) {
03115 Type r(*v);
03116 delete v;
03117 return r;
03118 } else {
03119 return *v;
03120 }
03121 } else {
03122
03123 static Type *v_def = (Type*) malloc(sizeof(Type));
03124 if (!PyErr_Occurred()) {
03125 SWIG_Error(SWIG_TypeError, swig::type_name<Type>());
03126 }
03127 if (throw_error) throw std::invalid_argument("bad type");
03128 memset(v_def,0,sizeof(Type));
03129 return *v_def;
03130 }
03131 }
03132 };
03133
03134 template <class Type>
03135 struct traits_as<Type*, pointer_category> {
03136 static Type* as(PyObject *obj, bool throw_error) {
03137 Type *v = 0;
03138 int res = (obj ? traits_asptr<Type>::asptr(obj, &v) : SWIG_ERROR);
03139 if (SWIG_IsOK(res)) {
03140 return v;
03141 } else {
03142 if (!PyErr_Occurred()) {
03143 SWIG_Error(SWIG_TypeError, swig::type_name<Type>());
03144 }
03145 if (throw_error) throw std::invalid_argument("bad type");
03146 return 0;
03147 }
03148 }
03149 };
03150
03151 template <class Type>
03152 inline Type as(PyObject *obj, bool te = false) {
03153 return traits_as<Type, typename traits<Type>::category>::as(obj, te);
03154 }
03155
03156 template <class Type>
03157 struct traits_check<Type, value_category> {
03158 static bool check(PyObject *obj) {
03159 int res = obj ? asval(obj, (Type *)(0)) : SWIG_ERROR;
03160 return SWIG_IsOK(res) ? true : false;
03161 }
03162 };
03163
03164 template <class Type>
03165 struct traits_check<Type, pointer_category> {
03166 static bool check(PyObject *obj) {
03167 int res = obj ? asptr(obj, (Type **)(0)) : SWIG_ERROR;
03168 return SWIG_IsOK(res) ? true : false;
03169 }
03170 };
03171
03172 template <class Type>
03173 inline bool check(PyObject *obj) {
03174 return traits_check<Type, typename traits<Type>::category>::check(obj);
03175 }
03176 }
03177
03178
03179 #include <functional>
03180
03181 namespace std {
03182 template <>
03183 struct less <PyObject *>: public binary_function<PyObject *, PyObject *, bool>
03184 {
03185 bool
03186 operator()(PyObject * v, PyObject *w) const
03187 {
03188 bool res;
03189 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
03190 res = PyObject_Compare(v, w) < 0;
03191 SWIG_PYTHON_THREAD_END_BLOCK;
03192 return res;
03193 }
03194 };
03195
03196 template <>
03197 struct less <swig::PyObject_ptr>: public binary_function<swig::PyObject_ptr, swig::PyObject_ptr, bool>
03198 {
03199 bool
03200 operator()(const swig::PyObject_ptr& v, const swig::PyObject_ptr& w) const
03201 {
03202 return std::less<PyObject *>()(v, w);
03203 }
03204 };
03205
03206 template <>
03207 struct less <swig::PyObject_var>: public binary_function<swig::PyObject_var, swig::PyObject_var, bool>
03208 {
03209 bool
03210 operator()(const swig::PyObject_var& v, const swig::PyObject_var& w) const
03211 {
03212 return std::less<PyObject *>()(v, w);
03213 }
03214 };
03215
03216 }
03217
03218 namespace swig {
03219 template <> struct traits<PyObject *> {
03220 typedef value_category category;
03221 static const char* type_name() { return "PyObject *"; }
03222 };
03223
03224 template <> struct traits_asval<PyObject * > {
03225 typedef PyObject * value_type;
03226 static int asval(PyObject *obj, value_type *val) {
03227 if (val) *val = obj;
03228 return SWIG_OK;
03229 }
03230 };
03231
03232 template <>
03233 struct traits_check<PyObject *, value_category> {
03234 static bool check(PyObject *) {
03235 return true;
03236 }
03237 };
03238
03239 template <> struct traits_from<PyObject *> {
03240 typedef PyObject * value_type;
03241 static PyObject *from(const value_type& val) {
03242 Py_XINCREF(val);
03243 return val;
03244 }
03245 };
03246
03247 }
03248
03249 namespace swig {
03250 inline size_t
03251 check_index(ptrdiff_t i, size_t size, bool insert = false) {
03252 if ( i < 0 ) {
03253 if ((size_t) (-i) <= size)
03254 return (size_t) (i + size);
03255 } else if ( (size_t) i < size ) {
03256 return (size_t) i;
03257 } else if (insert && ((size_t) i == size)) {
03258 return size;
03259 }
03260
03261 throw std::out_of_range("index out of range");
03262 }
03263
03264 inline size_t
03265 slice_index(ptrdiff_t i, size_t size) {
03266 if ( i < 0 ) {
03267 if ((size_t) (-i) <= size) {
03268 return (size_t) (i + size);
03269 } else {
03270 throw std::out_of_range("index out of range");
03271 }
03272 } else {
03273 return ( (size_t) i < size ) ? ((size_t) i) : size;
03274 }
03275 }
03276
03277 template <class Sequence, class Difference>
03278 inline typename Sequence::iterator
03279 getpos(Sequence* self, Difference i) {
03280 typename Sequence::iterator pos = self->begin();
03281 std::advance(pos, check_index(i,self->size()));
03282 return pos;
03283 }
03284
03285 template <class Sequence, class Difference>
03286 inline typename Sequence::const_iterator
03287 cgetpos(const Sequence* self, Difference i) {
03288 typename Sequence::const_iterator pos = self->begin();
03289 std::advance(pos, check_index(i,self->size()));
03290 return pos;
03291 }
03292
03293 template <class Sequence, class Difference>
03294 inline Sequence*
03295 getslice(const Sequence* self, Difference i, Difference j) {
03296 typename Sequence::size_type size = self->size();
03297 typename Sequence::size_type ii = swig::check_index(i, size);
03298 typename Sequence::size_type jj = swig::slice_index(j, size);
03299
03300 if (jj > ii) {
03301 typename Sequence::const_iterator vb = self->begin();
03302 typename Sequence::const_iterator ve = self->begin();
03303 std::advance(vb,ii);
03304 std::advance(ve,jj);
03305 return new Sequence(vb, ve);
03306 } else {
03307 return new Sequence();
03308 }
03309 }
03310
03311 template <class Sequence, class Difference, class InputSeq>
03312 inline void
03313 setslice(Sequence* self, Difference i, Difference j, const InputSeq& v) {
03314 typename Sequence::size_type size = self->size();
03315 typename Sequence::size_type ii = swig::check_index(i, size, true);
03316 typename Sequence::size_type jj = swig::slice_index(j, size);
03317 if (jj < ii) jj = ii;
03318 size_t ssize = jj - ii;
03319 if (ssize <= v.size()) {
03320 typename Sequence::iterator sb = self->begin();
03321 typename InputSeq::const_iterator vmid = v.begin();
03322 std::advance(sb,ii);
03323 std::advance(vmid, jj - ii);
03324 self->insert(std::copy(v.begin(), vmid, sb), vmid, v.end());
03325 } else {
03326 typename Sequence::iterator sb = self->begin();
03327 typename Sequence::iterator se = self->begin();
03328 std::advance(sb,ii);
03329 std::advance(se,jj);
03330 self->erase(sb,se);
03331 self->insert(sb, v.begin(), v.end());
03332 }
03333 }
03334
03335 template <class Sequence, class Difference>
03336 inline void
03337 delslice(Sequence* self, Difference i, Difference j) {
03338 typename Sequence::size_type size = self->size();
03339 typename Sequence::size_type ii = swig::check_index(i, size, true);
03340 typename Sequence::size_type jj = swig::slice_index(j, size);
03341 if (jj > ii) {
03342 typename Sequence::iterator sb = self->begin();
03343 typename Sequence::iterator se = self->begin();
03344 std::advance(sb,ii);
03345 std::advance(se,jj);
03346 self->erase(sb,se);
03347 }
03348 }
03349 }
03350
03351
03352 #if !defined(SWIG_STD_NOITERATOR_TRAITS_STL)
03353 #include <iterator>
03354 #else
03355 namespace std {
03356 template <class Iterator>
03357 struct iterator_traits {
03358 typedef ptrdiff_t difference_type;
03359 typedef typename Iterator::value_type value_type;
03360 };
03361
03362 #if defined(__SUNPRO_CC) && defined(_RWSTD_VER)
03363 template <class Iterator, class Category,class T, class Reference, class Pointer, class Distance>
03364 struct iterator_traits<__reverse_bi_iterator<Iterator,Category,T,Reference,Pointer,Distance> > {
03365 typedef Distance difference_type;
03366 typedef T value_type;
03367 };
03368 #endif
03369
03370 template <class T>
03371 struct iterator_traits<T*> {
03372 typedef T value_type;
03373 typedef ptrdiff_t difference_type;
03374 };
03375
03376 template<typename _InputIterator>
03377 inline typename iterator_traits<_InputIterator>::difference_type
03378 distance(_InputIterator __first, _InputIterator __last)
03379 {
03380 typename iterator_traits<_InputIterator>::difference_type __n = 0;
03381 while (__first != __last) {
03382 ++__first; ++__n;
03383 }
03384 return __n;
03385 }
03386
03387 }
03388 #endif
03389
03390
03391 namespace swig {
03392 template<typename OutIterator>
03393 class PySwigIterator_T : public PySwigIterator
03394 {
03395 public:
03396 typedef OutIterator out_iterator;
03397 typedef typename std::iterator_traits<out_iterator>::value_type value_type;
03398 typedef PySwigIterator_T<out_iterator> self_type;
03399
03400 PySwigIterator_T(out_iterator curr, PyObject *seq)
03401 : PySwigIterator(seq), current(curr)
03402 {
03403 }
03404
03405 const out_iterator& get_current() const
03406 {
03407 return current;
03408 }
03409
03410
03411 bool equal (const PySwigIterator &iter) const
03412 {
03413 const self_type *iters = dynamic_cast<const self_type *>(&iter);
03414 if (iters) {
03415 return (current == iters->get_current());
03416 } else {
03417 throw std::invalid_argument("bad iterator type");
03418 }
03419 }
03420
03421 ptrdiff_t distance(const PySwigIterator &iter) const
03422 {
03423 const self_type *iters = dynamic_cast<const self_type *>(&iter);
03424 if (iters) {
03425 return std::distance(current, iters->get_current());
03426 } else {
03427 throw std::invalid_argument("bad iterator type");
03428 }
03429 }
03430
03431 protected:
03432 out_iterator current;
03433 };
03434
03435 template <class ValueType>
03436 struct from_oper
03437 {
03438 typedef const ValueType& argument_type;
03439 typedef PyObject *result_type;
03440 result_type operator()(argument_type v) const
03441 {
03442 return swig::from(v);
03443 }
03444 };
03445
03446 template<typename OutIterator,
03447 typename ValueType = typename std::iterator_traits<OutIterator>::value_type,
03448 typename FromOper = from_oper<ValueType> >
03449 class PySwigIteratorOpen_T : public PySwigIterator_T<OutIterator>
03450 {
03451 public:
03452 FromOper from;
03453 typedef OutIterator out_iterator;
03454 typedef ValueType value_type;
03455 typedef PySwigIterator_T<out_iterator> base;
03456 typedef PySwigIteratorOpen_T<OutIterator, ValueType, FromOper> self_type;
03457
03458 PySwigIteratorOpen_T(out_iterator curr, PyObject *seq)
03459 : PySwigIterator_T<OutIterator>(curr, seq)
03460 {
03461 }
03462
03463 PyObject *value() const {
03464 return from(static_cast<const value_type&>(*(base::current)));
03465 }
03466
03467 PySwigIterator *copy() const
03468 {
03469 return new self_type(*this);
03470 }
03471
03472 PySwigIterator *incr(size_t n = 1)
03473 {
03474 while (n--) {
03475 ++base::current;
03476 }
03477 return this;
03478 }
03479
03480 PySwigIterator *decr(size_t n = 1)
03481 {
03482 while (n--) {
03483 --base::current;
03484 }
03485 return this;
03486 }
03487 };
03488
03489 template<typename OutIterator,
03490 typename ValueType = typename std::iterator_traits<OutIterator>::value_type,
03491 typename FromOper = from_oper<ValueType> >
03492 class PySwigIteratorClosed_T : public PySwigIterator_T<OutIterator>
03493 {
03494 public:
03495 FromOper from;
03496 typedef OutIterator out_iterator;
03497 typedef ValueType value_type;
03498 typedef PySwigIterator_T<out_iterator> base;
03499 typedef PySwigIteratorClosed_T<OutIterator, ValueType, FromOper> self_type;
03500
03501 PySwigIteratorClosed_T(out_iterator curr, out_iterator first, out_iterator last, PyObject *seq)
03502 : PySwigIterator_T<OutIterator>(curr, seq), begin(first), end(last)
03503 {
03504 }
03505
03506 PyObject *value() const {
03507 if (base::current == end) {
03508 throw stop_iteration();
03509 } else {
03510 return from(static_cast<const value_type&>(*(base::current)));
03511 }
03512 }
03513
03514 PySwigIterator *copy() const
03515 {
03516 return new self_type(*this);
03517 }
03518
03519 PySwigIterator *incr(size_t n = 1)
03520 {
03521 while (n--) {
03522 if (base::current == end) {
03523 throw stop_iteration();
03524 } else {
03525 ++base::current;
03526 }
03527 }
03528 return this;
03529 }
03530
03531 PySwigIterator *decr(size_t n = 1)
03532 {
03533 while (n--) {
03534 if (base::current == begin) {
03535 throw stop_iteration();
03536 } else {
03537 --base::current;
03538 }
03539 }
03540 return this;
03541 }
03542
03543 private:
03544 out_iterator begin;
03545 out_iterator end;
03546 };
03547
03548 template<typename OutIter>
03549 inline PySwigIterator*
03550 make_output_iterator(const OutIter& current, const OutIter& begin,const OutIter& end, PyObject *seq = 0)
03551 {
03552 return new PySwigIteratorClosed_T<OutIter>(current, begin, end, seq);
03553 }
03554
03555 template<typename OutIter>
03556 inline PySwigIterator*
03557 make_output_iterator(const OutIter& current, PyObject *seq = 0)
03558 {
03559 return new PySwigIteratorOpen_T<OutIter>(current, seq);
03560 }
03561 }
03562
03563
03564 namespace swig
03565 {
03566 template <class T>
03567 struct PySequence_Ref
03568 {
03569 PySequence_Ref(PyObject* seq, int index)
03570 : _seq(seq), _index(index)
03571 {
03572 }
03573
03574 operator T () const
03575 {
03576 swig::PyObject_var item = PySequence_GetItem(_seq, _index);
03577 try {
03578 return swig::as<T>(item, true);
03579 } catch (std::exception& e) {
03580 char msg[1024];
03581 sprintf(msg, "in sequence element %d ", _index);
03582 if (!PyErr_Occurred()) {
03583 SWIG_Error(SWIG_TypeError, swig::type_name<T>());
03584 }
03585 SWIG_Python_AddErrorMsg(msg);
03586 SWIG_Python_AddErrorMsg(e.what());
03587 throw;
03588 }
03589 }
03590
03591 PySequence_Ref& operator=(const T& v)
03592 {
03593 PySequence_SetItem(_seq, _index, swig::from<T>(v));
03594 return *this;
03595 }
03596
03597 private:
03598 PyObject* _seq;
03599 int _index;
03600 };
03601
03602 template <class T>
03603 struct PySequence_ArrowProxy
03604 {
03605 PySequence_ArrowProxy(const T& x): m_value(x) {}
03606 const T* operator->() const { return &m_value; }
03607 operator const T*() const { return &m_value; }
03608 T m_value;
03609 };
03610
03611 template <class T, class Reference >
03612 struct PySequence_InputIterator
03613 {
03614 typedef PySequence_InputIterator<T, Reference > self;
03615
03616 typedef std::random_access_iterator_tag iterator_category;
03617 typedef Reference reference;
03618 typedef T value_type;
03619 typedef T* pointer;
03620 typedef int difference_type;
03621
03622 PySequence_InputIterator()
03623 {
03624 }
03625
03626 PySequence_InputIterator(PyObject* seq, int index)
03627 : _seq(seq), _index(index)
03628 {
03629 }
03630
03631 reference operator*() const
03632 {
03633 return reference(_seq, _index);
03634 }
03635
03636 PySequence_ArrowProxy<T>
03637 operator->() const {
03638 return PySequence_ArrowProxy<T>(operator*());
03639 }
03640
03641 bool operator==(const self& ri) const
03642 {
03643 return (_index == ri._index) && (_seq == ri._seq);
03644 }
03645
03646 bool operator!=(const self& ri) const
03647 {
03648 return !(operator==(ri));
03649 }
03650
03651 self& operator ++ ()
03652 {
03653 ++_index;
03654 return *this;
03655 }
03656
03657 self& operator -- ()
03658 {
03659 --_index;
03660 return *this;
03661 }
03662
03663 self& operator += (difference_type n)
03664 {
03665 _index += n;
03666 return *this;
03667 }
03668
03669 self operator +(difference_type n) const
03670 {
03671 return self(_seq, _index + n);
03672 }
03673
03674 self& operator -= (difference_type n)
03675 {
03676 _index -= n;
03677 return *this;
03678 }
03679
03680 self operator -(difference_type n) const
03681 {
03682 return self(_seq, _index - n);
03683 }
03684
03685 difference_type operator - (const self& ri) const
03686 {
03687 return _index - ri._index;
03688 }
03689
03690 bool operator < (const self& ri) const
03691 {
03692 return _index < ri._index;
03693 }
03694
03695 reference
03696 operator[](difference_type n) const
03697 {
03698 return reference(_seq, _index + n);
03699 }
03700
03701 private:
03702 PyObject* _seq;
03703 difference_type _index;
03704 };
03705
03706 template <class T>
03707 struct PySequence_Cont
03708 {
03709 typedef PySequence_Ref<T> reference;
03710 typedef const PySequence_Ref<T> const_reference;
03711 typedef T value_type;
03712 typedef T* pointer;
03713 typedef int difference_type;
03714 typedef int size_type;
03715 typedef const pointer const_pointer;
03716 typedef PySequence_InputIterator<T, reference> iterator;
03717 typedef PySequence_InputIterator<T, const_reference> const_iterator;
03718
03719 PySequence_Cont(PyObject* seq) : _seq(0)
03720 {
03721 if (!PySequence_Check(seq)) {
03722 throw std::invalid_argument("a sequence is expected");
03723 }
03724 _seq = seq;
03725 Py_INCREF(_seq);
03726 }
03727
03728 ~PySequence_Cont()
03729 {
03730 if (_seq) Py_DECREF(_seq);
03731 }
03732
03733 size_type size() const
03734 {
03735 return PySequence_Size(_seq);
03736 }
03737
03738 bool empty() const
03739 {
03740 return size() == 0;
03741 }
03742
03743 iterator begin()
03744 {
03745 return iterator(_seq, 0);
03746 }
03747
03748 const_iterator begin() const
03749 {
03750 return const_iterator(_seq, 0);
03751 }
03752
03753 iterator end()
03754 {
03755 return iterator(_seq, size());
03756 }
03757
03758 const_iterator end() const
03759 {
03760 return const_iterator(_seq, size());
03761 }
03762
03763 reference operator[](difference_type n)
03764 {
03765 return reference(_seq, n);
03766 }
03767
03768 const_reference operator[](difference_type n) const
03769 {
03770 return const_reference(_seq, n);
03771 }
03772
03773 bool check(bool set_err = true) const
03774 {
03775 int s = size();
03776 for (int i = 0; i < s; ++i) {
03777 swig::PyObject_var item = PySequence_GetItem(_seq, i);
03778 if (!swig::check<value_type>(item)) {
03779 if (set_err) {
03780 char msg[1024];
03781 sprintf(msg, "in sequence element %d", i);
03782 SWIG_Error(SWIG_RuntimeError, msg);
03783 }
03784 return false;
03785 }
03786 }
03787 return true;
03788 }
03789
03790 private:
03791 PyObject* _seq;
03792 };
03793
03794 }
03795
03796
03797 SWIGINTERN swig_type_info*
03798 SWIG_pchar_descriptor()
03799 {
03800 static int init = 0;
03801 static swig_type_info* info = 0;
03802 if (!init) {
03803 info = SWIG_TypeQuery("_p_char");
03804 init = 1;
03805 }
03806 return info;
03807 }
03808
03809
03810 SWIGINTERN int
03811 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
03812 {
03813 if (PyString_Check(obj)) {
03814 char *cstr; Py_ssize_t len;
03815 PyString_AsStringAndSize(obj, &cstr, &len);
03816 if (cptr) {
03817 if (alloc) {
03818
03819
03820
03821
03822
03823
03824
03825
03826
03827 #if defined(SWIG_PYTHON_SAFE_CSTRINGS)
03828 if (*alloc != SWIG_OLDOBJ)
03829 #else
03830 if (*alloc == SWIG_NEWOBJ)
03831 #endif
03832 {
03833 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
03834 *alloc = SWIG_NEWOBJ;
03835 }
03836 else {
03837 *cptr = cstr;
03838 *alloc = SWIG_OLDOBJ;
03839 }
03840 } else {
03841 *cptr = PyString_AsString(obj);
03842 }
03843 }
03844 if (psize) *psize = len + 1;
03845 return SWIG_OK;
03846 } else {
03847 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
03848 if (pchar_descriptor) {
03849 void* vptr = 0;
03850 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
03851 if (cptr) *cptr = (char *) vptr;
03852 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
03853 if (alloc) *alloc = SWIG_OLDOBJ;
03854 return SWIG_OK;
03855 }
03856 }
03857 }
03858 return SWIG_TypeError;
03859 }
03860
03861
03862 SWIGINTERN int
03863 SWIG_AsPtr_std_string (PyObject * obj, std::string **val)
03864 {
03865 char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ;
03866 if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) {
03867 if (buf) {
03868 if (val) *val = new std::string(buf, size - 1);
03869 if (alloc == SWIG_NEWOBJ) delete[] buf;
03870 return SWIG_NEWOBJ;
03871 } else {
03872 if (val) *val = 0;
03873 return SWIG_OLDOBJ;
03874 }
03875 } else {
03876 static int init = 0;
03877 static swig_type_info* descriptor = 0;
03878 if (!init) {
03879 descriptor = SWIG_TypeQuery("std::string" " *");
03880 init = 1;
03881 }
03882 if (descriptor) {
03883 std::string *vptr;
03884 int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0);
03885 if (SWIG_IsOK(res) && val) *val = vptr;
03886 return res;
03887 }
03888 }
03889 return SWIG_ERROR;
03890 }
03891
03892
03893 SWIGINTERN int
03894 SWIG_AsVal_std_string (PyObject * obj, std::string *val)
03895 {
03896 std::string* v = (std::string *) 0;
03897 int res = SWIG_AsPtr_std_string (obj, &v);
03898 if (!SWIG_IsOK(res)) return res;
03899 if (v) {
03900 if (val) *val = *v;
03901 if (SWIG_IsNewObj(res)) {
03902 delete v;
03903 res = SWIG_DelNewMask(res);
03904 }
03905 return res;
03906 }
03907 return SWIG_ERROR;
03908 }
03909
03910
03911 SWIGINTERNINLINE PyObject *
03912 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
03913 {
03914 if (carray) {
03915 if (size > INT_MAX) {
03916 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
03917 return pchar_descriptor ?
03918 SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void();
03919 } else {
03920 return PyString_FromStringAndSize(carray, static_cast< int >(size));
03921 }
03922 } else {
03923 return SWIG_Py_Void();
03924 }
03925 }
03926
03927
03928 SWIGINTERNINLINE PyObject *
03929 SWIG_From_std_string (const std::string& s)
03930 {
03931 return SWIG_FromCharPtrAndSize(s.data(), s.size());
03932 }
03933
03934
03935 namespace swig {
03936 template <> struct traits<std::string > {
03937 typedef value_category category;
03938 static const char* type_name() { return"std::string"; }
03939 };
03940 template <> struct traits_asval<std::string > {
03941 typedef std::string value_type;
03942 static int asval(PyObject *obj, value_type *val) {
03943 return SWIG_AsVal_std_string (obj, val);
03944 }
03945 };
03946 template <> struct traits_from<std::string > {
03947 typedef std::string value_type;
03948 static PyObject *from(const value_type& val) {
03949 return SWIG_From_std_string (val);
03950 }
03951 };
03952 }
03953
03954
03955 namespace swig {
03956 template <class PySeq, class Seq>
03957 inline void
03958 assign(const PySeq& pyseq, Seq* seq) {
03959 #ifdef SWIG_STD_NOASSIGN_STL
03960 typedef typename PySeq::value_type value_type;
03961 typename PySeq::const_iterator it = pyseq.begin();
03962 for (;it != pyseq.end(); ++it) {
03963 seq->insert(seq->end(),(value_type)(*it));
03964 }
03965 #else
03966 seq->assign(pyseq.begin(), pyseq.end());
03967 #endif
03968 }
03969
03970 template <class Seq, class T = typename Seq::value_type >
03971 struct traits_asptr_stdseq {
03972 typedef Seq sequence;
03973 typedef T value_type;
03974
03975 static int asptr(PyObject *obj, sequence **seq) {
03976 if (PySequence_Check(obj)) {
03977 try {
03978 PySequence_Cont<value_type> pyseq(obj);
03979 if (seq) {
03980 sequence *pseq = new sequence();
03981 assign(pyseq, pseq);
03982 *seq = pseq;
03983 return SWIG_NEWOBJ;
03984 } else {
03985 return pyseq.check() ? SWIG_OK : SWIG_ERROR;
03986 }
03987 } catch (std::exception& e) {
03988 if (seq) {
03989 if (!PyErr_Occurred()) {
03990 PyErr_SetString(PyExc_TypeError, e.what());
03991 }
03992 }
03993 return SWIG_ERROR;
03994 }
03995 } else {
03996 sequence *p;
03997 if (SWIG_ConvertPtr(obj,(void**)&p,
03998 swig::type_info<sequence>(),0) == SWIG_OK) {
03999 if (seq) *seq = p;
04000 return SWIG_OLDOBJ;
04001 }
04002 }
04003 return SWIG_ERROR;
04004 }
04005 };
04006
04007 template <class Seq, class T = typename Seq::value_type >
04008 struct traits_from_stdseq {
04009 typedef Seq sequence;
04010 typedef T value_type;
04011 typedef typename Seq::size_type size_type;
04012 typedef typename sequence::const_iterator const_iterator;
04013
04014 static PyObject *from(const sequence& seq) {
04015
04016
04017
04018
04019
04020
04021 size_type size = seq.size();
04022 if (size <= (size_type)INT_MAX) {
04023 PyObject *obj = PyTuple_New((int)size);
04024 int i = 0;
04025 for (const_iterator it = seq.begin();
04026 it != seq.end(); ++it, ++i) {
04027 PyTuple_SetItem(obj,i,swig::from<value_type>(*it));
04028 }
04029 return obj;
04030 } else {
04031 PyErr_SetString(PyExc_OverflowError,"sequence size not valid in python");
04032 return NULL;
04033 }
04034 }
04035 };
04036 }
04037
04038
04039 namespace swig {
04040 template <class T>
04041 struct traits_asptr<std::vector<T> > {
04042 static int asptr(PyObject *obj, std::vector<T> **vec) {
04043 return traits_asptr_stdseq<std::vector<T> >::asptr(obj, vec);
04044 }
04045 };
04046
04047 template <class T>
04048 struct traits_from<std::vector<T> > {
04049 static PyObject *from(const std::vector<T>& vec) {
04050 return traits_from_stdseq<std::vector<T> >::from(vec);
04051 }
04052 };
04053 }
04054
04055
04056 namespace swig {
04057 template <> struct traits<std::vector<std::string, std::allocator<std::string > > > {
04058 typedef pointer_category category;
04059 static const char* type_name() {
04060 return "std::vector<" "std::string" "," "std::allocator<std::string >" " >";
04061 }
04062 };
04063 }
04064
04065 SWIGINTERN swig::PySwigIterator *std_vector_Sl_std_string_Sg__iterator(std::vector<std::string > *self,PyObject **PYTHON_SELF){
04066 return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
04067 }
04068 SWIGINTERN bool std_vector_Sl_std_string_Sg____nonzero__(std::vector<std::string > const *self){
04069 return !(self->empty());
04070 }
04071 SWIGINTERN std::vector<std::string >::size_type std_vector_Sl_std_string_Sg____len__(std::vector<std::string > const *self){
04072 return self->size();
04073 }
04074
04075 SWIGINTERNINLINE PyObject*
04076 SWIG_From_unsigned_SS_long (unsigned long value)
04077 {
04078 return (value > LONG_MAX) ?
04079 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
04080 }
04081
04082
04083 SWIGINTERNINLINE PyObject *
04084 SWIG_From_size_t (size_t value)
04085 {
04086 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
04087 }
04088
04089 SWIGINTERN std::vector<std::string >::value_type std_vector_Sl_std_string_Sg__pop(std::vector<std::string > *self){
04090 if (self->size() == 0)
04091 throw std::out_of_range("pop from empty container");
04092 std::vector<std::string,std::allocator<std::string > >::value_type x = self->back();
04093 self->pop_back();
04094 return x;
04095 }
04096 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){
04097 return swig::getslice(self, i, j);
04098 }
04099 SWIGINTERN void std_vector_Sl_std_string_Sg____setslice__(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){
04100 swig::setslice(self, i, j, v);
04101 }
04102 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){
04103 swig::delslice(self, i, j);
04104 }
04105 SWIGINTERN void std_vector_Sl_std_string_Sg____delitem__(std::vector<std::string > *self,std::vector<std::string >::difference_type i){
04106 self->erase(swig::getpos(self,i));
04107 }
04108 SWIGINTERN std::vector<std::string >::value_type const &std_vector_Sl_std_string_Sg____getitem__(std::vector<std::string > const *self,std::vector<std::string >::difference_type i){
04109 return *(swig::cgetpos(self, i));
04110 }
04111 SWIGINTERN void std_vector_Sl_std_string_Sg____setitem__(std::vector<std::string > *self,std::vector<std::string >::difference_type i,std::vector<std::string >::value_type const &x){
04112 *(swig::getpos(self,i)) = x;
04113 }
04114 SWIGINTERN void std_vector_Sl_std_string_Sg__append(std::vector<std::string > *self,std::vector<std::string >::value_type const &x){
04115 self->push_back(x);
04116 }
04117
04118 SWIGINTERN int
04119 SWIG_AsVal_bool (PyObject *obj, bool *val)
04120 {
04121 if (obj == Py_True) {
04122 if (val) *val = true;
04123 return SWIG_OK;
04124 } else if (obj == Py_False) {
04125 if (val) *val = false;
04126 return SWIG_OK;
04127 } else {
04128 long v = 0;
04129 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
04130 if (SWIG_IsOK(res) && val) *val = v ? true : false;
04131 return res;
04132 }
04133 }
04134
04135 #ifdef __cplusplus
04136 extern "C" {
04137 #endif
04138 SWIGINTERN PyObject *_wrap_delete_PySwigIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
04139 PyObject *resultobj = 0;
04140 swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
04141 void *argp1 = 0 ;
04142 int res1 = 0 ;
04143 PyObject *swig_obj[1] ;
04144
04145 if (!args) SWIG_fail;
04146 swig_obj[0] = args;
04147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_DISOWN | 0 );
04148 if (!SWIG_IsOK(res1)) {
04149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PySwigIterator" "', expected argument " "1"" of type '" "swig::PySwigIterator *""'");
04150 }
04151 arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
04152 delete arg1;
04153
04154 resultobj = SWIG_Py_Void();
04155 return resultobj;
04156 fail:
04157 return NULL;
04158 }
04159
04160
04161 SWIGINTERN PyObject *_wrap_PySwigIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
04162 PyObject *resultobj = 0;
04163 swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
04164 PyObject *result = 0 ;
04165 void *argp1 = 0 ;
04166 int res1 = 0 ;
04167 PyObject *swig_obj[1] ;
04168
04169 if (!args) SWIG_fail;
04170 swig_obj[0] = args;
04171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
04172 if (!SWIG_IsOK(res1)) {
04173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_value" "', expected argument " "1"" of type '" "swig::PySwigIterator const *""'");
04174 }
04175 arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
04176 try {
04177 result = (PyObject *)((swig::PySwigIterator const *)arg1)->value();
04178 }
04179 catch(swig::stop_iteration &_e) {
04180 {
04181 (void)_e;
04182 SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
04183 SWIG_fail;
04184 }
04185 }
04186
04187 resultobj = result;
04188 return resultobj;
04189 fail:
04190 return NULL;
04191 }
04192
04193
04194 SWIGINTERN PyObject *_wrap_PySwigIterator_incr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
04195 PyObject *resultobj = 0;
04196 swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
04197 size_t arg2 = (size_t) 1 ;
04198 swig::PySwigIterator *result = 0 ;
04199 void *argp1 = 0 ;
04200 int res1 = 0 ;
04201 size_t val2 ;
04202 int ecode2 = 0 ;
04203 PyObject * obj0 = 0 ;
04204 PyObject * obj1 = 0 ;
04205 char * kwnames[] = {
04206 (char *) "self",(char *) "n", NULL
04207 };
04208
04209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PySwigIterator_incr",kwnames,&obj0,&obj1)) SWIG_fail;
04210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
04211 if (!SWIG_IsOK(res1)) {
04212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_incr" "', expected argument " "1"" of type '" "swig::PySwigIterator *""'");
04213 }
04214 arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
04215 if (obj1) {
04216 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
04217 if (!SWIG_IsOK(ecode2)) {
04218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator_incr" "', expected argument " "2"" of type '" "size_t""'");
04219 }
04220 arg2 = static_cast< size_t >(val2);
04221 }
04222 try {
04223 result = (swig::PySwigIterator *)(arg1)->incr(arg2);
04224 }
04225 catch(swig::stop_iteration &_e) {
04226 {
04227 (void)_e;
04228 SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
04229 SWIG_fail;
04230 }
04231 }
04232
04233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
04234 return resultobj;
04235 fail:
04236 return NULL;
04237 }
04238
04239
04240 SWIGINTERN PyObject *_wrap_PySwigIterator_decr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
04241 PyObject *resultobj = 0;
04242 swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
04243 size_t arg2 = (size_t) 1 ;
04244 swig::PySwigIterator *result = 0 ;
04245 void *argp1 = 0 ;
04246 int res1 = 0 ;
04247 size_t val2 ;
04248 int ecode2 = 0 ;
04249 PyObject * obj0 = 0 ;
04250 PyObject * obj1 = 0 ;
04251 char * kwnames[] = {
04252 (char *) "self",(char *) "n", NULL
04253 };
04254
04255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PySwigIterator_decr",kwnames,&obj0,&obj1)) SWIG_fail;
04256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
04257 if (!SWIG_IsOK(res1)) {
04258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_decr" "', expected argument " "1"" of type '" "swig::PySwigIterator *""'");
04259 }
04260 arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
04261 if (obj1) {
04262 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
04263 if (!SWIG_IsOK(ecode2)) {
04264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator_decr" "', expected argument " "2"" of type '" "size_t""'");
04265 }
04266 arg2 = static_cast< size_t >(val2);
04267 }
04268 try {
04269 result = (swig::PySwigIterator *)(arg1)->decr(arg2);
04270 }
04271 catch(swig::stop_iteration &_e) {
04272 {
04273 (void)_e;
04274 SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
04275 SWIG_fail;
04276 }
04277 }
04278
04279 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
04280 return resultobj;
04281 fail:
04282 return NULL;
04283 }
04284
04285
04286 SWIGINTERN PyObject *_wrap_PySwigIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
04287 PyObject *resultobj = 0;
04288 swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
04289 swig::PySwigIterator *arg2 = 0 ;
04290 ptrdiff_t result;
04291 void *argp1 = 0 ;
04292 int res1 = 0 ;
04293 void *argp2 = 0 ;
04294 int res2 = 0 ;
04295 PyObject * obj0 = 0 ;
04296 PyObject * obj1 = 0 ;
04297 char * kwnames[] = {
04298 (char *) "self",(char *) "x", NULL
04299 };
04300
04301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PySwigIterator_distance",kwnames,&obj0,&obj1)) SWIG_fail;
04302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
04303 if (!SWIG_IsOK(res1)) {
04304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_distance" "', expected argument " "1"" of type '" "swig::PySwigIterator const *""'");
04305 }
04306 arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
04307 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__PySwigIterator, 0 | 0);
04308 if (!SWIG_IsOK(res2)) {
04309 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PySwigIterator_distance" "', expected argument " "2"" of type '" "swig::PySwigIterator const &""'");
04310 }
04311 if (!argp2) {
04312 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PySwigIterator_distance" "', expected argument " "2"" of type '" "swig::PySwigIterator const &""'");
04313 }
04314 arg2 = reinterpret_cast< swig::PySwigIterator * >(argp2);
04315 try {
04316 result = ((swig::PySwigIterator const *)arg1)->distance((swig::PySwigIterator const &)*arg2);
04317 }
04318 catch(std::invalid_argument &_e) {
04319 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;
04320 }
04321
04322 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
04323 return resultobj;
04324 fail:
04325 return NULL;
04326 }
04327
04328
04329 SWIGINTERN PyObject *_wrap_PySwigIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
04330 PyObject *resultobj = 0;
04331 swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
04332 swig::PySwigIterator *arg2 = 0 ;
04333 bool result;
04334 void *argp1 = 0 ;
04335 int res1 = 0 ;
04336 void *argp2 = 0 ;
04337 int res2 = 0 ;
04338 PyObject * obj0 = 0 ;
04339 PyObject * obj1 = 0 ;
04340 char * kwnames[] = {
04341 (char *) "self",(char *) "x", NULL
04342 };
04343
04344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PySwigIterator_equal",kwnames,&obj0,&obj1)) SWIG_fail;
04345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
04346 if (!SWIG_IsOK(res1)) {
04347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_equal" "', expected argument " "1"" of type '" "swig::PySwigIterator const *""'");
04348 }
04349 arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
04350 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__PySwigIterator, 0 | 0);
04351 if (!SWIG_IsOK(res2)) {
04352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PySwigIterator_equal" "', expected argument " "2"" of type '" "swig::PySwigIterator const &""'");
04353 }
04354 if (!argp2) {
04355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PySwigIterator_equal" "', expected argument " "2"" of type '" "swig::PySwigIterator const &""'");
04356 }
04357 arg2 = reinterpret_cast< swig::PySwigIterator * >(argp2);
04358 try {
04359 result = (bool)((swig::PySwigIterator const *)arg1)->equal((swig::PySwigIterator const &)*arg2);
04360 }
04361 catch(std::invalid_argument &_e) {
04362 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;
04363 }
04364
04365 resultobj = SWIG_From_bool(static_cast< bool >(result));
04366 return resultobj;
04367 fail:
04368 return NULL;
04369 }
04370
04371
04372 SWIGINTERN PyObject *_wrap_PySwigIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
04373 PyObject *resultobj = 0;
04374 swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
04375 swig::PySwigIterator *result = 0 ;
04376 void *argp1 = 0 ;
04377 int res1 = 0 ;
04378 PyObject *swig_obj[1] ;
04379
04380 if (!args) SWIG_fail;
04381 swig_obj[0] = args;
04382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
04383 if (!SWIG_IsOK(res1)) {
04384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_copy" "', expected argument " "1"" of type '" "swig::PySwigIterator const *""'");
04385 }
04386 arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
04387 result = (swig::PySwigIterator *)((swig::PySwigIterator const *)arg1)->copy();
04388 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
04389 return resultobj;
04390 fail:
04391 return NULL;
04392 }
04393
04394
04395 SWIGINTERN PyObject *_wrap_PySwigIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
04396 PyObject *resultobj = 0;
04397 swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
04398 PyObject *result = 0 ;
04399 void *argp1 = 0 ;
04400 int res1 = 0 ;
04401 PyObject *swig_obj[1] ;
04402
04403 if (!args) SWIG_fail;
04404 swig_obj[0] = args;
04405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
04406 if (!SWIG_IsOK(res1)) {
04407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_next" "', expected argument " "1"" of type '" "swig::PySwigIterator *""'");
04408 }
04409 arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
04410 try {
04411 result = (PyObject *)(arg1)->next();
04412 }
04413 catch(swig::stop_iteration &_e) {
04414 {
04415 (void)_e;
04416 SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
04417 SWIG_fail;
04418 }
04419 }
04420
04421 resultobj = result;
04422 return resultobj;
04423 fail:
04424 return NULL;
04425 }
04426
04427
04428 SWIGINTERN PyObject *_wrap_PySwigIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
04429 PyObject *resultobj = 0;
04430 swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
04431 PyObject *result = 0 ;
04432 void *argp1 = 0 ;
04433 int res1 = 0 ;
04434 PyObject *swig_obj[1] ;
04435
04436 if (!args) SWIG_fail;
04437 swig_obj[0] = args;
04438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
04439 if (!SWIG_IsOK(res1)) {
04440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_previous" "', expected argument " "1"" of type '" "swig::PySwigIterator *""'");
04441 }
04442 arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
04443 try {
04444 result = (PyObject *)(arg1)->previous();
04445 }
04446 catch(swig::stop_iteration &_e) {
04447 {
04448 (void)_e;
04449 SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
04450 SWIG_fail;
04451 }
04452 }
04453
04454 resultobj = result;
04455 return resultobj;
04456 fail:
04457 return NULL;
04458 }
04459
04460
04461 SWIGINTERN PyObject *_wrap_PySwigIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
04462 PyObject *resultobj = 0;
04463 swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
04464 ptrdiff_t arg2 ;
04465 swig::PySwigIterator *result = 0 ;
04466 void *argp1 = 0 ;
04467 int res1 = 0 ;
04468 ptrdiff_t val2 ;
04469 int ecode2 = 0 ;
04470 PyObject * obj0 = 0 ;
04471 PyObject * obj1 = 0 ;
04472 char * kwnames[] = {
04473 (char *) "self",(char *) "n", NULL
04474 };
04475
04476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PySwigIterator_advance",kwnames,&obj0,&obj1)) SWIG_fail;
04477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
04478 if (!SWIG_IsOK(res1)) {
04479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_advance" "', expected argument " "1"" of type '" "swig::PySwigIterator *""'");
04480 }
04481 arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
04482 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
04483 if (!SWIG_IsOK(ecode2)) {
04484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator_advance" "', expected argument " "2"" of type '" "ptrdiff_t""'");
04485 }
04486 arg2 = static_cast< ptrdiff_t >(val2);
04487 try {
04488 result = (swig::PySwigIterator *)(arg1)->advance(arg2);
04489 }
04490 catch(swig::stop_iteration &_e) {
04491 {
04492 (void)_e;
04493 SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
04494 SWIG_fail;
04495 }
04496 }
04497
04498 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
04499 return resultobj;
04500 fail:
04501 return NULL;
04502 }
04503
04504
04505 SWIGINTERN PyObject *_wrap_PySwigIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
04506 PyObject *resultobj = 0;
04507 swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
04508 swig::PySwigIterator *arg2 = 0 ;
04509 bool result;
04510 void *argp1 = 0 ;
04511 int res1 = 0 ;
04512 void *argp2 = 0 ;
04513 int res2 = 0 ;
04514 PyObject * obj0 = 0 ;
04515 PyObject * obj1 = 0 ;
04516 char * kwnames[] = {
04517 (char *) "self",(char *) "x", NULL
04518 };
04519
04520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PySwigIterator___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
04521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
04522 if (!SWIG_IsOK(res1)) {
04523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___eq__" "', expected argument " "1"" of type '" "swig::PySwigIterator const *""'");
04524 }
04525 arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
04526 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__PySwigIterator, 0 | 0);
04527 if (!SWIG_IsOK(res2)) {
04528 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PySwigIterator___eq__" "', expected argument " "2"" of type '" "swig::PySwigIterator const &""'");
04529 }
04530 if (!argp2) {
04531 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PySwigIterator___eq__" "', expected argument " "2"" of type '" "swig::PySwigIterator const &""'");
04532 }
04533 arg2 = reinterpret_cast< swig::PySwigIterator * >(argp2);
04534 result = (bool)((swig::PySwigIterator const *)arg1)->operator ==((swig::PySwigIterator const &)*arg2);
04535 resultobj = SWIG_From_bool(static_cast< bool >(result));
04536 return resultobj;
04537 fail:
04538 return NULL;
04539 }
04540
04541
04542 SWIGINTERN PyObject *_wrap_PySwigIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
04543 PyObject *resultobj = 0;
04544 swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
04545 swig::PySwigIterator *arg2 = 0 ;
04546 bool result;
04547 void *argp1 = 0 ;
04548 int res1 = 0 ;
04549 void *argp2 = 0 ;
04550 int res2 = 0 ;
04551 PyObject * obj0 = 0 ;
04552 PyObject * obj1 = 0 ;
04553 char * kwnames[] = {
04554 (char *) "self",(char *) "x", NULL
04555 };
04556
04557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PySwigIterator___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
04558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
04559 if (!SWIG_IsOK(res1)) {
04560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___ne__" "', expected argument " "1"" of type '" "swig::PySwigIterator const *""'");
04561 }
04562 arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
04563 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__PySwigIterator, 0 | 0);
04564 if (!SWIG_IsOK(res2)) {
04565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PySwigIterator___ne__" "', expected argument " "2"" of type '" "swig::PySwigIterator const &""'");
04566 }
04567 if (!argp2) {
04568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PySwigIterator___ne__" "', expected argument " "2"" of type '" "swig::PySwigIterator const &""'");
04569 }
04570 arg2 = reinterpret_cast< swig::PySwigIterator * >(argp2);
04571 result = (bool)((swig::PySwigIterator const *)arg1)->operator !=((swig::PySwigIterator const &)*arg2);
04572 resultobj = SWIG_From_bool(static_cast< bool >(result));
04573 return resultobj;
04574 fail:
04575 return NULL;
04576 }
04577
04578
04579 SWIGINTERN PyObject *_wrap_PySwigIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
04580 PyObject *resultobj = 0;
04581 swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
04582 ptrdiff_t arg2 ;
04583 swig::PySwigIterator *result = 0 ;
04584 void *argp1 = 0 ;
04585 int res1 = 0 ;
04586 ptrdiff_t val2 ;
04587 int ecode2 = 0 ;
04588 PyObject * obj0 = 0 ;
04589 PyObject * obj1 = 0 ;
04590 char * kwnames[] = {
04591 (char *) "self",(char *) "n", NULL
04592 };
04593
04594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PySwigIterator___iadd__",kwnames,&obj0,&obj1)) SWIG_fail;
04595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_DISOWN | 0 );
04596 if (!SWIG_IsOK(res1)) {
04597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___iadd__" "', expected argument " "1"" of type '" "swig::PySwigIterator *""'");
04598 }
04599 arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
04600 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
04601 if (!SWIG_IsOK(ecode2)) {
04602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator___iadd__" "', expected argument " "2"" of type '" "ptrdiff_t""'");
04603 }
04604 arg2 = static_cast< ptrdiff_t >(val2);
04605 try {
04606 {
04607 swig::PySwigIterator &_result_ref = (arg1)->operator +=(arg2);
04608 result = (swig::PySwigIterator *) &_result_ref;
04609 }
04610 }
04611 catch(swig::stop_iteration &_e) {
04612 {
04613 (void)_e;
04614 SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
04615 SWIG_fail;
04616 }
04617 }
04618
04619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
04620 return resultobj;
04621 fail:
04622 return NULL;
04623 }
04624
04625
04626 SWIGINTERN PyObject *_wrap_PySwigIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
04627 PyObject *resultobj = 0;
04628 swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
04629 ptrdiff_t arg2 ;
04630 swig::PySwigIterator *result = 0 ;
04631 void *argp1 = 0 ;
04632 int res1 = 0 ;
04633 ptrdiff_t val2 ;
04634 int ecode2 = 0 ;
04635 PyObject * obj0 = 0 ;
04636 PyObject * obj1 = 0 ;
04637 char * kwnames[] = {
04638 (char *) "self",(char *) "n", NULL
04639 };
04640
04641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PySwigIterator___isub__",kwnames,&obj0,&obj1)) SWIG_fail;
04642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_DISOWN | 0 );
04643 if (!SWIG_IsOK(res1)) {
04644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___isub__" "', expected argument " "1"" of type '" "swig::PySwigIterator *""'");
04645 }
04646 arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
04647 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
04648 if (!SWIG_IsOK(ecode2)) {
04649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator___isub__" "', expected argument " "2"" of type '" "ptrdiff_t""'");
04650 }
04651 arg2 = static_cast< ptrdiff_t >(val2);
04652 try {
04653 {
04654 swig::PySwigIterator &_result_ref = (arg1)->operator -=(arg2);
04655 result = (swig::PySwigIterator *) &_result_ref;
04656 }
04657 }
04658 catch(swig::stop_iteration &_e) {
04659 {
04660 (void)_e;
04661 SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
04662 SWIG_fail;
04663 }
04664 }
04665
04666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
04667 return resultobj;
04668 fail:
04669 return NULL;
04670 }
04671
04672
04673 SWIGINTERN PyObject *_wrap_PySwigIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
04674 PyObject *resultobj = 0;
04675 swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
04676 ptrdiff_t arg2 ;
04677 swig::PySwigIterator *result = 0 ;
04678 void *argp1 = 0 ;
04679 int res1 = 0 ;
04680 ptrdiff_t val2 ;
04681 int ecode2 = 0 ;
04682 PyObject * obj0 = 0 ;
04683 PyObject * obj1 = 0 ;
04684 char * kwnames[] = {
04685 (char *) "self",(char *) "n", NULL
04686 };
04687
04688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PySwigIterator___add__",kwnames,&obj0,&obj1)) SWIG_fail;
04689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
04690 if (!SWIG_IsOK(res1)) {
04691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___add__" "', expected argument " "1"" of type '" "swig::PySwigIterator const *""'");
04692 }
04693 arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
04694 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
04695 if (!SWIG_IsOK(ecode2)) {
04696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator___add__" "', expected argument " "2"" of type '" "ptrdiff_t""'");
04697 }
04698 arg2 = static_cast< ptrdiff_t >(val2);
04699 try {
04700 result = (swig::PySwigIterator *)((swig::PySwigIterator const *)arg1)->operator +(arg2);
04701 }
04702 catch(swig::stop_iteration &_e) {
04703 {
04704 (void)_e;
04705 SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
04706 SWIG_fail;
04707 }
04708 }
04709
04710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
04711 return resultobj;
04712 fail:
04713 return NULL;
04714 }
04715
04716
04717 SWIGINTERN PyObject *_wrap_PySwigIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
04718 PyObject *resultobj = 0;
04719 swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
04720 ptrdiff_t arg2 ;
04721 swig::PySwigIterator *result = 0 ;
04722 void *argp1 = 0 ;
04723 int res1 = 0 ;
04724 ptrdiff_t val2 ;
04725 int ecode2 = 0 ;
04726
04727 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
04728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
04729 if (!SWIG_IsOK(res1)) {
04730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___sub__" "', expected argument " "1"" of type '" "swig::PySwigIterator const *""'");
04731 }
04732 arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
04733 ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
04734 if (!SWIG_IsOK(ecode2)) {
04735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator___sub__" "', expected argument " "2"" of type '" "ptrdiff_t""'");
04736 }
04737 arg2 = static_cast< ptrdiff_t >(val2);
04738 try {
04739 result = (swig::PySwigIterator *)((swig::PySwigIterator const *)arg1)->operator -(arg2);
04740 }
04741 catch(swig::stop_iteration &_e) {
04742 {
04743 (void)_e;
04744 SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
04745 SWIG_fail;
04746 }
04747 }
04748
04749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
04750 return resultobj;
04751 fail:
04752 return NULL;
04753 }
04754
04755
04756 SWIGINTERN PyObject *_wrap_PySwigIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
04757 PyObject *resultobj = 0;
04758 swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
04759 swig::PySwigIterator *arg2 = 0 ;
04760 ptrdiff_t result;
04761 void *argp1 = 0 ;
04762 int res1 = 0 ;
04763 void *argp2 = 0 ;
04764 int res2 = 0 ;
04765
04766 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
04767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
04768 if (!SWIG_IsOK(res1)) {
04769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___sub__" "', expected argument " "1"" of type '" "swig::PySwigIterator const *""'");
04770 }
04771 arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
04772 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_swig__PySwigIterator, 0 | 0);
04773 if (!SWIG_IsOK(res2)) {
04774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PySwigIterator___sub__" "', expected argument " "2"" of type '" "swig::PySwigIterator const &""'");
04775 }
04776 if (!argp2) {
04777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PySwigIterator___sub__" "', expected argument " "2"" of type '" "swig::PySwigIterator const &""'");
04778 }
04779 arg2 = reinterpret_cast< swig::PySwigIterator * >(argp2);
04780 result = ((swig::PySwigIterator const *)arg1)->operator -((swig::PySwigIterator const &)*arg2);
04781 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
04782 return resultobj;
04783 fail:
04784 return NULL;
04785 }
04786
04787
04788 SWIGINTERN PyObject *_wrap_PySwigIterator___sub__(PyObject *self, PyObject *args) {
04789 int argc;
04790 PyObject *argv[3];
04791
04792 if (!(argc = SWIG_Python_UnpackTuple(args,"PySwigIterator___sub__",0,2,argv))) SWIG_fail;
04793 --argc;
04794 if (argc == 2) {
04795 int _v = 0;
04796 {
04797 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__PySwigIterator, 0);
04798 _v = SWIG_CheckState(res);
04799 }
04800 if (!_v) goto check_1;
04801 return _wrap_PySwigIterator___sub____SWIG_1(self, argc, argv);
04802 }
04803 check_1:
04804
04805 if (argc == 2) {
04806 return _wrap_PySwigIterator___sub____SWIG_0(self, argc, argv);
04807 }
04808
04809 fail:
04810 Py_INCREF(Py_NotImplemented);
04811 return Py_NotImplemented;
04812 }
04813
04814
04815 SWIGINTERN PyObject *PySwigIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
04816 PyObject *obj;
04817 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
04818 SWIG_TypeNewClientData(SWIGTYPE_p_swig__PySwigIterator, SWIG_NewClientData(obj));
04819 return SWIG_Py_Void();
04820 }
04821
04822 SWIGINTERN PyObject *_wrap_V_string_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
04823 PyObject *resultobj = 0;
04824 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
04825 PyObject **arg2 = (PyObject **) 0 ;
04826 swig::PySwigIterator *result = 0 ;
04827 void *argp1 = 0 ;
04828 int res1 = 0 ;
04829 PyObject *swig_obj[1] ;
04830
04831 arg2 = &swig_obj[0];
04832 if (!args) SWIG_fail;
04833 swig_obj[0] = args;
04834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
04835 if (!SWIG_IsOK(res1)) {
04836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_iterator" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
04837 }
04838 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
04839 result = (swig::PySwigIterator *)std_vector_Sl_std_string_Sg__iterator(arg1,arg2);
04840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
04841 return resultobj;
04842 fail:
04843 return NULL;
04844 }
04845
04846
04847 SWIGINTERN PyObject *_wrap_V_string___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
04848 PyObject *resultobj = 0;
04849 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
04850 bool result;
04851 void *argp1 = 0 ;
04852 int res1 = 0 ;
04853 PyObject *swig_obj[1] ;
04854
04855 if (!args) SWIG_fail;
04856 swig_obj[0] = args;
04857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
04858 if (!SWIG_IsOK(res1)) {
04859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string___nonzero__" "', expected argument " "1"" of type '" "std::vector<std::string > const *""'");
04860 }
04861 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
04862 result = (bool)std_vector_Sl_std_string_Sg____nonzero__((std::vector<std::string > const *)arg1);
04863 resultobj = SWIG_From_bool(static_cast< bool >(result));
04864 return resultobj;
04865 fail:
04866 return NULL;
04867 }
04868
04869
04870 SWIGINTERN PyObject *_wrap_V_string___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
04871 PyObject *resultobj = 0;
04872 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
04873 std::vector<std::string >::size_type result;
04874 void *argp1 = 0 ;
04875 int res1 = 0 ;
04876 PyObject *swig_obj[1] ;
04877
04878 if (!args) SWIG_fail;
04879 swig_obj[0] = args;
04880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
04881 if (!SWIG_IsOK(res1)) {
04882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string___len__" "', expected argument " "1"" of type '" "std::vector<std::string > const *""'");
04883 }
04884 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
04885 result = std_vector_Sl_std_string_Sg____len__((std::vector<std::string > const *)arg1);
04886 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
04887 return resultobj;
04888 fail:
04889 return NULL;
04890 }
04891
04892
04893 SWIGINTERN PyObject *_wrap_V_string_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
04894 PyObject *resultobj = 0;
04895 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
04896 std::vector<std::string >::value_type result;
04897 void *argp1 = 0 ;
04898 int res1 = 0 ;
04899 PyObject *swig_obj[1] ;
04900
04901 if (!args) SWIG_fail;
04902 swig_obj[0] = args;
04903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
04904 if (!SWIG_IsOK(res1)) {
04905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_pop" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
04906 }
04907 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
04908 try {
04909 result = std_vector_Sl_std_string_Sg__pop(arg1);
04910 }
04911 catch(std::out_of_range &_e) {
04912 SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
04913 }
04914
04915 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
04916 return resultobj;
04917 fail:
04918 return NULL;
04919 }
04920
04921
04922 SWIGINTERN PyObject *_wrap_V_string___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
04923 PyObject *resultobj = 0;
04924 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
04925 std::vector<std::string >::difference_type arg2 ;
04926 std::vector<std::string >::difference_type arg3 ;
04927 std::vector<std::string,std::allocator<std::string > > *result = 0 ;
04928 void *argp1 = 0 ;
04929 int res1 = 0 ;
04930 ptrdiff_t val2 ;
04931 int ecode2 = 0 ;
04932 ptrdiff_t val3 ;
04933 int ecode3 = 0 ;
04934 PyObject * obj0 = 0 ;
04935 PyObject * obj1 = 0 ;
04936 PyObject * obj2 = 0 ;
04937 char * kwnames[] = {
04938 (char *) "self",(char *) "i",(char *) "j", NULL
04939 };
04940
04941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:V_string___getslice__",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
04942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
04943 if (!SWIG_IsOK(res1)) {
04944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string___getslice__" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
04945 }
04946 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
04947 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
04948 if (!SWIG_IsOK(ecode2)) {
04949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "V_string___getslice__" "', expected argument " "2"" of type '" "std::vector<std::string >::difference_type""'");
04950 }
04951 arg2 = static_cast< std::vector<std::string >::difference_type >(val2);
04952 ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
04953 if (!SWIG_IsOK(ecode3)) {
04954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "V_string___getslice__" "', expected argument " "3"" of type '" "std::vector<std::string >::difference_type""'");
04955 }
04956 arg3 = static_cast< std::vector<std::string >::difference_type >(val3);
04957 try {
04958 result = (std::vector<std::string,std::allocator<std::string > > *)std_vector_Sl_std_string_Sg____getslice__(arg1,arg2,arg3);
04959 }
04960 catch(std::out_of_range &_e) {
04961 SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
04962 }
04963
04964 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, SWIG_POINTER_OWN | 0 );
04965 return resultobj;
04966 fail:
04967 return NULL;
04968 }
04969
04970
04971 SWIGINTERN PyObject *_wrap_V_string___setslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
04972 PyObject *resultobj = 0;
04973 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
04974 std::vector<std::string >::difference_type arg2 ;
04975 std::vector<std::string >::difference_type arg3 ;
04976 std::vector<std::string,std::allocator<std::string > > *arg4 = 0 ;
04977 void *argp1 = 0 ;
04978 int res1 = 0 ;
04979 ptrdiff_t val2 ;
04980 int ecode2 = 0 ;
04981 ptrdiff_t val3 ;
04982 int ecode3 = 0 ;
04983 int res4 = SWIG_OLDOBJ ;
04984 PyObject * obj0 = 0 ;
04985 PyObject * obj1 = 0 ;
04986 PyObject * obj2 = 0 ;
04987 PyObject * obj3 = 0 ;
04988 char * kwnames[] = {
04989 (char *) "self",(char *) "i",(char *) "j",(char *) "v", NULL
04990 };
04991
04992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:V_string___setslice__",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
04993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
04994 if (!SWIG_IsOK(res1)) {
04995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string___setslice__" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
04996 }
04997 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
04998 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
04999 if (!SWIG_IsOK(ecode2)) {
05000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "V_string___setslice__" "', expected argument " "2"" of type '" "std::vector<std::string >::difference_type""'");
05001 }
05002 arg2 = static_cast< std::vector<std::string >::difference_type >(val2);
05003 ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
05004 if (!SWIG_IsOK(ecode3)) {
05005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "V_string___setslice__" "', expected argument " "3"" of type '" "std::vector<std::string >::difference_type""'");
05006 }
05007 arg3 = static_cast< std::vector<std::string >::difference_type >(val3);
05008 {
05009 std::vector<std::string,std::allocator<std::string > > *ptr = (std::vector<std::string,std::allocator<std::string > > *)0;
05010 res4 = swig::asptr(obj3, &ptr);
05011 if (!SWIG_IsOK(res4)) {
05012 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "V_string___setslice__" "', expected argument " "4"" of type '" "std::vector<std::string,std::allocator<std::string > > const &""'");
05013 }
05014 if (!ptr) {
05015 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "V_string___setslice__" "', expected argument " "4"" of type '" "std::vector<std::string,std::allocator<std::string > > const &""'");
05016 }
05017 arg4 = ptr;
05018 }
05019 try {
05020 std_vector_Sl_std_string_Sg____setslice__(arg1,arg2,arg3,(std::vector<std::string,std::allocator<std::string > > const &)*arg4);
05021 }
05022 catch(std::out_of_range &_e) {
05023 SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
05024 }
05025 catch(std::invalid_argument &_e) {
05026 SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
05027 }
05028
05029 resultobj = SWIG_Py_Void();
05030 if (SWIG_IsNewObj(res4)) delete arg4;
05031 return resultobj;
05032 fail:
05033 if (SWIG_IsNewObj(res4)) delete arg4;
05034 return NULL;
05035 }
05036
05037
05038 SWIGINTERN PyObject *_wrap_V_string___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
05039 PyObject *resultobj = 0;
05040 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05041 std::vector<std::string >::difference_type arg2 ;
05042 std::vector<std::string >::difference_type arg3 ;
05043 void *argp1 = 0 ;
05044 int res1 = 0 ;
05045 ptrdiff_t val2 ;
05046 int ecode2 = 0 ;
05047 ptrdiff_t val3 ;
05048 int ecode3 = 0 ;
05049 PyObject * obj0 = 0 ;
05050 PyObject * obj1 = 0 ;
05051 PyObject * obj2 = 0 ;
05052 char * kwnames[] = {
05053 (char *) "self",(char *) "i",(char *) "j", NULL
05054 };
05055
05056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:V_string___delslice__",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
05057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05058 if (!SWIG_IsOK(res1)) {
05059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string___delslice__" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
05060 }
05061 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05062 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
05063 if (!SWIG_IsOK(ecode2)) {
05064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "V_string___delslice__" "', expected argument " "2"" of type '" "std::vector<std::string >::difference_type""'");
05065 }
05066 arg2 = static_cast< std::vector<std::string >::difference_type >(val2);
05067 ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
05068 if (!SWIG_IsOK(ecode3)) {
05069 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "V_string___delslice__" "', expected argument " "3"" of type '" "std::vector<std::string >::difference_type""'");
05070 }
05071 arg3 = static_cast< std::vector<std::string >::difference_type >(val3);
05072 try {
05073 std_vector_Sl_std_string_Sg____delslice__(arg1,arg2,arg3);
05074 }
05075 catch(std::out_of_range &_e) {
05076 SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
05077 }
05078
05079 resultobj = SWIG_Py_Void();
05080 return resultobj;
05081 fail:
05082 return NULL;
05083 }
05084
05085
05086 SWIGINTERN PyObject *_wrap_V_string___delitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
05087 PyObject *resultobj = 0;
05088 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05089 std::vector<std::string >::difference_type arg2 ;
05090 void *argp1 = 0 ;
05091 int res1 = 0 ;
05092 ptrdiff_t val2 ;
05093 int ecode2 = 0 ;
05094 PyObject * obj0 = 0 ;
05095 PyObject * obj1 = 0 ;
05096 char * kwnames[] = {
05097 (char *) "self",(char *) "i", NULL
05098 };
05099
05100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:V_string___delitem__",kwnames,&obj0,&obj1)) SWIG_fail;
05101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05102 if (!SWIG_IsOK(res1)) {
05103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string___delitem__" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
05104 }
05105 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05106 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
05107 if (!SWIG_IsOK(ecode2)) {
05108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "V_string___delitem__" "', expected argument " "2"" of type '" "std::vector<std::string >::difference_type""'");
05109 }
05110 arg2 = static_cast< std::vector<std::string >::difference_type >(val2);
05111 try {
05112 std_vector_Sl_std_string_Sg____delitem__(arg1,arg2);
05113 }
05114 catch(std::out_of_range &_e) {
05115 SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
05116 }
05117
05118 resultobj = SWIG_Py_Void();
05119 return resultobj;
05120 fail:
05121 return NULL;
05122 }
05123
05124
05125 SWIGINTERN PyObject *_wrap_V_string___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
05126 PyObject *resultobj = 0;
05127 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05128 std::vector<std::string >::difference_type arg2 ;
05129 std::vector<std::string >::value_type *result = 0 ;
05130 void *argp1 = 0 ;
05131 int res1 = 0 ;
05132 ptrdiff_t val2 ;
05133 int ecode2 = 0 ;
05134 PyObject * obj0 = 0 ;
05135 PyObject * obj1 = 0 ;
05136 char * kwnames[] = {
05137 (char *) "self",(char *) "i", NULL
05138 };
05139
05140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:V_string___getitem__",kwnames,&obj0,&obj1)) SWIG_fail;
05141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05142 if (!SWIG_IsOK(res1)) {
05143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string___getitem__" "', expected argument " "1"" of type '" "std::vector<std::string > const *""'");
05144 }
05145 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05146 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
05147 if (!SWIG_IsOK(ecode2)) {
05148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "V_string___getitem__" "', expected argument " "2"" of type '" "std::vector<std::string >::difference_type""'");
05149 }
05150 arg2 = static_cast< std::vector<std::string >::difference_type >(val2);
05151 try {
05152 {
05153 std::vector<std::string >::value_type const &_result_ref = std_vector_Sl_std_string_Sg____getitem__((std::vector<std::string > const *)arg1,arg2);
05154 result = (std::vector<std::string >::value_type *) &_result_ref;
05155 }
05156 }
05157 catch(std::out_of_range &_e) {
05158 SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
05159 }
05160
05161 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
05162 return resultobj;
05163 fail:
05164 return NULL;
05165 }
05166
05167
05168 SWIGINTERN PyObject *_wrap_V_string___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
05169 PyObject *resultobj = 0;
05170 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05171 std::vector<std::string >::difference_type arg2 ;
05172 std::vector<std::string >::value_type *arg3 = 0 ;
05173 void *argp1 = 0 ;
05174 int res1 = 0 ;
05175 ptrdiff_t val2 ;
05176 int ecode2 = 0 ;
05177 int res3 = SWIG_OLDOBJ ;
05178 PyObject * obj0 = 0 ;
05179 PyObject * obj1 = 0 ;
05180 PyObject * obj2 = 0 ;
05181 char * kwnames[] = {
05182 (char *) "self",(char *) "i",(char *) "x", NULL
05183 };
05184
05185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:V_string___setitem__",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
05186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05187 if (!SWIG_IsOK(res1)) {
05188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string___setitem__" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
05189 }
05190 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05191 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
05192 if (!SWIG_IsOK(ecode2)) {
05193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "V_string___setitem__" "', expected argument " "2"" of type '" "std::vector<std::string >::difference_type""'");
05194 }
05195 arg2 = static_cast< std::vector<std::string >::difference_type >(val2);
05196 {
05197 std::string *ptr = (std::string *)0;
05198 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
05199 if (!SWIG_IsOK(res3)) {
05200 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "V_string___setitem__" "', expected argument " "3"" of type '" "std::vector<std::string >::value_type const &""'");
05201 }
05202 if (!ptr) {
05203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "V_string___setitem__" "', expected argument " "3"" of type '" "std::vector<std::string >::value_type const &""'");
05204 }
05205 arg3 = ptr;
05206 }
05207 try {
05208 std_vector_Sl_std_string_Sg____setitem__(arg1,arg2,(std::string const &)*arg3);
05209 }
05210 catch(std::out_of_range &_e) {
05211 SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
05212 }
05213
05214 resultobj = SWIG_Py_Void();
05215 if (SWIG_IsNewObj(res3)) delete arg3;
05216 return resultobj;
05217 fail:
05218 if (SWIG_IsNewObj(res3)) delete arg3;
05219 return NULL;
05220 }
05221
05222
05223 SWIGINTERN PyObject *_wrap_V_string_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
05224 PyObject *resultobj = 0;
05225 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05226 std::vector<std::string >::value_type *arg2 = 0 ;
05227 void *argp1 = 0 ;
05228 int res1 = 0 ;
05229 int res2 = SWIG_OLDOBJ ;
05230 PyObject * obj0 = 0 ;
05231 PyObject * obj1 = 0 ;
05232 char * kwnames[] = {
05233 (char *) "self",(char *) "x", NULL
05234 };
05235
05236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:V_string_append",kwnames,&obj0,&obj1)) SWIG_fail;
05237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05238 if (!SWIG_IsOK(res1)) {
05239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_append" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
05240 }
05241 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05242 {
05243 std::string *ptr = (std::string *)0;
05244 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
05245 if (!SWIG_IsOK(res2)) {
05246 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "V_string_append" "', expected argument " "2"" of type '" "std::vector<std::string >::value_type const &""'");
05247 }
05248 if (!ptr) {
05249 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "V_string_append" "', expected argument " "2"" of type '" "std::vector<std::string >::value_type const &""'");
05250 }
05251 arg2 = ptr;
05252 }
05253 std_vector_Sl_std_string_Sg__append(arg1,(std::string const &)*arg2);
05254 resultobj = SWIG_Py_Void();
05255 if (SWIG_IsNewObj(res2)) delete arg2;
05256 return resultobj;
05257 fail:
05258 if (SWIG_IsNewObj(res2)) delete arg2;
05259 return NULL;
05260 }
05261
05262
05263 SWIGINTERN PyObject *_wrap_new_V_string__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
05264 PyObject *resultobj = 0;
05265 std::vector<std::string > *result = 0 ;
05266
05267 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
05268 result = (std::vector<std::string > *)new std::vector<std::string >();
05269 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, SWIG_POINTER_NEW | 0 );
05270 return resultobj;
05271 fail:
05272 return NULL;
05273 }
05274
05275
05276 SWIGINTERN PyObject *_wrap_new_V_string__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
05277 PyObject *resultobj = 0;
05278 std::vector<std::string > *arg1 = 0 ;
05279 std::vector<std::string > *result = 0 ;
05280 int res1 = SWIG_OLDOBJ ;
05281
05282 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
05283 {
05284 std::vector<std::string,std::allocator<std::string > > *ptr = (std::vector<std::string,std::allocator<std::string > > *)0;
05285 res1 = swig::asptr(swig_obj[0], &ptr);
05286 if (!SWIG_IsOK(res1)) {
05287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_V_string" "', expected argument " "1"" of type '" "std::vector<std::string > const &""'");
05288 }
05289 if (!ptr) {
05290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_V_string" "', expected argument " "1"" of type '" "std::vector<std::string > const &""'");
05291 }
05292 arg1 = ptr;
05293 }
05294 result = (std::vector<std::string > *)new std::vector<std::string >((std::vector<std::string > const &)*arg1);
05295 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, SWIG_POINTER_NEW | 0 );
05296 if (SWIG_IsNewObj(res1)) delete arg1;
05297 return resultobj;
05298 fail:
05299 if (SWIG_IsNewObj(res1)) delete arg1;
05300 return NULL;
05301 }
05302
05303
05304 SWIGINTERN PyObject *_wrap_V_string_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
05305 PyObject *resultobj = 0;
05306 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05307 bool result;
05308 void *argp1 = 0 ;
05309 int res1 = 0 ;
05310 PyObject *swig_obj[1] ;
05311
05312 if (!args) SWIG_fail;
05313 swig_obj[0] = args;
05314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05315 if (!SWIG_IsOK(res1)) {
05316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_empty" "', expected argument " "1"" of type '" "std::vector<std::string > const *""'");
05317 }
05318 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05319 result = (bool)((std::vector<std::string > const *)arg1)->empty();
05320 resultobj = SWIG_From_bool(static_cast< bool >(result));
05321 return resultobj;
05322 fail:
05323 return NULL;
05324 }
05325
05326
05327 SWIGINTERN PyObject *_wrap_V_string_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
05328 PyObject *resultobj = 0;
05329 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05330 std::vector<std::string >::size_type result;
05331 void *argp1 = 0 ;
05332 int res1 = 0 ;
05333 PyObject *swig_obj[1] ;
05334
05335 if (!args) SWIG_fail;
05336 swig_obj[0] = args;
05337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05338 if (!SWIG_IsOK(res1)) {
05339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_size" "', expected argument " "1"" of type '" "std::vector<std::string > const *""'");
05340 }
05341 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05342 result = ((std::vector<std::string > const *)arg1)->size();
05343 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
05344 return resultobj;
05345 fail:
05346 return NULL;
05347 }
05348
05349
05350 SWIGINTERN PyObject *_wrap_V_string_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
05351 PyObject *resultobj = 0;
05352 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05353 void *argp1 = 0 ;
05354 int res1 = 0 ;
05355 PyObject *swig_obj[1] ;
05356
05357 if (!args) SWIG_fail;
05358 swig_obj[0] = args;
05359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05360 if (!SWIG_IsOK(res1)) {
05361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_clear" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
05362 }
05363 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05364 (arg1)->clear();
05365 resultobj = SWIG_Py_Void();
05366 return resultobj;
05367 fail:
05368 return NULL;
05369 }
05370
05371
05372 SWIGINTERN PyObject *_wrap_V_string_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
05373 PyObject *resultobj = 0;
05374 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05375 std::vector<std::string > *arg2 = 0 ;
05376 void *argp1 = 0 ;
05377 int res1 = 0 ;
05378 void *argp2 = 0 ;
05379 int res2 = 0 ;
05380 PyObject * obj0 = 0 ;
05381 PyObject * obj1 = 0 ;
05382 char * kwnames[] = {
05383 (char *) "self",(char *) "v", NULL
05384 };
05385
05386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:V_string_swap",kwnames,&obj0,&obj1)) SWIG_fail;
05387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05388 if (!SWIG_IsOK(res1)) {
05389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_swap" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
05390 }
05391 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05392 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 );
05393 if (!SWIG_IsOK(res2)) {
05394 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "V_string_swap" "', expected argument " "2"" of type '" "std::vector<std::string > &""'");
05395 }
05396 if (!argp2) {
05397 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "V_string_swap" "', expected argument " "2"" of type '" "std::vector<std::string > &""'");
05398 }
05399 arg2 = reinterpret_cast< std::vector<std::string > * >(argp2);
05400 (arg1)->swap(*arg2);
05401 resultobj = SWIG_Py_Void();
05402 return resultobj;
05403 fail:
05404 return NULL;
05405 }
05406
05407
05408 SWIGINTERN PyObject *_wrap_V_string_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
05409 PyObject *resultobj = 0;
05410 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05411 SwigValueWrapper<std::allocator<std::string > > result;
05412 void *argp1 = 0 ;
05413 int res1 = 0 ;
05414 PyObject *swig_obj[1] ;
05415
05416 if (!args) SWIG_fail;
05417 swig_obj[0] = args;
05418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05419 if (!SWIG_IsOK(res1)) {
05420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_get_allocator" "', expected argument " "1"" of type '" "std::vector<std::string > const *""'");
05421 }
05422 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05423 result = ((std::vector<std::string > const *)arg1)->get_allocator();
05424 resultobj = SWIG_NewPointerObj((new std::vector<std::string >::allocator_type(static_cast< const std::vector<std::string >::allocator_type& >(result))), SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t__allocator_type, SWIG_POINTER_OWN | 0 );
05425 return resultobj;
05426 fail:
05427 return NULL;
05428 }
05429
05430
05431 SWIGINTERN PyObject *_wrap_V_string_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
05432 PyObject *resultobj = 0;
05433 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05434 std::vector<std::string >::iterator result;
05435 void *argp1 = 0 ;
05436 int res1 = 0 ;
05437
05438 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
05439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05440 if (!SWIG_IsOK(res1)) {
05441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_begin" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
05442 }
05443 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05444 result = (arg1)->begin();
05445 resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector<std::string >::iterator & >(result)),
05446 swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
05447 return resultobj;
05448 fail:
05449 return NULL;
05450 }
05451
05452
05453 SWIGINTERN PyObject *_wrap_V_string_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
05454 PyObject *resultobj = 0;
05455 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05456 std::vector<std::string >::const_iterator result;
05457 void *argp1 = 0 ;
05458 int res1 = 0 ;
05459
05460 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
05461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05462 if (!SWIG_IsOK(res1)) {
05463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_begin" "', expected argument " "1"" of type '" "std::vector<std::string > const *""'");
05464 }
05465 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05466 result = ((std::vector<std::string > const *)arg1)->begin();
05467 resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector<std::string >::const_iterator & >(result)),
05468 swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
05469 return resultobj;
05470 fail:
05471 return NULL;
05472 }
05473
05474
05475 SWIGINTERN PyObject *_wrap_V_string_begin(PyObject *self, PyObject *args) {
05476 int argc;
05477 PyObject *argv[2];
05478
05479 if (!(argc = SWIG_Python_UnpackTuple(args,"V_string_begin",0,1,argv))) SWIG_fail;
05480 --argc;
05481 if (argc == 1) {
05482 return _wrap_V_string_begin__SWIG_0(self, argc, argv);
05483 }
05484 if (argc == 1) {
05485 return _wrap_V_string_begin__SWIG_1(self, argc, argv);
05486 }
05487
05488 fail:
05489 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'V_string_begin'");
05490 return NULL;
05491 }
05492
05493
05494 SWIGINTERN PyObject *_wrap_V_string_end__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
05495 PyObject *resultobj = 0;
05496 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05497 std::vector<std::string >::iterator result;
05498 void *argp1 = 0 ;
05499 int res1 = 0 ;
05500
05501 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
05502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05503 if (!SWIG_IsOK(res1)) {
05504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_end" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
05505 }
05506 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05507 result = (arg1)->end();
05508 resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector<std::string >::iterator & >(result)),
05509 swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
05510 return resultobj;
05511 fail:
05512 return NULL;
05513 }
05514
05515
05516 SWIGINTERN PyObject *_wrap_V_string_end__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
05517 PyObject *resultobj = 0;
05518 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05519 std::vector<std::string >::const_iterator result;
05520 void *argp1 = 0 ;
05521 int res1 = 0 ;
05522
05523 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
05524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05525 if (!SWIG_IsOK(res1)) {
05526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_end" "', expected argument " "1"" of type '" "std::vector<std::string > const *""'");
05527 }
05528 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05529 result = ((std::vector<std::string > const *)arg1)->end();
05530 resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector<std::string >::const_iterator & >(result)),
05531 swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
05532 return resultobj;
05533 fail:
05534 return NULL;
05535 }
05536
05537
05538 SWIGINTERN PyObject *_wrap_V_string_end(PyObject *self, PyObject *args) {
05539 int argc;
05540 PyObject *argv[2];
05541
05542 if (!(argc = SWIG_Python_UnpackTuple(args,"V_string_end",0,1,argv))) SWIG_fail;
05543 --argc;
05544 if (argc == 1) {
05545 return _wrap_V_string_end__SWIG_0(self, argc, argv);
05546 }
05547 if (argc == 1) {
05548 return _wrap_V_string_end__SWIG_1(self, argc, argv);
05549 }
05550
05551 fail:
05552 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'V_string_end'");
05553 return NULL;
05554 }
05555
05556
05557 SWIGINTERN PyObject *_wrap_V_string_rbegin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
05558 PyObject *resultobj = 0;
05559 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05560 std::vector<std::string >::reverse_iterator result;
05561 void *argp1 = 0 ;
05562 int res1 = 0 ;
05563
05564 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
05565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05566 if (!SWIG_IsOK(res1)) {
05567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_rbegin" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
05568 }
05569 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05570 result = (arg1)->rbegin();
05571 resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector<std::string >::reverse_iterator & >(result)),
05572 swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
05573 return resultobj;
05574 fail:
05575 return NULL;
05576 }
05577
05578
05579 SWIGINTERN PyObject *_wrap_V_string_rbegin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
05580 PyObject *resultobj = 0;
05581 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05582 std::vector<std::string >::const_reverse_iterator result;
05583 void *argp1 = 0 ;
05584 int res1 = 0 ;
05585
05586 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
05587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05588 if (!SWIG_IsOK(res1)) {
05589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_rbegin" "', expected argument " "1"" of type '" "std::vector<std::string > const *""'");
05590 }
05591 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05592 result = ((std::vector<std::string > const *)arg1)->rbegin();
05593 resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector<std::string >::const_reverse_iterator & >(result)),
05594 swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
05595 return resultobj;
05596 fail:
05597 return NULL;
05598 }
05599
05600
05601 SWIGINTERN PyObject *_wrap_V_string_rbegin(PyObject *self, PyObject *args) {
05602 int argc;
05603 PyObject *argv[2];
05604
05605 if (!(argc = SWIG_Python_UnpackTuple(args,"V_string_rbegin",0,1,argv))) SWIG_fail;
05606 --argc;
05607 if (argc == 1) {
05608 return _wrap_V_string_rbegin__SWIG_0(self, argc, argv);
05609 }
05610 if (argc == 1) {
05611 return _wrap_V_string_rbegin__SWIG_1(self, argc, argv);
05612 }
05613
05614 fail:
05615 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'V_string_rbegin'");
05616 return NULL;
05617 }
05618
05619
05620 SWIGINTERN PyObject *_wrap_V_string_rend__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
05621 PyObject *resultobj = 0;
05622 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05623 std::vector<std::string >::reverse_iterator result;
05624 void *argp1 = 0 ;
05625 int res1 = 0 ;
05626
05627 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
05628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05629 if (!SWIG_IsOK(res1)) {
05630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_rend" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
05631 }
05632 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05633 result = (arg1)->rend();
05634 resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector<std::string >::reverse_iterator & >(result)),
05635 swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
05636 return resultobj;
05637 fail:
05638 return NULL;
05639 }
05640
05641
05642 SWIGINTERN PyObject *_wrap_V_string_rend__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
05643 PyObject *resultobj = 0;
05644 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05645 std::vector<std::string >::const_reverse_iterator result;
05646 void *argp1 = 0 ;
05647 int res1 = 0 ;
05648
05649 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
05650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05651 if (!SWIG_IsOK(res1)) {
05652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_rend" "', expected argument " "1"" of type '" "std::vector<std::string > const *""'");
05653 }
05654 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05655 result = ((std::vector<std::string > const *)arg1)->rend();
05656 resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector<std::string >::const_reverse_iterator & >(result)),
05657 swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
05658 return resultobj;
05659 fail:
05660 return NULL;
05661 }
05662
05663
05664 SWIGINTERN PyObject *_wrap_V_string_rend(PyObject *self, PyObject *args) {
05665 int argc;
05666 PyObject *argv[2];
05667
05668 if (!(argc = SWIG_Python_UnpackTuple(args,"V_string_rend",0,1,argv))) SWIG_fail;
05669 --argc;
05670 if (argc == 1) {
05671 return _wrap_V_string_rend__SWIG_0(self, argc, argv);
05672 }
05673 if (argc == 1) {
05674 return _wrap_V_string_rend__SWIG_1(self, argc, argv);
05675 }
05676
05677 fail:
05678 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'V_string_rend'");
05679 return NULL;
05680 }
05681
05682
05683 SWIGINTERN PyObject *_wrap_new_V_string__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
05684 PyObject *resultobj = 0;
05685 std::vector<std::string >::size_type arg1 ;
05686 std::vector<std::string > *result = 0 ;
05687 size_t val1 ;
05688 int ecode1 = 0 ;
05689
05690 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
05691 ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
05692 if (!SWIG_IsOK(ecode1)) {
05693 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_V_string" "', expected argument " "1"" of type '" "std::vector<std::string >::size_type""'");
05694 }
05695 arg1 = static_cast< std::vector<std::string >::size_type >(val1);
05696 result = (std::vector<std::string > *)new std::vector<std::string >(arg1);
05697 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, SWIG_POINTER_NEW | 0 );
05698 return resultobj;
05699 fail:
05700 return NULL;
05701 }
05702
05703
05704 SWIGINTERN PyObject *_wrap_V_string_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
05705 PyObject *resultobj = 0;
05706 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05707 void *argp1 = 0 ;
05708 int res1 = 0 ;
05709 PyObject *swig_obj[1] ;
05710
05711 if (!args) SWIG_fail;
05712 swig_obj[0] = args;
05713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05714 if (!SWIG_IsOK(res1)) {
05715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_pop_back" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
05716 }
05717 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05718 (arg1)->pop_back();
05719 resultobj = SWIG_Py_Void();
05720 return resultobj;
05721 fail:
05722 return NULL;
05723 }
05724
05725
05726 SWIGINTERN PyObject *_wrap_V_string_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
05727 PyObject *resultobj = 0;
05728 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05729 std::vector<std::string >::size_type arg2 ;
05730 void *argp1 = 0 ;
05731 int res1 = 0 ;
05732 size_t val2 ;
05733 int ecode2 = 0 ;
05734
05735 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
05736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05737 if (!SWIG_IsOK(res1)) {
05738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_resize" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
05739 }
05740 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05741 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
05742 if (!SWIG_IsOK(ecode2)) {
05743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "V_string_resize" "', expected argument " "2"" of type '" "std::vector<std::string >::size_type""'");
05744 }
05745 arg2 = static_cast< std::vector<std::string >::size_type >(val2);
05746 (arg1)->resize(arg2);
05747 resultobj = SWIG_Py_Void();
05748 return resultobj;
05749 fail:
05750 return NULL;
05751 }
05752
05753
05754 SWIGINTERN PyObject *_wrap_V_string_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
05755 PyObject *resultobj = 0;
05756 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05757 std::vector<std::string >::iterator arg2 ;
05758 std::vector<std::string >::iterator result;
05759 void *argp1 = 0 ;
05760 int res1 = 0 ;
05761 swig::PySwigIterator *iter2 = 0 ;
05762 int res2 ;
05763
05764 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
05765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05766 if (!SWIG_IsOK(res1)) {
05767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_erase" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
05768 }
05769 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05770 res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
05771 if (!SWIG_IsOK(res2) || !iter2) {
05772 SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "V_string_erase" "', expected argument " "2"" of type '" "std::vector<std::string >::iterator""'");
05773 } else {
05774 swig::PySwigIterator_T<std::vector<std::string >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector<std::string >::iterator > *>(iter2);
05775 if (iter_t) {
05776 arg2 = iter_t->get_current();
05777 } else {
05778 SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "V_string_erase" "', expected argument " "2"" of type '" "std::vector<std::string >::iterator""'");
05779 }
05780 }
05781 result = (arg1)->erase(arg2);
05782 resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector<std::string >::iterator & >(result)),
05783 swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
05784 return resultobj;
05785 fail:
05786 return NULL;
05787 }
05788
05789
05790 SWIGINTERN PyObject *_wrap_V_string_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
05791 PyObject *resultobj = 0;
05792 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05793 std::vector<std::string >::iterator arg2 ;
05794 std::vector<std::string >::iterator arg3 ;
05795 std::vector<std::string >::iterator result;
05796 void *argp1 = 0 ;
05797 int res1 = 0 ;
05798 swig::PySwigIterator *iter2 = 0 ;
05799 int res2 ;
05800 swig::PySwigIterator *iter3 = 0 ;
05801 int res3 ;
05802
05803 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
05804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05805 if (!SWIG_IsOK(res1)) {
05806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_erase" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
05807 }
05808 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05809 res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
05810 if (!SWIG_IsOK(res2) || !iter2) {
05811 SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "V_string_erase" "', expected argument " "2"" of type '" "std::vector<std::string >::iterator""'");
05812 } else {
05813 swig::PySwigIterator_T<std::vector<std::string >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector<std::string >::iterator > *>(iter2);
05814 if (iter_t) {
05815 arg2 = iter_t->get_current();
05816 } else {
05817 SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "V_string_erase" "', expected argument " "2"" of type '" "std::vector<std::string >::iterator""'");
05818 }
05819 }
05820 res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::PySwigIterator::descriptor(), 0);
05821 if (!SWIG_IsOK(res3) || !iter3) {
05822 SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "V_string_erase" "', expected argument " "3"" of type '" "std::vector<std::string >::iterator""'");
05823 } else {
05824 swig::PySwigIterator_T<std::vector<std::string >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector<std::string >::iterator > *>(iter3);
05825 if (iter_t) {
05826 arg3 = iter_t->get_current();
05827 } else {
05828 SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "V_string_erase" "', expected argument " "3"" of type '" "std::vector<std::string >::iterator""'");
05829 }
05830 }
05831 result = (arg1)->erase(arg2,arg3);
05832 resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector<std::string >::iterator & >(result)),
05833 swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
05834 return resultobj;
05835 fail:
05836 return NULL;
05837 }
05838
05839
05840 SWIGINTERN PyObject *_wrap_V_string_erase(PyObject *self, PyObject *args) {
05841 int argc;
05842 PyObject *argv[4];
05843
05844 if (!(argc = SWIG_Python_UnpackTuple(args,"V_string_erase",0,3,argv))) SWIG_fail;
05845 --argc;
05846 if (argc == 2) {
05847 return _wrap_V_string_erase__SWIG_0(self, argc, argv);
05848 }
05849 if (argc == 3) {
05850 return _wrap_V_string_erase__SWIG_1(self, argc, argv);
05851 }
05852
05853 fail:
05854 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'V_string_erase'");
05855 return NULL;
05856 }
05857
05858
05859 SWIGINTERN PyObject *_wrap_new_V_string__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
05860 PyObject *resultobj = 0;
05861 std::vector<std::string >::size_type arg1 ;
05862 std::vector<std::string >::value_type *arg2 = 0 ;
05863 std::vector<std::string > *result = 0 ;
05864 size_t val1 ;
05865 int ecode1 = 0 ;
05866 int res2 = SWIG_OLDOBJ ;
05867
05868 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
05869 ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
05870 if (!SWIG_IsOK(ecode1)) {
05871 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_V_string" "', expected argument " "1"" of type '" "std::vector<std::string >::size_type""'");
05872 }
05873 arg1 = static_cast< std::vector<std::string >::size_type >(val1);
05874 {
05875 std::string *ptr = (std::string *)0;
05876 res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
05877 if (!SWIG_IsOK(res2)) {
05878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_V_string" "', expected argument " "2"" of type '" "std::vector<std::string >::value_type const &""'");
05879 }
05880 if (!ptr) {
05881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_V_string" "', expected argument " "2"" of type '" "std::vector<std::string >::value_type const &""'");
05882 }
05883 arg2 = ptr;
05884 }
05885 result = (std::vector<std::string > *)new std::vector<std::string >(arg1,(std::vector<std::string >::value_type const &)*arg2);
05886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, SWIG_POINTER_NEW | 0 );
05887 if (SWIG_IsNewObj(res2)) delete arg2;
05888 return resultobj;
05889 fail:
05890 if (SWIG_IsNewObj(res2)) delete arg2;
05891 return NULL;
05892 }
05893
05894
05895 SWIGINTERN PyObject *_wrap_new_V_string(PyObject *self, PyObject *args) {
05896 int argc;
05897 PyObject *argv[3];
05898
05899 if (!(argc = SWIG_Python_UnpackTuple(args,"new_V_string",0,2,argv))) SWIG_fail;
05900 --argc;
05901 if (argc == 0) {
05902 return _wrap_new_V_string__SWIG_0(self, argc, argv);
05903 }
05904 if (argc == 1) {
05905 int _v = 0;
05906 {
05907 {
05908 int res = SWIG_AsVal_size_t(argv[0], NULL);
05909 _v = SWIG_CheckState(res);
05910 }
05911 }
05912 if (!_v) goto check_2;
05913 return _wrap_new_V_string__SWIG_2(self, argc, argv);
05914 }
05915 check_2:
05916
05917 if (argc == 1) {
05918 return _wrap_new_V_string__SWIG_1(self, argc, argv);
05919 }
05920 if (argc == 2) {
05921 return _wrap_new_V_string__SWIG_3(self, argc, argv);
05922 }
05923
05924 fail:
05925 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_V_string'");
05926 return NULL;
05927 }
05928
05929
05930 SWIGINTERN PyObject *_wrap_V_string_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
05931 PyObject *resultobj = 0;
05932 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05933 std::vector<std::string >::value_type *arg2 = 0 ;
05934 void *argp1 = 0 ;
05935 int res1 = 0 ;
05936 int res2 = SWIG_OLDOBJ ;
05937 PyObject * obj0 = 0 ;
05938 PyObject * obj1 = 0 ;
05939 char * kwnames[] = {
05940 (char *) "self",(char *) "x", NULL
05941 };
05942
05943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:V_string_push_back",kwnames,&obj0,&obj1)) SWIG_fail;
05944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05945 if (!SWIG_IsOK(res1)) {
05946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_push_back" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
05947 }
05948 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05949 {
05950 std::string *ptr = (std::string *)0;
05951 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
05952 if (!SWIG_IsOK(res2)) {
05953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "V_string_push_back" "', expected argument " "2"" of type '" "std::vector<std::string >::value_type const &""'");
05954 }
05955 if (!ptr) {
05956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "V_string_push_back" "', expected argument " "2"" of type '" "std::vector<std::string >::value_type const &""'");
05957 }
05958 arg2 = ptr;
05959 }
05960 (arg1)->push_back((std::vector<std::string >::value_type const &)*arg2);
05961 resultobj = SWIG_Py_Void();
05962 if (SWIG_IsNewObj(res2)) delete arg2;
05963 return resultobj;
05964 fail:
05965 if (SWIG_IsNewObj(res2)) delete arg2;
05966 return NULL;
05967 }
05968
05969
05970 SWIGINTERN PyObject *_wrap_V_string_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
05971 PyObject *resultobj = 0;
05972 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05973 std::vector<std::string >::value_type *result = 0 ;
05974 void *argp1 = 0 ;
05975 int res1 = 0 ;
05976 PyObject *swig_obj[1] ;
05977
05978 if (!args) SWIG_fail;
05979 swig_obj[0] = args;
05980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
05981 if (!SWIG_IsOK(res1)) {
05982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_front" "', expected argument " "1"" of type '" "std::vector<std::string > const *""'");
05983 }
05984 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
05985 {
05986 std::vector<std::string >::value_type const &_result_ref = ((std::vector<std::string > const *)arg1)->front();
05987 result = (std::vector<std::string >::value_type *) &_result_ref;
05988 }
05989 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
05990 return resultobj;
05991 fail:
05992 return NULL;
05993 }
05994
05995
05996 SWIGINTERN PyObject *_wrap_V_string_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
05997 PyObject *resultobj = 0;
05998 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
05999 std::vector<std::string >::value_type *result = 0 ;
06000 void *argp1 = 0 ;
06001 int res1 = 0 ;
06002 PyObject *swig_obj[1] ;
06003
06004 if (!args) SWIG_fail;
06005 swig_obj[0] = args;
06006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
06007 if (!SWIG_IsOK(res1)) {
06008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_back" "', expected argument " "1"" of type '" "std::vector<std::string > const *""'");
06009 }
06010 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
06011 {
06012 std::vector<std::string >::value_type const &_result_ref = ((std::vector<std::string > const *)arg1)->back();
06013 result = (std::vector<std::string >::value_type *) &_result_ref;
06014 }
06015 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
06016 return resultobj;
06017 fail:
06018 return NULL;
06019 }
06020
06021
06022 SWIGINTERN PyObject *_wrap_V_string_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
06023 PyObject *resultobj = 0;
06024 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
06025 std::vector<std::string >::size_type arg2 ;
06026 std::vector<std::string >::value_type *arg3 = 0 ;
06027 void *argp1 = 0 ;
06028 int res1 = 0 ;
06029 size_t val2 ;
06030 int ecode2 = 0 ;
06031 int res3 = SWIG_OLDOBJ ;
06032 PyObject * obj0 = 0 ;
06033 PyObject * obj1 = 0 ;
06034 PyObject * obj2 = 0 ;
06035 char * kwnames[] = {
06036 (char *) "self",(char *) "n",(char *) "x", NULL
06037 };
06038
06039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:V_string_assign",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
06040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
06041 if (!SWIG_IsOK(res1)) {
06042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_assign" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
06043 }
06044 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
06045 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
06046 if (!SWIG_IsOK(ecode2)) {
06047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "V_string_assign" "', expected argument " "2"" of type '" "std::vector<std::string >::size_type""'");
06048 }
06049 arg2 = static_cast< std::vector<std::string >::size_type >(val2);
06050 {
06051 std::string *ptr = (std::string *)0;
06052 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
06053 if (!SWIG_IsOK(res3)) {
06054 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "V_string_assign" "', expected argument " "3"" of type '" "std::vector<std::string >::value_type const &""'");
06055 }
06056 if (!ptr) {
06057 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "V_string_assign" "', expected argument " "3"" of type '" "std::vector<std::string >::value_type const &""'");
06058 }
06059 arg3 = ptr;
06060 }
06061 (arg1)->assign(arg2,(std::vector<std::string >::value_type const &)*arg3);
06062 resultobj = SWIG_Py_Void();
06063 if (SWIG_IsNewObj(res3)) delete arg3;
06064 return resultobj;
06065 fail:
06066 if (SWIG_IsNewObj(res3)) delete arg3;
06067 return NULL;
06068 }
06069
06070
06071 SWIGINTERN PyObject *_wrap_V_string_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
06072 PyObject *resultobj = 0;
06073 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
06074 std::vector<std::string >::size_type arg2 ;
06075 std::vector<std::string >::value_type *arg3 = 0 ;
06076 void *argp1 = 0 ;
06077 int res1 = 0 ;
06078 size_t val2 ;
06079 int ecode2 = 0 ;
06080 int res3 = SWIG_OLDOBJ ;
06081
06082 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
06083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
06084 if (!SWIG_IsOK(res1)) {
06085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_resize" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
06086 }
06087 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
06088 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
06089 if (!SWIG_IsOK(ecode2)) {
06090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "V_string_resize" "', expected argument " "2"" of type '" "std::vector<std::string >::size_type""'");
06091 }
06092 arg2 = static_cast< std::vector<std::string >::size_type >(val2);
06093 {
06094 std::string *ptr = (std::string *)0;
06095 res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
06096 if (!SWIG_IsOK(res3)) {
06097 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "V_string_resize" "', expected argument " "3"" of type '" "std::vector<std::string >::value_type const &""'");
06098 }
06099 if (!ptr) {
06100 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "V_string_resize" "', expected argument " "3"" of type '" "std::vector<std::string >::value_type const &""'");
06101 }
06102 arg3 = ptr;
06103 }
06104 (arg1)->resize(arg2,(std::vector<std::string >::value_type const &)*arg3);
06105 resultobj = SWIG_Py_Void();
06106 if (SWIG_IsNewObj(res3)) delete arg3;
06107 return resultobj;
06108 fail:
06109 if (SWIG_IsNewObj(res3)) delete arg3;
06110 return NULL;
06111 }
06112
06113
06114 SWIGINTERN PyObject *_wrap_V_string_resize(PyObject *self, PyObject *args) {
06115 int argc;
06116 PyObject *argv[4];
06117
06118 if (!(argc = SWIG_Python_UnpackTuple(args,"V_string_resize",0,3,argv))) SWIG_fail;
06119 --argc;
06120 if (argc == 2) {
06121 return _wrap_V_string_resize__SWIG_0(self, argc, argv);
06122 }
06123 if (argc == 3) {
06124 return _wrap_V_string_resize__SWIG_1(self, argc, argv);
06125 }
06126
06127 fail:
06128 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'V_string_resize'");
06129 return NULL;
06130 }
06131
06132
06133 SWIGINTERN PyObject *_wrap_V_string_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
06134 PyObject *resultobj = 0;
06135 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
06136 std::vector<std::string >::iterator arg2 ;
06137 std::vector<std::string >::value_type *arg3 = 0 ;
06138 std::vector<std::string >::iterator result;
06139 void *argp1 = 0 ;
06140 int res1 = 0 ;
06141 swig::PySwigIterator *iter2 = 0 ;
06142 int res2 ;
06143 int res3 = SWIG_OLDOBJ ;
06144
06145 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
06146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
06147 if (!SWIG_IsOK(res1)) {
06148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_insert" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
06149 }
06150 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
06151 res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
06152 if (!SWIG_IsOK(res2) || !iter2) {
06153 SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "V_string_insert" "', expected argument " "2"" of type '" "std::vector<std::string >::iterator""'");
06154 } else {
06155 swig::PySwigIterator_T<std::vector<std::string >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector<std::string >::iterator > *>(iter2);
06156 if (iter_t) {
06157 arg2 = iter_t->get_current();
06158 } else {
06159 SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "V_string_insert" "', expected argument " "2"" of type '" "std::vector<std::string >::iterator""'");
06160 }
06161 }
06162 {
06163 std::string *ptr = (std::string *)0;
06164 res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
06165 if (!SWIG_IsOK(res3)) {
06166 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "V_string_insert" "', expected argument " "3"" of type '" "std::vector<std::string >::value_type const &""'");
06167 }
06168 if (!ptr) {
06169 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "V_string_insert" "', expected argument " "3"" of type '" "std::vector<std::string >::value_type const &""'");
06170 }
06171 arg3 = ptr;
06172 }
06173 result = (arg1)->insert(arg2,(std::vector<std::string >::value_type const &)*arg3);
06174 resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector<std::string >::iterator & >(result)),
06175 swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
06176 if (SWIG_IsNewObj(res3)) delete arg3;
06177 return resultobj;
06178 fail:
06179 if (SWIG_IsNewObj(res3)) delete arg3;
06180 return NULL;
06181 }
06182
06183
06184 SWIGINTERN PyObject *_wrap_V_string_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
06185 PyObject *resultobj = 0;
06186 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
06187 std::vector<std::string >::iterator arg2 ;
06188 std::vector<std::string >::size_type arg3 ;
06189 std::vector<std::string >::value_type *arg4 = 0 ;
06190 void *argp1 = 0 ;
06191 int res1 = 0 ;
06192 swig::PySwigIterator *iter2 = 0 ;
06193 int res2 ;
06194 size_t val3 ;
06195 int ecode3 = 0 ;
06196 int res4 = SWIG_OLDOBJ ;
06197
06198 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
06199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
06200 if (!SWIG_IsOK(res1)) {
06201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_insert" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
06202 }
06203 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
06204 res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
06205 if (!SWIG_IsOK(res2) || !iter2) {
06206 SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "V_string_insert" "', expected argument " "2"" of type '" "std::vector<std::string >::iterator""'");
06207 } else {
06208 swig::PySwigIterator_T<std::vector<std::string >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector<std::string >::iterator > *>(iter2);
06209 if (iter_t) {
06210 arg2 = iter_t->get_current();
06211 } else {
06212 SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "V_string_insert" "', expected argument " "2"" of type '" "std::vector<std::string >::iterator""'");
06213 }
06214 }
06215 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
06216 if (!SWIG_IsOK(ecode3)) {
06217 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "V_string_insert" "', expected argument " "3"" of type '" "std::vector<std::string >::size_type""'");
06218 }
06219 arg3 = static_cast< std::vector<std::string >::size_type >(val3);
06220 {
06221 std::string *ptr = (std::string *)0;
06222 res4 = SWIG_AsPtr_std_string(swig_obj[3], &ptr);
06223 if (!SWIG_IsOK(res4)) {
06224 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "V_string_insert" "', expected argument " "4"" of type '" "std::vector<std::string >::value_type const &""'");
06225 }
06226 if (!ptr) {
06227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "V_string_insert" "', expected argument " "4"" of type '" "std::vector<std::string >::value_type const &""'");
06228 }
06229 arg4 = ptr;
06230 }
06231 (arg1)->insert(arg2,arg3,(std::vector<std::string >::value_type const &)*arg4);
06232 resultobj = SWIG_Py_Void();
06233 if (SWIG_IsNewObj(res4)) delete arg4;
06234 return resultobj;
06235 fail:
06236 if (SWIG_IsNewObj(res4)) delete arg4;
06237 return NULL;
06238 }
06239
06240
06241 SWIGINTERN PyObject *_wrap_V_string_insert(PyObject *self, PyObject *args) {
06242 int argc;
06243 PyObject *argv[5];
06244
06245 if (!(argc = SWIG_Python_UnpackTuple(args,"V_string_insert",0,4,argv))) SWIG_fail;
06246 --argc;
06247 if (argc == 3) {
06248 return _wrap_V_string_insert__SWIG_0(self, argc, argv);
06249 }
06250 if (argc == 4) {
06251 return _wrap_V_string_insert__SWIG_1(self, argc, argv);
06252 }
06253
06254 fail:
06255 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'V_string_insert'");
06256 return NULL;
06257 }
06258
06259
06260 SWIGINTERN PyObject *_wrap_V_string_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
06261 PyObject *resultobj = 0;
06262 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
06263 std::vector<std::string >::size_type arg2 ;
06264 void *argp1 = 0 ;
06265 int res1 = 0 ;
06266 size_t val2 ;
06267 int ecode2 = 0 ;
06268 PyObject * obj0 = 0 ;
06269 PyObject * obj1 = 0 ;
06270 char * kwnames[] = {
06271 (char *) "self",(char *) "n", NULL
06272 };
06273
06274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:V_string_reserve",kwnames,&obj0,&obj1)) SWIG_fail;
06275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
06276 if (!SWIG_IsOK(res1)) {
06277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_reserve" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
06278 }
06279 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
06280 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
06281 if (!SWIG_IsOK(ecode2)) {
06282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "V_string_reserve" "', expected argument " "2"" of type '" "std::vector<std::string >::size_type""'");
06283 }
06284 arg2 = static_cast< std::vector<std::string >::size_type >(val2);
06285 (arg1)->reserve(arg2);
06286 resultobj = SWIG_Py_Void();
06287 return resultobj;
06288 fail:
06289 return NULL;
06290 }
06291
06292
06293 SWIGINTERN PyObject *_wrap_V_string_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
06294 PyObject *resultobj = 0;
06295 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
06296 std::vector<std::string >::size_type result;
06297 void *argp1 = 0 ;
06298 int res1 = 0 ;
06299 PyObject *swig_obj[1] ;
06300
06301 if (!args) SWIG_fail;
06302 swig_obj[0] = args;
06303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0 | 0 );
06304 if (!SWIG_IsOK(res1)) {
06305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "V_string_capacity" "', expected argument " "1"" of type '" "std::vector<std::string > const *""'");
06306 }
06307 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
06308 result = ((std::vector<std::string > const *)arg1)->capacity();
06309 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
06310 return resultobj;
06311 fail:
06312 return NULL;
06313 }
06314
06315
06316 SWIGINTERN PyObject *_wrap_delete_V_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
06317 PyObject *resultobj = 0;
06318 std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
06319 void *argp1 = 0 ;
06320 int res1 = 0 ;
06321 PyObject *swig_obj[1] ;
06322
06323 if (!args) SWIG_fail;
06324 swig_obj[0] = args;
06325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, SWIG_POINTER_DISOWN | 0 );
06326 if (!SWIG_IsOK(res1)) {
06327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_V_string" "', expected argument " "1"" of type '" "std::vector<std::string > *""'");
06328 }
06329 arg1 = reinterpret_cast< std::vector<std::string > * >(argp1);
06330 delete arg1;
06331
06332 resultobj = SWIG_Py_Void();
06333 return resultobj;
06334 fail:
06335 return NULL;
06336 }
06337
06338
06339 SWIGINTERN PyObject *V_string_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
06340 PyObject *obj;
06341 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
06342 SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorTstd__string_std__allocatorTstd__string_t_t, SWIG_NewClientData(obj));
06343 return SWIG_Py_Void();
06344 }
06345
06346 SWIGINTERN PyObject *V_string_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
06347 return SWIG_Python_InitShadowInstance(args);
06348 }
06349
06350 SWIGINTERN PyObject *_wrap_initializeOgre(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
06351 PyObject *resultobj = 0;
06352 bool arg1 = (bool) false ;
06353 bool val1 ;
06354 int ecode1 = 0 ;
06355 PyObject * obj0 = 0 ;
06356 char * kwnames[] = {
06357 (char *) "enable_ogre_log", NULL
06358 };
06359
06360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:initializeOgre",kwnames,&obj0)) SWIG_fail;
06361 if (obj0) {
06362 ecode1 = SWIG_AsVal_bool(obj0, &val1);
06363 if (!SWIG_IsOK(ecode1)) {
06364 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "initializeOgre" "', expected argument " "1"" of type '" "bool""'");
06365 }
06366 arg1 = static_cast< bool >(val1);
06367 }
06368 ogre_tools::initializeOgre(arg1);
06369 resultobj = SWIG_Py_Void();
06370 return resultobj;
06371 fail:
06372 return NULL;
06373 }
06374
06375
06376 SWIGINTERN PyObject *_wrap_cleanupOgre(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
06377 PyObject *resultobj = 0;
06378
06379 if (!SWIG_Python_UnpackTuple(args,"cleanupOgre",0,0,0)) SWIG_fail;
06380 ogre_tools::cleanupOgre();
06381 resultobj = SWIG_Py_Void();
06382 return resultobj;
06383 fail:
06384 return NULL;
06385 }
06386
06387
06388 SWIGINTERN PyObject *_wrap_initializeResources(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
06389 PyObject *resultobj = 0;
06390 ogre_tools::V_string *arg1 = 0 ;
06391 int res1 = SWIG_OLDOBJ ;
06392 PyObject * obj0 = 0 ;
06393 char * kwnames[] = {
06394 (char *) "resource_paths", NULL
06395 };
06396
06397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:initializeResources",kwnames,&obj0)) SWIG_fail;
06398 {
06399 std::vector<std::string,std::allocator<std::string > > *ptr = (std::vector<std::string,std::allocator<std::string > > *)0;
06400 res1 = swig::asptr(obj0, &ptr);
06401 if (!SWIG_IsOK(res1)) {
06402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "initializeResources" "', expected argument " "1"" of type '" "ogre_tools::V_string const &""'");
06403 }
06404 if (!ptr) {
06405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "initializeResources" "', expected argument " "1"" of type '" "ogre_tools::V_string const &""'");
06406 }
06407 arg1 = ptr;
06408 }
06409 ogre_tools::initializeResources((std::vector<std::string,std::allocator<std::string > > const &)*arg1);
06410 resultobj = SWIG_Py_Void();
06411 if (SWIG_IsNewObj(res1)) delete arg1;
06412 return resultobj;
06413 fail:
06414 if (SWIG_IsNewObj(res1)) delete arg1;
06415 return NULL;
06416 }
06417
06418
06419 static PyMethodDef SwigMethods[] = {
06420 { (char *)"delete_PySwigIterator", (PyCFunction)_wrap_delete_PySwigIterator, METH_O, NULL},
06421 { (char *)"PySwigIterator_value", (PyCFunction)_wrap_PySwigIterator_value, METH_O, NULL},
06422 { (char *)"PySwigIterator_incr", (PyCFunction) _wrap_PySwigIterator_incr, METH_VARARGS | METH_KEYWORDS, NULL},
06423 { (char *)"PySwigIterator_decr", (PyCFunction) _wrap_PySwigIterator_decr, METH_VARARGS | METH_KEYWORDS, NULL},
06424 { (char *)"PySwigIterator_distance", (PyCFunction) _wrap_PySwigIterator_distance, METH_VARARGS | METH_KEYWORDS, NULL},
06425 { (char *)"PySwigIterator_equal", (PyCFunction) _wrap_PySwigIterator_equal, METH_VARARGS | METH_KEYWORDS, NULL},
06426 { (char *)"PySwigIterator_copy", (PyCFunction)_wrap_PySwigIterator_copy, METH_O, NULL},
06427 { (char *)"PySwigIterator_next", (PyCFunction)_wrap_PySwigIterator_next, METH_O, NULL},
06428 { (char *)"PySwigIterator_previous", (PyCFunction)_wrap_PySwigIterator_previous, METH_O, NULL},
06429 { (char *)"PySwigIterator_advance", (PyCFunction) _wrap_PySwigIterator_advance, METH_VARARGS | METH_KEYWORDS, NULL},
06430 { (char *)"PySwigIterator___eq__", (PyCFunction) _wrap_PySwigIterator___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
06431 { (char *)"PySwigIterator___ne__", (PyCFunction) _wrap_PySwigIterator___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
06432 { (char *)"PySwigIterator___iadd__", (PyCFunction) _wrap_PySwigIterator___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
06433 { (char *)"PySwigIterator___isub__", (PyCFunction) _wrap_PySwigIterator___isub__, METH_VARARGS | METH_KEYWORDS, NULL},
06434 { (char *)"PySwigIterator___add__", (PyCFunction) _wrap_PySwigIterator___add__, METH_VARARGS | METH_KEYWORDS, NULL},
06435 { (char *)"PySwigIterator___sub__", _wrap_PySwigIterator___sub__, METH_VARARGS, NULL},
06436 { (char *)"PySwigIterator_swigregister", PySwigIterator_swigregister, METH_VARARGS, NULL},
06437 { (char *)"V_string_iterator", (PyCFunction)_wrap_V_string_iterator, METH_O, NULL},
06438 { (char *)"V_string___nonzero__", (PyCFunction)_wrap_V_string___nonzero__, METH_O, NULL},
06439 { (char *)"V_string___len__", (PyCFunction)_wrap_V_string___len__, METH_O, NULL},
06440 { (char *)"V_string_pop", (PyCFunction)_wrap_V_string_pop, METH_O, NULL},
06441 { (char *)"V_string___getslice__", (PyCFunction) _wrap_V_string___getslice__, METH_VARARGS | METH_KEYWORDS, NULL},
06442 { (char *)"V_string___setslice__", (PyCFunction) _wrap_V_string___setslice__, METH_VARARGS | METH_KEYWORDS, NULL},
06443 { (char *)"V_string___delslice__", (PyCFunction) _wrap_V_string___delslice__, METH_VARARGS | METH_KEYWORDS, NULL},
06444 { (char *)"V_string___delitem__", (PyCFunction) _wrap_V_string___delitem__, METH_VARARGS | METH_KEYWORDS, NULL},
06445 { (char *)"V_string___getitem__", (PyCFunction) _wrap_V_string___getitem__, METH_VARARGS | METH_KEYWORDS, NULL},
06446 { (char *)"V_string___setitem__", (PyCFunction) _wrap_V_string___setitem__, METH_VARARGS | METH_KEYWORDS, NULL},
06447 { (char *)"V_string_append", (PyCFunction) _wrap_V_string_append, METH_VARARGS | METH_KEYWORDS, NULL},
06448 { (char *)"V_string_empty", (PyCFunction)_wrap_V_string_empty, METH_O, NULL},
06449 { (char *)"V_string_size", (PyCFunction)_wrap_V_string_size, METH_O, NULL},
06450 { (char *)"V_string_clear", (PyCFunction)_wrap_V_string_clear, METH_O, NULL},
06451 { (char *)"V_string_swap", (PyCFunction) _wrap_V_string_swap, METH_VARARGS | METH_KEYWORDS, NULL},
06452 { (char *)"V_string_get_allocator", (PyCFunction)_wrap_V_string_get_allocator, METH_O, NULL},
06453 { (char *)"V_string_begin", _wrap_V_string_begin, METH_VARARGS, NULL},
06454 { (char *)"V_string_end", _wrap_V_string_end, METH_VARARGS, NULL},
06455 { (char *)"V_string_rbegin", _wrap_V_string_rbegin, METH_VARARGS, NULL},
06456 { (char *)"V_string_rend", _wrap_V_string_rend, METH_VARARGS, NULL},
06457 { (char *)"V_string_pop_back", (PyCFunction)_wrap_V_string_pop_back, METH_O, NULL},
06458 { (char *)"V_string_erase", _wrap_V_string_erase, METH_VARARGS, NULL},
06459 { (char *)"new_V_string", _wrap_new_V_string, METH_VARARGS, NULL},
06460 { (char *)"V_string_push_back", (PyCFunction) _wrap_V_string_push_back, METH_VARARGS | METH_KEYWORDS, NULL},
06461 { (char *)"V_string_front", (PyCFunction)_wrap_V_string_front, METH_O, NULL},
06462 { (char *)"V_string_back", (PyCFunction)_wrap_V_string_back, METH_O, NULL},
06463 { (char *)"V_string_assign", (PyCFunction) _wrap_V_string_assign, METH_VARARGS | METH_KEYWORDS, NULL},
06464 { (char *)"V_string_resize", _wrap_V_string_resize, METH_VARARGS, NULL},
06465 { (char *)"V_string_insert", _wrap_V_string_insert, METH_VARARGS, NULL},
06466 { (char *)"V_string_reserve", (PyCFunction) _wrap_V_string_reserve, METH_VARARGS | METH_KEYWORDS, NULL},
06467 { (char *)"V_string_capacity", (PyCFunction)_wrap_V_string_capacity, METH_O, NULL},
06468 { (char *)"delete_V_string", (PyCFunction)_wrap_delete_V_string, METH_O, NULL},
06469 { (char *)"V_string_swigregister", V_string_swigregister, METH_VARARGS, NULL},
06470 { (char *)"V_string_swiginit", V_string_swiginit, METH_VARARGS, NULL},
06471 { (char *)"initializeOgre", (PyCFunction) _wrap_initializeOgre, METH_VARARGS | METH_KEYWORDS, NULL},
06472 { (char *)"cleanupOgre", (PyCFunction)_wrap_cleanupOgre, METH_NOARGS, NULL},
06473 { (char *)"initializeResources", (PyCFunction) _wrap_initializeResources, METH_VARARGS | METH_KEYWORDS, NULL},
06474 { NULL, NULL, 0, NULL }
06475 };
06476
06477
06478
06479
06480 static swig_type_info _swigt__p_allocator_type = {"_p_allocator_type", "allocator_type *", 0, 0, (void*)0, 0};
06481 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
06482 static swig_type_info _swigt__p_difference_type = {"_p_difference_type", "difference_type *", 0, 0, (void*)0, 0};
06483 static swig_type_info _swigt__p_p_PyObject = {"_p_p_PyObject", "PyObject **", 0, 0, (void*)0, 0};
06484 static swig_type_info _swigt__p_size_type = {"_p_size_type", "size_type *", 0, 0, (void*)0, 0};
06485 static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0};
06486 static swig_type_info _swigt__p_std__vectorTstd__string_std__allocatorTstd__string_t_t = {"_p_std__vectorTstd__string_std__allocatorTstd__string_t_t", "std::vector<std::string,std::allocator<std::string > > *|ogre_tools::V_string *", 0, 0, (void*)0, 0};
06487 static swig_type_info _swigt__p_std__vectorTstd__string_std__allocatorTstd__string_t_t__allocator_type = {"_p_std__vectorTstd__string_std__allocatorTstd__string_t_t__allocator_type", "std::allocator<std::string > *|std::vector<std::string >::allocator_type *", 0, 0, (void*)0, 0};
06488 static swig_type_info _swigt__p_swig__PySwigIterator = {"_p_swig__PySwigIterator", "swig::PySwigIterator *", 0, 0, (void*)0, 0};
06489 static swig_type_info _swigt__p_value_type = {"_p_value_type", "value_type *", 0, 0, (void*)0, 0};
06490
06491 static swig_type_info *swig_type_initial[] = {
06492 &_swigt__p_allocator_type,
06493 &_swigt__p_char,
06494 &_swigt__p_difference_type,
06495 &_swigt__p_p_PyObject,
06496 &_swigt__p_size_type,
06497 &_swigt__p_std__invalid_argument,
06498 &_swigt__p_std__vectorTstd__string_std__allocatorTstd__string_t_t,
06499 &_swigt__p_std__vectorTstd__string_std__allocatorTstd__string_t_t__allocator_type,
06500 &_swigt__p_swig__PySwigIterator,
06501 &_swigt__p_value_type,
06502 };
06503
06504 static swig_cast_info _swigc__p_allocator_type[] = { {&_swigt__p_allocator_type, 0, 0, 0},{0, 0, 0, 0}};
06505 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
06506 static swig_cast_info _swigc__p_difference_type[] = { {&_swigt__p_difference_type, 0, 0, 0},{0, 0, 0, 0}};
06507 static swig_cast_info _swigc__p_p_PyObject[] = { {&_swigt__p_p_PyObject, 0, 0, 0},{0, 0, 0, 0}};
06508 static swig_cast_info _swigc__p_size_type[] = { {&_swigt__p_size_type, 0, 0, 0},{0, 0, 0, 0}};
06509 static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}};
06510 static swig_cast_info _swigc__p_std__vectorTstd__string_std__allocatorTstd__string_t_t[] = { {&_swigt__p_std__vectorTstd__string_std__allocatorTstd__string_t_t, 0, 0, 0},{0, 0, 0, 0}};
06511 static swig_cast_info _swigc__p_std__vectorTstd__string_std__allocatorTstd__string_t_t__allocator_type[] = { {&_swigt__p_std__vectorTstd__string_std__allocatorTstd__string_t_t__allocator_type, 0, 0, 0},{0, 0, 0, 0}};
06512 static swig_cast_info _swigc__p_swig__PySwigIterator[] = { {&_swigt__p_swig__PySwigIterator, 0, 0, 0},{0, 0, 0, 0}};
06513 static swig_cast_info _swigc__p_value_type[] = { {&_swigt__p_value_type, 0, 0, 0},{0, 0, 0, 0}};
06514
06515 static swig_cast_info *swig_cast_initial[] = {
06516 _swigc__p_allocator_type,
06517 _swigc__p_char,
06518 _swigc__p_difference_type,
06519 _swigc__p_p_PyObject,
06520 _swigc__p_size_type,
06521 _swigc__p_std__invalid_argument,
06522 _swigc__p_std__vectorTstd__string_std__allocatorTstd__string_t_t,
06523 _swigc__p_std__vectorTstd__string_std__allocatorTstd__string_t_t__allocator_type,
06524 _swigc__p_swig__PySwigIterator,
06525 _swigc__p_value_type,
06526 };
06527
06528
06529
06530
06531 static swig_const_info swig_const_table[] = {
06532 {0, 0, 0, 0.0, 0, 0}};
06533
06534 #ifdef __cplusplus
06535 }
06536 #endif
06537
06538
06539
06540
06541
06542
06543
06544
06545
06546
06547
06548
06549
06550
06551
06552
06553
06554
06555
06556
06557
06558
06559
06560
06561
06562
06563
06564
06565
06566
06567
06568
06569
06570
06571
06572
06573
06574
06575
06576
06577
06578 #ifdef __cplusplus
06579 extern "C" {
06580 #if 0
06581 }
06582 #endif
06583 #endif
06584
06585 #if 0
06586 #define SWIGRUNTIME_DEBUG
06587 #endif
06588
06589 SWIGRUNTIME void
06590 SWIG_InitializeModule(void *clientdata) {
06591 size_t i;
06592 swig_module_info *module_head;
06593 static int init_run = 0;
06594
06595 clientdata = clientdata;
06596
06597 if (init_run) return;
06598 init_run = 1;
06599
06600
06601 swig_module.type_initial = swig_type_initial;
06602 swig_module.cast_initial = swig_cast_initial;
06603
06604
06605 module_head = SWIG_GetModule(clientdata);
06606 if (module_head) {
06607 swig_module.next = module_head->next;
06608 module_head->next = &swig_module;
06609 } else {
06610
06611 swig_module.next = &swig_module;
06612 SWIG_SetModule(clientdata, &swig_module);
06613 }
06614
06615
06616 #ifdef SWIGRUNTIME_DEBUG
06617 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
06618 #endif
06619 for (i = 0; i < swig_module.size; ++i) {
06620 swig_type_info *type = 0;
06621 swig_type_info *ret;
06622 swig_cast_info *cast;
06623
06624 #ifdef SWIGRUNTIME_DEBUG
06625 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
06626 #endif
06627
06628
06629 if (swig_module.next != &swig_module) {
06630 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
06631 }
06632 if (type) {
06633
06634 #ifdef SWIGRUNTIME_DEBUG
06635 printf("SWIG_InitializeModule: found type %s\n", type->name);
06636 #endif
06637 if (swig_module.type_initial[i]->clientdata) {
06638 type->clientdata = swig_module.type_initial[i]->clientdata;
06639 #ifdef SWIGRUNTIME_DEBUG
06640 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
06641 #endif
06642 }
06643 } else {
06644 type = swig_module.type_initial[i];
06645 }
06646
06647
06648 cast = swig_module.cast_initial[i];
06649 while (cast->type) {
06650
06651 ret = 0;
06652 #ifdef SWIGRUNTIME_DEBUG
06653 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
06654 #endif
06655 if (swig_module.next != &swig_module) {
06656 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
06657 #ifdef SWIGRUNTIME_DEBUG
06658 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
06659 #endif
06660 }
06661 if (ret) {
06662 if (type == swig_module.type_initial[i]) {
06663 #ifdef SWIGRUNTIME_DEBUG
06664 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
06665 #endif
06666 cast->type = ret;
06667 ret = 0;
06668 } else {
06669
06670 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
06671 #ifdef SWIGRUNTIME_DEBUG
06672 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
06673 #endif
06674 if (!ocast) ret = 0;
06675 }
06676 }
06677
06678 if (!ret) {
06679 #ifdef SWIGRUNTIME_DEBUG
06680 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
06681 #endif
06682 if (type->cast) {
06683 type->cast->prev = cast;
06684 cast->next = type->cast;
06685 }
06686 type->cast = cast;
06687 }
06688 cast++;
06689 }
06690
06691 swig_module.types[i] = type;
06692 }
06693 swig_module.types[i] = 0;
06694
06695 #ifdef SWIGRUNTIME_DEBUG
06696 printf("**** SWIG_InitializeModule: Cast List ******\n");
06697 for (i = 0; i < swig_module.size; ++i) {
06698 int j = 0;
06699 swig_cast_info *cast = swig_module.cast_initial[i];
06700 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
06701 while (cast->type) {
06702 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
06703 cast++;
06704 ++j;
06705 }
06706 printf("---- Total casts: %d\n",j);
06707 }
06708 printf("**** SWIG_InitializeModule: Cast List ******\n");
06709 #endif
06710 }
06711
06712
06713
06714
06715
06716
06717 SWIGRUNTIME void
06718 SWIG_PropagateClientData(void) {
06719 size_t i;
06720 swig_cast_info *equiv;
06721 static int init_run = 0;
06722
06723 if (init_run) return;
06724 init_run = 1;
06725
06726 for (i = 0; i < swig_module.size; i++) {
06727 if (swig_module.types[i]->clientdata) {
06728 equiv = swig_module.types[i]->cast;
06729 while (equiv) {
06730 if (!equiv->converter) {
06731 if (equiv->type && !equiv->type->clientdata)
06732 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
06733 }
06734 equiv = equiv->next;
06735 }
06736 }
06737 }
06738 }
06739
06740 #ifdef __cplusplus
06741 #if 0
06742 {
06743
06744 #endif
06745 }
06746 #endif
06747
06748
06749
06750 #ifdef __cplusplus
06751 extern "C" {
06752 #endif
06753
06754
06755 #define SWIG_newvarlink() SWIG_Python_newvarlink()
06756 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
06757 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
06758
06759
06760
06761
06762
06763 typedef struct swig_globalvar {
06764 char *name;
06765 PyObject *(*get_attr)(void);
06766 int (*set_attr)(PyObject *);
06767 struct swig_globalvar *next;
06768 } swig_globalvar;
06769
06770 typedef struct swig_varlinkobject {
06771 PyObject_HEAD
06772 swig_globalvar *vars;
06773 } swig_varlinkobject;
06774
06775 SWIGINTERN PyObject *
06776 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
06777 return PyString_FromString("<Swig global variables>");
06778 }
06779
06780 SWIGINTERN PyObject *
06781 swig_varlink_str(swig_varlinkobject *v) {
06782 PyObject *str = PyString_FromString("(");
06783 swig_globalvar *var;
06784 for (var = v->vars; var; var=var->next) {
06785 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
06786 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
06787 }
06788 PyString_ConcatAndDel(&str,PyString_FromString(")"));
06789 return str;
06790 }
06791
06792 SWIGINTERN int
06793 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
06794 PyObject *str = swig_varlink_str(v);
06795 fprintf(fp,"Swig global variables ");
06796 fprintf(fp,"%s\n", PyString_AsString(str));
06797 Py_DECREF(str);
06798 return 0;
06799 }
06800
06801 SWIGINTERN void
06802 swig_varlink_dealloc(swig_varlinkobject *v) {
06803 swig_globalvar *var = v->vars;
06804 while (var) {
06805 swig_globalvar *n = var->next;
06806 free(var->name);
06807 free(var);
06808 var = n;
06809 }
06810 }
06811
06812 SWIGINTERN PyObject *
06813 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
06814 PyObject *res = NULL;
06815 swig_globalvar *var = v->vars;
06816 while (var) {
06817 if (strcmp(var->name,n) == 0) {
06818 res = (*var->get_attr)();
06819 break;
06820 }
06821 var = var->next;
06822 }
06823 if (res == NULL && !PyErr_Occurred()) {
06824 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
06825 }
06826 return res;
06827 }
06828
06829 SWIGINTERN int
06830 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
06831 int res = 1;
06832 swig_globalvar *var = v->vars;
06833 while (var) {
06834 if (strcmp(var->name,n) == 0) {
06835 res = (*var->set_attr)(p);
06836 break;
06837 }
06838 var = var->next;
06839 }
06840 if (res == 1 && !PyErr_Occurred()) {
06841 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
06842 }
06843 return res;
06844 }
06845
06846 SWIGINTERN PyTypeObject*
06847 swig_varlink_type(void) {
06848 static char varlink__doc__[] = "Swig var link object";
06849 static PyTypeObject varlink_type;
06850 static int type_init = 0;
06851 if (!type_init) {
06852 const PyTypeObject tmp
06853 = {
06854 PyObject_HEAD_INIT(NULL)
06855 0,
06856 (char *)"swigvarlink",
06857 sizeof(swig_varlinkobject),
06858 0,
06859 (destructor) swig_varlink_dealloc,
06860 (printfunc) swig_varlink_print,
06861 (getattrfunc) swig_varlink_getattr,
06862 (setattrfunc) swig_varlink_setattr,
06863 0,
06864 (reprfunc) swig_varlink_repr,
06865 0,
06866 0,
06867 0,
06868 0,
06869 0,
06870 (reprfunc)swig_varlink_str,
06871 0,
06872 0,
06873 0,
06874 0,
06875 varlink__doc__,
06876 0,
06877 0,
06878 0,
06879 0,
06880 #if PY_VERSION_HEX >= 0x02020000
06881 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
06882 #endif
06883 #if PY_VERSION_HEX >= 0x02030000
06884 0,
06885 #endif
06886 #ifdef COUNT_ALLOCS
06887 0,0,0,0
06888 #endif
06889 };
06890 varlink_type = tmp;
06891 varlink_type.ob_type = &PyType_Type;
06892 type_init = 1;
06893 }
06894 return &varlink_type;
06895 }
06896
06897
06898 SWIGINTERN PyObject *
06899 SWIG_Python_newvarlink(void) {
06900 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
06901 if (result) {
06902 result->vars = 0;
06903 }
06904 return ((PyObject*) result);
06905 }
06906
06907 SWIGINTERN void
06908 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
06909 swig_varlinkobject *v = (swig_varlinkobject *) p;
06910 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
06911 if (gv) {
06912 size_t size = strlen(name)+1;
06913 gv->name = (char *)malloc(size);
06914 if (gv->name) {
06915 strncpy(gv->name,name,size);
06916 gv->get_attr = get_attr;
06917 gv->set_attr = set_attr;
06918 gv->next = v->vars;
06919 }
06920 }
06921 v->vars = gv;
06922 }
06923
06924 SWIGINTERN PyObject *
06925 SWIG_globals() {
06926 static PyObject *_SWIG_globals = 0;
06927 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
06928 return _SWIG_globals;
06929 }
06930
06931
06932
06933
06934
06935
06936 SWIGINTERN void
06937 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
06938 PyObject *obj = 0;
06939 size_t i;
06940 for (i = 0; constants[i].type; ++i) {
06941 switch(constants[i].type) {
06942 case SWIG_PY_POINTER:
06943 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
06944 break;
06945 case SWIG_PY_BINARY:
06946 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
06947 break;
06948 default:
06949 obj = 0;
06950 break;
06951 }
06952 if (obj) {
06953 PyDict_SetItemString(d, constants[i].name, obj);
06954 Py_DECREF(obj);
06955 }
06956 }
06957 }
06958
06959
06960
06961
06962
06963 SWIGINTERN void
06964 SWIG_Python_FixMethods(PyMethodDef *methods,
06965 swig_const_info *const_table,
06966 swig_type_info **types,
06967 swig_type_info **types_initial) {
06968 size_t i;
06969 for (i = 0; methods[i].ml_name; ++i) {
06970 const char *c = methods[i].ml_doc;
06971 if (c && (c = strstr(c, "swig_ptr: "))) {
06972 int j;
06973 swig_const_info *ci = 0;
06974 const char *name = c + 10;
06975 for (j = 0; const_table[j].type; ++j) {
06976 if (strncmp(const_table[j].name, name,
06977 strlen(const_table[j].name)) == 0) {
06978 ci = &(const_table[j]);
06979 break;
06980 }
06981 }
06982 if (ci) {
06983 size_t shift = (ci->ptype) - types;
06984 swig_type_info *ty = types_initial[shift];
06985 size_t ldoc = (c - methods[i].ml_doc);
06986 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
06987 char *ndoc = (char*)malloc(ldoc + lptr + 10);
06988 if (ndoc) {
06989 char *buff = ndoc;
06990 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
06991 if (ptr) {
06992 strncpy(buff, methods[i].ml_doc, ldoc);
06993 buff += ldoc;
06994 strncpy(buff, "swig_ptr: ", 10);
06995 buff += 10;
06996 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
06997 methods[i].ml_doc = ndoc;
06998 }
06999 }
07000 }
07001 }
07002 }
07003 }
07004
07005 #ifdef __cplusplus
07006 }
07007 #endif
07008
07009
07010
07011
07012
07013 #ifdef __cplusplus
07014 extern "C"
07015 #endif
07016 SWIGEXPORT void SWIG_init(void) {
07017 PyObject *m, *d;
07018
07019
07020 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
07021
07022 m = Py_InitModule((char *) SWIG_name, SwigMethods);
07023 d = PyModule_GetDict(m);
07024
07025 SWIG_InitializeModule(0);
07026 SWIG_InstallConstants(d,swig_const_table);
07027
07028
07029
07030
07031
07032 }
07033