1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 3.0.13
4  *
5  * This file is not intended to be easily readable and contains a number of
6  * coding conventions designed to improve portability and efficiency. Do not make
7  * changes to this file unless you know what you are doing--modify the SWIG
8  * interface file instead.
9  * ----------------------------------------------------------------------------- */
10 
11 #include <config.h>
12 
13 #ifdef __clang__
14 // The Python 3.3 headers have several uses of the C register keyword, which
15 // result in warnings from clang++ 6.  There's nothing we can really do about
16 // them, so just suppress them.  This appears to have been addressed in Python
17 // 3.4 and later.
18 # pragma clang diagnostic push
19 # pragma clang diagnostic ignored "-Wdeprecated-register"
20 #endif
21 
22 #include <Python.h>
23 
24 #ifdef __clang__
25 # pragma clang diagnostic pop
26 #endif
27 
28 /* Override SWIG's standard GIL locking machinery - we want to avoid the
29  * overhead of thread locking when the user's code isn't using threads,
30  * and to handle the GIL in a way which also works in sub-interpreters.
31  */
32 #define SWIG_PYTHON_NO_USE_GIL
33 
34 #ifdef THREAD_LOCAL
35 
36 static THREAD_LOCAL PyThreadState * swig_pythreadstate = NULL;
37 
swig_pythreadstate_ensure_init()38 inline void swig_pythreadstate_ensure_init() { }
39 
swig_pythreadstate_reset()40 inline PyThreadState * swig_pythreadstate_reset() {
41     PyThreadState * v = swig_pythreadstate;
42     if (v) swig_pythreadstate = NULL;
43     return v;
44 }
45 
swig_pythreadstate_set(PyThreadState * v)46 inline PyThreadState * swig_pythreadstate_set(PyThreadState * v) {
47     PyThreadState * old = swig_pythreadstate;
48     swig_pythreadstate = v;
49     return old;
50 }
51 
52 #else
53 
54 #include <pthread.h>
55 
56 static pthread_key_t swig_pythreadstate_key;
57 static pthread_once_t swig_pythreadstate_key_once = PTHREAD_ONCE_INIT;
58 
swig_pythreadstate_make_key()59 static void swig_pythreadstate_make_key()
60 {
61     if (pthread_key_create(&swig_pythreadstate_key, NULL) != 0)
62 	Py_FatalError("pthread_key_create failed");
63 }
64 
swig_pythreadstate_ensure_init()65 inline void swig_pythreadstate_ensure_init() {
66     pthread_once(&swig_pythreadstate_key_once, swig_pythreadstate_make_key);
67 }
68 
swig_pythreadstate_reset()69 inline PyThreadState * swig_pythreadstate_reset() {
70     PyThreadState * v = (PyThreadState*)pthread_getspecific(swig_pythreadstate_key);
71     if (v) pthread_setspecific(swig_pythreadstate_key, NULL);
72     return v;
73 }
74 
swig_pythreadstate_set(PyThreadState * v)75 inline PyThreadState* swig_pythreadstate_set(PyThreadState * v) {
76     PyThreadState * old = (PyThreadState*)pthread_getspecific(swig_pythreadstate_key);
77     pthread_setspecific(swig_pythreadstate_key, (void*)v);
78     return old;
79 }
80 
81 #endif
82 
83 class XapianSWIG_Python_Thread_Block {
84     bool status;
85   public:
XapianSWIG_Python_Thread_Block()86     XapianSWIG_Python_Thread_Block() : status(false) {
87 	if (PyEval_ThreadsInitialized()) {
88 	    swig_pythreadstate_ensure_init();
89 	    PyThreadState * ts = swig_pythreadstate_reset();
90 	    if (ts) {
91 		status = true;
92 		PyEval_RestoreThread(ts);
93 	    }
94 	}
95     }
end()96     void end() {
97 	if (status) {
98 	    if (swig_pythreadstate_set(PyEval_SaveThread()))
99 		Py_FatalError("swig_pythreadstate set in XapianSWIG_Python_Thread_Block::end()");
100 	    status = false;
101 	}
102     }
~XapianSWIG_Python_Thread_Block()103     ~XapianSWIG_Python_Thread_Block() { end(); }
104 };
105 
106 class XapianSWIG_Python_Thread_Allow {
107     bool status;
108   public:
XapianSWIG_Python_Thread_Allow()109     XapianSWIG_Python_Thread_Allow() : status(PyEval_ThreadsInitialized()) {
110 	if (status) {
111 	    swig_pythreadstate_ensure_init();
112 	    if (swig_pythreadstate_set(PyEval_SaveThread()))
113 		Py_FatalError("swig_pythreadstate set in XapianSWIG_Python_Thread_Allow ctor");
114 	}
115     }
end()116     void end() {
117 	if (status) {
118 	    PyThreadState * ts = swig_pythreadstate_reset();
119 	    if (!ts)
120 		Py_FatalError("swig_pythreadstate unset in XapianSWIG_Python_Thread_Block::end()");
121 	    PyEval_RestoreThread(ts);
122 	    status = false;
123 	}
124     }
~XapianSWIG_Python_Thread_Allow()125     ~XapianSWIG_Python_Thread_Allow() { end(); }
126 };
127 
128 #define SWIG_PYTHON_THREAD_BEGIN_BLOCK   XapianSWIG_Python_Thread_Block _xapian_swig_thread_block
129 #define SWIG_PYTHON_THREAD_END_BLOCK     _xapian_swig_thread_block.end()
130 #define SWIG_PYTHON_THREAD_BEGIN_ALLOW   XapianSWIG_Python_Thread_Allow _xapian_swig_thread_allow
131 #define SWIG_PYTHON_THREAD_END_ALLOW     _xapian_swig_thread_allow.end()
132 
133 
134 
135 #ifndef SWIGPYTHON
136 #define SWIGPYTHON
137 #endif
138 
139 #define SWIG_DIRECTORS
140 #define SWIG_PYTHON_THREADS
141 #define SWIG_PYTHON_NO_BUILD_NONE
142 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
143 
144 
145 #ifdef __cplusplus
146 /* SwigValueWrapper is described in swig.swg */
147 template<typename T> class SwigValueWrapper {
148   struct SwigMovePointer {
149     T *ptr;
SwigMovePointerSwigValueWrapper::SwigMovePointer150     SwigMovePointer(T *p) : ptr(p) { }
~SwigMovePointerSwigValueWrapper::SwigMovePointer151     ~SwigMovePointer() { delete ptr; }
operator =SwigValueWrapper::SwigMovePointer152     SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
153   } pointer;
154   SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
155   SwigValueWrapper(const SwigValueWrapper<T>& rhs);
156 public:
SwigValueWrapper()157   SwigValueWrapper() : pointer(0) { }
operator =(const T & t)158   SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
operator T&() const159   operator T&() const { return *pointer.ptr; }
operator &()160   T *operator&() { return pointer.ptr; }
161 };
162 
SwigValueInit()163 template <typename T> T SwigValueInit() {
164   return T();
165 }
166 #endif
167 
168 /* -----------------------------------------------------------------------------
169  *  This section contains generic SWIG labels for method/variable
170  *  declarations/attributes, and other compiler dependent labels.
171  * ----------------------------------------------------------------------------- */
172 
173 /* template workaround for compilers that cannot correctly implement the C++ standard */
174 #ifndef SWIGTEMPLATEDISAMBIGUATOR
175 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
176 #  define SWIGTEMPLATEDISAMBIGUATOR template
177 # elif defined(__HP_aCC)
178 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
179 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
180 #  define SWIGTEMPLATEDISAMBIGUATOR template
181 # else
182 #  define SWIGTEMPLATEDISAMBIGUATOR
183 # endif
184 #endif
185 
186 /* inline attribute */
187 #ifndef SWIGINLINE
188 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
189 #   define SWIGINLINE inline
190 # else
191 #   define SWIGINLINE
192 # endif
193 #endif
194 
195 /* attribute recognised by some compilers to avoid 'unused' warnings */
196 #ifndef SWIGUNUSED
197 # if defined(__GNUC__)
198 #   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
199 #     define SWIGUNUSED __attribute__ ((__unused__))
200 #   else
201 #     define SWIGUNUSED
202 #   endif
203 # elif defined(__ICC)
204 #   define SWIGUNUSED __attribute__ ((__unused__))
205 # else
206 #   define SWIGUNUSED
207 # endif
208 #endif
209 
210 #ifndef SWIG_MSC_UNSUPPRESS_4505
211 # if defined(_MSC_VER)
212 #   pragma warning(disable : 4505) /* unreferenced local function has been removed */
213 # endif
214 #endif
215 
216 #ifndef SWIGUNUSEDPARM
217 # ifdef __cplusplus
218 #   define SWIGUNUSEDPARM(p)
219 # else
220 #   define SWIGUNUSEDPARM(p) p SWIGUNUSED
221 # endif
222 #endif
223 
224 /* internal SWIG method */
225 #ifndef SWIGINTERN
226 # define SWIGINTERN static SWIGUNUSED
227 #endif
228 
229 /* internal inline SWIG method */
230 #ifndef SWIGINTERNINLINE
231 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
232 #endif
233 
234 /* exporting methods */
235 #if defined(__GNUC__)
236 #  if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
237 #    ifndef GCC_HASCLASSVISIBILITY
238 #      define GCC_HASCLASSVISIBILITY
239 #    endif
240 #  endif
241 #endif
242 
243 #ifndef SWIGEXPORT
244 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
245 #   if defined(STATIC_LINKED)
246 #     define SWIGEXPORT
247 #   else
248 #     define SWIGEXPORT __declspec(dllexport)
249 #   endif
250 # else
251 #   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
252 #     define SWIGEXPORT __attribute__ ((visibility("default")))
253 #   else
254 #     define SWIGEXPORT
255 #   endif
256 # endif
257 #endif
258 
259 /* calling conventions for Windows */
260 #ifndef SWIGSTDCALL
261 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
262 #   define SWIGSTDCALL __stdcall
263 # else
264 #   define SWIGSTDCALL
265 # endif
266 #endif
267 
268 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
269 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
270 # define _CRT_SECURE_NO_DEPRECATE
271 #endif
272 
273 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
274 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
275 # define _SCL_SECURE_NO_DEPRECATE
276 #endif
277 
278 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
279 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
280 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
281 #endif
282 
283 /* Intel's compiler complains if a variable which was never initialised is
284  * cast to void, which is a common idiom which we use to indicate that we
285  * are aware a variable isn't used.  So we just silence that warning.
286  * See: https://github.com/swig/swig/issues/192 for more discussion.
287  */
288 #ifdef __INTEL_COMPILER
289 # pragma warning disable 592
290 #endif
291 
292 
293 #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
294 /* Use debug wrappers with the Python release dll */
295 # undef _DEBUG
296 # include <Python.h>
297 # define _DEBUG
298 #else
299 # include <Python.h>
300 #endif
301 
302 /* -----------------------------------------------------------------------------
303  * swigrun.swg
304  *
305  * This file contains generic C API SWIG runtime support for pointer
306  * type checking.
307  * ----------------------------------------------------------------------------- */
308 
309 /* This should only be incremented when either the layout of swig_type_info changes,
310    or for whatever reason, the runtime changes incompatibly */
311 #define SWIG_RUNTIME_VERSION "4"
312 
313 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
314 #ifdef SWIG_TYPE_TABLE
315 # define SWIG_QUOTE_STRING(x) #x
316 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
317 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
318 #else
319 # define SWIG_TYPE_TABLE_NAME
320 #endif
321 
322 /*
323   You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
324   creating a static or dynamic library from the SWIG runtime code.
325   In 99.9% of the cases, SWIG just needs to declare them as 'static'.
326 
327   But only do this if strictly necessary, ie, if you have problems
328   with your compiler or suchlike.
329 */
330 
331 #ifndef SWIGRUNTIME
332 # define SWIGRUNTIME SWIGINTERN
333 #endif
334 
335 #ifndef SWIGRUNTIMEINLINE
336 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
337 #endif
338 
339 /*  Generic buffer size */
340 #ifndef SWIG_BUFFER_SIZE
341 # define SWIG_BUFFER_SIZE 1024
342 #endif
343 
344 /* Flags for pointer conversions */
345 #define SWIG_POINTER_DISOWN        0x1
346 #define SWIG_CAST_NEW_MEMORY       0x2
347 
348 /* Flags for new pointer objects */
349 #define SWIG_POINTER_OWN           0x1
350 
351 
352 /*
353    Flags/methods for returning states.
354 
355    The SWIG conversion methods, as ConvertPtr, return an integer
356    that tells if the conversion was successful or not. And if not,
357    an error code can be returned (see swigerrors.swg for the codes).
358 
359    Use the following macros/flags to set or process the returning
360    states.
361 
362    In old versions of SWIG, code such as the following was usually written:
363 
364      if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
365        // success code
366      } else {
367        //fail code
368      }
369 
370    Now you can be more explicit:
371 
372     int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
373     if (SWIG_IsOK(res)) {
374       // success code
375     } else {
376       // fail code
377     }
378 
379    which is the same really, but now you can also do
380 
381     Type *ptr;
382     int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
383     if (SWIG_IsOK(res)) {
384       // success code
385       if (SWIG_IsNewObj(res) {
386         ...
387 	delete *ptr;
388       } else {
389         ...
390       }
391     } else {
392       // fail code
393     }
394 
395    I.e., now SWIG_ConvertPtr can return new objects and you can
396    identify the case and take care of the deallocation. Of course that
397    also requires SWIG_ConvertPtr to return new result values, such as
398 
399       int SWIG_ConvertPtr(obj, ptr,...) {
400         if (<obj is ok>) {
401           if (<need new object>) {
402             *ptr = <ptr to new allocated object>;
403             return SWIG_NEWOBJ;
404           } else {
405             *ptr = <ptr to old object>;
406             return SWIG_OLDOBJ;
407           }
408         } else {
409           return SWIG_BADOBJ;
410         }
411       }
412 
413    Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
414    more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
415    SWIG errors code.
416 
417    Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
418    allows to return the 'cast rank', for example, if you have this
419 
420        int food(double)
421        int fooi(int);
422 
423    and you call
424 
425       food(1)   // cast rank '1'  (1 -> 1.0)
426       fooi(1)   // cast rank '0'
427 
428    just use the SWIG_AddCast()/SWIG_CheckState()
429 */
430 
431 #define SWIG_OK                    (0)
432 #define SWIG_ERROR                 (-1)
433 #define SWIG_IsOK(r)               (r >= 0)
434 #define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)
435 
436 /* The CastRankLimit says how many bits are used for the cast rank */
437 #define SWIG_CASTRANKLIMIT         (1 << 8)
438 /* The NewMask denotes the object was created (using new/malloc) */
439 #define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
440 /* The TmpMask is for in/out typemaps that use temporal objects */
441 #define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
442 /* Simple returning values */
443 #define SWIG_BADOBJ                (SWIG_ERROR)
444 #define SWIG_OLDOBJ                (SWIG_OK)
445 #define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
446 #define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
447 /* Check, add and del mask methods */
448 #define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
449 #define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
450 #define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
451 #define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
452 #define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
453 #define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
454 
455 /* Cast-Rank Mode */
456 #if defined(SWIG_CASTRANK_MODE)
457 #  ifndef SWIG_TypeRank
458 #    define SWIG_TypeRank             unsigned long
459 #  endif
460 #  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
461 #    define SWIG_MAXCASTRANK          (2)
462 #  endif
463 #  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
464 #  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
SWIG_AddCast(int r)465 SWIGINTERNINLINE int SWIG_AddCast(int r) {
466   return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
467 }
SWIG_CheckState(int r)468 SWIGINTERNINLINE int SWIG_CheckState(int r) {
469   return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
470 }
471 #else /* no cast-rank mode */
472 #  define SWIG_AddCast(r) (r)
473 #  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
474 #endif
475 
476 
477 #include <string.h>
478 
479 #ifdef __cplusplus
480 extern "C" {
481 #endif
482 
483 typedef void *(*swig_converter_func)(void *, int *);
484 typedef struct swig_type_info *(*swig_dycast_func)(void **);
485 
486 /* Structure to store information on one type */
487 typedef struct swig_type_info {
488   const char             *name;			/* mangled name of this type */
489   const char             *str;			/* human readable name of this type */
490   swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */
491   struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */
492   void                   *clientdata;		/* language specific type data */
493   int                    owndata;		/* flag if the structure owns the clientdata */
494 } swig_type_info;
495 
496 /* Structure to store a type and conversion function used for casting */
497 typedef struct swig_cast_info {
498   swig_type_info         *type;			/* pointer to type that is equivalent to this type */
499   swig_converter_func     converter;		/* function to cast the void pointers */
500   struct swig_cast_info  *next;			/* pointer to next cast in linked list */
501   struct swig_cast_info  *prev;			/* pointer to the previous cast */
502 } swig_cast_info;
503 
504 /* Structure used to store module information
505  * Each module generates one structure like this, and the runtime collects
506  * all of these structures and stores them in a circularly linked list.*/
507 typedef struct swig_module_info {
508   swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */
509   size_t                 size;		        /* Number of types in this module */
510   struct swig_module_info *next;		/* Pointer to next element in circularly linked list */
511   swig_type_info         **type_initial;	/* Array of initially generated type structures */
512   swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */
513   void                    *clientdata;		/* Language specific module data */
514 } swig_module_info;
515 
516 /*
517   Compare two type names skipping the space characters, therefore
518   "char*" == "char *" and "Class<int>" == "Class<int >", etc.
519 
520   Return 0 when the two name types are equivalent, as in
521   strncmp, but skipping ' '.
522 */
523 SWIGRUNTIME int
SWIG_TypeNameComp(const char * f1,const char * l1,const char * f2,const char * l2)524 SWIG_TypeNameComp(const char *f1, const char *l1,
525 		  const char *f2, const char *l2) {
526   for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
527     while ((*f1 == ' ') && (f1 != l1)) ++f1;
528     while ((*f2 == ' ') && (f2 != l2)) ++f2;
529     if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
530   }
531   return (int)((l1 - f1) - (l2 - f2));
532 }
533 
534 /*
535   Check type equivalence in a name list like <name1>|<name2>|...
536   Return 0 if equal, -1 if nb < tb, 1 if nb > tb
537 */
538 SWIGRUNTIME int
SWIG_TypeCmp(const char * nb,const char * tb)539 SWIG_TypeCmp(const char *nb, const char *tb) {
540   int equiv = 1;
541   const char* te = tb + strlen(tb);
542   const char* ne = nb;
543   while (equiv != 0 && *ne) {
544     for (nb = ne; *ne; ++ne) {
545       if (*ne == '|') break;
546     }
547     equiv = SWIG_TypeNameComp(nb, ne, tb, te);
548     if (*ne) ++ne;
549   }
550   return equiv;
551 }
552 
553 /*
554   Check type equivalence in a name list like <name1>|<name2>|...
555   Return 0 if not equal, 1 if equal
556 */
557 SWIGRUNTIME int
SWIG_TypeEquiv(const char * nb,const char * tb)558 SWIG_TypeEquiv(const char *nb, const char *tb) {
559   return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
560 }
561 
562 /*
563   Check the typename
564 */
565 SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char * c,swig_type_info * ty)566 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
567   if (ty) {
568     swig_cast_info *iter = ty->cast;
569     while (iter) {
570       if (strcmp(iter->type->name, c) == 0) {
571         if (iter == ty->cast)
572           return iter;
573         /* Move iter to the top of the linked list */
574         iter->prev->next = iter->next;
575         if (iter->next)
576           iter->next->prev = iter->prev;
577         iter->next = ty->cast;
578         iter->prev = 0;
579         if (ty->cast) ty->cast->prev = iter;
580         ty->cast = iter;
581         return iter;
582       }
583       iter = iter->next;
584     }
585   }
586   return 0;
587 }
588 
589 /*
590   Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
591 */
592 SWIGRUNTIME swig_cast_info *
SWIG_TypeCheckStruct(swig_type_info * from,swig_type_info * ty)593 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
594   if (ty) {
595     swig_cast_info *iter = ty->cast;
596     while (iter) {
597       if (iter->type == from) {
598         if (iter == ty->cast)
599           return iter;
600         /* Move iter to the top of the linked list */
601         iter->prev->next = iter->next;
602         if (iter->next)
603           iter->next->prev = iter->prev;
604         iter->next = ty->cast;
605         iter->prev = 0;
606         if (ty->cast) ty->cast->prev = iter;
607         ty->cast = iter;
608         return iter;
609       }
610       iter = iter->next;
611     }
612   }
613   return 0;
614 }
615 
616 /*
617   Cast a pointer up an inheritance hierarchy
618 */
619 SWIGRUNTIMEINLINE void *
SWIG_TypeCast(swig_cast_info * ty,void * ptr,int * newmemory)620 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
621   return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
622 }
623 
624 /*
625    Dynamic pointer casting. Down an inheritance hierarchy
626 */
627 SWIGRUNTIME swig_type_info *
SWIG_TypeDynamicCast(swig_type_info * ty,void ** ptr)628 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
629   swig_type_info *lastty = ty;
630   if (!ty || !ty->dcast) return ty;
631   while (ty && (ty->dcast)) {
632     ty = (*ty->dcast)(ptr);
633     if (ty) lastty = ty;
634   }
635   return lastty;
636 }
637 
638 /*
639   Return the name associated with this type
640 */
641 SWIGRUNTIMEINLINE const char *
SWIG_TypeName(const swig_type_info * ty)642 SWIG_TypeName(const swig_type_info *ty) {
643   return ty->name;
644 }
645 
646 /*
647   Return the pretty name associated with this type,
648   that is an unmangled type name in a form presentable to the user.
649 */
650 SWIGRUNTIME const char *
SWIG_TypePrettyName(const swig_type_info * type)651 SWIG_TypePrettyName(const swig_type_info *type) {
652   /* The "str" field contains the equivalent pretty names of the
653      type, separated by vertical-bar characters.  We choose
654      to print the last name, as it is often (?) the most
655      specific. */
656   if (!type) return NULL;
657   if (type->str != NULL) {
658     const char *last_name = type->str;
659     const char *s;
660     for (s = type->str; *s; s++)
661       if (*s == '|') last_name = s+1;
662     return last_name;
663   }
664   else
665     return type->name;
666 }
667 
668 /*
669    Set the clientdata field for a type
670 */
671 SWIGRUNTIME void
SWIG_TypeClientData(swig_type_info * ti,void * clientdata)672 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
673   swig_cast_info *cast = ti->cast;
674   /* if (ti->clientdata == clientdata) return; */
675   ti->clientdata = clientdata;
676 
677   while (cast) {
678     if (!cast->converter) {
679       swig_type_info *tc = cast->type;
680       if (!tc->clientdata) {
681 	SWIG_TypeClientData(tc, clientdata);
682       }
683     }
684     cast = cast->next;
685   }
686 }
687 SWIGRUNTIME void
SWIG_TypeNewClientData(swig_type_info * ti,void * clientdata)688 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
689   SWIG_TypeClientData(ti, clientdata);
690   ti->owndata = 1;
691 }
692 
693 /*
694   Search for a swig_type_info structure only by mangled name
695   Search is a O(log #types)
696 
697   We start searching at module start, and finish searching when start == end.
698   Note: if start == end at the beginning of the function, we go all the way around
699   the circular list.
700 */
701 SWIGRUNTIME swig_type_info *
SWIG_MangledTypeQueryModule(swig_module_info * start,swig_module_info * end,const char * name)702 SWIG_MangledTypeQueryModule(swig_module_info *start,
703                             swig_module_info *end,
704 		            const char *name) {
705   swig_module_info *iter = start;
706   do {
707     if (iter->size) {
708       size_t l = 0;
709       size_t r = iter->size - 1;
710       do {
711 	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
712 	size_t i = (l + r) >> 1;
713 	const char *iname = iter->types[i]->name;
714 	if (iname) {
715 	  int compare = strcmp(name, iname);
716 	  if (compare == 0) {
717 	    return iter->types[i];
718 	  } else if (compare < 0) {
719 	    if (i) {
720 	      r = i - 1;
721 	    } else {
722 	      break;
723 	    }
724 	  } else if (compare > 0) {
725 	    l = i + 1;
726 	  }
727 	} else {
728 	  break; /* should never happen */
729 	}
730       } while (l <= r);
731     }
732     iter = iter->next;
733   } while (iter != end);
734   return 0;
735 }
736 
737 /*
738   Search for a swig_type_info structure for either a mangled name or a human readable name.
739   It first searches the mangled names of the types, which is a O(log #types)
740   If a type is not found it then searches the human readable names, which is O(#types).
741 
742   We start searching at module start, and finish searching when start == end.
743   Note: if start == end at the beginning of the function, we go all the way around
744   the circular list.
745 */
746 SWIGRUNTIME swig_type_info *
SWIG_TypeQueryModule(swig_module_info * start,swig_module_info * end,const char * name)747 SWIG_TypeQueryModule(swig_module_info *start,
748                      swig_module_info *end,
749 		     const char *name) {
750   /* STEP 1: Search the name field using binary search */
751   swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
752   if (ret) {
753     return ret;
754   } else {
755     /* STEP 2: If the type hasn't been found, do a complete search
756        of the str field (the human readable name) */
757     swig_module_info *iter = start;
758     do {
759       size_t i = 0;
760       for (; i < iter->size; ++i) {
761 	if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
762 	  return iter->types[i];
763       }
764       iter = iter->next;
765     } while (iter != end);
766   }
767 
768   /* neither found a match */
769   return 0;
770 }
771 
772 /*
773    Pack binary data into a string
774 */
775 SWIGRUNTIME char *
SWIG_PackData(char * c,void * ptr,size_t sz)776 SWIG_PackData(char *c, void *ptr, size_t sz) {
777   static const char hex[17] = "0123456789abcdef";
778   const unsigned char *u = (unsigned char *) ptr;
779   const unsigned char *eu =  u + sz;
780   for (; u != eu; ++u) {
781     unsigned char uu = *u;
782     *(c++) = hex[(uu & 0xf0) >> 4];
783     *(c++) = hex[uu & 0xf];
784   }
785   return c;
786 }
787 
788 /*
789    Unpack binary data from a string
790 */
791 SWIGRUNTIME const char *
SWIG_UnpackData(const char * c,void * ptr,size_t sz)792 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
793   unsigned char *u = (unsigned char *) ptr;
794   const unsigned char *eu = u + sz;
795   for (; u != eu; ++u) {
796     char d = *(c++);
797     unsigned char uu;
798     if ((d >= '0') && (d <= '9'))
799       uu = (unsigned char)((d - '0') << 4);
800     else if ((d >= 'a') && (d <= 'f'))
801       uu = (unsigned char)((d - ('a'-10)) << 4);
802     else
803       return (char *) 0;
804     d = *(c++);
805     if ((d >= '0') && (d <= '9'))
806       uu |= (unsigned char)(d - '0');
807     else if ((d >= 'a') && (d <= 'f'))
808       uu |= (unsigned char)(d - ('a'-10));
809     else
810       return (char *) 0;
811     *u = uu;
812   }
813   return c;
814 }
815 
816 /*
817    Pack 'void *' into a string buffer.
818 */
819 SWIGRUNTIME char *
SWIG_PackVoidPtr(char * buff,void * ptr,const char * name,size_t bsz)820 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
821   char *r = buff;
822   if ((2*sizeof(void *) + 2) > bsz) return 0;
823   *(r++) = '_';
824   r = SWIG_PackData(r,&ptr,sizeof(void *));
825   if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
826   strcpy(r,name);
827   return buff;
828 }
829 
830 SWIGRUNTIME const char *
SWIG_UnpackVoidPtr(const char * c,void ** ptr,const char * name)831 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
832   if (*c != '_') {
833     if (strcmp(c,"NULL") == 0) {
834       *ptr = (void *) 0;
835       return name;
836     } else {
837       return 0;
838     }
839   }
840   return SWIG_UnpackData(++c,ptr,sizeof(void *));
841 }
842 
843 SWIGRUNTIME char *
SWIG_PackDataName(char * buff,void * ptr,size_t sz,const char * name,size_t bsz)844 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
845   char *r = buff;
846   size_t lname = (name ? strlen(name) : 0);
847   if ((2*sz + 2 + lname) > bsz) return 0;
848   *(r++) = '_';
849   r = SWIG_PackData(r,ptr,sz);
850   if (lname) {
851     strncpy(r,name,lname+1);
852   } else {
853     *r = 0;
854   }
855   return buff;
856 }
857 
858 SWIGRUNTIME const char *
SWIG_UnpackDataName(const char * c,void * ptr,size_t sz,const char * name)859 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
860   if (*c != '_') {
861     if (strcmp(c,"NULL") == 0) {
862       memset(ptr,0,sz);
863       return name;
864     } else {
865       return 0;
866     }
867   }
868   return SWIG_UnpackData(++c,ptr,sz);
869 }
870 
871 #ifdef __cplusplus
872 }
873 #endif
874 
875 /*  Errors in SWIG */
876 #define  SWIG_UnknownError    	   -1
877 #define  SWIG_IOError        	   -2
878 #define  SWIG_RuntimeError   	   -3
879 #define  SWIG_IndexError     	   -4
880 #define  SWIG_TypeError      	   -5
881 #define  SWIG_DivisionByZero 	   -6
882 #define  SWIG_OverflowError  	   -7
883 #define  SWIG_SyntaxError    	   -8
884 #define  SWIG_ValueError     	   -9
885 #define  SWIG_SystemError    	   -10
886 #define  SWIG_AttributeError 	   -11
887 #define  SWIG_MemoryError    	   -12
888 #define  SWIG_NullReferenceError   -13
889 
890 
891 
892 /* Compatibility macros for Python 3 */
893 #if PY_VERSION_HEX >= 0x03000000
894 
895 #define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
896 #define PyInt_Check(x) PyLong_Check(x)
897 #define PyInt_AsLong(x) PyLong_AsLong(x)
898 #define PyInt_FromLong(x) PyLong_FromLong(x)
899 #define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
900 #define PyString_Check(name) PyBytes_Check(name)
901 #define PyString_FromString(x) PyUnicode_FromString(x)
902 #define PyString_Format(fmt, args)  PyUnicode_Format(fmt, args)
903 #define PyString_AsString(str) PyBytes_AsString(str)
904 #define PyString_Size(str) PyBytes_Size(str)
905 #define PyString_InternFromString(key) PyUnicode_InternFromString(key)
906 #define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE
907 #define PyString_AS_STRING(x) PyUnicode_AS_STRING(x)
908 #define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
909 
910 #endif
911 
912 #ifndef Py_TYPE
913 #  define Py_TYPE(op) ((op)->ob_type)
914 #endif
915 
916 /* SWIG APIs for compatibility of both Python 2 & 3 */
917 
918 #if PY_VERSION_HEX >= 0x03000000
919 #  define SWIG_Python_str_FromFormat PyUnicode_FromFormat
920 #else
921 #  define SWIG_Python_str_FromFormat PyString_FromFormat
922 #endif
923 
924 
925 /* Warning: This function will allocate a new string in Python 3,
926  * so please call SWIG_Python_str_DelForPy3(x) to free the space.
927  */
928 SWIGINTERN char*
SWIG_Python_str_AsChar(PyObject * str)929 SWIG_Python_str_AsChar(PyObject *str)
930 {
931 #if PY_VERSION_HEX >= 0x03000000
932   char *cstr;
933   char *newstr;
934   Py_ssize_t len;
935   str = PyUnicode_AsUTF8String(str);
936   PyBytes_AsStringAndSize(str, &cstr, &len);
937   newstr = (char *) malloc(len+1);
938   memcpy(newstr, cstr, len+1);
939   Py_XDECREF(str);
940   return newstr;
941 #else
942   return PyString_AsString(str);
943 #endif
944 }
945 
946 #if PY_VERSION_HEX >= 0x03000000
947 #  define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
948 #else
949 #  define SWIG_Python_str_DelForPy3(x)
950 #endif
951 
952 
953 SWIGINTERN PyObject*
SWIG_Python_str_FromChar(const char * c)954 SWIG_Python_str_FromChar(const char *c)
955 {
956 #if PY_VERSION_HEX >= 0x03000000
957   return PyUnicode_FromString(c);
958 #else
959   return PyString_FromString(c);
960 #endif
961 }
962 
963 /* Add PyOS_snprintf for old Pythons */
964 #if PY_VERSION_HEX < 0x02020000
965 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
966 #  define PyOS_snprintf _snprintf
967 # else
968 #  define PyOS_snprintf snprintf
969 # endif
970 #endif
971 
972 /* A crude PyString_FromFormat implementation for old Pythons */
973 #if PY_VERSION_HEX < 0x02020000
974 
975 #ifndef SWIG_PYBUFFER_SIZE
976 # define SWIG_PYBUFFER_SIZE 1024
977 #endif
978 
979 static PyObject *
PyString_FromFormat(const char * fmt,...)980 PyString_FromFormat(const char *fmt, ...) {
981   va_list ap;
982   char buf[SWIG_PYBUFFER_SIZE * 2];
983   int res;
984   va_start(ap, fmt);
985   res = vsnprintf(buf, sizeof(buf), fmt, ap);
986   va_end(ap);
987   return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
988 }
989 #endif
990 
991 #ifndef PyObject_DEL
992 # define PyObject_DEL PyObject_Del
993 #endif
994 
995 /* A crude PyExc_StopIteration exception for old Pythons */
996 #if PY_VERSION_HEX < 0x02020000
997 # ifndef PyExc_StopIteration
998 #  define PyExc_StopIteration PyExc_RuntimeError
999 # endif
1000 # ifndef PyObject_GenericGetAttr
1001 #  define PyObject_GenericGetAttr 0
1002 # endif
1003 #endif
1004 
1005 /* Py_NotImplemented is defined in 2.1 and up. */
1006 #if PY_VERSION_HEX < 0x02010000
1007 # ifndef Py_NotImplemented
1008 #  define Py_NotImplemented PyExc_RuntimeError
1009 # endif
1010 #endif
1011 
1012 /* A crude PyString_AsStringAndSize implementation for old Pythons */
1013 #if PY_VERSION_HEX < 0x02010000
1014 # ifndef PyString_AsStringAndSize
1015 #  define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
1016 # endif
1017 #endif
1018 
1019 /* PySequence_Size for old Pythons */
1020 #if PY_VERSION_HEX < 0x02000000
1021 # ifndef PySequence_Size
1022 #  define PySequence_Size PySequence_Length
1023 # endif
1024 #endif
1025 
1026 /* PyBool_FromLong for old Pythons */
1027 #if PY_VERSION_HEX < 0x02030000
1028 static
PyBool_FromLong(long ok)1029 PyObject *PyBool_FromLong(long ok)
1030 {
1031   PyObject *result = ok ? Py_True : Py_False;
1032   Py_INCREF(result);
1033   return result;
1034 }
1035 #endif
1036 
1037 /* Py_ssize_t for old Pythons */
1038 /* This code is as recommended by: */
1039 /* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
1040 #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
1041 typedef int Py_ssize_t;
1042 # define PY_SSIZE_T_MAX INT_MAX
1043 # define PY_SSIZE_T_MIN INT_MIN
1044 typedef inquiry lenfunc;
1045 typedef intargfunc ssizeargfunc;
1046 typedef intintargfunc ssizessizeargfunc;
1047 typedef intobjargproc ssizeobjargproc;
1048 typedef intintobjargproc ssizessizeobjargproc;
1049 typedef getreadbufferproc readbufferproc;
1050 typedef getwritebufferproc writebufferproc;
1051 typedef getsegcountproc segcountproc;
1052 typedef getcharbufferproc charbufferproc;
PyNumber_AsSsize_t(PyObject * x,void * SWIGUNUSEDPARM (exc))1053 static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc))
1054 {
1055   long result = 0;
1056   PyObject *i = PyNumber_Int(x);
1057   if (i) {
1058     result = PyInt_AsLong(i);
1059     Py_DECREF(i);
1060   }
1061   return result;
1062 }
1063 #endif
1064 
1065 #if PY_VERSION_HEX < 0x02050000
1066 #define PyInt_FromSize_t(x) PyInt_FromLong((long)x)
1067 #endif
1068 
1069 #if PY_VERSION_HEX < 0x02040000
1070 #define Py_VISIT(op)				\
1071   do { 						\
1072     if (op) {					\
1073       int vret = visit((op), arg);		\
1074       if (vret)					\
1075         return vret;				\
1076     }						\
1077   } while (0)
1078 #endif
1079 
1080 #if PY_VERSION_HEX < 0x02030000
1081 typedef struct {
1082   PyTypeObject type;
1083   PyNumberMethods as_number;
1084   PyMappingMethods as_mapping;
1085   PySequenceMethods as_sequence;
1086   PyBufferProcs as_buffer;
1087   PyObject *name, *slots;
1088 } PyHeapTypeObject;
1089 #endif
1090 
1091 #if PY_VERSION_HEX < 0x02030000
1092 typedef destructor freefunc;
1093 #endif
1094 
1095 #if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \
1096      (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \
1097      (PY_MAJOR_VERSION > 3))
1098 # define SWIGPY_USE_CAPSULE
1099 # define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
1100 #endif
1101 
1102 #if PY_VERSION_HEX < 0x03020000
1103 #define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
1104 #define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
1105 #define Py_hash_t long
1106 #endif
1107 
1108 /* -----------------------------------------------------------------------------
1109  * error manipulation
1110  * ----------------------------------------------------------------------------- */
1111 
1112 SWIGRUNTIME PyObject*
SWIG_Python_ErrorType(int code)1113 SWIG_Python_ErrorType(int code) {
1114   PyObject* type = 0;
1115   switch(code) {
1116   case SWIG_MemoryError:
1117     type = PyExc_MemoryError;
1118     break;
1119   case SWIG_IOError:
1120     type = PyExc_IOError;
1121     break;
1122   case SWIG_RuntimeError:
1123     type = PyExc_RuntimeError;
1124     break;
1125   case SWIG_IndexError:
1126     type = PyExc_IndexError;
1127     break;
1128   case SWIG_TypeError:
1129     type = PyExc_TypeError;
1130     break;
1131   case SWIG_DivisionByZero:
1132     type = PyExc_ZeroDivisionError;
1133     break;
1134   case SWIG_OverflowError:
1135     type = PyExc_OverflowError;
1136     break;
1137   case SWIG_SyntaxError:
1138     type = PyExc_SyntaxError;
1139     break;
1140   case SWIG_ValueError:
1141     type = PyExc_ValueError;
1142     break;
1143   case SWIG_SystemError:
1144     type = PyExc_SystemError;
1145     break;
1146   case SWIG_AttributeError:
1147     type = PyExc_AttributeError;
1148     break;
1149   default:
1150     type = PyExc_RuntimeError;
1151   }
1152   return type;
1153 }
1154 
1155 
1156 SWIGRUNTIME void
SWIG_Python_AddErrorMsg(const char * mesg)1157 SWIG_Python_AddErrorMsg(const char* mesg)
1158 {
1159   PyObject *type = 0;
1160   PyObject *value = 0;
1161   PyObject *traceback = 0;
1162 
1163   if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
1164   if (value) {
1165     char *tmp;
1166     PyObject *old_str = PyObject_Str(value);
1167     PyErr_Clear();
1168     Py_XINCREF(type);
1169 
1170     PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
1171     SWIG_Python_str_DelForPy3(tmp);
1172     Py_DECREF(old_str);
1173     Py_DECREF(value);
1174   } else {
1175     PyErr_SetString(PyExc_RuntimeError, mesg);
1176   }
1177 }
1178 
1179 #if defined(SWIG_PYTHON_NO_THREADS)
1180 #  if defined(SWIG_PYTHON_THREADS)
1181 #    undef SWIG_PYTHON_THREADS
1182 #  endif
1183 #endif
1184 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
1185 #  if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
1186 #    if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
1187 #      define SWIG_PYTHON_USE_GIL
1188 #    endif
1189 #  endif
1190 #  if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
1191 #    ifndef SWIG_PYTHON_INITIALIZE_THREADS
1192 #     define SWIG_PYTHON_INITIALIZE_THREADS  PyEval_InitThreads()
1193 #    endif
1194 #    ifdef __cplusplus /* C++ code */
1195        class SWIG_Python_Thread_Block {
1196          bool status;
1197          PyGILState_STATE state;
1198        public:
end()1199          void end() { if (status) { PyGILState_Release(state); status = false;} }
SWIG_Python_Thread_Block()1200          SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
~SWIG_Python_Thread_Block()1201          ~SWIG_Python_Thread_Block() { end(); }
1202        };
1203        class SWIG_Python_Thread_Allow {
1204          bool status;
1205          PyThreadState *save;
1206        public:
end()1207          void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
SWIG_Python_Thread_Allow()1208          SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
~SWIG_Python_Thread_Allow()1209          ~SWIG_Python_Thread_Allow() { end(); }
1210        };
1211 #      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   SWIG_Python_Thread_Block _swig_thread_block
1212 #      define SWIG_PYTHON_THREAD_END_BLOCK     _swig_thread_block.end()
1213 #      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   SWIG_Python_Thread_Allow _swig_thread_allow
1214 #      define SWIG_PYTHON_THREAD_END_ALLOW     _swig_thread_allow.end()
1215 #    else /* C code */
1216 #      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
1217 #      define SWIG_PYTHON_THREAD_END_BLOCK     PyGILState_Release(_swig_thread_block)
1218 #      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   PyThreadState *_swig_thread_allow = PyEval_SaveThread()
1219 #      define SWIG_PYTHON_THREAD_END_ALLOW     PyEval_RestoreThread(_swig_thread_allow)
1220 #    endif
1221 #  else /* Old thread way, not implemented, user must provide it */
1222 #    if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
1223 #      define SWIG_PYTHON_INITIALIZE_THREADS
1224 #    endif
1225 #    if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
1226 #      define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1227 #    endif
1228 #    if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
1229 #      define SWIG_PYTHON_THREAD_END_BLOCK
1230 #    endif
1231 #    if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
1232 #      define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1233 #    endif
1234 #    if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
1235 #      define SWIG_PYTHON_THREAD_END_ALLOW
1236 #    endif
1237 #  endif
1238 #else /* No thread support */
1239 #  define SWIG_PYTHON_INITIALIZE_THREADS
1240 #  define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1241 #  define SWIG_PYTHON_THREAD_END_BLOCK
1242 #  define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1243 #  define SWIG_PYTHON_THREAD_END_ALLOW
1244 #endif
1245 
1246 /* -----------------------------------------------------------------------------
1247  * Python API portion that goes into the runtime
1248  * ----------------------------------------------------------------------------- */
1249 
1250 #ifdef __cplusplus
1251 extern "C" {
1252 #endif
1253 
1254 /* -----------------------------------------------------------------------------
1255  * Constant declarations
1256  * ----------------------------------------------------------------------------- */
1257 
1258 /* Constant Types */
1259 #define SWIG_PY_POINTER 4
1260 #define SWIG_PY_BINARY  5
1261 
1262 /* Constant information structure */
1263 typedef struct swig_const_info {
1264   int type;
1265   char *name;
1266   long lvalue;
1267   double dvalue;
1268   void   *pvalue;
1269   swig_type_info **ptype;
1270 } swig_const_info;
1271 
1272 
1273 /* -----------------------------------------------------------------------------
1274  * Wrapper of PyInstanceMethod_New() used in Python 3
1275  * It is exported to the generated module, used for -fastproxy
1276  * ----------------------------------------------------------------------------- */
1277 #if PY_VERSION_HEX >= 0x03000000
SWIG_PyInstanceMethod_New(PyObject * SWIGUNUSEDPARM (self),PyObject * func)1278 SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
1279 {
1280   return PyInstanceMethod_New(func);
1281 }
1282 #else
SWIG_PyInstanceMethod_New(PyObject * SWIGUNUSEDPARM (self),PyObject * SWIGUNUSEDPARM (func))1283 SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func))
1284 {
1285   return NULL;
1286 }
1287 #endif
1288 
1289 #ifdef __cplusplus
1290 }
1291 #endif
1292 
1293 
1294 /* -----------------------------------------------------------------------------
1295  * pyrun.swg
1296  *
1297  * This file contains the runtime support for Python modules
1298  * and includes code for managing global variables and pointer
1299  * type checking.
1300  *
1301  * ----------------------------------------------------------------------------- */
1302 
1303 /* Common SWIG API */
1304 
1305 /* for raw pointers */
1306 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1307 #define SWIG_ConvertPtr(obj, pptr, type, flags)         SWIG_Python_ConvertPtr(obj, pptr, type, flags)
1308 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1309 
1310 #ifdef SWIGPYTHON_BUILTIN
1311 #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
1312 #else
1313 #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1314 #endif
1315 
1316 #define SWIG_InternalNewPointerObj(ptr, type, flags)	SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1317 
1318 #define SWIG_CheckImplicit(ty)                          SWIG_Python_CheckImplicit(ty)
1319 #define SWIG_AcquirePtr(ptr, src)                       SWIG_Python_AcquirePtr(ptr, src)
1320 #define swig_owntype                                    int
1321 
1322 /* for raw packed data */
1323 #define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1324 #define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
1325 
1326 /* for class or struct pointers */
1327 #define SWIG_ConvertInstance(obj, pptr, type, flags)    SWIG_ConvertPtr(obj, pptr, type, flags)
1328 #define SWIG_NewInstanceObj(ptr, type, flags)           SWIG_NewPointerObj(ptr, type, flags)
1329 
1330 /* for C or C++ function pointers */
1331 #define SWIG_ConvertFunctionPtr(obj, pptr, type)        SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1332 #define SWIG_NewFunctionPtrObj(ptr, type)               SWIG_Python_NewPointerObj(NULL, ptr, type, 0)
1333 
1334 /* for C++ member pointers, ie, member methods */
1335 #define SWIG_ConvertMember(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1336 #define SWIG_NewMemberObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
1337 
1338 
1339 /* Runtime API */
1340 
1341 #define SWIG_GetModule(clientdata)                      SWIG_Python_GetModule(clientdata)
1342 #define SWIG_SetModule(clientdata, pointer)             SWIG_Python_SetModule(pointer)
1343 #define SWIG_NewClientData(obj)                         SwigPyClientData_New(obj)
1344 
1345 #define SWIG_SetErrorObj                                SWIG_Python_SetErrorObj
1346 #define SWIG_SetErrorMsg                        	SWIG_Python_SetErrorMsg
1347 #define SWIG_ErrorType(code)                    	SWIG_Python_ErrorType(code)
1348 #define SWIG_Error(code, msg)            		SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1349 #define SWIG_fail                        		goto fail
1350 
1351 
1352 /* Runtime API implementation */
1353 
1354 /* Error manipulation */
1355 
1356 SWIGINTERN void
SWIG_Python_SetErrorObj(PyObject * errtype,PyObject * obj)1357 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1358   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1359   PyErr_SetObject(errtype, obj);
1360   Py_DECREF(obj);
1361   SWIG_PYTHON_THREAD_END_BLOCK;
1362 }
1363 
1364 SWIGINTERN void
SWIG_Python_SetErrorMsg(PyObject * errtype,const char * msg)1365 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1366   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1367   PyErr_SetString(errtype, msg);
1368   SWIG_PYTHON_THREAD_END_BLOCK;
1369 }
1370 
1371 #define SWIG_Python_Raise(obj, type, desc)  SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1372 
1373 /* Set a constant value */
1374 
1375 #if defined(SWIGPYTHON_BUILTIN)
1376 
1377 SWIGINTERN void
SwigPyBuiltin_AddPublicSymbol(PyObject * seq,const char * key)1378 SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
1379   PyObject *s = PyString_InternFromString(key);
1380   PyList_Append(seq, s);
1381   Py_DECREF(s);
1382 }
1383 
1384 SWIGINTERN void
SWIG_Python_SetConstant(PyObject * d,PyObject * public_interface,const char * name,PyObject * obj)1385 SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
1386 #if PY_VERSION_HEX < 0x02030000
1387   PyDict_SetItemString(d, (char *)name, obj);
1388 #else
1389   PyDict_SetItemString(d, name, obj);
1390 #endif
1391   Py_DECREF(obj);
1392   if (public_interface)
1393     SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1394 }
1395 
1396 #else
1397 
1398 SWIGINTERN void
SWIG_Python_SetConstant(PyObject * d,const char * name,PyObject * obj)1399 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1400 #if PY_VERSION_HEX < 0x02030000
1401   PyDict_SetItemString(d, (char *)name, obj);
1402 #else
1403   PyDict_SetItemString(d, name, obj);
1404 #endif
1405   Py_DECREF(obj);
1406 }
1407 
1408 #endif
1409 
1410 /* Append a value to the result obj */
1411 
1412 SWIGINTERN PyObject*
SWIG_Python_AppendOutput(PyObject * result,PyObject * obj)1413 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1414 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1415   if (!result) {
1416     result = obj;
1417   } else if (result == Py_None) {
1418     Py_DECREF(result);
1419     result = obj;
1420   } else {
1421     if (!PyList_Check(result)) {
1422       PyObject *o2 = result;
1423       result = PyList_New(1);
1424       PyList_SetItem(result, 0, o2);
1425     }
1426     PyList_Append(result,obj);
1427     Py_DECREF(obj);
1428   }
1429   return result;
1430 #else
1431   PyObject*   o2;
1432   PyObject*   o3;
1433   if (!result) {
1434     result = obj;
1435   } else if (result == Py_None) {
1436     Py_DECREF(result);
1437     result = obj;
1438   } else {
1439     if (!PyTuple_Check(result)) {
1440       o2 = result;
1441       result = PyTuple_New(1);
1442       PyTuple_SET_ITEM(result, 0, o2);
1443     }
1444     o3 = PyTuple_New(1);
1445     PyTuple_SET_ITEM(o3, 0, obj);
1446     o2 = result;
1447     result = PySequence_Concat(o2, o3);
1448     Py_DECREF(o2);
1449     Py_DECREF(o3);
1450   }
1451   return result;
1452 #endif
1453 }
1454 
1455 /* Unpack the argument tuple */
1456 
1457 SWIGINTERN Py_ssize_t
SWIG_Python_UnpackTuple(PyObject * args,const char * name,Py_ssize_t min,Py_ssize_t max,PyObject ** objs)1458 SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1459 {
1460   if (!args) {
1461     if (!min && !max) {
1462       return 1;
1463     } else {
1464       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1465 		   name, (min == max ? "" : "at least "), (int)min);
1466       return 0;
1467     }
1468   }
1469   if (!PyTuple_Check(args)) {
1470     if (min <= 1 && max >= 1) {
1471       Py_ssize_t i;
1472       objs[0] = args;
1473       for (i = 1; i < max; ++i) {
1474 	objs[i] = 0;
1475       }
1476       return 2;
1477     }
1478     PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1479     return 0;
1480   } else {
1481     Py_ssize_t l = PyTuple_GET_SIZE(args);
1482     if (l < min) {
1483       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1484 		   name, (min == max ? "" : "at least "), (int)min, (int)l);
1485       return 0;
1486     } else if (l > max) {
1487       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1488 		   name, (min == max ? "" : "at most "), (int)max, (int)l);
1489       return 0;
1490     } else {
1491       Py_ssize_t i;
1492       for (i = 0; i < l; ++i) {
1493 	objs[i] = PyTuple_GET_ITEM(args, i);
1494       }
1495       for (; l < max; ++l) {
1496 	objs[l] = 0;
1497       }
1498       return i + 1;
1499     }
1500   }
1501 }
1502 
1503 /* A functor is a function object with one single object argument */
1504 #if PY_VERSION_HEX >= 0x02020000
1505 #define SWIG_Python_CallFunctor(functor, obj)	        PyObject_CallFunctionObjArgs(functor, obj, NULL);
1506 #else
1507 #define SWIG_Python_CallFunctor(functor, obj)	        PyObject_CallFunction(functor, "O", obj);
1508 #endif
1509 
1510 /*
1511   Helper for static pointer initialization for both C and C++ code, for example
1512   static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1513 */
1514 #ifdef __cplusplus
1515 #define SWIG_STATIC_POINTER(var)  var
1516 #else
1517 #define SWIG_STATIC_POINTER(var)  var = 0; if (!var) var
1518 #endif
1519 
1520 /* -----------------------------------------------------------------------------
1521  * Pointer declarations
1522  * ----------------------------------------------------------------------------- */
1523 
1524 /* Flags for new pointer objects */
1525 #define SWIG_POINTER_NOSHADOW       (SWIG_POINTER_OWN      << 1)
1526 #define SWIG_POINTER_NEW            (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1527 
1528 #define SWIG_POINTER_IMPLICIT_CONV  (SWIG_POINTER_DISOWN   << 1)
1529 
1530 #define SWIG_BUILTIN_TP_INIT	    (SWIG_POINTER_OWN << 2)
1531 #define SWIG_BUILTIN_INIT	    (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)
1532 
1533 #ifdef __cplusplus
1534 extern "C" {
1535 #endif
1536 
1537 /*  How to access Py_None */
1538 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1539 #  ifndef SWIG_PYTHON_NO_BUILD_NONE
1540 #    ifndef SWIG_PYTHON_BUILD_NONE
1541 #      define SWIG_PYTHON_BUILD_NONE
1542 #    endif
1543 #  endif
1544 #endif
1545 
1546 #ifdef SWIG_PYTHON_BUILD_NONE
1547 #  ifdef Py_None
1548 #   undef Py_None
1549 #   define Py_None SWIG_Py_None()
1550 #  endif
1551 SWIGRUNTIMEINLINE PyObject *
_SWIG_Py_None(void)1552 _SWIG_Py_None(void)
1553 {
1554   PyObject *none = Py_BuildValue((char*)"");
1555   Py_DECREF(none);
1556   return none;
1557 }
1558 SWIGRUNTIME PyObject *
SWIG_Py_None(void)1559 SWIG_Py_None(void)
1560 {
1561   static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1562   return none;
1563 }
1564 #endif
1565 
1566 /* The python void return value */
1567 
1568 SWIGRUNTIMEINLINE PyObject *
SWIG_Py_Void(void)1569 SWIG_Py_Void(void)
1570 {
1571   PyObject *none = Py_None;
1572   Py_INCREF(none);
1573   return none;
1574 }
1575 
1576 /* SwigPyClientData */
1577 
1578 typedef struct {
1579   PyObject *klass;
1580   PyObject *newraw;
1581   PyObject *newargs;
1582   PyObject *destroy;
1583   int delargs;
1584   int implicitconv;
1585   PyTypeObject *pytype;
1586 } SwigPyClientData;
1587 
1588 SWIGRUNTIMEINLINE int
SWIG_Python_CheckImplicit(swig_type_info * ty)1589 SWIG_Python_CheckImplicit(swig_type_info *ty)
1590 {
1591   SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
1592   return data ? data->implicitconv : 0;
1593 }
1594 
1595 SWIGRUNTIMEINLINE PyObject *
SWIG_Python_ExceptionType(swig_type_info * desc)1596 SWIG_Python_ExceptionType(swig_type_info *desc) {
1597   SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
1598   PyObject *klass = data ? data->klass : 0;
1599   return (klass ? klass : PyExc_RuntimeError);
1600 }
1601 
1602 
1603 SWIGRUNTIME SwigPyClientData *
SwigPyClientData_New(PyObject * obj)1604 SwigPyClientData_New(PyObject* obj)
1605 {
1606   if (!obj) {
1607     return 0;
1608   } else {
1609     SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
1610     /* the klass element */
1611     data->klass = obj;
1612     Py_INCREF(data->klass);
1613     /* the newraw method and newargs arguments used to create a new raw instance */
1614     if (PyClass_Check(obj)) {
1615       data->newraw = 0;
1616       data->newargs = obj;
1617       Py_INCREF(obj);
1618     } else {
1619 #if (PY_VERSION_HEX < 0x02020000)
1620       data->newraw = 0;
1621 #else
1622       data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1623 #endif
1624       if (data->newraw) {
1625 	Py_INCREF(data->newraw);
1626 	data->newargs = PyTuple_New(1);
1627 	PyTuple_SetItem(data->newargs, 0, obj);
1628       } else {
1629 	data->newargs = obj;
1630       }
1631       Py_INCREF(data->newargs);
1632     }
1633     /* the destroy method, aka as the C++ delete method */
1634     data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1635     if (PyErr_Occurred()) {
1636       PyErr_Clear();
1637       data->destroy = 0;
1638     }
1639     if (data->destroy) {
1640       int flags;
1641       Py_INCREF(data->destroy);
1642       flags = PyCFunction_GET_FLAGS(data->destroy);
1643 #ifdef METH_O
1644       data->delargs = !(flags & (METH_O));
1645 #else
1646       data->delargs = 0;
1647 #endif
1648     } else {
1649       data->delargs = 0;
1650     }
1651     data->implicitconv = 0;
1652     data->pytype = 0;
1653     return data;
1654   }
1655 }
1656 
1657 SWIGRUNTIME void
SwigPyClientData_Del(SwigPyClientData * data)1658 SwigPyClientData_Del(SwigPyClientData *data) {
1659   Py_XDECREF(data->newraw);
1660   Py_XDECREF(data->newargs);
1661   Py_XDECREF(data->destroy);
1662 }
1663 
1664 /* =============== SwigPyObject =====================*/
1665 
1666 typedef struct {
1667   PyObject_HEAD
1668   void *ptr;
1669   swig_type_info *ty;
1670   int own;
1671   PyObject *next;
1672 #ifdef SWIGPYTHON_BUILTIN
1673   PyObject *dict;
1674 #endif
1675 } SwigPyObject;
1676 
1677 
1678 #ifdef SWIGPYTHON_BUILTIN
1679 
1680 SWIGRUNTIME PyObject *
SwigPyObject_get___dict__(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1681 SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1682 {
1683   SwigPyObject *sobj = (SwigPyObject *)v;
1684 
1685   if (!sobj->dict)
1686     sobj->dict = PyDict_New();
1687 
1688   Py_INCREF(sobj->dict);
1689   return sobj->dict;
1690 }
1691 
1692 #endif
1693 
1694 SWIGRUNTIME PyObject *
SwigPyObject_long(SwigPyObject * v)1695 SwigPyObject_long(SwigPyObject *v)
1696 {
1697   return PyLong_FromVoidPtr(v->ptr);
1698 }
1699 
1700 SWIGRUNTIME PyObject *
SwigPyObject_format(const char * fmt,SwigPyObject * v)1701 SwigPyObject_format(const char* fmt, SwigPyObject *v)
1702 {
1703   PyObject *res = NULL;
1704   PyObject *args = PyTuple_New(1);
1705   if (args) {
1706     if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1707       PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1708       if (ofmt) {
1709 #if PY_VERSION_HEX >= 0x03000000
1710 	res = PyUnicode_Format(ofmt,args);
1711 #else
1712 	res = PyString_Format(ofmt,args);
1713 #endif
1714 	Py_DECREF(ofmt);
1715       }
1716       Py_DECREF(args);
1717     }
1718   }
1719   return res;
1720 }
1721 
1722 SWIGRUNTIME PyObject *
SwigPyObject_oct(SwigPyObject * v)1723 SwigPyObject_oct(SwigPyObject *v)
1724 {
1725   return SwigPyObject_format("%o",v);
1726 }
1727 
1728 SWIGRUNTIME PyObject *
SwigPyObject_hex(SwigPyObject * v)1729 SwigPyObject_hex(SwigPyObject *v)
1730 {
1731   return SwigPyObject_format("%x",v);
1732 }
1733 
1734 SWIGRUNTIME PyObject *
1735 #ifdef METH_NOARGS
SwigPyObject_repr(SwigPyObject * v)1736 SwigPyObject_repr(SwigPyObject *v)
1737 #else
1738 SwigPyObject_repr(SwigPyObject *v, PyObject *args)
1739 #endif
1740 {
1741   const char *name = SWIG_TypePrettyName(v->ty);
1742   PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
1743   if (v->next) {
1744 # ifdef METH_NOARGS
1745     PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
1746 # else
1747     PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
1748 # endif
1749 # if PY_VERSION_HEX >= 0x03000000
1750     PyObject *joined = PyUnicode_Concat(repr, nrep);
1751     Py_DecRef(repr);
1752     Py_DecRef(nrep);
1753     repr = joined;
1754 # else
1755     PyString_ConcatAndDel(&repr,nrep);
1756 # endif
1757   }
1758   return repr;
1759 }
1760 
1761 SWIGRUNTIME int
SwigPyObject_compare(SwigPyObject * v,SwigPyObject * w)1762 SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
1763 {
1764   void *i = v->ptr;
1765   void *j = w->ptr;
1766   return (i < j) ? -1 : ((i > j) ? 1 : 0);
1767 }
1768 
1769 /* Added for Python 3.x, would it also be useful for Python 2.x? */
1770 SWIGRUNTIME PyObject*
SwigPyObject_richcompare(SwigPyObject * v,SwigPyObject * w,int op)1771 SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
1772 {
1773   PyObject* res;
1774   if( op != Py_EQ && op != Py_NE ) {
1775     Py_INCREF(Py_NotImplemented);
1776     return Py_NotImplemented;
1777   }
1778   res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
1779   return res;
1780 }
1781 
1782 
1783 SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void);
1784 
1785 #ifdef SWIGPYTHON_BUILTIN
1786 static swig_type_info *SwigPyObject_stype = 0;
1787 SWIGRUNTIME PyTypeObject*
SwigPyObject_type(void)1788 SwigPyObject_type(void) {
1789     SwigPyClientData *cd;
1790     assert(SwigPyObject_stype);
1791     cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
1792     assert(cd);
1793     assert(cd->pytype);
1794     return cd->pytype;
1795 }
1796 #else
1797 SWIGRUNTIME PyTypeObject*
SwigPyObject_type(void)1798 SwigPyObject_type(void) {
1799   static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
1800   return type;
1801 }
1802 #endif
1803 
1804 SWIGRUNTIMEINLINE int
SwigPyObject_Check(PyObject * op)1805 SwigPyObject_Check(PyObject *op) {
1806 #ifdef SWIGPYTHON_BUILTIN
1807   PyTypeObject *target_tp = SwigPyObject_type();
1808   if (PyType_IsSubtype(op->ob_type, target_tp))
1809     return 1;
1810   return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
1811 #else
1812   return (Py_TYPE(op) == SwigPyObject_type())
1813     || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0);
1814 #endif
1815 }
1816 
1817 SWIGRUNTIME PyObject *
1818 SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1819 
1820 SWIGRUNTIME void
SwigPyObject_dealloc(PyObject * v)1821 SwigPyObject_dealloc(PyObject *v)
1822 {
1823   SwigPyObject *sobj = (SwigPyObject *) v;
1824   PyObject *next = sobj->next;
1825   if (sobj->own == SWIG_POINTER_OWN) {
1826     swig_type_info *ty = sobj->ty;
1827     SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
1828     PyObject *destroy = data ? data->destroy : 0;
1829     if (destroy) {
1830       /* destroy is always a VARARGS method */
1831       PyObject *res;
1832 
1833       /* PyObject_CallFunction() has the potential to silently drop
1834          the active active exception.  In cases of unnamed temporary
1835          variable or where we just finished iterating over a generator
1836          StopIteration will be active right now, and this needs to
1837          remain true upon return from SwigPyObject_dealloc.  So save
1838          and restore. */
1839 
1840       PyObject *val = NULL, *type = NULL, *tb = NULL;
1841       PyErr_Fetch(&val, &type, &tb);
1842 
1843       if (data->delargs) {
1844         /* we need to create a temporary object to carry the destroy operation */
1845         PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1846         res = SWIG_Python_CallFunctor(destroy, tmp);
1847         Py_DECREF(tmp);
1848       } else {
1849         PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1850         PyObject *mself = PyCFunction_GET_SELF(destroy);
1851         res = ((*meth)(mself, v));
1852       }
1853       if (!res)
1854         PyErr_WriteUnraisable(destroy);
1855 
1856       PyErr_Restore(val, type, tb);
1857 
1858       Py_XDECREF(res);
1859     }
1860 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1861     else {
1862       const char *name = SWIG_TypePrettyName(ty);
1863       printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
1864     }
1865 #endif
1866   }
1867   Py_XDECREF(next);
1868   PyObject_DEL(v);
1869 }
1870 
1871 SWIGRUNTIME PyObject*
SwigPyObject_append(PyObject * v,PyObject * next)1872 SwigPyObject_append(PyObject* v, PyObject* next)
1873 {
1874   SwigPyObject *sobj = (SwigPyObject *) v;
1875 #ifndef METH_O
1876   PyObject *tmp = 0;
1877   if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1878   next = tmp;
1879 #endif
1880   if (!SwigPyObject_Check(next)) {
1881     PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject");
1882     return NULL;
1883   }
1884   sobj->next = next;
1885   Py_INCREF(next);
1886   return SWIG_Py_Void();
1887 }
1888 
1889 SWIGRUNTIME PyObject*
1890 #ifdef METH_NOARGS
SwigPyObject_next(PyObject * v)1891 SwigPyObject_next(PyObject* v)
1892 #else
1893 SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1894 #endif
1895 {
1896   SwigPyObject *sobj = (SwigPyObject *) v;
1897   if (sobj->next) {
1898     Py_INCREF(sobj->next);
1899     return sobj->next;
1900   } else {
1901     return SWIG_Py_Void();
1902   }
1903 }
1904 
1905 SWIGINTERN PyObject*
1906 #ifdef METH_NOARGS
SwigPyObject_disown(PyObject * v)1907 SwigPyObject_disown(PyObject *v)
1908 #else
1909 SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1910 #endif
1911 {
1912   SwigPyObject *sobj = (SwigPyObject *)v;
1913   sobj->own = 0;
1914   return SWIG_Py_Void();
1915 }
1916 
1917 SWIGINTERN PyObject*
1918 #ifdef METH_NOARGS
SwigPyObject_acquire(PyObject * v)1919 SwigPyObject_acquire(PyObject *v)
1920 #else
1921 SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1922 #endif
1923 {
1924   SwigPyObject *sobj = (SwigPyObject *)v;
1925   sobj->own = SWIG_POINTER_OWN;
1926   return SWIG_Py_Void();
1927 }
1928 
1929 SWIGINTERN PyObject*
SwigPyObject_own(PyObject * v,PyObject * args)1930 SwigPyObject_own(PyObject *v, PyObject *args)
1931 {
1932   PyObject *val = 0;
1933 #if (PY_VERSION_HEX < 0x02020000)
1934   if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1935 #elif (PY_VERSION_HEX < 0x02050000)
1936   if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1937 #else
1938   if (!PyArg_UnpackTuple(args, "own", 0, 1, &val))
1939 #endif
1940     {
1941       return NULL;
1942     }
1943   else
1944     {
1945       SwigPyObject *sobj = (SwigPyObject *)v;
1946       PyObject *obj = PyBool_FromLong(sobj->own);
1947       if (val) {
1948 #ifdef METH_NOARGS
1949 	if (PyObject_IsTrue(val)) {
1950 	  SwigPyObject_acquire(v);
1951 	} else {
1952 	  SwigPyObject_disown(v);
1953 	}
1954 #else
1955 	if (PyObject_IsTrue(val)) {
1956 	  SwigPyObject_acquire(v,args);
1957 	} else {
1958 	  SwigPyObject_disown(v,args);
1959 	}
1960 #endif
1961       }
1962       return obj;
1963     }
1964 }
1965 
1966 #ifdef METH_O
1967 static PyMethodDef
1968 swigobject_methods[] = {
1969   {(char *)"disown",  (PyCFunction)SwigPyObject_disown,  METH_NOARGS,  (char *)"releases ownership of the pointer"},
1970   {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS,  (char *)"acquires ownership of the pointer"},
1971   {(char *)"own",     (PyCFunction)SwigPyObject_own,     METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1972   {(char *)"append",  (PyCFunction)SwigPyObject_append,  METH_O,       (char *)"appends another 'this' object"},
1973   {(char *)"next",    (PyCFunction)SwigPyObject_next,    METH_NOARGS,  (char *)"returns the next 'this' object"},
1974   {(char *)"__repr__",(PyCFunction)SwigPyObject_repr,    METH_NOARGS,  (char *)"returns object representation"},
1975   {0, 0, 0, 0}
1976 };
1977 #else
1978 static PyMethodDef
1979 swigobject_methods[] = {
1980   {(char *)"disown",  (PyCFunction)SwigPyObject_disown,  METH_VARARGS,  (char *)"releases ownership of the pointer"},
1981   {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS,  (char *)"acquires ownership of the pointer"},
1982   {(char *)"own",     (PyCFunction)SwigPyObject_own,     METH_VARARGS,  (char *)"returns/sets ownership of the pointer"},
1983   {(char *)"append",  (PyCFunction)SwigPyObject_append,  METH_VARARGS,  (char *)"appends another 'this' object"},
1984   {(char *)"next",    (PyCFunction)SwigPyObject_next,    METH_VARARGS,  (char *)"returns the next 'this' object"},
1985   {(char *)"__repr__",(PyCFunction)SwigPyObject_repr,   METH_VARARGS,  (char *)"returns object representation"},
1986   {0, 0, 0, 0}
1987 };
1988 #endif
1989 
1990 #if PY_VERSION_HEX < 0x02020000
1991 SWIGINTERN PyObject *
SwigPyObject_getattr(SwigPyObject * sobj,char * name)1992 SwigPyObject_getattr(SwigPyObject *sobj,char *name)
1993 {
1994   return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1995 }
1996 #endif
1997 
1998 SWIGRUNTIME PyTypeObject*
SwigPyObject_TypeOnce(void)1999 SwigPyObject_TypeOnce(void) {
2000   static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
2001 
2002   static PyNumberMethods SwigPyObject_as_number = {
2003     (binaryfunc)0, /*nb_add*/
2004     (binaryfunc)0, /*nb_subtract*/
2005     (binaryfunc)0, /*nb_multiply*/
2006     /* nb_divide removed in Python 3 */
2007 #if PY_VERSION_HEX < 0x03000000
2008     (binaryfunc)0, /*nb_divide*/
2009 #endif
2010     (binaryfunc)0, /*nb_remainder*/
2011     (binaryfunc)0, /*nb_divmod*/
2012     (ternaryfunc)0,/*nb_power*/
2013     (unaryfunc)0,  /*nb_negative*/
2014     (unaryfunc)0,  /*nb_positive*/
2015     (unaryfunc)0,  /*nb_absolute*/
2016     (inquiry)0,    /*nb_nonzero*/
2017     0,		   /*nb_invert*/
2018     0,		   /*nb_lshift*/
2019     0,		   /*nb_rshift*/
2020     0,		   /*nb_and*/
2021     0,		   /*nb_xor*/
2022     0,		   /*nb_or*/
2023 #if PY_VERSION_HEX < 0x03000000
2024     0,   /*nb_coerce*/
2025 #endif
2026     (unaryfunc)SwigPyObject_long, /*nb_int*/
2027 #if PY_VERSION_HEX < 0x03000000
2028     (unaryfunc)SwigPyObject_long, /*nb_long*/
2029 #else
2030     0, /*nb_reserved*/
2031 #endif
2032     (unaryfunc)0,                 /*nb_float*/
2033 #if PY_VERSION_HEX < 0x03000000
2034     (unaryfunc)SwigPyObject_oct,  /*nb_oct*/
2035     (unaryfunc)SwigPyObject_hex,  /*nb_hex*/
2036 #endif
2037 #if PY_VERSION_HEX >= 0x03050000 /* 3.5 */
2038     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */
2039 #elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */
2040     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
2041 #elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
2042     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
2043 #elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */
2044     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
2045 #elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */
2046     0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
2047 #endif
2048   };
2049 
2050   static PyTypeObject swigpyobject_type;
2051   static int type_init = 0;
2052   if (!type_init) {
2053     const PyTypeObject tmp = {
2054 #if PY_VERSION_HEX >= 0x03000000
2055       PyVarObject_HEAD_INIT(NULL, 0)
2056 #else
2057       PyObject_HEAD_INIT(NULL)
2058       0,                                    /* ob_size */
2059 #endif
2060       (char *)"SwigPyObject",               /* tp_name */
2061       sizeof(SwigPyObject),                 /* tp_basicsize */
2062       0,                                    /* tp_itemsize */
2063       (destructor)SwigPyObject_dealloc,     /* tp_dealloc */
2064       0,                                    /* tp_print */
2065 #if PY_VERSION_HEX < 0x02020000
2066       (getattrfunc)SwigPyObject_getattr,    /* tp_getattr */
2067 #else
2068       (getattrfunc)0,                       /* tp_getattr */
2069 #endif
2070       (setattrfunc)0,                       /* tp_setattr */
2071 #if PY_VERSION_HEX >= 0x03000000
2072       0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
2073 #else
2074       (cmpfunc)SwigPyObject_compare,        /* tp_compare */
2075 #endif
2076       (reprfunc)SwigPyObject_repr,          /* tp_repr */
2077       &SwigPyObject_as_number,              /* tp_as_number */
2078       0,                                    /* tp_as_sequence */
2079       0,                                    /* tp_as_mapping */
2080       (hashfunc)0,                          /* tp_hash */
2081       (ternaryfunc)0,                       /* tp_call */
2082       0,                                    /* tp_str */
2083       PyObject_GenericGetAttr,              /* tp_getattro */
2084       0,                                    /* tp_setattro */
2085       0,                                    /* tp_as_buffer */
2086       Py_TPFLAGS_DEFAULT,                   /* tp_flags */
2087       swigobject_doc,                       /* tp_doc */
2088       0,                                    /* tp_traverse */
2089       0,                                    /* tp_clear */
2090       (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
2091       0,                                    /* tp_weaklistoffset */
2092 #if PY_VERSION_HEX >= 0x02020000
2093       0,                                    /* tp_iter */
2094       0,                                    /* tp_iternext */
2095       swigobject_methods,                   /* tp_methods */
2096       0,                                    /* tp_members */
2097       0,                                    /* tp_getset */
2098       0,                                    /* tp_base */
2099       0,                                    /* tp_dict */
2100       0,                                    /* tp_descr_get */
2101       0,                                    /* tp_descr_set */
2102       0,                                    /* tp_dictoffset */
2103       0,                                    /* tp_init */
2104       0,                                    /* tp_alloc */
2105       0,                                    /* tp_new */
2106       0,                                    /* tp_free */
2107       0,                                    /* tp_is_gc */
2108       0,                                    /* tp_bases */
2109       0,                                    /* tp_mro */
2110       0,                                    /* tp_cache */
2111       0,                                    /* tp_subclasses */
2112       0,                                    /* tp_weaklist */
2113 #endif
2114 #if PY_VERSION_HEX >= 0x02030000
2115       0,                                    /* tp_del */
2116 #endif
2117 #if PY_VERSION_HEX >= 0x02060000
2118       0,                                    /* tp_version_tag */
2119 #endif
2120 #if PY_VERSION_HEX >= 0x03040000
2121       0,                                    /* tp_finalize */
2122 #endif
2123 #ifdef COUNT_ALLOCS
2124       0,                                    /* tp_allocs */
2125       0,                                    /* tp_frees */
2126       0,                                    /* tp_maxalloc */
2127 #if PY_VERSION_HEX >= 0x02050000
2128       0,                                    /* tp_prev */
2129 #endif
2130       0                                     /* tp_next */
2131 #endif
2132     };
2133     swigpyobject_type = tmp;
2134     type_init = 1;
2135 #if PY_VERSION_HEX < 0x02020000
2136     swigpyobject_type.ob_type = &PyType_Type;
2137 #else
2138     if (PyType_Ready(&swigpyobject_type) < 0)
2139       return NULL;
2140 #endif
2141   }
2142   return &swigpyobject_type;
2143 }
2144 
2145 SWIGRUNTIME PyObject *
SwigPyObject_New(void * ptr,swig_type_info * ty,int own)2146 SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
2147 {
2148   SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type());
2149   if (sobj) {
2150     sobj->ptr  = ptr;
2151     sobj->ty   = ty;
2152     sobj->own  = own;
2153     sobj->next = 0;
2154   }
2155   return (PyObject *)sobj;
2156 }
2157 
2158 /* -----------------------------------------------------------------------------
2159  * Implements a simple Swig Packed type, and use it instead of string
2160  * ----------------------------------------------------------------------------- */
2161 
2162 typedef struct {
2163   PyObject_HEAD
2164   void *pack;
2165   swig_type_info *ty;
2166   size_t size;
2167 } SwigPyPacked;
2168 
2169 SWIGRUNTIME int
SwigPyPacked_print(SwigPyPacked * v,FILE * fp,int SWIGUNUSEDPARM (flags))2170 SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
2171 {
2172   char result[SWIG_BUFFER_SIZE];
2173   fputs("<Swig Packed ", fp);
2174   if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2175     fputs("at ", fp);
2176     fputs(result, fp);
2177   }
2178   fputs(v->ty->name,fp);
2179   fputs(">", fp);
2180   return 0;
2181 }
2182 
2183 SWIGRUNTIME PyObject *
SwigPyPacked_repr(SwigPyPacked * v)2184 SwigPyPacked_repr(SwigPyPacked *v)
2185 {
2186   char result[SWIG_BUFFER_SIZE];
2187   if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2188     return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
2189   } else {
2190     return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name);
2191   }
2192 }
2193 
2194 SWIGRUNTIME PyObject *
SwigPyPacked_str(SwigPyPacked * v)2195 SwigPyPacked_str(SwigPyPacked *v)
2196 {
2197   char result[SWIG_BUFFER_SIZE];
2198   if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
2199     return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name);
2200   } else {
2201     return SWIG_Python_str_FromChar(v->ty->name);
2202   }
2203 }
2204 
2205 SWIGRUNTIME int
SwigPyPacked_compare(SwigPyPacked * v,SwigPyPacked * w)2206 SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
2207 {
2208   size_t i = v->size;
2209   size_t j = w->size;
2210   int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
2211   return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
2212 }
2213 
2214 SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void);
2215 
2216 SWIGRUNTIME PyTypeObject*
SwigPyPacked_type(void)2217 SwigPyPacked_type(void) {
2218   static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
2219   return type;
2220 }
2221 
2222 SWIGRUNTIMEINLINE int
SwigPyPacked_Check(PyObject * op)2223 SwigPyPacked_Check(PyObject *op) {
2224   return ((op)->ob_type == SwigPyPacked_TypeOnce())
2225     || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
2226 }
2227 
2228 SWIGRUNTIME void
SwigPyPacked_dealloc(PyObject * v)2229 SwigPyPacked_dealloc(PyObject *v)
2230 {
2231   if (SwigPyPacked_Check(v)) {
2232     SwigPyPacked *sobj = (SwigPyPacked *) v;
2233     free(sobj->pack);
2234   }
2235   PyObject_DEL(v);
2236 }
2237 
2238 SWIGRUNTIME PyTypeObject*
SwigPyPacked_TypeOnce(void)2239 SwigPyPacked_TypeOnce(void) {
2240   static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
2241   static PyTypeObject swigpypacked_type;
2242   static int type_init = 0;
2243   if (!type_init) {
2244     const PyTypeObject tmp = {
2245 #if PY_VERSION_HEX>=0x03000000
2246       PyVarObject_HEAD_INIT(NULL, 0)
2247 #else
2248       PyObject_HEAD_INIT(NULL)
2249       0,                                    /* ob_size */
2250 #endif
2251       (char *)"SwigPyPacked",               /* tp_name */
2252       sizeof(SwigPyPacked),                 /* tp_basicsize */
2253       0,                                    /* tp_itemsize */
2254       (destructor)SwigPyPacked_dealloc,     /* tp_dealloc */
2255       (printfunc)SwigPyPacked_print,        /* tp_print */
2256       (getattrfunc)0,                       /* tp_getattr */
2257       (setattrfunc)0,                       /* tp_setattr */
2258 #if PY_VERSION_HEX>=0x03000000
2259       0, /* tp_reserved in 3.0.1 */
2260 #else
2261       (cmpfunc)SwigPyPacked_compare,        /* tp_compare */
2262 #endif
2263       (reprfunc)SwigPyPacked_repr,          /* tp_repr */
2264       0,                                    /* tp_as_number */
2265       0,                                    /* tp_as_sequence */
2266       0,                                    /* tp_as_mapping */
2267       (hashfunc)0,                          /* tp_hash */
2268       (ternaryfunc)0,                       /* tp_call */
2269       (reprfunc)SwigPyPacked_str,           /* tp_str */
2270       PyObject_GenericGetAttr,              /* tp_getattro */
2271       0,                                    /* tp_setattro */
2272       0,                                    /* tp_as_buffer */
2273       Py_TPFLAGS_DEFAULT,                   /* tp_flags */
2274       swigpacked_doc,                       /* tp_doc */
2275       0,                                    /* tp_traverse */
2276       0,                                    /* tp_clear */
2277       0,                                    /* tp_richcompare */
2278       0,                                    /* tp_weaklistoffset */
2279 #if PY_VERSION_HEX >= 0x02020000
2280       0,                                    /* tp_iter */
2281       0,                                    /* tp_iternext */
2282       0,                                    /* tp_methods */
2283       0,                                    /* tp_members */
2284       0,                                    /* tp_getset */
2285       0,                                    /* tp_base */
2286       0,                                    /* tp_dict */
2287       0,                                    /* tp_descr_get */
2288       0,                                    /* tp_descr_set */
2289       0,                                    /* tp_dictoffset */
2290       0,                                    /* tp_init */
2291       0,                                    /* tp_alloc */
2292       0,                                    /* tp_new */
2293       0,                                    /* tp_free */
2294       0,                                    /* tp_is_gc */
2295       0,                                    /* tp_bases */
2296       0,                                    /* tp_mro */
2297       0,                                    /* tp_cache */
2298       0,                                    /* tp_subclasses */
2299       0,                                    /* tp_weaklist */
2300 #endif
2301 #if PY_VERSION_HEX >= 0x02030000
2302       0,                                    /* tp_del */
2303 #endif
2304 #if PY_VERSION_HEX >= 0x02060000
2305       0,                                    /* tp_version_tag */
2306 #endif
2307 #if PY_VERSION_HEX >= 0x03040000
2308       0,                                    /* tp_finalize */
2309 #endif
2310 #ifdef COUNT_ALLOCS
2311       0,                                    /* tp_allocs */
2312       0,                                    /* tp_frees */
2313       0,                                    /* tp_maxalloc */
2314 #if PY_VERSION_HEX >= 0x02050000
2315       0,                                    /* tp_prev */
2316 #endif
2317       0                                     /* tp_next */
2318 #endif
2319     };
2320     swigpypacked_type = tmp;
2321     type_init = 1;
2322 #if PY_VERSION_HEX < 0x02020000
2323     swigpypacked_type.ob_type = &PyType_Type;
2324 #else
2325     if (PyType_Ready(&swigpypacked_type) < 0)
2326       return NULL;
2327 #endif
2328   }
2329   return &swigpypacked_type;
2330 }
2331 
2332 SWIGRUNTIME PyObject *
SwigPyPacked_New(void * ptr,size_t size,swig_type_info * ty)2333 SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
2334 {
2335   SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type());
2336   if (sobj) {
2337     void *pack = malloc(size);
2338     if (pack) {
2339       memcpy(pack, ptr, size);
2340       sobj->pack = pack;
2341       sobj->ty   = ty;
2342       sobj->size = size;
2343     } else {
2344       PyObject_DEL((PyObject *) sobj);
2345       sobj = 0;
2346     }
2347   }
2348   return (PyObject *) sobj;
2349 }
2350 
2351 SWIGRUNTIME swig_type_info *
SwigPyPacked_UnpackData(PyObject * obj,void * ptr,size_t size)2352 SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
2353 {
2354   if (SwigPyPacked_Check(obj)) {
2355     SwigPyPacked *sobj = (SwigPyPacked *)obj;
2356     if (sobj->size != size) return 0;
2357     memcpy(ptr, sobj->pack, size);
2358     return sobj->ty;
2359   } else {
2360     return 0;
2361   }
2362 }
2363 
2364 /* -----------------------------------------------------------------------------
2365  * pointers/data manipulation
2366  * ----------------------------------------------------------------------------- */
2367 
2368 SWIGRUNTIMEINLINE PyObject *
_SWIG_This(void)2369 _SWIG_This(void)
2370 {
2371     return SWIG_Python_str_FromChar("this");
2372 }
2373 
2374 static PyObject *swig_this = NULL;
2375 
2376 SWIGRUNTIME PyObject *
SWIG_This(void)2377 SWIG_This(void)
2378 {
2379   if (swig_this == NULL)
2380     swig_this = _SWIG_This();
2381   return swig_this;
2382 }
2383 
2384 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
2385 
2386 /* TODO: I don't know how to implement the fast getset in Python 3 right now */
2387 #if PY_VERSION_HEX>=0x03000000
2388 #define SWIG_PYTHON_SLOW_GETSET_THIS
2389 #endif
2390 
2391 SWIGRUNTIME SwigPyObject *
SWIG_Python_GetSwigThis(PyObject * pyobj)2392 SWIG_Python_GetSwigThis(PyObject *pyobj)
2393 {
2394   PyObject *obj;
2395 
2396   if (SwigPyObject_Check(pyobj))
2397     return (SwigPyObject *) pyobj;
2398 
2399 #ifdef SWIGPYTHON_BUILTIN
2400   (void)obj;
2401 # ifdef PyWeakref_CheckProxy
2402   if (PyWeakref_CheckProxy(pyobj)) {
2403     pyobj = PyWeakref_GET_OBJECT(pyobj);
2404     if (pyobj && SwigPyObject_Check(pyobj))
2405       return (SwigPyObject*) pyobj;
2406   }
2407 # endif
2408   return NULL;
2409 #else
2410 
2411   obj = 0;
2412 
2413 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
2414   if (PyInstance_Check(pyobj)) {
2415     obj = _PyInstance_Lookup(pyobj, SWIG_This());
2416   } else {
2417     PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2418     if (dictptr != NULL) {
2419       PyObject *dict = *dictptr;
2420       obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2421     } else {
2422 #ifdef PyWeakref_CheckProxy
2423       if (PyWeakref_CheckProxy(pyobj)) {
2424 	PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
2425 	return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2426       }
2427 #endif
2428       obj = PyObject_GetAttr(pyobj,SWIG_This());
2429       if (obj) {
2430 	Py_DECREF(obj);
2431       } else {
2432 	if (PyErr_Occurred()) PyErr_Clear();
2433 	return 0;
2434       }
2435     }
2436   }
2437 #else
2438   obj = PyObject_GetAttr(pyobj,SWIG_This());
2439   if (obj) {
2440     Py_DECREF(obj);
2441   } else {
2442     if (PyErr_Occurred()) PyErr_Clear();
2443     return 0;
2444   }
2445 #endif
2446   if (obj && !SwigPyObject_Check(obj)) {
2447     /* a PyObject is called 'this', try to get the 'real this'
2448        SwigPyObject from it */
2449     return SWIG_Python_GetSwigThis(obj);
2450   }
2451   return (SwigPyObject *)obj;
2452 #endif
2453 }
2454 
2455 /* Acquire a pointer value */
2456 
2457 SWIGRUNTIME int
SWIG_Python_AcquirePtr(PyObject * obj,int own)2458 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
2459   if (own == SWIG_POINTER_OWN) {
2460     SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
2461     if (sobj) {
2462       int oldown = sobj->own;
2463       sobj->own = own;
2464       return oldown;
2465     }
2466   }
2467   return 0;
2468 }
2469 
2470 /* Convert a pointer value */
2471 
2472 SWIGRUNTIME int
SWIG_Python_ConvertPtrAndOwn(PyObject * obj,void ** ptr,swig_type_info * ty,int flags,int * own)2473 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
2474   int res;
2475   SwigPyObject *sobj;
2476   int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0;
2477 
2478   if (!obj)
2479     return SWIG_ERROR;
2480   if (obj == Py_None && !implicit_conv) {
2481     if (ptr)
2482       *ptr = 0;
2483     return SWIG_OK;
2484   }
2485 
2486   res = SWIG_ERROR;
2487 
2488   sobj = SWIG_Python_GetSwigThis(obj);
2489   if (own)
2490     *own = 0;
2491   while (sobj) {
2492     void *vptr = sobj->ptr;
2493     if (ty) {
2494       swig_type_info *to = sobj->ty;
2495       if (to == ty) {
2496         /* no type cast needed */
2497         if (ptr) *ptr = vptr;
2498         break;
2499       } else {
2500         swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2501         if (!tc) {
2502           sobj = (SwigPyObject *)sobj->next;
2503         } else {
2504           if (ptr) {
2505             int newmemory = 0;
2506             *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2507             if (newmemory == SWIG_CAST_NEW_MEMORY) {
2508               assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
2509               if (own)
2510                 *own = *own | SWIG_CAST_NEW_MEMORY;
2511             }
2512           }
2513           break;
2514         }
2515       }
2516     } else {
2517       if (ptr) *ptr = vptr;
2518       break;
2519     }
2520   }
2521   if (sobj) {
2522     if (own)
2523       *own = *own | sobj->own;
2524     if (flags & SWIG_POINTER_DISOWN) {
2525       sobj->own = 0;
2526     }
2527     res = SWIG_OK;
2528   } else {
2529     if (implicit_conv) {
2530       SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
2531       if (data && !data->implicitconv) {
2532         PyObject *klass = data->klass;
2533         if (klass) {
2534           PyObject *impconv;
2535           data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2536           impconv = SWIG_Python_CallFunctor(klass, obj);
2537           data->implicitconv = 0;
2538           if (PyErr_Occurred()) {
2539             PyErr_Clear();
2540             impconv = 0;
2541           }
2542           if (impconv) {
2543             SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
2544             if (iobj) {
2545               void *vptr;
2546               res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2547               if (SWIG_IsOK(res)) {
2548                 if (ptr) {
2549                   *ptr = vptr;
2550                   /* transfer the ownership to 'ptr' */
2551                   iobj->own = 0;
2552                   res = SWIG_AddCast(res);
2553                   res = SWIG_AddNewMask(res);
2554                 } else {
2555                   res = SWIG_AddCast(res);
2556                 }
2557               }
2558             }
2559             Py_DECREF(impconv);
2560           }
2561         }
2562       }
2563     }
2564     if (!SWIG_IsOK(res) && obj == Py_None) {
2565       if (ptr)
2566         *ptr = 0;
2567       if (PyErr_Occurred())
2568         PyErr_Clear();
2569       res = SWIG_OK;
2570     }
2571   }
2572   return res;
2573 }
2574 
2575 /* Convert a function ptr value */
2576 
2577 SWIGRUNTIME int
SWIG_Python_ConvertFunctionPtr(PyObject * obj,void ** ptr,swig_type_info * ty)2578 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2579   if (!PyCFunction_Check(obj)) {
2580     return SWIG_ConvertPtr(obj, ptr, ty, 0);
2581   } else {
2582     void *vptr = 0;
2583     swig_cast_info *tc;
2584 
2585     /* here we get the method pointer for callbacks */
2586     const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2587     const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2588     if (desc)
2589       desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2590     if (!desc)
2591       return SWIG_ERROR;
2592     tc = SWIG_TypeCheck(desc,ty);
2593     if (tc) {
2594       int newmemory = 0;
2595       *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2596       assert(!newmemory); /* newmemory handling not yet implemented */
2597     } else {
2598       return SWIG_ERROR;
2599     }
2600     return SWIG_OK;
2601   }
2602 }
2603 
2604 /* Convert a packed value value */
2605 
2606 SWIGRUNTIME int
SWIG_Python_ConvertPacked(PyObject * obj,void * ptr,size_t sz,swig_type_info * ty)2607 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2608   swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
2609   if (!to) return SWIG_ERROR;
2610   if (ty) {
2611     if (to != ty) {
2612       /* check type cast? */
2613       swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2614       if (!tc) return SWIG_ERROR;
2615     }
2616   }
2617   return SWIG_OK;
2618 }
2619 
2620 /* -----------------------------------------------------------------------------
2621  * Create a new pointer object
2622  * ----------------------------------------------------------------------------- */
2623 
2624 /*
2625   Create a new instance object, without calling __init__, and set the
2626   'this' attribute.
2627 */
2628 
2629 SWIGRUNTIME PyObject*
SWIG_Python_NewShadowInstance(SwigPyClientData * data,PyObject * swig_this)2630 SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
2631 {
2632 #if (PY_VERSION_HEX >= 0x02020000)
2633   PyObject *inst = 0;
2634   PyObject *newraw = data->newraw;
2635   if (newraw) {
2636     inst = PyObject_Call(newraw, data->newargs, NULL);
2637     if (inst) {
2638 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2639       PyObject **dictptr = _PyObject_GetDictPtr(inst);
2640       if (dictptr != NULL) {
2641 	PyObject *dict = *dictptr;
2642 	if (dict == NULL) {
2643 	  dict = PyDict_New();
2644 	  *dictptr = dict;
2645 	  PyDict_SetItem(dict, SWIG_This(), swig_this);
2646 	}
2647       }
2648 #else
2649       PyObject *key = SWIG_This();
2650       PyObject_SetAttr(inst, key, swig_this);
2651 #endif
2652     }
2653   } else {
2654 #if PY_VERSION_HEX >= 0x03000000
2655     inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None);
2656     if (inst) {
2657       PyObject_SetAttr(inst, SWIG_This(), swig_this);
2658       Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
2659     }
2660 #else
2661     PyObject *dict = PyDict_New();
2662     if (dict) {
2663       PyDict_SetItem(dict, SWIG_This(), swig_this);
2664       inst = PyInstance_NewRaw(data->newargs, dict);
2665       Py_DECREF(dict);
2666     }
2667 #endif
2668   }
2669   return inst;
2670 #else
2671 #if (PY_VERSION_HEX >= 0x02010000)
2672   PyObject *inst = 0;
2673   PyObject *dict = PyDict_New();
2674   if (dict) {
2675     PyDict_SetItem(dict, SWIG_This(), swig_this);
2676     inst = PyInstance_NewRaw(data->newargs, dict);
2677     Py_DECREF(dict);
2678   }
2679   return (PyObject *) inst;
2680 #else
2681   PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2682   if (inst == NULL) {
2683     return NULL;
2684   }
2685   inst->in_class = (PyClassObject *)data->newargs;
2686   Py_INCREF(inst->in_class);
2687   inst->in_dict = PyDict_New();
2688   if (inst->in_dict == NULL) {
2689     Py_DECREF(inst);
2690     return NULL;
2691   }
2692 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2693   inst->in_weakreflist = NULL;
2694 #endif
2695 #ifdef Py_TPFLAGS_GC
2696   PyObject_GC_Init(inst);
2697 #endif
2698   PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2699   return (PyObject *) inst;
2700 #endif
2701 #endif
2702 }
2703 
2704 SWIGRUNTIME void
SWIG_Python_SetSwigThis(PyObject * inst,PyObject * swig_this)2705 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2706 {
2707  PyObject *dict;
2708 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2709  PyObject **dictptr = _PyObject_GetDictPtr(inst);
2710  if (dictptr != NULL) {
2711    dict = *dictptr;
2712    if (dict == NULL) {
2713      dict = PyDict_New();
2714      *dictptr = dict;
2715    }
2716    PyDict_SetItem(dict, SWIG_This(), swig_this);
2717    return;
2718  }
2719 #endif
2720  dict = PyObject_GetAttrString(inst, (char*)"__dict__");
2721  PyDict_SetItem(dict, SWIG_This(), swig_this);
2722  Py_DECREF(dict);
2723 }
2724 
2725 
2726 SWIGINTERN PyObject *
SWIG_Python_InitShadowInstance(PyObject * args)2727 SWIG_Python_InitShadowInstance(PyObject *args) {
2728   PyObject *obj[2];
2729   if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
2730     return NULL;
2731   } else {
2732     SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2733     if (sthis) {
2734       SwigPyObject_append((PyObject*) sthis, obj[1]);
2735     } else {
2736       SWIG_Python_SetSwigThis(obj[0], obj[1]);
2737     }
2738     return SWIG_Py_Void();
2739   }
2740 }
2741 
2742 /* Create a new pointer object */
2743 
2744 SWIGRUNTIME PyObject *
SWIG_Python_NewPointerObj(PyObject * self,void * ptr,swig_type_info * type,int flags)2745 SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
2746   SwigPyClientData *clientdata;
2747   PyObject * robj;
2748   int own;
2749 
2750   if (!ptr)
2751     return SWIG_Py_Void();
2752 
2753   clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
2754   own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2755   if (clientdata && clientdata->pytype) {
2756     SwigPyObject *newobj;
2757     if (flags & SWIG_BUILTIN_TP_INIT) {
2758       newobj = (SwigPyObject*) self;
2759       if (newobj->ptr) {
2760         PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2761         while (newobj->next)
2762 	  newobj = (SwigPyObject *) newobj->next;
2763         newobj->next = next_self;
2764         newobj = (SwigPyObject *)next_self;
2765 #ifdef SWIGPYTHON_BUILTIN
2766         newobj->dict = 0;
2767 #endif
2768       }
2769     } else {
2770       newobj = PyObject_New(SwigPyObject, clientdata->pytype);
2771 #ifdef SWIGPYTHON_BUILTIN
2772       newobj->dict = 0;
2773 #endif
2774     }
2775     if (newobj) {
2776       newobj->ptr = ptr;
2777       newobj->ty = type;
2778       newobj->own = own;
2779       newobj->next = 0;
2780       return (PyObject*) newobj;
2781     }
2782     return SWIG_Py_Void();
2783   }
2784 
2785   assert(!(flags & SWIG_BUILTIN_TP_INIT));
2786 
2787   robj = SwigPyObject_New(ptr, type, own);
2788   if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2789     PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2790     Py_DECREF(robj);
2791     robj = inst;
2792   }
2793   return robj;
2794 }
2795 
2796 /* Create a new packed object */
2797 
2798 SWIGRUNTIMEINLINE PyObject *
SWIG_Python_NewPackedObj(void * ptr,size_t sz,swig_type_info * type)2799 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2800   return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2801 }
2802 
2803 /* -----------------------------------------------------------------------------*
2804  *  Get type list
2805  * -----------------------------------------------------------------------------*/
2806 
2807 #ifdef SWIG_LINK_RUNTIME
2808 void *SWIG_ReturnGlobalTypeList(void *);
2809 #endif
2810 
2811 SWIGRUNTIME swig_module_info *
SWIG_Python_GetModule(void * SWIGUNUSEDPARM (clientdata))2812 SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
2813   static void *type_pointer = (void *)0;
2814   /* first check if module already created */
2815   if (!type_pointer) {
2816 #ifdef SWIG_LINK_RUNTIME
2817     type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2818 #else
2819 # ifdef SWIGPY_USE_CAPSULE
2820     type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
2821 # else
2822     type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2823 				    (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2824 # endif
2825     if (PyErr_Occurred()) {
2826       PyErr_Clear();
2827       type_pointer = (void *)0;
2828     }
2829 #endif
2830   }
2831   return (swig_module_info *) type_pointer;
2832 }
2833 
2834 #if PY_MAJOR_VERSION < 2
2835 /* PyModule_AddObject function was introduced in Python 2.0.  The following function
2836    is copied out of Python/modsupport.c in python version 2.3.4 */
2837 SWIGINTERN int
PyModule_AddObject(PyObject * m,char * name,PyObject * o)2838 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2839 {
2840   PyObject *dict;
2841   if (!PyModule_Check(m)) {
2842     PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg");
2843     return SWIG_ERROR;
2844   }
2845   if (!o) {
2846     PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value");
2847     return SWIG_ERROR;
2848   }
2849 
2850   dict = PyModule_GetDict(m);
2851   if (dict == NULL) {
2852     /* Internal error -- modules must have a dict! */
2853     PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2854 		 PyModule_GetName(m));
2855     return SWIG_ERROR;
2856   }
2857   if (PyDict_SetItemString(dict, name, o))
2858     return SWIG_ERROR;
2859   Py_DECREF(o);
2860   return SWIG_OK;
2861 }
2862 #endif
2863 
2864 SWIGRUNTIME void
2865 #ifdef SWIGPY_USE_CAPSULE
SWIG_Python_DestroyModule(PyObject * obj)2866 SWIG_Python_DestroyModule(PyObject *obj)
2867 #else
2868 SWIG_Python_DestroyModule(void *vptr)
2869 #endif
2870 {
2871 #ifdef SWIGPY_USE_CAPSULE
2872   swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
2873 #else
2874   swig_module_info *swig_module = (swig_module_info *) vptr;
2875 #endif
2876   swig_type_info **types = swig_module->types;
2877   size_t i;
2878   for (i =0; i < swig_module->size; ++i) {
2879     swig_type_info *ty = types[i];
2880     if (ty->owndata) {
2881       SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
2882       if (data) SwigPyClientData_Del(data);
2883     }
2884   }
2885   Py_DECREF(SWIG_This());
2886   swig_this = NULL;
2887 }
2888 
2889 SWIGRUNTIME void
SWIG_Python_SetModule(swig_module_info * swig_module)2890 SWIG_Python_SetModule(swig_module_info *swig_module) {
2891 #if PY_VERSION_HEX >= 0x03000000
2892  /* Add a dummy module object into sys.modules */
2893   PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION);
2894 #else
2895   static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */
2896   PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
2897 #endif
2898 #ifdef SWIGPY_USE_CAPSULE
2899   PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
2900   if (pointer && module) {
2901     PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2902   } else {
2903     Py_XDECREF(pointer);
2904   }
2905 #else
2906   PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2907   if (pointer && module) {
2908     PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2909   } else {
2910     Py_XDECREF(pointer);
2911   }
2912 #endif
2913 }
2914 
2915 /* The python cached type query */
2916 SWIGRUNTIME PyObject *
SWIG_Python_TypeCache(void)2917 SWIG_Python_TypeCache(void) {
2918   static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2919   return cache;
2920 }
2921 
2922 SWIGRUNTIME swig_type_info *
SWIG_Python_TypeQuery(const char * type)2923 SWIG_Python_TypeQuery(const char *type)
2924 {
2925   PyObject *cache = SWIG_Python_TypeCache();
2926   PyObject *key = SWIG_Python_str_FromChar(type);
2927   PyObject *obj = PyDict_GetItem(cache, key);
2928   swig_type_info *descriptor;
2929   if (obj) {
2930 #ifdef SWIGPY_USE_CAPSULE
2931     descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL);
2932 #else
2933     descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2934 #endif
2935   } else {
2936     swig_module_info *swig_module = SWIG_GetModule(0);
2937     descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2938     if (descriptor) {
2939 #ifdef SWIGPY_USE_CAPSULE
2940       obj = PyCapsule_New((void*) descriptor, NULL, NULL);
2941 #else
2942       obj = PyCObject_FromVoidPtr(descriptor, NULL);
2943 #endif
2944       PyDict_SetItem(cache, key, obj);
2945       Py_DECREF(obj);
2946     }
2947   }
2948   Py_DECREF(key);
2949   return descriptor;
2950 }
2951 
2952 /*
2953    For backward compatibility only
2954 */
2955 #define SWIG_POINTER_EXCEPTION  0
2956 #define SWIG_arg_fail(arg)      SWIG_Python_ArgFail(arg)
2957 #define SWIG_MustGetPtr(p, type, argnum, flags)  SWIG_Python_MustGetPtr(p, type, argnum, flags)
2958 
2959 SWIGRUNTIME int
SWIG_Python_AddErrMesg(const char * mesg,int infront)2960 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2961 {
2962   if (PyErr_Occurred()) {
2963     PyObject *type = 0;
2964     PyObject *value = 0;
2965     PyObject *traceback = 0;
2966     PyErr_Fetch(&type, &value, &traceback);
2967     if (value) {
2968       char *tmp;
2969       PyObject *old_str = PyObject_Str(value);
2970       Py_XINCREF(type);
2971       PyErr_Clear();
2972       if (infront) {
2973 	PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
2974       } else {
2975 	PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
2976       }
2977       SWIG_Python_str_DelForPy3(tmp);
2978       Py_DECREF(old_str);
2979     }
2980     return 1;
2981   } else {
2982     return 0;
2983   }
2984 }
2985 
2986 SWIGRUNTIME int
SWIG_Python_ArgFail(int argnum)2987 SWIG_Python_ArgFail(int argnum)
2988 {
2989   if (PyErr_Occurred()) {
2990     /* add information about failing argument */
2991     char mesg[256];
2992     PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2993     return SWIG_Python_AddErrMesg(mesg, 1);
2994   } else {
2995     return 0;
2996   }
2997 }
2998 
2999 SWIGRUNTIMEINLINE const char *
SwigPyObject_GetDesc(PyObject * self)3000 SwigPyObject_GetDesc(PyObject *self)
3001 {
3002   SwigPyObject *v = (SwigPyObject *)self;
3003   swig_type_info *ty = v ? v->ty : 0;
3004   return ty ? ty->str : "";
3005 }
3006 
3007 SWIGRUNTIME void
SWIG_Python_TypeError(const char * type,PyObject * obj)3008 SWIG_Python_TypeError(const char *type, PyObject *obj)
3009 {
3010   if (type) {
3011 #if defined(SWIG_COBJECT_TYPES)
3012     if (obj && SwigPyObject_Check(obj)) {
3013       const char *otype = (const char *) SwigPyObject_GetDesc(obj);
3014       if (otype) {
3015 	PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
3016 		     type, otype);
3017 	return;
3018       }
3019     } else
3020 #endif
3021     {
3022       const char *otype = (obj ? obj->ob_type->tp_name : 0);
3023       if (otype) {
3024 	PyObject *str = PyObject_Str(obj);
3025 	const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
3026 	if (cstr) {
3027 	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
3028 		       type, otype, cstr);
3029           SWIG_Python_str_DelForPy3(cstr);
3030 	} else {
3031 	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
3032 		       type, otype);
3033 	}
3034 	Py_XDECREF(str);
3035 	return;
3036       }
3037     }
3038     PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
3039   } else {
3040     PyErr_Format(PyExc_TypeError, "unexpected type is received");
3041   }
3042 }
3043 
3044 
3045 /* Convert a pointer value, signal an exception on a type mismatch */
3046 SWIGRUNTIME void *
SWIG_Python_MustGetPtr(PyObject * obj,swig_type_info * ty,int SWIGUNUSEDPARM (argnum),int flags)3047 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
3048   void *result;
3049   if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
3050     PyErr_Clear();
3051 #if SWIG_POINTER_EXCEPTION
3052     if (flags) {
3053       SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
3054       SWIG_Python_ArgFail(argnum);
3055     }
3056 #endif
3057   }
3058   return result;
3059 }
3060 
3061 #ifdef SWIGPYTHON_BUILTIN
3062 SWIGRUNTIME int
SWIG_Python_NonDynamicSetAttr(PyObject * obj,PyObject * name,PyObject * value)3063 SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
3064   PyTypeObject *tp = obj->ob_type;
3065   PyObject *descr;
3066   PyObject *encoded_name;
3067   descrsetfunc f;
3068   int res = -1;
3069 
3070 # ifdef Py_USING_UNICODE
3071   if (PyString_Check(name)) {
3072     name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL);
3073     if (!name)
3074       return -1;
3075   } else if (!PyUnicode_Check(name))
3076 # else
3077   if (!PyString_Check(name))
3078 # endif
3079   {
3080     PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
3081     return -1;
3082   } else {
3083     Py_INCREF(name);
3084   }
3085 
3086   if (!tp->tp_dict) {
3087     if (PyType_Ready(tp) < 0)
3088       goto done;
3089   }
3090 
3091   descr = _PyType_Lookup(tp, name);
3092   f = NULL;
3093   if (descr != NULL)
3094     f = descr->ob_type->tp_descr_set;
3095   if (!f) {
3096     if (PyString_Check(name)) {
3097       encoded_name = name;
3098       Py_INCREF(name);
3099     } else {
3100       encoded_name = PyUnicode_AsUTF8String(name);
3101     }
3102     PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
3103     Py_DECREF(encoded_name);
3104   } else {
3105     res = f(descr, obj, value);
3106   }
3107 
3108   done:
3109   Py_DECREF(name);
3110   return res;
3111 }
3112 #endif
3113 
3114 
3115 #ifdef __cplusplus
3116 }
3117 #endif
3118 
3119 
3120 
3121 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
3122 
3123 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
3124 
3125 
3126 
3127   #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0)
3128 
3129 /* -----------------------------------------------------------------------------
3130  * director_common.swg
3131  *
3132  * This file contains support for director classes which is common between
3133  * languages.
3134  * ----------------------------------------------------------------------------- */
3135 
3136 /*
3137   Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the
3138   'Swig' namespace. This could be useful for multi-modules projects.
3139 */
3140 #ifdef SWIG_DIRECTOR_STATIC
3141 /* Force anonymous (static) namespace */
3142 #define Swig
3143 #endif
3144 /* -----------------------------------------------------------------------------
3145  * director.swg
3146  *
3147  * This file contains support for director classes so that Python proxy
3148  * methods can be called from C++.
3149  * ----------------------------------------------------------------------------- */
3150 
3151 #ifndef SWIG_DIRECTOR_PYTHON_HEADER_
3152 #define SWIG_DIRECTOR_PYTHON_HEADER_
3153 
3154 #include <string>
3155 #include <iostream>
3156 #include <exception>
3157 #include <vector>
3158 #include <map>
3159 
3160 
3161 /*
3162   Use -DSWIG_PYTHON_DIRECTOR_NO_VTABLE if you don't want to generate a 'virtual
3163   table', and avoid multiple GetAttr calls to retrieve the python
3164   methods.
3165 */
3166 
3167 #ifndef SWIG_PYTHON_DIRECTOR_NO_VTABLE
3168 #ifndef SWIG_PYTHON_DIRECTOR_VTABLE
3169 #define SWIG_PYTHON_DIRECTOR_VTABLE
3170 #endif
3171 #endif
3172 
3173 
3174 
3175 /*
3176   Use -DSWIG_DIRECTOR_NO_UEH if you prefer to avoid the use of the
3177   Undefined Exception Handler provided by swig.
3178 */
3179 #ifndef SWIG_DIRECTOR_NO_UEH
3180 #ifndef SWIG_DIRECTOR_UEH
3181 #define SWIG_DIRECTOR_UEH
3182 #endif
3183 #endif
3184 
3185 
3186 /*
3187   Use -DSWIG_DIRECTOR_NORTTI if you prefer to avoid the use of the
3188   native C++ RTTI and dynamic_cast<>. But be aware that directors
3189   could stop working when using this option.
3190 */
3191 #ifdef SWIG_DIRECTOR_NORTTI
3192 /*
3193    When we don't use the native C++ RTTI, we implement a minimal one
3194    only for Directors.
3195 */
3196 # ifndef SWIG_DIRECTOR_RTDIR
3197 # define SWIG_DIRECTOR_RTDIR
3198 
3199 namespace Swig {
3200   class Director;
get_rtdir_map()3201   SWIGINTERN std::map<void *, Director *>& get_rtdir_map() {
3202     static std::map<void *, Director *> rtdir_map;
3203     return rtdir_map;
3204   }
3205 
set_rtdir(void * vptr,Director * rtdir)3206   SWIGINTERNINLINE void set_rtdir(void *vptr, Director *rtdir) {
3207     get_rtdir_map()[vptr] = rtdir;
3208   }
3209 
get_rtdir(void * vptr)3210   SWIGINTERNINLINE Director *get_rtdir(void *vptr) {
3211     std::map<void *, Director *>::const_iterator pos = get_rtdir_map().find(vptr);
3212     Director *rtdir = (pos != get_rtdir_map().end()) ? pos->second : 0;
3213     return rtdir;
3214   }
3215 }
3216 # endif /* SWIG_DIRECTOR_RTDIR */
3217 
3218 # define SWIG_DIRECTOR_CAST(ARG) Swig::get_rtdir(static_cast<void *>(ARG))
3219 # define SWIG_DIRECTOR_RGTR(ARG1, ARG2) Swig::set_rtdir(static_cast<void *>(ARG1), ARG2)
3220 
3221 #else
3222 
3223 # define SWIG_DIRECTOR_CAST(ARG) dynamic_cast<Swig::Director *>(ARG)
3224 # define SWIG_DIRECTOR_RGTR(ARG1, ARG2)
3225 
3226 #endif /* SWIG_DIRECTOR_NORTTI */
3227 
3228 extern "C" {
3229   struct swig_type_info;
3230 }
3231 
3232 namespace Swig {
3233 
3234   /* memory handler */
3235   struct GCItem {
~GCItemSwig::GCItem3236     virtual ~GCItem() {}
3237 
get_ownSwig::GCItem3238     virtual int get_own() const {
3239       return 0;
3240     }
3241   };
3242 
3243   struct GCItem_var {
GCItem_varSwig::GCItem_var3244     GCItem_var(GCItem *item = 0) : _item(item) {
3245     }
3246 
operator =Swig::GCItem_var3247     GCItem_var& operator=(GCItem *item) {
3248       GCItem *tmp = _item;
3249       _item = item;
3250       delete tmp;
3251       return *this;
3252     }
3253 
~GCItem_varSwig::GCItem_var3254     ~GCItem_var() {
3255       delete _item;
3256     }
3257 
operator ->Swig::GCItem_var3258     GCItem * operator->() const {
3259       return _item;
3260     }
3261 
3262   private:
3263     GCItem *_item;
3264   };
3265 
3266   struct GCItem_Object : GCItem {
GCItem_ObjectSwig::GCItem_Object3267     GCItem_Object(int own) : _own(own) {
3268     }
3269 
~GCItem_ObjectSwig::GCItem_Object3270     virtual ~GCItem_Object() {
3271     }
3272 
get_ownSwig::GCItem_Object3273     int get_own() const {
3274       return _own;
3275     }
3276 
3277   private:
3278     int _own;
3279   };
3280 
3281   template <typename Type>
3282   struct GCItem_T : GCItem {
GCItem_TSwig::GCItem_T3283     GCItem_T(Type *ptr) : _ptr(ptr) {
3284     }
3285 
~GCItem_TSwig::GCItem_T3286     virtual ~GCItem_T() {
3287       delete _ptr;
3288     }
3289 
3290   private:
3291     Type *_ptr;
3292   };
3293 
3294   template <typename Type>
3295   struct GCArray_T : GCItem {
GCArray_TSwig::GCArray_T3296     GCArray_T(Type *ptr) : _ptr(ptr) {
3297     }
3298 
~GCArray_TSwig::GCArray_T3299     virtual ~GCArray_T() {
3300       delete[] _ptr;
3301     }
3302 
3303   private:
3304     Type *_ptr;
3305   };
3306 
3307   /* base class for director exceptions */
3308   class DirectorException : public std::exception {
3309   protected:
3310     std::string swig_msg;
3311   public:
DirectorException(PyObject * error,const char * hdr="",const char * msg="")3312     DirectorException(PyObject *error, const char *hdr ="", const char *msg ="") : swig_msg(hdr) {
3313       SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3314       if (msg[0]) {
3315         swig_msg += " ";
3316         swig_msg += msg;
3317       }
3318       if (!PyErr_Occurred()) {
3319         PyErr_SetString(error, what());
3320       }
3321       SWIG_PYTHON_THREAD_END_BLOCK;
3322     }
3323 
~DirectorException()3324     virtual ~DirectorException() throw() {
3325     }
3326 
3327     /* Deprecated, use what() instead */
getMessage() const3328     const char *getMessage() const {
3329       return what();
3330     }
3331 
what() const3332     const char *what() const throw() {
3333       return swig_msg.c_str();
3334     }
3335 
raise(PyObject * error,const char * msg)3336     static void raise(PyObject *error, const char *msg) {
3337       throw DirectorException(error, msg);
3338     }
3339 
raise(const char * msg)3340     static void raise(const char *msg) {
3341       raise(PyExc_RuntimeError, msg);
3342     }
3343   };
3344 
3345   /* unknown exception handler  */
3346   class UnknownExceptionHandler {
3347 #ifdef SWIG_DIRECTOR_UEH
handler()3348     static void handler() {
3349       try {
3350         throw;
3351       } catch (DirectorException& e) {
3352         std::cerr << "SWIG Director exception caught:" << std::endl
3353                   << e.what() << std::endl;
3354       } catch (std::exception& e) {
3355         std::cerr << "std::exception caught: "<< e.what() << std::endl;
3356       } catch (...) {
3357         std::cerr << "Unknown exception caught." << std::endl;
3358       }
3359 
3360       std::cerr << std::endl
3361                 << "Python interpreter traceback:" << std::endl;
3362       PyErr_Print();
3363       std::cerr << std::endl;
3364 
3365       std::cerr << "This exception was caught by the SWIG unexpected exception handler." << std::endl
3366                 << "Try using %feature(\"director:except\") to avoid reaching this point." << std::endl
3367                 << std::endl
3368                 << "Exception is being re-thrown, program will likely abort/terminate." << std::endl;
3369       throw;
3370     }
3371 
3372   public:
3373 
3374     std::unexpected_handler old;
UnknownExceptionHandler(std::unexpected_handler nh=handler)3375     UnknownExceptionHandler(std::unexpected_handler nh = handler) {
3376       old = std::set_unexpected(nh);
3377     }
3378 
~UnknownExceptionHandler()3379     ~UnknownExceptionHandler() {
3380       std::set_unexpected(old);
3381     }
3382 #endif
3383   };
3384 
3385   /* type mismatch in the return value from a python method call */
3386   class DirectorTypeMismatchException : public DirectorException {
3387   public:
DirectorTypeMismatchException(PyObject * error,const char * msg="")3388     DirectorTypeMismatchException(PyObject *error, const char *msg="")
3389       : DirectorException(error, "SWIG director type mismatch", msg) {
3390     }
3391 
DirectorTypeMismatchException(const char * msg="")3392     DirectorTypeMismatchException(const char *msg="")
3393       : DirectorException(PyExc_TypeError, "SWIG director type mismatch", msg) {
3394     }
3395 
raise(PyObject * error,const char * msg)3396     static void raise(PyObject *error, const char *msg) {
3397       throw DirectorTypeMismatchException(error, msg);
3398     }
3399 
raise(const char * msg)3400     static void raise(const char *msg) {
3401       throw DirectorTypeMismatchException(msg);
3402     }
3403   };
3404 
3405   /* any python exception that occurs during a director method call */
3406   class DirectorMethodException : public DirectorException {
3407   public:
DirectorMethodException(const char * msg="")3408     DirectorMethodException(const char *msg = "")
3409       : DirectorException(PyExc_RuntimeError, "SWIG director method error.", msg) {
3410     }
3411 
raise(const char * msg)3412     static void raise(const char *msg) {
3413       throw DirectorMethodException(msg);
3414     }
3415   };
3416 
3417   /* attempt to call a pure virtual method via a director method */
3418   class DirectorPureVirtualException : public DirectorException {
3419   public:
DirectorPureVirtualException(const char * msg="")3420     DirectorPureVirtualException(const char *msg = "")
3421       : DirectorException(PyExc_RuntimeError, "SWIG director pure virtual method called", msg) {
3422     }
3423 
raise(const char * msg)3424     static void raise(const char *msg) {
3425       throw DirectorPureVirtualException(msg);
3426     }
3427   };
3428 
3429 
3430 #if defined(SWIG_PYTHON_THREADS)
3431 /*  __THREAD__ is the old macro to activate some thread support */
3432 # if !defined(__THREAD__)
3433 #   define __THREAD__ 1
3434 # endif
3435 #endif
3436 
3437 #ifdef __THREAD__
3438 # include "pythread.h"
3439   class Guard {
3440     PyThread_type_lock &mutex_;
3441 
3442   public:
Guard(PyThread_type_lock & mutex)3443     Guard(PyThread_type_lock & mutex) : mutex_(mutex) {
3444       PyThread_acquire_lock(mutex_, WAIT_LOCK);
3445     }
3446 
~Guard()3447     ~Guard() {
3448       PyThread_release_lock(mutex_);
3449     }
3450   };
3451 # define SWIG_GUARD(mutex) Guard _guard(mutex)
3452 #else
3453 # define SWIG_GUARD(mutex)
3454 #endif
3455 
3456   /* director base class */
3457   class Director {
3458   private:
3459     /* pointer to the wrapped python object */
3460     PyObject *swig_self;
3461     /* flag indicating whether the object is owned by python or c++ */
3462     mutable bool swig_disown_flag;
3463 
3464     /* decrement the reference count of the wrapped python object */
swig_decref() const3465     void swig_decref() const {
3466       if (swig_disown_flag) {
3467         SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3468         Py_DECREF(swig_self);
3469         SWIG_PYTHON_THREAD_END_BLOCK;
3470       }
3471     }
3472 
3473   public:
3474     /* wrap a python object. */
Director(PyObject * self)3475     Director(PyObject *self) : swig_self(self), swig_disown_flag(false) {
3476     }
3477 
3478     /* discard our reference at destruction */
~Director()3479     virtual ~Director() {
3480       swig_decref();
3481     }
3482 
3483     /* return a pointer to the wrapped python object */
swig_get_self() const3484     PyObject *swig_get_self() const {
3485       return swig_self;
3486     }
3487 
3488     /* acquire ownership of the wrapped python object (the sense of "disown" is from python) */
swig_disown() const3489     void swig_disown() const {
3490       if (!swig_disown_flag) {
3491         swig_disown_flag=true;
3492         swig_incref();
3493       }
3494     }
3495 
3496     /* increase the reference count of the wrapped python object */
swig_incref() const3497     void swig_incref() const {
3498       if (swig_disown_flag) {
3499         Py_INCREF(swig_self);
3500       }
3501     }
3502 
3503     /* methods to implement pseudo protected director members */
swig_get_inner(const char *) const3504     virtual bool swig_get_inner(const char * /* swig_protected_method_name */) const {
3505       return true;
3506     }
3507 
swig_set_inner(const char *,bool) const3508     virtual void swig_set_inner(const char * /* swig_protected_method_name */, bool /* swig_val */) const {
3509     }
3510 
3511   /* ownership management */
3512   private:
3513     typedef std::map<void *, GCItem_var> swig_ownership_map;
3514     mutable swig_ownership_map swig_owner;
3515 #ifdef __THREAD__
3516     static PyThread_type_lock swig_mutex_own;
3517 #endif
3518 
3519   public:
3520     template <typename Type>
swig_acquire_ownership_array(Type * vptr) const3521     void swig_acquire_ownership_array(Type *vptr) const {
3522       if (vptr) {
3523         SWIG_GUARD(swig_mutex_own);
3524         swig_owner[vptr] = new GCArray_T<Type>(vptr);
3525       }
3526     }
3527 
3528     template <typename Type>
swig_acquire_ownership(Type * vptr) const3529     void swig_acquire_ownership(Type *vptr) const {
3530       if (vptr) {
3531         SWIG_GUARD(swig_mutex_own);
3532         swig_owner[vptr] = new GCItem_T<Type>(vptr);
3533       }
3534     }
3535 
swig_acquire_ownership_obj(void * vptr,int own) const3536     void swig_acquire_ownership_obj(void *vptr, int own) const {
3537       if (vptr && own) {
3538         SWIG_GUARD(swig_mutex_own);
3539         swig_owner[vptr] = new GCItem_Object(own);
3540       }
3541     }
3542 
swig_release_ownership(void * vptr) const3543     int swig_release_ownership(void *vptr) const {
3544       int own = 0;
3545       if (vptr) {
3546         SWIG_GUARD(swig_mutex_own);
3547         swig_ownership_map::iterator iter = swig_owner.find(vptr);
3548         if (iter != swig_owner.end()) {
3549           own = iter->second->get_own();
3550           swig_owner.erase(iter);
3551         }
3552       }
3553       return own;
3554     }
3555 
3556     template <typename Type>
swig_pyobj_disown(PyObject * pyobj,PyObject * SWIGUNUSEDPARM (args))3557     static PyObject *swig_pyobj_disown(PyObject *pyobj, PyObject *SWIGUNUSEDPARM(args)) {
3558       SwigPyObject *sobj = (SwigPyObject *)pyobj;
3559       sobj->own = 0;
3560       Director *d = SWIG_DIRECTOR_CAST(reinterpret_cast<Type *>(sobj->ptr));
3561       if (d)
3562         d->swig_disown();
3563       return PyWeakref_NewProxy(pyobj, NULL);
3564     }
3565   };
3566 
3567 #ifdef __THREAD__
3568   PyThread_type_lock Director::swig_mutex_own = PyThread_allocate_lock();
3569 #endif
3570 }
3571 
3572 #endif
3573 
3574 /* -------- TYPES TABLE (BEGIN) -------- */
3575 
3576 #define SWIGTYPE_p_Xapian__AssertionError swig_types[0]
3577 #define SWIGTYPE_p_Xapian__BB2Weight swig_types[1]
3578 #define SWIGTYPE_p_Xapian__BM25PlusWeight swig_types[2]
3579 #define SWIGTYPE_p_Xapian__BM25Weight swig_types[3]
3580 #define SWIGTYPE_p_Xapian__BoolWeight swig_types[4]
3581 #define SWIGTYPE_p_Xapian__Compactor swig_types[5]
3582 #define SWIGTYPE_p_Xapian__CoordWeight swig_types[6]
3583 #define SWIGTYPE_p_Xapian__DLHWeight swig_types[7]
3584 #define SWIGTYPE_p_Xapian__DPHWeight swig_types[8]
3585 #define SWIGTYPE_p_Xapian__Database swig_types[9]
3586 #define SWIGTYPE_p_Xapian__DatabaseClosedError swig_types[10]
3587 #define SWIGTYPE_p_Xapian__DatabaseCorruptError swig_types[11]
3588 #define SWIGTYPE_p_Xapian__DatabaseCreateError swig_types[12]
3589 #define SWIGTYPE_p_Xapian__DatabaseError swig_types[13]
3590 #define SWIGTYPE_p_Xapian__DatabaseLockError swig_types[14]
3591 #define SWIGTYPE_p_Xapian__DatabaseModifiedError swig_types[15]
3592 #define SWIGTYPE_p_Xapian__DatabaseNotFoundError swig_types[16]
3593 #define SWIGTYPE_p_Xapian__DatabaseOpeningError swig_types[17]
3594 #define SWIGTYPE_p_Xapian__DatabaseVersionError swig_types[18]
3595 #define SWIGTYPE_p_Xapian__DateRangeProcessor swig_types[19]
3596 #define SWIGTYPE_p_Xapian__DateValueRangeProcessor swig_types[20]
3597 #define SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource swig_types[21]
3598 #define SWIGTYPE_p_Xapian__DocNotFoundError swig_types[22]
3599 #define SWIGTYPE_p_Xapian__Document swig_types[23]
3600 #define SWIGTYPE_p_Xapian__ESet swig_types[24]
3601 #define SWIGTYPE_p_Xapian__ESetIterator swig_types[25]
3602 #define SWIGTYPE_p_Xapian__Enquire swig_types[26]
3603 #define SWIGTYPE_p_Xapian__Error swig_types[27]
3604 #define SWIGTYPE_p_Xapian__ExpandDecider swig_types[28]
3605 #define SWIGTYPE_p_Xapian__ExpandDeciderAnd swig_types[29]
3606 #define SWIGTYPE_p_Xapian__ExpandDeciderFilterPrefix swig_types[30]
3607 #define SWIGTYPE_p_Xapian__ExpandDeciderFilterTerms swig_types[31]
3608 #define SWIGTYPE_p_Xapian__FeatureUnavailableError swig_types[32]
3609 #define SWIGTYPE_p_Xapian__FieldProcessor swig_types[33]
3610 #define SWIGTYPE_p_Xapian__FixedWeightPostingSource swig_types[34]
3611 #define SWIGTYPE_p_Xapian__GreatCircleMetric swig_types[35]
3612 #define SWIGTYPE_p_Xapian__IfB2Weight swig_types[36]
3613 #define SWIGTYPE_p_Xapian__InL2Weight swig_types[37]
3614 #define SWIGTYPE_p_Xapian__IneB2Weight swig_types[38]
3615 #define SWIGTYPE_p_Xapian__InternalError swig_types[39]
3616 #define SWIGTYPE_p_Xapian__InvalidArgumentError swig_types[40]
3617 #define SWIGTYPE_p_Xapian__InvalidOperationError swig_types[41]
3618 #define SWIGTYPE_p_Xapian__KeyMaker swig_types[42]
3619 #define SWIGTYPE_p_Xapian__LMWeight swig_types[43]
3620 #define SWIGTYPE_p_Xapian__LatLongCoord swig_types[44]
3621 #define SWIGTYPE_p_Xapian__LatLongCoords swig_types[45]
3622 #define SWIGTYPE_p_Xapian__LatLongCoordsIterator swig_types[46]
3623 #define SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker swig_types[47]
3624 #define SWIGTYPE_p_Xapian__LatLongDistancePostingSource swig_types[48]
3625 #define SWIGTYPE_p_Xapian__LatLongMetric swig_types[49]
3626 #define SWIGTYPE_p_Xapian__LogicError swig_types[50]
3627 #define SWIGTYPE_p_Xapian__MSet swig_types[51]
3628 #define SWIGTYPE_p_Xapian__MSetIterator swig_types[52]
3629 #define SWIGTYPE_p_Xapian__MatchDecider swig_types[53]
3630 #define SWIGTYPE_p_Xapian__MatchSpy swig_types[54]
3631 #define SWIGTYPE_p_Xapian__MultiValueKeyMaker swig_types[55]
3632 #define SWIGTYPE_p_Xapian__NetworkError swig_types[56]
3633 #define SWIGTYPE_p_Xapian__NetworkTimeoutError swig_types[57]
3634 #define SWIGTYPE_p_Xapian__NumberRangeProcessor swig_types[58]
3635 #define SWIGTYPE_p_Xapian__NumberValueRangeProcessor swig_types[59]
3636 #define SWIGTYPE_p_Xapian__PL2PlusWeight swig_types[60]
3637 #define SWIGTYPE_p_Xapian__PL2Weight swig_types[61]
3638 #define SWIGTYPE_p_Xapian__PositionIterator swig_types[62]
3639 #define SWIGTYPE_p_Xapian__PostingIterator swig_types[63]
3640 #define SWIGTYPE_p_Xapian__PostingSource swig_types[64]
3641 #define SWIGTYPE_p_Xapian__Query swig_types[65]
3642 #define SWIGTYPE_p_Xapian__QueryParser swig_types[66]
3643 #define SWIGTYPE_p_Xapian__QueryParserError swig_types[67]
3644 #define SWIGTYPE_p_Xapian__RSet swig_types[68]
3645 #define SWIGTYPE_p_Xapian__RangeError swig_types[69]
3646 #define SWIGTYPE_p_Xapian__RangeProcessor swig_types[70]
3647 #define SWIGTYPE_p_Xapian__Registry swig_types[71]
3648 #define SWIGTYPE_p_Xapian__RuntimeError swig_types[72]
3649 #define SWIGTYPE_p_Xapian__SerialisationError swig_types[73]
3650 #define SWIGTYPE_p_Xapian__SimpleStopper swig_types[74]
3651 #define SWIGTYPE_p_Xapian__Stem swig_types[75]
3652 #define SWIGTYPE_p_Xapian__StemImplementation swig_types[76]
3653 #define SWIGTYPE_p_Xapian__Stopper swig_types[77]
3654 #define SWIGTYPE_p_Xapian__StringValueRangeProcessor swig_types[78]
3655 #define SWIGTYPE_p_Xapian__TermGenerator swig_types[79]
3656 #define SWIGTYPE_p_Xapian__TermIterator swig_types[80]
3657 #define SWIGTYPE_p_Xapian__TfIdfWeight swig_types[81]
3658 #define SWIGTYPE_p_Xapian__TradWeight swig_types[82]
3659 #define SWIGTYPE_p_Xapian__UnimplementedError swig_types[83]
3660 #define SWIGTYPE_p_Xapian__ValueCountMatchSpy swig_types[84]
3661 #define SWIGTYPE_p_Xapian__ValueIterator swig_types[85]
3662 #define SWIGTYPE_p_Xapian__ValueMapPostingSource swig_types[86]
3663 #define SWIGTYPE_p_Xapian__ValuePostingSource swig_types[87]
3664 #define SWIGTYPE_p_Xapian__ValueRangeProcessor swig_types[88]
3665 #define SWIGTYPE_p_Xapian__ValueSetMatchDecider swig_types[89]
3666 #define SWIGTYPE_p_Xapian__ValueWeightPostingSource swig_types[90]
3667 #define SWIGTYPE_p_Xapian__Weight swig_types[91]
3668 #define SWIGTYPE_p_Xapian__WildcardError swig_types[92]
3669 #define SWIGTYPE_p_Xapian__WritableDatabase swig_types[93]
3670 #define SWIGTYPE_p_char swig_types[94]
3671 #define SWIGTYPE_p_compaction_level swig_types[95]
3672 #define SWIGTYPE_p_docid_order swig_types[96]
3673 #define SWIGTYPE_p_double swig_types[97]
3674 #define SWIGTYPE_p_feature_flag swig_types[98]
3675 #define SWIGTYPE_p_flags swig_types[99]
3676 #define SWIGTYPE_p_int swig_types[100]
3677 #define SWIGTYPE_p_std__invalid_argument swig_types[101]
3678 #define SWIGTYPE_p_std__ostream swig_types[102]
3679 #define SWIGTYPE_p_std__string swig_types[103]
3680 #define SWIGTYPE_p_stem_strategy swig_types[104]
3681 #define SWIGTYPE_p_stop_strategy swig_types[105]
3682 #define SWIGTYPE_p_swig__SwigPyIterator swig_types[106]
3683 #define SWIGTYPE_p_type_smoothing swig_types[107]
3684 #define SWIGTYPE_p_unsigned_int swig_types[108]
3685 #define SWIGTYPE_p_unsigned_long swig_types[109]
3686 static swig_type_info *swig_types[111];
3687 static swig_module_info swig_module = {swig_types, 110, 0, 0, 0, 0};
3688 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
3689 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
3690 
3691 /* -------- TYPES TABLE (END) -------- */
3692 
3693 #if (PY_VERSION_HEX <= 0x02000000)
3694 # if !defined(SWIG_PYTHON_CLASSIC)
3695 #  error "This python version requires swig to be run with the '-classic' option"
3696 # endif
3697 #endif
3698 #if (PY_VERSION_HEX <= 0x02020000)
3699 # error "This python version requires swig to be run with the '-nomodern' option"
3700 #endif
3701 #if (PY_VERSION_HEX <= 0x02020000)
3702 # error "This python version requires swig to be run with the '-nomodernargs' option"
3703 #endif
3704 #ifndef METH_O
3705 # error "This python version requires swig to be run with the '-nofastunpack' option"
3706 #endif
3707 #ifdef SWIG_TypeQuery
3708 # undef SWIG_TypeQuery
3709 #endif
3710 #define SWIG_TypeQuery SWIG_Python_TypeQuery
3711 
3712 /*-----------------------------------------------
3713               @(target):= _xapian.so
3714   ------------------------------------------------*/
3715 #if PY_VERSION_HEX >= 0x03000000
3716 #  define SWIG_init    PyInit__xapian
3717 
3718 #else
3719 #  define SWIG_init    init_xapian
3720 
3721 #endif
3722 #define SWIG_name    "_xapian"
3723 
3724 #define SWIGVERSION 0x030013
3725 #define SWIG_VERSION SWIGVERSION
3726 
3727 
3728 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
3729 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
3730 
3731 
3732 #include <stdexcept>
3733 
3734 
3735 namespace swig {
3736   class SwigPtr_PyObject {
3737   protected:
3738     PyObject *_obj;
3739 
3740   public:
SwigPtr_PyObject()3741     SwigPtr_PyObject() :_obj(0)
3742     {
3743     }
3744 
SwigPtr_PyObject(const SwigPtr_PyObject & item)3745     SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
3746     {
3747       SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3748       Py_XINCREF(_obj);
3749       SWIG_PYTHON_THREAD_END_BLOCK;
3750     }
3751 
SwigPtr_PyObject(PyObject * obj,bool initial_ref=true)3752     SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
3753     {
3754       if (initial_ref) {
3755         SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3756         Py_XINCREF(_obj);
3757         SWIG_PYTHON_THREAD_END_BLOCK;
3758       }
3759     }
3760 
operator =(const SwigPtr_PyObject & item)3761     SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
3762     {
3763       SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3764       Py_XINCREF(item._obj);
3765       Py_XDECREF(_obj);
3766       _obj = item._obj;
3767       SWIG_PYTHON_THREAD_END_BLOCK;
3768       return *this;
3769     }
3770 
~SwigPtr_PyObject()3771     ~SwigPtr_PyObject()
3772     {
3773       SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3774       Py_XDECREF(_obj);
3775       SWIG_PYTHON_THREAD_END_BLOCK;
3776     }
3777 
operator PyObject*() const3778     operator PyObject *() const
3779     {
3780       return _obj;
3781     }
3782 
operator ->() const3783     PyObject *operator->() const
3784     {
3785       return _obj;
3786     }
3787   };
3788 }
3789 
3790 
3791 namespace swig {
3792   struct SwigVar_PyObject : SwigPtr_PyObject {
SwigVar_PyObjectswig::SwigVar_PyObject3793     SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
3794 
operator =swig::SwigVar_PyObject3795     SwigVar_PyObject & operator = (PyObject* obj)
3796     {
3797       Py_XDECREF(_obj);
3798       _obj = obj;
3799       return *this;
3800     }
3801   };
3802 }
3803 
3804 
3805 /* python.i: SWIG interface file for the Python bindings
3806  *
3807  * Copyright (C) 2011,2012,2013,2014,2015,2016,2018,2019 Olly Betts
3808  *
3809  * This program is free software; you can redistribute it and/or
3810  * modify it under the terms of the GNU General Public License as
3811  * published by the Free Software Foundation; either version 2 of the
3812  * License, or (at your option) any later version.
3813  *
3814  * This program is distributed in the hope that it will be useful,
3815  * but WITHOUT ANY WARRANTY; without even the implied warranty of
3816  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3817  * GNU General Public License for more details.
3818  *
3819  * You should have received a copy of the GNU General Public License
3820  * along with this program; if not, write to the Free Software
3821  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
3822  * USA
3823  */
3824 
3825 
3826 /** @file
3827  * @brief Set xapian.__version__ to the bindings version
3828  */
3829 /* Copyright (C) 2013 Olly Betts
3830  *
3831  * This program is free software; you can redistribute it and/or
3832  * modify it under the terms of the GNU General Public License as
3833  * published by the Free Software Foundation; either version 2 of the
3834  * License, or (at your option) any later version.
3835  *
3836  * This program is distributed in the hope that it will be useful,
3837  * but WITHOUT ANY WARRANTY; without even the implied warranty of
3838  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3839  * GNU General Public License for more details.
3840  *
3841  * You should have received a copy of the GNU General Public License
3842  * along with this program; if not, write to the Free Software
3843  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
3844  * USA
3845  */
3846 
3847 
3848 /** @file
3849  * @brief Header for SWIG interface file for Xapian.
3850  */
3851 /* Copyright (C) 2005,2006,2007,2008,2009,2011,2012,2013,2014,2015,2016 Olly Betts
3852  *
3853  * This program is free software; you can redistribute it and/or
3854  * modify it under the terms of the GNU General Public License as
3855  * published by the Free Software Foundation; either version 2 of the
3856  * License, or (at your option) any later version.
3857  *
3858  * This program is distributed in the hope that it will be useful,
3859  * but WITHOUT ANY WARRANTY; without even the implied warranty of
3860  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3861  * GNU General Public License for more details.
3862  *
3863  * You should have received a copy of the GNU General Public License
3864  * along with this program; if not, write to the Free Software
3865  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
3866  * USA
3867  */
3868 
3869 // Disable any deprecation warnings for Xapian methods/functions/classes.
3870 #define XAPIAN_DEPRECATED(D) D
3871 
3872 #include <xapian.h>
3873 
3874 #include <fstream>
3875 #include <iostream>
3876 #include <string>
3877 #include <vector>
3878 
3879 using namespace std;
3880 
3881 // If a backend has been disabled in xapian-core (manually or automatically) we
3882 // include a stub definition here so the bindings can still be built.
3883 namespace Xapian {
3884 
3885 
3886 
3887 #ifndef XAPIAN_HAS_REMOTE_BACKEND
3888     namespace Remote {
open(const string &,unsigned int,useconds_t=0,useconds_t=0)3889 	static Database open(const string &, unsigned int, useconds_t = 0, useconds_t = 0) {
3890 	    throw FeatureUnavailableError("Remote backend not supported");
3891 	}
3892 
open_writable(const string &,unsigned int,useconds_t=0,useconds_t=0,int=0)3893 	static WritableDatabase open_writable(const string &, unsigned int, useconds_t = 0, useconds_t = 0, int = 0) {
3894 	    throw FeatureUnavailableError("Remote backend not supported");
3895 	}
3896 
open(const string &,const string &,useconds_t=0)3897 	static Database open(const string &, const string &, useconds_t = 0) {
3898 	    throw FeatureUnavailableError("Remote backend not supported");
3899 	}
3900 
open_writable(const string &,const string &,useconds_t=0,int=0)3901 	static WritableDatabase open_writable(const string &, const string &, useconds_t = 0, int = 0) {
3902 	    throw FeatureUnavailableError("Remote backend not supported");
3903 	}
3904     }
3905 #endif
3906 
3907 }
3908 
3909 
3910 #include <typeinfo>
3911 #include <stdexcept>
3912 
3913 
3914 #if defined(__GNUC__)
3915 #  if __GNUC__ == 2 && __GNUC_MINOR <= 96
3916 #     define SWIG_STD_NOMODERN_STL
3917 #  endif
3918 #endif
3919 
3920 
3921 #include <string>
3922 
3923 
3924 #include <stddef.h>
3925 
3926 
3927 #include <iostream>
3928 
3929 #if PY_VERSION_HEX >= 0x03020000
3930 # define SWIGPY_SLICE_ARG(obj) ((PyObject*) (obj))
3931 #else
3932 # define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj))
3933 #endif
3934 
3935 
3936 namespace swig {
3937   struct stop_iteration {
3938   };
3939 
3940   struct SwigPyIterator {
3941   private:
3942     SwigPtr_PyObject _seq;
3943 
3944   protected:
SwigPyIteratorswig::SwigPyIterator3945     SwigPyIterator(PyObject *seq) : _seq(seq)
3946     {
3947     }
3948 
3949   public:
~SwigPyIteratorswig::SwigPyIterator3950     virtual ~SwigPyIterator() {}
3951 
3952     // Access iterator method, required by Python
3953     virtual PyObject *value() const = 0;
3954 
3955     // Forward iterator method, required by Python
3956     virtual SwigPyIterator *incr(size_t n = 1) = 0;
3957 
3958     // Backward iterator method, very common in C++, but not required in Python
decrswig::SwigPyIterator3959     virtual SwigPyIterator *decr(size_t /*n*/ = 1)
3960     {
3961       throw stop_iteration();
3962     }
3963 
3964     // Random access iterator methods, but not required in Python
distanceswig::SwigPyIterator3965     virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const
3966     {
3967       throw std::invalid_argument("operation not supported");
3968     }
3969 
equalswig::SwigPyIterator3970     virtual bool equal (const SwigPyIterator &/*x*/) const
3971     {
3972       throw std::invalid_argument("operation not supported");
3973     }
3974 
3975     // C++ common/needed methods
3976     virtual SwigPyIterator *copy() const = 0;
3977 
nextswig::SwigPyIterator3978     PyObject *next()
3979     {
3980       SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3981       PyObject *obj = value();
3982       incr();
3983       SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3984       return obj;
3985     }
3986 
3987     /* Make an alias for Python 3.x */
__next__swig::SwigPyIterator3988     PyObject *__next__()
3989     {
3990       return next();
3991     }
3992 
previousswig::SwigPyIterator3993     PyObject *previous()
3994     {
3995       SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3996       decr();
3997       PyObject *obj = value();
3998       SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3999       return obj;
4000     }
4001 
advanceswig::SwigPyIterator4002     SwigPyIterator *advance(ptrdiff_t n)
4003     {
4004       return  (n > 0) ?  incr(n) : decr(-n);
4005     }
4006 
operator ==swig::SwigPyIterator4007     bool operator == (const SwigPyIterator& x)  const
4008     {
4009       return equal(x);
4010     }
4011 
operator !=swig::SwigPyIterator4012     bool operator != (const SwigPyIterator& x) const
4013     {
4014       return ! operator==(x);
4015     }
4016 
operator +=swig::SwigPyIterator4017     SwigPyIterator& operator += (ptrdiff_t n)
4018     {
4019       return *advance(n);
4020     }
4021 
operator -=swig::SwigPyIterator4022     SwigPyIterator& operator -= (ptrdiff_t n)
4023     {
4024       return *advance(-n);
4025     }
4026 
operator +swig::SwigPyIterator4027     SwigPyIterator* operator + (ptrdiff_t n) const
4028     {
4029       return copy()->advance(n);
4030     }
4031 
operator -swig::SwigPyIterator4032     SwigPyIterator* operator - (ptrdiff_t n) const
4033     {
4034       return copy()->advance(-n);
4035     }
4036 
operator -swig::SwigPyIterator4037     ptrdiff_t operator - (const SwigPyIterator& x) const
4038     {
4039       return x.distance(*this);
4040     }
4041 
descriptorswig::SwigPyIterator4042     static swig_type_info* descriptor() {
4043       static int init = 0;
4044       static swig_type_info* desc = 0;
4045       if (!init) {
4046 	desc = SWIG_TypeQuery("swig::SwigPyIterator *");
4047 	init = 1;
4048       }
4049       return desc;
4050     }
4051   };
4052 
4053 #if defined(SWIGPYTHON_BUILTIN)
make_output_iterator_builtin(PyObject * pyself)4054   inline PyObject* make_output_iterator_builtin (PyObject *pyself)
4055   {
4056     Py_INCREF(pyself);
4057     return pyself;
4058   }
4059 #endif
4060 }
4061 
4062 
4063 SWIGINTERN int
SWIG_AsVal_double(PyObject * obj,double * val)4064 SWIG_AsVal_double (PyObject *obj, double *val)
4065 {
4066   int res = SWIG_TypeError;
4067   if (PyFloat_Check(obj)) {
4068     if (val) *val = PyFloat_AsDouble(obj);
4069     return SWIG_OK;
4070 #if PY_VERSION_HEX < 0x03000000
4071   } else if (PyInt_Check(obj)) {
4072     if (val) *val = (double) PyInt_AsLong(obj);
4073     return SWIG_OK;
4074 #endif
4075   } else if (PyLong_Check(obj)) {
4076     double v = PyLong_AsDouble(obj);
4077     if (!PyErr_Occurred()) {
4078       if (val) *val = v;
4079       return SWIG_OK;
4080     } else {
4081       PyErr_Clear();
4082     }
4083   }
4084 #ifdef SWIG_PYTHON_CAST_MODE
4085   {
4086     int dispatch = 0;
4087     double d = PyFloat_AsDouble(obj);
4088     if (!PyErr_Occurred()) {
4089       if (val) *val = d;
4090       return SWIG_AddCast(SWIG_OK);
4091     } else {
4092       PyErr_Clear();
4093     }
4094     if (!dispatch) {
4095       long v = PyLong_AsLong(obj);
4096       if (!PyErr_Occurred()) {
4097 	if (val) *val = v;
4098 	return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
4099       } else {
4100 	PyErr_Clear();
4101       }
4102     }
4103   }
4104 #endif
4105   return res;
4106 }
4107 
4108 
4109 #include <float.h>
4110 
4111 
4112 #include <math.h>
4113 
4114 
4115 SWIGINTERNINLINE int
SWIG_CanCastAsInteger(double * d,double min,double max)4116 SWIG_CanCastAsInteger(double *d, double min, double max) {
4117   double x = *d;
4118   if ((min <= x && x <= max)) {
4119    double fx = floor(x);
4120    double cx = ceil(x);
4121    double rd =  ((x - fx) < 0.5) ? fx : cx; /* simple rint */
4122    if ((errno == EDOM) || (errno == ERANGE)) {
4123      errno = 0;
4124    } else {
4125      double summ, reps, diff;
4126      if (rd < x) {
4127        diff = x - rd;
4128      } else if (rd > x) {
4129        diff = rd - x;
4130      } else {
4131        return 1;
4132      }
4133      summ = rd + x;
4134      reps = diff/summ;
4135      if (reps < 8*DBL_EPSILON) {
4136        *d = rd;
4137        return 1;
4138      }
4139    }
4140   }
4141   return 0;
4142 }
4143 
4144 
4145 SWIGINTERN int
SWIG_AsVal_unsigned_SS_long(PyObject * obj,unsigned long * val)4146 SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
4147 {
4148 #if PY_VERSION_HEX < 0x03000000
4149   if (PyInt_Check(obj)) {
4150     long v = PyInt_AsLong(obj);
4151     if (v >= 0) {
4152       if (val) *val = v;
4153       return SWIG_OK;
4154     } else {
4155       return SWIG_OverflowError;
4156     }
4157   } else
4158 #endif
4159   if (PyLong_Check(obj)) {
4160     unsigned long v = PyLong_AsUnsignedLong(obj);
4161     if (!PyErr_Occurred()) {
4162       if (val) *val = v;
4163       return SWIG_OK;
4164     } else {
4165       PyErr_Clear();
4166       return SWIG_OverflowError;
4167     }
4168   }
4169 #ifdef SWIG_PYTHON_CAST_MODE
4170   {
4171     int dispatch = 0;
4172     unsigned long v = PyLong_AsUnsignedLong(obj);
4173     if (!PyErr_Occurred()) {
4174       if (val) *val = v;
4175       return SWIG_AddCast(SWIG_OK);
4176     } else {
4177       PyErr_Clear();
4178     }
4179     if (!dispatch) {
4180       double d;
4181       int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
4182       if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
4183 	if (val) *val = (unsigned long)(d);
4184 	return res;
4185       }
4186     }
4187   }
4188 #endif
4189   return SWIG_TypeError;
4190 }
4191 
4192 
4193 #include <limits.h>
4194 #if !defined(SWIG_NO_LLONG_MAX)
4195 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
4196 #   define LLONG_MAX __LONG_LONG_MAX__
4197 #   define LLONG_MIN (-LLONG_MAX - 1LL)
4198 #   define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
4199 # endif
4200 #endif
4201 
4202 
4203 #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
4204 #  define SWIG_LONG_LONG_AVAILABLE
4205 #endif
4206 
4207 
4208 #ifdef SWIG_LONG_LONG_AVAILABLE
4209 SWIGINTERN int
SWIG_AsVal_unsigned_SS_long_SS_long(PyObject * obj,unsigned long long * val)4210 SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj, unsigned long long *val)
4211 {
4212   int res = SWIG_TypeError;
4213   if (PyLong_Check(obj)) {
4214     unsigned long long v = PyLong_AsUnsignedLongLong(obj);
4215     if (!PyErr_Occurred()) {
4216       if (val) *val = v;
4217       return SWIG_OK;
4218     } else {
4219       PyErr_Clear();
4220       res = SWIG_OverflowError;
4221     }
4222   } else {
4223     unsigned long v;
4224     res = SWIG_AsVal_unsigned_SS_long (obj,&v);
4225     if (SWIG_IsOK(res)) {
4226       if (val) *val = v;
4227       return res;
4228     }
4229   }
4230 #ifdef SWIG_PYTHON_CAST_MODE
4231   {
4232     const double mant_max = 1LL << DBL_MANT_DIG;
4233     double d;
4234     res = SWIG_AsVal_double (obj,&d);
4235     if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, 0, mant_max))
4236       return SWIG_OverflowError;
4237     if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) {
4238       if (val) *val = (unsigned long long)(d);
4239       return SWIG_AddCast(res);
4240     }
4241     res = SWIG_TypeError;
4242   }
4243 #endif
4244   return res;
4245 }
4246 #endif
4247 
4248 
4249 SWIGINTERNINLINE int
SWIG_AsVal_size_t(PyObject * obj,size_t * val)4250 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
4251 {
4252   int res = SWIG_TypeError;
4253 #ifdef SWIG_LONG_LONG_AVAILABLE
4254   if (sizeof(size_t) <= sizeof(unsigned long)) {
4255 #endif
4256     unsigned long v;
4257     res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
4258     if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
4259 #ifdef SWIG_LONG_LONG_AVAILABLE
4260   } else if (sizeof(size_t) <= sizeof(unsigned long long)) {
4261     unsigned long long v;
4262     res = SWIG_AsVal_unsigned_SS_long_SS_long (obj, val ? &v : 0);
4263     if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
4264   }
4265 #endif
4266   return res;
4267 }
4268 
4269 
4270   #define SWIG_From_long   PyInt_FromLong
4271 
4272 
4273 #ifdef SWIG_LONG_LONG_AVAILABLE
4274 SWIGINTERNINLINE PyObject*
SWIG_From_long_SS_long(long long value)4275 SWIG_From_long_SS_long  (long long value)
4276 {
4277   return ((value < LONG_MIN) || (value > LONG_MAX)) ?
4278     PyLong_FromLongLong(value) : PyInt_FromLong(static_cast< long >(value));
4279 }
4280 #endif
4281 
4282 
4283 SWIGINTERNINLINE PyObject *
SWIG_From_ptrdiff_t(ptrdiff_t value)4284 SWIG_From_ptrdiff_t  (ptrdiff_t value)
4285 {
4286 #ifdef SWIG_LONG_LONG_AVAILABLE
4287   if (sizeof(ptrdiff_t) <= sizeof(long)) {
4288 #endif
4289     return SWIG_From_long  (static_cast< long >(value));
4290 #ifdef SWIG_LONG_LONG_AVAILABLE
4291   } else {
4292     /* assume sizeof(ptrdiff_t) <= sizeof(long long) */
4293     return SWIG_From_long_SS_long  (static_cast< long long >(value));
4294   }
4295 #endif
4296 }
4297 
4298 
4299 SWIGINTERNINLINE PyObject*
SWIG_From_bool(bool value)4300   SWIG_From_bool  (bool value)
4301 {
4302   return PyBool_FromLong(value ? 1 : 0);
4303 }
4304 
4305 
4306 SWIGINTERN int
SWIG_AsVal_long(PyObject * obj,long * val)4307 SWIG_AsVal_long (PyObject *obj, long* val)
4308 {
4309 #if PY_VERSION_HEX < 0x03000000
4310   if (PyInt_Check(obj)) {
4311     if (val) *val = PyInt_AsLong(obj);
4312     return SWIG_OK;
4313   } else
4314 #endif
4315   if (PyLong_Check(obj)) {
4316     long v = PyLong_AsLong(obj);
4317     if (!PyErr_Occurred()) {
4318       if (val) *val = v;
4319       return SWIG_OK;
4320     } else {
4321       PyErr_Clear();
4322       return SWIG_OverflowError;
4323     }
4324   }
4325 #ifdef SWIG_PYTHON_CAST_MODE
4326   {
4327     int dispatch = 0;
4328     long v = PyInt_AsLong(obj);
4329     if (!PyErr_Occurred()) {
4330       if (val) *val = v;
4331       return SWIG_AddCast(SWIG_OK);
4332     } else {
4333       PyErr_Clear();
4334     }
4335     if (!dispatch) {
4336       double d;
4337       int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
4338       if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
4339 	if (val) *val = (long)(d);
4340 	return res;
4341       }
4342     }
4343   }
4344 #endif
4345   return SWIG_TypeError;
4346 }
4347 
4348 
4349 #ifdef SWIG_LONG_LONG_AVAILABLE
4350 SWIGINTERN int
SWIG_AsVal_long_SS_long(PyObject * obj,long long * val)4351 SWIG_AsVal_long_SS_long (PyObject *obj, long long *val)
4352 {
4353   int res = SWIG_TypeError;
4354   if (PyLong_Check(obj)) {
4355     long long v = PyLong_AsLongLong(obj);
4356     if (!PyErr_Occurred()) {
4357       if (val) *val = v;
4358       return SWIG_OK;
4359     } else {
4360       PyErr_Clear();
4361       res = SWIG_OverflowError;
4362     }
4363   } else {
4364     long v;
4365     res = SWIG_AsVal_long (obj,&v);
4366     if (SWIG_IsOK(res)) {
4367       if (val) *val = v;
4368       return res;
4369     }
4370   }
4371 #ifdef SWIG_PYTHON_CAST_MODE
4372   {
4373     const double mant_max = 1LL << DBL_MANT_DIG;
4374     const double mant_min = -mant_max;
4375     double d;
4376     res = SWIG_AsVal_double (obj,&d);
4377     if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, mant_min, mant_max))
4378       return SWIG_OverflowError;
4379     if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, mant_min, mant_max)) {
4380       if (val) *val = (long long)(d);
4381       return SWIG_AddCast(res);
4382     }
4383     res = SWIG_TypeError;
4384   }
4385 #endif
4386   return res;
4387 }
4388 #endif
4389 
4390 
4391 SWIGINTERNINLINE int
SWIG_AsVal_ptrdiff_t(PyObject * obj,ptrdiff_t * val)4392 SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val)
4393 {
4394   int res = SWIG_TypeError;
4395 #ifdef SWIG_LONG_LONG_AVAILABLE
4396   if (sizeof(ptrdiff_t) <= sizeof(long)) {
4397 #endif
4398     long v;
4399     res = SWIG_AsVal_long (obj, val ? &v : 0);
4400     if (SWIG_IsOK(res) && val) *val = static_cast< ptrdiff_t >(v);
4401 #ifdef SWIG_LONG_LONG_AVAILABLE
4402   } else if (sizeof(ptrdiff_t) <= sizeof(long long)) {
4403     long long v;
4404     res = SWIG_AsVal_long_SS_long (obj, val ? &v : 0);
4405     if (SWIG_IsOK(res) && val) *val = static_cast< ptrdiff_t >(v);
4406   }
4407 #endif
4408   return res;
4409 }
4410 
4411 
4412 #include <algorithm>
4413 
4414 
4415 #include <vector>
4416 
4417 
4418 #include <utility>
4419 
4420 
4421 #include <map>
4422 
4423 
4424 #include <algorithm>
4425 
4426 
4427 /* python/extracomments.i: Custom written documentation comments.
4428  *
4429  * Copyright (C) 2007 Lemur Consulting Ltd
4430  *
4431  * This program is free software; you can redistribute it and/or
4432  * modify it under the terms of the GNU General Public License as
4433  * published by the Free Software Foundation; either version 2 of the
4434  * License, or (at your option) any later version.
4435  *
4436  * This program is distributed in the hope that it will be useful,
4437  * but WITHOUT ANY WARRANTY; without even the implied warranty of
4438  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4439  * GNU General Public License for more details.
4440  *
4441  * You should have received a copy of the GNU General Public License
4442  * along with this program; if not, write to the Free Software
4443  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
4444  * USA
4445  */
4446 
4447 
4448 /* python/util.i: custom Python typemaps for xapian-bindings
4449  *
4450  * Copyright (C) 1999,2000,2001 BrightStation PLC
4451  * Copyright (C) 2002 Ananova Ltd
4452  * Copyright (C) 2002,2003 James Aylett
4453  * Copyright (C) 2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2013,2016,2017,2019 Olly Betts
4454  * Copyright (C) 2007 Lemur Consulting Ltd
4455  *
4456  * This program is free software; you can redistribute it and/or
4457  * modify it under the terms of the GNU General Public License as
4458  * published by the Free Software Foundation; either version 2 of the
4459  * License, or (at your option) any later version.
4460  *
4461  * This program is distributed in the hope that it will be useful,
4462  * but WITHOUT ANY WARRANTY; without even the implied warranty of
4463  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4464  * GNU General Public License for more details.
4465  *
4466  * You should have received a copy of the GNU General Public License
4467  * along with this program; if not, write to the Free Software
4468  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
4469  * USA
4470  */
4471 
4472 
4473 namespace Xapian {
get_py_query(PyObject * obj)4474     Query *get_py_query(PyObject *obj) {
4475 	PyObject * mythis = PyObject_GetAttrString(obj, "this");
4476 	if (!mythis)
4477 	    return 0;
4478 
4479 	Query * retval = 0;
4480 	int res = SWIG_ConvertPtr(mythis, (void **)&retval,
4481 				  SWIGTYPE_p_Xapian__Query, 0);
4482 	if (!SWIG_IsOK(res)) {
4483 	    retval = 0;
4484 	}
4485 	Py_DECREF(mythis);
4486 	return retval;
4487     }
4488 }
4489 
4490 
4491 class XapianSWIGQueryItor {
4492     mutable PyObject * seq;
4493 
4494     int i;
4495 
4496     /// str_obj must be a bytes object
str_obj_to_query(PyObject * str_obj) const4497     Xapian::Query str_obj_to_query(PyObject * str_obj) const {
4498 	char * p;
4499 	Py_ssize_t len;
4500 	(void)PyBytes_AsStringAndSize(str_obj, &p, &len);
4501 	return Xapian::Query(string(p, len));
4502     }
4503 
4504   public:
4505     typedef std::random_access_iterator_tag iterator_category;
4506     typedef Xapian::Query value_type;
4507     typedef Xapian::termcount_diff difference_type;
4508     typedef Xapian::Query * pointer;
4509     typedef Xapian::Query & reference;
4510 
XapianSWIGQueryItor()4511     XapianSWIGQueryItor() : seq(NULL), i(0) { }
4512 
begin(PyObject * seq_)4513     void begin(PyObject * seq_) {
4514 	seq = seq_;
4515     }
4516 
end(PyObject * seq_)4517     void end(PyObject * seq_) {
4518 	i = PySequence_Fast_GET_SIZE(seq_);
4519     }
4520 
free_seq()4521     void free_seq() {
4522 	Py_CLEAR(seq);
4523     }
4524 
operator ++()4525     XapianSWIGQueryItor & operator++() {
4526 	++i;
4527 	return *this;
4528     }
4529 
operator *() const4530     Xapian::Query operator*() const {
4531 	PyObject * obj = PySequence_Fast_GET_ITEM(seq, i);
4532 
4533 	// Unicode object.
4534 	if (PyUnicode_Check(obj)) {
4535 	    PyObject* s = PyUnicode_AsUTF8String(obj);
4536 	    if (!s) goto fail;
4537 	    Xapian::Query result = str_obj_to_query(s);
4538 	    Py_DECREF(s);
4539 	    return result;
4540 	}
4541 
4542 	// String.
4543 	if (PyBytes_Check(obj))
4544 	    return str_obj_to_query(obj);
4545 
4546 	// xapian.Query object (or unexpected object type).
4547 	{
4548 	    Xapian::Query * result_ptr = Xapian::get_py_query(obj);
4549 	    if (result_ptr) return *result_ptr;
4550 	}
4551 
4552     fail:
4553 	throw Xapian::InvalidArgumentError("Expected Query object or string");
4554     }
4555 
operator ==(const XapianSWIGQueryItor & o)4556     bool operator==(const XapianSWIGQueryItor & o) {
4557 	return i == o.i;
4558     }
4559 
operator !=(const XapianSWIGQueryItor & o)4560     bool operator!=(const XapianSWIGQueryItor & o) {
4561 	return !(*this == o);
4562     }
4563 
operator -(const XapianSWIGQueryItor & o) const4564     difference_type operator-(const XapianSWIGQueryItor &o) const {
4565 	return i - o.i;
4566     }
4567 };
4568 
4569 
4570 
4571 SWIGINTERN swig_type_info*
SWIG_pchar_descriptor(void)4572 SWIG_pchar_descriptor(void)
4573 {
4574   static int init = 0;
4575   static swig_type_info* info = 0;
4576   if (!init) {
4577     info = SWIG_TypeQuery("_p_char");
4578     init = 1;
4579   }
4580   return info;
4581 }
4582 
4583 
4584 SWIGINTERNINLINE PyObject *
SWIG_FromCharPtrAndSize(const char * carray,size_t size)4585 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
4586 {
4587   if (carray) {
4588     if (size > INT_MAX) {
4589       swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
4590       return pchar_descriptor ?
4591 	SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void();
4592     } else {
4593 #if PY_VERSION_HEX >= 0x03000000
4594 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
4595       return PyBytes_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
4596 #else
4597 #if PY_VERSION_HEX >= 0x03010000
4598       return PyUnicode_DecodeUTF8(carray, static_cast< Py_ssize_t >(size), "surrogateescape");
4599 #else
4600       return PyUnicode_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
4601 #endif
4602 #endif
4603 #else
4604       return PyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
4605 #endif
4606     }
4607   } else {
4608     return SWIG_Py_Void();
4609   }
4610 }
4611 
4612 
4613 SWIGINTERNINLINE PyObject *
SWIG_From_std_string(const std::string & s)4614 SWIG_From_std_string  (const std::string& s)
4615 {
4616   return SWIG_FromCharPtrAndSize(s.data(), s.size());
4617 }
4618 
Xapian_Error___str__(Xapian::Error const * self)4619 SWIGINTERN std::string Xapian_Error___str__(Xapian::Error const *self){
4620 	std::string desc(self->get_msg());
4621 	if (!self->get_context().empty()) {
4622 	    desc += " (context: ";
4623 	    desc += self->get_context();
4624 	    desc += ')';
4625 	}
4626 	if (self->get_error_string()) {
4627 	    desc += " (";
4628 	    desc += self->get_error_string();
4629 	    desc += ')';
4630 	}
4631 	return desc;
4632     }
4633 
4634 SWIGINTERN int
SWIG_AsCharPtrAndSize(PyObject * obj,char ** cptr,size_t * psize,int * alloc)4635 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
4636 {
4637 #if PY_VERSION_HEX>=0x03000000
4638 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
4639   if (PyBytes_Check(obj))
4640 #else
4641   if (PyUnicode_Check(obj))
4642 #endif
4643 #else
4644   if (PyString_Check(obj))
4645 #endif
4646   {
4647     char *cstr; Py_ssize_t len;
4648 #if PY_VERSION_HEX>=0x03000000
4649 #if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
4650     if (!alloc && cptr) {
4651         /* We can't allow converting without allocation, since the internal
4652            representation of string in Python 3 is UCS-2/UCS-4 but we require
4653            a UTF-8 representation.
4654            TODO(bhy) More detailed explanation */
4655         return SWIG_RuntimeError;
4656     }
4657     obj = PyUnicode_AsUTF8String(obj);
4658     if(alloc) *alloc = SWIG_NEWOBJ;
4659 #endif
4660     PyBytes_AsStringAndSize(obj, &cstr, &len);
4661 #else
4662     PyString_AsStringAndSize(obj, &cstr, &len);
4663 #endif
4664     if (cptr) {
4665       if (alloc) {
4666 	/*
4667 	   In python the user should not be able to modify the inner
4668 	   string representation. To warranty that, if you define
4669 	   SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
4670 	   buffer is always returned.
4671 
4672 	   The default behavior is just to return the pointer value,
4673 	   so, be careful.
4674 	*/
4675 #if defined(SWIG_PYTHON_SAFE_CSTRINGS)
4676 	if (*alloc != SWIG_OLDOBJ)
4677 #else
4678 	if (*alloc == SWIG_NEWOBJ)
4679 #endif
4680 	{
4681 	  *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1)));
4682 	  *alloc = SWIG_NEWOBJ;
4683 	} else {
4684 	  *cptr = cstr;
4685 	  *alloc = SWIG_OLDOBJ;
4686 	}
4687       } else {
4688 #if PY_VERSION_HEX>=0x03000000
4689 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
4690 	*cptr = PyBytes_AsString(obj);
4691 #else
4692 	assert(0); /* Should never reach here with Unicode strings in Python 3 */
4693 #endif
4694 #else
4695 	*cptr = SWIG_Python_str_AsChar(obj);
4696 #endif
4697       }
4698     }
4699     if (psize) *psize = len + 1;
4700 #if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
4701     Py_XDECREF(obj);
4702 #endif
4703     return SWIG_OK;
4704   } else {
4705 #if defined(SWIG_PYTHON_2_UNICODE)
4706 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
4707 #error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once"
4708 #endif
4709 #if PY_VERSION_HEX<0x03000000
4710     if (PyUnicode_Check(obj)) {
4711       char *cstr; Py_ssize_t len;
4712       if (!alloc && cptr) {
4713         return SWIG_RuntimeError;
4714       }
4715       obj = PyUnicode_AsUTF8String(obj);
4716       if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
4717         if (cptr) {
4718           if (alloc) *alloc = SWIG_NEWOBJ;
4719           *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1)));
4720         }
4721         if (psize) *psize = len + 1;
4722 
4723         Py_XDECREF(obj);
4724         return SWIG_OK;
4725       } else {
4726         Py_XDECREF(obj);
4727       }
4728     }
4729 #endif
4730 #endif
4731 
4732     swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
4733     if (pchar_descriptor) {
4734       void* vptr = 0;
4735       if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
4736 	if (cptr) *cptr = (char *) vptr;
4737 	if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
4738 	if (alloc) *alloc = SWIG_OLDOBJ;
4739 	return SWIG_OK;
4740       }
4741     }
4742   }
4743   return SWIG_TypeError;
4744 }
4745 
4746 
4747 SWIGINTERN int
SWIG_AsPtr_std_string(PyObject * obj,std::string ** val)4748 SWIG_AsPtr_std_string (PyObject * obj, std::string **val)
4749 {
4750   char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ;
4751   if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) {
4752     if (buf) {
4753       if (val) *val = new std::string(buf, size - 1);
4754       if (alloc == SWIG_NEWOBJ) delete[] buf;
4755       return SWIG_NEWOBJ;
4756     } else {
4757       if (val) *val = 0;
4758       return SWIG_OLDOBJ;
4759     }
4760   } else {
4761     static int init = 0;
4762     static swig_type_info* descriptor = 0;
4763     if (!init) {
4764       descriptor = SWIG_TypeQuery("std::string" " *");
4765       init = 1;
4766     }
4767     if (descriptor) {
4768       std::string *vptr;
4769       int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0);
4770       if (SWIG_IsOK(res) && val) *val = vptr;
4771       return res;
4772     }
4773   }
4774   return SWIG_ERROR;
4775 }
4776 
4777 
4778 /* Utility function which works like SWIG_AsPtr_std_string, but
4779  * converts unicode strings to UTF-8 simple strings first. */
4780 static int
XapianSWIG_anystring_as_ptr(PyObject * obj,std::string ** val)4781 XapianSWIG_anystring_as_ptr(PyObject * obj, std::string **val)
4782 {
4783     if (PyUnicode_Check(obj)) {
4784 	PyObject* strobj = PyUnicode_AsUTF8String(obj);
4785 	if (strobj == NULL) return INT_MIN;
4786 	char *p;
4787 	Py_ssize_t len;
4788 	PyBytes_AsStringAndSize(strobj, &p, &len);
4789 	if (val) *val = new std::string(p, len);
4790 	Py_DECREF(strobj);
4791 	return SWIG_NEWOBJ;
4792     } else if (PyBytes_Check(obj)) {
4793 	char *p;
4794 	Py_ssize_t len;
4795 	PyBytes_AsStringAndSize(obj, &p, &len);
4796 	if (val) *val = new std::string(p, len);
4797 	return SWIG_NEWOBJ;
4798     } else {
4799 	return SWIG_AsPtr_std_string(obj, val);
4800     }
4801 }
4802 
4803 
4804 
4805 
4806 
4807 SWIGINTERN int
SWIG_AsVal_int(PyObject * obj,int * val)4808 SWIG_AsVal_int (PyObject * obj, int *val)
4809 {
4810   long v;
4811   int res = SWIG_AsVal_long (obj, &v);
4812   if (SWIG_IsOK(res)) {
4813     if ((v < INT_MIN || v > INT_MAX)) {
4814       return SWIG_OverflowError;
4815     } else {
4816       if (val) *val = static_cast< int >(v);
4817     }
4818   }
4819   return res;
4820 }
4821 
4822 
4823 namespace Xapian {
SetPythonException()4824 SWIGEXPORT void SetPythonException() {
4825     try {
4826 	throw;
4827     } catch (Swig::DirectorException &) {
4828 	/* This happens if a director raised an exception.  The standard SWIG
4829 	 * director exception handling code sets the Python error state if
4830 	 * necessary, so we don't need to do anything. */
4831     } catch (const Xapian::DatabaseClosedError &e) {
4832 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DatabaseClosedError(e)),
4833 					     SWIGTYPE_p_Xapian__DatabaseClosedError,
4834 					     SWIG_POINTER_OWN),
4835 			  "Xapian::DatabaseClosedError",
4836 			  SWIGTYPE_p_Xapian__DatabaseClosedError);
4837     } catch (const Xapian::DatabaseNotFoundError &e) {
4838 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DatabaseNotFoundError(e)),
4839 					     SWIGTYPE_p_Xapian__DatabaseNotFoundError,
4840 					     SWIG_POINTER_OWN),
4841 			  "Xapian::DatabaseNotFoundError",
4842 			  SWIGTYPE_p_Xapian__DatabaseNotFoundError);
4843     } catch (const Xapian::WildcardError &e) {
4844 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::WildcardError(e)),
4845 					     SWIGTYPE_p_Xapian__WildcardError,
4846 					     SWIG_POINTER_OWN),
4847 			  "Xapian::WildcardError",
4848 			  SWIGTYPE_p_Xapian__WildcardError);
4849     } catch (const Xapian::RangeError &e) {
4850 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::RangeError(e)),
4851 					     SWIGTYPE_p_Xapian__RangeError,
4852 					     SWIG_POINTER_OWN),
4853 			  "Xapian::RangeError",
4854 			  SWIGTYPE_p_Xapian__RangeError);
4855     } catch (const Xapian::SerialisationError &e) {
4856 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::SerialisationError(e)),
4857 					     SWIGTYPE_p_Xapian__SerialisationError,
4858 					     SWIG_POINTER_OWN),
4859 			  "Xapian::SerialisationError",
4860 			  SWIGTYPE_p_Xapian__SerialisationError);
4861     } catch (const Xapian::QueryParserError &e) {
4862 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::QueryParserError(e)),
4863 					     SWIGTYPE_p_Xapian__QueryParserError,
4864 					     SWIG_POINTER_OWN),
4865 			  "Xapian::QueryParserError",
4866 			  SWIGTYPE_p_Xapian__QueryParserError);
4867     } catch (const Xapian::NetworkTimeoutError &e) {
4868 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::NetworkTimeoutError(e)),
4869 					     SWIGTYPE_p_Xapian__NetworkTimeoutError,
4870 					     SWIG_POINTER_OWN),
4871 			  "Xapian::NetworkTimeoutError",
4872 			  SWIGTYPE_p_Xapian__NetworkTimeoutError);
4873     } catch (const Xapian::NetworkError &e) {
4874 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::NetworkError(e)),
4875 					     SWIGTYPE_p_Xapian__NetworkError,
4876 					     SWIG_POINTER_OWN),
4877 			  "Xapian::NetworkError",
4878 			  SWIGTYPE_p_Xapian__NetworkError);
4879     } catch (const Xapian::InternalError &e) {
4880 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::InternalError(e)),
4881 					     SWIGTYPE_p_Xapian__InternalError,
4882 					     SWIG_POINTER_OWN),
4883 			  "Xapian::InternalError",
4884 			  SWIGTYPE_p_Xapian__InternalError);
4885     } catch (const Xapian::FeatureUnavailableError &e) {
4886 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::FeatureUnavailableError(e)),
4887 					     SWIGTYPE_p_Xapian__FeatureUnavailableError,
4888 					     SWIG_POINTER_OWN),
4889 			  "Xapian::FeatureUnavailableError",
4890 			  SWIGTYPE_p_Xapian__FeatureUnavailableError);
4891     } catch (const Xapian::DocNotFoundError &e) {
4892 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DocNotFoundError(e)),
4893 					     SWIGTYPE_p_Xapian__DocNotFoundError,
4894 					     SWIG_POINTER_OWN),
4895 			  "Xapian::DocNotFoundError",
4896 			  SWIGTYPE_p_Xapian__DocNotFoundError);
4897     } catch (const Xapian::DatabaseVersionError &e) {
4898 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DatabaseVersionError(e)),
4899 					     SWIGTYPE_p_Xapian__DatabaseVersionError,
4900 					     SWIG_POINTER_OWN),
4901 			  "Xapian::DatabaseVersionError",
4902 			  SWIGTYPE_p_Xapian__DatabaseVersionError);
4903     } catch (const Xapian::DatabaseOpeningError &e) {
4904 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DatabaseOpeningError(e)),
4905 					     SWIGTYPE_p_Xapian__DatabaseOpeningError,
4906 					     SWIG_POINTER_OWN),
4907 			  "Xapian::DatabaseOpeningError",
4908 			  SWIGTYPE_p_Xapian__DatabaseOpeningError);
4909     } catch (const Xapian::DatabaseModifiedError &e) {
4910 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DatabaseModifiedError(e)),
4911 					     SWIGTYPE_p_Xapian__DatabaseModifiedError,
4912 					     SWIG_POINTER_OWN),
4913 			  "Xapian::DatabaseModifiedError",
4914 			  SWIGTYPE_p_Xapian__DatabaseModifiedError);
4915     } catch (const Xapian::DatabaseLockError &e) {
4916 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DatabaseLockError(e)),
4917 					     SWIGTYPE_p_Xapian__DatabaseLockError,
4918 					     SWIG_POINTER_OWN),
4919 			  "Xapian::DatabaseLockError",
4920 			  SWIGTYPE_p_Xapian__DatabaseLockError);
4921     } catch (const Xapian::DatabaseCreateError &e) {
4922 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DatabaseCreateError(e)),
4923 					     SWIGTYPE_p_Xapian__DatabaseCreateError,
4924 					     SWIG_POINTER_OWN),
4925 			  "Xapian::DatabaseCreateError",
4926 			  SWIGTYPE_p_Xapian__DatabaseCreateError);
4927     } catch (const Xapian::DatabaseCorruptError &e) {
4928 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DatabaseCorruptError(e)),
4929 					     SWIGTYPE_p_Xapian__DatabaseCorruptError,
4930 					     SWIG_POINTER_OWN),
4931 			  "Xapian::DatabaseCorruptError",
4932 			  SWIGTYPE_p_Xapian__DatabaseCorruptError);
4933     } catch (const Xapian::DatabaseError &e) {
4934 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::DatabaseError(e)),
4935 					     SWIGTYPE_p_Xapian__DatabaseError,
4936 					     SWIG_POINTER_OWN),
4937 			  "Xapian::DatabaseError",
4938 			  SWIGTYPE_p_Xapian__DatabaseError);
4939     } catch (const Xapian::UnimplementedError &e) {
4940 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::UnimplementedError(e)),
4941 					     SWIGTYPE_p_Xapian__UnimplementedError,
4942 					     SWIG_POINTER_OWN),
4943 			  "Xapian::UnimplementedError",
4944 			  SWIGTYPE_p_Xapian__UnimplementedError);
4945     } catch (const Xapian::InvalidOperationError &e) {
4946 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::InvalidOperationError(e)),
4947 					     SWIGTYPE_p_Xapian__InvalidOperationError,
4948 					     SWIG_POINTER_OWN),
4949 			  "Xapian::InvalidOperationError",
4950 			  SWIGTYPE_p_Xapian__InvalidOperationError);
4951     } catch (const Xapian::InvalidArgumentError &e) {
4952 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::InvalidArgumentError(e)),
4953 					     SWIGTYPE_p_Xapian__InvalidArgumentError,
4954 					     SWIG_POINTER_OWN),
4955 			  "Xapian::InvalidArgumentError",
4956 			  SWIGTYPE_p_Xapian__InvalidArgumentError);
4957     } catch (const Xapian::AssertionError &e) {
4958 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::AssertionError(e)),
4959 					     SWIGTYPE_p_Xapian__AssertionError,
4960 					     SWIG_POINTER_OWN),
4961 			  "Xapian::AssertionError",
4962 			  SWIGTYPE_p_Xapian__AssertionError);
4963     } catch (const Xapian::RuntimeError &e) {
4964 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::RuntimeError(e)),
4965 					     SWIGTYPE_p_Xapian__RuntimeError,
4966 					     SWIG_POINTER_OWN),
4967 			  "Xapian::RuntimeError",
4968 			  SWIGTYPE_p_Xapian__RuntimeError);
4969     } catch (const Xapian::LogicError &e) {
4970 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::LogicError(e)),
4971 					     SWIGTYPE_p_Xapian__LogicError,
4972 					     SWIG_POINTER_OWN),
4973 			  "Xapian::LogicError",
4974 			  SWIGTYPE_p_Xapian__LogicError);
4975     } catch (const Xapian::Error &e) {
4976 	SWIG_Python_Raise(SWIG_NewPointerObj((new Xapian::Error(e)),
4977 					     SWIGTYPE_p_Xapian__Error,
4978 					     SWIG_POINTER_OWN),
4979 			  "Xapian::Error",
4980 			  SWIGTYPE_p_Xapian__Error);
4981     } catch (const std::exception& e) {
4982 	SWIG_Error(SWIG_RuntimeError, e.what());
4983     } catch (...) {
4984 	SWIG_Error(SWIG_UnknownError, "unknown error in Xapian");
4985     }
4986 }
4987 }
4988 
4989 
4990 /* xapian-headers.i: Getting SWIG to parse Xapian's C++ headers.
4991  *
4992  * Copyright 2004,2006,2011,2012,2013,2014,2015,2016,2019,2020 Olly Betts
4993  * Copyright 2014 Assem Chelli
4994  *
4995  * This program is free software; you can redistribute it and/or
4996  * modify it under the terms of the GNU General Public License as
4997  * published by the Free Software Foundation; either version 2 of the
4998  * License, or (at your option) any later version.
4999  *
5000  * This program is distributed in the hope that it will be useful,
5001  * but WITHOUT ANY WARRANTY; without even the implied warranty of
5002  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5003  * GNU General Public License for more details.
5004  *
5005  * You should have received a copy of the GNU General Public License
5006  * along with this program; if not, write to the Free Software
5007  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
5008  * USA
5009  */
5010 
5011 
5012 SWIGINTERNINLINE PyObject*
SWIG_From_int(int value)5013   SWIG_From_int  (int value)
5014 {
5015   return PyInt_FromLong((long) value);
5016 }
5017 
5018 
5019 SWIGINTERNINLINE PyObject*
SWIG_From_unsigned_SS_int(unsigned int value)5020   SWIG_From_unsigned_SS_int  (unsigned int value)
5021 {
5022   return PyInt_FromSize_t((size_t) value);
5023 }
5024 
5025 
5026 SWIGINTERN int
SWIG_AsVal_unsigned_SS_int(PyObject * obj,unsigned int * val)5027 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
5028 {
5029   unsigned long v;
5030   int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
5031   if (SWIG_IsOK(res)) {
5032     if ((v > UINT_MAX)) {
5033       return SWIG_OverflowError;
5034     } else {
5035       if (val) *val = static_cast< unsigned int >(v);
5036     }
5037   }
5038   return res;
5039 }
5040 
Xapian_PositionIterator___eq__(Xapian::PositionIterator * self,Xapian::PositionIterator const & other)5041 SWIGINTERN bool Xapian_PositionIterator___eq__(Xapian::PositionIterator *self,Xapian::PositionIterator const &other){
5042 	    return (*self)==other;
5043 	}
Xapian_PositionIterator___ne__(Xapian::PositionIterator * self,Xapian::PositionIterator const & other)5044 SWIGINTERN bool Xapian_PositionIterator___ne__(Xapian::PositionIterator *self,Xapian::PositionIterator const &other){
5045 	    return (*self)!=other;
5046 	}
Xapian_PositionIterator_equals(Xapian::PositionIterator const * self,Xapian::PositionIterator const & o)5047 SWIGINTERN bool Xapian_PositionIterator_equals(Xapian::PositionIterator const *self,Xapian::PositionIterator const &o){ return *self == o; }
Xapian_PositionIterator_get_termpos(Xapian::PositionIterator const * self)5048 SWIGINTERN Xapian::termpos Xapian_PositionIterator_get_termpos(Xapian::PositionIterator const *self){ return **self; }
Xapian_PositionIterator_next(Xapian::PositionIterator * self)5049 SWIGINTERN void Xapian_PositionIterator_next(Xapian::PositionIterator *self){ ++(*self); }
Xapian_PostingIterator___eq__(Xapian::PostingIterator * self,Xapian::PostingIterator const & other)5050 SWIGINTERN bool Xapian_PostingIterator___eq__(Xapian::PostingIterator *self,Xapian::PostingIterator const &other){
5051 	    return (*self)==other;
5052 	}
Xapian_PostingIterator___ne__(Xapian::PostingIterator * self,Xapian::PostingIterator const & other)5053 SWIGINTERN bool Xapian_PostingIterator___ne__(Xapian::PostingIterator *self,Xapian::PostingIterator const &other){
5054 	    return (*self)!=other;
5055 	}
Xapian_PostingIterator_equals(Xapian::PostingIterator const * self,Xapian::PostingIterator const & o)5056 SWIGINTERN bool Xapian_PostingIterator_equals(Xapian::PostingIterator const *self,Xapian::PostingIterator const &o){ return *self == o; }
Xapian_PostingIterator_get_docid(Xapian::PostingIterator const * self)5057 SWIGINTERN Xapian::docid Xapian_PostingIterator_get_docid(Xapian::PostingIterator const *self){ return **self; }
Xapian_PostingIterator_next(Xapian::PostingIterator * self)5058 SWIGINTERN void Xapian_PostingIterator_next(Xapian::PostingIterator *self){ ++(*self); }
Xapian_TermIterator___eq__(Xapian::TermIterator * self,Xapian::TermIterator const & other)5059 SWIGINTERN bool Xapian_TermIterator___eq__(Xapian::TermIterator *self,Xapian::TermIterator const &other){
5060 	    return (*self)==other;
5061 	}
Xapian_TermIterator___ne__(Xapian::TermIterator * self,Xapian::TermIterator const & other)5062 SWIGINTERN bool Xapian_TermIterator___ne__(Xapian::TermIterator *self,Xapian::TermIterator const &other){
5063 	    return (*self)!=other;
5064 	}
Xapian_TermIterator_equals(Xapian::TermIterator const * self,Xapian::TermIterator const & o)5065 SWIGINTERN bool Xapian_TermIterator_equals(Xapian::TermIterator const *self,Xapian::TermIterator const &o){ return *self == o; }
Xapian_TermIterator_get_term(Xapian::TermIterator const * self)5066 SWIGINTERN std::string Xapian_TermIterator_get_term(Xapian::TermIterator const *self){ return **self; }
Xapian_TermIterator_next(Xapian::TermIterator * self)5067 SWIGINTERN void Xapian_TermIterator_next(Xapian::TermIterator *self){ ++(*self); }
Xapian_ValueIterator___eq__(Xapian::ValueIterator * self,Xapian::ValueIterator const & other)5068 SWIGINTERN bool Xapian_ValueIterator___eq__(Xapian::ValueIterator *self,Xapian::ValueIterator const &other){
5069 	    return (*self)==other;
5070 	}
Xapian_ValueIterator___ne__(Xapian::ValueIterator * self,Xapian::ValueIterator const & other)5071 SWIGINTERN bool Xapian_ValueIterator___ne__(Xapian::ValueIterator *self,Xapian::ValueIterator const &other){
5072 	    return (*self)!=other;
5073 	}
Xapian_ValueIterator_equals(Xapian::ValueIterator const * self,Xapian::ValueIterator const & o)5074 SWIGINTERN bool Xapian_ValueIterator_equals(Xapian::ValueIterator const *self,Xapian::ValueIterator const &o){ return *self == o; }
Xapian_ValueIterator_get_value(Xapian::ValueIterator const * self)5075 SWIGINTERN std::string Xapian_ValueIterator_get_value(Xapian::ValueIterator const *self){ return **self; }
Xapian_ValueIterator_next(Xapian::ValueIterator * self)5076 SWIGINTERN void Xapian_ValueIterator_next(Xapian::ValueIterator *self){ ++(*self); }
5077 
5078 SWIGINTERNINLINE PyObject*
SWIG_From_unsigned_SS_long(unsigned long value)5079 SWIG_From_unsigned_SS_long  (unsigned long value)
5080 {
5081   return (value > LONG_MAX) ?
5082     PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
5083 }
5084 
5085 
5086 #ifdef SWIG_LONG_LONG_AVAILABLE
5087 SWIGINTERNINLINE PyObject*
SWIG_From_unsigned_SS_long_SS_long(unsigned long long value)5088 SWIG_From_unsigned_SS_long_SS_long  (unsigned long long value)
5089 {
5090   return (value > LONG_MAX) ?
5091     PyLong_FromUnsignedLongLong(value) : PyInt_FromLong(static_cast< long >(value));
5092 }
5093 #endif
5094 
5095 
5096 SWIGINTERNINLINE PyObject *
SWIG_From_size_t(size_t value)5097 SWIG_From_size_t  (size_t value)
5098 {
5099 #ifdef SWIG_LONG_LONG_AVAILABLE
5100   if (sizeof(size_t) <= sizeof(unsigned long)) {
5101 #endif
5102     return SWIG_From_unsigned_SS_long  (static_cast< unsigned long >(value));
5103 #ifdef SWIG_LONG_LONG_AVAILABLE
5104   } else {
5105     /* assume sizeof(size_t) <= sizeof(unsigned long long) */
5106     return SWIG_From_unsigned_SS_long_SS_long  (static_cast< unsigned long long >(value));
5107   }
5108 #endif
5109 }
5110 
5111 
5112 SWIGINTERN int
SWIG_AsVal_bool(PyObject * obj,bool * val)5113 SWIG_AsVal_bool (PyObject *obj, bool *val)
5114 {
5115   int r = PyObject_IsTrue(obj);
5116   if (r == -1)
5117     return SWIG_ERROR;
5118   if (val) *val = r ? true : false;
5119   return SWIG_OK;
5120 }
5121 
5122 
5123   #define SWIG_From_double   PyFloat_FromDouble
5124 
Xapian_MSet_get_docid(Xapian::MSet const * self,Xapian::doccount i)5125 SWIGINTERN Xapian::docid Xapian_MSet_get_docid(Xapian::MSet const *self,Xapian::doccount i){
5126 	return *(*self)[i];
5127     }
Xapian_MSet_get_document(Xapian::MSet const * self,Xapian::doccount i)5128 SWIGINTERN Xapian::Document Xapian_MSet_get_document(Xapian::MSet const *self,Xapian::doccount i){
5129 	return (*self)[i].get_document();
5130     }
Xapian_MSet_get_hit(Xapian::MSet const * self,Xapian::doccount i)5131 SWIGINTERN Xapian::MSetIterator Xapian_MSet_get_hit(Xapian::MSet const *self,Xapian::doccount i){
5132 	return (*self)[i];
5133     }
Xapian_MSet_get_document_percentage(Xapian::MSet const * self,Xapian::doccount i)5134 SWIGINTERN int Xapian_MSet_get_document_percentage(Xapian::MSet const *self,Xapian::doccount i){
5135 	return self->convert_to_percent((*self)[i]);
5136     }
Xapian_MSetIterator___eq__(Xapian::MSetIterator * self,Xapian::MSetIterator const & other)5137 SWIGINTERN bool Xapian_MSetIterator___eq__(Xapian::MSetIterator *self,Xapian::MSetIterator const &other){
5138 	    return (*self)==other;
5139 	}
Xapian_MSetIterator___ne__(Xapian::MSetIterator * self,Xapian::MSetIterator const & other)5140 SWIGINTERN bool Xapian_MSetIterator___ne__(Xapian::MSetIterator *self,Xapian::MSetIterator const &other){
5141 	    return (*self)!=other;
5142 	}
Xapian_MSetIterator_equals(Xapian::MSetIterator const * self,Xapian::MSetIterator const & o)5143 SWIGINTERN bool Xapian_MSetIterator_equals(Xapian::MSetIterator const *self,Xapian::MSetIterator const &o){ return *self == o; }
Xapian_MSetIterator_get_docid(Xapian::MSetIterator const * self)5144 SWIGINTERN Xapian::docid Xapian_MSetIterator_get_docid(Xapian::MSetIterator const *self){ return **self; }
Xapian_MSetIterator_next(Xapian::MSetIterator * self)5145 SWIGINTERN void Xapian_MSetIterator_next(Xapian::MSetIterator *self){ ++(*self); }
Xapian_MSetIterator_prev(Xapian::MSetIterator * self)5146 SWIGINTERN void Xapian_MSetIterator_prev(Xapian::MSetIterator *self){ --(*self); }
Xapian_ESetIterator___eq__(Xapian::ESetIterator * self,Xapian::ESetIterator const & other)5147 SWIGINTERN bool Xapian_ESetIterator___eq__(Xapian::ESetIterator *self,Xapian::ESetIterator const &other){
5148 	    return (*self)==other;
5149 	}
Xapian_ESetIterator___ne__(Xapian::ESetIterator * self,Xapian::ESetIterator const & other)5150 SWIGINTERN bool Xapian_ESetIterator___ne__(Xapian::ESetIterator *self,Xapian::ESetIterator const &other){
5151 	    return (*self)!=other;
5152 	}
Xapian_ESetIterator_equals(Xapian::ESetIterator const * self,Xapian::ESetIterator const & o)5153 SWIGINTERN bool Xapian_ESetIterator_equals(Xapian::ESetIterator const *self,Xapian::ESetIterator const &o){ return *self == o; }
Xapian_ESetIterator_get_term(Xapian::ESetIterator const * self)5154 SWIGINTERN std::string Xapian_ESetIterator_get_term(Xapian::ESetIterator const *self){ return **self; }
Xapian_ESetIterator_next(Xapian::ESetIterator * self)5155 SWIGINTERN void Xapian_ESetIterator_next(Xapian::ESetIterator *self){ ++(*self); }
Xapian_ESetIterator_prev(Xapian::ESetIterator * self)5156 SWIGINTERN void Xapian_ESetIterator_prev(Xapian::ESetIterator *self){ --(*self); }
new_Xapian_SimpleStopper__SWIG_2(std::string const & file)5157 SWIGINTERN Xapian::SimpleStopper *new_Xapian_SimpleStopper__SWIG_2(std::string const &file){
5158 	ifstream in_file(file.c_str());
5159 	if (!in_file.is_open())
5160 	    throw Xapian::InvalidArgumentError("Stopword file not found: " + file);
5161 	istream_iterator<std::string> in_iter(in_file);
5162 	istream_iterator<std::string> eof;
5163 	return new Xapian::SimpleStopper(in_iter, eof);
5164     }
Xapian_LatLongCoordsIterator_equals(Xapian::LatLongCoordsIterator const * self,Xapian::LatLongCoordsIterator const & o)5165 SWIGINTERN bool Xapian_LatLongCoordsIterator_equals(Xapian::LatLongCoordsIterator const *self,Xapian::LatLongCoordsIterator const &o){ return *self == o; }
Xapian_LatLongCoordsIterator_get_coord(Xapian::LatLongCoordsIterator const * self)5166 SWIGINTERN Xapian::LatLongCoord Xapian_LatLongCoordsIterator_get_coord(Xapian::LatLongCoordsIterator const *self){ return **self; }
Xapian_LatLongCoordsIterator_next(Xapian::LatLongCoordsIterator * self)5167 SWIGINTERN void Xapian_LatLongCoordsIterator_next(Xapian::LatLongCoordsIterator *self){ ++(*self); }
5168 
5169 /* python/extra.i: Xapian scripting python interface additional python code.
5170  *
5171  * Copyright (C) 2003,2004,2005 James Aylett
5172  * Copyright (C) 2005,2006,2007,2008,2009,2010,2011,2013 Olly Betts
5173  * Copyright (C) 2007 Lemur Consulting Ltd
5174  * Copyright (C) 2010 Richard Boulton
5175  *
5176  * This program is free software; you can redistribute it and/or
5177  * modify it under the terms of the GNU General Public License as
5178  * published by the Free Software Foundation; either version 2 of the
5179  * License, or (at your option) any later version.
5180  *
5181  * This program is distributed in the hope that it will be useful,
5182  * but WITHOUT ANY WARRANTY; without even the implied warranty of
5183  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5184  * GNU General Public License for more details.
5185  *
5186  * You should have received a copy of the GNU General Public License
5187  * along with this program; if not, write to the Free Software
5188  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
5189  * USA
5190  */
5191 
5192 
5193 
5194 /* ---------------------------------------------------
5195  * C++ director class methods
5196  * --------------------------------------------------- */
5197 
5198 #include "xapian_wrap.h"
5199 
SwigDirector_StemImplementation(PyObject * self)5200 SwigDirector_StemImplementation::SwigDirector_StemImplementation(PyObject *self): Xapian::StemImplementation(), Swig::Director(self) {
5201   SWIG_DIRECTOR_RGTR((Xapian::StemImplementation *)this, this);
5202 }
5203 
5204 
5205 
5206 
~SwigDirector_StemImplementation()5207 SwigDirector_StemImplementation::~SwigDirector_StemImplementation() {
5208 }
5209 
operator ()(std::string const & word)5210 std::string SwigDirector_StemImplementation::operator ()(std::string const &word) {
5211   std::string c_result;
5212   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5213   {
5214     swig::SwigVar_PyObject obj0;
5215 
5216     obj0 = PyBytes_FromStringAndSize(word.data(), word.size());
5217 
5218     if (!swig_get_self()) {
5219       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call StemImplementation.__init__.");
5220     }
5221 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5222     const size_t swig_method_index = 0;
5223     const char *const swig_method_name = "__call__";
5224     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5225     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
5226 #else
5227     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__call__");
5228     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
5229 #endif
5230     if (!result) {
5231       PyObject *error = PyErr_Occurred();
5232       {
5233         if (error != NULL) {
5234           throw Swig::DirectorMethodException();
5235         }
5236       }
5237     }
5238     std::string *swig_optr = 0;
5239     int swig_ores;
5240     {
5241       PyObject * tmp = result;
5242       Py_INCREF(tmp);
5243       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
5244       Py_DECREF(tmp);
5245     }
5246     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
5247       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
5248     }
5249     c_result = *swig_optr;
5250     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
5251   }
5252   SWIG_PYTHON_THREAD_END_BLOCK;
5253   return (std::string) c_result;
5254 }
5255 
5256 
get_description() const5257 std::string SwigDirector_StemImplementation::get_description() const {
5258   std::string c_result;
5259   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5260   {
5261     if (!swig_get_self()) {
5262       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call StemImplementation.__init__.");
5263     }
5264 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5265     const size_t swig_method_index = 1;
5266     const char *const swig_method_name = "__str__";
5267     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5268     swig::SwigVar_PyObject args = PyTuple_New(0);
5269     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5270 #else
5271     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__str__");
5272     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5273 #endif
5274     if (!result) {
5275       PyObject *error = PyErr_Occurred();
5276       {
5277         if (error != NULL) {
5278           throw Swig::DirectorMethodException();
5279         }
5280       }
5281     }
5282     std::string *swig_optr = 0;
5283     int swig_ores;
5284     {
5285       PyObject * tmp = result;
5286       Py_INCREF(tmp);
5287       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
5288       Py_DECREF(tmp);
5289     }
5290     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
5291       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
5292     }
5293     c_result = *swig_optr;
5294     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
5295   }
5296   SWIG_PYTHON_THREAD_END_BLOCK;
5297   return (std::string) c_result;
5298 }
5299 
5300 
SwigDirector_MatchDecider(PyObject * self)5301 SwigDirector_MatchDecider::SwigDirector_MatchDecider(PyObject *self): Xapian::MatchDecider(), Swig::Director(self) {
5302   SWIG_DIRECTOR_RGTR((Xapian::MatchDecider *)this, this);
5303 }
5304 
5305 
5306 
5307 
operator ()(Xapian::Document const & doc) const5308 bool SwigDirector_MatchDecider::operator ()(Xapian::Document const &doc) const {
5309   bool c_result;
5310   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5311   {
5312     swig::SwigVar_PyObject obj0;
5313     obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&doc), SWIGTYPE_p_Xapian__Document,  0 );
5314     if (!swig_get_self()) {
5315       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call MatchDecider.__init__.");
5316     }
5317 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5318     const size_t swig_method_index = 0;
5319     const char *const swig_method_name = "__call__";
5320     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5321     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
5322 #else
5323     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__call__");
5324     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
5325 #endif
5326     if (!result) {
5327       PyObject *error = PyErr_Occurred();
5328       {
5329         if (error != NULL) {
5330           throw Swig::DirectorMethodException();
5331         }
5332       }
5333     }
5334     bool swig_val;
5335     int swig_res = SWIG_AsVal_bool(result, &swig_val);
5336     if (!SWIG_IsOK(swig_res)) {
5337       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
5338     }
5339     c_result = static_cast< bool >(swig_val);
5340   }
5341   SWIG_PYTHON_THREAD_END_BLOCK;
5342   return (bool) c_result;
5343 }
5344 
5345 
~SwigDirector_MatchDecider()5346 SwigDirector_MatchDecider::~SwigDirector_MatchDecider() {
5347 }
5348 
SwigDirector_ExpandDecider(PyObject * self)5349 SwigDirector_ExpandDecider::SwigDirector_ExpandDecider(PyObject *self): Xapian::ExpandDecider(), Swig::Director(self) {
5350   SWIG_DIRECTOR_RGTR((Xapian::ExpandDecider *)this, this);
5351 }
5352 
5353 
5354 
5355 
operator ()(std::string const & term) const5356 bool SwigDirector_ExpandDecider::operator ()(std::string const &term) const {
5357   bool c_result;
5358   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5359   {
5360     swig::SwigVar_PyObject obj0;
5361 
5362     obj0 = PyBytes_FromStringAndSize(term.data(), term.size());
5363 
5364     if (!swig_get_self()) {
5365       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ExpandDecider.__init__.");
5366     }
5367 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5368     const size_t swig_method_index = 0;
5369     const char *const swig_method_name = "__call__";
5370     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5371     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
5372 #else
5373     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__call__");
5374     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
5375 #endif
5376     if (!result) {
5377       PyObject *error = PyErr_Occurred();
5378       {
5379         if (error != NULL) {
5380           throw Swig::DirectorMethodException();
5381         }
5382       }
5383     }
5384     bool swig_val;
5385     int swig_res = SWIG_AsVal_bool(result, &swig_val);
5386     if (!SWIG_IsOK(swig_res)) {
5387       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
5388     }
5389     c_result = static_cast< bool >(swig_val);
5390   }
5391   SWIG_PYTHON_THREAD_END_BLOCK;
5392   return (bool) c_result;
5393 }
5394 
5395 
~SwigDirector_ExpandDecider()5396 SwigDirector_ExpandDecider::~SwigDirector_ExpandDecider() {
5397 }
5398 
SwigDirector_KeyMaker(PyObject * self)5399 SwigDirector_KeyMaker::SwigDirector_KeyMaker(PyObject *self): Xapian::KeyMaker(), Swig::Director(self) {
5400   SWIG_DIRECTOR_RGTR((Xapian::KeyMaker *)this, this);
5401 }
5402 
5403 
5404 
5405 
operator ()(Xapian::Document const & doc) const5406 std::string SwigDirector_KeyMaker::operator ()(Xapian::Document const &doc) const {
5407   std::string c_result;
5408   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5409   {
5410     swig::SwigVar_PyObject obj0;
5411     obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&doc), SWIGTYPE_p_Xapian__Document,  0 );
5412     if (!swig_get_self()) {
5413       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call KeyMaker.__init__.");
5414     }
5415 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5416     const size_t swig_method_index = 0;
5417     const char *const swig_method_name = "__call__";
5418     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5419     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
5420 #else
5421     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__call__");
5422     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
5423 #endif
5424     if (!result) {
5425       PyObject *error = PyErr_Occurred();
5426       {
5427         if (error != NULL) {
5428           throw Swig::DirectorMethodException();
5429         }
5430       }
5431     }
5432     std::string *swig_optr = 0;
5433     int swig_ores;
5434     {
5435       PyObject * tmp = result;
5436       Py_INCREF(tmp);
5437       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
5438       Py_DECREF(tmp);
5439     }
5440     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
5441       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
5442     }
5443     c_result = *swig_optr;
5444     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
5445   }
5446   SWIG_PYTHON_THREAD_END_BLOCK;
5447   return (std::string) c_result;
5448 }
5449 
5450 
~SwigDirector_KeyMaker()5451 SwigDirector_KeyMaker::~SwigDirector_KeyMaker() {
5452 }
5453 
SwigDirector_Stopper(PyObject * self)5454 SwigDirector_Stopper::SwigDirector_Stopper(PyObject *self): Xapian::Stopper(), Swig::Director(self) {
5455   SWIG_DIRECTOR_RGTR((Xapian::Stopper *)this, this);
5456 }
5457 
5458 
5459 
5460 
operator ()(std::string const & term) const5461 bool SwigDirector_Stopper::operator ()(std::string const &term) const {
5462   bool c_result;
5463   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5464   {
5465     swig::SwigVar_PyObject obj0;
5466 
5467     obj0 = PyBytes_FromStringAndSize(term.data(), term.size());
5468 
5469     if (!swig_get_self()) {
5470       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Stopper.__init__.");
5471     }
5472 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5473     const size_t swig_method_index = 0;
5474     const char *const swig_method_name = "__call__";
5475     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5476     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
5477 #else
5478     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__call__");
5479     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
5480 #endif
5481     if (!result) {
5482       PyObject *error = PyErr_Occurred();
5483       {
5484         if (error != NULL) {
5485           throw Swig::DirectorMethodException();
5486         }
5487       }
5488     }
5489     bool swig_val;
5490     int swig_res = SWIG_AsVal_bool(result, &swig_val);
5491     if (!SWIG_IsOK(swig_res)) {
5492       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
5493     }
5494     c_result = static_cast< bool >(swig_val);
5495   }
5496   SWIG_PYTHON_THREAD_END_BLOCK;
5497   return (bool) c_result;
5498 }
5499 
5500 
~SwigDirector_Stopper()5501 SwigDirector_Stopper::~SwigDirector_Stopper() {
5502 }
5503 
get_description() const5504 std::string SwigDirector_Stopper::get_description() const {
5505   std::string c_result;
5506   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5507   {
5508     if (!swig_get_self()) {
5509       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Stopper.__init__.");
5510     }
5511 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5512     const size_t swig_method_index = 1;
5513     const char *const swig_method_name = "__str__";
5514     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5515     swig::SwigVar_PyObject args = PyTuple_New(0);
5516     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5517 #else
5518     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__str__");
5519     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5520 #endif
5521     if (!result) {
5522       PyObject *error = PyErr_Occurred();
5523       {
5524         if (error != NULL) {
5525           throw Swig::DirectorMethodException();
5526         }
5527       }
5528     }
5529     std::string *swig_optr = 0;
5530     int swig_ores;
5531     {
5532       PyObject * tmp = result;
5533       Py_INCREF(tmp);
5534       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
5535       Py_DECREF(tmp);
5536     }
5537     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
5538       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
5539     }
5540     c_result = *swig_optr;
5541     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
5542   }
5543   SWIG_PYTHON_THREAD_END_BLOCK;
5544   return (std::string) c_result;
5545 }
5546 
5547 
SwigDirector_RangeProcessor(PyObject * self)5548 SwigDirector_RangeProcessor::SwigDirector_RangeProcessor(PyObject *self): Xapian::RangeProcessor(), Swig::Director(self) {
5549   SWIG_DIRECTOR_RGTR((Xapian::RangeProcessor *)this, this);
5550 }
5551 
5552 
5553 
5554 
SwigDirector_RangeProcessor(PyObject * self,Xapian::valueno slot_,std::string const & str_,unsigned int flags_)5555 SwigDirector_RangeProcessor::SwigDirector_RangeProcessor(PyObject *self, Xapian::valueno slot_, std::string const &str_, unsigned int flags_): Xapian::RangeProcessor(slot_, str_, flags_), Swig::Director(self) {
5556   SWIG_DIRECTOR_RGTR((Xapian::RangeProcessor *)this, this);
5557 }
5558 
5559 
5560 
5561 
~SwigDirector_RangeProcessor()5562 SwigDirector_RangeProcessor::~SwigDirector_RangeProcessor() {
5563 }
5564 
operator ()(std::string const & begin,std::string const & end)5565 Xapian::Query SwigDirector_RangeProcessor::operator ()(std::string const &begin, std::string const &end) {
5566   void *swig_argp ;
5567   int swig_res = 0 ;
5568 
5569   Xapian::Query c_result;
5570   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5571   {
5572     swig::SwigVar_PyObject obj0;
5573 
5574     obj0 = PyBytes_FromStringAndSize(begin.data(), begin.size());
5575 
5576     swig::SwigVar_PyObject obj1;
5577 
5578     obj1 = PyBytes_FromStringAndSize(end.data(), end.size());
5579 
5580     if (!swig_get_self()) {
5581       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call RangeProcessor.__init__.");
5582     }
5583 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5584     const size_t swig_method_index = 0;
5585     const char *const swig_method_name = "__call__";
5586     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5587     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5588 #else
5589     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__call__");
5590     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5591 #endif
5592     if (!result) {
5593       PyObject *error = PyErr_Occurred();
5594       {
5595         if (error != NULL) {
5596           throw Swig::DirectorMethodException();
5597         }
5598       }
5599     }
5600     swig_res = SWIG_ConvertPtr(result,&swig_argp,SWIGTYPE_p_Xapian__Query,  0  | 0);
5601     if (!SWIG_IsOK(swig_res)) {
5602       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::Query""'");
5603     }
5604     c_result = *(reinterpret_cast< Xapian::Query * >(swig_argp));
5605     if (SWIG_IsNewObj(swig_res)) delete reinterpret_cast< Xapian::Query * >(swig_argp);
5606   }
5607   SWIG_PYTHON_THREAD_END_BLOCK;
5608   return (Xapian::Query) c_result;
5609 }
5610 
5611 
SwigDirector_ValueRangeProcessor(PyObject * self)5612 SwigDirector_ValueRangeProcessor::SwigDirector_ValueRangeProcessor(PyObject *self): Xapian::ValueRangeProcessor(), Swig::Director(self) {
5613   SWIG_DIRECTOR_RGTR((Xapian::ValueRangeProcessor *)this, this);
5614 }
5615 
5616 
5617 
5618 
~SwigDirector_ValueRangeProcessor()5619 SwigDirector_ValueRangeProcessor::~SwigDirector_ValueRangeProcessor() {
5620 }
5621 
operator ()(std::string & begin,std::string & end)5622 Xapian::valueno SwigDirector_ValueRangeProcessor::operator ()(std::string &begin, std::string &end) {
5623   Xapian::valueno c_result;
5624   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5625   {
5626     swig::SwigVar_PyObject obj0;
5627     obj0 = SWIG_From_std_string(static_cast< std::string >(begin));
5628     swig::SwigVar_PyObject obj1;
5629     obj1 = SWIG_From_std_string(static_cast< std::string >(end));
5630     if (!swig_get_self()) {
5631       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueRangeProcessor.__init__.");
5632     }
5633 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5634     const size_t swig_method_index = 0;
5635     const char *const swig_method_name = "__call__";
5636     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5637     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5638 #else
5639     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__call__");
5640     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5641 #endif
5642     if (!result) {
5643       PyObject *error = PyErr_Occurred();
5644       {
5645         if (error != NULL) {
5646           throw Swig::DirectorMethodException();
5647         }
5648       }
5649     }
5650     if (!PyTuple_Check(result)) {
5651       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(SWIG_TypeError)), "in output value of type '""(Xapian::valueno, std::string, std::string)""'");
5652     }
5653     if (PyTuple_Size(result) != 3) {
5654       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(SWIG_IndexError)), "in output value of type '""(Xapian::valueno, std::string, std::string)""'");
5655     }
5656 
5657     // Set the return value from the first item of the tuple.
5658     unsigned int swig_val;
5659     int swig_res = SWIG_AsVal_unsigned_SS_int(PyTuple_GET_ITEM((PyObject *)result, 0), &swig_val);
5660     if (!SWIG_IsOK(swig_res)) {
5661       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""(Xapian::valueno, std::string, std::string)""'");
5662     }
5663     c_result = static_cast< Xapian::valueno >(swig_val);
5664 
5665     // Set "begin" from the second item of the tuple.
5666     std::string *ptr = (std::string *)0;
5667     swig_res = SWIG_AsPtr_std_string(PyTuple_GET_ITEM((PyObject *)result, 1), &ptr);
5668     if (!SWIG_IsOK(swig_res) || !ptr) {
5669       delete ptr;
5670       ptr = (std::string *)0;
5671       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((ptr ? swig_res : SWIG_TypeError))), "in output value of type '""(Xapian::valueno, std::string, std::string)""'");
5672     }
5673     begin = *ptr;
5674     delete ptr;
5675     ptr = (std::string *)0;
5676 
5677     // Set "end" from the third item of the tuple.
5678     swig_res = SWIG_AsPtr_std_string(PyTuple_GET_ITEM((PyObject *)result, 2), &ptr);
5679     if (!SWIG_IsOK(swig_res) || !ptr) {
5680       delete ptr;
5681       ptr = (std::string *)0;
5682       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((ptr ? swig_res : SWIG_TypeError))), "in output value of type '""(Xapian::valueno, std::string, std::string)""'");
5683     }
5684     end = *ptr;
5685     delete ptr;
5686     ptr = (std::string *)0;
5687   }
5688   SWIG_PYTHON_THREAD_END_BLOCK;
5689   return (Xapian::valueno) c_result;
5690 }
5691 
5692 
SwigDirector_FieldProcessor(PyObject * self)5693 SwigDirector_FieldProcessor::SwigDirector_FieldProcessor(PyObject *self): Xapian::FieldProcessor(), Swig::Director(self) {
5694   SWIG_DIRECTOR_RGTR((Xapian::FieldProcessor *)this, this);
5695 }
5696 
5697 
5698 
5699 
~SwigDirector_FieldProcessor()5700 SwigDirector_FieldProcessor::~SwigDirector_FieldProcessor() {
5701 }
5702 
operator ()(std::string const & str)5703 Xapian::Query SwigDirector_FieldProcessor::operator ()(std::string const &str) {
5704   void *swig_argp ;
5705   int swig_res = 0 ;
5706 
5707   Xapian::Query c_result;
5708   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5709   {
5710     swig::SwigVar_PyObject obj0;
5711 
5712     obj0 = PyBytes_FromStringAndSize(str.data(), str.size());
5713 
5714     if (!swig_get_self()) {
5715       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call FieldProcessor.__init__.");
5716     }
5717 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5718     const size_t swig_method_index = 0;
5719     const char *const swig_method_name = "__call__";
5720     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5721     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
5722 #else
5723     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__call__");
5724     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
5725 #endif
5726     if (!result) {
5727       PyObject *error = PyErr_Occurred();
5728       {
5729         if (error != NULL) {
5730           throw Swig::DirectorMethodException();
5731         }
5732       }
5733     }
5734     swig_res = SWIG_ConvertPtr(result,&swig_argp,SWIGTYPE_p_Xapian__Query,  0  | 0);
5735     if (!SWIG_IsOK(swig_res)) {
5736       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::Query""'");
5737     }
5738     c_result = *(reinterpret_cast< Xapian::Query * >(swig_argp));
5739     if (SWIG_IsNewObj(swig_res)) delete reinterpret_cast< Xapian::Query * >(swig_argp);
5740   }
5741   SWIG_PYTHON_THREAD_END_BLOCK;
5742   return (Xapian::Query) c_result;
5743 }
5744 
5745 
SwigDirector_Compactor(PyObject * self)5746 SwigDirector_Compactor::SwigDirector_Compactor(PyObject *self): Xapian::Compactor(), Swig::Director(self) {
5747   SWIG_DIRECTOR_RGTR((Xapian::Compactor *)this, this);
5748 }
5749 
5750 
5751 
5752 
~SwigDirector_Compactor()5753 SwigDirector_Compactor::~SwigDirector_Compactor() {
5754 }
5755 
set_status(std::string const & table,std::string const & status)5756 void SwigDirector_Compactor::set_status(std::string const &table, std::string const &status) {
5757   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5758   {
5759     swig::SwigVar_PyObject obj0;
5760 
5761     obj0 = PyBytes_FromStringAndSize(table.data(), table.size());
5762 
5763     swig::SwigVar_PyObject obj1;
5764 
5765     obj1 = PyBytes_FromStringAndSize(status.data(), status.size());
5766 
5767     if (!swig_get_self()) {
5768       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Compactor.__init__.");
5769     }
5770 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5771     const size_t swig_method_index = 0;
5772     const char *const swig_method_name = "set_status";
5773     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5774     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5775 #else
5776     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"set_status");
5777     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5778 #endif
5779     if (!result) {
5780       PyObject *error = PyErr_Occurred();
5781       {
5782         if (error != NULL) {
5783           throw Swig::DirectorMethodException();
5784         }
5785       }
5786     }
5787   }
5788   SWIG_PYTHON_THREAD_END_BLOCK;
5789 }
5790 
5791 
resolve_duplicate_metadata(std::string const & key,size_t num_tags,std::string const tags[])5792 std::string SwigDirector_Compactor::resolve_duplicate_metadata(std::string const &key, size_t num_tags, std::string const tags[]) {
5793   std::string c_result;
5794   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5795   {
5796     swig::SwigVar_PyObject obj0;
5797 
5798     obj0 = PyBytes_FromStringAndSize(key.data(), key.size());
5799 
5800     swig::SwigVar_PyObject obj1;
5801     {
5802       PyObject * result = PyList_New(num_tags);
5803       if (result == 0) {
5804         return NULL;
5805       }
5806 
5807       for (size_t i = 0; i != num_tags; ++i) {
5808         PyObject * str = PyBytes_FromStringAndSize(tags[i].data(), tags[i].size());
5809         if (str == 0) {
5810           Py_DECREF(result);
5811           return NULL;
5812         }
5813 
5814         PyList_SET_ITEM(result, i, str);
5815       }
5816       obj1 = result;
5817     }
5818     if (!swig_get_self()) {
5819       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Compactor.__init__.");
5820     }
5821 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5822     const size_t swig_method_index = 1;
5823     const char *const swig_method_name = "resolve_duplicate_metadata";
5824     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5825     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5826 #else
5827     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"resolve_duplicate_metadata");
5828     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
5829 #endif
5830     if (!result) {
5831       PyObject *error = PyErr_Occurred();
5832       {
5833         if (error != NULL) {
5834           throw Swig::DirectorMethodException();
5835         }
5836       }
5837     }
5838     std::string *swig_optr = 0;
5839     int swig_ores;
5840     {
5841       PyObject * tmp = result;
5842       Py_INCREF(tmp);
5843       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
5844       Py_DECREF(tmp);
5845     }
5846     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
5847       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
5848     }
5849     c_result = *swig_optr;
5850     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
5851   }
5852   SWIG_PYTHON_THREAD_END_BLOCK;
5853   return (std::string) c_result;
5854 }
5855 
5856 
SwigDirector_PostingSource(PyObject * self)5857 SwigDirector_PostingSource::SwigDirector_PostingSource(PyObject *self): Xapian::PostingSource(), Swig::Director(self) {
5858   SWIG_DIRECTOR_RGTR((Xapian::PostingSource *)this, this);
5859 }
5860 
5861 
5862 
5863 
~SwigDirector_PostingSource()5864 SwigDirector_PostingSource::~SwigDirector_PostingSource() {
5865 }
5866 
get_termfreq_min() const5867 Xapian::doccount SwigDirector_PostingSource::get_termfreq_min() const {
5868   Xapian::doccount c_result;
5869   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5870   {
5871     if (!swig_get_self()) {
5872       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
5873     }
5874 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5875     const size_t swig_method_index = 0;
5876     const char *const swig_method_name = "get_termfreq_min";
5877     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5878     swig::SwigVar_PyObject args = PyTuple_New(0);
5879     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5880 #else
5881     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_termfreq_min");
5882     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5883 #endif
5884     if (!result) {
5885       PyObject *error = PyErr_Occurred();
5886       {
5887         if (error != NULL) {
5888           throw Swig::DirectorMethodException();
5889         }
5890       }
5891     }
5892     unsigned int swig_val;
5893     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
5894     if (!SWIG_IsOK(swig_res)) {
5895       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::doccount""'");
5896     }
5897     c_result = static_cast< Xapian::doccount >(swig_val);
5898   }
5899   SWIG_PYTHON_THREAD_END_BLOCK;
5900   return (Xapian::doccount) c_result;
5901 }
5902 
5903 
get_termfreq_est() const5904 Xapian::doccount SwigDirector_PostingSource::get_termfreq_est() const {
5905   Xapian::doccount c_result;
5906   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5907   {
5908     if (!swig_get_self()) {
5909       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
5910     }
5911 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5912     const size_t swig_method_index = 1;
5913     const char *const swig_method_name = "get_termfreq_est";
5914     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5915     swig::SwigVar_PyObject args = PyTuple_New(0);
5916     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5917 #else
5918     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_termfreq_est");
5919     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5920 #endif
5921     if (!result) {
5922       PyObject *error = PyErr_Occurred();
5923       {
5924         if (error != NULL) {
5925           throw Swig::DirectorMethodException();
5926         }
5927       }
5928     }
5929     unsigned int swig_val;
5930     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
5931     if (!SWIG_IsOK(swig_res)) {
5932       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::doccount""'");
5933     }
5934     c_result = static_cast< Xapian::doccount >(swig_val);
5935   }
5936   SWIG_PYTHON_THREAD_END_BLOCK;
5937   return (Xapian::doccount) c_result;
5938 }
5939 
5940 
get_termfreq_max() const5941 Xapian::doccount SwigDirector_PostingSource::get_termfreq_max() const {
5942   Xapian::doccount c_result;
5943   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5944   {
5945     if (!swig_get_self()) {
5946       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
5947     }
5948 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5949     const size_t swig_method_index = 2;
5950     const char *const swig_method_name = "get_termfreq_max";
5951     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5952     swig::SwigVar_PyObject args = PyTuple_New(0);
5953     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5954 #else
5955     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_termfreq_max");
5956     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5957 #endif
5958     if (!result) {
5959       PyObject *error = PyErr_Occurred();
5960       {
5961         if (error != NULL) {
5962           throw Swig::DirectorMethodException();
5963         }
5964       }
5965     }
5966     unsigned int swig_val;
5967     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
5968     if (!SWIG_IsOK(swig_res)) {
5969       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::doccount""'");
5970     }
5971     c_result = static_cast< Xapian::doccount >(swig_val);
5972   }
5973   SWIG_PYTHON_THREAD_END_BLOCK;
5974   return (Xapian::doccount) c_result;
5975 }
5976 
5977 
get_weight() const5978 double SwigDirector_PostingSource::get_weight() const {
5979   double c_result;
5980   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5981   {
5982     if (!swig_get_self()) {
5983       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
5984     }
5985 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
5986     const size_t swig_method_index = 3;
5987     const char *const swig_method_name = "get_weight";
5988     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
5989     swig::SwigVar_PyObject args = PyTuple_New(0);
5990     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
5991 #else
5992     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_weight");
5993     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
5994 #endif
5995     if (!result) {
5996       PyObject *error = PyErr_Occurred();
5997       {
5998         if (error != NULL) {
5999           throw Swig::DirectorMethodException();
6000         }
6001       }
6002     }
6003     double swig_val;
6004     int swig_res = SWIG_AsVal_double(result, &swig_val);
6005     if (!SWIG_IsOK(swig_res)) {
6006       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""double""'");
6007     }
6008     c_result = static_cast< double >(swig_val);
6009   }
6010   SWIG_PYTHON_THREAD_END_BLOCK;
6011   return (double) c_result;
6012 }
6013 
6014 
get_docid() const6015 Xapian::docid SwigDirector_PostingSource::get_docid() const {
6016   Xapian::docid c_result;
6017   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6018   {
6019     if (!swig_get_self()) {
6020       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
6021     }
6022 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6023     const size_t swig_method_index = 4;
6024     const char *const swig_method_name = "get_docid";
6025     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6026     swig::SwigVar_PyObject args = PyTuple_New(0);
6027     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6028 #else
6029     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_docid");
6030     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6031 #endif
6032     if (!result) {
6033       PyObject *error = PyErr_Occurred();
6034       {
6035         if (error != NULL) {
6036           throw Swig::DirectorMethodException();
6037         }
6038       }
6039     }
6040     unsigned int swig_val;
6041     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
6042     if (!SWIG_IsOK(swig_res)) {
6043       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::docid""'");
6044     }
6045     c_result = static_cast< Xapian::docid >(swig_val);
6046   }
6047   SWIG_PYTHON_THREAD_END_BLOCK;
6048   return (Xapian::docid) c_result;
6049 }
6050 
6051 
next(double min_wt)6052 void SwigDirector_PostingSource::next(double min_wt) {
6053   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6054   {
6055     swig::SwigVar_PyObject obj0;
6056     obj0 = SWIG_From_double(static_cast< double >(min_wt));
6057     if (!swig_get_self()) {
6058       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
6059     }
6060 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6061     const size_t swig_method_index = 5;
6062     const char *const swig_method_name = "__next__";
6063     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6064     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
6065 #else
6066     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__next__");
6067     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
6068 #endif
6069     if (!result) {
6070       PyObject *error = PyErr_Occurred();
6071       {
6072         if (error != NULL) {
6073           throw Swig::DirectorMethodException();
6074         }
6075       }
6076     }
6077   }
6078   SWIG_PYTHON_THREAD_END_BLOCK;
6079 }
6080 
6081 
skip_to(Xapian::docid did,double min_wt)6082 void SwigDirector_PostingSource::skip_to(Xapian::docid did, double min_wt) {
6083   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6084   {
6085     swig::SwigVar_PyObject obj0;
6086     obj0 = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(did));
6087     swig::SwigVar_PyObject obj1;
6088     obj1 = SWIG_From_double(static_cast< double >(min_wt));
6089     if (!swig_get_self()) {
6090       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
6091     }
6092 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6093     const size_t swig_method_index = 6;
6094     const char *const swig_method_name = "skip_to";
6095     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6096     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6097 #else
6098     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"skip_to");
6099     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6100 #endif
6101     if (!result) {
6102       PyObject *error = PyErr_Occurred();
6103       {
6104         if (error != NULL) {
6105           throw Swig::DirectorMethodException();
6106         }
6107       }
6108     }
6109   }
6110   SWIG_PYTHON_THREAD_END_BLOCK;
6111 }
6112 
6113 
check(Xapian::docid did,double min_wt)6114 bool SwigDirector_PostingSource::check(Xapian::docid did, double min_wt) {
6115   bool c_result;
6116   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6117   {
6118     swig::SwigVar_PyObject obj0;
6119     obj0 = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(did));
6120     swig::SwigVar_PyObject obj1;
6121     obj1 = SWIG_From_double(static_cast< double >(min_wt));
6122     if (!swig_get_self()) {
6123       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
6124     }
6125 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6126     const size_t swig_method_index = 7;
6127     const char *const swig_method_name = "check";
6128     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6129     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6130 #else
6131     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"check");
6132     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6133 #endif
6134     if (!result) {
6135       PyObject *error = PyErr_Occurred();
6136       {
6137         if (error != NULL) {
6138           throw Swig::DirectorMethodException();
6139         }
6140       }
6141     }
6142     bool swig_val;
6143     int swig_res = SWIG_AsVal_bool(result, &swig_val);
6144     if (!SWIG_IsOK(swig_res)) {
6145       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
6146     }
6147     c_result = static_cast< bool >(swig_val);
6148   }
6149   SWIG_PYTHON_THREAD_END_BLOCK;
6150   return (bool) c_result;
6151 }
6152 
6153 
at_end() const6154 bool SwigDirector_PostingSource::at_end() const {
6155   bool c_result;
6156   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6157   {
6158     if (!swig_get_self()) {
6159       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
6160     }
6161 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6162     const size_t swig_method_index = 8;
6163     const char *const swig_method_name = "at_end";
6164     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6165     swig::SwigVar_PyObject args = PyTuple_New(0);
6166     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6167 #else
6168     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"at_end");
6169     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6170 #endif
6171     if (!result) {
6172       PyObject *error = PyErr_Occurred();
6173       {
6174         if (error != NULL) {
6175           throw Swig::DirectorMethodException();
6176         }
6177       }
6178     }
6179     bool swig_val;
6180     int swig_res = SWIG_AsVal_bool(result, &swig_val);
6181     if (!SWIG_IsOK(swig_res)) {
6182       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
6183     }
6184     c_result = static_cast< bool >(swig_val);
6185   }
6186   SWIG_PYTHON_THREAD_END_BLOCK;
6187   return (bool) c_result;
6188 }
6189 
6190 
clone() const6191 Xapian::PostingSource *SwigDirector_PostingSource::clone() const {
6192   return Xapian::PostingSource::clone();
6193 }
6194 
6195 
name() const6196 std::string SwigDirector_PostingSource::name() const {
6197   std::string c_result;
6198   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6199   {
6200     if (!swig_get_self()) {
6201       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
6202     }
6203 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6204     const size_t swig_method_index = 9;
6205     const char *const swig_method_name = "name";
6206     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6207     swig::SwigVar_PyObject args = PyTuple_New(0);
6208     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6209 #else
6210     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"name");
6211     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6212 #endif
6213     if (!result) {
6214       PyObject *error = PyErr_Occurred();
6215       {
6216         if (error != NULL) {
6217           throw Swig::DirectorMethodException();
6218         }
6219       }
6220     }
6221     std::string *swig_optr = 0;
6222     int swig_ores;
6223     {
6224       PyObject * tmp = result;
6225       Py_INCREF(tmp);
6226       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
6227       Py_DECREF(tmp);
6228     }
6229     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
6230       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
6231     }
6232     c_result = *swig_optr;
6233     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
6234   }
6235   SWIG_PYTHON_THREAD_END_BLOCK;
6236   return (std::string) c_result;
6237 }
6238 
6239 
serialise() const6240 std::string SwigDirector_PostingSource::serialise() const {
6241   return Xapian::PostingSource::serialise();
6242 }
6243 
6244 
unserialise(std::string const & serialised) const6245 Xapian::PostingSource *SwigDirector_PostingSource::unserialise(std::string const &serialised) const {
6246   return Xapian::PostingSource::unserialise(serialised);
6247 }
6248 
6249 
unserialise_with_registry(std::string const & serialised,Xapian::Registry const & registry) const6250 Xapian::PostingSource *SwigDirector_PostingSource::unserialise_with_registry(std::string const &serialised, Xapian::Registry const &registry) const {
6251   return Xapian::PostingSource::unserialise_with_registry(serialised,registry);
6252 }
6253 
6254 
init(Xapian::Database const & db)6255 void SwigDirector_PostingSource::init(Xapian::Database const &db) {
6256   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6257   {
6258     swig::SwigVar_PyObject obj0;
6259     obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&db), SWIGTYPE_p_Xapian__Database,  0 );
6260     if (!swig_get_self()) {
6261       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
6262     }
6263 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6264     const size_t swig_method_index = 10;
6265     const char *const swig_method_name = "init";
6266     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6267     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
6268 #else
6269     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"init");
6270     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
6271 #endif
6272     if (!result) {
6273       PyObject *error = PyErr_Occurred();
6274       {
6275         if (error != NULL) {
6276           throw Swig::DirectorMethodException();
6277         }
6278       }
6279     }
6280   }
6281   SWIG_PYTHON_THREAD_END_BLOCK;
6282 }
6283 
6284 
get_description() const6285 std::string SwigDirector_PostingSource::get_description() const {
6286   std::string c_result;
6287   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6288   {
6289     if (!swig_get_self()) {
6290       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call PostingSource.__init__.");
6291     }
6292 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6293     const size_t swig_method_index = 11;
6294     const char *const swig_method_name = "__str__";
6295     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6296     swig::SwigVar_PyObject args = PyTuple_New(0);
6297     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6298 #else
6299     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__str__");
6300     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6301 #endif
6302     if (!result) {
6303       PyObject *error = PyErr_Occurred();
6304       {
6305         if (error != NULL) {
6306           throw Swig::DirectorMethodException();
6307         }
6308       }
6309     }
6310     std::string *swig_optr = 0;
6311     int swig_ores;
6312     {
6313       PyObject * tmp = result;
6314       Py_INCREF(tmp);
6315       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
6316       Py_DECREF(tmp);
6317     }
6318     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
6319       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
6320     }
6321     c_result = *swig_optr;
6322     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
6323   }
6324   SWIG_PYTHON_THREAD_END_BLOCK;
6325   return (std::string) c_result;
6326 }
6327 
6328 
SwigDirector_ValuePostingSource(PyObject * self,Xapian::valueno slot_)6329 SwigDirector_ValuePostingSource::SwigDirector_ValuePostingSource(PyObject *self, Xapian::valueno slot_): Xapian::ValuePostingSource(slot_), Swig::Director(self) {
6330   SWIG_DIRECTOR_RGTR((Xapian::ValuePostingSource *)this, this);
6331 }
6332 
6333 
6334 
6335 
~SwigDirector_ValuePostingSource()6336 SwigDirector_ValuePostingSource::~SwigDirector_ValuePostingSource() {
6337 }
6338 
get_termfreq_min() const6339 Xapian::doccount SwigDirector_ValuePostingSource::get_termfreq_min() const {
6340   Xapian::doccount c_result;
6341   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6342   {
6343     if (!swig_get_self()) {
6344       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6345     }
6346 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6347     const size_t swig_method_index = 0;
6348     const char *const swig_method_name = "get_termfreq_min";
6349     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6350     swig::SwigVar_PyObject args = PyTuple_New(0);
6351     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6352 #else
6353     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_termfreq_min");
6354     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6355 #endif
6356     if (!result) {
6357       PyObject *error = PyErr_Occurred();
6358       {
6359         if (error != NULL) {
6360           throw Swig::DirectorMethodException();
6361         }
6362       }
6363     }
6364     unsigned int swig_val;
6365     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
6366     if (!SWIG_IsOK(swig_res)) {
6367       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::doccount""'");
6368     }
6369     c_result = static_cast< Xapian::doccount >(swig_val);
6370   }
6371   SWIG_PYTHON_THREAD_END_BLOCK;
6372   return (Xapian::doccount) c_result;
6373 }
6374 
6375 
get_termfreq_est() const6376 Xapian::doccount SwigDirector_ValuePostingSource::get_termfreq_est() const {
6377   Xapian::doccount c_result;
6378   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6379   {
6380     if (!swig_get_self()) {
6381       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6382     }
6383 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6384     const size_t swig_method_index = 1;
6385     const char *const swig_method_name = "get_termfreq_est";
6386     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6387     swig::SwigVar_PyObject args = PyTuple_New(0);
6388     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6389 #else
6390     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_termfreq_est");
6391     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6392 #endif
6393     if (!result) {
6394       PyObject *error = PyErr_Occurred();
6395       {
6396         if (error != NULL) {
6397           throw Swig::DirectorMethodException();
6398         }
6399       }
6400     }
6401     unsigned int swig_val;
6402     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
6403     if (!SWIG_IsOK(swig_res)) {
6404       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::doccount""'");
6405     }
6406     c_result = static_cast< Xapian::doccount >(swig_val);
6407   }
6408   SWIG_PYTHON_THREAD_END_BLOCK;
6409   return (Xapian::doccount) c_result;
6410 }
6411 
6412 
get_termfreq_max() const6413 Xapian::doccount SwigDirector_ValuePostingSource::get_termfreq_max() const {
6414   Xapian::doccount c_result;
6415   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6416   {
6417     if (!swig_get_self()) {
6418       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6419     }
6420 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6421     const size_t swig_method_index = 2;
6422     const char *const swig_method_name = "get_termfreq_max";
6423     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6424     swig::SwigVar_PyObject args = PyTuple_New(0);
6425     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6426 #else
6427     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_termfreq_max");
6428     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6429 #endif
6430     if (!result) {
6431       PyObject *error = PyErr_Occurred();
6432       {
6433         if (error != NULL) {
6434           throw Swig::DirectorMethodException();
6435         }
6436       }
6437     }
6438     unsigned int swig_val;
6439     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
6440     if (!SWIG_IsOK(swig_res)) {
6441       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::doccount""'");
6442     }
6443     c_result = static_cast< Xapian::doccount >(swig_val);
6444   }
6445   SWIG_PYTHON_THREAD_END_BLOCK;
6446   return (Xapian::doccount) c_result;
6447 }
6448 
6449 
get_weight() const6450 double SwigDirector_ValuePostingSource::get_weight() const {
6451   double c_result;
6452   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6453   {
6454     if (!swig_get_self()) {
6455       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6456     }
6457 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6458     const size_t swig_method_index = 3;
6459     const char *const swig_method_name = "get_weight";
6460     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6461     swig::SwigVar_PyObject args = PyTuple_New(0);
6462     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6463 #else
6464     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_weight");
6465     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6466 #endif
6467     if (!result) {
6468       PyObject *error = PyErr_Occurred();
6469       {
6470         if (error != NULL) {
6471           throw Swig::DirectorMethodException();
6472         }
6473       }
6474     }
6475     double swig_val;
6476     int swig_res = SWIG_AsVal_double(result, &swig_val);
6477     if (!SWIG_IsOK(swig_res)) {
6478       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""double""'");
6479     }
6480     c_result = static_cast< double >(swig_val);
6481   }
6482   SWIG_PYTHON_THREAD_END_BLOCK;
6483   return (double) c_result;
6484 }
6485 
6486 
get_docid() const6487 Xapian::docid SwigDirector_ValuePostingSource::get_docid() const {
6488   Xapian::docid c_result;
6489   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6490   {
6491     if (!swig_get_self()) {
6492       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6493     }
6494 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6495     const size_t swig_method_index = 4;
6496     const char *const swig_method_name = "get_docid";
6497     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6498     swig::SwigVar_PyObject args = PyTuple_New(0);
6499     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6500 #else
6501     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_docid");
6502     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6503 #endif
6504     if (!result) {
6505       PyObject *error = PyErr_Occurred();
6506       {
6507         if (error != NULL) {
6508           throw Swig::DirectorMethodException();
6509         }
6510       }
6511     }
6512     unsigned int swig_val;
6513     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
6514     if (!SWIG_IsOK(swig_res)) {
6515       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::docid""'");
6516     }
6517     c_result = static_cast< Xapian::docid >(swig_val);
6518   }
6519   SWIG_PYTHON_THREAD_END_BLOCK;
6520   return (Xapian::docid) c_result;
6521 }
6522 
6523 
next(double min_wt)6524 void SwigDirector_ValuePostingSource::next(double min_wt) {
6525   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6526   {
6527     swig::SwigVar_PyObject obj0;
6528     obj0 = SWIG_From_double(static_cast< double >(min_wt));
6529     if (!swig_get_self()) {
6530       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6531     }
6532 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6533     const size_t swig_method_index = 5;
6534     const char *const swig_method_name = "__next__";
6535     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6536     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
6537 #else
6538     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__next__");
6539     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
6540 #endif
6541     if (!result) {
6542       PyObject *error = PyErr_Occurred();
6543       {
6544         if (error != NULL) {
6545           throw Swig::DirectorMethodException();
6546         }
6547       }
6548     }
6549   }
6550   SWIG_PYTHON_THREAD_END_BLOCK;
6551 }
6552 
6553 
skip_to(Xapian::docid min_docid,double min_wt)6554 void SwigDirector_ValuePostingSource::skip_to(Xapian::docid min_docid, double min_wt) {
6555   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6556   {
6557     swig::SwigVar_PyObject obj0;
6558     obj0 = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(min_docid));
6559     swig::SwigVar_PyObject obj1;
6560     obj1 = SWIG_From_double(static_cast< double >(min_wt));
6561     if (!swig_get_self()) {
6562       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6563     }
6564 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6565     const size_t swig_method_index = 6;
6566     const char *const swig_method_name = "skip_to";
6567     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6568     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6569 #else
6570     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"skip_to");
6571     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6572 #endif
6573     if (!result) {
6574       PyObject *error = PyErr_Occurred();
6575       {
6576         if (error != NULL) {
6577           throw Swig::DirectorMethodException();
6578         }
6579       }
6580     }
6581   }
6582   SWIG_PYTHON_THREAD_END_BLOCK;
6583 }
6584 
6585 
check(Xapian::docid min_docid,double min_wt)6586 bool SwigDirector_ValuePostingSource::check(Xapian::docid min_docid, double min_wt) {
6587   bool c_result;
6588   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6589   {
6590     swig::SwigVar_PyObject obj0;
6591     obj0 = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(min_docid));
6592     swig::SwigVar_PyObject obj1;
6593     obj1 = SWIG_From_double(static_cast< double >(min_wt));
6594     if (!swig_get_self()) {
6595       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6596     }
6597 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6598     const size_t swig_method_index = 7;
6599     const char *const swig_method_name = "check";
6600     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6601     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6602 #else
6603     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"check");
6604     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
6605 #endif
6606     if (!result) {
6607       PyObject *error = PyErr_Occurred();
6608       {
6609         if (error != NULL) {
6610           throw Swig::DirectorMethodException();
6611         }
6612       }
6613     }
6614     bool swig_val;
6615     int swig_res = SWIG_AsVal_bool(result, &swig_val);
6616     if (!SWIG_IsOK(swig_res)) {
6617       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
6618     }
6619     c_result = static_cast< bool >(swig_val);
6620   }
6621   SWIG_PYTHON_THREAD_END_BLOCK;
6622   return (bool) c_result;
6623 }
6624 
6625 
at_end() const6626 bool SwigDirector_ValuePostingSource::at_end() const {
6627   bool c_result;
6628   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6629   {
6630     if (!swig_get_self()) {
6631       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6632     }
6633 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6634     const size_t swig_method_index = 8;
6635     const char *const swig_method_name = "at_end";
6636     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6637     swig::SwigVar_PyObject args = PyTuple_New(0);
6638     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6639 #else
6640     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"at_end");
6641     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6642 #endif
6643     if (!result) {
6644       PyObject *error = PyErr_Occurred();
6645       {
6646         if (error != NULL) {
6647           throw Swig::DirectorMethodException();
6648         }
6649       }
6650     }
6651     bool swig_val;
6652     int swig_res = SWIG_AsVal_bool(result, &swig_val);
6653     if (!SWIG_IsOK(swig_res)) {
6654       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
6655     }
6656     c_result = static_cast< bool >(swig_val);
6657   }
6658   SWIG_PYTHON_THREAD_END_BLOCK;
6659   return (bool) c_result;
6660 }
6661 
6662 
clone() const6663 Xapian::PostingSource *SwigDirector_ValuePostingSource::clone() const {
6664   return Xapian::PostingSource::clone();
6665 }
6666 
6667 
name() const6668 std::string SwigDirector_ValuePostingSource::name() const {
6669   std::string c_result;
6670   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6671   {
6672     if (!swig_get_self()) {
6673       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6674     }
6675 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6676     const size_t swig_method_index = 9;
6677     const char *const swig_method_name = "name";
6678     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6679     swig::SwigVar_PyObject args = PyTuple_New(0);
6680     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6681 #else
6682     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"name");
6683     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6684 #endif
6685     if (!result) {
6686       PyObject *error = PyErr_Occurred();
6687       {
6688         if (error != NULL) {
6689           throw Swig::DirectorMethodException();
6690         }
6691       }
6692     }
6693     std::string *swig_optr = 0;
6694     int swig_ores;
6695     {
6696       PyObject * tmp = result;
6697       Py_INCREF(tmp);
6698       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
6699       Py_DECREF(tmp);
6700     }
6701     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
6702       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
6703     }
6704     c_result = *swig_optr;
6705     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
6706   }
6707   SWIG_PYTHON_THREAD_END_BLOCK;
6708   return (std::string) c_result;
6709 }
6710 
6711 
serialise() const6712 std::string SwigDirector_ValuePostingSource::serialise() const {
6713   return Xapian::PostingSource::serialise();
6714 }
6715 
6716 
unserialise(std::string const & serialised) const6717 Xapian::PostingSource *SwigDirector_ValuePostingSource::unserialise(std::string const &serialised) const {
6718   return Xapian::PostingSource::unserialise(serialised);
6719 }
6720 
6721 
unserialise_with_registry(std::string const & serialised,Xapian::Registry const & registry) const6722 Xapian::PostingSource *SwigDirector_ValuePostingSource::unserialise_with_registry(std::string const &serialised, Xapian::Registry const &registry) const {
6723   return Xapian::PostingSource::unserialise_with_registry(serialised,registry);
6724 }
6725 
6726 
init(Xapian::Database const & db_)6727 void SwigDirector_ValuePostingSource::init(Xapian::Database const &db_) {
6728   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6729   {
6730     swig::SwigVar_PyObject obj0;
6731     obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&db_), SWIGTYPE_p_Xapian__Database,  0 );
6732     if (!swig_get_self()) {
6733       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6734     }
6735 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6736     const size_t swig_method_index = 10;
6737     const char *const swig_method_name = "init";
6738     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6739     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
6740 #else
6741     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"init");
6742     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
6743 #endif
6744     if (!result) {
6745       PyObject *error = PyErr_Occurred();
6746       {
6747         if (error != NULL) {
6748           throw Swig::DirectorMethodException();
6749         }
6750       }
6751     }
6752   }
6753   SWIG_PYTHON_THREAD_END_BLOCK;
6754 }
6755 
6756 
get_description() const6757 std::string SwigDirector_ValuePostingSource::get_description() const {
6758   std::string c_result;
6759   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6760   {
6761     if (!swig_get_self()) {
6762       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValuePostingSource.__init__.");
6763     }
6764 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6765     const size_t swig_method_index = 11;
6766     const char *const swig_method_name = "__str__";
6767     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6768     swig::SwigVar_PyObject args = PyTuple_New(0);
6769     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6770 #else
6771     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__str__");
6772     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6773 #endif
6774     if (!result) {
6775       PyObject *error = PyErr_Occurred();
6776       {
6777         if (error != NULL) {
6778           throw Swig::DirectorMethodException();
6779         }
6780       }
6781     }
6782     std::string *swig_optr = 0;
6783     int swig_ores;
6784     {
6785       PyObject * tmp = result;
6786       Py_INCREF(tmp);
6787       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
6788       Py_DECREF(tmp);
6789     }
6790     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
6791       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
6792     }
6793     c_result = *swig_optr;
6794     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
6795   }
6796   SWIG_PYTHON_THREAD_END_BLOCK;
6797   return (std::string) c_result;
6798 }
6799 
6800 
SwigDirector_ValueWeightPostingSource(PyObject * self,Xapian::valueno slot_)6801 SwigDirector_ValueWeightPostingSource::SwigDirector_ValueWeightPostingSource(PyObject *self, Xapian::valueno slot_): Xapian::ValueWeightPostingSource(slot_), Swig::Director(self) {
6802   SWIG_DIRECTOR_RGTR((Xapian::ValueWeightPostingSource *)this, this);
6803 }
6804 
6805 
6806 
6807 
~SwigDirector_ValueWeightPostingSource()6808 SwigDirector_ValueWeightPostingSource::~SwigDirector_ValueWeightPostingSource() {
6809 }
6810 
get_termfreq_min() const6811 Xapian::doccount SwigDirector_ValueWeightPostingSource::get_termfreq_min() const {
6812   Xapian::doccount c_result;
6813   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6814   {
6815     if (!swig_get_self()) {
6816       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
6817     }
6818 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6819     const size_t swig_method_index = 0;
6820     const char *const swig_method_name = "get_termfreq_min";
6821     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6822     swig::SwigVar_PyObject args = PyTuple_New(0);
6823     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6824 #else
6825     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_termfreq_min");
6826     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6827 #endif
6828     if (!result) {
6829       PyObject *error = PyErr_Occurred();
6830       {
6831         if (error != NULL) {
6832           throw Swig::DirectorMethodException();
6833         }
6834       }
6835     }
6836     unsigned int swig_val;
6837     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
6838     if (!SWIG_IsOK(swig_res)) {
6839       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::doccount""'");
6840     }
6841     c_result = static_cast< Xapian::doccount >(swig_val);
6842   }
6843   SWIG_PYTHON_THREAD_END_BLOCK;
6844   return (Xapian::doccount) c_result;
6845 }
6846 
6847 
get_termfreq_est() const6848 Xapian::doccount SwigDirector_ValueWeightPostingSource::get_termfreq_est() const {
6849   Xapian::doccount c_result;
6850   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6851   {
6852     if (!swig_get_self()) {
6853       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
6854     }
6855 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6856     const size_t swig_method_index = 1;
6857     const char *const swig_method_name = "get_termfreq_est";
6858     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6859     swig::SwigVar_PyObject args = PyTuple_New(0);
6860     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6861 #else
6862     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_termfreq_est");
6863     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6864 #endif
6865     if (!result) {
6866       PyObject *error = PyErr_Occurred();
6867       {
6868         if (error != NULL) {
6869           throw Swig::DirectorMethodException();
6870         }
6871       }
6872     }
6873     unsigned int swig_val;
6874     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
6875     if (!SWIG_IsOK(swig_res)) {
6876       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::doccount""'");
6877     }
6878     c_result = static_cast< Xapian::doccount >(swig_val);
6879   }
6880   SWIG_PYTHON_THREAD_END_BLOCK;
6881   return (Xapian::doccount) c_result;
6882 }
6883 
6884 
get_termfreq_max() const6885 Xapian::doccount SwigDirector_ValueWeightPostingSource::get_termfreq_max() const {
6886   Xapian::doccount c_result;
6887   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6888   {
6889     if (!swig_get_self()) {
6890       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
6891     }
6892 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6893     const size_t swig_method_index = 2;
6894     const char *const swig_method_name = "get_termfreq_max";
6895     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6896     swig::SwigVar_PyObject args = PyTuple_New(0);
6897     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6898 #else
6899     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_termfreq_max");
6900     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6901 #endif
6902     if (!result) {
6903       PyObject *error = PyErr_Occurred();
6904       {
6905         if (error != NULL) {
6906           throw Swig::DirectorMethodException();
6907         }
6908       }
6909     }
6910     unsigned int swig_val;
6911     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
6912     if (!SWIG_IsOK(swig_res)) {
6913       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::doccount""'");
6914     }
6915     c_result = static_cast< Xapian::doccount >(swig_val);
6916   }
6917   SWIG_PYTHON_THREAD_END_BLOCK;
6918   return (Xapian::doccount) c_result;
6919 }
6920 
6921 
get_weight() const6922 double SwigDirector_ValueWeightPostingSource::get_weight() const {
6923   double c_result;
6924   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6925   {
6926     if (!swig_get_self()) {
6927       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
6928     }
6929 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6930     const size_t swig_method_index = 3;
6931     const char *const swig_method_name = "get_weight";
6932     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6933     swig::SwigVar_PyObject args = PyTuple_New(0);
6934     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6935 #else
6936     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_weight");
6937     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6938 #endif
6939     if (!result) {
6940       PyObject *error = PyErr_Occurred();
6941       {
6942         if (error != NULL) {
6943           throw Swig::DirectorMethodException();
6944         }
6945       }
6946     }
6947     double swig_val;
6948     int swig_res = SWIG_AsVal_double(result, &swig_val);
6949     if (!SWIG_IsOK(swig_res)) {
6950       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""double""'");
6951     }
6952     c_result = static_cast< double >(swig_val);
6953   }
6954   SWIG_PYTHON_THREAD_END_BLOCK;
6955   return (double) c_result;
6956 }
6957 
6958 
get_docid() const6959 Xapian::docid SwigDirector_ValueWeightPostingSource::get_docid() const {
6960   Xapian::docid c_result;
6961   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6962   {
6963     if (!swig_get_self()) {
6964       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
6965     }
6966 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
6967     const size_t swig_method_index = 4;
6968     const char *const swig_method_name = "get_docid";
6969     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
6970     swig::SwigVar_PyObject args = PyTuple_New(0);
6971     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
6972 #else
6973     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"get_docid");
6974     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
6975 #endif
6976     if (!result) {
6977       PyObject *error = PyErr_Occurred();
6978       {
6979         if (error != NULL) {
6980           throw Swig::DirectorMethodException();
6981         }
6982       }
6983     }
6984     unsigned int swig_val;
6985     int swig_res = SWIG_AsVal_unsigned_SS_int(result, &swig_val);
6986     if (!SWIG_IsOK(swig_res)) {
6987       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""Xapian::docid""'");
6988     }
6989     c_result = static_cast< Xapian::docid >(swig_val);
6990   }
6991   SWIG_PYTHON_THREAD_END_BLOCK;
6992   return (Xapian::docid) c_result;
6993 }
6994 
6995 
next(double min_wt)6996 void SwigDirector_ValueWeightPostingSource::next(double min_wt) {
6997   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
6998   {
6999     swig::SwigVar_PyObject obj0;
7000     obj0 = SWIG_From_double(static_cast< double >(min_wt));
7001     if (!swig_get_self()) {
7002       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
7003     }
7004 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7005     const size_t swig_method_index = 5;
7006     const char *const swig_method_name = "__next__";
7007     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7008     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
7009 #else
7010     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__next__");
7011     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
7012 #endif
7013     if (!result) {
7014       PyObject *error = PyErr_Occurred();
7015       {
7016         if (error != NULL) {
7017           throw Swig::DirectorMethodException();
7018         }
7019       }
7020     }
7021   }
7022   SWIG_PYTHON_THREAD_END_BLOCK;
7023 }
7024 
7025 
skip_to(Xapian::docid min_docid,double min_wt)7026 void SwigDirector_ValueWeightPostingSource::skip_to(Xapian::docid min_docid, double min_wt) {
7027   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7028   {
7029     swig::SwigVar_PyObject obj0;
7030     obj0 = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(min_docid));
7031     swig::SwigVar_PyObject obj1;
7032     obj1 = SWIG_From_double(static_cast< double >(min_wt));
7033     if (!swig_get_self()) {
7034       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
7035     }
7036 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7037     const size_t swig_method_index = 6;
7038     const char *const swig_method_name = "skip_to";
7039     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7040     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
7041 #else
7042     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"skip_to");
7043     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
7044 #endif
7045     if (!result) {
7046       PyObject *error = PyErr_Occurred();
7047       {
7048         if (error != NULL) {
7049           throw Swig::DirectorMethodException();
7050         }
7051       }
7052     }
7053   }
7054   SWIG_PYTHON_THREAD_END_BLOCK;
7055 }
7056 
7057 
check(Xapian::docid min_docid,double min_wt)7058 bool SwigDirector_ValueWeightPostingSource::check(Xapian::docid min_docid, double min_wt) {
7059   bool c_result;
7060   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7061   {
7062     swig::SwigVar_PyObject obj0;
7063     obj0 = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(min_docid));
7064     swig::SwigVar_PyObject obj1;
7065     obj1 = SWIG_From_double(static_cast< double >(min_wt));
7066     if (!swig_get_self()) {
7067       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
7068     }
7069 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7070     const size_t swig_method_index = 7;
7071     const char *const swig_method_name = "check";
7072     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7073     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
7074 #else
7075     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"check");
7076     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
7077 #endif
7078     if (!result) {
7079       PyObject *error = PyErr_Occurred();
7080       {
7081         if (error != NULL) {
7082           throw Swig::DirectorMethodException();
7083         }
7084       }
7085     }
7086     bool swig_val;
7087     int swig_res = SWIG_AsVal_bool(result, &swig_val);
7088     if (!SWIG_IsOK(swig_res)) {
7089       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
7090     }
7091     c_result = static_cast< bool >(swig_val);
7092   }
7093   SWIG_PYTHON_THREAD_END_BLOCK;
7094   return (bool) c_result;
7095 }
7096 
7097 
at_end() const7098 bool SwigDirector_ValueWeightPostingSource::at_end() const {
7099   bool c_result;
7100   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7101   {
7102     if (!swig_get_self()) {
7103       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
7104     }
7105 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7106     const size_t swig_method_index = 8;
7107     const char *const swig_method_name = "at_end";
7108     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7109     swig::SwigVar_PyObject args = PyTuple_New(0);
7110     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
7111 #else
7112     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"at_end");
7113     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
7114 #endif
7115     if (!result) {
7116       PyObject *error = PyErr_Occurred();
7117       {
7118         if (error != NULL) {
7119           throw Swig::DirectorMethodException();
7120         }
7121       }
7122     }
7123     bool swig_val;
7124     int swig_res = SWIG_AsVal_bool(result, &swig_val);
7125     if (!SWIG_IsOK(swig_res)) {
7126       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
7127     }
7128     c_result = static_cast< bool >(swig_val);
7129   }
7130   SWIG_PYTHON_THREAD_END_BLOCK;
7131   return (bool) c_result;
7132 }
7133 
7134 
clone() const7135 Xapian::ValueWeightPostingSource *SwigDirector_ValueWeightPostingSource::clone() const {
7136   return Xapian::ValueWeightPostingSource::clone();
7137 }
7138 
7139 
name() const7140 std::string SwigDirector_ValueWeightPostingSource::name() const {
7141   std::string c_result;
7142   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7143   {
7144     if (!swig_get_self()) {
7145       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
7146     }
7147 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7148     const size_t swig_method_index = 9;
7149     const char *const swig_method_name = "name";
7150     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7151     swig::SwigVar_PyObject args = PyTuple_New(0);
7152     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
7153 #else
7154     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"name");
7155     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
7156 #endif
7157     if (!result) {
7158       PyObject *error = PyErr_Occurred();
7159       {
7160         if (error != NULL) {
7161           throw Swig::DirectorMethodException();
7162         }
7163       }
7164     }
7165     std::string *swig_optr = 0;
7166     int swig_ores;
7167     {
7168       PyObject * tmp = result;
7169       Py_INCREF(tmp);
7170       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
7171       Py_DECREF(tmp);
7172     }
7173     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
7174       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
7175     }
7176     c_result = *swig_optr;
7177     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
7178   }
7179   SWIG_PYTHON_THREAD_END_BLOCK;
7180   return (std::string) c_result;
7181 }
7182 
7183 
serialise() const7184 std::string SwigDirector_ValueWeightPostingSource::serialise() const {
7185   return Xapian::ValueWeightPostingSource::serialise();
7186 }
7187 
7188 
unserialise(std::string const & serialised) const7189 Xapian::ValueWeightPostingSource *SwigDirector_ValueWeightPostingSource::unserialise(std::string const &serialised) const {
7190   return Xapian::ValueWeightPostingSource::unserialise(serialised);
7191 }
7192 
7193 
unserialise_with_registry(std::string const & serialised,Xapian::Registry const & registry) const7194 Xapian::PostingSource *SwigDirector_ValueWeightPostingSource::unserialise_with_registry(std::string const &serialised, Xapian::Registry const &registry) const {
7195   return Xapian::PostingSource::unserialise_with_registry(serialised,registry);
7196 }
7197 
7198 
init(Xapian::Database const & db_)7199 void SwigDirector_ValueWeightPostingSource::init(Xapian::Database const &db_) {
7200   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7201   {
7202     swig::SwigVar_PyObject obj0;
7203     obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&db_), SWIGTYPE_p_Xapian__Database,  0 );
7204     if (!swig_get_self()) {
7205       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
7206     }
7207 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7208     const size_t swig_method_index = 10;
7209     const char *const swig_method_name = "init";
7210     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7211     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
7212 #else
7213     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"init");
7214     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
7215 #endif
7216     if (!result) {
7217       PyObject *error = PyErr_Occurred();
7218       {
7219         if (error != NULL) {
7220           throw Swig::DirectorMethodException();
7221         }
7222       }
7223     }
7224   }
7225   SWIG_PYTHON_THREAD_END_BLOCK;
7226 }
7227 
7228 
get_description() const7229 std::string SwigDirector_ValueWeightPostingSource::get_description() const {
7230   std::string c_result;
7231   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7232   {
7233     if (!swig_get_self()) {
7234       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ValueWeightPostingSource.__init__.");
7235     }
7236 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7237     const size_t swig_method_index = 11;
7238     const char *const swig_method_name = "__str__";
7239     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7240     swig::SwigVar_PyObject args = PyTuple_New(0);
7241     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
7242 #else
7243     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__str__");
7244     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
7245 #endif
7246     if (!result) {
7247       PyObject *error = PyErr_Occurred();
7248       {
7249         if (error != NULL) {
7250           throw Swig::DirectorMethodException();
7251         }
7252       }
7253     }
7254     std::string *swig_optr = 0;
7255     int swig_ores;
7256     {
7257       PyObject * tmp = result;
7258       Py_INCREF(tmp);
7259       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
7260       Py_DECREF(tmp);
7261     }
7262     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
7263       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
7264     }
7265     c_result = *swig_optr;
7266     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
7267   }
7268   SWIG_PYTHON_THREAD_END_BLOCK;
7269   return (std::string) c_result;
7270 }
7271 
7272 
SwigDirector_MatchSpy(PyObject * self)7273 SwigDirector_MatchSpy::SwigDirector_MatchSpy(PyObject *self): Xapian::MatchSpy(), Swig::Director(self) {
7274   SWIG_DIRECTOR_RGTR((Xapian::MatchSpy *)this, this);
7275 }
7276 
7277 
7278 
7279 
~SwigDirector_MatchSpy()7280 SwigDirector_MatchSpy::~SwigDirector_MatchSpy() {
7281 }
7282 
operator ()(Xapian::Document const & doc,double wt)7283 void SwigDirector_MatchSpy::operator ()(Xapian::Document const &doc, double wt) {
7284   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7285   {
7286     swig::SwigVar_PyObject obj0;
7287     obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&doc), SWIGTYPE_p_Xapian__Document,  0 );
7288     swig::SwigVar_PyObject obj1;
7289     obj1 = SWIG_From_double(static_cast< double >(wt));
7290     if (!swig_get_self()) {
7291       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call MatchSpy.__init__.");
7292     }
7293 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7294     const size_t swig_method_index = 0;
7295     const char *const swig_method_name = "__call__";
7296     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7297     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
7298 #else
7299     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__call__");
7300     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
7301 #endif
7302     if (!result) {
7303       PyObject *error = PyErr_Occurred();
7304       {
7305         if (error != NULL) {
7306           throw Swig::DirectorMethodException();
7307         }
7308       }
7309     }
7310   }
7311   SWIG_PYTHON_THREAD_END_BLOCK;
7312 }
7313 
7314 
clone() const7315 Xapian::MatchSpy *SwigDirector_MatchSpy::clone() const {
7316   return Xapian::MatchSpy::clone();
7317 }
7318 
7319 
name() const7320 std::string SwigDirector_MatchSpy::name() const {
7321   std::string c_result;
7322   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7323   {
7324     if (!swig_get_self()) {
7325       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call MatchSpy.__init__.");
7326     }
7327 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7328     const size_t swig_method_index = 1;
7329     const char *const swig_method_name = "name";
7330     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7331     swig::SwigVar_PyObject args = PyTuple_New(0);
7332     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
7333 #else
7334     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"name");
7335     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
7336 #endif
7337     if (!result) {
7338       PyObject *error = PyErr_Occurred();
7339       {
7340         if (error != NULL) {
7341           throw Swig::DirectorMethodException();
7342         }
7343       }
7344     }
7345     std::string *swig_optr = 0;
7346     int swig_ores;
7347     {
7348       PyObject * tmp = result;
7349       Py_INCREF(tmp);
7350       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
7351       Py_DECREF(tmp);
7352     }
7353     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
7354       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
7355     }
7356     c_result = *swig_optr;
7357     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
7358   }
7359   SWIG_PYTHON_THREAD_END_BLOCK;
7360   return (std::string) c_result;
7361 }
7362 
7363 
serialise() const7364 std::string SwigDirector_MatchSpy::serialise() const {
7365   return Xapian::MatchSpy::serialise();
7366 }
7367 
7368 
unserialise(std::string const & serialised,Xapian::Registry const & context) const7369 Xapian::MatchSpy *SwigDirector_MatchSpy::unserialise(std::string const &serialised, Xapian::Registry const &context) const {
7370   return Xapian::MatchSpy::unserialise(serialised,context);
7371 }
7372 
7373 
serialise_results() const7374 std::string SwigDirector_MatchSpy::serialise_results() const {
7375   return Xapian::MatchSpy::serialise_results();
7376 }
7377 
7378 
merge_results(std::string const & serialised)7379 void SwigDirector_MatchSpy::merge_results(std::string const &serialised) {
7380   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7381   {
7382     swig::SwigVar_PyObject obj0;
7383 
7384     obj0 = PyBytes_FromStringAndSize(serialised.data(), serialised.size());
7385 
7386     if (!swig_get_self()) {
7387       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call MatchSpy.__init__.");
7388     }
7389 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7390     const size_t swig_method_index = 2;
7391     const char *const swig_method_name = "merge_results";
7392     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7393     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL);
7394 #else
7395     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"merge_results");
7396     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL);
7397 #endif
7398     if (!result) {
7399       PyObject *error = PyErr_Occurred();
7400       {
7401         if (error != NULL) {
7402           throw Swig::DirectorMethodException();
7403         }
7404       }
7405     }
7406   }
7407   SWIG_PYTHON_THREAD_END_BLOCK;
7408 }
7409 
7410 
get_description() const7411 std::string SwigDirector_MatchSpy::get_description() const {
7412   std::string c_result;
7413   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7414   {
7415     if (!swig_get_self()) {
7416       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call MatchSpy.__init__.");
7417     }
7418 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7419     const size_t swig_method_index = 3;
7420     const char *const swig_method_name = "__str__";
7421     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7422     swig::SwigVar_PyObject args = PyTuple_New(0);
7423     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
7424 #else
7425     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"__str__");
7426     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
7427 #endif
7428     if (!result) {
7429       PyObject *error = PyErr_Occurred();
7430       {
7431         if (error != NULL) {
7432           throw Swig::DirectorMethodException();
7433         }
7434       }
7435     }
7436     std::string *swig_optr = 0;
7437     int swig_ores;
7438     {
7439       PyObject * tmp = result;
7440       Py_INCREF(tmp);
7441       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
7442       Py_DECREF(tmp);
7443     }
7444     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
7445       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
7446     }
7447     c_result = *swig_optr;
7448     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
7449   }
7450   SWIG_PYTHON_THREAD_END_BLOCK;
7451   return (std::string) c_result;
7452 }
7453 
7454 
SwigDirector_LatLongMetric(PyObject * self)7455 SwigDirector_LatLongMetric::SwigDirector_LatLongMetric(PyObject *self): Xapian::LatLongMetric(), Swig::Director(self) {
7456   SWIG_DIRECTOR_RGTR((Xapian::LatLongMetric *)this, this);
7457 }
7458 
7459 
7460 
7461 
~SwigDirector_LatLongMetric()7462 SwigDirector_LatLongMetric::~SwigDirector_LatLongMetric() {
7463 }
7464 
pointwise_distance(Xapian::LatLongCoord const & a,Xapian::LatLongCoord const & b) const7465 double SwigDirector_LatLongMetric::pointwise_distance(Xapian::LatLongCoord const &a, Xapian::LatLongCoord const &b) const {
7466   double c_result;
7467   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7468   {
7469     swig::SwigVar_PyObject obj0;
7470     obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&a), SWIGTYPE_p_Xapian__LatLongCoord,  0 );
7471     swig::SwigVar_PyObject obj1;
7472     obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(&b), SWIGTYPE_p_Xapian__LatLongCoord,  0 );
7473     if (!swig_get_self()) {
7474       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call LatLongMetric.__init__.");
7475     }
7476 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7477     const size_t swig_method_index = 0;
7478     const char *const swig_method_name = "pointwise_distance";
7479     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7480     swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL);
7481 #else
7482     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"pointwise_distance");
7483     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL);
7484 #endif
7485     if (!result) {
7486       PyObject *error = PyErr_Occurred();
7487       {
7488         if (error != NULL) {
7489           throw Swig::DirectorMethodException();
7490         }
7491       }
7492     }
7493     double swig_val;
7494     int swig_res = SWIG_AsVal_double(result, &swig_val);
7495     if (!SWIG_IsOK(swig_res)) {
7496       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""double""'");
7497     }
7498     c_result = static_cast< double >(swig_val);
7499   }
7500   SWIG_PYTHON_THREAD_END_BLOCK;
7501   return (double) c_result;
7502 }
7503 
7504 
clone() const7505 Xapian::LatLongMetric *SwigDirector_LatLongMetric::clone() const {
7506   Xapian::LatLongMetric *c_result;
7507   Swig::DirectorPureVirtualException::raise("Attempted to invoke pure virtual method Xapian::LatLongMetric::clone");
7508   return (Xapian::LatLongMetric *) c_result;
7509 }
7510 
7511 
name() const7512 std::string SwigDirector_LatLongMetric::name() const {
7513   std::string c_result;
7514   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
7515   {
7516     if (!swig_get_self()) {
7517       Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call LatLongMetric.__init__.");
7518     }
7519 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
7520     const size_t swig_method_index = 1;
7521     const char *const swig_method_name = "name";
7522     PyObject *method = swig_get_method(swig_method_index, swig_method_name);
7523     swig::SwigVar_PyObject args = PyTuple_New(0);
7524     swig::SwigVar_PyObject result = PyObject_Call(method, (PyObject *) args, NULL);
7525 #else
7526     swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar((char *)"name");
7527     swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name, NULL);
7528 #endif
7529     if (!result) {
7530       PyObject *error = PyErr_Occurred();
7531       {
7532         if (error != NULL) {
7533           throw Swig::DirectorMethodException();
7534         }
7535       }
7536     }
7537     std::string *swig_optr = 0;
7538     int swig_ores;
7539     {
7540       PyObject * tmp = result;
7541       Py_INCREF(tmp);
7542       swig_ores = XapianSWIG_anystring_as_ptr(tmp, &swig_optr);
7543       Py_DECREF(tmp);
7544     }
7545     if (!SWIG_IsOK(swig_ores) || !swig_optr) {
7546       Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""std::string""'");
7547     }
7548     c_result = *swig_optr;
7549     if (SWIG_IsNewObj(swig_ores)) delete swig_optr;
7550   }
7551   SWIG_PYTHON_THREAD_END_BLOCK;
7552   return (std::string) c_result;
7553 }
7554 
7555 
serialise() const7556 std::string SwigDirector_LatLongMetric::serialise() const {
7557   std::string c_result;
7558   Swig::DirectorPureVirtualException::raise("Attempted to invoke pure virtual method Xapian::LatLongMetric::serialise");
7559   return (std::string) c_result;
7560 }
7561 
7562 
unserialise(std::string const & serialised) const7563 Xapian::LatLongMetric *SwigDirector_LatLongMetric::unserialise(std::string const &serialised) const {
7564   Xapian::LatLongMetric *c_result;
7565   Swig::DirectorPureVirtualException::raise("Attempted to invoke pure virtual method Xapian::LatLongMetric::unserialise");
7566   return (Xapian::LatLongMetric *) c_result;
7567 }
7568 
7569 
7570 #ifdef __cplusplus
7571 extern "C" {
7572 #endif
_wrap_delete_SwigPyIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7573 SWIGINTERN PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7574   PyObject *resultobj = 0;
7575   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
7576   void *argp1 = 0 ;
7577   int res1 = 0 ;
7578   PyObject *swig_obj[1] ;
7579 
7580   if (!args) SWIG_fail;
7581   swig_obj[0] = args;
7582   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN |  0 );
7583   if (!SWIG_IsOK(res1)) {
7584     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwigPyIterator" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
7585   }
7586   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
7587   {
7588     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7589     delete arg1;
7590     SWIG_PYTHON_THREAD_END_ALLOW;
7591   }
7592   resultobj = SWIG_Py_Void();
7593   return resultobj;
7594 fail:
7595   return NULL;
7596 }
7597 
7598 
_wrap_SwigPyIterator_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7599 SWIGINTERN PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7600   PyObject *resultobj = 0;
7601   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
7602   void *argp1 = 0 ;
7603   int res1 = 0 ;
7604   PyObject *swig_obj[1] ;
7605   PyObject *result = 0 ;
7606 
7607   if (!args) SWIG_fail;
7608   swig_obj[0] = args;
7609   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7610   if (!SWIG_IsOK(res1)) {
7611     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_value" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
7612   }
7613   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
7614   try {
7615     {
7616       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7617       result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value();
7618       SWIG_PYTHON_THREAD_END_ALLOW;
7619     }
7620   }
7621   catch(swig::stop_iteration &_e) {
7622     {
7623       (void)_e;
7624       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
7625       SWIG_fail;
7626     }
7627   }
7628 
7629   resultobj = result;
7630   return resultobj;
7631 fail:
7632   return NULL;
7633 }
7634 
7635 
_wrap_SwigPyIterator_incr__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)7636 SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7637   PyObject *resultobj = 0;
7638   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
7639   size_t arg2 ;
7640   void *argp1 = 0 ;
7641   int res1 = 0 ;
7642   size_t val2 ;
7643   int ecode2 = 0 ;
7644   swig::SwigPyIterator *result = 0 ;
7645 
7646   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7647   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7648   if (!SWIG_IsOK(res1)) {
7649     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
7650   }
7651   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
7652   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
7653   if (!SWIG_IsOK(ecode2)) {
7654     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_incr" "', argument " "2"" of type '" "size_t""'");
7655   }
7656   arg2 = static_cast< size_t >(val2);
7657   try {
7658     {
7659       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7660       result = (swig::SwigPyIterator *)(arg1)->incr(arg2);
7661       SWIG_PYTHON_THREAD_END_ALLOW;
7662     }
7663   }
7664   catch(swig::stop_iteration &_e) {
7665     {
7666       (void)_e;
7667       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
7668       SWIG_fail;
7669     }
7670   }
7671 
7672   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7673   return resultobj;
7674 fail:
7675   return NULL;
7676 }
7677 
7678 
_wrap_SwigPyIterator_incr__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)7679 SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7680   PyObject *resultobj = 0;
7681   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
7682   void *argp1 = 0 ;
7683   int res1 = 0 ;
7684   swig::SwigPyIterator *result = 0 ;
7685 
7686   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7687   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7688   if (!SWIG_IsOK(res1)) {
7689     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
7690   }
7691   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
7692   try {
7693     {
7694       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7695       result = (swig::SwigPyIterator *)(arg1)->incr();
7696       SWIG_PYTHON_THREAD_END_ALLOW;
7697     }
7698   }
7699   catch(swig::stop_iteration &_e) {
7700     {
7701       (void)_e;
7702       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
7703       SWIG_fail;
7704     }
7705   }
7706 
7707   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7708   return resultobj;
7709 fail:
7710   return NULL;
7711 }
7712 
7713 
_wrap_SwigPyIterator_incr(PyObject * self,PyObject * args)7714 SWIGINTERN PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) {
7715   Py_ssize_t argc;
7716   PyObject *argv[3] = {
7717     0
7718   };
7719 
7720   if (!(argc = SWIG_Python_UnpackTuple(args,"SwigPyIterator_incr",0,2,argv))) SWIG_fail;
7721   --argc;
7722   if (argc == 1) {
7723     return _wrap_SwigPyIterator_incr__SWIG_1(self, argc, argv);
7724   }
7725   if (argc == 2) {
7726     return _wrap_SwigPyIterator_incr__SWIG_0(self, argc, argv);
7727   }
7728 
7729 fail:
7730   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n"
7731     "  Possible C/C++ prototypes are:\n"
7732     "    swig::SwigPyIterator::incr(size_t)\n"
7733     "    swig::SwigPyIterator::incr()\n");
7734   return 0;
7735 }
7736 
7737 
_wrap_SwigPyIterator_decr__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)7738 SWIGINTERN PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7739   PyObject *resultobj = 0;
7740   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
7741   size_t arg2 ;
7742   void *argp1 = 0 ;
7743   int res1 = 0 ;
7744   size_t val2 ;
7745   int ecode2 = 0 ;
7746   swig::SwigPyIterator *result = 0 ;
7747 
7748   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7749   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7750   if (!SWIG_IsOK(res1)) {
7751     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
7752   }
7753   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
7754   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
7755   if (!SWIG_IsOK(ecode2)) {
7756     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_decr" "', argument " "2"" of type '" "size_t""'");
7757   }
7758   arg2 = static_cast< size_t >(val2);
7759   try {
7760     {
7761       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7762       result = (swig::SwigPyIterator *)(arg1)->decr(arg2);
7763       SWIG_PYTHON_THREAD_END_ALLOW;
7764     }
7765   }
7766   catch(swig::stop_iteration &_e) {
7767     {
7768       (void)_e;
7769       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
7770       SWIG_fail;
7771     }
7772   }
7773 
7774   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7775   return resultobj;
7776 fail:
7777   return NULL;
7778 }
7779 
7780 
_wrap_SwigPyIterator_decr__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)7781 SWIGINTERN PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7782   PyObject *resultobj = 0;
7783   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
7784   void *argp1 = 0 ;
7785   int res1 = 0 ;
7786   swig::SwigPyIterator *result = 0 ;
7787 
7788   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7789   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7790   if (!SWIG_IsOK(res1)) {
7791     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
7792   }
7793   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
7794   try {
7795     {
7796       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7797       result = (swig::SwigPyIterator *)(arg1)->decr();
7798       SWIG_PYTHON_THREAD_END_ALLOW;
7799     }
7800   }
7801   catch(swig::stop_iteration &_e) {
7802     {
7803       (void)_e;
7804       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
7805       SWIG_fail;
7806     }
7807   }
7808 
7809   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7810   return resultobj;
7811 fail:
7812   return NULL;
7813 }
7814 
7815 
_wrap_SwigPyIterator_decr(PyObject * self,PyObject * args)7816 SWIGINTERN PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) {
7817   Py_ssize_t argc;
7818   PyObject *argv[3] = {
7819     0
7820   };
7821 
7822   if (!(argc = SWIG_Python_UnpackTuple(args,"SwigPyIterator_decr",0,2,argv))) SWIG_fail;
7823   --argc;
7824   if (argc == 1) {
7825     return _wrap_SwigPyIterator_decr__SWIG_1(self, argc, argv);
7826   }
7827   if (argc == 2) {
7828     return _wrap_SwigPyIterator_decr__SWIG_0(self, argc, argv);
7829   }
7830 
7831 fail:
7832   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n"
7833     "  Possible C/C++ prototypes are:\n"
7834     "    swig::SwigPyIterator::decr(size_t)\n"
7835     "    swig::SwigPyIterator::decr()\n");
7836   return 0;
7837 }
7838 
7839 
_wrap_SwigPyIterator_distance(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7840 SWIGINTERN PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7841   PyObject *resultobj = 0;
7842   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
7843   swig::SwigPyIterator *arg2 = 0 ;
7844   void *argp1 = 0 ;
7845   int res1 = 0 ;
7846   void *argp2 = 0 ;
7847   int res2 = 0 ;
7848   PyObject *swig_obj[2] ;
7849   ptrdiff_t result;
7850 
7851   if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator_distance",2,2,swig_obj)) SWIG_fail;
7852   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7853   if (!SWIG_IsOK(res1)) {
7854     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_distance" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
7855   }
7856   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
7857   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
7858   if (!SWIG_IsOK(res2)) {
7859     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
7860   }
7861   if (!argp2) {
7862     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
7863   }
7864   arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
7865   try {
7866     {
7867       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7868       result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2);
7869       SWIG_PYTHON_THREAD_END_ALLOW;
7870     }
7871   }
7872   catch(std::invalid_argument &_e) {
7873     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;
7874   }
7875 
7876   resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
7877   return resultobj;
7878 fail:
7879   return NULL;
7880 }
7881 
7882 
_wrap_SwigPyIterator_equal(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7883 SWIGINTERN PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7884   PyObject *resultobj = 0;
7885   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
7886   swig::SwigPyIterator *arg2 = 0 ;
7887   void *argp1 = 0 ;
7888   int res1 = 0 ;
7889   void *argp2 = 0 ;
7890   int res2 = 0 ;
7891   PyObject *swig_obj[2] ;
7892   bool result;
7893 
7894   if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator_equal",2,2,swig_obj)) SWIG_fail;
7895   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7896   if (!SWIG_IsOK(res1)) {
7897     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_equal" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
7898   }
7899   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
7900   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
7901   if (!SWIG_IsOK(res2)) {
7902     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
7903   }
7904   if (!argp2) {
7905     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
7906   }
7907   arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
7908   try {
7909     {
7910       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7911       result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2);
7912       SWIG_PYTHON_THREAD_END_ALLOW;
7913     }
7914   }
7915   catch(std::invalid_argument &_e) {
7916     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;
7917   }
7918 
7919   resultobj = SWIG_From_bool(static_cast< bool >(result));
7920   return resultobj;
7921 fail:
7922   return NULL;
7923 }
7924 
7925 
_wrap_SwigPyIterator_copy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7926 SWIGINTERN PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7927   PyObject *resultobj = 0;
7928   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
7929   void *argp1 = 0 ;
7930   int res1 = 0 ;
7931   PyObject *swig_obj[1] ;
7932   swig::SwigPyIterator *result = 0 ;
7933 
7934   if (!args) SWIG_fail;
7935   swig_obj[0] = args;
7936   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7937   if (!SWIG_IsOK(res1)) {
7938     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_copy" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
7939   }
7940   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
7941   {
7942     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7943     result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy();
7944     SWIG_PYTHON_THREAD_END_ALLOW;
7945   }
7946   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
7947   return resultobj;
7948 fail:
7949   return NULL;
7950 }
7951 
7952 
_wrap_SwigPyIterator_next(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7953 SWIGINTERN PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7954   PyObject *resultobj = 0;
7955   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
7956   void *argp1 = 0 ;
7957   int res1 = 0 ;
7958   PyObject *swig_obj[1] ;
7959   PyObject *result = 0 ;
7960 
7961   if (!args) SWIG_fail;
7962   swig_obj[0] = args;
7963   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
7964   if (!SWIG_IsOK(res1)) {
7965     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_next" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
7966   }
7967   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
7968   try {
7969     {
7970       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7971       result = (PyObject *)(arg1)->next();
7972       SWIG_PYTHON_THREAD_END_ALLOW;
7973     }
7974   }
7975   catch(swig::stop_iteration &_e) {
7976     {
7977       (void)_e;
7978       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
7979       SWIG_fail;
7980     }
7981   }
7982 
7983   resultobj = result;
7984   return resultobj;
7985 fail:
7986   return NULL;
7987 }
7988 
7989 
_wrap_SwigPyIterator___next__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7990 SWIGINTERN PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7991   PyObject *resultobj = 0;
7992   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
7993   void *argp1 = 0 ;
7994   int res1 = 0 ;
7995   PyObject *swig_obj[1] ;
7996   PyObject *result = 0 ;
7997 
7998   if (!args) SWIG_fail;
7999   swig_obj[0] = args;
8000   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8001   if (!SWIG_IsOK(res1)) {
8002     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___next__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
8003   }
8004   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8005   try {
8006     {
8007       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8008       result = (PyObject *)(arg1)->__next__();
8009       SWIG_PYTHON_THREAD_END_ALLOW;
8010     }
8011   }
8012   catch(swig::stop_iteration &_e) {
8013     {
8014       (void)_e;
8015       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
8016       SWIG_fail;
8017     }
8018   }
8019 
8020   resultobj = result;
8021   return resultobj;
8022 fail:
8023   return NULL;
8024 }
8025 
8026 
_wrap_SwigPyIterator_previous(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8027 SWIGINTERN PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8028   PyObject *resultobj = 0;
8029   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8030   void *argp1 = 0 ;
8031   int res1 = 0 ;
8032   PyObject *swig_obj[1] ;
8033   PyObject *result = 0 ;
8034 
8035   if (!args) SWIG_fail;
8036   swig_obj[0] = args;
8037   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8038   if (!SWIG_IsOK(res1)) {
8039     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_previous" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
8040   }
8041   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8042   try {
8043     {
8044       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8045       result = (PyObject *)(arg1)->previous();
8046       SWIG_PYTHON_THREAD_END_ALLOW;
8047     }
8048   }
8049   catch(swig::stop_iteration &_e) {
8050     {
8051       (void)_e;
8052       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
8053       SWIG_fail;
8054     }
8055   }
8056 
8057   resultobj = result;
8058   return resultobj;
8059 fail:
8060   return NULL;
8061 }
8062 
8063 
_wrap_SwigPyIterator_advance(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8064 SWIGINTERN PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8065   PyObject *resultobj = 0;
8066   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8067   ptrdiff_t arg2 ;
8068   void *argp1 = 0 ;
8069   int res1 = 0 ;
8070   ptrdiff_t val2 ;
8071   int ecode2 = 0 ;
8072   PyObject *swig_obj[2] ;
8073   swig::SwigPyIterator *result = 0 ;
8074 
8075   if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator_advance",2,2,swig_obj)) SWIG_fail;
8076   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8077   if (!SWIG_IsOK(res1)) {
8078     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_advance" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
8079   }
8080   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8081   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
8082   if (!SWIG_IsOK(ecode2)) {
8083     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_advance" "', argument " "2"" of type '" "ptrdiff_t""'");
8084   }
8085   arg2 = static_cast< ptrdiff_t >(val2);
8086   try {
8087     {
8088       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8089       result = (swig::SwigPyIterator *)(arg1)->advance(arg2);
8090       SWIG_PYTHON_THREAD_END_ALLOW;
8091     }
8092   }
8093   catch(swig::stop_iteration &_e) {
8094     {
8095       (void)_e;
8096       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
8097       SWIG_fail;
8098     }
8099   }
8100 
8101   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8102   return resultobj;
8103 fail:
8104   return NULL;
8105 }
8106 
8107 
_wrap_SwigPyIterator___eq__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8108 SWIGINTERN PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8109   PyObject *resultobj = 0;
8110   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8111   swig::SwigPyIterator *arg2 = 0 ;
8112   void *argp1 = 0 ;
8113   int res1 = 0 ;
8114   void *argp2 = 0 ;
8115   int res2 = 0 ;
8116   PyObject *swig_obj[2] ;
8117   bool result;
8118 
8119   if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator___eq__",2,2,swig_obj)) SWIG_fail;
8120   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8121   if (!SWIG_IsOK(res1)) {
8122     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___eq__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
8123   }
8124   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8125   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
8126   if (!SWIG_IsOK(res2)) {
8127     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
8128   }
8129   if (!argp2) {
8130     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
8131   }
8132   arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
8133   {
8134     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8135     result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2);
8136     SWIG_PYTHON_THREAD_END_ALLOW;
8137   }
8138   resultobj = SWIG_From_bool(static_cast< bool >(result));
8139   return resultobj;
8140 fail:
8141   return NULL;
8142 }
8143 
8144 
_wrap_SwigPyIterator___ne__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8145 SWIGINTERN PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8146   PyObject *resultobj = 0;
8147   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8148   swig::SwigPyIterator *arg2 = 0 ;
8149   void *argp1 = 0 ;
8150   int res1 = 0 ;
8151   void *argp2 = 0 ;
8152   int res2 = 0 ;
8153   PyObject *swig_obj[2] ;
8154   bool result;
8155 
8156   if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator___ne__",2,2,swig_obj)) SWIG_fail;
8157   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8158   if (!SWIG_IsOK(res1)) {
8159     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___ne__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
8160   }
8161   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8162   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
8163   if (!SWIG_IsOK(res2)) {
8164     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
8165   }
8166   if (!argp2) {
8167     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
8168   }
8169   arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
8170   {
8171     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8172     result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2);
8173     SWIG_PYTHON_THREAD_END_ALLOW;
8174   }
8175   resultobj = SWIG_From_bool(static_cast< bool >(result));
8176   return resultobj;
8177 fail:
8178   return NULL;
8179 }
8180 
8181 
_wrap_SwigPyIterator___iadd__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8182 SWIGINTERN PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8183   PyObject *resultobj = 0;
8184   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8185   ptrdiff_t arg2 ;
8186   void *argp1 = 0 ;
8187   int res1 = 0 ;
8188   ptrdiff_t val2 ;
8189   int ecode2 = 0 ;
8190   PyObject *swig_obj[2] ;
8191   swig::SwigPyIterator *result = 0 ;
8192 
8193   if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator___iadd__",2,2,swig_obj)) SWIG_fail;
8194   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN |  0 );
8195   if (!SWIG_IsOK(res1)) {
8196     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___iadd__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
8197   }
8198   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8199   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
8200   if (!SWIG_IsOK(ecode2)) {
8201     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___iadd__" "', argument " "2"" of type '" "ptrdiff_t""'");
8202   }
8203   arg2 = static_cast< ptrdiff_t >(val2);
8204   try {
8205     {
8206       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8207       result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2);
8208       SWIG_PYTHON_THREAD_END_ALLOW;
8209     }
8210   }
8211   catch(swig::stop_iteration &_e) {
8212     {
8213       (void)_e;
8214       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
8215       SWIG_fail;
8216     }
8217   }
8218 
8219   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
8220   return resultobj;
8221 fail:
8222   return NULL;
8223 }
8224 
8225 
_wrap_SwigPyIterator___isub__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8226 SWIGINTERN PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8227   PyObject *resultobj = 0;
8228   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8229   ptrdiff_t arg2 ;
8230   void *argp1 = 0 ;
8231   int res1 = 0 ;
8232   ptrdiff_t val2 ;
8233   int ecode2 = 0 ;
8234   PyObject *swig_obj[2] ;
8235   swig::SwigPyIterator *result = 0 ;
8236 
8237   if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator___isub__",2,2,swig_obj)) SWIG_fail;
8238   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN |  0 );
8239   if (!SWIG_IsOK(res1)) {
8240     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___isub__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
8241   }
8242   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8243   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
8244   if (!SWIG_IsOK(ecode2)) {
8245     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___isub__" "', argument " "2"" of type '" "ptrdiff_t""'");
8246   }
8247   arg2 = static_cast< ptrdiff_t >(val2);
8248   try {
8249     {
8250       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8251       result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2);
8252       SWIG_PYTHON_THREAD_END_ALLOW;
8253     }
8254   }
8255   catch(swig::stop_iteration &_e) {
8256     {
8257       (void)_e;
8258       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
8259       SWIG_fail;
8260     }
8261   }
8262 
8263   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
8264   return resultobj;
8265 fail:
8266   return NULL;
8267 }
8268 
8269 
_wrap_SwigPyIterator___add__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8270 SWIGINTERN PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8271   PyObject *resultobj = 0;
8272   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8273   ptrdiff_t arg2 ;
8274   void *argp1 = 0 ;
8275   int res1 = 0 ;
8276   ptrdiff_t val2 ;
8277   int ecode2 = 0 ;
8278   PyObject *swig_obj[2] ;
8279   swig::SwigPyIterator *result = 0 ;
8280 
8281   if (!SWIG_Python_UnpackTuple(args,"SwigPyIterator___add__",2,2,swig_obj)) SWIG_fail;
8282   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8283   if (!SWIG_IsOK(res1)) {
8284     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___add__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
8285   }
8286   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8287   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
8288   if (!SWIG_IsOK(ecode2)) {
8289     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___add__" "', argument " "2"" of type '" "ptrdiff_t""'");
8290   }
8291   arg2 = static_cast< ptrdiff_t >(val2);
8292   try {
8293     {
8294       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8295       result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2);
8296       SWIG_PYTHON_THREAD_END_ALLOW;
8297     }
8298   }
8299   catch(swig::stop_iteration &_e) {
8300     {
8301       (void)_e;
8302       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
8303       SWIG_fail;
8304     }
8305   }
8306 
8307   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
8308   return resultobj;
8309 fail:
8310   return NULL;
8311 }
8312 
8313 
_wrap_SwigPyIterator___sub____SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)8314 SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8315   PyObject *resultobj = 0;
8316   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8317   ptrdiff_t arg2 ;
8318   void *argp1 = 0 ;
8319   int res1 = 0 ;
8320   ptrdiff_t val2 ;
8321   int ecode2 = 0 ;
8322   swig::SwigPyIterator *result = 0 ;
8323 
8324   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8325   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8326   if (!SWIG_IsOK(res1)) {
8327     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
8328   }
8329   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8330   ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
8331   if (!SWIG_IsOK(ecode2)) {
8332     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "ptrdiff_t""'");
8333   }
8334   arg2 = static_cast< ptrdiff_t >(val2);
8335   try {
8336     {
8337       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8338       result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2);
8339       SWIG_PYTHON_THREAD_END_ALLOW;
8340     }
8341   }
8342   catch(swig::stop_iteration &_e) {
8343     {
8344       (void)_e;
8345       SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
8346       SWIG_fail;
8347     }
8348   }
8349 
8350   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
8351   return resultobj;
8352 fail:
8353   return NULL;
8354 }
8355 
8356 
_wrap_SwigPyIterator___sub____SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)8357 SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8358   PyObject *resultobj = 0;
8359   swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
8360   swig::SwigPyIterator *arg2 = 0 ;
8361   void *argp1 = 0 ;
8362   int res1 = 0 ;
8363   void *argp2 = 0 ;
8364   int res2 = 0 ;
8365   ptrdiff_t result;
8366 
8367   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8368   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
8369   if (!SWIG_IsOK(res1)) {
8370     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
8371   }
8372   arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
8373   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
8374   if (!SWIG_IsOK(res2)) {
8375     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
8376   }
8377   if (!argp2) {
8378     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
8379   }
8380   arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
8381   {
8382     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8383     result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2);
8384     SWIG_PYTHON_THREAD_END_ALLOW;
8385   }
8386   resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
8387   return resultobj;
8388 fail:
8389   return NULL;
8390 }
8391 
8392 
_wrap_SwigPyIterator___sub__(PyObject * self,PyObject * args)8393 SWIGINTERN PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) {
8394   Py_ssize_t argc;
8395   PyObject *argv[3] = {
8396     0
8397   };
8398 
8399   if (!(argc = SWIG_Python_UnpackTuple(args,"SwigPyIterator___sub__",0,2,argv))) SWIG_fail;
8400   --argc;
8401   if (argc == 2) {
8402     int _v = 0;
8403     {
8404       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0);
8405       _v = SWIG_CheckState(res);
8406     }
8407     if (!_v) goto check_1;
8408     return _wrap_SwigPyIterator___sub____SWIG_1(self, argc, argv);
8409   }
8410 check_1:
8411 
8412   if (argc == 2) {
8413     return _wrap_SwigPyIterator___sub____SWIG_0(self, argc, argv);
8414   }
8415 
8416 fail:
8417   Py_INCREF(Py_NotImplemented);
8418   return Py_NotImplemented;
8419 }
8420 
8421 
SwigPyIterator_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8422 SWIGINTERN PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8423   PyObject *obj;
8424   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
8425   SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIterator, SWIG_NewClientData(obj));
8426   return SWIG_Py_Void();
8427 }
8428 
_wrap_Error_get_type(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8429 SWIGINTERN PyObject *_wrap_Error_get_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8430   PyObject *resultobj = 0;
8431   Xapian::Error *arg1 = (Xapian::Error *) 0 ;
8432   void *argp1 = 0 ;
8433   int res1 = 0 ;
8434   PyObject *swig_obj[1] ;
8435   char *result = 0 ;
8436 
8437   if (!args) SWIG_fail;
8438   swig_obj[0] = args;
8439   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Error, 0 |  0 );
8440   if (!SWIG_IsOK(res1)) {
8441     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Error_get_type" "', argument " "1"" of type '" "Xapian::Error const *""'");
8442   }
8443   arg1 = reinterpret_cast< Xapian::Error * >(argp1);
8444   {
8445     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8446     result = (char *)((Xapian::Error const *)arg1)->get_type();
8447     SWIG_PYTHON_THREAD_END_ALLOW;
8448   }
8449 
8450   resultobj = PyBytes_FromString(result);
8451 
8452   return resultobj;
8453 fail:
8454   return NULL;
8455 }
8456 
8457 
_wrap_Error_get_msg(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8458 SWIGINTERN PyObject *_wrap_Error_get_msg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8459   PyObject *resultobj = 0;
8460   Xapian::Error *arg1 = (Xapian::Error *) 0 ;
8461   void *argp1 = 0 ;
8462   int res1 = 0 ;
8463   PyObject *swig_obj[1] ;
8464   std::string *result = 0 ;
8465 
8466   if (!args) SWIG_fail;
8467   swig_obj[0] = args;
8468   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Error, 0 |  0 );
8469   if (!SWIG_IsOK(res1)) {
8470     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Error_get_msg" "', argument " "1"" of type '" "Xapian::Error const *""'");
8471   }
8472   arg1 = reinterpret_cast< Xapian::Error * >(argp1);
8473   {
8474     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8475     result = (std::string *) &((Xapian::Error const *)arg1)->get_msg();
8476     SWIG_PYTHON_THREAD_END_ALLOW;
8477   }
8478   resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
8479   return resultobj;
8480 fail:
8481   return NULL;
8482 }
8483 
8484 
_wrap_Error_get_context(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8485 SWIGINTERN PyObject *_wrap_Error_get_context(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8486   PyObject *resultobj = 0;
8487   Xapian::Error *arg1 = (Xapian::Error *) 0 ;
8488   void *argp1 = 0 ;
8489   int res1 = 0 ;
8490   PyObject *swig_obj[1] ;
8491   std::string *result = 0 ;
8492 
8493   if (!args) SWIG_fail;
8494   swig_obj[0] = args;
8495   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Error, 0 |  0 );
8496   if (!SWIG_IsOK(res1)) {
8497     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Error_get_context" "', argument " "1"" of type '" "Xapian::Error const *""'");
8498   }
8499   arg1 = reinterpret_cast< Xapian::Error * >(argp1);
8500   {
8501     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8502     result = (std::string *) &((Xapian::Error const *)arg1)->get_context();
8503     SWIG_PYTHON_THREAD_END_ALLOW;
8504   }
8505   resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
8506   return resultobj;
8507 fail:
8508   return NULL;
8509 }
8510 
8511 
_wrap_Error_get_error_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8512 SWIGINTERN PyObject *_wrap_Error_get_error_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8513   PyObject *resultobj = 0;
8514   Xapian::Error *arg1 = (Xapian::Error *) 0 ;
8515   void *argp1 = 0 ;
8516   int res1 = 0 ;
8517   PyObject *swig_obj[1] ;
8518   char *result = 0 ;
8519 
8520   if (!args) SWIG_fail;
8521   swig_obj[0] = args;
8522   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Error, 0 |  0 );
8523   if (!SWIG_IsOK(res1)) {
8524     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Error_get_error_string" "', argument " "1"" of type '" "Xapian::Error const *""'");
8525   }
8526   arg1 = reinterpret_cast< Xapian::Error * >(argp1);
8527   {
8528     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8529     result = (char *)((Xapian::Error const *)arg1)->get_error_string();
8530     SWIG_PYTHON_THREAD_END_ALLOW;
8531   }
8532 
8533   resultobj = PyBytes_FromString(result);
8534 
8535   return resultobj;
8536 fail:
8537   return NULL;
8538 }
8539 
8540 
_wrap_Error___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8541 SWIGINTERN PyObject *_wrap_Error___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8542   PyObject *resultobj = 0;
8543   Xapian::Error *arg1 = (Xapian::Error *) 0 ;
8544   void *argp1 = 0 ;
8545   int res1 = 0 ;
8546   PyObject *swig_obj[1] ;
8547   std::string result;
8548 
8549   if (!args) SWIG_fail;
8550   swig_obj[0] = args;
8551   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Error, 0 |  0 );
8552   if (!SWIG_IsOK(res1)) {
8553     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Error___str__" "', argument " "1"" of type '" "Xapian::Error const *""'");
8554   }
8555   arg1 = reinterpret_cast< Xapian::Error * >(argp1);
8556   {
8557     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8558     result = Xapian_Error___str__((Xapian::Error const *)arg1);
8559     SWIG_PYTHON_THREAD_END_ALLOW;
8560   }
8561   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
8562   return resultobj;
8563 fail:
8564   return NULL;
8565 }
8566 
8567 
_wrap_delete_Error(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8568 SWIGINTERN PyObject *_wrap_delete_Error(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8569   PyObject *resultobj = 0;
8570   Xapian::Error *arg1 = (Xapian::Error *) 0 ;
8571   void *argp1 = 0 ;
8572   int res1 = 0 ;
8573   PyObject *swig_obj[1] ;
8574 
8575   if (!args) SWIG_fail;
8576   swig_obj[0] = args;
8577   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Error, SWIG_POINTER_DISOWN |  0 );
8578   if (!SWIG_IsOK(res1)) {
8579     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Error" "', argument " "1"" of type '" "Xapian::Error *""'");
8580   }
8581   arg1 = reinterpret_cast< Xapian::Error * >(argp1);
8582   {
8583     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8584     delete arg1;
8585     SWIG_PYTHON_THREAD_END_ALLOW;
8586   }
8587   resultobj = SWIG_Py_Void();
8588   return resultobj;
8589 fail:
8590   return NULL;
8591 }
8592 
8593 
Error_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8594 SWIGINTERN PyObject *Error_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8595   PyObject *obj;
8596   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
8597   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Error, SWIG_NewClientData(obj));
8598   return SWIG_Py_Void();
8599 }
8600 
_wrap_delete_LogicError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8601 SWIGINTERN PyObject *_wrap_delete_LogicError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8602   PyObject *resultobj = 0;
8603   Xapian::LogicError *arg1 = (Xapian::LogicError *) 0 ;
8604   void *argp1 = 0 ;
8605   int res1 = 0 ;
8606   PyObject *swig_obj[1] ;
8607 
8608   if (!args) SWIG_fail;
8609   swig_obj[0] = args;
8610   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LogicError, SWIG_POINTER_DISOWN |  0 );
8611   if (!SWIG_IsOK(res1)) {
8612     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LogicError" "', argument " "1"" of type '" "Xapian::LogicError *""'");
8613   }
8614   arg1 = reinterpret_cast< Xapian::LogicError * >(argp1);
8615   {
8616     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8617     delete arg1;
8618     SWIG_PYTHON_THREAD_END_ALLOW;
8619   }
8620   resultobj = SWIG_Py_Void();
8621   return resultobj;
8622 fail:
8623   return NULL;
8624 }
8625 
8626 
LogicError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8627 SWIGINTERN PyObject *LogicError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8628   PyObject *obj;
8629   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
8630   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__LogicError, SWIG_NewClientData(obj));
8631   return SWIG_Py_Void();
8632 }
8633 
_wrap_delete_RuntimeError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8634 SWIGINTERN PyObject *_wrap_delete_RuntimeError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8635   PyObject *resultobj = 0;
8636   Xapian::RuntimeError *arg1 = (Xapian::RuntimeError *) 0 ;
8637   void *argp1 = 0 ;
8638   int res1 = 0 ;
8639   PyObject *swig_obj[1] ;
8640 
8641   if (!args) SWIG_fail;
8642   swig_obj[0] = args;
8643   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RuntimeError, SWIG_POINTER_DISOWN |  0 );
8644   if (!SWIG_IsOK(res1)) {
8645     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RuntimeError" "', argument " "1"" of type '" "Xapian::RuntimeError *""'");
8646   }
8647   arg1 = reinterpret_cast< Xapian::RuntimeError * >(argp1);
8648   {
8649     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8650     delete arg1;
8651     SWIG_PYTHON_THREAD_END_ALLOW;
8652   }
8653   resultobj = SWIG_Py_Void();
8654   return resultobj;
8655 fail:
8656   return NULL;
8657 }
8658 
8659 
RuntimeError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8660 SWIGINTERN PyObject *RuntimeError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8661   PyObject *obj;
8662   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
8663   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__RuntimeError, SWIG_NewClientData(obj));
8664   return SWIG_Py_Void();
8665 }
8666 
_wrap_new_AssertionError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)8667 SWIGINTERN PyObject *_wrap_new_AssertionError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8668   PyObject *resultobj = 0;
8669   std::string *arg1 = 0 ;
8670   std::string *arg2 = 0 ;
8671   char *arg3 = (char *) 0 ;
8672   int res1 = SWIG_OLDOBJ ;
8673   int res2 = SWIG_OLDOBJ ;
8674   int res3 ;
8675   char *buf3 = 0 ;
8676   int alloc3 = 0 ;
8677   Xapian::AssertionError *result = 0 ;
8678 
8679   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8680   {
8681     std::string *ptr = (std::string *)0;
8682     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
8683     if (!SWIG_IsOK(res1)) {
8684       if (res1 == INT_MIN) SWIG_fail;
8685       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8686     }
8687     if (!ptr) {
8688       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8689     }
8690     arg1 = ptr;
8691   }
8692   {
8693     std::string *ptr = (std::string *)0;
8694     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
8695     if (!SWIG_IsOK(res2)) {
8696       if (res2 == INT_MIN) SWIG_fail;
8697       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AssertionError" "', argument " "2"" of type '" "std::string const &""'");
8698     }
8699     if (!ptr) {
8700       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssertionError" "', argument " "2"" of type '" "std::string const &""'");
8701     }
8702     arg2 = ptr;
8703   }
8704   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
8705   if (!SWIG_IsOK(res3)) {
8706     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_AssertionError" "', argument " "3"" of type '" "char const *""'");
8707   }
8708   arg3 = reinterpret_cast< char * >(buf3);
8709   {
8710     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8711     result = (Xapian::AssertionError *)new Xapian::AssertionError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
8712     SWIG_PYTHON_THREAD_END_ALLOW;
8713   }
8714   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__AssertionError, SWIG_POINTER_NEW |  0 );
8715   if (SWIG_IsNewObj(res1)) delete arg1;
8716   if (SWIG_IsNewObj(res2)) delete arg2;
8717   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
8718   return resultobj;
8719 fail:
8720   if (SWIG_IsNewObj(res1)) delete arg1;
8721   if (SWIG_IsNewObj(res2)) delete arg2;
8722   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
8723   return NULL;
8724 }
8725 
8726 
_wrap_new_AssertionError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)8727 SWIGINTERN PyObject *_wrap_new_AssertionError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8728   PyObject *resultobj = 0;
8729   std::string *arg1 = 0 ;
8730   std::string *arg2 = 0 ;
8731   int arg3 ;
8732   int res1 = SWIG_OLDOBJ ;
8733   int res2 = SWIG_OLDOBJ ;
8734   int val3 ;
8735   int ecode3 = 0 ;
8736   Xapian::AssertionError *result = 0 ;
8737 
8738   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8739   {
8740     std::string *ptr = (std::string *)0;
8741     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
8742     if (!SWIG_IsOK(res1)) {
8743       if (res1 == INT_MIN) SWIG_fail;
8744       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8745     }
8746     if (!ptr) {
8747       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8748     }
8749     arg1 = ptr;
8750   }
8751   {
8752     std::string *ptr = (std::string *)0;
8753     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
8754     if (!SWIG_IsOK(res2)) {
8755       if (res2 == INT_MIN) SWIG_fail;
8756       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AssertionError" "', argument " "2"" of type '" "std::string const &""'");
8757     }
8758     if (!ptr) {
8759       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssertionError" "', argument " "2"" of type '" "std::string const &""'");
8760     }
8761     arg2 = ptr;
8762   }
8763   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
8764   if (!SWIG_IsOK(ecode3)) {
8765     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_AssertionError" "', argument " "3"" of type '" "int""'");
8766   }
8767   arg3 = static_cast< int >(val3);
8768   {
8769     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8770     result = (Xapian::AssertionError *)new Xapian::AssertionError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
8771     SWIG_PYTHON_THREAD_END_ALLOW;
8772   }
8773   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__AssertionError, SWIG_POINTER_NEW |  0 );
8774   if (SWIG_IsNewObj(res1)) delete arg1;
8775   if (SWIG_IsNewObj(res2)) delete arg2;
8776   return resultobj;
8777 fail:
8778   if (SWIG_IsNewObj(res1)) delete arg1;
8779   if (SWIG_IsNewObj(res2)) delete arg2;
8780   return NULL;
8781 }
8782 
8783 
_wrap_new_AssertionError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)8784 SWIGINTERN PyObject *_wrap_new_AssertionError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8785   PyObject *resultobj = 0;
8786   std::string *arg1 = 0 ;
8787   std::string *arg2 = 0 ;
8788   int res1 = SWIG_OLDOBJ ;
8789   int res2 = SWIG_OLDOBJ ;
8790   Xapian::AssertionError *result = 0 ;
8791 
8792   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8793   {
8794     std::string *ptr = (std::string *)0;
8795     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
8796     if (!SWIG_IsOK(res1)) {
8797       if (res1 == INT_MIN) SWIG_fail;
8798       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8799     }
8800     if (!ptr) {
8801       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8802     }
8803     arg1 = ptr;
8804   }
8805   {
8806     std::string *ptr = (std::string *)0;
8807     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
8808     if (!SWIG_IsOK(res2)) {
8809       if (res2 == INT_MIN) SWIG_fail;
8810       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AssertionError" "', argument " "2"" of type '" "std::string const &""'");
8811     }
8812     if (!ptr) {
8813       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssertionError" "', argument " "2"" of type '" "std::string const &""'");
8814     }
8815     arg2 = ptr;
8816   }
8817   {
8818     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8819     result = (Xapian::AssertionError *)new Xapian::AssertionError((std::string const &)*arg1,(std::string const &)*arg2);
8820     SWIG_PYTHON_THREAD_END_ALLOW;
8821   }
8822   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__AssertionError, SWIG_POINTER_NEW |  0 );
8823   if (SWIG_IsNewObj(res1)) delete arg1;
8824   if (SWIG_IsNewObj(res2)) delete arg2;
8825   return resultobj;
8826 fail:
8827   if (SWIG_IsNewObj(res1)) delete arg1;
8828   if (SWIG_IsNewObj(res2)) delete arg2;
8829   return NULL;
8830 }
8831 
8832 
_wrap_new_AssertionError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)8833 SWIGINTERN PyObject *_wrap_new_AssertionError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8834   PyObject *resultobj = 0;
8835   std::string *arg1 = 0 ;
8836   int res1 = SWIG_OLDOBJ ;
8837   Xapian::AssertionError *result = 0 ;
8838 
8839   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8840   {
8841     std::string *ptr = (std::string *)0;
8842     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
8843     if (!SWIG_IsOK(res1)) {
8844       if (res1 == INT_MIN) SWIG_fail;
8845       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8846     }
8847     if (!ptr) {
8848       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8849     }
8850     arg1 = ptr;
8851   }
8852   {
8853     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8854     result = (Xapian::AssertionError *)new Xapian::AssertionError((std::string const &)*arg1);
8855     SWIG_PYTHON_THREAD_END_ALLOW;
8856   }
8857   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__AssertionError, SWIG_POINTER_NEW |  0 );
8858   if (SWIG_IsNewObj(res1)) delete arg1;
8859   return resultobj;
8860 fail:
8861   if (SWIG_IsNewObj(res1)) delete arg1;
8862   return NULL;
8863 }
8864 
8865 
_wrap_new_AssertionError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)8866 SWIGINTERN PyObject *_wrap_new_AssertionError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8867   PyObject *resultobj = 0;
8868   std::string *arg1 = 0 ;
8869   int arg2 ;
8870   int res1 = SWIG_OLDOBJ ;
8871   int val2 ;
8872   int ecode2 = 0 ;
8873   Xapian::AssertionError *result = 0 ;
8874 
8875   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8876   {
8877     std::string *ptr = (std::string *)0;
8878     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
8879     if (!SWIG_IsOK(res1)) {
8880       if (res1 == INT_MIN) SWIG_fail;
8881       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8882     }
8883     if (!ptr) {
8884       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssertionError" "', argument " "1"" of type '" "std::string const &""'");
8885     }
8886     arg1 = ptr;
8887   }
8888   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
8889   if (!SWIG_IsOK(ecode2)) {
8890     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_AssertionError" "', argument " "2"" of type '" "int""'");
8891   }
8892   arg2 = static_cast< int >(val2);
8893   {
8894     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8895     result = (Xapian::AssertionError *)new Xapian::AssertionError((std::string const &)*arg1,arg2);
8896     SWIG_PYTHON_THREAD_END_ALLOW;
8897   }
8898   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__AssertionError, SWIG_POINTER_NEW |  0 );
8899   if (SWIG_IsNewObj(res1)) delete arg1;
8900   return resultobj;
8901 fail:
8902   if (SWIG_IsNewObj(res1)) delete arg1;
8903   return NULL;
8904 }
8905 
8906 
_wrap_new_AssertionError(PyObject * self,PyObject * args)8907 SWIGINTERN PyObject *_wrap_new_AssertionError(PyObject *self, PyObject *args) {
8908   Py_ssize_t argc;
8909   PyObject *argv[4] = {
8910     0
8911   };
8912 
8913   if (!(argc = SWIG_Python_UnpackTuple(args,"new_AssertionError",0,3,argv))) SWIG_fail;
8914   --argc;
8915   if (argc == 1) {
8916     return _wrap_new_AssertionError__SWIG_3(self, argc, argv);
8917   }
8918   if (argc == 2) {
8919     int _v = 0;
8920     {
8921       {
8922         int res = SWIG_AsVal_int(argv[1], NULL);
8923         _v = SWIG_CheckState(res);
8924       }
8925     }
8926     if (!_v) goto check_2;
8927     return _wrap_new_AssertionError__SWIG_4(self, argc, argv);
8928   }
8929 check_2:
8930 
8931   if (argc == 2) {
8932     return _wrap_new_AssertionError__SWIG_2(self, argc, argv);
8933   }
8934   if (argc == 3) {
8935     int _v = 0;
8936     {
8937       {
8938         int res = SWIG_AsVal_int(argv[2], NULL);
8939         _v = SWIG_CheckState(res);
8940       }
8941     }
8942     if (!_v) goto check_4;
8943     return _wrap_new_AssertionError__SWIG_1(self, argc, argv);
8944   }
8945 check_4:
8946 
8947   if (argc == 3) {
8948     return _wrap_new_AssertionError__SWIG_0(self, argc, argv);
8949   }
8950 
8951 fail:
8952   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_AssertionError'.\n"
8953     "  Possible C/C++ prototypes are:\n"
8954     "    Xapian::AssertionError::AssertionError(std::string const &,std::string const &,char const *)\n"
8955     "    Xapian::AssertionError::AssertionError(std::string const &,std::string const &,int)\n"
8956     "    Xapian::AssertionError::AssertionError(std::string const &,std::string const &)\n"
8957     "    Xapian::AssertionError::AssertionError(std::string const &)\n"
8958     "    Xapian::AssertionError::AssertionError(std::string const &,int)\n");
8959   return 0;
8960 }
8961 
8962 
_wrap_delete_AssertionError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8963 SWIGINTERN PyObject *_wrap_delete_AssertionError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8964   PyObject *resultobj = 0;
8965   Xapian::AssertionError *arg1 = (Xapian::AssertionError *) 0 ;
8966   void *argp1 = 0 ;
8967   int res1 = 0 ;
8968   PyObject *swig_obj[1] ;
8969 
8970   if (!args) SWIG_fail;
8971   swig_obj[0] = args;
8972   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__AssertionError, SWIG_POINTER_DISOWN |  0 );
8973   if (!SWIG_IsOK(res1)) {
8974     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AssertionError" "', argument " "1"" of type '" "Xapian::AssertionError *""'");
8975   }
8976   arg1 = reinterpret_cast< Xapian::AssertionError * >(argp1);
8977   {
8978     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
8979     delete arg1;
8980     SWIG_PYTHON_THREAD_END_ALLOW;
8981   }
8982   resultobj = SWIG_Py_Void();
8983   return resultobj;
8984 fail:
8985   return NULL;
8986 }
8987 
8988 
AssertionError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8989 SWIGINTERN PyObject *AssertionError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8990   PyObject *obj;
8991   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
8992   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__AssertionError, SWIG_NewClientData(obj));
8993   return SWIG_Py_Void();
8994 }
8995 
AssertionError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8996 SWIGINTERN PyObject *AssertionError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8997   return SWIG_Python_InitShadowInstance(args);
8998 }
8999 
_wrap_new_InvalidArgumentError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9000 SWIGINTERN PyObject *_wrap_new_InvalidArgumentError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9001   PyObject *resultobj = 0;
9002   std::string *arg1 = 0 ;
9003   std::string *arg2 = 0 ;
9004   char *arg3 = (char *) 0 ;
9005   int res1 = SWIG_OLDOBJ ;
9006   int res2 = SWIG_OLDOBJ ;
9007   int res3 ;
9008   char *buf3 = 0 ;
9009   int alloc3 = 0 ;
9010   Xapian::InvalidArgumentError *result = 0 ;
9011 
9012   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
9013   {
9014     std::string *ptr = (std::string *)0;
9015     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9016     if (!SWIG_IsOK(res1)) {
9017       if (res1 == INT_MIN) SWIG_fail;
9018       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9019     }
9020     if (!ptr) {
9021       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9022     }
9023     arg1 = ptr;
9024   }
9025   {
9026     std::string *ptr = (std::string *)0;
9027     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
9028     if (!SWIG_IsOK(res2)) {
9029       if (res2 == INT_MIN) SWIG_fail;
9030       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "std::string const &""'");
9031     }
9032     if (!ptr) {
9033       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "std::string const &""'");
9034     }
9035     arg2 = ptr;
9036   }
9037   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
9038   if (!SWIG_IsOK(res3)) {
9039     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_InvalidArgumentError" "', argument " "3"" of type '" "char const *""'");
9040   }
9041   arg3 = reinterpret_cast< char * >(buf3);
9042   {
9043     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9044     result = (Xapian::InvalidArgumentError *)new Xapian::InvalidArgumentError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
9045     SWIG_PYTHON_THREAD_END_ALLOW;
9046   }
9047   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidArgumentError, SWIG_POINTER_NEW |  0 );
9048   if (SWIG_IsNewObj(res1)) delete arg1;
9049   if (SWIG_IsNewObj(res2)) delete arg2;
9050   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
9051   return resultobj;
9052 fail:
9053   if (SWIG_IsNewObj(res1)) delete arg1;
9054   if (SWIG_IsNewObj(res2)) delete arg2;
9055   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
9056   return NULL;
9057 }
9058 
9059 
_wrap_new_InvalidArgumentError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9060 SWIGINTERN PyObject *_wrap_new_InvalidArgumentError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9061   PyObject *resultobj = 0;
9062   std::string *arg1 = 0 ;
9063   std::string *arg2 = 0 ;
9064   int arg3 ;
9065   int res1 = SWIG_OLDOBJ ;
9066   int res2 = SWIG_OLDOBJ ;
9067   int val3 ;
9068   int ecode3 = 0 ;
9069   Xapian::InvalidArgumentError *result = 0 ;
9070 
9071   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
9072   {
9073     std::string *ptr = (std::string *)0;
9074     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9075     if (!SWIG_IsOK(res1)) {
9076       if (res1 == INT_MIN) SWIG_fail;
9077       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9078     }
9079     if (!ptr) {
9080       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9081     }
9082     arg1 = ptr;
9083   }
9084   {
9085     std::string *ptr = (std::string *)0;
9086     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
9087     if (!SWIG_IsOK(res2)) {
9088       if (res2 == INT_MIN) SWIG_fail;
9089       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "std::string const &""'");
9090     }
9091     if (!ptr) {
9092       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "std::string const &""'");
9093     }
9094     arg2 = ptr;
9095   }
9096   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
9097   if (!SWIG_IsOK(ecode3)) {
9098     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_InvalidArgumentError" "', argument " "3"" of type '" "int""'");
9099   }
9100   arg3 = static_cast< int >(val3);
9101   {
9102     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9103     result = (Xapian::InvalidArgumentError *)new Xapian::InvalidArgumentError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
9104     SWIG_PYTHON_THREAD_END_ALLOW;
9105   }
9106   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidArgumentError, SWIG_POINTER_NEW |  0 );
9107   if (SWIG_IsNewObj(res1)) delete arg1;
9108   if (SWIG_IsNewObj(res2)) delete arg2;
9109   return resultobj;
9110 fail:
9111   if (SWIG_IsNewObj(res1)) delete arg1;
9112   if (SWIG_IsNewObj(res2)) delete arg2;
9113   return NULL;
9114 }
9115 
9116 
_wrap_new_InvalidArgumentError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9117 SWIGINTERN PyObject *_wrap_new_InvalidArgumentError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9118   PyObject *resultobj = 0;
9119   std::string *arg1 = 0 ;
9120   std::string *arg2 = 0 ;
9121   int res1 = SWIG_OLDOBJ ;
9122   int res2 = SWIG_OLDOBJ ;
9123   Xapian::InvalidArgumentError *result = 0 ;
9124 
9125   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
9126   {
9127     std::string *ptr = (std::string *)0;
9128     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9129     if (!SWIG_IsOK(res1)) {
9130       if (res1 == INT_MIN) SWIG_fail;
9131       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9132     }
9133     if (!ptr) {
9134       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9135     }
9136     arg1 = ptr;
9137   }
9138   {
9139     std::string *ptr = (std::string *)0;
9140     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
9141     if (!SWIG_IsOK(res2)) {
9142       if (res2 == INT_MIN) SWIG_fail;
9143       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "std::string const &""'");
9144     }
9145     if (!ptr) {
9146       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "std::string const &""'");
9147     }
9148     arg2 = ptr;
9149   }
9150   {
9151     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9152     result = (Xapian::InvalidArgumentError *)new Xapian::InvalidArgumentError((std::string const &)*arg1,(std::string const &)*arg2);
9153     SWIG_PYTHON_THREAD_END_ALLOW;
9154   }
9155   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidArgumentError, SWIG_POINTER_NEW |  0 );
9156   if (SWIG_IsNewObj(res1)) delete arg1;
9157   if (SWIG_IsNewObj(res2)) delete arg2;
9158   return resultobj;
9159 fail:
9160   if (SWIG_IsNewObj(res1)) delete arg1;
9161   if (SWIG_IsNewObj(res2)) delete arg2;
9162   return NULL;
9163 }
9164 
9165 
_wrap_new_InvalidArgumentError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9166 SWIGINTERN PyObject *_wrap_new_InvalidArgumentError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9167   PyObject *resultobj = 0;
9168   std::string *arg1 = 0 ;
9169   int res1 = SWIG_OLDOBJ ;
9170   Xapian::InvalidArgumentError *result = 0 ;
9171 
9172   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
9173   {
9174     std::string *ptr = (std::string *)0;
9175     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9176     if (!SWIG_IsOK(res1)) {
9177       if (res1 == INT_MIN) SWIG_fail;
9178       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9179     }
9180     if (!ptr) {
9181       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9182     }
9183     arg1 = ptr;
9184   }
9185   {
9186     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9187     result = (Xapian::InvalidArgumentError *)new Xapian::InvalidArgumentError((std::string const &)*arg1);
9188     SWIG_PYTHON_THREAD_END_ALLOW;
9189   }
9190   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidArgumentError, SWIG_POINTER_NEW |  0 );
9191   if (SWIG_IsNewObj(res1)) delete arg1;
9192   return resultobj;
9193 fail:
9194   if (SWIG_IsNewObj(res1)) delete arg1;
9195   return NULL;
9196 }
9197 
9198 
_wrap_new_InvalidArgumentError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9199 SWIGINTERN PyObject *_wrap_new_InvalidArgumentError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9200   PyObject *resultobj = 0;
9201   std::string *arg1 = 0 ;
9202   int arg2 ;
9203   int res1 = SWIG_OLDOBJ ;
9204   int val2 ;
9205   int ecode2 = 0 ;
9206   Xapian::InvalidArgumentError *result = 0 ;
9207 
9208   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
9209   {
9210     std::string *ptr = (std::string *)0;
9211     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9212     if (!SWIG_IsOK(res1)) {
9213       if (res1 == INT_MIN) SWIG_fail;
9214       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9215     }
9216     if (!ptr) {
9217       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidArgumentError" "', argument " "1"" of type '" "std::string const &""'");
9218     }
9219     arg1 = ptr;
9220   }
9221   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
9222   if (!SWIG_IsOK(ecode2)) {
9223     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_InvalidArgumentError" "', argument " "2"" of type '" "int""'");
9224   }
9225   arg2 = static_cast< int >(val2);
9226   {
9227     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9228     result = (Xapian::InvalidArgumentError *)new Xapian::InvalidArgumentError((std::string const &)*arg1,arg2);
9229     SWIG_PYTHON_THREAD_END_ALLOW;
9230   }
9231   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidArgumentError, SWIG_POINTER_NEW |  0 );
9232   if (SWIG_IsNewObj(res1)) delete arg1;
9233   return resultobj;
9234 fail:
9235   if (SWIG_IsNewObj(res1)) delete arg1;
9236   return NULL;
9237 }
9238 
9239 
_wrap_new_InvalidArgumentError(PyObject * self,PyObject * args)9240 SWIGINTERN PyObject *_wrap_new_InvalidArgumentError(PyObject *self, PyObject *args) {
9241   Py_ssize_t argc;
9242   PyObject *argv[4] = {
9243     0
9244   };
9245 
9246   if (!(argc = SWIG_Python_UnpackTuple(args,"new_InvalidArgumentError",0,3,argv))) SWIG_fail;
9247   --argc;
9248   if (argc == 1) {
9249     return _wrap_new_InvalidArgumentError__SWIG_3(self, argc, argv);
9250   }
9251   if (argc == 2) {
9252     int _v = 0;
9253     {
9254       {
9255         int res = SWIG_AsVal_int(argv[1], NULL);
9256         _v = SWIG_CheckState(res);
9257       }
9258     }
9259     if (!_v) goto check_2;
9260     return _wrap_new_InvalidArgumentError__SWIG_4(self, argc, argv);
9261   }
9262 check_2:
9263 
9264   if (argc == 2) {
9265     return _wrap_new_InvalidArgumentError__SWIG_2(self, argc, argv);
9266   }
9267   if (argc == 3) {
9268     int _v = 0;
9269     {
9270       {
9271         int res = SWIG_AsVal_int(argv[2], NULL);
9272         _v = SWIG_CheckState(res);
9273       }
9274     }
9275     if (!_v) goto check_4;
9276     return _wrap_new_InvalidArgumentError__SWIG_1(self, argc, argv);
9277   }
9278 check_4:
9279 
9280   if (argc == 3) {
9281     return _wrap_new_InvalidArgumentError__SWIG_0(self, argc, argv);
9282   }
9283 
9284 fail:
9285   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_InvalidArgumentError'.\n"
9286     "  Possible C/C++ prototypes are:\n"
9287     "    Xapian::InvalidArgumentError::InvalidArgumentError(std::string const &,std::string const &,char const *)\n"
9288     "    Xapian::InvalidArgumentError::InvalidArgumentError(std::string const &,std::string const &,int)\n"
9289     "    Xapian::InvalidArgumentError::InvalidArgumentError(std::string const &,std::string const &)\n"
9290     "    Xapian::InvalidArgumentError::InvalidArgumentError(std::string const &)\n"
9291     "    Xapian::InvalidArgumentError::InvalidArgumentError(std::string const &,int)\n");
9292   return 0;
9293 }
9294 
9295 
_wrap_delete_InvalidArgumentError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9296 SWIGINTERN PyObject *_wrap_delete_InvalidArgumentError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9297   PyObject *resultobj = 0;
9298   Xapian::InvalidArgumentError *arg1 = (Xapian::InvalidArgumentError *) 0 ;
9299   void *argp1 = 0 ;
9300   int res1 = 0 ;
9301   PyObject *swig_obj[1] ;
9302 
9303   if (!args) SWIG_fail;
9304   swig_obj[0] = args;
9305   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__InvalidArgumentError, SWIG_POINTER_DISOWN |  0 );
9306   if (!SWIG_IsOK(res1)) {
9307     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InvalidArgumentError" "', argument " "1"" of type '" "Xapian::InvalidArgumentError *""'");
9308   }
9309   arg1 = reinterpret_cast< Xapian::InvalidArgumentError * >(argp1);
9310   {
9311     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9312     delete arg1;
9313     SWIG_PYTHON_THREAD_END_ALLOW;
9314   }
9315   resultobj = SWIG_Py_Void();
9316   return resultobj;
9317 fail:
9318   return NULL;
9319 }
9320 
9321 
InvalidArgumentError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9322 SWIGINTERN PyObject *InvalidArgumentError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9323   PyObject *obj;
9324   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
9325   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__InvalidArgumentError, SWIG_NewClientData(obj));
9326   return SWIG_Py_Void();
9327 }
9328 
InvalidArgumentError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9329 SWIGINTERN PyObject *InvalidArgumentError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9330   return SWIG_Python_InitShadowInstance(args);
9331 }
9332 
_wrap_new_InvalidOperationError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9333 SWIGINTERN PyObject *_wrap_new_InvalidOperationError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9334   PyObject *resultobj = 0;
9335   std::string *arg1 = 0 ;
9336   std::string *arg2 = 0 ;
9337   char *arg3 = (char *) 0 ;
9338   int res1 = SWIG_OLDOBJ ;
9339   int res2 = SWIG_OLDOBJ ;
9340   int res3 ;
9341   char *buf3 = 0 ;
9342   int alloc3 = 0 ;
9343   Xapian::InvalidOperationError *result = 0 ;
9344 
9345   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
9346   {
9347     std::string *ptr = (std::string *)0;
9348     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9349     if (!SWIG_IsOK(res1)) {
9350       if (res1 == INT_MIN) SWIG_fail;
9351       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9352     }
9353     if (!ptr) {
9354       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9355     }
9356     arg1 = ptr;
9357   }
9358   {
9359     std::string *ptr = (std::string *)0;
9360     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
9361     if (!SWIG_IsOK(res2)) {
9362       if (res2 == INT_MIN) SWIG_fail;
9363       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "std::string const &""'");
9364     }
9365     if (!ptr) {
9366       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "std::string const &""'");
9367     }
9368     arg2 = ptr;
9369   }
9370   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
9371   if (!SWIG_IsOK(res3)) {
9372     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_InvalidOperationError" "', argument " "3"" of type '" "char const *""'");
9373   }
9374   arg3 = reinterpret_cast< char * >(buf3);
9375   {
9376     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9377     result = (Xapian::InvalidOperationError *)new Xapian::InvalidOperationError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
9378     SWIG_PYTHON_THREAD_END_ALLOW;
9379   }
9380   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidOperationError, SWIG_POINTER_NEW |  0 );
9381   if (SWIG_IsNewObj(res1)) delete arg1;
9382   if (SWIG_IsNewObj(res2)) delete arg2;
9383   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
9384   return resultobj;
9385 fail:
9386   if (SWIG_IsNewObj(res1)) delete arg1;
9387   if (SWIG_IsNewObj(res2)) delete arg2;
9388   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
9389   return NULL;
9390 }
9391 
9392 
_wrap_new_InvalidOperationError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9393 SWIGINTERN PyObject *_wrap_new_InvalidOperationError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9394   PyObject *resultobj = 0;
9395   std::string *arg1 = 0 ;
9396   std::string *arg2 = 0 ;
9397   int arg3 ;
9398   int res1 = SWIG_OLDOBJ ;
9399   int res2 = SWIG_OLDOBJ ;
9400   int val3 ;
9401   int ecode3 = 0 ;
9402   Xapian::InvalidOperationError *result = 0 ;
9403 
9404   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
9405   {
9406     std::string *ptr = (std::string *)0;
9407     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9408     if (!SWIG_IsOK(res1)) {
9409       if (res1 == INT_MIN) SWIG_fail;
9410       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9411     }
9412     if (!ptr) {
9413       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9414     }
9415     arg1 = ptr;
9416   }
9417   {
9418     std::string *ptr = (std::string *)0;
9419     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
9420     if (!SWIG_IsOK(res2)) {
9421       if (res2 == INT_MIN) SWIG_fail;
9422       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "std::string const &""'");
9423     }
9424     if (!ptr) {
9425       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "std::string const &""'");
9426     }
9427     arg2 = ptr;
9428   }
9429   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
9430   if (!SWIG_IsOK(ecode3)) {
9431     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_InvalidOperationError" "', argument " "3"" of type '" "int""'");
9432   }
9433   arg3 = static_cast< int >(val3);
9434   {
9435     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9436     result = (Xapian::InvalidOperationError *)new Xapian::InvalidOperationError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
9437     SWIG_PYTHON_THREAD_END_ALLOW;
9438   }
9439   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidOperationError, SWIG_POINTER_NEW |  0 );
9440   if (SWIG_IsNewObj(res1)) delete arg1;
9441   if (SWIG_IsNewObj(res2)) delete arg2;
9442   return resultobj;
9443 fail:
9444   if (SWIG_IsNewObj(res1)) delete arg1;
9445   if (SWIG_IsNewObj(res2)) delete arg2;
9446   return NULL;
9447 }
9448 
9449 
_wrap_new_InvalidOperationError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9450 SWIGINTERN PyObject *_wrap_new_InvalidOperationError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9451   PyObject *resultobj = 0;
9452   std::string *arg1 = 0 ;
9453   std::string *arg2 = 0 ;
9454   int res1 = SWIG_OLDOBJ ;
9455   int res2 = SWIG_OLDOBJ ;
9456   Xapian::InvalidOperationError *result = 0 ;
9457 
9458   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
9459   {
9460     std::string *ptr = (std::string *)0;
9461     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9462     if (!SWIG_IsOK(res1)) {
9463       if (res1 == INT_MIN) SWIG_fail;
9464       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9465     }
9466     if (!ptr) {
9467       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9468     }
9469     arg1 = ptr;
9470   }
9471   {
9472     std::string *ptr = (std::string *)0;
9473     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
9474     if (!SWIG_IsOK(res2)) {
9475       if (res2 == INT_MIN) SWIG_fail;
9476       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "std::string const &""'");
9477     }
9478     if (!ptr) {
9479       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "std::string const &""'");
9480     }
9481     arg2 = ptr;
9482   }
9483   {
9484     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9485     result = (Xapian::InvalidOperationError *)new Xapian::InvalidOperationError((std::string const &)*arg1,(std::string const &)*arg2);
9486     SWIG_PYTHON_THREAD_END_ALLOW;
9487   }
9488   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidOperationError, SWIG_POINTER_NEW |  0 );
9489   if (SWIG_IsNewObj(res1)) delete arg1;
9490   if (SWIG_IsNewObj(res2)) delete arg2;
9491   return resultobj;
9492 fail:
9493   if (SWIG_IsNewObj(res1)) delete arg1;
9494   if (SWIG_IsNewObj(res2)) delete arg2;
9495   return NULL;
9496 }
9497 
9498 
_wrap_new_InvalidOperationError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9499 SWIGINTERN PyObject *_wrap_new_InvalidOperationError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9500   PyObject *resultobj = 0;
9501   std::string *arg1 = 0 ;
9502   int res1 = SWIG_OLDOBJ ;
9503   Xapian::InvalidOperationError *result = 0 ;
9504 
9505   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
9506   {
9507     std::string *ptr = (std::string *)0;
9508     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9509     if (!SWIG_IsOK(res1)) {
9510       if (res1 == INT_MIN) SWIG_fail;
9511       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9512     }
9513     if (!ptr) {
9514       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9515     }
9516     arg1 = ptr;
9517   }
9518   {
9519     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9520     result = (Xapian::InvalidOperationError *)new Xapian::InvalidOperationError((std::string const &)*arg1);
9521     SWIG_PYTHON_THREAD_END_ALLOW;
9522   }
9523   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidOperationError, SWIG_POINTER_NEW |  0 );
9524   if (SWIG_IsNewObj(res1)) delete arg1;
9525   return resultobj;
9526 fail:
9527   if (SWIG_IsNewObj(res1)) delete arg1;
9528   return NULL;
9529 }
9530 
9531 
_wrap_new_InvalidOperationError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9532 SWIGINTERN PyObject *_wrap_new_InvalidOperationError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9533   PyObject *resultobj = 0;
9534   std::string *arg1 = 0 ;
9535   int arg2 ;
9536   int res1 = SWIG_OLDOBJ ;
9537   int val2 ;
9538   int ecode2 = 0 ;
9539   Xapian::InvalidOperationError *result = 0 ;
9540 
9541   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
9542   {
9543     std::string *ptr = (std::string *)0;
9544     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9545     if (!SWIG_IsOK(res1)) {
9546       if (res1 == INT_MIN) SWIG_fail;
9547       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9548     }
9549     if (!ptr) {
9550       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvalidOperationError" "', argument " "1"" of type '" "std::string const &""'");
9551     }
9552     arg1 = ptr;
9553   }
9554   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
9555   if (!SWIG_IsOK(ecode2)) {
9556     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_InvalidOperationError" "', argument " "2"" of type '" "int""'");
9557   }
9558   arg2 = static_cast< int >(val2);
9559   {
9560     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9561     result = (Xapian::InvalidOperationError *)new Xapian::InvalidOperationError((std::string const &)*arg1,arg2);
9562     SWIG_PYTHON_THREAD_END_ALLOW;
9563   }
9564   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InvalidOperationError, SWIG_POINTER_NEW |  0 );
9565   if (SWIG_IsNewObj(res1)) delete arg1;
9566   return resultobj;
9567 fail:
9568   if (SWIG_IsNewObj(res1)) delete arg1;
9569   return NULL;
9570 }
9571 
9572 
_wrap_new_InvalidOperationError(PyObject * self,PyObject * args)9573 SWIGINTERN PyObject *_wrap_new_InvalidOperationError(PyObject *self, PyObject *args) {
9574   Py_ssize_t argc;
9575   PyObject *argv[4] = {
9576     0
9577   };
9578 
9579   if (!(argc = SWIG_Python_UnpackTuple(args,"new_InvalidOperationError",0,3,argv))) SWIG_fail;
9580   --argc;
9581   if (argc == 1) {
9582     return _wrap_new_InvalidOperationError__SWIG_3(self, argc, argv);
9583   }
9584   if (argc == 2) {
9585     int _v = 0;
9586     {
9587       {
9588         int res = SWIG_AsVal_int(argv[1], NULL);
9589         _v = SWIG_CheckState(res);
9590       }
9591     }
9592     if (!_v) goto check_2;
9593     return _wrap_new_InvalidOperationError__SWIG_4(self, argc, argv);
9594   }
9595 check_2:
9596 
9597   if (argc == 2) {
9598     return _wrap_new_InvalidOperationError__SWIG_2(self, argc, argv);
9599   }
9600   if (argc == 3) {
9601     int _v = 0;
9602     {
9603       {
9604         int res = SWIG_AsVal_int(argv[2], NULL);
9605         _v = SWIG_CheckState(res);
9606       }
9607     }
9608     if (!_v) goto check_4;
9609     return _wrap_new_InvalidOperationError__SWIG_1(self, argc, argv);
9610   }
9611 check_4:
9612 
9613   if (argc == 3) {
9614     return _wrap_new_InvalidOperationError__SWIG_0(self, argc, argv);
9615   }
9616 
9617 fail:
9618   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_InvalidOperationError'.\n"
9619     "  Possible C/C++ prototypes are:\n"
9620     "    Xapian::InvalidOperationError::InvalidOperationError(std::string const &,std::string const &,char const *)\n"
9621     "    Xapian::InvalidOperationError::InvalidOperationError(std::string const &,std::string const &,int)\n"
9622     "    Xapian::InvalidOperationError::InvalidOperationError(std::string const &,std::string const &)\n"
9623     "    Xapian::InvalidOperationError::InvalidOperationError(std::string const &)\n"
9624     "    Xapian::InvalidOperationError::InvalidOperationError(std::string const &,int)\n");
9625   return 0;
9626 }
9627 
9628 
_wrap_delete_InvalidOperationError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9629 SWIGINTERN PyObject *_wrap_delete_InvalidOperationError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9630   PyObject *resultobj = 0;
9631   Xapian::InvalidOperationError *arg1 = (Xapian::InvalidOperationError *) 0 ;
9632   void *argp1 = 0 ;
9633   int res1 = 0 ;
9634   PyObject *swig_obj[1] ;
9635 
9636   if (!args) SWIG_fail;
9637   swig_obj[0] = args;
9638   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__InvalidOperationError, SWIG_POINTER_DISOWN |  0 );
9639   if (!SWIG_IsOK(res1)) {
9640     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InvalidOperationError" "', argument " "1"" of type '" "Xapian::InvalidOperationError *""'");
9641   }
9642   arg1 = reinterpret_cast< Xapian::InvalidOperationError * >(argp1);
9643   {
9644     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9645     delete arg1;
9646     SWIG_PYTHON_THREAD_END_ALLOW;
9647   }
9648   resultobj = SWIG_Py_Void();
9649   return resultobj;
9650 fail:
9651   return NULL;
9652 }
9653 
9654 
InvalidOperationError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9655 SWIGINTERN PyObject *InvalidOperationError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9656   PyObject *obj;
9657   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
9658   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__InvalidOperationError, SWIG_NewClientData(obj));
9659   return SWIG_Py_Void();
9660 }
9661 
InvalidOperationError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9662 SWIGINTERN PyObject *InvalidOperationError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9663   return SWIG_Python_InitShadowInstance(args);
9664 }
9665 
_wrap_new_UnimplementedError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9666 SWIGINTERN PyObject *_wrap_new_UnimplementedError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9667   PyObject *resultobj = 0;
9668   std::string *arg1 = 0 ;
9669   std::string *arg2 = 0 ;
9670   char *arg3 = (char *) 0 ;
9671   int res1 = SWIG_OLDOBJ ;
9672   int res2 = SWIG_OLDOBJ ;
9673   int res3 ;
9674   char *buf3 = 0 ;
9675   int alloc3 = 0 ;
9676   Xapian::UnimplementedError *result = 0 ;
9677 
9678   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
9679   {
9680     std::string *ptr = (std::string *)0;
9681     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9682     if (!SWIG_IsOK(res1)) {
9683       if (res1 == INT_MIN) SWIG_fail;
9684       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9685     }
9686     if (!ptr) {
9687       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9688     }
9689     arg1 = ptr;
9690   }
9691   {
9692     std::string *ptr = (std::string *)0;
9693     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
9694     if (!SWIG_IsOK(res2)) {
9695       if (res2 == INT_MIN) SWIG_fail;
9696       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "std::string const &""'");
9697     }
9698     if (!ptr) {
9699       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "std::string const &""'");
9700     }
9701     arg2 = ptr;
9702   }
9703   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
9704   if (!SWIG_IsOK(res3)) {
9705     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_UnimplementedError" "', argument " "3"" of type '" "char const *""'");
9706   }
9707   arg3 = reinterpret_cast< char * >(buf3);
9708   {
9709     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9710     result = (Xapian::UnimplementedError *)new Xapian::UnimplementedError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
9711     SWIG_PYTHON_THREAD_END_ALLOW;
9712   }
9713   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__UnimplementedError, SWIG_POINTER_NEW |  0 );
9714   if (SWIG_IsNewObj(res1)) delete arg1;
9715   if (SWIG_IsNewObj(res2)) delete arg2;
9716   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
9717   return resultobj;
9718 fail:
9719   if (SWIG_IsNewObj(res1)) delete arg1;
9720   if (SWIG_IsNewObj(res2)) delete arg2;
9721   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
9722   return NULL;
9723 }
9724 
9725 
_wrap_new_UnimplementedError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9726 SWIGINTERN PyObject *_wrap_new_UnimplementedError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9727   PyObject *resultobj = 0;
9728   std::string *arg1 = 0 ;
9729   std::string *arg2 = 0 ;
9730   int arg3 ;
9731   int res1 = SWIG_OLDOBJ ;
9732   int res2 = SWIG_OLDOBJ ;
9733   int val3 ;
9734   int ecode3 = 0 ;
9735   Xapian::UnimplementedError *result = 0 ;
9736 
9737   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
9738   {
9739     std::string *ptr = (std::string *)0;
9740     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9741     if (!SWIG_IsOK(res1)) {
9742       if (res1 == INT_MIN) SWIG_fail;
9743       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9744     }
9745     if (!ptr) {
9746       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9747     }
9748     arg1 = ptr;
9749   }
9750   {
9751     std::string *ptr = (std::string *)0;
9752     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
9753     if (!SWIG_IsOK(res2)) {
9754       if (res2 == INT_MIN) SWIG_fail;
9755       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "std::string const &""'");
9756     }
9757     if (!ptr) {
9758       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "std::string const &""'");
9759     }
9760     arg2 = ptr;
9761   }
9762   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
9763   if (!SWIG_IsOK(ecode3)) {
9764     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_UnimplementedError" "', argument " "3"" of type '" "int""'");
9765   }
9766   arg3 = static_cast< int >(val3);
9767   {
9768     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9769     result = (Xapian::UnimplementedError *)new Xapian::UnimplementedError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
9770     SWIG_PYTHON_THREAD_END_ALLOW;
9771   }
9772   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__UnimplementedError, SWIG_POINTER_NEW |  0 );
9773   if (SWIG_IsNewObj(res1)) delete arg1;
9774   if (SWIG_IsNewObj(res2)) delete arg2;
9775   return resultobj;
9776 fail:
9777   if (SWIG_IsNewObj(res1)) delete arg1;
9778   if (SWIG_IsNewObj(res2)) delete arg2;
9779   return NULL;
9780 }
9781 
9782 
_wrap_new_UnimplementedError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9783 SWIGINTERN PyObject *_wrap_new_UnimplementedError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9784   PyObject *resultobj = 0;
9785   std::string *arg1 = 0 ;
9786   std::string *arg2 = 0 ;
9787   int res1 = SWIG_OLDOBJ ;
9788   int res2 = SWIG_OLDOBJ ;
9789   Xapian::UnimplementedError *result = 0 ;
9790 
9791   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
9792   {
9793     std::string *ptr = (std::string *)0;
9794     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9795     if (!SWIG_IsOK(res1)) {
9796       if (res1 == INT_MIN) SWIG_fail;
9797       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9798     }
9799     if (!ptr) {
9800       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9801     }
9802     arg1 = ptr;
9803   }
9804   {
9805     std::string *ptr = (std::string *)0;
9806     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
9807     if (!SWIG_IsOK(res2)) {
9808       if (res2 == INT_MIN) SWIG_fail;
9809       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "std::string const &""'");
9810     }
9811     if (!ptr) {
9812       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "std::string const &""'");
9813     }
9814     arg2 = ptr;
9815   }
9816   {
9817     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9818     result = (Xapian::UnimplementedError *)new Xapian::UnimplementedError((std::string const &)*arg1,(std::string const &)*arg2);
9819     SWIG_PYTHON_THREAD_END_ALLOW;
9820   }
9821   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__UnimplementedError, SWIG_POINTER_NEW |  0 );
9822   if (SWIG_IsNewObj(res1)) delete arg1;
9823   if (SWIG_IsNewObj(res2)) delete arg2;
9824   return resultobj;
9825 fail:
9826   if (SWIG_IsNewObj(res1)) delete arg1;
9827   if (SWIG_IsNewObj(res2)) delete arg2;
9828   return NULL;
9829 }
9830 
9831 
_wrap_new_UnimplementedError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9832 SWIGINTERN PyObject *_wrap_new_UnimplementedError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9833   PyObject *resultobj = 0;
9834   std::string *arg1 = 0 ;
9835   int res1 = SWIG_OLDOBJ ;
9836   Xapian::UnimplementedError *result = 0 ;
9837 
9838   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
9839   {
9840     std::string *ptr = (std::string *)0;
9841     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9842     if (!SWIG_IsOK(res1)) {
9843       if (res1 == INT_MIN) SWIG_fail;
9844       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9845     }
9846     if (!ptr) {
9847       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9848     }
9849     arg1 = ptr;
9850   }
9851   {
9852     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9853     result = (Xapian::UnimplementedError *)new Xapian::UnimplementedError((std::string const &)*arg1);
9854     SWIG_PYTHON_THREAD_END_ALLOW;
9855   }
9856   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__UnimplementedError, SWIG_POINTER_NEW |  0 );
9857   if (SWIG_IsNewObj(res1)) delete arg1;
9858   return resultobj;
9859 fail:
9860   if (SWIG_IsNewObj(res1)) delete arg1;
9861   return NULL;
9862 }
9863 
9864 
_wrap_new_UnimplementedError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9865 SWIGINTERN PyObject *_wrap_new_UnimplementedError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
9866   PyObject *resultobj = 0;
9867   std::string *arg1 = 0 ;
9868   int arg2 ;
9869   int res1 = SWIG_OLDOBJ ;
9870   int val2 ;
9871   int ecode2 = 0 ;
9872   Xapian::UnimplementedError *result = 0 ;
9873 
9874   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
9875   {
9876     std::string *ptr = (std::string *)0;
9877     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
9878     if (!SWIG_IsOK(res1)) {
9879       if (res1 == INT_MIN) SWIG_fail;
9880       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9881     }
9882     if (!ptr) {
9883       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UnimplementedError" "', argument " "1"" of type '" "std::string const &""'");
9884     }
9885     arg1 = ptr;
9886   }
9887   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
9888   if (!SWIG_IsOK(ecode2)) {
9889     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_UnimplementedError" "', argument " "2"" of type '" "int""'");
9890   }
9891   arg2 = static_cast< int >(val2);
9892   {
9893     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9894     result = (Xapian::UnimplementedError *)new Xapian::UnimplementedError((std::string const &)*arg1,arg2);
9895     SWIG_PYTHON_THREAD_END_ALLOW;
9896   }
9897   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__UnimplementedError, SWIG_POINTER_NEW |  0 );
9898   if (SWIG_IsNewObj(res1)) delete arg1;
9899   return resultobj;
9900 fail:
9901   if (SWIG_IsNewObj(res1)) delete arg1;
9902   return NULL;
9903 }
9904 
9905 
_wrap_new_UnimplementedError(PyObject * self,PyObject * args)9906 SWIGINTERN PyObject *_wrap_new_UnimplementedError(PyObject *self, PyObject *args) {
9907   Py_ssize_t argc;
9908   PyObject *argv[4] = {
9909     0
9910   };
9911 
9912   if (!(argc = SWIG_Python_UnpackTuple(args,"new_UnimplementedError",0,3,argv))) SWIG_fail;
9913   --argc;
9914   if (argc == 1) {
9915     return _wrap_new_UnimplementedError__SWIG_3(self, argc, argv);
9916   }
9917   if (argc == 2) {
9918     int _v = 0;
9919     {
9920       {
9921         int res = SWIG_AsVal_int(argv[1], NULL);
9922         _v = SWIG_CheckState(res);
9923       }
9924     }
9925     if (!_v) goto check_2;
9926     return _wrap_new_UnimplementedError__SWIG_4(self, argc, argv);
9927   }
9928 check_2:
9929 
9930   if (argc == 2) {
9931     return _wrap_new_UnimplementedError__SWIG_2(self, argc, argv);
9932   }
9933   if (argc == 3) {
9934     int _v = 0;
9935     {
9936       {
9937         int res = SWIG_AsVal_int(argv[2], NULL);
9938         _v = SWIG_CheckState(res);
9939       }
9940     }
9941     if (!_v) goto check_4;
9942     return _wrap_new_UnimplementedError__SWIG_1(self, argc, argv);
9943   }
9944 check_4:
9945 
9946   if (argc == 3) {
9947     return _wrap_new_UnimplementedError__SWIG_0(self, argc, argv);
9948   }
9949 
9950 fail:
9951   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_UnimplementedError'.\n"
9952     "  Possible C/C++ prototypes are:\n"
9953     "    Xapian::UnimplementedError::UnimplementedError(std::string const &,std::string const &,char const *)\n"
9954     "    Xapian::UnimplementedError::UnimplementedError(std::string const &,std::string const &,int)\n"
9955     "    Xapian::UnimplementedError::UnimplementedError(std::string const &,std::string const &)\n"
9956     "    Xapian::UnimplementedError::UnimplementedError(std::string const &)\n"
9957     "    Xapian::UnimplementedError::UnimplementedError(std::string const &,int)\n");
9958   return 0;
9959 }
9960 
9961 
_wrap_delete_UnimplementedError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9962 SWIGINTERN PyObject *_wrap_delete_UnimplementedError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9963   PyObject *resultobj = 0;
9964   Xapian::UnimplementedError *arg1 = (Xapian::UnimplementedError *) 0 ;
9965   void *argp1 = 0 ;
9966   int res1 = 0 ;
9967   PyObject *swig_obj[1] ;
9968 
9969   if (!args) SWIG_fail;
9970   swig_obj[0] = args;
9971   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__UnimplementedError, SWIG_POINTER_DISOWN |  0 );
9972   if (!SWIG_IsOK(res1)) {
9973     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_UnimplementedError" "', argument " "1"" of type '" "Xapian::UnimplementedError *""'");
9974   }
9975   arg1 = reinterpret_cast< Xapian::UnimplementedError * >(argp1);
9976   {
9977     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
9978     delete arg1;
9979     SWIG_PYTHON_THREAD_END_ALLOW;
9980   }
9981   resultobj = SWIG_Py_Void();
9982   return resultobj;
9983 fail:
9984   return NULL;
9985 }
9986 
9987 
UnimplementedError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9988 SWIGINTERN PyObject *UnimplementedError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9989   PyObject *obj;
9990   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
9991   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__UnimplementedError, SWIG_NewClientData(obj));
9992   return SWIG_Py_Void();
9993 }
9994 
UnimplementedError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9995 SWIGINTERN PyObject *UnimplementedError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9996   return SWIG_Python_InitShadowInstance(args);
9997 }
9998 
_wrap_new_DatabaseError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)9999 SWIGINTERN PyObject *_wrap_new_DatabaseError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10000   PyObject *resultobj = 0;
10001   std::string *arg1 = 0 ;
10002   std::string *arg2 = 0 ;
10003   char *arg3 = (char *) 0 ;
10004   int res1 = SWIG_OLDOBJ ;
10005   int res2 = SWIG_OLDOBJ ;
10006   int res3 ;
10007   char *buf3 = 0 ;
10008   int alloc3 = 0 ;
10009   Xapian::DatabaseError *result = 0 ;
10010 
10011   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
10012   {
10013     std::string *ptr = (std::string *)0;
10014     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10015     if (!SWIG_IsOK(res1)) {
10016       if (res1 == INT_MIN) SWIG_fail;
10017       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10018     }
10019     if (!ptr) {
10020       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10021     }
10022     arg1 = ptr;
10023   }
10024   {
10025     std::string *ptr = (std::string *)0;
10026     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
10027     if (!SWIG_IsOK(res2)) {
10028       if (res2 == INT_MIN) SWIG_fail;
10029       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseError" "', argument " "2"" of type '" "std::string const &""'");
10030     }
10031     if (!ptr) {
10032       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseError" "', argument " "2"" of type '" "std::string const &""'");
10033     }
10034     arg2 = ptr;
10035   }
10036   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
10037   if (!SWIG_IsOK(res3)) {
10038     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatabaseError" "', argument " "3"" of type '" "char const *""'");
10039   }
10040   arg3 = reinterpret_cast< char * >(buf3);
10041   {
10042     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10043     result = (Xapian::DatabaseError *)new Xapian::DatabaseError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
10044     SWIG_PYTHON_THREAD_END_ALLOW;
10045   }
10046   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseError, SWIG_POINTER_NEW |  0 );
10047   if (SWIG_IsNewObj(res1)) delete arg1;
10048   if (SWIG_IsNewObj(res2)) delete arg2;
10049   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
10050   return resultobj;
10051 fail:
10052   if (SWIG_IsNewObj(res1)) delete arg1;
10053   if (SWIG_IsNewObj(res2)) delete arg2;
10054   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
10055   return NULL;
10056 }
10057 
10058 
_wrap_new_DatabaseError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10059 SWIGINTERN PyObject *_wrap_new_DatabaseError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10060   PyObject *resultobj = 0;
10061   std::string *arg1 = 0 ;
10062   std::string *arg2 = 0 ;
10063   int arg3 ;
10064   int res1 = SWIG_OLDOBJ ;
10065   int res2 = SWIG_OLDOBJ ;
10066   int val3 ;
10067   int ecode3 = 0 ;
10068   Xapian::DatabaseError *result = 0 ;
10069 
10070   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
10071   {
10072     std::string *ptr = (std::string *)0;
10073     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10074     if (!SWIG_IsOK(res1)) {
10075       if (res1 == INT_MIN) SWIG_fail;
10076       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10077     }
10078     if (!ptr) {
10079       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10080     }
10081     arg1 = ptr;
10082   }
10083   {
10084     std::string *ptr = (std::string *)0;
10085     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
10086     if (!SWIG_IsOK(res2)) {
10087       if (res2 == INT_MIN) SWIG_fail;
10088       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseError" "', argument " "2"" of type '" "std::string const &""'");
10089     }
10090     if (!ptr) {
10091       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseError" "', argument " "2"" of type '" "std::string const &""'");
10092     }
10093     arg2 = ptr;
10094   }
10095   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
10096   if (!SWIG_IsOK(ecode3)) {
10097     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DatabaseError" "', argument " "3"" of type '" "int""'");
10098   }
10099   arg3 = static_cast< int >(val3);
10100   {
10101     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10102     result = (Xapian::DatabaseError *)new Xapian::DatabaseError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
10103     SWIG_PYTHON_THREAD_END_ALLOW;
10104   }
10105   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseError, SWIG_POINTER_NEW |  0 );
10106   if (SWIG_IsNewObj(res1)) delete arg1;
10107   if (SWIG_IsNewObj(res2)) delete arg2;
10108   return resultobj;
10109 fail:
10110   if (SWIG_IsNewObj(res1)) delete arg1;
10111   if (SWIG_IsNewObj(res2)) delete arg2;
10112   return NULL;
10113 }
10114 
10115 
_wrap_new_DatabaseError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10116 SWIGINTERN PyObject *_wrap_new_DatabaseError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10117   PyObject *resultobj = 0;
10118   std::string *arg1 = 0 ;
10119   std::string *arg2 = 0 ;
10120   int res1 = SWIG_OLDOBJ ;
10121   int res2 = SWIG_OLDOBJ ;
10122   Xapian::DatabaseError *result = 0 ;
10123 
10124   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
10125   {
10126     std::string *ptr = (std::string *)0;
10127     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10128     if (!SWIG_IsOK(res1)) {
10129       if (res1 == INT_MIN) SWIG_fail;
10130       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10131     }
10132     if (!ptr) {
10133       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10134     }
10135     arg1 = ptr;
10136   }
10137   {
10138     std::string *ptr = (std::string *)0;
10139     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
10140     if (!SWIG_IsOK(res2)) {
10141       if (res2 == INT_MIN) SWIG_fail;
10142       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseError" "', argument " "2"" of type '" "std::string const &""'");
10143     }
10144     if (!ptr) {
10145       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseError" "', argument " "2"" of type '" "std::string const &""'");
10146     }
10147     arg2 = ptr;
10148   }
10149   {
10150     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10151     result = (Xapian::DatabaseError *)new Xapian::DatabaseError((std::string const &)*arg1,(std::string const &)*arg2);
10152     SWIG_PYTHON_THREAD_END_ALLOW;
10153   }
10154   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseError, SWIG_POINTER_NEW |  0 );
10155   if (SWIG_IsNewObj(res1)) delete arg1;
10156   if (SWIG_IsNewObj(res2)) delete arg2;
10157   return resultobj;
10158 fail:
10159   if (SWIG_IsNewObj(res1)) delete arg1;
10160   if (SWIG_IsNewObj(res2)) delete arg2;
10161   return NULL;
10162 }
10163 
10164 
_wrap_new_DatabaseError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10165 SWIGINTERN PyObject *_wrap_new_DatabaseError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10166   PyObject *resultobj = 0;
10167   std::string *arg1 = 0 ;
10168   int res1 = SWIG_OLDOBJ ;
10169   Xapian::DatabaseError *result = 0 ;
10170 
10171   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
10172   {
10173     std::string *ptr = (std::string *)0;
10174     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10175     if (!SWIG_IsOK(res1)) {
10176       if (res1 == INT_MIN) SWIG_fail;
10177       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10178     }
10179     if (!ptr) {
10180       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10181     }
10182     arg1 = ptr;
10183   }
10184   {
10185     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10186     result = (Xapian::DatabaseError *)new Xapian::DatabaseError((std::string const &)*arg1);
10187     SWIG_PYTHON_THREAD_END_ALLOW;
10188   }
10189   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseError, SWIG_POINTER_NEW |  0 );
10190   if (SWIG_IsNewObj(res1)) delete arg1;
10191   return resultobj;
10192 fail:
10193   if (SWIG_IsNewObj(res1)) delete arg1;
10194   return NULL;
10195 }
10196 
10197 
_wrap_new_DatabaseError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10198 SWIGINTERN PyObject *_wrap_new_DatabaseError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10199   PyObject *resultobj = 0;
10200   std::string *arg1 = 0 ;
10201   int arg2 ;
10202   int res1 = SWIG_OLDOBJ ;
10203   int val2 ;
10204   int ecode2 = 0 ;
10205   Xapian::DatabaseError *result = 0 ;
10206 
10207   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
10208   {
10209     std::string *ptr = (std::string *)0;
10210     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10211     if (!SWIG_IsOK(res1)) {
10212       if (res1 == INT_MIN) SWIG_fail;
10213       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10214     }
10215     if (!ptr) {
10216       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseError" "', argument " "1"" of type '" "std::string const &""'");
10217     }
10218     arg1 = ptr;
10219   }
10220   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10221   if (!SWIG_IsOK(ecode2)) {
10222     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatabaseError" "', argument " "2"" of type '" "int""'");
10223   }
10224   arg2 = static_cast< int >(val2);
10225   {
10226     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10227     result = (Xapian::DatabaseError *)new Xapian::DatabaseError((std::string const &)*arg1,arg2);
10228     SWIG_PYTHON_THREAD_END_ALLOW;
10229   }
10230   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseError, SWIG_POINTER_NEW |  0 );
10231   if (SWIG_IsNewObj(res1)) delete arg1;
10232   return resultobj;
10233 fail:
10234   if (SWIG_IsNewObj(res1)) delete arg1;
10235   return NULL;
10236 }
10237 
10238 
_wrap_new_DatabaseError(PyObject * self,PyObject * args)10239 SWIGINTERN PyObject *_wrap_new_DatabaseError(PyObject *self, PyObject *args) {
10240   Py_ssize_t argc;
10241   PyObject *argv[4] = {
10242     0
10243   };
10244 
10245   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseError",0,3,argv))) SWIG_fail;
10246   --argc;
10247   if (argc == 1) {
10248     return _wrap_new_DatabaseError__SWIG_3(self, argc, argv);
10249   }
10250   if (argc == 2) {
10251     int _v = 0;
10252     {
10253       {
10254         int res = SWIG_AsVal_int(argv[1], NULL);
10255         _v = SWIG_CheckState(res);
10256       }
10257     }
10258     if (!_v) goto check_2;
10259     return _wrap_new_DatabaseError__SWIG_4(self, argc, argv);
10260   }
10261 check_2:
10262 
10263   if (argc == 2) {
10264     return _wrap_new_DatabaseError__SWIG_2(self, argc, argv);
10265   }
10266   if (argc == 3) {
10267     int _v = 0;
10268     {
10269       {
10270         int res = SWIG_AsVal_int(argv[2], NULL);
10271         _v = SWIG_CheckState(res);
10272       }
10273     }
10274     if (!_v) goto check_4;
10275     return _wrap_new_DatabaseError__SWIG_1(self, argc, argv);
10276   }
10277 check_4:
10278 
10279   if (argc == 3) {
10280     return _wrap_new_DatabaseError__SWIG_0(self, argc, argv);
10281   }
10282 
10283 fail:
10284   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DatabaseError'.\n"
10285     "  Possible C/C++ prototypes are:\n"
10286     "    Xapian::DatabaseError::DatabaseError(std::string const &,std::string const &,char const *)\n"
10287     "    Xapian::DatabaseError::DatabaseError(std::string const &,std::string const &,int)\n"
10288     "    Xapian::DatabaseError::DatabaseError(std::string const &,std::string const &)\n"
10289     "    Xapian::DatabaseError::DatabaseError(std::string const &)\n"
10290     "    Xapian::DatabaseError::DatabaseError(std::string const &,int)\n");
10291   return 0;
10292 }
10293 
10294 
_wrap_delete_DatabaseError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10295 SWIGINTERN PyObject *_wrap_delete_DatabaseError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10296   PyObject *resultobj = 0;
10297   Xapian::DatabaseError *arg1 = (Xapian::DatabaseError *) 0 ;
10298   void *argp1 = 0 ;
10299   int res1 = 0 ;
10300   PyObject *swig_obj[1] ;
10301 
10302   if (!args) SWIG_fail;
10303   swig_obj[0] = args;
10304   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DatabaseError, SWIG_POINTER_DISOWN |  0 );
10305   if (!SWIG_IsOK(res1)) {
10306     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DatabaseError" "', argument " "1"" of type '" "Xapian::DatabaseError *""'");
10307   }
10308   arg1 = reinterpret_cast< Xapian::DatabaseError * >(argp1);
10309   {
10310     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10311     delete arg1;
10312     SWIG_PYTHON_THREAD_END_ALLOW;
10313   }
10314   resultobj = SWIG_Py_Void();
10315   return resultobj;
10316 fail:
10317   return NULL;
10318 }
10319 
10320 
DatabaseError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10321 SWIGINTERN PyObject *DatabaseError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10322   PyObject *obj;
10323   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
10324   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DatabaseError, SWIG_NewClientData(obj));
10325   return SWIG_Py_Void();
10326 }
10327 
DatabaseError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10328 SWIGINTERN PyObject *DatabaseError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10329   return SWIG_Python_InitShadowInstance(args);
10330 }
10331 
_wrap_new_DatabaseCorruptError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10332 SWIGINTERN PyObject *_wrap_new_DatabaseCorruptError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10333   PyObject *resultobj = 0;
10334   std::string *arg1 = 0 ;
10335   std::string *arg2 = 0 ;
10336   char *arg3 = (char *) 0 ;
10337   int res1 = SWIG_OLDOBJ ;
10338   int res2 = SWIG_OLDOBJ ;
10339   int res3 ;
10340   char *buf3 = 0 ;
10341   int alloc3 = 0 ;
10342   Xapian::DatabaseCorruptError *result = 0 ;
10343 
10344   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
10345   {
10346     std::string *ptr = (std::string *)0;
10347     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10348     if (!SWIG_IsOK(res1)) {
10349       if (res1 == INT_MIN) SWIG_fail;
10350       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'");
10351     }
10352     if (!ptr) {
10353       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'");
10354     }
10355     arg1 = ptr;
10356   }
10357   {
10358     std::string *ptr = (std::string *)0;
10359     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
10360     if (!SWIG_IsOK(res2)) {
10361       if (res2 == INT_MIN) SWIG_fail;
10362       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "std::string const &""'");
10363     }
10364     if (!ptr) {
10365       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "std::string const &""'");
10366     }
10367     arg2 = ptr;
10368   }
10369   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
10370   if (!SWIG_IsOK(res3)) {
10371     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatabaseCorruptError" "', argument " "3"" of type '" "char const *""'");
10372   }
10373   arg3 = reinterpret_cast< char * >(buf3);
10374   {
10375     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10376     result = (Xapian::DatabaseCorruptError *)new Xapian::DatabaseCorruptError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
10377     SWIG_PYTHON_THREAD_END_ALLOW;
10378   }
10379   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCorruptError, SWIG_POINTER_NEW |  0 );
10380   if (SWIG_IsNewObj(res1)) delete arg1;
10381   if (SWIG_IsNewObj(res2)) delete arg2;
10382   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
10383   return resultobj;
10384 fail:
10385   if (SWIG_IsNewObj(res1)) delete arg1;
10386   if (SWIG_IsNewObj(res2)) delete arg2;
10387   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
10388   return NULL;
10389 }
10390 
10391 
_wrap_new_DatabaseCorruptError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10392 SWIGINTERN PyObject *_wrap_new_DatabaseCorruptError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10393   PyObject *resultobj = 0;
10394   std::string *arg1 = 0 ;
10395   std::string *arg2 = 0 ;
10396   int arg3 ;
10397   int res1 = SWIG_OLDOBJ ;
10398   int res2 = SWIG_OLDOBJ ;
10399   int val3 ;
10400   int ecode3 = 0 ;
10401   Xapian::DatabaseCorruptError *result = 0 ;
10402 
10403   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
10404   {
10405     std::string *ptr = (std::string *)0;
10406     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10407     if (!SWIG_IsOK(res1)) {
10408       if (res1 == INT_MIN) SWIG_fail;
10409       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'");
10410     }
10411     if (!ptr) {
10412       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'");
10413     }
10414     arg1 = ptr;
10415   }
10416   {
10417     std::string *ptr = (std::string *)0;
10418     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
10419     if (!SWIG_IsOK(res2)) {
10420       if (res2 == INT_MIN) SWIG_fail;
10421       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "std::string const &""'");
10422     }
10423     if (!ptr) {
10424       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "std::string const &""'");
10425     }
10426     arg2 = ptr;
10427   }
10428   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
10429   if (!SWIG_IsOK(ecode3)) {
10430     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DatabaseCorruptError" "', argument " "3"" of type '" "int""'");
10431   }
10432   arg3 = static_cast< int >(val3);
10433   {
10434     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10435     result = (Xapian::DatabaseCorruptError *)new Xapian::DatabaseCorruptError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
10436     SWIG_PYTHON_THREAD_END_ALLOW;
10437   }
10438   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCorruptError, SWIG_POINTER_NEW |  0 );
10439   if (SWIG_IsNewObj(res1)) delete arg1;
10440   if (SWIG_IsNewObj(res2)) delete arg2;
10441   return resultobj;
10442 fail:
10443   if (SWIG_IsNewObj(res1)) delete arg1;
10444   if (SWIG_IsNewObj(res2)) delete arg2;
10445   return NULL;
10446 }
10447 
10448 
_wrap_new_DatabaseCorruptError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10449 SWIGINTERN PyObject *_wrap_new_DatabaseCorruptError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10450   PyObject *resultobj = 0;
10451   std::string *arg1 = 0 ;
10452   std::string *arg2 = 0 ;
10453   int res1 = SWIG_OLDOBJ ;
10454   int res2 = SWIG_OLDOBJ ;
10455   Xapian::DatabaseCorruptError *result = 0 ;
10456 
10457   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
10458   {
10459     std::string *ptr = (std::string *)0;
10460     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10461     if (!SWIG_IsOK(res1)) {
10462       if (res1 == INT_MIN) SWIG_fail;
10463       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'");
10464     }
10465     if (!ptr) {
10466       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'");
10467     }
10468     arg1 = ptr;
10469   }
10470   {
10471     std::string *ptr = (std::string *)0;
10472     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
10473     if (!SWIG_IsOK(res2)) {
10474       if (res2 == INT_MIN) SWIG_fail;
10475       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "std::string const &""'");
10476     }
10477     if (!ptr) {
10478       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "std::string const &""'");
10479     }
10480     arg2 = ptr;
10481   }
10482   {
10483     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10484     result = (Xapian::DatabaseCorruptError *)new Xapian::DatabaseCorruptError((std::string const &)*arg1,(std::string const &)*arg2);
10485     SWIG_PYTHON_THREAD_END_ALLOW;
10486   }
10487   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCorruptError, SWIG_POINTER_NEW |  0 );
10488   if (SWIG_IsNewObj(res1)) delete arg1;
10489   if (SWIG_IsNewObj(res2)) delete arg2;
10490   return resultobj;
10491 fail:
10492   if (SWIG_IsNewObj(res1)) delete arg1;
10493   if (SWIG_IsNewObj(res2)) delete arg2;
10494   return NULL;
10495 }
10496 
10497 
_wrap_new_DatabaseCorruptError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10498 SWIGINTERN PyObject *_wrap_new_DatabaseCorruptError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10499   PyObject *resultobj = 0;
10500   std::string *arg1 = 0 ;
10501   int res1 = SWIG_OLDOBJ ;
10502   Xapian::DatabaseCorruptError *result = 0 ;
10503 
10504   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
10505   {
10506     std::string *ptr = (std::string *)0;
10507     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10508     if (!SWIG_IsOK(res1)) {
10509       if (res1 == INT_MIN) SWIG_fail;
10510       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'");
10511     }
10512     if (!ptr) {
10513       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'");
10514     }
10515     arg1 = ptr;
10516   }
10517   {
10518     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10519     result = (Xapian::DatabaseCorruptError *)new Xapian::DatabaseCorruptError((std::string const &)*arg1);
10520     SWIG_PYTHON_THREAD_END_ALLOW;
10521   }
10522   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCorruptError, SWIG_POINTER_NEW |  0 );
10523   if (SWIG_IsNewObj(res1)) delete arg1;
10524   return resultobj;
10525 fail:
10526   if (SWIG_IsNewObj(res1)) delete arg1;
10527   return NULL;
10528 }
10529 
10530 
_wrap_new_DatabaseCorruptError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10531 SWIGINTERN PyObject *_wrap_new_DatabaseCorruptError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10532   PyObject *resultobj = 0;
10533   std::string *arg1 = 0 ;
10534   int arg2 ;
10535   int res1 = SWIG_OLDOBJ ;
10536   int val2 ;
10537   int ecode2 = 0 ;
10538   Xapian::DatabaseCorruptError *result = 0 ;
10539 
10540   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
10541   {
10542     std::string *ptr = (std::string *)0;
10543     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10544     if (!SWIG_IsOK(res1)) {
10545       if (res1 == INT_MIN) SWIG_fail;
10546       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'");
10547     }
10548     if (!ptr) {
10549       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCorruptError" "', argument " "1"" of type '" "std::string const &""'");
10550     }
10551     arg1 = ptr;
10552   }
10553   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10554   if (!SWIG_IsOK(ecode2)) {
10555     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatabaseCorruptError" "', argument " "2"" of type '" "int""'");
10556   }
10557   arg2 = static_cast< int >(val2);
10558   {
10559     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10560     result = (Xapian::DatabaseCorruptError *)new Xapian::DatabaseCorruptError((std::string const &)*arg1,arg2);
10561     SWIG_PYTHON_THREAD_END_ALLOW;
10562   }
10563   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCorruptError, SWIG_POINTER_NEW |  0 );
10564   if (SWIG_IsNewObj(res1)) delete arg1;
10565   return resultobj;
10566 fail:
10567   if (SWIG_IsNewObj(res1)) delete arg1;
10568   return NULL;
10569 }
10570 
10571 
_wrap_new_DatabaseCorruptError(PyObject * self,PyObject * args)10572 SWIGINTERN PyObject *_wrap_new_DatabaseCorruptError(PyObject *self, PyObject *args) {
10573   Py_ssize_t argc;
10574   PyObject *argv[4] = {
10575     0
10576   };
10577 
10578   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseCorruptError",0,3,argv))) SWIG_fail;
10579   --argc;
10580   if (argc == 1) {
10581     return _wrap_new_DatabaseCorruptError__SWIG_3(self, argc, argv);
10582   }
10583   if (argc == 2) {
10584     int _v = 0;
10585     {
10586       {
10587         int res = SWIG_AsVal_int(argv[1], NULL);
10588         _v = SWIG_CheckState(res);
10589       }
10590     }
10591     if (!_v) goto check_2;
10592     return _wrap_new_DatabaseCorruptError__SWIG_4(self, argc, argv);
10593   }
10594 check_2:
10595 
10596   if (argc == 2) {
10597     return _wrap_new_DatabaseCorruptError__SWIG_2(self, argc, argv);
10598   }
10599   if (argc == 3) {
10600     int _v = 0;
10601     {
10602       {
10603         int res = SWIG_AsVal_int(argv[2], NULL);
10604         _v = SWIG_CheckState(res);
10605       }
10606     }
10607     if (!_v) goto check_4;
10608     return _wrap_new_DatabaseCorruptError__SWIG_1(self, argc, argv);
10609   }
10610 check_4:
10611 
10612   if (argc == 3) {
10613     return _wrap_new_DatabaseCorruptError__SWIG_0(self, argc, argv);
10614   }
10615 
10616 fail:
10617   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DatabaseCorruptError'.\n"
10618     "  Possible C/C++ prototypes are:\n"
10619     "    Xapian::DatabaseCorruptError::DatabaseCorruptError(std::string const &,std::string const &,char const *)\n"
10620     "    Xapian::DatabaseCorruptError::DatabaseCorruptError(std::string const &,std::string const &,int)\n"
10621     "    Xapian::DatabaseCorruptError::DatabaseCorruptError(std::string const &,std::string const &)\n"
10622     "    Xapian::DatabaseCorruptError::DatabaseCorruptError(std::string const &)\n"
10623     "    Xapian::DatabaseCorruptError::DatabaseCorruptError(std::string const &,int)\n");
10624   return 0;
10625 }
10626 
10627 
_wrap_delete_DatabaseCorruptError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10628 SWIGINTERN PyObject *_wrap_delete_DatabaseCorruptError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10629   PyObject *resultobj = 0;
10630   Xapian::DatabaseCorruptError *arg1 = (Xapian::DatabaseCorruptError *) 0 ;
10631   void *argp1 = 0 ;
10632   int res1 = 0 ;
10633   PyObject *swig_obj[1] ;
10634 
10635   if (!args) SWIG_fail;
10636   swig_obj[0] = args;
10637   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DatabaseCorruptError, SWIG_POINTER_DISOWN |  0 );
10638   if (!SWIG_IsOK(res1)) {
10639     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DatabaseCorruptError" "', argument " "1"" of type '" "Xapian::DatabaseCorruptError *""'");
10640   }
10641   arg1 = reinterpret_cast< Xapian::DatabaseCorruptError * >(argp1);
10642   {
10643     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10644     delete arg1;
10645     SWIG_PYTHON_THREAD_END_ALLOW;
10646   }
10647   resultobj = SWIG_Py_Void();
10648   return resultobj;
10649 fail:
10650   return NULL;
10651 }
10652 
10653 
DatabaseCorruptError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10654 SWIGINTERN PyObject *DatabaseCorruptError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10655   PyObject *obj;
10656   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
10657   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DatabaseCorruptError, SWIG_NewClientData(obj));
10658   return SWIG_Py_Void();
10659 }
10660 
DatabaseCorruptError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10661 SWIGINTERN PyObject *DatabaseCorruptError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10662   return SWIG_Python_InitShadowInstance(args);
10663 }
10664 
_wrap_new_DatabaseCreateError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10665 SWIGINTERN PyObject *_wrap_new_DatabaseCreateError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10666   PyObject *resultobj = 0;
10667   std::string *arg1 = 0 ;
10668   std::string *arg2 = 0 ;
10669   char *arg3 = (char *) 0 ;
10670   int res1 = SWIG_OLDOBJ ;
10671   int res2 = SWIG_OLDOBJ ;
10672   int res3 ;
10673   char *buf3 = 0 ;
10674   int alloc3 = 0 ;
10675   Xapian::DatabaseCreateError *result = 0 ;
10676 
10677   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
10678   {
10679     std::string *ptr = (std::string *)0;
10680     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10681     if (!SWIG_IsOK(res1)) {
10682       if (res1 == INT_MIN) SWIG_fail;
10683       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10684     }
10685     if (!ptr) {
10686       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10687     }
10688     arg1 = ptr;
10689   }
10690   {
10691     std::string *ptr = (std::string *)0;
10692     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
10693     if (!SWIG_IsOK(res2)) {
10694       if (res2 == INT_MIN) SWIG_fail;
10695       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "std::string const &""'");
10696     }
10697     if (!ptr) {
10698       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "std::string const &""'");
10699     }
10700     arg2 = ptr;
10701   }
10702   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
10703   if (!SWIG_IsOK(res3)) {
10704     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatabaseCreateError" "', argument " "3"" of type '" "char const *""'");
10705   }
10706   arg3 = reinterpret_cast< char * >(buf3);
10707   {
10708     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10709     result = (Xapian::DatabaseCreateError *)new Xapian::DatabaseCreateError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
10710     SWIG_PYTHON_THREAD_END_ALLOW;
10711   }
10712   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCreateError, SWIG_POINTER_NEW |  0 );
10713   if (SWIG_IsNewObj(res1)) delete arg1;
10714   if (SWIG_IsNewObj(res2)) delete arg2;
10715   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
10716   return resultobj;
10717 fail:
10718   if (SWIG_IsNewObj(res1)) delete arg1;
10719   if (SWIG_IsNewObj(res2)) delete arg2;
10720   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
10721   return NULL;
10722 }
10723 
10724 
_wrap_new_DatabaseCreateError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10725 SWIGINTERN PyObject *_wrap_new_DatabaseCreateError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10726   PyObject *resultobj = 0;
10727   std::string *arg1 = 0 ;
10728   std::string *arg2 = 0 ;
10729   int arg3 ;
10730   int res1 = SWIG_OLDOBJ ;
10731   int res2 = SWIG_OLDOBJ ;
10732   int val3 ;
10733   int ecode3 = 0 ;
10734   Xapian::DatabaseCreateError *result = 0 ;
10735 
10736   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
10737   {
10738     std::string *ptr = (std::string *)0;
10739     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10740     if (!SWIG_IsOK(res1)) {
10741       if (res1 == INT_MIN) SWIG_fail;
10742       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10743     }
10744     if (!ptr) {
10745       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10746     }
10747     arg1 = ptr;
10748   }
10749   {
10750     std::string *ptr = (std::string *)0;
10751     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
10752     if (!SWIG_IsOK(res2)) {
10753       if (res2 == INT_MIN) SWIG_fail;
10754       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "std::string const &""'");
10755     }
10756     if (!ptr) {
10757       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "std::string const &""'");
10758     }
10759     arg2 = ptr;
10760   }
10761   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
10762   if (!SWIG_IsOK(ecode3)) {
10763     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DatabaseCreateError" "', argument " "3"" of type '" "int""'");
10764   }
10765   arg3 = static_cast< int >(val3);
10766   {
10767     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10768     result = (Xapian::DatabaseCreateError *)new Xapian::DatabaseCreateError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
10769     SWIG_PYTHON_THREAD_END_ALLOW;
10770   }
10771   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCreateError, SWIG_POINTER_NEW |  0 );
10772   if (SWIG_IsNewObj(res1)) delete arg1;
10773   if (SWIG_IsNewObj(res2)) delete arg2;
10774   return resultobj;
10775 fail:
10776   if (SWIG_IsNewObj(res1)) delete arg1;
10777   if (SWIG_IsNewObj(res2)) delete arg2;
10778   return NULL;
10779 }
10780 
10781 
_wrap_new_DatabaseCreateError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10782 SWIGINTERN PyObject *_wrap_new_DatabaseCreateError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10783   PyObject *resultobj = 0;
10784   std::string *arg1 = 0 ;
10785   std::string *arg2 = 0 ;
10786   int res1 = SWIG_OLDOBJ ;
10787   int res2 = SWIG_OLDOBJ ;
10788   Xapian::DatabaseCreateError *result = 0 ;
10789 
10790   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
10791   {
10792     std::string *ptr = (std::string *)0;
10793     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10794     if (!SWIG_IsOK(res1)) {
10795       if (res1 == INT_MIN) SWIG_fail;
10796       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10797     }
10798     if (!ptr) {
10799       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10800     }
10801     arg1 = ptr;
10802   }
10803   {
10804     std::string *ptr = (std::string *)0;
10805     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
10806     if (!SWIG_IsOK(res2)) {
10807       if (res2 == INT_MIN) SWIG_fail;
10808       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "std::string const &""'");
10809     }
10810     if (!ptr) {
10811       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "std::string const &""'");
10812     }
10813     arg2 = ptr;
10814   }
10815   {
10816     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10817     result = (Xapian::DatabaseCreateError *)new Xapian::DatabaseCreateError((std::string const &)*arg1,(std::string const &)*arg2);
10818     SWIG_PYTHON_THREAD_END_ALLOW;
10819   }
10820   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCreateError, SWIG_POINTER_NEW |  0 );
10821   if (SWIG_IsNewObj(res1)) delete arg1;
10822   if (SWIG_IsNewObj(res2)) delete arg2;
10823   return resultobj;
10824 fail:
10825   if (SWIG_IsNewObj(res1)) delete arg1;
10826   if (SWIG_IsNewObj(res2)) delete arg2;
10827   return NULL;
10828 }
10829 
10830 
_wrap_new_DatabaseCreateError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10831 SWIGINTERN PyObject *_wrap_new_DatabaseCreateError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10832   PyObject *resultobj = 0;
10833   std::string *arg1 = 0 ;
10834   int res1 = SWIG_OLDOBJ ;
10835   Xapian::DatabaseCreateError *result = 0 ;
10836 
10837   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
10838   {
10839     std::string *ptr = (std::string *)0;
10840     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10841     if (!SWIG_IsOK(res1)) {
10842       if (res1 == INT_MIN) SWIG_fail;
10843       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10844     }
10845     if (!ptr) {
10846       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10847     }
10848     arg1 = ptr;
10849   }
10850   {
10851     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10852     result = (Xapian::DatabaseCreateError *)new Xapian::DatabaseCreateError((std::string const &)*arg1);
10853     SWIG_PYTHON_THREAD_END_ALLOW;
10854   }
10855   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCreateError, SWIG_POINTER_NEW |  0 );
10856   if (SWIG_IsNewObj(res1)) delete arg1;
10857   return resultobj;
10858 fail:
10859   if (SWIG_IsNewObj(res1)) delete arg1;
10860   return NULL;
10861 }
10862 
10863 
_wrap_new_DatabaseCreateError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10864 SWIGINTERN PyObject *_wrap_new_DatabaseCreateError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10865   PyObject *resultobj = 0;
10866   std::string *arg1 = 0 ;
10867   int arg2 ;
10868   int res1 = SWIG_OLDOBJ ;
10869   int val2 ;
10870   int ecode2 = 0 ;
10871   Xapian::DatabaseCreateError *result = 0 ;
10872 
10873   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
10874   {
10875     std::string *ptr = (std::string *)0;
10876     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
10877     if (!SWIG_IsOK(res1)) {
10878       if (res1 == INT_MIN) SWIG_fail;
10879       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10880     }
10881     if (!ptr) {
10882       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseCreateError" "', argument " "1"" of type '" "std::string const &""'");
10883     }
10884     arg1 = ptr;
10885   }
10886   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10887   if (!SWIG_IsOK(ecode2)) {
10888     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatabaseCreateError" "', argument " "2"" of type '" "int""'");
10889   }
10890   arg2 = static_cast< int >(val2);
10891   {
10892     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10893     result = (Xapian::DatabaseCreateError *)new Xapian::DatabaseCreateError((std::string const &)*arg1,arg2);
10894     SWIG_PYTHON_THREAD_END_ALLOW;
10895   }
10896   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseCreateError, SWIG_POINTER_NEW |  0 );
10897   if (SWIG_IsNewObj(res1)) delete arg1;
10898   return resultobj;
10899 fail:
10900   if (SWIG_IsNewObj(res1)) delete arg1;
10901   return NULL;
10902 }
10903 
10904 
_wrap_new_DatabaseCreateError(PyObject * self,PyObject * args)10905 SWIGINTERN PyObject *_wrap_new_DatabaseCreateError(PyObject *self, PyObject *args) {
10906   Py_ssize_t argc;
10907   PyObject *argv[4] = {
10908     0
10909   };
10910 
10911   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseCreateError",0,3,argv))) SWIG_fail;
10912   --argc;
10913   if (argc == 1) {
10914     return _wrap_new_DatabaseCreateError__SWIG_3(self, argc, argv);
10915   }
10916   if (argc == 2) {
10917     int _v = 0;
10918     {
10919       {
10920         int res = SWIG_AsVal_int(argv[1], NULL);
10921         _v = SWIG_CheckState(res);
10922       }
10923     }
10924     if (!_v) goto check_2;
10925     return _wrap_new_DatabaseCreateError__SWIG_4(self, argc, argv);
10926   }
10927 check_2:
10928 
10929   if (argc == 2) {
10930     return _wrap_new_DatabaseCreateError__SWIG_2(self, argc, argv);
10931   }
10932   if (argc == 3) {
10933     int _v = 0;
10934     {
10935       {
10936         int res = SWIG_AsVal_int(argv[2], NULL);
10937         _v = SWIG_CheckState(res);
10938       }
10939     }
10940     if (!_v) goto check_4;
10941     return _wrap_new_DatabaseCreateError__SWIG_1(self, argc, argv);
10942   }
10943 check_4:
10944 
10945   if (argc == 3) {
10946     return _wrap_new_DatabaseCreateError__SWIG_0(self, argc, argv);
10947   }
10948 
10949 fail:
10950   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DatabaseCreateError'.\n"
10951     "  Possible C/C++ prototypes are:\n"
10952     "    Xapian::DatabaseCreateError::DatabaseCreateError(std::string const &,std::string const &,char const *)\n"
10953     "    Xapian::DatabaseCreateError::DatabaseCreateError(std::string const &,std::string const &,int)\n"
10954     "    Xapian::DatabaseCreateError::DatabaseCreateError(std::string const &,std::string const &)\n"
10955     "    Xapian::DatabaseCreateError::DatabaseCreateError(std::string const &)\n"
10956     "    Xapian::DatabaseCreateError::DatabaseCreateError(std::string const &,int)\n");
10957   return 0;
10958 }
10959 
10960 
_wrap_delete_DatabaseCreateError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10961 SWIGINTERN PyObject *_wrap_delete_DatabaseCreateError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10962   PyObject *resultobj = 0;
10963   Xapian::DatabaseCreateError *arg1 = (Xapian::DatabaseCreateError *) 0 ;
10964   void *argp1 = 0 ;
10965   int res1 = 0 ;
10966   PyObject *swig_obj[1] ;
10967 
10968   if (!args) SWIG_fail;
10969   swig_obj[0] = args;
10970   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DatabaseCreateError, SWIG_POINTER_DISOWN |  0 );
10971   if (!SWIG_IsOK(res1)) {
10972     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DatabaseCreateError" "', argument " "1"" of type '" "Xapian::DatabaseCreateError *""'");
10973   }
10974   arg1 = reinterpret_cast< Xapian::DatabaseCreateError * >(argp1);
10975   {
10976     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
10977     delete arg1;
10978     SWIG_PYTHON_THREAD_END_ALLOW;
10979   }
10980   resultobj = SWIG_Py_Void();
10981   return resultobj;
10982 fail:
10983   return NULL;
10984 }
10985 
10986 
DatabaseCreateError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10987 SWIGINTERN PyObject *DatabaseCreateError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10988   PyObject *obj;
10989   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
10990   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DatabaseCreateError, SWIG_NewClientData(obj));
10991   return SWIG_Py_Void();
10992 }
10993 
DatabaseCreateError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10994 SWIGINTERN PyObject *DatabaseCreateError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10995   return SWIG_Python_InitShadowInstance(args);
10996 }
10997 
_wrap_new_DatabaseLockError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)10998 SWIGINTERN PyObject *_wrap_new_DatabaseLockError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10999   PyObject *resultobj = 0;
11000   std::string *arg1 = 0 ;
11001   std::string *arg2 = 0 ;
11002   char *arg3 = (char *) 0 ;
11003   int res1 = SWIG_OLDOBJ ;
11004   int res2 = SWIG_OLDOBJ ;
11005   int res3 ;
11006   char *buf3 = 0 ;
11007   int alloc3 = 0 ;
11008   Xapian::DatabaseLockError *result = 0 ;
11009 
11010   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
11011   {
11012     std::string *ptr = (std::string *)0;
11013     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11014     if (!SWIG_IsOK(res1)) {
11015       if (res1 == INT_MIN) SWIG_fail;
11016       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11017     }
11018     if (!ptr) {
11019       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11020     }
11021     arg1 = ptr;
11022   }
11023   {
11024     std::string *ptr = (std::string *)0;
11025     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
11026     if (!SWIG_IsOK(res2)) {
11027       if (res2 == INT_MIN) SWIG_fail;
11028       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "std::string const &""'");
11029     }
11030     if (!ptr) {
11031       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "std::string const &""'");
11032     }
11033     arg2 = ptr;
11034   }
11035   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
11036   if (!SWIG_IsOK(res3)) {
11037     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatabaseLockError" "', argument " "3"" of type '" "char const *""'");
11038   }
11039   arg3 = reinterpret_cast< char * >(buf3);
11040   {
11041     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11042     result = (Xapian::DatabaseLockError *)new Xapian::DatabaseLockError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
11043     SWIG_PYTHON_THREAD_END_ALLOW;
11044   }
11045   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseLockError, SWIG_POINTER_NEW |  0 );
11046   if (SWIG_IsNewObj(res1)) delete arg1;
11047   if (SWIG_IsNewObj(res2)) delete arg2;
11048   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11049   return resultobj;
11050 fail:
11051   if (SWIG_IsNewObj(res1)) delete arg1;
11052   if (SWIG_IsNewObj(res2)) delete arg2;
11053   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11054   return NULL;
11055 }
11056 
11057 
_wrap_new_DatabaseLockError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11058 SWIGINTERN PyObject *_wrap_new_DatabaseLockError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11059   PyObject *resultobj = 0;
11060   std::string *arg1 = 0 ;
11061   std::string *arg2 = 0 ;
11062   int arg3 ;
11063   int res1 = SWIG_OLDOBJ ;
11064   int res2 = SWIG_OLDOBJ ;
11065   int val3 ;
11066   int ecode3 = 0 ;
11067   Xapian::DatabaseLockError *result = 0 ;
11068 
11069   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
11070   {
11071     std::string *ptr = (std::string *)0;
11072     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11073     if (!SWIG_IsOK(res1)) {
11074       if (res1 == INT_MIN) SWIG_fail;
11075       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11076     }
11077     if (!ptr) {
11078       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11079     }
11080     arg1 = ptr;
11081   }
11082   {
11083     std::string *ptr = (std::string *)0;
11084     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
11085     if (!SWIG_IsOK(res2)) {
11086       if (res2 == INT_MIN) SWIG_fail;
11087       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "std::string const &""'");
11088     }
11089     if (!ptr) {
11090       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "std::string const &""'");
11091     }
11092     arg2 = ptr;
11093   }
11094   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
11095   if (!SWIG_IsOK(ecode3)) {
11096     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DatabaseLockError" "', argument " "3"" of type '" "int""'");
11097   }
11098   arg3 = static_cast< int >(val3);
11099   {
11100     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11101     result = (Xapian::DatabaseLockError *)new Xapian::DatabaseLockError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
11102     SWIG_PYTHON_THREAD_END_ALLOW;
11103   }
11104   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseLockError, SWIG_POINTER_NEW |  0 );
11105   if (SWIG_IsNewObj(res1)) delete arg1;
11106   if (SWIG_IsNewObj(res2)) delete arg2;
11107   return resultobj;
11108 fail:
11109   if (SWIG_IsNewObj(res1)) delete arg1;
11110   if (SWIG_IsNewObj(res2)) delete arg2;
11111   return NULL;
11112 }
11113 
11114 
_wrap_new_DatabaseLockError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11115 SWIGINTERN PyObject *_wrap_new_DatabaseLockError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11116   PyObject *resultobj = 0;
11117   std::string *arg1 = 0 ;
11118   std::string *arg2 = 0 ;
11119   int res1 = SWIG_OLDOBJ ;
11120   int res2 = SWIG_OLDOBJ ;
11121   Xapian::DatabaseLockError *result = 0 ;
11122 
11123   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
11124   {
11125     std::string *ptr = (std::string *)0;
11126     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11127     if (!SWIG_IsOK(res1)) {
11128       if (res1 == INT_MIN) SWIG_fail;
11129       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11130     }
11131     if (!ptr) {
11132       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11133     }
11134     arg1 = ptr;
11135   }
11136   {
11137     std::string *ptr = (std::string *)0;
11138     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
11139     if (!SWIG_IsOK(res2)) {
11140       if (res2 == INT_MIN) SWIG_fail;
11141       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "std::string const &""'");
11142     }
11143     if (!ptr) {
11144       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "std::string const &""'");
11145     }
11146     arg2 = ptr;
11147   }
11148   {
11149     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11150     result = (Xapian::DatabaseLockError *)new Xapian::DatabaseLockError((std::string const &)*arg1,(std::string const &)*arg2);
11151     SWIG_PYTHON_THREAD_END_ALLOW;
11152   }
11153   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseLockError, SWIG_POINTER_NEW |  0 );
11154   if (SWIG_IsNewObj(res1)) delete arg1;
11155   if (SWIG_IsNewObj(res2)) delete arg2;
11156   return resultobj;
11157 fail:
11158   if (SWIG_IsNewObj(res1)) delete arg1;
11159   if (SWIG_IsNewObj(res2)) delete arg2;
11160   return NULL;
11161 }
11162 
11163 
_wrap_new_DatabaseLockError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11164 SWIGINTERN PyObject *_wrap_new_DatabaseLockError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11165   PyObject *resultobj = 0;
11166   std::string *arg1 = 0 ;
11167   int res1 = SWIG_OLDOBJ ;
11168   Xapian::DatabaseLockError *result = 0 ;
11169 
11170   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
11171   {
11172     std::string *ptr = (std::string *)0;
11173     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11174     if (!SWIG_IsOK(res1)) {
11175       if (res1 == INT_MIN) SWIG_fail;
11176       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11177     }
11178     if (!ptr) {
11179       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11180     }
11181     arg1 = ptr;
11182   }
11183   {
11184     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11185     result = (Xapian::DatabaseLockError *)new Xapian::DatabaseLockError((std::string const &)*arg1);
11186     SWIG_PYTHON_THREAD_END_ALLOW;
11187   }
11188   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseLockError, SWIG_POINTER_NEW |  0 );
11189   if (SWIG_IsNewObj(res1)) delete arg1;
11190   return resultobj;
11191 fail:
11192   if (SWIG_IsNewObj(res1)) delete arg1;
11193   return NULL;
11194 }
11195 
11196 
_wrap_new_DatabaseLockError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11197 SWIGINTERN PyObject *_wrap_new_DatabaseLockError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11198   PyObject *resultobj = 0;
11199   std::string *arg1 = 0 ;
11200   int arg2 ;
11201   int res1 = SWIG_OLDOBJ ;
11202   int val2 ;
11203   int ecode2 = 0 ;
11204   Xapian::DatabaseLockError *result = 0 ;
11205 
11206   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
11207   {
11208     std::string *ptr = (std::string *)0;
11209     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11210     if (!SWIG_IsOK(res1)) {
11211       if (res1 == INT_MIN) SWIG_fail;
11212       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11213     }
11214     if (!ptr) {
11215       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseLockError" "', argument " "1"" of type '" "std::string const &""'");
11216     }
11217     arg1 = ptr;
11218   }
11219   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
11220   if (!SWIG_IsOK(ecode2)) {
11221     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatabaseLockError" "', argument " "2"" of type '" "int""'");
11222   }
11223   arg2 = static_cast< int >(val2);
11224   {
11225     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11226     result = (Xapian::DatabaseLockError *)new Xapian::DatabaseLockError((std::string const &)*arg1,arg2);
11227     SWIG_PYTHON_THREAD_END_ALLOW;
11228   }
11229   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseLockError, SWIG_POINTER_NEW |  0 );
11230   if (SWIG_IsNewObj(res1)) delete arg1;
11231   return resultobj;
11232 fail:
11233   if (SWIG_IsNewObj(res1)) delete arg1;
11234   return NULL;
11235 }
11236 
11237 
_wrap_new_DatabaseLockError(PyObject * self,PyObject * args)11238 SWIGINTERN PyObject *_wrap_new_DatabaseLockError(PyObject *self, PyObject *args) {
11239   Py_ssize_t argc;
11240   PyObject *argv[4] = {
11241     0
11242   };
11243 
11244   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseLockError",0,3,argv))) SWIG_fail;
11245   --argc;
11246   if (argc == 1) {
11247     return _wrap_new_DatabaseLockError__SWIG_3(self, argc, argv);
11248   }
11249   if (argc == 2) {
11250     int _v = 0;
11251     {
11252       {
11253         int res = SWIG_AsVal_int(argv[1], NULL);
11254         _v = SWIG_CheckState(res);
11255       }
11256     }
11257     if (!_v) goto check_2;
11258     return _wrap_new_DatabaseLockError__SWIG_4(self, argc, argv);
11259   }
11260 check_2:
11261 
11262   if (argc == 2) {
11263     return _wrap_new_DatabaseLockError__SWIG_2(self, argc, argv);
11264   }
11265   if (argc == 3) {
11266     int _v = 0;
11267     {
11268       {
11269         int res = SWIG_AsVal_int(argv[2], NULL);
11270         _v = SWIG_CheckState(res);
11271       }
11272     }
11273     if (!_v) goto check_4;
11274     return _wrap_new_DatabaseLockError__SWIG_1(self, argc, argv);
11275   }
11276 check_4:
11277 
11278   if (argc == 3) {
11279     return _wrap_new_DatabaseLockError__SWIG_0(self, argc, argv);
11280   }
11281 
11282 fail:
11283   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DatabaseLockError'.\n"
11284     "  Possible C/C++ prototypes are:\n"
11285     "    Xapian::DatabaseLockError::DatabaseLockError(std::string const &,std::string const &,char const *)\n"
11286     "    Xapian::DatabaseLockError::DatabaseLockError(std::string const &,std::string const &,int)\n"
11287     "    Xapian::DatabaseLockError::DatabaseLockError(std::string const &,std::string const &)\n"
11288     "    Xapian::DatabaseLockError::DatabaseLockError(std::string const &)\n"
11289     "    Xapian::DatabaseLockError::DatabaseLockError(std::string const &,int)\n");
11290   return 0;
11291 }
11292 
11293 
_wrap_delete_DatabaseLockError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11294 SWIGINTERN PyObject *_wrap_delete_DatabaseLockError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11295   PyObject *resultobj = 0;
11296   Xapian::DatabaseLockError *arg1 = (Xapian::DatabaseLockError *) 0 ;
11297   void *argp1 = 0 ;
11298   int res1 = 0 ;
11299   PyObject *swig_obj[1] ;
11300 
11301   if (!args) SWIG_fail;
11302   swig_obj[0] = args;
11303   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DatabaseLockError, SWIG_POINTER_DISOWN |  0 );
11304   if (!SWIG_IsOK(res1)) {
11305     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DatabaseLockError" "', argument " "1"" of type '" "Xapian::DatabaseLockError *""'");
11306   }
11307   arg1 = reinterpret_cast< Xapian::DatabaseLockError * >(argp1);
11308   {
11309     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11310     delete arg1;
11311     SWIG_PYTHON_THREAD_END_ALLOW;
11312   }
11313   resultobj = SWIG_Py_Void();
11314   return resultobj;
11315 fail:
11316   return NULL;
11317 }
11318 
11319 
DatabaseLockError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11320 SWIGINTERN PyObject *DatabaseLockError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11321   PyObject *obj;
11322   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
11323   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DatabaseLockError, SWIG_NewClientData(obj));
11324   return SWIG_Py_Void();
11325 }
11326 
DatabaseLockError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11327 SWIGINTERN PyObject *DatabaseLockError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11328   return SWIG_Python_InitShadowInstance(args);
11329 }
11330 
_wrap_new_DatabaseModifiedError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11331 SWIGINTERN PyObject *_wrap_new_DatabaseModifiedError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11332   PyObject *resultobj = 0;
11333   std::string *arg1 = 0 ;
11334   std::string *arg2 = 0 ;
11335   char *arg3 = (char *) 0 ;
11336   int res1 = SWIG_OLDOBJ ;
11337   int res2 = SWIG_OLDOBJ ;
11338   int res3 ;
11339   char *buf3 = 0 ;
11340   int alloc3 = 0 ;
11341   Xapian::DatabaseModifiedError *result = 0 ;
11342 
11343   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
11344   {
11345     std::string *ptr = (std::string *)0;
11346     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11347     if (!SWIG_IsOK(res1)) {
11348       if (res1 == INT_MIN) SWIG_fail;
11349       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11350     }
11351     if (!ptr) {
11352       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11353     }
11354     arg1 = ptr;
11355   }
11356   {
11357     std::string *ptr = (std::string *)0;
11358     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
11359     if (!SWIG_IsOK(res2)) {
11360       if (res2 == INT_MIN) SWIG_fail;
11361       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "std::string const &""'");
11362     }
11363     if (!ptr) {
11364       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "std::string const &""'");
11365     }
11366     arg2 = ptr;
11367   }
11368   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
11369   if (!SWIG_IsOK(res3)) {
11370     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatabaseModifiedError" "', argument " "3"" of type '" "char const *""'");
11371   }
11372   arg3 = reinterpret_cast< char * >(buf3);
11373   {
11374     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11375     result = (Xapian::DatabaseModifiedError *)new Xapian::DatabaseModifiedError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
11376     SWIG_PYTHON_THREAD_END_ALLOW;
11377   }
11378   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseModifiedError, SWIG_POINTER_NEW |  0 );
11379   if (SWIG_IsNewObj(res1)) delete arg1;
11380   if (SWIG_IsNewObj(res2)) delete arg2;
11381   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11382   return resultobj;
11383 fail:
11384   if (SWIG_IsNewObj(res1)) delete arg1;
11385   if (SWIG_IsNewObj(res2)) delete arg2;
11386   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11387   return NULL;
11388 }
11389 
11390 
_wrap_new_DatabaseModifiedError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11391 SWIGINTERN PyObject *_wrap_new_DatabaseModifiedError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11392   PyObject *resultobj = 0;
11393   std::string *arg1 = 0 ;
11394   std::string *arg2 = 0 ;
11395   int arg3 ;
11396   int res1 = SWIG_OLDOBJ ;
11397   int res2 = SWIG_OLDOBJ ;
11398   int val3 ;
11399   int ecode3 = 0 ;
11400   Xapian::DatabaseModifiedError *result = 0 ;
11401 
11402   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
11403   {
11404     std::string *ptr = (std::string *)0;
11405     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11406     if (!SWIG_IsOK(res1)) {
11407       if (res1 == INT_MIN) SWIG_fail;
11408       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11409     }
11410     if (!ptr) {
11411       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11412     }
11413     arg1 = ptr;
11414   }
11415   {
11416     std::string *ptr = (std::string *)0;
11417     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
11418     if (!SWIG_IsOK(res2)) {
11419       if (res2 == INT_MIN) SWIG_fail;
11420       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "std::string const &""'");
11421     }
11422     if (!ptr) {
11423       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "std::string const &""'");
11424     }
11425     arg2 = ptr;
11426   }
11427   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
11428   if (!SWIG_IsOK(ecode3)) {
11429     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DatabaseModifiedError" "', argument " "3"" of type '" "int""'");
11430   }
11431   arg3 = static_cast< int >(val3);
11432   {
11433     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11434     result = (Xapian::DatabaseModifiedError *)new Xapian::DatabaseModifiedError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
11435     SWIG_PYTHON_THREAD_END_ALLOW;
11436   }
11437   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseModifiedError, SWIG_POINTER_NEW |  0 );
11438   if (SWIG_IsNewObj(res1)) delete arg1;
11439   if (SWIG_IsNewObj(res2)) delete arg2;
11440   return resultobj;
11441 fail:
11442   if (SWIG_IsNewObj(res1)) delete arg1;
11443   if (SWIG_IsNewObj(res2)) delete arg2;
11444   return NULL;
11445 }
11446 
11447 
_wrap_new_DatabaseModifiedError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11448 SWIGINTERN PyObject *_wrap_new_DatabaseModifiedError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11449   PyObject *resultobj = 0;
11450   std::string *arg1 = 0 ;
11451   std::string *arg2 = 0 ;
11452   int res1 = SWIG_OLDOBJ ;
11453   int res2 = SWIG_OLDOBJ ;
11454   Xapian::DatabaseModifiedError *result = 0 ;
11455 
11456   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
11457   {
11458     std::string *ptr = (std::string *)0;
11459     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11460     if (!SWIG_IsOK(res1)) {
11461       if (res1 == INT_MIN) SWIG_fail;
11462       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11463     }
11464     if (!ptr) {
11465       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11466     }
11467     arg1 = ptr;
11468   }
11469   {
11470     std::string *ptr = (std::string *)0;
11471     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
11472     if (!SWIG_IsOK(res2)) {
11473       if (res2 == INT_MIN) SWIG_fail;
11474       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "std::string const &""'");
11475     }
11476     if (!ptr) {
11477       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "std::string const &""'");
11478     }
11479     arg2 = ptr;
11480   }
11481   {
11482     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11483     result = (Xapian::DatabaseModifiedError *)new Xapian::DatabaseModifiedError((std::string const &)*arg1,(std::string const &)*arg2);
11484     SWIG_PYTHON_THREAD_END_ALLOW;
11485   }
11486   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseModifiedError, SWIG_POINTER_NEW |  0 );
11487   if (SWIG_IsNewObj(res1)) delete arg1;
11488   if (SWIG_IsNewObj(res2)) delete arg2;
11489   return resultobj;
11490 fail:
11491   if (SWIG_IsNewObj(res1)) delete arg1;
11492   if (SWIG_IsNewObj(res2)) delete arg2;
11493   return NULL;
11494 }
11495 
11496 
_wrap_new_DatabaseModifiedError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11497 SWIGINTERN PyObject *_wrap_new_DatabaseModifiedError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11498   PyObject *resultobj = 0;
11499   std::string *arg1 = 0 ;
11500   int res1 = SWIG_OLDOBJ ;
11501   Xapian::DatabaseModifiedError *result = 0 ;
11502 
11503   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
11504   {
11505     std::string *ptr = (std::string *)0;
11506     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11507     if (!SWIG_IsOK(res1)) {
11508       if (res1 == INT_MIN) SWIG_fail;
11509       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11510     }
11511     if (!ptr) {
11512       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11513     }
11514     arg1 = ptr;
11515   }
11516   {
11517     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11518     result = (Xapian::DatabaseModifiedError *)new Xapian::DatabaseModifiedError((std::string const &)*arg1);
11519     SWIG_PYTHON_THREAD_END_ALLOW;
11520   }
11521   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseModifiedError, SWIG_POINTER_NEW |  0 );
11522   if (SWIG_IsNewObj(res1)) delete arg1;
11523   return resultobj;
11524 fail:
11525   if (SWIG_IsNewObj(res1)) delete arg1;
11526   return NULL;
11527 }
11528 
11529 
_wrap_new_DatabaseModifiedError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11530 SWIGINTERN PyObject *_wrap_new_DatabaseModifiedError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11531   PyObject *resultobj = 0;
11532   std::string *arg1 = 0 ;
11533   int arg2 ;
11534   int res1 = SWIG_OLDOBJ ;
11535   int val2 ;
11536   int ecode2 = 0 ;
11537   Xapian::DatabaseModifiedError *result = 0 ;
11538 
11539   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
11540   {
11541     std::string *ptr = (std::string *)0;
11542     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11543     if (!SWIG_IsOK(res1)) {
11544       if (res1 == INT_MIN) SWIG_fail;
11545       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11546     }
11547     if (!ptr) {
11548       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseModifiedError" "', argument " "1"" of type '" "std::string const &""'");
11549     }
11550     arg1 = ptr;
11551   }
11552   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
11553   if (!SWIG_IsOK(ecode2)) {
11554     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatabaseModifiedError" "', argument " "2"" of type '" "int""'");
11555   }
11556   arg2 = static_cast< int >(val2);
11557   {
11558     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11559     result = (Xapian::DatabaseModifiedError *)new Xapian::DatabaseModifiedError((std::string const &)*arg1,arg2);
11560     SWIG_PYTHON_THREAD_END_ALLOW;
11561   }
11562   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseModifiedError, SWIG_POINTER_NEW |  0 );
11563   if (SWIG_IsNewObj(res1)) delete arg1;
11564   return resultobj;
11565 fail:
11566   if (SWIG_IsNewObj(res1)) delete arg1;
11567   return NULL;
11568 }
11569 
11570 
_wrap_new_DatabaseModifiedError(PyObject * self,PyObject * args)11571 SWIGINTERN PyObject *_wrap_new_DatabaseModifiedError(PyObject *self, PyObject *args) {
11572   Py_ssize_t argc;
11573   PyObject *argv[4] = {
11574     0
11575   };
11576 
11577   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseModifiedError",0,3,argv))) SWIG_fail;
11578   --argc;
11579   if (argc == 1) {
11580     return _wrap_new_DatabaseModifiedError__SWIG_3(self, argc, argv);
11581   }
11582   if (argc == 2) {
11583     int _v = 0;
11584     {
11585       {
11586         int res = SWIG_AsVal_int(argv[1], NULL);
11587         _v = SWIG_CheckState(res);
11588       }
11589     }
11590     if (!_v) goto check_2;
11591     return _wrap_new_DatabaseModifiedError__SWIG_4(self, argc, argv);
11592   }
11593 check_2:
11594 
11595   if (argc == 2) {
11596     return _wrap_new_DatabaseModifiedError__SWIG_2(self, argc, argv);
11597   }
11598   if (argc == 3) {
11599     int _v = 0;
11600     {
11601       {
11602         int res = SWIG_AsVal_int(argv[2], NULL);
11603         _v = SWIG_CheckState(res);
11604       }
11605     }
11606     if (!_v) goto check_4;
11607     return _wrap_new_DatabaseModifiedError__SWIG_1(self, argc, argv);
11608   }
11609 check_4:
11610 
11611   if (argc == 3) {
11612     return _wrap_new_DatabaseModifiedError__SWIG_0(self, argc, argv);
11613   }
11614 
11615 fail:
11616   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DatabaseModifiedError'.\n"
11617     "  Possible C/C++ prototypes are:\n"
11618     "    Xapian::DatabaseModifiedError::DatabaseModifiedError(std::string const &,std::string const &,char const *)\n"
11619     "    Xapian::DatabaseModifiedError::DatabaseModifiedError(std::string const &,std::string const &,int)\n"
11620     "    Xapian::DatabaseModifiedError::DatabaseModifiedError(std::string const &,std::string const &)\n"
11621     "    Xapian::DatabaseModifiedError::DatabaseModifiedError(std::string const &)\n"
11622     "    Xapian::DatabaseModifiedError::DatabaseModifiedError(std::string const &,int)\n");
11623   return 0;
11624 }
11625 
11626 
_wrap_delete_DatabaseModifiedError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11627 SWIGINTERN PyObject *_wrap_delete_DatabaseModifiedError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11628   PyObject *resultobj = 0;
11629   Xapian::DatabaseModifiedError *arg1 = (Xapian::DatabaseModifiedError *) 0 ;
11630   void *argp1 = 0 ;
11631   int res1 = 0 ;
11632   PyObject *swig_obj[1] ;
11633 
11634   if (!args) SWIG_fail;
11635   swig_obj[0] = args;
11636   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DatabaseModifiedError, SWIG_POINTER_DISOWN |  0 );
11637   if (!SWIG_IsOK(res1)) {
11638     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DatabaseModifiedError" "', argument " "1"" of type '" "Xapian::DatabaseModifiedError *""'");
11639   }
11640   arg1 = reinterpret_cast< Xapian::DatabaseModifiedError * >(argp1);
11641   {
11642     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11643     delete arg1;
11644     SWIG_PYTHON_THREAD_END_ALLOW;
11645   }
11646   resultobj = SWIG_Py_Void();
11647   return resultobj;
11648 fail:
11649   return NULL;
11650 }
11651 
11652 
DatabaseModifiedError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11653 SWIGINTERN PyObject *DatabaseModifiedError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11654   PyObject *obj;
11655   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
11656   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DatabaseModifiedError, SWIG_NewClientData(obj));
11657   return SWIG_Py_Void();
11658 }
11659 
DatabaseModifiedError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11660 SWIGINTERN PyObject *DatabaseModifiedError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11661   return SWIG_Python_InitShadowInstance(args);
11662 }
11663 
_wrap_new_DatabaseOpeningError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11664 SWIGINTERN PyObject *_wrap_new_DatabaseOpeningError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11665   PyObject *resultobj = 0;
11666   std::string *arg1 = 0 ;
11667   std::string *arg2 = 0 ;
11668   char *arg3 = (char *) 0 ;
11669   int res1 = SWIG_OLDOBJ ;
11670   int res2 = SWIG_OLDOBJ ;
11671   int res3 ;
11672   char *buf3 = 0 ;
11673   int alloc3 = 0 ;
11674   Xapian::DatabaseOpeningError *result = 0 ;
11675 
11676   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
11677   {
11678     std::string *ptr = (std::string *)0;
11679     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11680     if (!SWIG_IsOK(res1)) {
11681       if (res1 == INT_MIN) SWIG_fail;
11682       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11683     }
11684     if (!ptr) {
11685       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11686     }
11687     arg1 = ptr;
11688   }
11689   {
11690     std::string *ptr = (std::string *)0;
11691     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
11692     if (!SWIG_IsOK(res2)) {
11693       if (res2 == INT_MIN) SWIG_fail;
11694       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "std::string const &""'");
11695     }
11696     if (!ptr) {
11697       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "std::string const &""'");
11698     }
11699     arg2 = ptr;
11700   }
11701   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
11702   if (!SWIG_IsOK(res3)) {
11703     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatabaseOpeningError" "', argument " "3"" of type '" "char const *""'");
11704   }
11705   arg3 = reinterpret_cast< char * >(buf3);
11706   {
11707     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11708     result = (Xapian::DatabaseOpeningError *)new Xapian::DatabaseOpeningError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
11709     SWIG_PYTHON_THREAD_END_ALLOW;
11710   }
11711   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseOpeningError, SWIG_POINTER_NEW |  0 );
11712   if (SWIG_IsNewObj(res1)) delete arg1;
11713   if (SWIG_IsNewObj(res2)) delete arg2;
11714   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11715   return resultobj;
11716 fail:
11717   if (SWIG_IsNewObj(res1)) delete arg1;
11718   if (SWIG_IsNewObj(res2)) delete arg2;
11719   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11720   return NULL;
11721 }
11722 
11723 
_wrap_new_DatabaseOpeningError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11724 SWIGINTERN PyObject *_wrap_new_DatabaseOpeningError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11725   PyObject *resultobj = 0;
11726   std::string *arg1 = 0 ;
11727   std::string *arg2 = 0 ;
11728   int arg3 ;
11729   int res1 = SWIG_OLDOBJ ;
11730   int res2 = SWIG_OLDOBJ ;
11731   int val3 ;
11732   int ecode3 = 0 ;
11733   Xapian::DatabaseOpeningError *result = 0 ;
11734 
11735   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
11736   {
11737     std::string *ptr = (std::string *)0;
11738     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11739     if (!SWIG_IsOK(res1)) {
11740       if (res1 == INT_MIN) SWIG_fail;
11741       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11742     }
11743     if (!ptr) {
11744       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11745     }
11746     arg1 = ptr;
11747   }
11748   {
11749     std::string *ptr = (std::string *)0;
11750     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
11751     if (!SWIG_IsOK(res2)) {
11752       if (res2 == INT_MIN) SWIG_fail;
11753       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "std::string const &""'");
11754     }
11755     if (!ptr) {
11756       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "std::string const &""'");
11757     }
11758     arg2 = ptr;
11759   }
11760   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
11761   if (!SWIG_IsOK(ecode3)) {
11762     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DatabaseOpeningError" "', argument " "3"" of type '" "int""'");
11763   }
11764   arg3 = static_cast< int >(val3);
11765   {
11766     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11767     result = (Xapian::DatabaseOpeningError *)new Xapian::DatabaseOpeningError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
11768     SWIG_PYTHON_THREAD_END_ALLOW;
11769   }
11770   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseOpeningError, SWIG_POINTER_NEW |  0 );
11771   if (SWIG_IsNewObj(res1)) delete arg1;
11772   if (SWIG_IsNewObj(res2)) delete arg2;
11773   return resultobj;
11774 fail:
11775   if (SWIG_IsNewObj(res1)) delete arg1;
11776   if (SWIG_IsNewObj(res2)) delete arg2;
11777   return NULL;
11778 }
11779 
11780 
_wrap_new_DatabaseOpeningError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11781 SWIGINTERN PyObject *_wrap_new_DatabaseOpeningError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11782   PyObject *resultobj = 0;
11783   std::string *arg1 = 0 ;
11784   std::string *arg2 = 0 ;
11785   int res1 = SWIG_OLDOBJ ;
11786   int res2 = SWIG_OLDOBJ ;
11787   Xapian::DatabaseOpeningError *result = 0 ;
11788 
11789   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
11790   {
11791     std::string *ptr = (std::string *)0;
11792     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11793     if (!SWIG_IsOK(res1)) {
11794       if (res1 == INT_MIN) SWIG_fail;
11795       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11796     }
11797     if (!ptr) {
11798       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11799     }
11800     arg1 = ptr;
11801   }
11802   {
11803     std::string *ptr = (std::string *)0;
11804     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
11805     if (!SWIG_IsOK(res2)) {
11806       if (res2 == INT_MIN) SWIG_fail;
11807       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "std::string const &""'");
11808     }
11809     if (!ptr) {
11810       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "std::string const &""'");
11811     }
11812     arg2 = ptr;
11813   }
11814   {
11815     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11816     result = (Xapian::DatabaseOpeningError *)new Xapian::DatabaseOpeningError((std::string const &)*arg1,(std::string const &)*arg2);
11817     SWIG_PYTHON_THREAD_END_ALLOW;
11818   }
11819   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseOpeningError, SWIG_POINTER_NEW |  0 );
11820   if (SWIG_IsNewObj(res1)) delete arg1;
11821   if (SWIG_IsNewObj(res2)) delete arg2;
11822   return resultobj;
11823 fail:
11824   if (SWIG_IsNewObj(res1)) delete arg1;
11825   if (SWIG_IsNewObj(res2)) delete arg2;
11826   return NULL;
11827 }
11828 
11829 
_wrap_new_DatabaseOpeningError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11830 SWIGINTERN PyObject *_wrap_new_DatabaseOpeningError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11831   PyObject *resultobj = 0;
11832   std::string *arg1 = 0 ;
11833   int res1 = SWIG_OLDOBJ ;
11834   Xapian::DatabaseOpeningError *result = 0 ;
11835 
11836   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
11837   {
11838     std::string *ptr = (std::string *)0;
11839     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11840     if (!SWIG_IsOK(res1)) {
11841       if (res1 == INT_MIN) SWIG_fail;
11842       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11843     }
11844     if (!ptr) {
11845       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11846     }
11847     arg1 = ptr;
11848   }
11849   {
11850     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11851     result = (Xapian::DatabaseOpeningError *)new Xapian::DatabaseOpeningError((std::string const &)*arg1);
11852     SWIG_PYTHON_THREAD_END_ALLOW;
11853   }
11854   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseOpeningError, SWIG_POINTER_NEW |  0 );
11855   if (SWIG_IsNewObj(res1)) delete arg1;
11856   return resultobj;
11857 fail:
11858   if (SWIG_IsNewObj(res1)) delete arg1;
11859   return NULL;
11860 }
11861 
11862 
_wrap_new_DatabaseOpeningError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11863 SWIGINTERN PyObject *_wrap_new_DatabaseOpeningError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11864   PyObject *resultobj = 0;
11865   std::string *arg1 = 0 ;
11866   int arg2 ;
11867   int res1 = SWIG_OLDOBJ ;
11868   int val2 ;
11869   int ecode2 = 0 ;
11870   Xapian::DatabaseOpeningError *result = 0 ;
11871 
11872   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
11873   {
11874     std::string *ptr = (std::string *)0;
11875     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
11876     if (!SWIG_IsOK(res1)) {
11877       if (res1 == INT_MIN) SWIG_fail;
11878       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11879     }
11880     if (!ptr) {
11881       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseOpeningError" "', argument " "1"" of type '" "std::string const &""'");
11882     }
11883     arg1 = ptr;
11884   }
11885   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
11886   if (!SWIG_IsOK(ecode2)) {
11887     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatabaseOpeningError" "', argument " "2"" of type '" "int""'");
11888   }
11889   arg2 = static_cast< int >(val2);
11890   {
11891     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11892     result = (Xapian::DatabaseOpeningError *)new Xapian::DatabaseOpeningError((std::string const &)*arg1,arg2);
11893     SWIG_PYTHON_THREAD_END_ALLOW;
11894   }
11895   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseOpeningError, SWIG_POINTER_NEW |  0 );
11896   if (SWIG_IsNewObj(res1)) delete arg1;
11897   return resultobj;
11898 fail:
11899   if (SWIG_IsNewObj(res1)) delete arg1;
11900   return NULL;
11901 }
11902 
11903 
_wrap_new_DatabaseOpeningError(PyObject * self,PyObject * args)11904 SWIGINTERN PyObject *_wrap_new_DatabaseOpeningError(PyObject *self, PyObject *args) {
11905   Py_ssize_t argc;
11906   PyObject *argv[4] = {
11907     0
11908   };
11909 
11910   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseOpeningError",0,3,argv))) SWIG_fail;
11911   --argc;
11912   if (argc == 1) {
11913     return _wrap_new_DatabaseOpeningError__SWIG_3(self, argc, argv);
11914   }
11915   if (argc == 2) {
11916     int _v = 0;
11917     {
11918       {
11919         int res = SWIG_AsVal_int(argv[1], NULL);
11920         _v = SWIG_CheckState(res);
11921       }
11922     }
11923     if (!_v) goto check_2;
11924     return _wrap_new_DatabaseOpeningError__SWIG_4(self, argc, argv);
11925   }
11926 check_2:
11927 
11928   if (argc == 2) {
11929     return _wrap_new_DatabaseOpeningError__SWIG_2(self, argc, argv);
11930   }
11931   if (argc == 3) {
11932     int _v = 0;
11933     {
11934       {
11935         int res = SWIG_AsVal_int(argv[2], NULL);
11936         _v = SWIG_CheckState(res);
11937       }
11938     }
11939     if (!_v) goto check_4;
11940     return _wrap_new_DatabaseOpeningError__SWIG_1(self, argc, argv);
11941   }
11942 check_4:
11943 
11944   if (argc == 3) {
11945     return _wrap_new_DatabaseOpeningError__SWIG_0(self, argc, argv);
11946   }
11947 
11948 fail:
11949   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DatabaseOpeningError'.\n"
11950     "  Possible C/C++ prototypes are:\n"
11951     "    Xapian::DatabaseOpeningError::DatabaseOpeningError(std::string const &,std::string const &,char const *)\n"
11952     "    Xapian::DatabaseOpeningError::DatabaseOpeningError(std::string const &,std::string const &,int)\n"
11953     "    Xapian::DatabaseOpeningError::DatabaseOpeningError(std::string const &,std::string const &)\n"
11954     "    Xapian::DatabaseOpeningError::DatabaseOpeningError(std::string const &)\n"
11955     "    Xapian::DatabaseOpeningError::DatabaseOpeningError(std::string const &,int)\n");
11956   return 0;
11957 }
11958 
11959 
_wrap_delete_DatabaseOpeningError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11960 SWIGINTERN PyObject *_wrap_delete_DatabaseOpeningError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11961   PyObject *resultobj = 0;
11962   Xapian::DatabaseOpeningError *arg1 = (Xapian::DatabaseOpeningError *) 0 ;
11963   void *argp1 = 0 ;
11964   int res1 = 0 ;
11965   PyObject *swig_obj[1] ;
11966 
11967   if (!args) SWIG_fail;
11968   swig_obj[0] = args;
11969   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DatabaseOpeningError, SWIG_POINTER_DISOWN |  0 );
11970   if (!SWIG_IsOK(res1)) {
11971     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DatabaseOpeningError" "', argument " "1"" of type '" "Xapian::DatabaseOpeningError *""'");
11972   }
11973   arg1 = reinterpret_cast< Xapian::DatabaseOpeningError * >(argp1);
11974   {
11975     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11976     delete arg1;
11977     SWIG_PYTHON_THREAD_END_ALLOW;
11978   }
11979   resultobj = SWIG_Py_Void();
11980   return resultobj;
11981 fail:
11982   return NULL;
11983 }
11984 
11985 
DatabaseOpeningError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11986 SWIGINTERN PyObject *DatabaseOpeningError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11987   PyObject *obj;
11988   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
11989   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DatabaseOpeningError, SWIG_NewClientData(obj));
11990   return SWIG_Py_Void();
11991 }
11992 
DatabaseOpeningError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11993 SWIGINTERN PyObject *DatabaseOpeningError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11994   return SWIG_Python_InitShadowInstance(args);
11995 }
11996 
_wrap_new_DatabaseVersionError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)11997 SWIGINTERN PyObject *_wrap_new_DatabaseVersionError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11998   PyObject *resultobj = 0;
11999   std::string *arg1 = 0 ;
12000   std::string *arg2 = 0 ;
12001   char *arg3 = (char *) 0 ;
12002   int res1 = SWIG_OLDOBJ ;
12003   int res2 = SWIG_OLDOBJ ;
12004   int res3 ;
12005   char *buf3 = 0 ;
12006   int alloc3 = 0 ;
12007   Xapian::DatabaseVersionError *result = 0 ;
12008 
12009   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
12010   {
12011     std::string *ptr = (std::string *)0;
12012     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12013     if (!SWIG_IsOK(res1)) {
12014       if (res1 == INT_MIN) SWIG_fail;
12015       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'");
12016     }
12017     if (!ptr) {
12018       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'");
12019     }
12020     arg1 = ptr;
12021   }
12022   {
12023     std::string *ptr = (std::string *)0;
12024     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
12025     if (!SWIG_IsOK(res2)) {
12026       if (res2 == INT_MIN) SWIG_fail;
12027       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "std::string const &""'");
12028     }
12029     if (!ptr) {
12030       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "std::string const &""'");
12031     }
12032     arg2 = ptr;
12033   }
12034   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
12035   if (!SWIG_IsOK(res3)) {
12036     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatabaseVersionError" "', argument " "3"" of type '" "char const *""'");
12037   }
12038   arg3 = reinterpret_cast< char * >(buf3);
12039   {
12040     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12041     result = (Xapian::DatabaseVersionError *)new Xapian::DatabaseVersionError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
12042     SWIG_PYTHON_THREAD_END_ALLOW;
12043   }
12044   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseVersionError, SWIG_POINTER_NEW |  0 );
12045   if (SWIG_IsNewObj(res1)) delete arg1;
12046   if (SWIG_IsNewObj(res2)) delete arg2;
12047   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
12048   return resultobj;
12049 fail:
12050   if (SWIG_IsNewObj(res1)) delete arg1;
12051   if (SWIG_IsNewObj(res2)) delete arg2;
12052   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
12053   return NULL;
12054 }
12055 
12056 
_wrap_new_DatabaseVersionError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12057 SWIGINTERN PyObject *_wrap_new_DatabaseVersionError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12058   PyObject *resultobj = 0;
12059   std::string *arg1 = 0 ;
12060   std::string *arg2 = 0 ;
12061   int arg3 ;
12062   int res1 = SWIG_OLDOBJ ;
12063   int res2 = SWIG_OLDOBJ ;
12064   int val3 ;
12065   int ecode3 = 0 ;
12066   Xapian::DatabaseVersionError *result = 0 ;
12067 
12068   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
12069   {
12070     std::string *ptr = (std::string *)0;
12071     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12072     if (!SWIG_IsOK(res1)) {
12073       if (res1 == INT_MIN) SWIG_fail;
12074       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'");
12075     }
12076     if (!ptr) {
12077       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'");
12078     }
12079     arg1 = ptr;
12080   }
12081   {
12082     std::string *ptr = (std::string *)0;
12083     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
12084     if (!SWIG_IsOK(res2)) {
12085       if (res2 == INT_MIN) SWIG_fail;
12086       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "std::string const &""'");
12087     }
12088     if (!ptr) {
12089       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "std::string const &""'");
12090     }
12091     arg2 = ptr;
12092   }
12093   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
12094   if (!SWIG_IsOK(ecode3)) {
12095     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DatabaseVersionError" "', argument " "3"" of type '" "int""'");
12096   }
12097   arg3 = static_cast< int >(val3);
12098   {
12099     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12100     result = (Xapian::DatabaseVersionError *)new Xapian::DatabaseVersionError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
12101     SWIG_PYTHON_THREAD_END_ALLOW;
12102   }
12103   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseVersionError, SWIG_POINTER_NEW |  0 );
12104   if (SWIG_IsNewObj(res1)) delete arg1;
12105   if (SWIG_IsNewObj(res2)) delete arg2;
12106   return resultobj;
12107 fail:
12108   if (SWIG_IsNewObj(res1)) delete arg1;
12109   if (SWIG_IsNewObj(res2)) delete arg2;
12110   return NULL;
12111 }
12112 
12113 
_wrap_new_DatabaseVersionError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12114 SWIGINTERN PyObject *_wrap_new_DatabaseVersionError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12115   PyObject *resultobj = 0;
12116   std::string *arg1 = 0 ;
12117   std::string *arg2 = 0 ;
12118   int res1 = SWIG_OLDOBJ ;
12119   int res2 = SWIG_OLDOBJ ;
12120   Xapian::DatabaseVersionError *result = 0 ;
12121 
12122   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
12123   {
12124     std::string *ptr = (std::string *)0;
12125     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12126     if (!SWIG_IsOK(res1)) {
12127       if (res1 == INT_MIN) SWIG_fail;
12128       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'");
12129     }
12130     if (!ptr) {
12131       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'");
12132     }
12133     arg1 = ptr;
12134   }
12135   {
12136     std::string *ptr = (std::string *)0;
12137     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
12138     if (!SWIG_IsOK(res2)) {
12139       if (res2 == INT_MIN) SWIG_fail;
12140       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "std::string const &""'");
12141     }
12142     if (!ptr) {
12143       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "std::string const &""'");
12144     }
12145     arg2 = ptr;
12146   }
12147   {
12148     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12149     result = (Xapian::DatabaseVersionError *)new Xapian::DatabaseVersionError((std::string const &)*arg1,(std::string const &)*arg2);
12150     SWIG_PYTHON_THREAD_END_ALLOW;
12151   }
12152   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseVersionError, SWIG_POINTER_NEW |  0 );
12153   if (SWIG_IsNewObj(res1)) delete arg1;
12154   if (SWIG_IsNewObj(res2)) delete arg2;
12155   return resultobj;
12156 fail:
12157   if (SWIG_IsNewObj(res1)) delete arg1;
12158   if (SWIG_IsNewObj(res2)) delete arg2;
12159   return NULL;
12160 }
12161 
12162 
_wrap_new_DatabaseVersionError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12163 SWIGINTERN PyObject *_wrap_new_DatabaseVersionError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12164   PyObject *resultobj = 0;
12165   std::string *arg1 = 0 ;
12166   int res1 = SWIG_OLDOBJ ;
12167   Xapian::DatabaseVersionError *result = 0 ;
12168 
12169   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
12170   {
12171     std::string *ptr = (std::string *)0;
12172     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12173     if (!SWIG_IsOK(res1)) {
12174       if (res1 == INT_MIN) SWIG_fail;
12175       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'");
12176     }
12177     if (!ptr) {
12178       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'");
12179     }
12180     arg1 = ptr;
12181   }
12182   {
12183     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12184     result = (Xapian::DatabaseVersionError *)new Xapian::DatabaseVersionError((std::string const &)*arg1);
12185     SWIG_PYTHON_THREAD_END_ALLOW;
12186   }
12187   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseVersionError, SWIG_POINTER_NEW |  0 );
12188   if (SWIG_IsNewObj(res1)) delete arg1;
12189   return resultobj;
12190 fail:
12191   if (SWIG_IsNewObj(res1)) delete arg1;
12192   return NULL;
12193 }
12194 
12195 
_wrap_new_DatabaseVersionError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12196 SWIGINTERN PyObject *_wrap_new_DatabaseVersionError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12197   PyObject *resultobj = 0;
12198   std::string *arg1 = 0 ;
12199   int arg2 ;
12200   int res1 = SWIG_OLDOBJ ;
12201   int val2 ;
12202   int ecode2 = 0 ;
12203   Xapian::DatabaseVersionError *result = 0 ;
12204 
12205   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
12206   {
12207     std::string *ptr = (std::string *)0;
12208     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12209     if (!SWIG_IsOK(res1)) {
12210       if (res1 == INT_MIN) SWIG_fail;
12211       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'");
12212     }
12213     if (!ptr) {
12214       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseVersionError" "', argument " "1"" of type '" "std::string const &""'");
12215     }
12216     arg1 = ptr;
12217   }
12218   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12219   if (!SWIG_IsOK(ecode2)) {
12220     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatabaseVersionError" "', argument " "2"" of type '" "int""'");
12221   }
12222   arg2 = static_cast< int >(val2);
12223   {
12224     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12225     result = (Xapian::DatabaseVersionError *)new Xapian::DatabaseVersionError((std::string const &)*arg1,arg2);
12226     SWIG_PYTHON_THREAD_END_ALLOW;
12227   }
12228   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseVersionError, SWIG_POINTER_NEW |  0 );
12229   if (SWIG_IsNewObj(res1)) delete arg1;
12230   return resultobj;
12231 fail:
12232   if (SWIG_IsNewObj(res1)) delete arg1;
12233   return NULL;
12234 }
12235 
12236 
_wrap_new_DatabaseVersionError(PyObject * self,PyObject * args)12237 SWIGINTERN PyObject *_wrap_new_DatabaseVersionError(PyObject *self, PyObject *args) {
12238   Py_ssize_t argc;
12239   PyObject *argv[4] = {
12240     0
12241   };
12242 
12243   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseVersionError",0,3,argv))) SWIG_fail;
12244   --argc;
12245   if (argc == 1) {
12246     return _wrap_new_DatabaseVersionError__SWIG_3(self, argc, argv);
12247   }
12248   if (argc == 2) {
12249     int _v = 0;
12250     {
12251       {
12252         int res = SWIG_AsVal_int(argv[1], NULL);
12253         _v = SWIG_CheckState(res);
12254       }
12255     }
12256     if (!_v) goto check_2;
12257     return _wrap_new_DatabaseVersionError__SWIG_4(self, argc, argv);
12258   }
12259 check_2:
12260 
12261   if (argc == 2) {
12262     return _wrap_new_DatabaseVersionError__SWIG_2(self, argc, argv);
12263   }
12264   if (argc == 3) {
12265     int _v = 0;
12266     {
12267       {
12268         int res = SWIG_AsVal_int(argv[2], NULL);
12269         _v = SWIG_CheckState(res);
12270       }
12271     }
12272     if (!_v) goto check_4;
12273     return _wrap_new_DatabaseVersionError__SWIG_1(self, argc, argv);
12274   }
12275 check_4:
12276 
12277   if (argc == 3) {
12278     return _wrap_new_DatabaseVersionError__SWIG_0(self, argc, argv);
12279   }
12280 
12281 fail:
12282   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DatabaseVersionError'.\n"
12283     "  Possible C/C++ prototypes are:\n"
12284     "    Xapian::DatabaseVersionError::DatabaseVersionError(std::string const &,std::string const &,char const *)\n"
12285     "    Xapian::DatabaseVersionError::DatabaseVersionError(std::string const &,std::string const &,int)\n"
12286     "    Xapian::DatabaseVersionError::DatabaseVersionError(std::string const &,std::string const &)\n"
12287     "    Xapian::DatabaseVersionError::DatabaseVersionError(std::string const &)\n"
12288     "    Xapian::DatabaseVersionError::DatabaseVersionError(std::string const &,int)\n");
12289   return 0;
12290 }
12291 
12292 
_wrap_delete_DatabaseVersionError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12293 SWIGINTERN PyObject *_wrap_delete_DatabaseVersionError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12294   PyObject *resultobj = 0;
12295   Xapian::DatabaseVersionError *arg1 = (Xapian::DatabaseVersionError *) 0 ;
12296   void *argp1 = 0 ;
12297   int res1 = 0 ;
12298   PyObject *swig_obj[1] ;
12299 
12300   if (!args) SWIG_fail;
12301   swig_obj[0] = args;
12302   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DatabaseVersionError, SWIG_POINTER_DISOWN |  0 );
12303   if (!SWIG_IsOK(res1)) {
12304     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DatabaseVersionError" "', argument " "1"" of type '" "Xapian::DatabaseVersionError *""'");
12305   }
12306   arg1 = reinterpret_cast< Xapian::DatabaseVersionError * >(argp1);
12307   {
12308     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12309     delete arg1;
12310     SWIG_PYTHON_THREAD_END_ALLOW;
12311   }
12312   resultobj = SWIG_Py_Void();
12313   return resultobj;
12314 fail:
12315   return NULL;
12316 }
12317 
12318 
DatabaseVersionError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12319 SWIGINTERN PyObject *DatabaseVersionError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12320   PyObject *obj;
12321   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
12322   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DatabaseVersionError, SWIG_NewClientData(obj));
12323   return SWIG_Py_Void();
12324 }
12325 
DatabaseVersionError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12326 SWIGINTERN PyObject *DatabaseVersionError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12327   return SWIG_Python_InitShadowInstance(args);
12328 }
12329 
_wrap_new_DocNotFoundError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12330 SWIGINTERN PyObject *_wrap_new_DocNotFoundError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12331   PyObject *resultobj = 0;
12332   std::string *arg1 = 0 ;
12333   std::string *arg2 = 0 ;
12334   char *arg3 = (char *) 0 ;
12335   int res1 = SWIG_OLDOBJ ;
12336   int res2 = SWIG_OLDOBJ ;
12337   int res3 ;
12338   char *buf3 = 0 ;
12339   int alloc3 = 0 ;
12340   Xapian::DocNotFoundError *result = 0 ;
12341 
12342   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
12343   {
12344     std::string *ptr = (std::string *)0;
12345     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12346     if (!SWIG_IsOK(res1)) {
12347       if (res1 == INT_MIN) SWIG_fail;
12348       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12349     }
12350     if (!ptr) {
12351       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12352     }
12353     arg1 = ptr;
12354   }
12355   {
12356     std::string *ptr = (std::string *)0;
12357     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
12358     if (!SWIG_IsOK(res2)) {
12359       if (res2 == INT_MIN) SWIG_fail;
12360       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
12361     }
12362     if (!ptr) {
12363       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
12364     }
12365     arg2 = ptr;
12366   }
12367   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
12368   if (!SWIG_IsOK(res3)) {
12369     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DocNotFoundError" "', argument " "3"" of type '" "char const *""'");
12370   }
12371   arg3 = reinterpret_cast< char * >(buf3);
12372   {
12373     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12374     result = (Xapian::DocNotFoundError *)new Xapian::DocNotFoundError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
12375     SWIG_PYTHON_THREAD_END_ALLOW;
12376   }
12377   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DocNotFoundError, SWIG_POINTER_NEW |  0 );
12378   if (SWIG_IsNewObj(res1)) delete arg1;
12379   if (SWIG_IsNewObj(res2)) delete arg2;
12380   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
12381   return resultobj;
12382 fail:
12383   if (SWIG_IsNewObj(res1)) delete arg1;
12384   if (SWIG_IsNewObj(res2)) delete arg2;
12385   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
12386   return NULL;
12387 }
12388 
12389 
_wrap_new_DocNotFoundError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12390 SWIGINTERN PyObject *_wrap_new_DocNotFoundError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12391   PyObject *resultobj = 0;
12392   std::string *arg1 = 0 ;
12393   std::string *arg2 = 0 ;
12394   int arg3 ;
12395   int res1 = SWIG_OLDOBJ ;
12396   int res2 = SWIG_OLDOBJ ;
12397   int val3 ;
12398   int ecode3 = 0 ;
12399   Xapian::DocNotFoundError *result = 0 ;
12400 
12401   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
12402   {
12403     std::string *ptr = (std::string *)0;
12404     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12405     if (!SWIG_IsOK(res1)) {
12406       if (res1 == INT_MIN) SWIG_fail;
12407       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12408     }
12409     if (!ptr) {
12410       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12411     }
12412     arg1 = ptr;
12413   }
12414   {
12415     std::string *ptr = (std::string *)0;
12416     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
12417     if (!SWIG_IsOK(res2)) {
12418       if (res2 == INT_MIN) SWIG_fail;
12419       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
12420     }
12421     if (!ptr) {
12422       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
12423     }
12424     arg2 = ptr;
12425   }
12426   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
12427   if (!SWIG_IsOK(ecode3)) {
12428     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DocNotFoundError" "', argument " "3"" of type '" "int""'");
12429   }
12430   arg3 = static_cast< int >(val3);
12431   {
12432     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12433     result = (Xapian::DocNotFoundError *)new Xapian::DocNotFoundError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
12434     SWIG_PYTHON_THREAD_END_ALLOW;
12435   }
12436   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DocNotFoundError, SWIG_POINTER_NEW |  0 );
12437   if (SWIG_IsNewObj(res1)) delete arg1;
12438   if (SWIG_IsNewObj(res2)) delete arg2;
12439   return resultobj;
12440 fail:
12441   if (SWIG_IsNewObj(res1)) delete arg1;
12442   if (SWIG_IsNewObj(res2)) delete arg2;
12443   return NULL;
12444 }
12445 
12446 
_wrap_new_DocNotFoundError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12447 SWIGINTERN PyObject *_wrap_new_DocNotFoundError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12448   PyObject *resultobj = 0;
12449   std::string *arg1 = 0 ;
12450   std::string *arg2 = 0 ;
12451   int res1 = SWIG_OLDOBJ ;
12452   int res2 = SWIG_OLDOBJ ;
12453   Xapian::DocNotFoundError *result = 0 ;
12454 
12455   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
12456   {
12457     std::string *ptr = (std::string *)0;
12458     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12459     if (!SWIG_IsOK(res1)) {
12460       if (res1 == INT_MIN) SWIG_fail;
12461       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12462     }
12463     if (!ptr) {
12464       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12465     }
12466     arg1 = ptr;
12467   }
12468   {
12469     std::string *ptr = (std::string *)0;
12470     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
12471     if (!SWIG_IsOK(res2)) {
12472       if (res2 == INT_MIN) SWIG_fail;
12473       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
12474     }
12475     if (!ptr) {
12476       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
12477     }
12478     arg2 = ptr;
12479   }
12480   {
12481     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12482     result = (Xapian::DocNotFoundError *)new Xapian::DocNotFoundError((std::string const &)*arg1,(std::string const &)*arg2);
12483     SWIG_PYTHON_THREAD_END_ALLOW;
12484   }
12485   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DocNotFoundError, SWIG_POINTER_NEW |  0 );
12486   if (SWIG_IsNewObj(res1)) delete arg1;
12487   if (SWIG_IsNewObj(res2)) delete arg2;
12488   return resultobj;
12489 fail:
12490   if (SWIG_IsNewObj(res1)) delete arg1;
12491   if (SWIG_IsNewObj(res2)) delete arg2;
12492   return NULL;
12493 }
12494 
12495 
_wrap_new_DocNotFoundError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12496 SWIGINTERN PyObject *_wrap_new_DocNotFoundError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12497   PyObject *resultobj = 0;
12498   std::string *arg1 = 0 ;
12499   int res1 = SWIG_OLDOBJ ;
12500   Xapian::DocNotFoundError *result = 0 ;
12501 
12502   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
12503   {
12504     std::string *ptr = (std::string *)0;
12505     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12506     if (!SWIG_IsOK(res1)) {
12507       if (res1 == INT_MIN) SWIG_fail;
12508       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12509     }
12510     if (!ptr) {
12511       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12512     }
12513     arg1 = ptr;
12514   }
12515   {
12516     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12517     result = (Xapian::DocNotFoundError *)new Xapian::DocNotFoundError((std::string const &)*arg1);
12518     SWIG_PYTHON_THREAD_END_ALLOW;
12519   }
12520   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DocNotFoundError, SWIG_POINTER_NEW |  0 );
12521   if (SWIG_IsNewObj(res1)) delete arg1;
12522   return resultobj;
12523 fail:
12524   if (SWIG_IsNewObj(res1)) delete arg1;
12525   return NULL;
12526 }
12527 
12528 
_wrap_new_DocNotFoundError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12529 SWIGINTERN PyObject *_wrap_new_DocNotFoundError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12530   PyObject *resultobj = 0;
12531   std::string *arg1 = 0 ;
12532   int arg2 ;
12533   int res1 = SWIG_OLDOBJ ;
12534   int val2 ;
12535   int ecode2 = 0 ;
12536   Xapian::DocNotFoundError *result = 0 ;
12537 
12538   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
12539   {
12540     std::string *ptr = (std::string *)0;
12541     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12542     if (!SWIG_IsOK(res1)) {
12543       if (res1 == INT_MIN) SWIG_fail;
12544       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12545     }
12546     if (!ptr) {
12547       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DocNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
12548     }
12549     arg1 = ptr;
12550   }
12551   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12552   if (!SWIG_IsOK(ecode2)) {
12553     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DocNotFoundError" "', argument " "2"" of type '" "int""'");
12554   }
12555   arg2 = static_cast< int >(val2);
12556   {
12557     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12558     result = (Xapian::DocNotFoundError *)new Xapian::DocNotFoundError((std::string const &)*arg1,arg2);
12559     SWIG_PYTHON_THREAD_END_ALLOW;
12560   }
12561   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DocNotFoundError, SWIG_POINTER_NEW |  0 );
12562   if (SWIG_IsNewObj(res1)) delete arg1;
12563   return resultobj;
12564 fail:
12565   if (SWIG_IsNewObj(res1)) delete arg1;
12566   return NULL;
12567 }
12568 
12569 
_wrap_new_DocNotFoundError(PyObject * self,PyObject * args)12570 SWIGINTERN PyObject *_wrap_new_DocNotFoundError(PyObject *self, PyObject *args) {
12571   Py_ssize_t argc;
12572   PyObject *argv[4] = {
12573     0
12574   };
12575 
12576   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DocNotFoundError",0,3,argv))) SWIG_fail;
12577   --argc;
12578   if (argc == 1) {
12579     return _wrap_new_DocNotFoundError__SWIG_3(self, argc, argv);
12580   }
12581   if (argc == 2) {
12582     int _v = 0;
12583     {
12584       {
12585         int res = SWIG_AsVal_int(argv[1], NULL);
12586         _v = SWIG_CheckState(res);
12587       }
12588     }
12589     if (!_v) goto check_2;
12590     return _wrap_new_DocNotFoundError__SWIG_4(self, argc, argv);
12591   }
12592 check_2:
12593 
12594   if (argc == 2) {
12595     return _wrap_new_DocNotFoundError__SWIG_2(self, argc, argv);
12596   }
12597   if (argc == 3) {
12598     int _v = 0;
12599     {
12600       {
12601         int res = SWIG_AsVal_int(argv[2], NULL);
12602         _v = SWIG_CheckState(res);
12603       }
12604     }
12605     if (!_v) goto check_4;
12606     return _wrap_new_DocNotFoundError__SWIG_1(self, argc, argv);
12607   }
12608 check_4:
12609 
12610   if (argc == 3) {
12611     return _wrap_new_DocNotFoundError__SWIG_0(self, argc, argv);
12612   }
12613 
12614 fail:
12615   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DocNotFoundError'.\n"
12616     "  Possible C/C++ prototypes are:\n"
12617     "    Xapian::DocNotFoundError::DocNotFoundError(std::string const &,std::string const &,char const *)\n"
12618     "    Xapian::DocNotFoundError::DocNotFoundError(std::string const &,std::string const &,int)\n"
12619     "    Xapian::DocNotFoundError::DocNotFoundError(std::string const &,std::string const &)\n"
12620     "    Xapian::DocNotFoundError::DocNotFoundError(std::string const &)\n"
12621     "    Xapian::DocNotFoundError::DocNotFoundError(std::string const &,int)\n");
12622   return 0;
12623 }
12624 
12625 
_wrap_delete_DocNotFoundError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12626 SWIGINTERN PyObject *_wrap_delete_DocNotFoundError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12627   PyObject *resultobj = 0;
12628   Xapian::DocNotFoundError *arg1 = (Xapian::DocNotFoundError *) 0 ;
12629   void *argp1 = 0 ;
12630   int res1 = 0 ;
12631   PyObject *swig_obj[1] ;
12632 
12633   if (!args) SWIG_fail;
12634   swig_obj[0] = args;
12635   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DocNotFoundError, SWIG_POINTER_DISOWN |  0 );
12636   if (!SWIG_IsOK(res1)) {
12637     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DocNotFoundError" "', argument " "1"" of type '" "Xapian::DocNotFoundError *""'");
12638   }
12639   arg1 = reinterpret_cast< Xapian::DocNotFoundError * >(argp1);
12640   {
12641     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12642     delete arg1;
12643     SWIG_PYTHON_THREAD_END_ALLOW;
12644   }
12645   resultobj = SWIG_Py_Void();
12646   return resultobj;
12647 fail:
12648   return NULL;
12649 }
12650 
12651 
DocNotFoundError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12652 SWIGINTERN PyObject *DocNotFoundError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12653   PyObject *obj;
12654   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
12655   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DocNotFoundError, SWIG_NewClientData(obj));
12656   return SWIG_Py_Void();
12657 }
12658 
DocNotFoundError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12659 SWIGINTERN PyObject *DocNotFoundError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12660   return SWIG_Python_InitShadowInstance(args);
12661 }
12662 
_wrap_new_FeatureUnavailableError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12663 SWIGINTERN PyObject *_wrap_new_FeatureUnavailableError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12664   PyObject *resultobj = 0;
12665   std::string *arg1 = 0 ;
12666   std::string *arg2 = 0 ;
12667   char *arg3 = (char *) 0 ;
12668   int res1 = SWIG_OLDOBJ ;
12669   int res2 = SWIG_OLDOBJ ;
12670   int res3 ;
12671   char *buf3 = 0 ;
12672   int alloc3 = 0 ;
12673   Xapian::FeatureUnavailableError *result = 0 ;
12674 
12675   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
12676   {
12677     std::string *ptr = (std::string *)0;
12678     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12679     if (!SWIG_IsOK(res1)) {
12680       if (res1 == INT_MIN) SWIG_fail;
12681       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12682     }
12683     if (!ptr) {
12684       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12685     }
12686     arg1 = ptr;
12687   }
12688   {
12689     std::string *ptr = (std::string *)0;
12690     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
12691     if (!SWIG_IsOK(res2)) {
12692       if (res2 == INT_MIN) SWIG_fail;
12693       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "std::string const &""'");
12694     }
12695     if (!ptr) {
12696       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "std::string const &""'");
12697     }
12698     arg2 = ptr;
12699   }
12700   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
12701   if (!SWIG_IsOK(res3)) {
12702     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FeatureUnavailableError" "', argument " "3"" of type '" "char const *""'");
12703   }
12704   arg3 = reinterpret_cast< char * >(buf3);
12705   {
12706     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12707     result = (Xapian::FeatureUnavailableError *)new Xapian::FeatureUnavailableError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
12708     SWIG_PYTHON_THREAD_END_ALLOW;
12709   }
12710   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__FeatureUnavailableError, SWIG_POINTER_NEW |  0 );
12711   if (SWIG_IsNewObj(res1)) delete arg1;
12712   if (SWIG_IsNewObj(res2)) delete arg2;
12713   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
12714   return resultobj;
12715 fail:
12716   if (SWIG_IsNewObj(res1)) delete arg1;
12717   if (SWIG_IsNewObj(res2)) delete arg2;
12718   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
12719   return NULL;
12720 }
12721 
12722 
_wrap_new_FeatureUnavailableError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12723 SWIGINTERN PyObject *_wrap_new_FeatureUnavailableError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12724   PyObject *resultobj = 0;
12725   std::string *arg1 = 0 ;
12726   std::string *arg2 = 0 ;
12727   int arg3 ;
12728   int res1 = SWIG_OLDOBJ ;
12729   int res2 = SWIG_OLDOBJ ;
12730   int val3 ;
12731   int ecode3 = 0 ;
12732   Xapian::FeatureUnavailableError *result = 0 ;
12733 
12734   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
12735   {
12736     std::string *ptr = (std::string *)0;
12737     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12738     if (!SWIG_IsOK(res1)) {
12739       if (res1 == INT_MIN) SWIG_fail;
12740       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12741     }
12742     if (!ptr) {
12743       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12744     }
12745     arg1 = ptr;
12746   }
12747   {
12748     std::string *ptr = (std::string *)0;
12749     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
12750     if (!SWIG_IsOK(res2)) {
12751       if (res2 == INT_MIN) SWIG_fail;
12752       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "std::string const &""'");
12753     }
12754     if (!ptr) {
12755       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "std::string const &""'");
12756     }
12757     arg2 = ptr;
12758   }
12759   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
12760   if (!SWIG_IsOK(ecode3)) {
12761     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FeatureUnavailableError" "', argument " "3"" of type '" "int""'");
12762   }
12763   arg3 = static_cast< int >(val3);
12764   {
12765     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12766     result = (Xapian::FeatureUnavailableError *)new Xapian::FeatureUnavailableError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
12767     SWIG_PYTHON_THREAD_END_ALLOW;
12768   }
12769   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__FeatureUnavailableError, SWIG_POINTER_NEW |  0 );
12770   if (SWIG_IsNewObj(res1)) delete arg1;
12771   if (SWIG_IsNewObj(res2)) delete arg2;
12772   return resultobj;
12773 fail:
12774   if (SWIG_IsNewObj(res1)) delete arg1;
12775   if (SWIG_IsNewObj(res2)) delete arg2;
12776   return NULL;
12777 }
12778 
12779 
_wrap_new_FeatureUnavailableError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12780 SWIGINTERN PyObject *_wrap_new_FeatureUnavailableError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12781   PyObject *resultobj = 0;
12782   std::string *arg1 = 0 ;
12783   std::string *arg2 = 0 ;
12784   int res1 = SWIG_OLDOBJ ;
12785   int res2 = SWIG_OLDOBJ ;
12786   Xapian::FeatureUnavailableError *result = 0 ;
12787 
12788   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
12789   {
12790     std::string *ptr = (std::string *)0;
12791     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12792     if (!SWIG_IsOK(res1)) {
12793       if (res1 == INT_MIN) SWIG_fail;
12794       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12795     }
12796     if (!ptr) {
12797       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12798     }
12799     arg1 = ptr;
12800   }
12801   {
12802     std::string *ptr = (std::string *)0;
12803     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
12804     if (!SWIG_IsOK(res2)) {
12805       if (res2 == INT_MIN) SWIG_fail;
12806       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "std::string const &""'");
12807     }
12808     if (!ptr) {
12809       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "std::string const &""'");
12810     }
12811     arg2 = ptr;
12812   }
12813   {
12814     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12815     result = (Xapian::FeatureUnavailableError *)new Xapian::FeatureUnavailableError((std::string const &)*arg1,(std::string const &)*arg2);
12816     SWIG_PYTHON_THREAD_END_ALLOW;
12817   }
12818   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__FeatureUnavailableError, SWIG_POINTER_NEW |  0 );
12819   if (SWIG_IsNewObj(res1)) delete arg1;
12820   if (SWIG_IsNewObj(res2)) delete arg2;
12821   return resultobj;
12822 fail:
12823   if (SWIG_IsNewObj(res1)) delete arg1;
12824   if (SWIG_IsNewObj(res2)) delete arg2;
12825   return NULL;
12826 }
12827 
12828 
_wrap_new_FeatureUnavailableError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12829 SWIGINTERN PyObject *_wrap_new_FeatureUnavailableError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12830   PyObject *resultobj = 0;
12831   std::string *arg1 = 0 ;
12832   int res1 = SWIG_OLDOBJ ;
12833   Xapian::FeatureUnavailableError *result = 0 ;
12834 
12835   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
12836   {
12837     std::string *ptr = (std::string *)0;
12838     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12839     if (!SWIG_IsOK(res1)) {
12840       if (res1 == INT_MIN) SWIG_fail;
12841       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12842     }
12843     if (!ptr) {
12844       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12845     }
12846     arg1 = ptr;
12847   }
12848   {
12849     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12850     result = (Xapian::FeatureUnavailableError *)new Xapian::FeatureUnavailableError((std::string const &)*arg1);
12851     SWIG_PYTHON_THREAD_END_ALLOW;
12852   }
12853   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__FeatureUnavailableError, SWIG_POINTER_NEW |  0 );
12854   if (SWIG_IsNewObj(res1)) delete arg1;
12855   return resultobj;
12856 fail:
12857   if (SWIG_IsNewObj(res1)) delete arg1;
12858   return NULL;
12859 }
12860 
12861 
_wrap_new_FeatureUnavailableError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12862 SWIGINTERN PyObject *_wrap_new_FeatureUnavailableError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12863   PyObject *resultobj = 0;
12864   std::string *arg1 = 0 ;
12865   int arg2 ;
12866   int res1 = SWIG_OLDOBJ ;
12867   int val2 ;
12868   int ecode2 = 0 ;
12869   Xapian::FeatureUnavailableError *result = 0 ;
12870 
12871   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
12872   {
12873     std::string *ptr = (std::string *)0;
12874     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
12875     if (!SWIG_IsOK(res1)) {
12876       if (res1 == INT_MIN) SWIG_fail;
12877       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12878     }
12879     if (!ptr) {
12880       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FeatureUnavailableError" "', argument " "1"" of type '" "std::string const &""'");
12881     }
12882     arg1 = ptr;
12883   }
12884   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12885   if (!SWIG_IsOK(ecode2)) {
12886     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FeatureUnavailableError" "', argument " "2"" of type '" "int""'");
12887   }
12888   arg2 = static_cast< int >(val2);
12889   {
12890     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12891     result = (Xapian::FeatureUnavailableError *)new Xapian::FeatureUnavailableError((std::string const &)*arg1,arg2);
12892     SWIG_PYTHON_THREAD_END_ALLOW;
12893   }
12894   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__FeatureUnavailableError, SWIG_POINTER_NEW |  0 );
12895   if (SWIG_IsNewObj(res1)) delete arg1;
12896   return resultobj;
12897 fail:
12898   if (SWIG_IsNewObj(res1)) delete arg1;
12899   return NULL;
12900 }
12901 
12902 
_wrap_new_FeatureUnavailableError(PyObject * self,PyObject * args)12903 SWIGINTERN PyObject *_wrap_new_FeatureUnavailableError(PyObject *self, PyObject *args) {
12904   Py_ssize_t argc;
12905   PyObject *argv[4] = {
12906     0
12907   };
12908 
12909   if (!(argc = SWIG_Python_UnpackTuple(args,"new_FeatureUnavailableError",0,3,argv))) SWIG_fail;
12910   --argc;
12911   if (argc == 1) {
12912     return _wrap_new_FeatureUnavailableError__SWIG_3(self, argc, argv);
12913   }
12914   if (argc == 2) {
12915     int _v = 0;
12916     {
12917       {
12918         int res = SWIG_AsVal_int(argv[1], NULL);
12919         _v = SWIG_CheckState(res);
12920       }
12921     }
12922     if (!_v) goto check_2;
12923     return _wrap_new_FeatureUnavailableError__SWIG_4(self, argc, argv);
12924   }
12925 check_2:
12926 
12927   if (argc == 2) {
12928     return _wrap_new_FeatureUnavailableError__SWIG_2(self, argc, argv);
12929   }
12930   if (argc == 3) {
12931     int _v = 0;
12932     {
12933       {
12934         int res = SWIG_AsVal_int(argv[2], NULL);
12935         _v = SWIG_CheckState(res);
12936       }
12937     }
12938     if (!_v) goto check_4;
12939     return _wrap_new_FeatureUnavailableError__SWIG_1(self, argc, argv);
12940   }
12941 check_4:
12942 
12943   if (argc == 3) {
12944     return _wrap_new_FeatureUnavailableError__SWIG_0(self, argc, argv);
12945   }
12946 
12947 fail:
12948   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FeatureUnavailableError'.\n"
12949     "  Possible C/C++ prototypes are:\n"
12950     "    Xapian::FeatureUnavailableError::FeatureUnavailableError(std::string const &,std::string const &,char const *)\n"
12951     "    Xapian::FeatureUnavailableError::FeatureUnavailableError(std::string const &,std::string const &,int)\n"
12952     "    Xapian::FeatureUnavailableError::FeatureUnavailableError(std::string const &,std::string const &)\n"
12953     "    Xapian::FeatureUnavailableError::FeatureUnavailableError(std::string const &)\n"
12954     "    Xapian::FeatureUnavailableError::FeatureUnavailableError(std::string const &,int)\n");
12955   return 0;
12956 }
12957 
12958 
_wrap_delete_FeatureUnavailableError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12959 SWIGINTERN PyObject *_wrap_delete_FeatureUnavailableError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12960   PyObject *resultobj = 0;
12961   Xapian::FeatureUnavailableError *arg1 = (Xapian::FeatureUnavailableError *) 0 ;
12962   void *argp1 = 0 ;
12963   int res1 = 0 ;
12964   PyObject *swig_obj[1] ;
12965 
12966   if (!args) SWIG_fail;
12967   swig_obj[0] = args;
12968   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__FeatureUnavailableError, SWIG_POINTER_DISOWN |  0 );
12969   if (!SWIG_IsOK(res1)) {
12970     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FeatureUnavailableError" "', argument " "1"" of type '" "Xapian::FeatureUnavailableError *""'");
12971   }
12972   arg1 = reinterpret_cast< Xapian::FeatureUnavailableError * >(argp1);
12973   {
12974     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
12975     delete arg1;
12976     SWIG_PYTHON_THREAD_END_ALLOW;
12977   }
12978   resultobj = SWIG_Py_Void();
12979   return resultobj;
12980 fail:
12981   return NULL;
12982 }
12983 
12984 
FeatureUnavailableError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12985 SWIGINTERN PyObject *FeatureUnavailableError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12986   PyObject *obj;
12987   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
12988   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__FeatureUnavailableError, SWIG_NewClientData(obj));
12989   return SWIG_Py_Void();
12990 }
12991 
FeatureUnavailableError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12992 SWIGINTERN PyObject *FeatureUnavailableError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12993   return SWIG_Python_InitShadowInstance(args);
12994 }
12995 
_wrap_new_InternalError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)12996 SWIGINTERN PyObject *_wrap_new_InternalError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12997   PyObject *resultobj = 0;
12998   std::string *arg1 = 0 ;
12999   std::string *arg2 = 0 ;
13000   char *arg3 = (char *) 0 ;
13001   int res1 = SWIG_OLDOBJ ;
13002   int res2 = SWIG_OLDOBJ ;
13003   int res3 ;
13004   char *buf3 = 0 ;
13005   int alloc3 = 0 ;
13006   Xapian::InternalError *result = 0 ;
13007 
13008   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
13009   {
13010     std::string *ptr = (std::string *)0;
13011     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13012     if (!SWIG_IsOK(res1)) {
13013       if (res1 == INT_MIN) SWIG_fail;
13014       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
13015     }
13016     if (!ptr) {
13017       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
13018     }
13019     arg1 = ptr;
13020   }
13021   {
13022     std::string *ptr = (std::string *)0;
13023     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
13024     if (!SWIG_IsOK(res2)) {
13025       if (res2 == INT_MIN) SWIG_fail;
13026       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InternalError" "', argument " "2"" of type '" "std::string const &""'");
13027     }
13028     if (!ptr) {
13029       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InternalError" "', argument " "2"" of type '" "std::string const &""'");
13030     }
13031     arg2 = ptr;
13032   }
13033   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
13034   if (!SWIG_IsOK(res3)) {
13035     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_InternalError" "', argument " "3"" of type '" "char const *""'");
13036   }
13037   arg3 = reinterpret_cast< char * >(buf3);
13038   {
13039     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13040     result = (Xapian::InternalError *)new Xapian::InternalError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
13041     SWIG_PYTHON_THREAD_END_ALLOW;
13042   }
13043   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InternalError, SWIG_POINTER_NEW |  0 );
13044   if (SWIG_IsNewObj(res1)) delete arg1;
13045   if (SWIG_IsNewObj(res2)) delete arg2;
13046   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
13047   return resultobj;
13048 fail:
13049   if (SWIG_IsNewObj(res1)) delete arg1;
13050   if (SWIG_IsNewObj(res2)) delete arg2;
13051   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
13052   return NULL;
13053 }
13054 
13055 
_wrap_new_InternalError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13056 SWIGINTERN PyObject *_wrap_new_InternalError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13057   PyObject *resultobj = 0;
13058   std::string *arg1 = 0 ;
13059   std::string *arg2 = 0 ;
13060   int arg3 ;
13061   int res1 = SWIG_OLDOBJ ;
13062   int res2 = SWIG_OLDOBJ ;
13063   int val3 ;
13064   int ecode3 = 0 ;
13065   Xapian::InternalError *result = 0 ;
13066 
13067   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
13068   {
13069     std::string *ptr = (std::string *)0;
13070     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13071     if (!SWIG_IsOK(res1)) {
13072       if (res1 == INT_MIN) SWIG_fail;
13073       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
13074     }
13075     if (!ptr) {
13076       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
13077     }
13078     arg1 = ptr;
13079   }
13080   {
13081     std::string *ptr = (std::string *)0;
13082     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
13083     if (!SWIG_IsOK(res2)) {
13084       if (res2 == INT_MIN) SWIG_fail;
13085       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InternalError" "', argument " "2"" of type '" "std::string const &""'");
13086     }
13087     if (!ptr) {
13088       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InternalError" "', argument " "2"" of type '" "std::string const &""'");
13089     }
13090     arg2 = ptr;
13091   }
13092   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
13093   if (!SWIG_IsOK(ecode3)) {
13094     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_InternalError" "', argument " "3"" of type '" "int""'");
13095   }
13096   arg3 = static_cast< int >(val3);
13097   {
13098     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13099     result = (Xapian::InternalError *)new Xapian::InternalError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
13100     SWIG_PYTHON_THREAD_END_ALLOW;
13101   }
13102   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InternalError, SWIG_POINTER_NEW |  0 );
13103   if (SWIG_IsNewObj(res1)) delete arg1;
13104   if (SWIG_IsNewObj(res2)) delete arg2;
13105   return resultobj;
13106 fail:
13107   if (SWIG_IsNewObj(res1)) delete arg1;
13108   if (SWIG_IsNewObj(res2)) delete arg2;
13109   return NULL;
13110 }
13111 
13112 
_wrap_new_InternalError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13113 SWIGINTERN PyObject *_wrap_new_InternalError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13114   PyObject *resultobj = 0;
13115   std::string *arg1 = 0 ;
13116   std::string *arg2 = 0 ;
13117   int res1 = SWIG_OLDOBJ ;
13118   int res2 = SWIG_OLDOBJ ;
13119   Xapian::InternalError *result = 0 ;
13120 
13121   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
13122   {
13123     std::string *ptr = (std::string *)0;
13124     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13125     if (!SWIG_IsOK(res1)) {
13126       if (res1 == INT_MIN) SWIG_fail;
13127       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
13128     }
13129     if (!ptr) {
13130       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
13131     }
13132     arg1 = ptr;
13133   }
13134   {
13135     std::string *ptr = (std::string *)0;
13136     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
13137     if (!SWIG_IsOK(res2)) {
13138       if (res2 == INT_MIN) SWIG_fail;
13139       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InternalError" "', argument " "2"" of type '" "std::string const &""'");
13140     }
13141     if (!ptr) {
13142       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InternalError" "', argument " "2"" of type '" "std::string const &""'");
13143     }
13144     arg2 = ptr;
13145   }
13146   {
13147     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13148     result = (Xapian::InternalError *)new Xapian::InternalError((std::string const &)*arg1,(std::string const &)*arg2);
13149     SWIG_PYTHON_THREAD_END_ALLOW;
13150   }
13151   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InternalError, SWIG_POINTER_NEW |  0 );
13152   if (SWIG_IsNewObj(res1)) delete arg1;
13153   if (SWIG_IsNewObj(res2)) delete arg2;
13154   return resultobj;
13155 fail:
13156   if (SWIG_IsNewObj(res1)) delete arg1;
13157   if (SWIG_IsNewObj(res2)) delete arg2;
13158   return NULL;
13159 }
13160 
13161 
_wrap_new_InternalError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13162 SWIGINTERN PyObject *_wrap_new_InternalError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13163   PyObject *resultobj = 0;
13164   std::string *arg1 = 0 ;
13165   int res1 = SWIG_OLDOBJ ;
13166   Xapian::InternalError *result = 0 ;
13167 
13168   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
13169   {
13170     std::string *ptr = (std::string *)0;
13171     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13172     if (!SWIG_IsOK(res1)) {
13173       if (res1 == INT_MIN) SWIG_fail;
13174       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
13175     }
13176     if (!ptr) {
13177       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
13178     }
13179     arg1 = ptr;
13180   }
13181   {
13182     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13183     result = (Xapian::InternalError *)new Xapian::InternalError((std::string const &)*arg1);
13184     SWIG_PYTHON_THREAD_END_ALLOW;
13185   }
13186   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InternalError, SWIG_POINTER_NEW |  0 );
13187   if (SWIG_IsNewObj(res1)) delete arg1;
13188   return resultobj;
13189 fail:
13190   if (SWIG_IsNewObj(res1)) delete arg1;
13191   return NULL;
13192 }
13193 
13194 
_wrap_new_InternalError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13195 SWIGINTERN PyObject *_wrap_new_InternalError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13196   PyObject *resultobj = 0;
13197   std::string *arg1 = 0 ;
13198   int arg2 ;
13199   int res1 = SWIG_OLDOBJ ;
13200   int val2 ;
13201   int ecode2 = 0 ;
13202   Xapian::InternalError *result = 0 ;
13203 
13204   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
13205   {
13206     std::string *ptr = (std::string *)0;
13207     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13208     if (!SWIG_IsOK(res1)) {
13209       if (res1 == INT_MIN) SWIG_fail;
13210       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
13211     }
13212     if (!ptr) {
13213       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InternalError" "', argument " "1"" of type '" "std::string const &""'");
13214     }
13215     arg1 = ptr;
13216   }
13217   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13218   if (!SWIG_IsOK(ecode2)) {
13219     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_InternalError" "', argument " "2"" of type '" "int""'");
13220   }
13221   arg2 = static_cast< int >(val2);
13222   {
13223     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13224     result = (Xapian::InternalError *)new Xapian::InternalError((std::string const &)*arg1,arg2);
13225     SWIG_PYTHON_THREAD_END_ALLOW;
13226   }
13227   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InternalError, SWIG_POINTER_NEW |  0 );
13228   if (SWIG_IsNewObj(res1)) delete arg1;
13229   return resultobj;
13230 fail:
13231   if (SWIG_IsNewObj(res1)) delete arg1;
13232   return NULL;
13233 }
13234 
13235 
_wrap_new_InternalError(PyObject * self,PyObject * args)13236 SWIGINTERN PyObject *_wrap_new_InternalError(PyObject *self, PyObject *args) {
13237   Py_ssize_t argc;
13238   PyObject *argv[4] = {
13239     0
13240   };
13241 
13242   if (!(argc = SWIG_Python_UnpackTuple(args,"new_InternalError",0,3,argv))) SWIG_fail;
13243   --argc;
13244   if (argc == 1) {
13245     return _wrap_new_InternalError__SWIG_3(self, argc, argv);
13246   }
13247   if (argc == 2) {
13248     int _v = 0;
13249     {
13250       {
13251         int res = SWIG_AsVal_int(argv[1], NULL);
13252         _v = SWIG_CheckState(res);
13253       }
13254     }
13255     if (!_v) goto check_2;
13256     return _wrap_new_InternalError__SWIG_4(self, argc, argv);
13257   }
13258 check_2:
13259 
13260   if (argc == 2) {
13261     return _wrap_new_InternalError__SWIG_2(self, argc, argv);
13262   }
13263   if (argc == 3) {
13264     int _v = 0;
13265     {
13266       {
13267         int res = SWIG_AsVal_int(argv[2], NULL);
13268         _v = SWIG_CheckState(res);
13269       }
13270     }
13271     if (!_v) goto check_4;
13272     return _wrap_new_InternalError__SWIG_1(self, argc, argv);
13273   }
13274 check_4:
13275 
13276   if (argc == 3) {
13277     return _wrap_new_InternalError__SWIG_0(self, argc, argv);
13278   }
13279 
13280 fail:
13281   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_InternalError'.\n"
13282     "  Possible C/C++ prototypes are:\n"
13283     "    Xapian::InternalError::InternalError(std::string const &,std::string const &,char const *)\n"
13284     "    Xapian::InternalError::InternalError(std::string const &,std::string const &,int)\n"
13285     "    Xapian::InternalError::InternalError(std::string const &,std::string const &)\n"
13286     "    Xapian::InternalError::InternalError(std::string const &)\n"
13287     "    Xapian::InternalError::InternalError(std::string const &,int)\n");
13288   return 0;
13289 }
13290 
13291 
_wrap_delete_InternalError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13292 SWIGINTERN PyObject *_wrap_delete_InternalError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13293   PyObject *resultobj = 0;
13294   Xapian::InternalError *arg1 = (Xapian::InternalError *) 0 ;
13295   void *argp1 = 0 ;
13296   int res1 = 0 ;
13297   PyObject *swig_obj[1] ;
13298 
13299   if (!args) SWIG_fail;
13300   swig_obj[0] = args;
13301   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__InternalError, SWIG_POINTER_DISOWN |  0 );
13302   if (!SWIG_IsOK(res1)) {
13303     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InternalError" "', argument " "1"" of type '" "Xapian::InternalError *""'");
13304   }
13305   arg1 = reinterpret_cast< Xapian::InternalError * >(argp1);
13306   {
13307     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13308     delete arg1;
13309     SWIG_PYTHON_THREAD_END_ALLOW;
13310   }
13311   resultobj = SWIG_Py_Void();
13312   return resultobj;
13313 fail:
13314   return NULL;
13315 }
13316 
13317 
InternalError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13318 SWIGINTERN PyObject *InternalError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13319   PyObject *obj;
13320   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
13321   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__InternalError, SWIG_NewClientData(obj));
13322   return SWIG_Py_Void();
13323 }
13324 
InternalError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13325 SWIGINTERN PyObject *InternalError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13326   return SWIG_Python_InitShadowInstance(args);
13327 }
13328 
_wrap_new_NetworkError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13329 SWIGINTERN PyObject *_wrap_new_NetworkError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13330   PyObject *resultobj = 0;
13331   std::string *arg1 = 0 ;
13332   std::string *arg2 = 0 ;
13333   char *arg3 = (char *) 0 ;
13334   int res1 = SWIG_OLDOBJ ;
13335   int res2 = SWIG_OLDOBJ ;
13336   int res3 ;
13337   char *buf3 = 0 ;
13338   int alloc3 = 0 ;
13339   Xapian::NetworkError *result = 0 ;
13340 
13341   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
13342   {
13343     std::string *ptr = (std::string *)0;
13344     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13345     if (!SWIG_IsOK(res1)) {
13346       if (res1 == INT_MIN) SWIG_fail;
13347       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13348     }
13349     if (!ptr) {
13350       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13351     }
13352     arg1 = ptr;
13353   }
13354   {
13355     std::string *ptr = (std::string *)0;
13356     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
13357     if (!SWIG_IsOK(res2)) {
13358       if (res2 == INT_MIN) SWIG_fail;
13359       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NetworkError" "', argument " "2"" of type '" "std::string const &""'");
13360     }
13361     if (!ptr) {
13362       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkError" "', argument " "2"" of type '" "std::string const &""'");
13363     }
13364     arg2 = ptr;
13365   }
13366   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
13367   if (!SWIG_IsOK(res3)) {
13368     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_NetworkError" "', argument " "3"" of type '" "char const *""'");
13369   }
13370   arg3 = reinterpret_cast< char * >(buf3);
13371   {
13372     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13373     result = (Xapian::NetworkError *)new Xapian::NetworkError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
13374     SWIG_PYTHON_THREAD_END_ALLOW;
13375   }
13376   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkError, SWIG_POINTER_NEW |  0 );
13377   if (SWIG_IsNewObj(res1)) delete arg1;
13378   if (SWIG_IsNewObj(res2)) delete arg2;
13379   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
13380   return resultobj;
13381 fail:
13382   if (SWIG_IsNewObj(res1)) delete arg1;
13383   if (SWIG_IsNewObj(res2)) delete arg2;
13384   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
13385   return NULL;
13386 }
13387 
13388 
_wrap_new_NetworkError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13389 SWIGINTERN PyObject *_wrap_new_NetworkError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13390   PyObject *resultobj = 0;
13391   std::string *arg1 = 0 ;
13392   std::string *arg2 = 0 ;
13393   int arg3 ;
13394   int res1 = SWIG_OLDOBJ ;
13395   int res2 = SWIG_OLDOBJ ;
13396   int val3 ;
13397   int ecode3 = 0 ;
13398   Xapian::NetworkError *result = 0 ;
13399 
13400   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
13401   {
13402     std::string *ptr = (std::string *)0;
13403     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13404     if (!SWIG_IsOK(res1)) {
13405       if (res1 == INT_MIN) SWIG_fail;
13406       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13407     }
13408     if (!ptr) {
13409       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13410     }
13411     arg1 = ptr;
13412   }
13413   {
13414     std::string *ptr = (std::string *)0;
13415     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
13416     if (!SWIG_IsOK(res2)) {
13417       if (res2 == INT_MIN) SWIG_fail;
13418       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NetworkError" "', argument " "2"" of type '" "std::string const &""'");
13419     }
13420     if (!ptr) {
13421       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkError" "', argument " "2"" of type '" "std::string const &""'");
13422     }
13423     arg2 = ptr;
13424   }
13425   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
13426   if (!SWIG_IsOK(ecode3)) {
13427     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NetworkError" "', argument " "3"" of type '" "int""'");
13428   }
13429   arg3 = static_cast< int >(val3);
13430   {
13431     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13432     result = (Xapian::NetworkError *)new Xapian::NetworkError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
13433     SWIG_PYTHON_THREAD_END_ALLOW;
13434   }
13435   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkError, SWIG_POINTER_NEW |  0 );
13436   if (SWIG_IsNewObj(res1)) delete arg1;
13437   if (SWIG_IsNewObj(res2)) delete arg2;
13438   return resultobj;
13439 fail:
13440   if (SWIG_IsNewObj(res1)) delete arg1;
13441   if (SWIG_IsNewObj(res2)) delete arg2;
13442   return NULL;
13443 }
13444 
13445 
_wrap_new_NetworkError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13446 SWIGINTERN PyObject *_wrap_new_NetworkError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13447   PyObject *resultobj = 0;
13448   std::string *arg1 = 0 ;
13449   std::string *arg2 = 0 ;
13450   int res1 = SWIG_OLDOBJ ;
13451   int res2 = SWIG_OLDOBJ ;
13452   Xapian::NetworkError *result = 0 ;
13453 
13454   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
13455   {
13456     std::string *ptr = (std::string *)0;
13457     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13458     if (!SWIG_IsOK(res1)) {
13459       if (res1 == INT_MIN) SWIG_fail;
13460       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13461     }
13462     if (!ptr) {
13463       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13464     }
13465     arg1 = ptr;
13466   }
13467   {
13468     std::string *ptr = (std::string *)0;
13469     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
13470     if (!SWIG_IsOK(res2)) {
13471       if (res2 == INT_MIN) SWIG_fail;
13472       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NetworkError" "', argument " "2"" of type '" "std::string const &""'");
13473     }
13474     if (!ptr) {
13475       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkError" "', argument " "2"" of type '" "std::string const &""'");
13476     }
13477     arg2 = ptr;
13478   }
13479   {
13480     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13481     result = (Xapian::NetworkError *)new Xapian::NetworkError((std::string const &)*arg1,(std::string const &)*arg2);
13482     SWIG_PYTHON_THREAD_END_ALLOW;
13483   }
13484   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkError, SWIG_POINTER_NEW |  0 );
13485   if (SWIG_IsNewObj(res1)) delete arg1;
13486   if (SWIG_IsNewObj(res2)) delete arg2;
13487   return resultobj;
13488 fail:
13489   if (SWIG_IsNewObj(res1)) delete arg1;
13490   if (SWIG_IsNewObj(res2)) delete arg2;
13491   return NULL;
13492 }
13493 
13494 
_wrap_new_NetworkError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13495 SWIGINTERN PyObject *_wrap_new_NetworkError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13496   PyObject *resultobj = 0;
13497   std::string *arg1 = 0 ;
13498   int res1 = SWIG_OLDOBJ ;
13499   Xapian::NetworkError *result = 0 ;
13500 
13501   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
13502   {
13503     std::string *ptr = (std::string *)0;
13504     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13505     if (!SWIG_IsOK(res1)) {
13506       if (res1 == INT_MIN) SWIG_fail;
13507       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13508     }
13509     if (!ptr) {
13510       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13511     }
13512     arg1 = ptr;
13513   }
13514   {
13515     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13516     result = (Xapian::NetworkError *)new Xapian::NetworkError((std::string const &)*arg1);
13517     SWIG_PYTHON_THREAD_END_ALLOW;
13518   }
13519   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkError, SWIG_POINTER_NEW |  0 );
13520   if (SWIG_IsNewObj(res1)) delete arg1;
13521   return resultobj;
13522 fail:
13523   if (SWIG_IsNewObj(res1)) delete arg1;
13524   return NULL;
13525 }
13526 
13527 
_wrap_new_NetworkError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13528 SWIGINTERN PyObject *_wrap_new_NetworkError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13529   PyObject *resultobj = 0;
13530   std::string *arg1 = 0 ;
13531   int arg2 ;
13532   int res1 = SWIG_OLDOBJ ;
13533   int val2 ;
13534   int ecode2 = 0 ;
13535   Xapian::NetworkError *result = 0 ;
13536 
13537   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
13538   {
13539     std::string *ptr = (std::string *)0;
13540     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13541     if (!SWIG_IsOK(res1)) {
13542       if (res1 == INT_MIN) SWIG_fail;
13543       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13544     }
13545     if (!ptr) {
13546       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkError" "', argument " "1"" of type '" "std::string const &""'");
13547     }
13548     arg1 = ptr;
13549   }
13550   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13551   if (!SWIG_IsOK(ecode2)) {
13552     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NetworkError" "', argument " "2"" of type '" "int""'");
13553   }
13554   arg2 = static_cast< int >(val2);
13555   {
13556     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13557     result = (Xapian::NetworkError *)new Xapian::NetworkError((std::string const &)*arg1,arg2);
13558     SWIG_PYTHON_THREAD_END_ALLOW;
13559   }
13560   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkError, SWIG_POINTER_NEW |  0 );
13561   if (SWIG_IsNewObj(res1)) delete arg1;
13562   return resultobj;
13563 fail:
13564   if (SWIG_IsNewObj(res1)) delete arg1;
13565   return NULL;
13566 }
13567 
13568 
_wrap_new_NetworkError(PyObject * self,PyObject * args)13569 SWIGINTERN PyObject *_wrap_new_NetworkError(PyObject *self, PyObject *args) {
13570   Py_ssize_t argc;
13571   PyObject *argv[4] = {
13572     0
13573   };
13574 
13575   if (!(argc = SWIG_Python_UnpackTuple(args,"new_NetworkError",0,3,argv))) SWIG_fail;
13576   --argc;
13577   if (argc == 1) {
13578     return _wrap_new_NetworkError__SWIG_3(self, argc, argv);
13579   }
13580   if (argc == 2) {
13581     int _v = 0;
13582     {
13583       {
13584         int res = SWIG_AsVal_int(argv[1], NULL);
13585         _v = SWIG_CheckState(res);
13586       }
13587     }
13588     if (!_v) goto check_2;
13589     return _wrap_new_NetworkError__SWIG_4(self, argc, argv);
13590   }
13591 check_2:
13592 
13593   if (argc == 2) {
13594     return _wrap_new_NetworkError__SWIG_2(self, argc, argv);
13595   }
13596   if (argc == 3) {
13597     int _v = 0;
13598     {
13599       {
13600         int res = SWIG_AsVal_int(argv[2], NULL);
13601         _v = SWIG_CheckState(res);
13602       }
13603     }
13604     if (!_v) goto check_4;
13605     return _wrap_new_NetworkError__SWIG_1(self, argc, argv);
13606   }
13607 check_4:
13608 
13609   if (argc == 3) {
13610     return _wrap_new_NetworkError__SWIG_0(self, argc, argv);
13611   }
13612 
13613 fail:
13614   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_NetworkError'.\n"
13615     "  Possible C/C++ prototypes are:\n"
13616     "    Xapian::NetworkError::NetworkError(std::string const &,std::string const &,char const *)\n"
13617     "    Xapian::NetworkError::NetworkError(std::string const &,std::string const &,int)\n"
13618     "    Xapian::NetworkError::NetworkError(std::string const &,std::string const &)\n"
13619     "    Xapian::NetworkError::NetworkError(std::string const &)\n"
13620     "    Xapian::NetworkError::NetworkError(std::string const &,int)\n");
13621   return 0;
13622 }
13623 
13624 
_wrap_delete_NetworkError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13625 SWIGINTERN PyObject *_wrap_delete_NetworkError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13626   PyObject *resultobj = 0;
13627   Xapian::NetworkError *arg1 = (Xapian::NetworkError *) 0 ;
13628   void *argp1 = 0 ;
13629   int res1 = 0 ;
13630   PyObject *swig_obj[1] ;
13631 
13632   if (!args) SWIG_fail;
13633   swig_obj[0] = args;
13634   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__NetworkError, SWIG_POINTER_DISOWN |  0 );
13635   if (!SWIG_IsOK(res1)) {
13636     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NetworkError" "', argument " "1"" of type '" "Xapian::NetworkError *""'");
13637   }
13638   arg1 = reinterpret_cast< Xapian::NetworkError * >(argp1);
13639   {
13640     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13641     delete arg1;
13642     SWIG_PYTHON_THREAD_END_ALLOW;
13643   }
13644   resultobj = SWIG_Py_Void();
13645   return resultobj;
13646 fail:
13647   return NULL;
13648 }
13649 
13650 
NetworkError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13651 SWIGINTERN PyObject *NetworkError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13652   PyObject *obj;
13653   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
13654   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__NetworkError, SWIG_NewClientData(obj));
13655   return SWIG_Py_Void();
13656 }
13657 
NetworkError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13658 SWIGINTERN PyObject *NetworkError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13659   return SWIG_Python_InitShadowInstance(args);
13660 }
13661 
_wrap_new_NetworkTimeoutError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13662 SWIGINTERN PyObject *_wrap_new_NetworkTimeoutError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13663   PyObject *resultobj = 0;
13664   std::string *arg1 = 0 ;
13665   std::string *arg2 = 0 ;
13666   char *arg3 = (char *) 0 ;
13667   int res1 = SWIG_OLDOBJ ;
13668   int res2 = SWIG_OLDOBJ ;
13669   int res3 ;
13670   char *buf3 = 0 ;
13671   int alloc3 = 0 ;
13672   Xapian::NetworkTimeoutError *result = 0 ;
13673 
13674   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
13675   {
13676     std::string *ptr = (std::string *)0;
13677     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13678     if (!SWIG_IsOK(res1)) {
13679       if (res1 == INT_MIN) SWIG_fail;
13680       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13681     }
13682     if (!ptr) {
13683       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13684     }
13685     arg1 = ptr;
13686   }
13687   {
13688     std::string *ptr = (std::string *)0;
13689     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
13690     if (!SWIG_IsOK(res2)) {
13691       if (res2 == INT_MIN) SWIG_fail;
13692       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "std::string const &""'");
13693     }
13694     if (!ptr) {
13695       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "std::string const &""'");
13696     }
13697     arg2 = ptr;
13698   }
13699   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
13700   if (!SWIG_IsOK(res3)) {
13701     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_NetworkTimeoutError" "', argument " "3"" of type '" "char const *""'");
13702   }
13703   arg3 = reinterpret_cast< char * >(buf3);
13704   {
13705     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13706     result = (Xapian::NetworkTimeoutError *)new Xapian::NetworkTimeoutError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
13707     SWIG_PYTHON_THREAD_END_ALLOW;
13708   }
13709   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkTimeoutError, SWIG_POINTER_NEW |  0 );
13710   if (SWIG_IsNewObj(res1)) delete arg1;
13711   if (SWIG_IsNewObj(res2)) delete arg2;
13712   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
13713   return resultobj;
13714 fail:
13715   if (SWIG_IsNewObj(res1)) delete arg1;
13716   if (SWIG_IsNewObj(res2)) delete arg2;
13717   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
13718   return NULL;
13719 }
13720 
13721 
_wrap_new_NetworkTimeoutError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13722 SWIGINTERN PyObject *_wrap_new_NetworkTimeoutError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13723   PyObject *resultobj = 0;
13724   std::string *arg1 = 0 ;
13725   std::string *arg2 = 0 ;
13726   int arg3 ;
13727   int res1 = SWIG_OLDOBJ ;
13728   int res2 = SWIG_OLDOBJ ;
13729   int val3 ;
13730   int ecode3 = 0 ;
13731   Xapian::NetworkTimeoutError *result = 0 ;
13732 
13733   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
13734   {
13735     std::string *ptr = (std::string *)0;
13736     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13737     if (!SWIG_IsOK(res1)) {
13738       if (res1 == INT_MIN) SWIG_fail;
13739       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13740     }
13741     if (!ptr) {
13742       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13743     }
13744     arg1 = ptr;
13745   }
13746   {
13747     std::string *ptr = (std::string *)0;
13748     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
13749     if (!SWIG_IsOK(res2)) {
13750       if (res2 == INT_MIN) SWIG_fail;
13751       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "std::string const &""'");
13752     }
13753     if (!ptr) {
13754       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "std::string const &""'");
13755     }
13756     arg2 = ptr;
13757   }
13758   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
13759   if (!SWIG_IsOK(ecode3)) {
13760     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NetworkTimeoutError" "', argument " "3"" of type '" "int""'");
13761   }
13762   arg3 = static_cast< int >(val3);
13763   {
13764     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13765     result = (Xapian::NetworkTimeoutError *)new Xapian::NetworkTimeoutError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
13766     SWIG_PYTHON_THREAD_END_ALLOW;
13767   }
13768   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkTimeoutError, SWIG_POINTER_NEW |  0 );
13769   if (SWIG_IsNewObj(res1)) delete arg1;
13770   if (SWIG_IsNewObj(res2)) delete arg2;
13771   return resultobj;
13772 fail:
13773   if (SWIG_IsNewObj(res1)) delete arg1;
13774   if (SWIG_IsNewObj(res2)) delete arg2;
13775   return NULL;
13776 }
13777 
13778 
_wrap_new_NetworkTimeoutError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13779 SWIGINTERN PyObject *_wrap_new_NetworkTimeoutError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13780   PyObject *resultobj = 0;
13781   std::string *arg1 = 0 ;
13782   std::string *arg2 = 0 ;
13783   int res1 = SWIG_OLDOBJ ;
13784   int res2 = SWIG_OLDOBJ ;
13785   Xapian::NetworkTimeoutError *result = 0 ;
13786 
13787   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
13788   {
13789     std::string *ptr = (std::string *)0;
13790     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13791     if (!SWIG_IsOK(res1)) {
13792       if (res1 == INT_MIN) SWIG_fail;
13793       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13794     }
13795     if (!ptr) {
13796       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13797     }
13798     arg1 = ptr;
13799   }
13800   {
13801     std::string *ptr = (std::string *)0;
13802     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
13803     if (!SWIG_IsOK(res2)) {
13804       if (res2 == INT_MIN) SWIG_fail;
13805       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "std::string const &""'");
13806     }
13807     if (!ptr) {
13808       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "std::string const &""'");
13809     }
13810     arg2 = ptr;
13811   }
13812   {
13813     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13814     result = (Xapian::NetworkTimeoutError *)new Xapian::NetworkTimeoutError((std::string const &)*arg1,(std::string const &)*arg2);
13815     SWIG_PYTHON_THREAD_END_ALLOW;
13816   }
13817   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkTimeoutError, SWIG_POINTER_NEW |  0 );
13818   if (SWIG_IsNewObj(res1)) delete arg1;
13819   if (SWIG_IsNewObj(res2)) delete arg2;
13820   return resultobj;
13821 fail:
13822   if (SWIG_IsNewObj(res1)) delete arg1;
13823   if (SWIG_IsNewObj(res2)) delete arg2;
13824   return NULL;
13825 }
13826 
13827 
_wrap_new_NetworkTimeoutError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13828 SWIGINTERN PyObject *_wrap_new_NetworkTimeoutError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13829   PyObject *resultobj = 0;
13830   std::string *arg1 = 0 ;
13831   int res1 = SWIG_OLDOBJ ;
13832   Xapian::NetworkTimeoutError *result = 0 ;
13833 
13834   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
13835   {
13836     std::string *ptr = (std::string *)0;
13837     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13838     if (!SWIG_IsOK(res1)) {
13839       if (res1 == INT_MIN) SWIG_fail;
13840       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13841     }
13842     if (!ptr) {
13843       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13844     }
13845     arg1 = ptr;
13846   }
13847   {
13848     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13849     result = (Xapian::NetworkTimeoutError *)new Xapian::NetworkTimeoutError((std::string const &)*arg1);
13850     SWIG_PYTHON_THREAD_END_ALLOW;
13851   }
13852   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkTimeoutError, SWIG_POINTER_NEW |  0 );
13853   if (SWIG_IsNewObj(res1)) delete arg1;
13854   return resultobj;
13855 fail:
13856   if (SWIG_IsNewObj(res1)) delete arg1;
13857   return NULL;
13858 }
13859 
13860 
_wrap_new_NetworkTimeoutError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13861 SWIGINTERN PyObject *_wrap_new_NetworkTimeoutError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13862   PyObject *resultobj = 0;
13863   std::string *arg1 = 0 ;
13864   int arg2 ;
13865   int res1 = SWIG_OLDOBJ ;
13866   int val2 ;
13867   int ecode2 = 0 ;
13868   Xapian::NetworkTimeoutError *result = 0 ;
13869 
13870   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
13871   {
13872     std::string *ptr = (std::string *)0;
13873     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
13874     if (!SWIG_IsOK(res1)) {
13875       if (res1 == INT_MIN) SWIG_fail;
13876       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13877     }
13878     if (!ptr) {
13879       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NetworkTimeoutError" "', argument " "1"" of type '" "std::string const &""'");
13880     }
13881     arg1 = ptr;
13882   }
13883   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13884   if (!SWIG_IsOK(ecode2)) {
13885     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NetworkTimeoutError" "', argument " "2"" of type '" "int""'");
13886   }
13887   arg2 = static_cast< int >(val2);
13888   {
13889     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13890     result = (Xapian::NetworkTimeoutError *)new Xapian::NetworkTimeoutError((std::string const &)*arg1,arg2);
13891     SWIG_PYTHON_THREAD_END_ALLOW;
13892   }
13893   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NetworkTimeoutError, SWIG_POINTER_NEW |  0 );
13894   if (SWIG_IsNewObj(res1)) delete arg1;
13895   return resultobj;
13896 fail:
13897   if (SWIG_IsNewObj(res1)) delete arg1;
13898   return NULL;
13899 }
13900 
13901 
_wrap_new_NetworkTimeoutError(PyObject * self,PyObject * args)13902 SWIGINTERN PyObject *_wrap_new_NetworkTimeoutError(PyObject *self, PyObject *args) {
13903   Py_ssize_t argc;
13904   PyObject *argv[4] = {
13905     0
13906   };
13907 
13908   if (!(argc = SWIG_Python_UnpackTuple(args,"new_NetworkTimeoutError",0,3,argv))) SWIG_fail;
13909   --argc;
13910   if (argc == 1) {
13911     return _wrap_new_NetworkTimeoutError__SWIG_3(self, argc, argv);
13912   }
13913   if (argc == 2) {
13914     int _v = 0;
13915     {
13916       {
13917         int res = SWIG_AsVal_int(argv[1], NULL);
13918         _v = SWIG_CheckState(res);
13919       }
13920     }
13921     if (!_v) goto check_2;
13922     return _wrap_new_NetworkTimeoutError__SWIG_4(self, argc, argv);
13923   }
13924 check_2:
13925 
13926   if (argc == 2) {
13927     return _wrap_new_NetworkTimeoutError__SWIG_2(self, argc, argv);
13928   }
13929   if (argc == 3) {
13930     int _v = 0;
13931     {
13932       {
13933         int res = SWIG_AsVal_int(argv[2], NULL);
13934         _v = SWIG_CheckState(res);
13935       }
13936     }
13937     if (!_v) goto check_4;
13938     return _wrap_new_NetworkTimeoutError__SWIG_1(self, argc, argv);
13939   }
13940 check_4:
13941 
13942   if (argc == 3) {
13943     return _wrap_new_NetworkTimeoutError__SWIG_0(self, argc, argv);
13944   }
13945 
13946 fail:
13947   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_NetworkTimeoutError'.\n"
13948     "  Possible C/C++ prototypes are:\n"
13949     "    Xapian::NetworkTimeoutError::NetworkTimeoutError(std::string const &,std::string const &,char const *)\n"
13950     "    Xapian::NetworkTimeoutError::NetworkTimeoutError(std::string const &,std::string const &,int)\n"
13951     "    Xapian::NetworkTimeoutError::NetworkTimeoutError(std::string const &,std::string const &)\n"
13952     "    Xapian::NetworkTimeoutError::NetworkTimeoutError(std::string const &)\n"
13953     "    Xapian::NetworkTimeoutError::NetworkTimeoutError(std::string const &,int)\n");
13954   return 0;
13955 }
13956 
13957 
_wrap_delete_NetworkTimeoutError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13958 SWIGINTERN PyObject *_wrap_delete_NetworkTimeoutError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13959   PyObject *resultobj = 0;
13960   Xapian::NetworkTimeoutError *arg1 = (Xapian::NetworkTimeoutError *) 0 ;
13961   void *argp1 = 0 ;
13962   int res1 = 0 ;
13963   PyObject *swig_obj[1] ;
13964 
13965   if (!args) SWIG_fail;
13966   swig_obj[0] = args;
13967   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__NetworkTimeoutError, SWIG_POINTER_DISOWN |  0 );
13968   if (!SWIG_IsOK(res1)) {
13969     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NetworkTimeoutError" "', argument " "1"" of type '" "Xapian::NetworkTimeoutError *""'");
13970   }
13971   arg1 = reinterpret_cast< Xapian::NetworkTimeoutError * >(argp1);
13972   {
13973     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
13974     delete arg1;
13975     SWIG_PYTHON_THREAD_END_ALLOW;
13976   }
13977   resultobj = SWIG_Py_Void();
13978   return resultobj;
13979 fail:
13980   return NULL;
13981 }
13982 
13983 
NetworkTimeoutError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13984 SWIGINTERN PyObject *NetworkTimeoutError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13985   PyObject *obj;
13986   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
13987   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__NetworkTimeoutError, SWIG_NewClientData(obj));
13988   return SWIG_Py_Void();
13989 }
13990 
NetworkTimeoutError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13991 SWIGINTERN PyObject *NetworkTimeoutError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13992   return SWIG_Python_InitShadowInstance(args);
13993 }
13994 
_wrap_new_QueryParserError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)13995 SWIGINTERN PyObject *_wrap_new_QueryParserError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13996   PyObject *resultobj = 0;
13997   std::string *arg1 = 0 ;
13998   std::string *arg2 = 0 ;
13999   char *arg3 = (char *) 0 ;
14000   int res1 = SWIG_OLDOBJ ;
14001   int res2 = SWIG_OLDOBJ ;
14002   int res3 ;
14003   char *buf3 = 0 ;
14004   int alloc3 = 0 ;
14005   Xapian::QueryParserError *result = 0 ;
14006 
14007   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14008   {
14009     std::string *ptr = (std::string *)0;
14010     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14011     if (!SWIG_IsOK(res1)) {
14012       if (res1 == INT_MIN) SWIG_fail;
14013       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
14014     }
14015     if (!ptr) {
14016       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
14017     }
14018     arg1 = ptr;
14019   }
14020   {
14021     std::string *ptr = (std::string *)0;
14022     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
14023     if (!SWIG_IsOK(res2)) {
14024       if (res2 == INT_MIN) SWIG_fail;
14025       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_QueryParserError" "', argument " "2"" of type '" "std::string const &""'");
14026     }
14027     if (!ptr) {
14028       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QueryParserError" "', argument " "2"" of type '" "std::string const &""'");
14029     }
14030     arg2 = ptr;
14031   }
14032   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
14033   if (!SWIG_IsOK(res3)) {
14034     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_QueryParserError" "', argument " "3"" of type '" "char const *""'");
14035   }
14036   arg3 = reinterpret_cast< char * >(buf3);
14037   {
14038     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14039     result = (Xapian::QueryParserError *)new Xapian::QueryParserError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
14040     SWIG_PYTHON_THREAD_END_ALLOW;
14041   }
14042   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__QueryParserError, SWIG_POINTER_NEW |  0 );
14043   if (SWIG_IsNewObj(res1)) delete arg1;
14044   if (SWIG_IsNewObj(res2)) delete arg2;
14045   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
14046   return resultobj;
14047 fail:
14048   if (SWIG_IsNewObj(res1)) delete arg1;
14049   if (SWIG_IsNewObj(res2)) delete arg2;
14050   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
14051   return NULL;
14052 }
14053 
14054 
_wrap_new_QueryParserError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14055 SWIGINTERN PyObject *_wrap_new_QueryParserError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14056   PyObject *resultobj = 0;
14057   std::string *arg1 = 0 ;
14058   std::string *arg2 = 0 ;
14059   int arg3 ;
14060   int res1 = SWIG_OLDOBJ ;
14061   int res2 = SWIG_OLDOBJ ;
14062   int val3 ;
14063   int ecode3 = 0 ;
14064   Xapian::QueryParserError *result = 0 ;
14065 
14066   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14067   {
14068     std::string *ptr = (std::string *)0;
14069     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14070     if (!SWIG_IsOK(res1)) {
14071       if (res1 == INT_MIN) SWIG_fail;
14072       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
14073     }
14074     if (!ptr) {
14075       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
14076     }
14077     arg1 = ptr;
14078   }
14079   {
14080     std::string *ptr = (std::string *)0;
14081     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
14082     if (!SWIG_IsOK(res2)) {
14083       if (res2 == INT_MIN) SWIG_fail;
14084       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_QueryParserError" "', argument " "2"" of type '" "std::string const &""'");
14085     }
14086     if (!ptr) {
14087       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QueryParserError" "', argument " "2"" of type '" "std::string const &""'");
14088     }
14089     arg2 = ptr;
14090   }
14091   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
14092   if (!SWIG_IsOK(ecode3)) {
14093     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_QueryParserError" "', argument " "3"" of type '" "int""'");
14094   }
14095   arg3 = static_cast< int >(val3);
14096   {
14097     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14098     result = (Xapian::QueryParserError *)new Xapian::QueryParserError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
14099     SWIG_PYTHON_THREAD_END_ALLOW;
14100   }
14101   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__QueryParserError, SWIG_POINTER_NEW |  0 );
14102   if (SWIG_IsNewObj(res1)) delete arg1;
14103   if (SWIG_IsNewObj(res2)) delete arg2;
14104   return resultobj;
14105 fail:
14106   if (SWIG_IsNewObj(res1)) delete arg1;
14107   if (SWIG_IsNewObj(res2)) delete arg2;
14108   return NULL;
14109 }
14110 
14111 
_wrap_new_QueryParserError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14112 SWIGINTERN PyObject *_wrap_new_QueryParserError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14113   PyObject *resultobj = 0;
14114   std::string *arg1 = 0 ;
14115   std::string *arg2 = 0 ;
14116   int res1 = SWIG_OLDOBJ ;
14117   int res2 = SWIG_OLDOBJ ;
14118   Xapian::QueryParserError *result = 0 ;
14119 
14120   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
14121   {
14122     std::string *ptr = (std::string *)0;
14123     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14124     if (!SWIG_IsOK(res1)) {
14125       if (res1 == INT_MIN) SWIG_fail;
14126       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
14127     }
14128     if (!ptr) {
14129       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
14130     }
14131     arg1 = ptr;
14132   }
14133   {
14134     std::string *ptr = (std::string *)0;
14135     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
14136     if (!SWIG_IsOK(res2)) {
14137       if (res2 == INT_MIN) SWIG_fail;
14138       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_QueryParserError" "', argument " "2"" of type '" "std::string const &""'");
14139     }
14140     if (!ptr) {
14141       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QueryParserError" "', argument " "2"" of type '" "std::string const &""'");
14142     }
14143     arg2 = ptr;
14144   }
14145   {
14146     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14147     result = (Xapian::QueryParserError *)new Xapian::QueryParserError((std::string const &)*arg1,(std::string const &)*arg2);
14148     SWIG_PYTHON_THREAD_END_ALLOW;
14149   }
14150   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__QueryParserError, SWIG_POINTER_NEW |  0 );
14151   if (SWIG_IsNewObj(res1)) delete arg1;
14152   if (SWIG_IsNewObj(res2)) delete arg2;
14153   return resultobj;
14154 fail:
14155   if (SWIG_IsNewObj(res1)) delete arg1;
14156   if (SWIG_IsNewObj(res2)) delete arg2;
14157   return NULL;
14158 }
14159 
14160 
_wrap_new_QueryParserError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14161 SWIGINTERN PyObject *_wrap_new_QueryParserError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14162   PyObject *resultobj = 0;
14163   std::string *arg1 = 0 ;
14164   int res1 = SWIG_OLDOBJ ;
14165   Xapian::QueryParserError *result = 0 ;
14166 
14167   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14168   {
14169     std::string *ptr = (std::string *)0;
14170     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14171     if (!SWIG_IsOK(res1)) {
14172       if (res1 == INT_MIN) SWIG_fail;
14173       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
14174     }
14175     if (!ptr) {
14176       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
14177     }
14178     arg1 = ptr;
14179   }
14180   {
14181     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14182     result = (Xapian::QueryParserError *)new Xapian::QueryParserError((std::string const &)*arg1);
14183     SWIG_PYTHON_THREAD_END_ALLOW;
14184   }
14185   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__QueryParserError, SWIG_POINTER_NEW |  0 );
14186   if (SWIG_IsNewObj(res1)) delete arg1;
14187   return resultobj;
14188 fail:
14189   if (SWIG_IsNewObj(res1)) delete arg1;
14190   return NULL;
14191 }
14192 
14193 
_wrap_new_QueryParserError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14194 SWIGINTERN PyObject *_wrap_new_QueryParserError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14195   PyObject *resultobj = 0;
14196   std::string *arg1 = 0 ;
14197   int arg2 ;
14198   int res1 = SWIG_OLDOBJ ;
14199   int val2 ;
14200   int ecode2 = 0 ;
14201   Xapian::QueryParserError *result = 0 ;
14202 
14203   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
14204   {
14205     std::string *ptr = (std::string *)0;
14206     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14207     if (!SWIG_IsOK(res1)) {
14208       if (res1 == INT_MIN) SWIG_fail;
14209       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
14210     }
14211     if (!ptr) {
14212       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QueryParserError" "', argument " "1"" of type '" "std::string const &""'");
14213     }
14214     arg1 = ptr;
14215   }
14216   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14217   if (!SWIG_IsOK(ecode2)) {
14218     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_QueryParserError" "', argument " "2"" of type '" "int""'");
14219   }
14220   arg2 = static_cast< int >(val2);
14221   {
14222     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14223     result = (Xapian::QueryParserError *)new Xapian::QueryParserError((std::string const &)*arg1,arg2);
14224     SWIG_PYTHON_THREAD_END_ALLOW;
14225   }
14226   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__QueryParserError, SWIG_POINTER_NEW |  0 );
14227   if (SWIG_IsNewObj(res1)) delete arg1;
14228   return resultobj;
14229 fail:
14230   if (SWIG_IsNewObj(res1)) delete arg1;
14231   return NULL;
14232 }
14233 
14234 
_wrap_new_QueryParserError(PyObject * self,PyObject * args)14235 SWIGINTERN PyObject *_wrap_new_QueryParserError(PyObject *self, PyObject *args) {
14236   Py_ssize_t argc;
14237   PyObject *argv[4] = {
14238     0
14239   };
14240 
14241   if (!(argc = SWIG_Python_UnpackTuple(args,"new_QueryParserError",0,3,argv))) SWIG_fail;
14242   --argc;
14243   if (argc == 1) {
14244     return _wrap_new_QueryParserError__SWIG_3(self, argc, argv);
14245   }
14246   if (argc == 2) {
14247     int _v = 0;
14248     {
14249       {
14250         int res = SWIG_AsVal_int(argv[1], NULL);
14251         _v = SWIG_CheckState(res);
14252       }
14253     }
14254     if (!_v) goto check_2;
14255     return _wrap_new_QueryParserError__SWIG_4(self, argc, argv);
14256   }
14257 check_2:
14258 
14259   if (argc == 2) {
14260     return _wrap_new_QueryParserError__SWIG_2(self, argc, argv);
14261   }
14262   if (argc == 3) {
14263     int _v = 0;
14264     {
14265       {
14266         int res = SWIG_AsVal_int(argv[2], NULL);
14267         _v = SWIG_CheckState(res);
14268       }
14269     }
14270     if (!_v) goto check_4;
14271     return _wrap_new_QueryParserError__SWIG_1(self, argc, argv);
14272   }
14273 check_4:
14274 
14275   if (argc == 3) {
14276     return _wrap_new_QueryParserError__SWIG_0(self, argc, argv);
14277   }
14278 
14279 fail:
14280   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_QueryParserError'.\n"
14281     "  Possible C/C++ prototypes are:\n"
14282     "    Xapian::QueryParserError::QueryParserError(std::string const &,std::string const &,char const *)\n"
14283     "    Xapian::QueryParserError::QueryParserError(std::string const &,std::string const &,int)\n"
14284     "    Xapian::QueryParserError::QueryParserError(std::string const &,std::string const &)\n"
14285     "    Xapian::QueryParserError::QueryParserError(std::string const &)\n"
14286     "    Xapian::QueryParserError::QueryParserError(std::string const &,int)\n");
14287   return 0;
14288 }
14289 
14290 
_wrap_delete_QueryParserError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14291 SWIGINTERN PyObject *_wrap_delete_QueryParserError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14292   PyObject *resultobj = 0;
14293   Xapian::QueryParserError *arg1 = (Xapian::QueryParserError *) 0 ;
14294   void *argp1 = 0 ;
14295   int res1 = 0 ;
14296   PyObject *swig_obj[1] ;
14297 
14298   if (!args) SWIG_fail;
14299   swig_obj[0] = args;
14300   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParserError, SWIG_POINTER_DISOWN |  0 );
14301   if (!SWIG_IsOK(res1)) {
14302     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_QueryParserError" "', argument " "1"" of type '" "Xapian::QueryParserError *""'");
14303   }
14304   arg1 = reinterpret_cast< Xapian::QueryParserError * >(argp1);
14305   {
14306     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14307     delete arg1;
14308     SWIG_PYTHON_THREAD_END_ALLOW;
14309   }
14310   resultobj = SWIG_Py_Void();
14311   return resultobj;
14312 fail:
14313   return NULL;
14314 }
14315 
14316 
QueryParserError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14317 SWIGINTERN PyObject *QueryParserError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14318   PyObject *obj;
14319   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
14320   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__QueryParserError, SWIG_NewClientData(obj));
14321   return SWIG_Py_Void();
14322 }
14323 
QueryParserError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14324 SWIGINTERN PyObject *QueryParserError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14325   return SWIG_Python_InitShadowInstance(args);
14326 }
14327 
_wrap_new_SerialisationError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14328 SWIGINTERN PyObject *_wrap_new_SerialisationError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14329   PyObject *resultobj = 0;
14330   std::string *arg1 = 0 ;
14331   std::string *arg2 = 0 ;
14332   char *arg3 = (char *) 0 ;
14333   int res1 = SWIG_OLDOBJ ;
14334   int res2 = SWIG_OLDOBJ ;
14335   int res3 ;
14336   char *buf3 = 0 ;
14337   int alloc3 = 0 ;
14338   Xapian::SerialisationError *result = 0 ;
14339 
14340   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14341   {
14342     std::string *ptr = (std::string *)0;
14343     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14344     if (!SWIG_IsOK(res1)) {
14345       if (res1 == INT_MIN) SWIG_fail;
14346       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14347     }
14348     if (!ptr) {
14349       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14350     }
14351     arg1 = ptr;
14352   }
14353   {
14354     std::string *ptr = (std::string *)0;
14355     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
14356     if (!SWIG_IsOK(res2)) {
14357       if (res2 == INT_MIN) SWIG_fail;
14358       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SerialisationError" "', argument " "2"" of type '" "std::string const &""'");
14359     }
14360     if (!ptr) {
14361       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SerialisationError" "', argument " "2"" of type '" "std::string const &""'");
14362     }
14363     arg2 = ptr;
14364   }
14365   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
14366   if (!SWIG_IsOK(res3)) {
14367     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SerialisationError" "', argument " "3"" of type '" "char const *""'");
14368   }
14369   arg3 = reinterpret_cast< char * >(buf3);
14370   {
14371     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14372     result = (Xapian::SerialisationError *)new Xapian::SerialisationError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
14373     SWIG_PYTHON_THREAD_END_ALLOW;
14374   }
14375   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__SerialisationError, SWIG_POINTER_NEW |  0 );
14376   if (SWIG_IsNewObj(res1)) delete arg1;
14377   if (SWIG_IsNewObj(res2)) delete arg2;
14378   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
14379   return resultobj;
14380 fail:
14381   if (SWIG_IsNewObj(res1)) delete arg1;
14382   if (SWIG_IsNewObj(res2)) delete arg2;
14383   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
14384   return NULL;
14385 }
14386 
14387 
_wrap_new_SerialisationError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14388 SWIGINTERN PyObject *_wrap_new_SerialisationError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14389   PyObject *resultobj = 0;
14390   std::string *arg1 = 0 ;
14391   std::string *arg2 = 0 ;
14392   int arg3 ;
14393   int res1 = SWIG_OLDOBJ ;
14394   int res2 = SWIG_OLDOBJ ;
14395   int val3 ;
14396   int ecode3 = 0 ;
14397   Xapian::SerialisationError *result = 0 ;
14398 
14399   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14400   {
14401     std::string *ptr = (std::string *)0;
14402     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14403     if (!SWIG_IsOK(res1)) {
14404       if (res1 == INT_MIN) SWIG_fail;
14405       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14406     }
14407     if (!ptr) {
14408       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14409     }
14410     arg1 = ptr;
14411   }
14412   {
14413     std::string *ptr = (std::string *)0;
14414     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
14415     if (!SWIG_IsOK(res2)) {
14416       if (res2 == INT_MIN) SWIG_fail;
14417       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SerialisationError" "', argument " "2"" of type '" "std::string const &""'");
14418     }
14419     if (!ptr) {
14420       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SerialisationError" "', argument " "2"" of type '" "std::string const &""'");
14421     }
14422     arg2 = ptr;
14423   }
14424   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
14425   if (!SWIG_IsOK(ecode3)) {
14426     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SerialisationError" "', argument " "3"" of type '" "int""'");
14427   }
14428   arg3 = static_cast< int >(val3);
14429   {
14430     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14431     result = (Xapian::SerialisationError *)new Xapian::SerialisationError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
14432     SWIG_PYTHON_THREAD_END_ALLOW;
14433   }
14434   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__SerialisationError, SWIG_POINTER_NEW |  0 );
14435   if (SWIG_IsNewObj(res1)) delete arg1;
14436   if (SWIG_IsNewObj(res2)) delete arg2;
14437   return resultobj;
14438 fail:
14439   if (SWIG_IsNewObj(res1)) delete arg1;
14440   if (SWIG_IsNewObj(res2)) delete arg2;
14441   return NULL;
14442 }
14443 
14444 
_wrap_new_SerialisationError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14445 SWIGINTERN PyObject *_wrap_new_SerialisationError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14446   PyObject *resultobj = 0;
14447   std::string *arg1 = 0 ;
14448   std::string *arg2 = 0 ;
14449   int res1 = SWIG_OLDOBJ ;
14450   int res2 = SWIG_OLDOBJ ;
14451   Xapian::SerialisationError *result = 0 ;
14452 
14453   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
14454   {
14455     std::string *ptr = (std::string *)0;
14456     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14457     if (!SWIG_IsOK(res1)) {
14458       if (res1 == INT_MIN) SWIG_fail;
14459       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14460     }
14461     if (!ptr) {
14462       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14463     }
14464     arg1 = ptr;
14465   }
14466   {
14467     std::string *ptr = (std::string *)0;
14468     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
14469     if (!SWIG_IsOK(res2)) {
14470       if (res2 == INT_MIN) SWIG_fail;
14471       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SerialisationError" "', argument " "2"" of type '" "std::string const &""'");
14472     }
14473     if (!ptr) {
14474       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SerialisationError" "', argument " "2"" of type '" "std::string const &""'");
14475     }
14476     arg2 = ptr;
14477   }
14478   {
14479     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14480     result = (Xapian::SerialisationError *)new Xapian::SerialisationError((std::string const &)*arg1,(std::string const &)*arg2);
14481     SWIG_PYTHON_THREAD_END_ALLOW;
14482   }
14483   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__SerialisationError, SWIG_POINTER_NEW |  0 );
14484   if (SWIG_IsNewObj(res1)) delete arg1;
14485   if (SWIG_IsNewObj(res2)) delete arg2;
14486   return resultobj;
14487 fail:
14488   if (SWIG_IsNewObj(res1)) delete arg1;
14489   if (SWIG_IsNewObj(res2)) delete arg2;
14490   return NULL;
14491 }
14492 
14493 
_wrap_new_SerialisationError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14494 SWIGINTERN PyObject *_wrap_new_SerialisationError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14495   PyObject *resultobj = 0;
14496   std::string *arg1 = 0 ;
14497   int res1 = SWIG_OLDOBJ ;
14498   Xapian::SerialisationError *result = 0 ;
14499 
14500   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14501   {
14502     std::string *ptr = (std::string *)0;
14503     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14504     if (!SWIG_IsOK(res1)) {
14505       if (res1 == INT_MIN) SWIG_fail;
14506       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14507     }
14508     if (!ptr) {
14509       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14510     }
14511     arg1 = ptr;
14512   }
14513   {
14514     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14515     result = (Xapian::SerialisationError *)new Xapian::SerialisationError((std::string const &)*arg1);
14516     SWIG_PYTHON_THREAD_END_ALLOW;
14517   }
14518   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__SerialisationError, SWIG_POINTER_NEW |  0 );
14519   if (SWIG_IsNewObj(res1)) delete arg1;
14520   return resultobj;
14521 fail:
14522   if (SWIG_IsNewObj(res1)) delete arg1;
14523   return NULL;
14524 }
14525 
14526 
_wrap_new_SerialisationError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14527 SWIGINTERN PyObject *_wrap_new_SerialisationError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14528   PyObject *resultobj = 0;
14529   std::string *arg1 = 0 ;
14530   int arg2 ;
14531   int res1 = SWIG_OLDOBJ ;
14532   int val2 ;
14533   int ecode2 = 0 ;
14534   Xapian::SerialisationError *result = 0 ;
14535 
14536   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
14537   {
14538     std::string *ptr = (std::string *)0;
14539     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14540     if (!SWIG_IsOK(res1)) {
14541       if (res1 == INT_MIN) SWIG_fail;
14542       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14543     }
14544     if (!ptr) {
14545       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SerialisationError" "', argument " "1"" of type '" "std::string const &""'");
14546     }
14547     arg1 = ptr;
14548   }
14549   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14550   if (!SWIG_IsOK(ecode2)) {
14551     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SerialisationError" "', argument " "2"" of type '" "int""'");
14552   }
14553   arg2 = static_cast< int >(val2);
14554   {
14555     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14556     result = (Xapian::SerialisationError *)new Xapian::SerialisationError((std::string const &)*arg1,arg2);
14557     SWIG_PYTHON_THREAD_END_ALLOW;
14558   }
14559   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__SerialisationError, SWIG_POINTER_NEW |  0 );
14560   if (SWIG_IsNewObj(res1)) delete arg1;
14561   return resultobj;
14562 fail:
14563   if (SWIG_IsNewObj(res1)) delete arg1;
14564   return NULL;
14565 }
14566 
14567 
_wrap_new_SerialisationError(PyObject * self,PyObject * args)14568 SWIGINTERN PyObject *_wrap_new_SerialisationError(PyObject *self, PyObject *args) {
14569   Py_ssize_t argc;
14570   PyObject *argv[4] = {
14571     0
14572   };
14573 
14574   if (!(argc = SWIG_Python_UnpackTuple(args,"new_SerialisationError",0,3,argv))) SWIG_fail;
14575   --argc;
14576   if (argc == 1) {
14577     return _wrap_new_SerialisationError__SWIG_3(self, argc, argv);
14578   }
14579   if (argc == 2) {
14580     int _v = 0;
14581     {
14582       {
14583         int res = SWIG_AsVal_int(argv[1], NULL);
14584         _v = SWIG_CheckState(res);
14585       }
14586     }
14587     if (!_v) goto check_2;
14588     return _wrap_new_SerialisationError__SWIG_4(self, argc, argv);
14589   }
14590 check_2:
14591 
14592   if (argc == 2) {
14593     return _wrap_new_SerialisationError__SWIG_2(self, argc, argv);
14594   }
14595   if (argc == 3) {
14596     int _v = 0;
14597     {
14598       {
14599         int res = SWIG_AsVal_int(argv[2], NULL);
14600         _v = SWIG_CheckState(res);
14601       }
14602     }
14603     if (!_v) goto check_4;
14604     return _wrap_new_SerialisationError__SWIG_1(self, argc, argv);
14605   }
14606 check_4:
14607 
14608   if (argc == 3) {
14609     return _wrap_new_SerialisationError__SWIG_0(self, argc, argv);
14610   }
14611 
14612 fail:
14613   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SerialisationError'.\n"
14614     "  Possible C/C++ prototypes are:\n"
14615     "    Xapian::SerialisationError::SerialisationError(std::string const &,std::string const &,char const *)\n"
14616     "    Xapian::SerialisationError::SerialisationError(std::string const &,std::string const &,int)\n"
14617     "    Xapian::SerialisationError::SerialisationError(std::string const &,std::string const &)\n"
14618     "    Xapian::SerialisationError::SerialisationError(std::string const &)\n"
14619     "    Xapian::SerialisationError::SerialisationError(std::string const &,int)\n");
14620   return 0;
14621 }
14622 
14623 
_wrap_delete_SerialisationError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14624 SWIGINTERN PyObject *_wrap_delete_SerialisationError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14625   PyObject *resultobj = 0;
14626   Xapian::SerialisationError *arg1 = (Xapian::SerialisationError *) 0 ;
14627   void *argp1 = 0 ;
14628   int res1 = 0 ;
14629   PyObject *swig_obj[1] ;
14630 
14631   if (!args) SWIG_fail;
14632   swig_obj[0] = args;
14633   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__SerialisationError, SWIG_POINTER_DISOWN |  0 );
14634   if (!SWIG_IsOK(res1)) {
14635     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SerialisationError" "', argument " "1"" of type '" "Xapian::SerialisationError *""'");
14636   }
14637   arg1 = reinterpret_cast< Xapian::SerialisationError * >(argp1);
14638   {
14639     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14640     delete arg1;
14641     SWIG_PYTHON_THREAD_END_ALLOW;
14642   }
14643   resultobj = SWIG_Py_Void();
14644   return resultobj;
14645 fail:
14646   return NULL;
14647 }
14648 
14649 
SerialisationError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14650 SWIGINTERN PyObject *SerialisationError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14651   PyObject *obj;
14652   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
14653   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__SerialisationError, SWIG_NewClientData(obj));
14654   return SWIG_Py_Void();
14655 }
14656 
SerialisationError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14657 SWIGINTERN PyObject *SerialisationError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14658   return SWIG_Python_InitShadowInstance(args);
14659 }
14660 
_wrap_new_RangeError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14661 SWIGINTERN PyObject *_wrap_new_RangeError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14662   PyObject *resultobj = 0;
14663   std::string *arg1 = 0 ;
14664   std::string *arg2 = 0 ;
14665   char *arg3 = (char *) 0 ;
14666   int res1 = SWIG_OLDOBJ ;
14667   int res2 = SWIG_OLDOBJ ;
14668   int res3 ;
14669   char *buf3 = 0 ;
14670   int alloc3 = 0 ;
14671   Xapian::RangeError *result = 0 ;
14672 
14673   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14674   {
14675     std::string *ptr = (std::string *)0;
14676     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14677     if (!SWIG_IsOK(res1)) {
14678       if (res1 == INT_MIN) SWIG_fail;
14679       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14680     }
14681     if (!ptr) {
14682       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14683     }
14684     arg1 = ptr;
14685   }
14686   {
14687     std::string *ptr = (std::string *)0;
14688     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
14689     if (!SWIG_IsOK(res2)) {
14690       if (res2 == INT_MIN) SWIG_fail;
14691       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_RangeError" "', argument " "2"" of type '" "std::string const &""'");
14692     }
14693     if (!ptr) {
14694       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeError" "', argument " "2"" of type '" "std::string const &""'");
14695     }
14696     arg2 = ptr;
14697   }
14698   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
14699   if (!SWIG_IsOK(res3)) {
14700     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_RangeError" "', argument " "3"" of type '" "char const *""'");
14701   }
14702   arg3 = reinterpret_cast< char * >(buf3);
14703   {
14704     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14705     result = (Xapian::RangeError *)new Xapian::RangeError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
14706     SWIG_PYTHON_THREAD_END_ALLOW;
14707   }
14708   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeError, SWIG_POINTER_NEW |  0 );
14709   if (SWIG_IsNewObj(res1)) delete arg1;
14710   if (SWIG_IsNewObj(res2)) delete arg2;
14711   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
14712   return resultobj;
14713 fail:
14714   if (SWIG_IsNewObj(res1)) delete arg1;
14715   if (SWIG_IsNewObj(res2)) delete arg2;
14716   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
14717   return NULL;
14718 }
14719 
14720 
_wrap_new_RangeError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14721 SWIGINTERN PyObject *_wrap_new_RangeError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14722   PyObject *resultobj = 0;
14723   std::string *arg1 = 0 ;
14724   std::string *arg2 = 0 ;
14725   int arg3 ;
14726   int res1 = SWIG_OLDOBJ ;
14727   int res2 = SWIG_OLDOBJ ;
14728   int val3 ;
14729   int ecode3 = 0 ;
14730   Xapian::RangeError *result = 0 ;
14731 
14732   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14733   {
14734     std::string *ptr = (std::string *)0;
14735     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14736     if (!SWIG_IsOK(res1)) {
14737       if (res1 == INT_MIN) SWIG_fail;
14738       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14739     }
14740     if (!ptr) {
14741       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14742     }
14743     arg1 = ptr;
14744   }
14745   {
14746     std::string *ptr = (std::string *)0;
14747     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
14748     if (!SWIG_IsOK(res2)) {
14749       if (res2 == INT_MIN) SWIG_fail;
14750       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_RangeError" "', argument " "2"" of type '" "std::string const &""'");
14751     }
14752     if (!ptr) {
14753       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeError" "', argument " "2"" of type '" "std::string const &""'");
14754     }
14755     arg2 = ptr;
14756   }
14757   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
14758   if (!SWIG_IsOK(ecode3)) {
14759     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RangeError" "', argument " "3"" of type '" "int""'");
14760   }
14761   arg3 = static_cast< int >(val3);
14762   {
14763     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14764     result = (Xapian::RangeError *)new Xapian::RangeError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
14765     SWIG_PYTHON_THREAD_END_ALLOW;
14766   }
14767   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeError, SWIG_POINTER_NEW |  0 );
14768   if (SWIG_IsNewObj(res1)) delete arg1;
14769   if (SWIG_IsNewObj(res2)) delete arg2;
14770   return resultobj;
14771 fail:
14772   if (SWIG_IsNewObj(res1)) delete arg1;
14773   if (SWIG_IsNewObj(res2)) delete arg2;
14774   return NULL;
14775 }
14776 
14777 
_wrap_new_RangeError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14778 SWIGINTERN PyObject *_wrap_new_RangeError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14779   PyObject *resultobj = 0;
14780   std::string *arg1 = 0 ;
14781   std::string *arg2 = 0 ;
14782   int res1 = SWIG_OLDOBJ ;
14783   int res2 = SWIG_OLDOBJ ;
14784   Xapian::RangeError *result = 0 ;
14785 
14786   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
14787   {
14788     std::string *ptr = (std::string *)0;
14789     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14790     if (!SWIG_IsOK(res1)) {
14791       if (res1 == INT_MIN) SWIG_fail;
14792       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14793     }
14794     if (!ptr) {
14795       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14796     }
14797     arg1 = ptr;
14798   }
14799   {
14800     std::string *ptr = (std::string *)0;
14801     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
14802     if (!SWIG_IsOK(res2)) {
14803       if (res2 == INT_MIN) SWIG_fail;
14804       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_RangeError" "', argument " "2"" of type '" "std::string const &""'");
14805     }
14806     if (!ptr) {
14807       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeError" "', argument " "2"" of type '" "std::string const &""'");
14808     }
14809     arg2 = ptr;
14810   }
14811   {
14812     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14813     result = (Xapian::RangeError *)new Xapian::RangeError((std::string const &)*arg1,(std::string const &)*arg2);
14814     SWIG_PYTHON_THREAD_END_ALLOW;
14815   }
14816   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeError, SWIG_POINTER_NEW |  0 );
14817   if (SWIG_IsNewObj(res1)) delete arg1;
14818   if (SWIG_IsNewObj(res2)) delete arg2;
14819   return resultobj;
14820 fail:
14821   if (SWIG_IsNewObj(res1)) delete arg1;
14822   if (SWIG_IsNewObj(res2)) delete arg2;
14823   return NULL;
14824 }
14825 
14826 
_wrap_new_RangeError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14827 SWIGINTERN PyObject *_wrap_new_RangeError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14828   PyObject *resultobj = 0;
14829   std::string *arg1 = 0 ;
14830   int res1 = SWIG_OLDOBJ ;
14831   Xapian::RangeError *result = 0 ;
14832 
14833   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14834   {
14835     std::string *ptr = (std::string *)0;
14836     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14837     if (!SWIG_IsOK(res1)) {
14838       if (res1 == INT_MIN) SWIG_fail;
14839       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14840     }
14841     if (!ptr) {
14842       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14843     }
14844     arg1 = ptr;
14845   }
14846   {
14847     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14848     result = (Xapian::RangeError *)new Xapian::RangeError((std::string const &)*arg1);
14849     SWIG_PYTHON_THREAD_END_ALLOW;
14850   }
14851   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeError, SWIG_POINTER_NEW |  0 );
14852   if (SWIG_IsNewObj(res1)) delete arg1;
14853   return resultobj;
14854 fail:
14855   if (SWIG_IsNewObj(res1)) delete arg1;
14856   return NULL;
14857 }
14858 
14859 
_wrap_new_RangeError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14860 SWIGINTERN PyObject *_wrap_new_RangeError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14861   PyObject *resultobj = 0;
14862   std::string *arg1 = 0 ;
14863   int arg2 ;
14864   int res1 = SWIG_OLDOBJ ;
14865   int val2 ;
14866   int ecode2 = 0 ;
14867   Xapian::RangeError *result = 0 ;
14868 
14869   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
14870   {
14871     std::string *ptr = (std::string *)0;
14872     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
14873     if (!SWIG_IsOK(res1)) {
14874       if (res1 == INT_MIN) SWIG_fail;
14875       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14876     }
14877     if (!ptr) {
14878       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeError" "', argument " "1"" of type '" "std::string const &""'");
14879     }
14880     arg1 = ptr;
14881   }
14882   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14883   if (!SWIG_IsOK(ecode2)) {
14884     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RangeError" "', argument " "2"" of type '" "int""'");
14885   }
14886   arg2 = static_cast< int >(val2);
14887   {
14888     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14889     result = (Xapian::RangeError *)new Xapian::RangeError((std::string const &)*arg1,arg2);
14890     SWIG_PYTHON_THREAD_END_ALLOW;
14891   }
14892   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeError, SWIG_POINTER_NEW |  0 );
14893   if (SWIG_IsNewObj(res1)) delete arg1;
14894   return resultobj;
14895 fail:
14896   if (SWIG_IsNewObj(res1)) delete arg1;
14897   return NULL;
14898 }
14899 
14900 
_wrap_new_RangeError(PyObject * self,PyObject * args)14901 SWIGINTERN PyObject *_wrap_new_RangeError(PyObject *self, PyObject *args) {
14902   Py_ssize_t argc;
14903   PyObject *argv[4] = {
14904     0
14905   };
14906 
14907   if (!(argc = SWIG_Python_UnpackTuple(args,"new_RangeError",0,3,argv))) SWIG_fail;
14908   --argc;
14909   if (argc == 1) {
14910     return _wrap_new_RangeError__SWIG_3(self, argc, argv);
14911   }
14912   if (argc == 2) {
14913     int _v = 0;
14914     {
14915       {
14916         int res = SWIG_AsVal_int(argv[1], NULL);
14917         _v = SWIG_CheckState(res);
14918       }
14919     }
14920     if (!_v) goto check_2;
14921     return _wrap_new_RangeError__SWIG_4(self, argc, argv);
14922   }
14923 check_2:
14924 
14925   if (argc == 2) {
14926     return _wrap_new_RangeError__SWIG_2(self, argc, argv);
14927   }
14928   if (argc == 3) {
14929     int _v = 0;
14930     {
14931       {
14932         int res = SWIG_AsVal_int(argv[2], NULL);
14933         _v = SWIG_CheckState(res);
14934       }
14935     }
14936     if (!_v) goto check_4;
14937     return _wrap_new_RangeError__SWIG_1(self, argc, argv);
14938   }
14939 check_4:
14940 
14941   if (argc == 3) {
14942     return _wrap_new_RangeError__SWIG_0(self, argc, argv);
14943   }
14944 
14945 fail:
14946   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RangeError'.\n"
14947     "  Possible C/C++ prototypes are:\n"
14948     "    Xapian::RangeError::RangeError(std::string const &,std::string const &,char const *)\n"
14949     "    Xapian::RangeError::RangeError(std::string const &,std::string const &,int)\n"
14950     "    Xapian::RangeError::RangeError(std::string const &,std::string const &)\n"
14951     "    Xapian::RangeError::RangeError(std::string const &)\n"
14952     "    Xapian::RangeError::RangeError(std::string const &,int)\n");
14953   return 0;
14954 }
14955 
14956 
_wrap_delete_RangeError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14957 SWIGINTERN PyObject *_wrap_delete_RangeError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14958   PyObject *resultobj = 0;
14959   Xapian::RangeError *arg1 = (Xapian::RangeError *) 0 ;
14960   void *argp1 = 0 ;
14961   int res1 = 0 ;
14962   PyObject *swig_obj[1] ;
14963 
14964   if (!args) SWIG_fail;
14965   swig_obj[0] = args;
14966   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RangeError, SWIG_POINTER_DISOWN |  0 );
14967   if (!SWIG_IsOK(res1)) {
14968     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RangeError" "', argument " "1"" of type '" "Xapian::RangeError *""'");
14969   }
14970   arg1 = reinterpret_cast< Xapian::RangeError * >(argp1);
14971   {
14972     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
14973     delete arg1;
14974     SWIG_PYTHON_THREAD_END_ALLOW;
14975   }
14976   resultobj = SWIG_Py_Void();
14977   return resultobj;
14978 fail:
14979   return NULL;
14980 }
14981 
14982 
RangeError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14983 SWIGINTERN PyObject *RangeError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14984   PyObject *obj;
14985   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
14986   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__RangeError, SWIG_NewClientData(obj));
14987   return SWIG_Py_Void();
14988 }
14989 
RangeError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14990 SWIGINTERN PyObject *RangeError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14991   return SWIG_Python_InitShadowInstance(args);
14992 }
14993 
_wrap_new_WildcardError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)14994 SWIGINTERN PyObject *_wrap_new_WildcardError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14995   PyObject *resultobj = 0;
14996   std::string *arg1 = 0 ;
14997   std::string *arg2 = 0 ;
14998   char *arg3 = (char *) 0 ;
14999   int res1 = SWIG_OLDOBJ ;
15000   int res2 = SWIG_OLDOBJ ;
15001   int res3 ;
15002   char *buf3 = 0 ;
15003   int alloc3 = 0 ;
15004   Xapian::WildcardError *result = 0 ;
15005 
15006   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
15007   {
15008     std::string *ptr = (std::string *)0;
15009     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15010     if (!SWIG_IsOK(res1)) {
15011       if (res1 == INT_MIN) SWIG_fail;
15012       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
15013     }
15014     if (!ptr) {
15015       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
15016     }
15017     arg1 = ptr;
15018   }
15019   {
15020     std::string *ptr = (std::string *)0;
15021     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
15022     if (!SWIG_IsOK(res2)) {
15023       if (res2 == INT_MIN) SWIG_fail;
15024       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_WildcardError" "', argument " "2"" of type '" "std::string const &""'");
15025     }
15026     if (!ptr) {
15027       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WildcardError" "', argument " "2"" of type '" "std::string const &""'");
15028     }
15029     arg2 = ptr;
15030   }
15031   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
15032   if (!SWIG_IsOK(res3)) {
15033     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_WildcardError" "', argument " "3"" of type '" "char const *""'");
15034   }
15035   arg3 = reinterpret_cast< char * >(buf3);
15036   {
15037     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15038     result = (Xapian::WildcardError *)new Xapian::WildcardError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
15039     SWIG_PYTHON_THREAD_END_ALLOW;
15040   }
15041   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WildcardError, SWIG_POINTER_NEW |  0 );
15042   if (SWIG_IsNewObj(res1)) delete arg1;
15043   if (SWIG_IsNewObj(res2)) delete arg2;
15044   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
15045   return resultobj;
15046 fail:
15047   if (SWIG_IsNewObj(res1)) delete arg1;
15048   if (SWIG_IsNewObj(res2)) delete arg2;
15049   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
15050   return NULL;
15051 }
15052 
15053 
_wrap_new_WildcardError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15054 SWIGINTERN PyObject *_wrap_new_WildcardError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15055   PyObject *resultobj = 0;
15056   std::string *arg1 = 0 ;
15057   std::string *arg2 = 0 ;
15058   int arg3 ;
15059   int res1 = SWIG_OLDOBJ ;
15060   int res2 = SWIG_OLDOBJ ;
15061   int val3 ;
15062   int ecode3 = 0 ;
15063   Xapian::WildcardError *result = 0 ;
15064 
15065   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
15066   {
15067     std::string *ptr = (std::string *)0;
15068     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15069     if (!SWIG_IsOK(res1)) {
15070       if (res1 == INT_MIN) SWIG_fail;
15071       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
15072     }
15073     if (!ptr) {
15074       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
15075     }
15076     arg1 = ptr;
15077   }
15078   {
15079     std::string *ptr = (std::string *)0;
15080     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
15081     if (!SWIG_IsOK(res2)) {
15082       if (res2 == INT_MIN) SWIG_fail;
15083       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_WildcardError" "', argument " "2"" of type '" "std::string const &""'");
15084     }
15085     if (!ptr) {
15086       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WildcardError" "', argument " "2"" of type '" "std::string const &""'");
15087     }
15088     arg2 = ptr;
15089   }
15090   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
15091   if (!SWIG_IsOK(ecode3)) {
15092     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_WildcardError" "', argument " "3"" of type '" "int""'");
15093   }
15094   arg3 = static_cast< int >(val3);
15095   {
15096     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15097     result = (Xapian::WildcardError *)new Xapian::WildcardError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
15098     SWIG_PYTHON_THREAD_END_ALLOW;
15099   }
15100   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WildcardError, SWIG_POINTER_NEW |  0 );
15101   if (SWIG_IsNewObj(res1)) delete arg1;
15102   if (SWIG_IsNewObj(res2)) delete arg2;
15103   return resultobj;
15104 fail:
15105   if (SWIG_IsNewObj(res1)) delete arg1;
15106   if (SWIG_IsNewObj(res2)) delete arg2;
15107   return NULL;
15108 }
15109 
15110 
_wrap_new_WildcardError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15111 SWIGINTERN PyObject *_wrap_new_WildcardError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15112   PyObject *resultobj = 0;
15113   std::string *arg1 = 0 ;
15114   std::string *arg2 = 0 ;
15115   int res1 = SWIG_OLDOBJ ;
15116   int res2 = SWIG_OLDOBJ ;
15117   Xapian::WildcardError *result = 0 ;
15118 
15119   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
15120   {
15121     std::string *ptr = (std::string *)0;
15122     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15123     if (!SWIG_IsOK(res1)) {
15124       if (res1 == INT_MIN) SWIG_fail;
15125       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
15126     }
15127     if (!ptr) {
15128       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
15129     }
15130     arg1 = ptr;
15131   }
15132   {
15133     std::string *ptr = (std::string *)0;
15134     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
15135     if (!SWIG_IsOK(res2)) {
15136       if (res2 == INT_MIN) SWIG_fail;
15137       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_WildcardError" "', argument " "2"" of type '" "std::string const &""'");
15138     }
15139     if (!ptr) {
15140       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WildcardError" "', argument " "2"" of type '" "std::string const &""'");
15141     }
15142     arg2 = ptr;
15143   }
15144   {
15145     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15146     result = (Xapian::WildcardError *)new Xapian::WildcardError((std::string const &)*arg1,(std::string const &)*arg2);
15147     SWIG_PYTHON_THREAD_END_ALLOW;
15148   }
15149   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WildcardError, SWIG_POINTER_NEW |  0 );
15150   if (SWIG_IsNewObj(res1)) delete arg1;
15151   if (SWIG_IsNewObj(res2)) delete arg2;
15152   return resultobj;
15153 fail:
15154   if (SWIG_IsNewObj(res1)) delete arg1;
15155   if (SWIG_IsNewObj(res2)) delete arg2;
15156   return NULL;
15157 }
15158 
15159 
_wrap_new_WildcardError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15160 SWIGINTERN PyObject *_wrap_new_WildcardError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15161   PyObject *resultobj = 0;
15162   std::string *arg1 = 0 ;
15163   int res1 = SWIG_OLDOBJ ;
15164   Xapian::WildcardError *result = 0 ;
15165 
15166   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
15167   {
15168     std::string *ptr = (std::string *)0;
15169     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15170     if (!SWIG_IsOK(res1)) {
15171       if (res1 == INT_MIN) SWIG_fail;
15172       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
15173     }
15174     if (!ptr) {
15175       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
15176     }
15177     arg1 = ptr;
15178   }
15179   {
15180     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15181     result = (Xapian::WildcardError *)new Xapian::WildcardError((std::string const &)*arg1);
15182     SWIG_PYTHON_THREAD_END_ALLOW;
15183   }
15184   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WildcardError, SWIG_POINTER_NEW |  0 );
15185   if (SWIG_IsNewObj(res1)) delete arg1;
15186   return resultobj;
15187 fail:
15188   if (SWIG_IsNewObj(res1)) delete arg1;
15189   return NULL;
15190 }
15191 
15192 
_wrap_new_WildcardError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15193 SWIGINTERN PyObject *_wrap_new_WildcardError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15194   PyObject *resultobj = 0;
15195   std::string *arg1 = 0 ;
15196   int arg2 ;
15197   int res1 = SWIG_OLDOBJ ;
15198   int val2 ;
15199   int ecode2 = 0 ;
15200   Xapian::WildcardError *result = 0 ;
15201 
15202   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
15203   {
15204     std::string *ptr = (std::string *)0;
15205     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15206     if (!SWIG_IsOK(res1)) {
15207       if (res1 == INT_MIN) SWIG_fail;
15208       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
15209     }
15210     if (!ptr) {
15211       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WildcardError" "', argument " "1"" of type '" "std::string const &""'");
15212     }
15213     arg1 = ptr;
15214   }
15215   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15216   if (!SWIG_IsOK(ecode2)) {
15217     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_WildcardError" "', argument " "2"" of type '" "int""'");
15218   }
15219   arg2 = static_cast< int >(val2);
15220   {
15221     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15222     result = (Xapian::WildcardError *)new Xapian::WildcardError((std::string const &)*arg1,arg2);
15223     SWIG_PYTHON_THREAD_END_ALLOW;
15224   }
15225   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WildcardError, SWIG_POINTER_NEW |  0 );
15226   if (SWIG_IsNewObj(res1)) delete arg1;
15227   return resultobj;
15228 fail:
15229   if (SWIG_IsNewObj(res1)) delete arg1;
15230   return NULL;
15231 }
15232 
15233 
_wrap_new_WildcardError(PyObject * self,PyObject * args)15234 SWIGINTERN PyObject *_wrap_new_WildcardError(PyObject *self, PyObject *args) {
15235   Py_ssize_t argc;
15236   PyObject *argv[4] = {
15237     0
15238   };
15239 
15240   if (!(argc = SWIG_Python_UnpackTuple(args,"new_WildcardError",0,3,argv))) SWIG_fail;
15241   --argc;
15242   if (argc == 1) {
15243     return _wrap_new_WildcardError__SWIG_3(self, argc, argv);
15244   }
15245   if (argc == 2) {
15246     int _v = 0;
15247     {
15248       {
15249         int res = SWIG_AsVal_int(argv[1], NULL);
15250         _v = SWIG_CheckState(res);
15251       }
15252     }
15253     if (!_v) goto check_2;
15254     return _wrap_new_WildcardError__SWIG_4(self, argc, argv);
15255   }
15256 check_2:
15257 
15258   if (argc == 2) {
15259     return _wrap_new_WildcardError__SWIG_2(self, argc, argv);
15260   }
15261   if (argc == 3) {
15262     int _v = 0;
15263     {
15264       {
15265         int res = SWIG_AsVal_int(argv[2], NULL);
15266         _v = SWIG_CheckState(res);
15267       }
15268     }
15269     if (!_v) goto check_4;
15270     return _wrap_new_WildcardError__SWIG_1(self, argc, argv);
15271   }
15272 check_4:
15273 
15274   if (argc == 3) {
15275     return _wrap_new_WildcardError__SWIG_0(self, argc, argv);
15276   }
15277 
15278 fail:
15279   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_WildcardError'.\n"
15280     "  Possible C/C++ prototypes are:\n"
15281     "    Xapian::WildcardError::WildcardError(std::string const &,std::string const &,char const *)\n"
15282     "    Xapian::WildcardError::WildcardError(std::string const &,std::string const &,int)\n"
15283     "    Xapian::WildcardError::WildcardError(std::string const &,std::string const &)\n"
15284     "    Xapian::WildcardError::WildcardError(std::string const &)\n"
15285     "    Xapian::WildcardError::WildcardError(std::string const &,int)\n");
15286   return 0;
15287 }
15288 
15289 
_wrap_delete_WildcardError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15290 SWIGINTERN PyObject *_wrap_delete_WildcardError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15291   PyObject *resultobj = 0;
15292   Xapian::WildcardError *arg1 = (Xapian::WildcardError *) 0 ;
15293   void *argp1 = 0 ;
15294   int res1 = 0 ;
15295   PyObject *swig_obj[1] ;
15296 
15297   if (!args) SWIG_fail;
15298   swig_obj[0] = args;
15299   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WildcardError, SWIG_POINTER_DISOWN |  0 );
15300   if (!SWIG_IsOK(res1)) {
15301     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_WildcardError" "', argument " "1"" of type '" "Xapian::WildcardError *""'");
15302   }
15303   arg1 = reinterpret_cast< Xapian::WildcardError * >(argp1);
15304   {
15305     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15306     delete arg1;
15307     SWIG_PYTHON_THREAD_END_ALLOW;
15308   }
15309   resultobj = SWIG_Py_Void();
15310   return resultobj;
15311 fail:
15312   return NULL;
15313 }
15314 
15315 
WildcardError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15316 SWIGINTERN PyObject *WildcardError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15317   PyObject *obj;
15318   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
15319   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__WildcardError, SWIG_NewClientData(obj));
15320   return SWIG_Py_Void();
15321 }
15322 
WildcardError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15323 SWIGINTERN PyObject *WildcardError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15324   return SWIG_Python_InitShadowInstance(args);
15325 }
15326 
_wrap_new_DatabaseNotFoundError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15327 SWIGINTERN PyObject *_wrap_new_DatabaseNotFoundError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15328   PyObject *resultobj = 0;
15329   std::string *arg1 = 0 ;
15330   std::string *arg2 = 0 ;
15331   char *arg3 = (char *) 0 ;
15332   int res1 = SWIG_OLDOBJ ;
15333   int res2 = SWIG_OLDOBJ ;
15334   int res3 ;
15335   char *buf3 = 0 ;
15336   int alloc3 = 0 ;
15337   Xapian::DatabaseNotFoundError *result = 0 ;
15338 
15339   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
15340   {
15341     std::string *ptr = (std::string *)0;
15342     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15343     if (!SWIG_IsOK(res1)) {
15344       if (res1 == INT_MIN) SWIG_fail;
15345       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15346     }
15347     if (!ptr) {
15348       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15349     }
15350     arg1 = ptr;
15351   }
15352   {
15353     std::string *ptr = (std::string *)0;
15354     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
15355     if (!SWIG_IsOK(res2)) {
15356       if (res2 == INT_MIN) SWIG_fail;
15357       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
15358     }
15359     if (!ptr) {
15360       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
15361     }
15362     arg2 = ptr;
15363   }
15364   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
15365   if (!SWIG_IsOK(res3)) {
15366     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatabaseNotFoundError" "', argument " "3"" of type '" "char const *""'");
15367   }
15368   arg3 = reinterpret_cast< char * >(buf3);
15369   {
15370     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15371     result = (Xapian::DatabaseNotFoundError *)new Xapian::DatabaseNotFoundError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
15372     SWIG_PYTHON_THREAD_END_ALLOW;
15373   }
15374   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseNotFoundError, SWIG_POINTER_NEW |  0 );
15375   if (SWIG_IsNewObj(res1)) delete arg1;
15376   if (SWIG_IsNewObj(res2)) delete arg2;
15377   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
15378   return resultobj;
15379 fail:
15380   if (SWIG_IsNewObj(res1)) delete arg1;
15381   if (SWIG_IsNewObj(res2)) delete arg2;
15382   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
15383   return NULL;
15384 }
15385 
15386 
_wrap_new_DatabaseNotFoundError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15387 SWIGINTERN PyObject *_wrap_new_DatabaseNotFoundError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15388   PyObject *resultobj = 0;
15389   std::string *arg1 = 0 ;
15390   std::string *arg2 = 0 ;
15391   int arg3 ;
15392   int res1 = SWIG_OLDOBJ ;
15393   int res2 = SWIG_OLDOBJ ;
15394   int val3 ;
15395   int ecode3 = 0 ;
15396   Xapian::DatabaseNotFoundError *result = 0 ;
15397 
15398   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
15399   {
15400     std::string *ptr = (std::string *)0;
15401     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15402     if (!SWIG_IsOK(res1)) {
15403       if (res1 == INT_MIN) SWIG_fail;
15404       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15405     }
15406     if (!ptr) {
15407       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15408     }
15409     arg1 = ptr;
15410   }
15411   {
15412     std::string *ptr = (std::string *)0;
15413     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
15414     if (!SWIG_IsOK(res2)) {
15415       if (res2 == INT_MIN) SWIG_fail;
15416       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
15417     }
15418     if (!ptr) {
15419       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
15420     }
15421     arg2 = ptr;
15422   }
15423   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
15424   if (!SWIG_IsOK(ecode3)) {
15425     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DatabaseNotFoundError" "', argument " "3"" of type '" "int""'");
15426   }
15427   arg3 = static_cast< int >(val3);
15428   {
15429     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15430     result = (Xapian::DatabaseNotFoundError *)new Xapian::DatabaseNotFoundError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
15431     SWIG_PYTHON_THREAD_END_ALLOW;
15432   }
15433   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseNotFoundError, SWIG_POINTER_NEW |  0 );
15434   if (SWIG_IsNewObj(res1)) delete arg1;
15435   if (SWIG_IsNewObj(res2)) delete arg2;
15436   return resultobj;
15437 fail:
15438   if (SWIG_IsNewObj(res1)) delete arg1;
15439   if (SWIG_IsNewObj(res2)) delete arg2;
15440   return NULL;
15441 }
15442 
15443 
_wrap_new_DatabaseNotFoundError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15444 SWIGINTERN PyObject *_wrap_new_DatabaseNotFoundError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15445   PyObject *resultobj = 0;
15446   std::string *arg1 = 0 ;
15447   std::string *arg2 = 0 ;
15448   int res1 = SWIG_OLDOBJ ;
15449   int res2 = SWIG_OLDOBJ ;
15450   Xapian::DatabaseNotFoundError *result = 0 ;
15451 
15452   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
15453   {
15454     std::string *ptr = (std::string *)0;
15455     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15456     if (!SWIG_IsOK(res1)) {
15457       if (res1 == INT_MIN) SWIG_fail;
15458       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15459     }
15460     if (!ptr) {
15461       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15462     }
15463     arg1 = ptr;
15464   }
15465   {
15466     std::string *ptr = (std::string *)0;
15467     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
15468     if (!SWIG_IsOK(res2)) {
15469       if (res2 == INT_MIN) SWIG_fail;
15470       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
15471     }
15472     if (!ptr) {
15473       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseNotFoundError" "', argument " "2"" of type '" "std::string const &""'");
15474     }
15475     arg2 = ptr;
15476   }
15477   {
15478     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15479     result = (Xapian::DatabaseNotFoundError *)new Xapian::DatabaseNotFoundError((std::string const &)*arg1,(std::string const &)*arg2);
15480     SWIG_PYTHON_THREAD_END_ALLOW;
15481   }
15482   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseNotFoundError, SWIG_POINTER_NEW |  0 );
15483   if (SWIG_IsNewObj(res1)) delete arg1;
15484   if (SWIG_IsNewObj(res2)) delete arg2;
15485   return resultobj;
15486 fail:
15487   if (SWIG_IsNewObj(res1)) delete arg1;
15488   if (SWIG_IsNewObj(res2)) delete arg2;
15489   return NULL;
15490 }
15491 
15492 
_wrap_new_DatabaseNotFoundError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15493 SWIGINTERN PyObject *_wrap_new_DatabaseNotFoundError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15494   PyObject *resultobj = 0;
15495   std::string *arg1 = 0 ;
15496   int res1 = SWIG_OLDOBJ ;
15497   Xapian::DatabaseNotFoundError *result = 0 ;
15498 
15499   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
15500   {
15501     std::string *ptr = (std::string *)0;
15502     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15503     if (!SWIG_IsOK(res1)) {
15504       if (res1 == INT_MIN) SWIG_fail;
15505       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15506     }
15507     if (!ptr) {
15508       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15509     }
15510     arg1 = ptr;
15511   }
15512   {
15513     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15514     result = (Xapian::DatabaseNotFoundError *)new Xapian::DatabaseNotFoundError((std::string const &)*arg1);
15515     SWIG_PYTHON_THREAD_END_ALLOW;
15516   }
15517   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseNotFoundError, SWIG_POINTER_NEW |  0 );
15518   if (SWIG_IsNewObj(res1)) delete arg1;
15519   return resultobj;
15520 fail:
15521   if (SWIG_IsNewObj(res1)) delete arg1;
15522   return NULL;
15523 }
15524 
15525 
_wrap_new_DatabaseNotFoundError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15526 SWIGINTERN PyObject *_wrap_new_DatabaseNotFoundError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15527   PyObject *resultobj = 0;
15528   std::string *arg1 = 0 ;
15529   int arg2 ;
15530   int res1 = SWIG_OLDOBJ ;
15531   int val2 ;
15532   int ecode2 = 0 ;
15533   Xapian::DatabaseNotFoundError *result = 0 ;
15534 
15535   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
15536   {
15537     std::string *ptr = (std::string *)0;
15538     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15539     if (!SWIG_IsOK(res1)) {
15540       if (res1 == INT_MIN) SWIG_fail;
15541       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15542     }
15543     if (!ptr) {
15544       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseNotFoundError" "', argument " "1"" of type '" "std::string const &""'");
15545     }
15546     arg1 = ptr;
15547   }
15548   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15549   if (!SWIG_IsOK(ecode2)) {
15550     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatabaseNotFoundError" "', argument " "2"" of type '" "int""'");
15551   }
15552   arg2 = static_cast< int >(val2);
15553   {
15554     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15555     result = (Xapian::DatabaseNotFoundError *)new Xapian::DatabaseNotFoundError((std::string const &)*arg1,arg2);
15556     SWIG_PYTHON_THREAD_END_ALLOW;
15557   }
15558   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseNotFoundError, SWIG_POINTER_NEW |  0 );
15559   if (SWIG_IsNewObj(res1)) delete arg1;
15560   return resultobj;
15561 fail:
15562   if (SWIG_IsNewObj(res1)) delete arg1;
15563   return NULL;
15564 }
15565 
15566 
_wrap_new_DatabaseNotFoundError(PyObject * self,PyObject * args)15567 SWIGINTERN PyObject *_wrap_new_DatabaseNotFoundError(PyObject *self, PyObject *args) {
15568   Py_ssize_t argc;
15569   PyObject *argv[4] = {
15570     0
15571   };
15572 
15573   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseNotFoundError",0,3,argv))) SWIG_fail;
15574   --argc;
15575   if (argc == 1) {
15576     return _wrap_new_DatabaseNotFoundError__SWIG_3(self, argc, argv);
15577   }
15578   if (argc == 2) {
15579     int _v = 0;
15580     {
15581       {
15582         int res = SWIG_AsVal_int(argv[1], NULL);
15583         _v = SWIG_CheckState(res);
15584       }
15585     }
15586     if (!_v) goto check_2;
15587     return _wrap_new_DatabaseNotFoundError__SWIG_4(self, argc, argv);
15588   }
15589 check_2:
15590 
15591   if (argc == 2) {
15592     return _wrap_new_DatabaseNotFoundError__SWIG_2(self, argc, argv);
15593   }
15594   if (argc == 3) {
15595     int _v = 0;
15596     {
15597       {
15598         int res = SWIG_AsVal_int(argv[2], NULL);
15599         _v = SWIG_CheckState(res);
15600       }
15601     }
15602     if (!_v) goto check_4;
15603     return _wrap_new_DatabaseNotFoundError__SWIG_1(self, argc, argv);
15604   }
15605 check_4:
15606 
15607   if (argc == 3) {
15608     return _wrap_new_DatabaseNotFoundError__SWIG_0(self, argc, argv);
15609   }
15610 
15611 fail:
15612   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DatabaseNotFoundError'.\n"
15613     "  Possible C/C++ prototypes are:\n"
15614     "    Xapian::DatabaseNotFoundError::DatabaseNotFoundError(std::string const &,std::string const &,char const *)\n"
15615     "    Xapian::DatabaseNotFoundError::DatabaseNotFoundError(std::string const &,std::string const &,int)\n"
15616     "    Xapian::DatabaseNotFoundError::DatabaseNotFoundError(std::string const &,std::string const &)\n"
15617     "    Xapian::DatabaseNotFoundError::DatabaseNotFoundError(std::string const &)\n"
15618     "    Xapian::DatabaseNotFoundError::DatabaseNotFoundError(std::string const &,int)\n");
15619   return 0;
15620 }
15621 
15622 
_wrap_delete_DatabaseNotFoundError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15623 SWIGINTERN PyObject *_wrap_delete_DatabaseNotFoundError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15624   PyObject *resultobj = 0;
15625   Xapian::DatabaseNotFoundError *arg1 = (Xapian::DatabaseNotFoundError *) 0 ;
15626   void *argp1 = 0 ;
15627   int res1 = 0 ;
15628   PyObject *swig_obj[1] ;
15629 
15630   if (!args) SWIG_fail;
15631   swig_obj[0] = args;
15632   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DatabaseNotFoundError, SWIG_POINTER_DISOWN |  0 );
15633   if (!SWIG_IsOK(res1)) {
15634     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DatabaseNotFoundError" "', argument " "1"" of type '" "Xapian::DatabaseNotFoundError *""'");
15635   }
15636   arg1 = reinterpret_cast< Xapian::DatabaseNotFoundError * >(argp1);
15637   {
15638     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15639     delete arg1;
15640     SWIG_PYTHON_THREAD_END_ALLOW;
15641   }
15642   resultobj = SWIG_Py_Void();
15643   return resultobj;
15644 fail:
15645   return NULL;
15646 }
15647 
15648 
DatabaseNotFoundError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15649 SWIGINTERN PyObject *DatabaseNotFoundError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15650   PyObject *obj;
15651   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
15652   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DatabaseNotFoundError, SWIG_NewClientData(obj));
15653   return SWIG_Py_Void();
15654 }
15655 
DatabaseNotFoundError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15656 SWIGINTERN PyObject *DatabaseNotFoundError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15657   return SWIG_Python_InitShadowInstance(args);
15658 }
15659 
_wrap_new_DatabaseClosedError__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15660 SWIGINTERN PyObject *_wrap_new_DatabaseClosedError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15661   PyObject *resultobj = 0;
15662   std::string *arg1 = 0 ;
15663   std::string *arg2 = 0 ;
15664   char *arg3 = (char *) 0 ;
15665   int res1 = SWIG_OLDOBJ ;
15666   int res2 = SWIG_OLDOBJ ;
15667   int res3 ;
15668   char *buf3 = 0 ;
15669   int alloc3 = 0 ;
15670   Xapian::DatabaseClosedError *result = 0 ;
15671 
15672   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
15673   {
15674     std::string *ptr = (std::string *)0;
15675     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15676     if (!SWIG_IsOK(res1)) {
15677       if (res1 == INT_MIN) SWIG_fail;
15678       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15679     }
15680     if (!ptr) {
15681       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15682     }
15683     arg1 = ptr;
15684   }
15685   {
15686     std::string *ptr = (std::string *)0;
15687     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
15688     if (!SWIG_IsOK(res2)) {
15689       if (res2 == INT_MIN) SWIG_fail;
15690       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseClosedError" "', argument " "2"" of type '" "std::string const &""'");
15691     }
15692     if (!ptr) {
15693       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseClosedError" "', argument " "2"" of type '" "std::string const &""'");
15694     }
15695     arg2 = ptr;
15696   }
15697   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
15698   if (!SWIG_IsOK(res3)) {
15699     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatabaseClosedError" "', argument " "3"" of type '" "char const *""'");
15700   }
15701   arg3 = reinterpret_cast< char * >(buf3);
15702   {
15703     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15704     result = (Xapian::DatabaseClosedError *)new Xapian::DatabaseClosedError((std::string const &)*arg1,(std::string const &)*arg2,(char const *)arg3);
15705     SWIG_PYTHON_THREAD_END_ALLOW;
15706   }
15707   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseClosedError, SWIG_POINTER_NEW |  0 );
15708   if (SWIG_IsNewObj(res1)) delete arg1;
15709   if (SWIG_IsNewObj(res2)) delete arg2;
15710   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
15711   return resultobj;
15712 fail:
15713   if (SWIG_IsNewObj(res1)) delete arg1;
15714   if (SWIG_IsNewObj(res2)) delete arg2;
15715   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
15716   return NULL;
15717 }
15718 
15719 
_wrap_new_DatabaseClosedError__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15720 SWIGINTERN PyObject *_wrap_new_DatabaseClosedError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15721   PyObject *resultobj = 0;
15722   std::string *arg1 = 0 ;
15723   std::string *arg2 = 0 ;
15724   int arg3 ;
15725   int res1 = SWIG_OLDOBJ ;
15726   int res2 = SWIG_OLDOBJ ;
15727   int val3 ;
15728   int ecode3 = 0 ;
15729   Xapian::DatabaseClosedError *result = 0 ;
15730 
15731   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
15732   {
15733     std::string *ptr = (std::string *)0;
15734     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15735     if (!SWIG_IsOK(res1)) {
15736       if (res1 == INT_MIN) SWIG_fail;
15737       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15738     }
15739     if (!ptr) {
15740       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15741     }
15742     arg1 = ptr;
15743   }
15744   {
15745     std::string *ptr = (std::string *)0;
15746     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
15747     if (!SWIG_IsOK(res2)) {
15748       if (res2 == INT_MIN) SWIG_fail;
15749       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseClosedError" "', argument " "2"" of type '" "std::string const &""'");
15750     }
15751     if (!ptr) {
15752       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseClosedError" "', argument " "2"" of type '" "std::string const &""'");
15753     }
15754     arg2 = ptr;
15755   }
15756   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
15757   if (!SWIG_IsOK(ecode3)) {
15758     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DatabaseClosedError" "', argument " "3"" of type '" "int""'");
15759   }
15760   arg3 = static_cast< int >(val3);
15761   {
15762     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15763     result = (Xapian::DatabaseClosedError *)new Xapian::DatabaseClosedError((std::string const &)*arg1,(std::string const &)*arg2,arg3);
15764     SWIG_PYTHON_THREAD_END_ALLOW;
15765   }
15766   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseClosedError, SWIG_POINTER_NEW |  0 );
15767   if (SWIG_IsNewObj(res1)) delete arg1;
15768   if (SWIG_IsNewObj(res2)) delete arg2;
15769   return resultobj;
15770 fail:
15771   if (SWIG_IsNewObj(res1)) delete arg1;
15772   if (SWIG_IsNewObj(res2)) delete arg2;
15773   return NULL;
15774 }
15775 
15776 
_wrap_new_DatabaseClosedError__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15777 SWIGINTERN PyObject *_wrap_new_DatabaseClosedError__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15778   PyObject *resultobj = 0;
15779   std::string *arg1 = 0 ;
15780   std::string *arg2 = 0 ;
15781   int res1 = SWIG_OLDOBJ ;
15782   int res2 = SWIG_OLDOBJ ;
15783   Xapian::DatabaseClosedError *result = 0 ;
15784 
15785   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
15786   {
15787     std::string *ptr = (std::string *)0;
15788     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15789     if (!SWIG_IsOK(res1)) {
15790       if (res1 == INT_MIN) SWIG_fail;
15791       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15792     }
15793     if (!ptr) {
15794       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15795     }
15796     arg1 = ptr;
15797   }
15798   {
15799     std::string *ptr = (std::string *)0;
15800     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
15801     if (!SWIG_IsOK(res2)) {
15802       if (res2 == INT_MIN) SWIG_fail;
15803       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatabaseClosedError" "', argument " "2"" of type '" "std::string const &""'");
15804     }
15805     if (!ptr) {
15806       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseClosedError" "', argument " "2"" of type '" "std::string const &""'");
15807     }
15808     arg2 = ptr;
15809   }
15810   {
15811     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15812     result = (Xapian::DatabaseClosedError *)new Xapian::DatabaseClosedError((std::string const &)*arg1,(std::string const &)*arg2);
15813     SWIG_PYTHON_THREAD_END_ALLOW;
15814   }
15815   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseClosedError, SWIG_POINTER_NEW |  0 );
15816   if (SWIG_IsNewObj(res1)) delete arg1;
15817   if (SWIG_IsNewObj(res2)) delete arg2;
15818   return resultobj;
15819 fail:
15820   if (SWIG_IsNewObj(res1)) delete arg1;
15821   if (SWIG_IsNewObj(res2)) delete arg2;
15822   return NULL;
15823 }
15824 
15825 
_wrap_new_DatabaseClosedError__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15826 SWIGINTERN PyObject *_wrap_new_DatabaseClosedError__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15827   PyObject *resultobj = 0;
15828   std::string *arg1 = 0 ;
15829   int res1 = SWIG_OLDOBJ ;
15830   Xapian::DatabaseClosedError *result = 0 ;
15831 
15832   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
15833   {
15834     std::string *ptr = (std::string *)0;
15835     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15836     if (!SWIG_IsOK(res1)) {
15837       if (res1 == INT_MIN) SWIG_fail;
15838       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15839     }
15840     if (!ptr) {
15841       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15842     }
15843     arg1 = ptr;
15844   }
15845   {
15846     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15847     result = (Xapian::DatabaseClosedError *)new Xapian::DatabaseClosedError((std::string const &)*arg1);
15848     SWIG_PYTHON_THREAD_END_ALLOW;
15849   }
15850   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseClosedError, SWIG_POINTER_NEW |  0 );
15851   if (SWIG_IsNewObj(res1)) delete arg1;
15852   return resultobj;
15853 fail:
15854   if (SWIG_IsNewObj(res1)) delete arg1;
15855   return NULL;
15856 }
15857 
15858 
_wrap_new_DatabaseClosedError__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)15859 SWIGINTERN PyObject *_wrap_new_DatabaseClosedError__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
15860   PyObject *resultobj = 0;
15861   std::string *arg1 = 0 ;
15862   int arg2 ;
15863   int res1 = SWIG_OLDOBJ ;
15864   int val2 ;
15865   int ecode2 = 0 ;
15866   Xapian::DatabaseClosedError *result = 0 ;
15867 
15868   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
15869   {
15870     std::string *ptr = (std::string *)0;
15871     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
15872     if (!SWIG_IsOK(res1)) {
15873       if (res1 == INT_MIN) SWIG_fail;
15874       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15875     }
15876     if (!ptr) {
15877       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatabaseClosedError" "', argument " "1"" of type '" "std::string const &""'");
15878     }
15879     arg1 = ptr;
15880   }
15881   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15882   if (!SWIG_IsOK(ecode2)) {
15883     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatabaseClosedError" "', argument " "2"" of type '" "int""'");
15884   }
15885   arg2 = static_cast< int >(val2);
15886   {
15887     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15888     result = (Xapian::DatabaseClosedError *)new Xapian::DatabaseClosedError((std::string const &)*arg1,arg2);
15889     SWIG_PYTHON_THREAD_END_ALLOW;
15890   }
15891   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DatabaseClosedError, SWIG_POINTER_NEW |  0 );
15892   if (SWIG_IsNewObj(res1)) delete arg1;
15893   return resultobj;
15894 fail:
15895   if (SWIG_IsNewObj(res1)) delete arg1;
15896   return NULL;
15897 }
15898 
15899 
_wrap_new_DatabaseClosedError(PyObject * self,PyObject * args)15900 SWIGINTERN PyObject *_wrap_new_DatabaseClosedError(PyObject *self, PyObject *args) {
15901   Py_ssize_t argc;
15902   PyObject *argv[4] = {
15903     0
15904   };
15905 
15906   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DatabaseClosedError",0,3,argv))) SWIG_fail;
15907   --argc;
15908   if (argc == 1) {
15909     return _wrap_new_DatabaseClosedError__SWIG_3(self, argc, argv);
15910   }
15911   if (argc == 2) {
15912     int _v = 0;
15913     {
15914       {
15915         int res = SWIG_AsVal_int(argv[1], NULL);
15916         _v = SWIG_CheckState(res);
15917       }
15918     }
15919     if (!_v) goto check_2;
15920     return _wrap_new_DatabaseClosedError__SWIG_4(self, argc, argv);
15921   }
15922 check_2:
15923 
15924   if (argc == 2) {
15925     return _wrap_new_DatabaseClosedError__SWIG_2(self, argc, argv);
15926   }
15927   if (argc == 3) {
15928     int _v = 0;
15929     {
15930       {
15931         int res = SWIG_AsVal_int(argv[2], NULL);
15932         _v = SWIG_CheckState(res);
15933       }
15934     }
15935     if (!_v) goto check_4;
15936     return _wrap_new_DatabaseClosedError__SWIG_1(self, argc, argv);
15937   }
15938 check_4:
15939 
15940   if (argc == 3) {
15941     return _wrap_new_DatabaseClosedError__SWIG_0(self, argc, argv);
15942   }
15943 
15944 fail:
15945   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DatabaseClosedError'.\n"
15946     "  Possible C/C++ prototypes are:\n"
15947     "    Xapian::DatabaseClosedError::DatabaseClosedError(std::string const &,std::string const &,char const *)\n"
15948     "    Xapian::DatabaseClosedError::DatabaseClosedError(std::string const &,std::string const &,int)\n"
15949     "    Xapian::DatabaseClosedError::DatabaseClosedError(std::string const &,std::string const &)\n"
15950     "    Xapian::DatabaseClosedError::DatabaseClosedError(std::string const &)\n"
15951     "    Xapian::DatabaseClosedError::DatabaseClosedError(std::string const &,int)\n");
15952   return 0;
15953 }
15954 
15955 
_wrap_delete_DatabaseClosedError(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15956 SWIGINTERN PyObject *_wrap_delete_DatabaseClosedError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15957   PyObject *resultobj = 0;
15958   Xapian::DatabaseClosedError *arg1 = (Xapian::DatabaseClosedError *) 0 ;
15959   void *argp1 = 0 ;
15960   int res1 = 0 ;
15961   PyObject *swig_obj[1] ;
15962 
15963   if (!args) SWIG_fail;
15964   swig_obj[0] = args;
15965   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DatabaseClosedError, SWIG_POINTER_DISOWN |  0 );
15966   if (!SWIG_IsOK(res1)) {
15967     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DatabaseClosedError" "', argument " "1"" of type '" "Xapian::DatabaseClosedError *""'");
15968   }
15969   arg1 = reinterpret_cast< Xapian::DatabaseClosedError * >(argp1);
15970   {
15971     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15972     delete arg1;
15973     SWIG_PYTHON_THREAD_END_ALLOW;
15974   }
15975   resultobj = SWIG_Py_Void();
15976   return resultobj;
15977 fail:
15978   return NULL;
15979 }
15980 
15981 
DatabaseClosedError_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15982 SWIGINTERN PyObject *DatabaseClosedError_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15983   PyObject *obj;
15984   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
15985   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DatabaseClosedError, SWIG_NewClientData(obj));
15986   return SWIG_Py_Void();
15987 }
15988 
DatabaseClosedError_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15989 SWIGINTERN PyObject *DatabaseClosedError_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15990   return SWIG_Python_InitShadowInstance(args);
15991 }
15992 
_wrap_version_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15993 SWIGINTERN PyObject *_wrap_version_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15994   PyObject *resultobj = 0;
15995   char *result = 0 ;
15996 
15997   if (!SWIG_Python_UnpackTuple(args,"version_string",0,0,0)) SWIG_fail;
15998   {
15999     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16000     result = (char *)Xapian::version_string();
16001     SWIG_PYTHON_THREAD_END_ALLOW;
16002   }
16003 
16004   resultobj = PyUnicode_FromString(result);
16005 
16006   return resultobj;
16007 fail:
16008   return NULL;
16009 }
16010 
16011 
_wrap_major_version(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16012 SWIGINTERN PyObject *_wrap_major_version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16013   PyObject *resultobj = 0;
16014   int result;
16015 
16016   if (!SWIG_Python_UnpackTuple(args,"major_version",0,0,0)) SWIG_fail;
16017   {
16018     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16019     result = (int)Xapian::major_version();
16020     SWIG_PYTHON_THREAD_END_ALLOW;
16021   }
16022   resultobj = SWIG_From_int(static_cast< int >(result));
16023   return resultobj;
16024 fail:
16025   return NULL;
16026 }
16027 
16028 
_wrap_minor_version(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16029 SWIGINTERN PyObject *_wrap_minor_version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16030   PyObject *resultobj = 0;
16031   int result;
16032 
16033   if (!SWIG_Python_UnpackTuple(args,"minor_version",0,0,0)) SWIG_fail;
16034   {
16035     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16036     result = (int)Xapian::minor_version();
16037     SWIG_PYTHON_THREAD_END_ALLOW;
16038   }
16039   resultobj = SWIG_From_int(static_cast< int >(result));
16040   return resultobj;
16041 fail:
16042   return NULL;
16043 }
16044 
16045 
_wrap_revision(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16046 SWIGINTERN PyObject *_wrap_revision(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16047   PyObject *resultobj = 0;
16048   int result;
16049 
16050   if (!SWIG_Python_UnpackTuple(args,"revision",0,0,0)) SWIG_fail;
16051   {
16052     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16053     result = (int)Xapian::revision();
16054     SWIG_PYTHON_THREAD_END_ALLOW;
16055   }
16056   resultobj = SWIG_From_int(static_cast< int >(result));
16057   return resultobj;
16058 fail:
16059   return NULL;
16060 }
16061 
16062 
_wrap_new__PositionIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16063 SWIGINTERN PyObject *_wrap_new__PositionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16064   PyObject *resultobj = 0;
16065   Xapian::PositionIterator *result = 0 ;
16066 
16067   if (!SWIG_Python_UnpackTuple(args,"new__PositionIterator",0,0,0)) SWIG_fail;
16068   {
16069     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16070     result = (Xapian::PositionIterator *)new Xapian::PositionIterator();
16071     SWIG_PYTHON_THREAD_END_ALLOW;
16072   }
16073   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_NEW |  0 );
16074   return resultobj;
16075 fail:
16076   return NULL;
16077 }
16078 
16079 
_wrap_delete__PositionIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16080 SWIGINTERN PyObject *_wrap_delete__PositionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16081   PyObject *resultobj = 0;
16082   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
16083   void *argp1 = 0 ;
16084   int res1 = 0 ;
16085   PyObject *swig_obj[1] ;
16086 
16087   if (!args) SWIG_fail;
16088   swig_obj[0] = args;
16089   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_DISOWN |  0 );
16090   if (!SWIG_IsOK(res1)) {
16091     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__PositionIterator" "', argument " "1"" of type '" "Xapian::PositionIterator *""'");
16092   }
16093   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
16094   {
16095     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16096     delete arg1;
16097     SWIG_PYTHON_THREAD_END_ALLOW;
16098   }
16099   resultobj = SWIG_Py_Void();
16100   return resultobj;
16101 fail:
16102   return NULL;
16103 }
16104 
16105 
_wrap__PositionIterator_skip_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16106 SWIGINTERN PyObject *_wrap__PositionIterator_skip_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16107   PyObject *resultobj = 0;
16108   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
16109   Xapian::termpos arg2 ;
16110   void *argp1 = 0 ;
16111   int res1 = 0 ;
16112   unsigned int val2 ;
16113   int ecode2 = 0 ;
16114   PyObject *swig_obj[2] ;
16115 
16116   if (!SWIG_Python_UnpackTuple(args,"_PositionIterator_skip_to",2,2,swig_obj)) SWIG_fail;
16117   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PositionIterator, 0 |  0 );
16118   if (!SWIG_IsOK(res1)) {
16119     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PositionIterator_skip_to" "', argument " "1"" of type '" "Xapian::PositionIterator *""'");
16120   }
16121   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
16122   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
16123   if (!SWIG_IsOK(ecode2)) {
16124     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_PositionIterator_skip_to" "', argument " "2"" of type '" "Xapian::termpos""'");
16125   }
16126   arg2 = static_cast< Xapian::termpos >(val2);
16127   {
16128     try {
16129       {
16130         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16131         (arg1)->skip_to(arg2);
16132         SWIG_PYTHON_THREAD_END_ALLOW;
16133       }
16134     } catch (...) {
16135       Xapian::SetPythonException();
16136       SWIG_fail;
16137     }
16138   }
16139   resultobj = SWIG_Py_Void();
16140   return resultobj;
16141 fail:
16142   return NULL;
16143 }
16144 
16145 
_wrap__PositionIterator___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16146 SWIGINTERN PyObject *_wrap__PositionIterator___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16147   PyObject *resultobj = 0;
16148   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
16149   void *argp1 = 0 ;
16150   int res1 = 0 ;
16151   PyObject *swig_obj[1] ;
16152   std::string result;
16153 
16154   if (!args) SWIG_fail;
16155   swig_obj[0] = args;
16156   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PositionIterator, 0 |  0 );
16157   if (!SWIG_IsOK(res1)) {
16158     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PositionIterator___str__" "', argument " "1"" of type '" "Xapian::PositionIterator const *""'");
16159   }
16160   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
16161   {
16162     try {
16163       {
16164         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16165         result = ((Xapian::PositionIterator const *)arg1)->get_description();
16166         SWIG_PYTHON_THREAD_END_ALLOW;
16167       }
16168     } catch (...) {
16169       Xapian::SetPythonException();
16170       SWIG_fail;
16171     }
16172   }
16173   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
16174   return resultobj;
16175 fail:
16176   return NULL;
16177 }
16178 
16179 
_wrap__PositionIterator___eq__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16180 SWIGINTERN PyObject *_wrap__PositionIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16181   PyObject *resultobj = 0;
16182   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
16183   Xapian::PositionIterator *arg2 = 0 ;
16184   void *argp1 = 0 ;
16185   int res1 = 0 ;
16186   void *argp2 = 0 ;
16187   int res2 = 0 ;
16188   PyObject *swig_obj[2] ;
16189   bool result;
16190 
16191   if (!SWIG_Python_UnpackTuple(args,"_PositionIterator___eq__",2,2,swig_obj)) SWIG_fail;
16192   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PositionIterator, 0 |  0 );
16193   if (!SWIG_IsOK(res1)) {
16194     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PositionIterator___eq__" "', argument " "1"" of type '" "Xapian::PositionIterator *""'");
16195   }
16196   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
16197   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PositionIterator,  0  | 0);
16198   if (!SWIG_IsOK(res2)) {
16199     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_PositionIterator___eq__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16200   }
16201   if (!argp2) {
16202     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_PositionIterator___eq__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16203   }
16204   arg2 = reinterpret_cast< Xapian::PositionIterator * >(argp2);
16205   {
16206     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16207     result = (bool)Xapian_PositionIterator___eq__(arg1,(Xapian::PositionIterator const &)*arg2);
16208     SWIG_PYTHON_THREAD_END_ALLOW;
16209   }
16210   resultobj = SWIG_From_bool(static_cast< bool >(result));
16211   return resultobj;
16212 fail:
16213   return NULL;
16214 }
16215 
16216 
_wrap__PositionIterator___ne__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16217 SWIGINTERN PyObject *_wrap__PositionIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16218   PyObject *resultobj = 0;
16219   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
16220   Xapian::PositionIterator *arg2 = 0 ;
16221   void *argp1 = 0 ;
16222   int res1 = 0 ;
16223   void *argp2 = 0 ;
16224   int res2 = 0 ;
16225   PyObject *swig_obj[2] ;
16226   bool result;
16227 
16228   if (!SWIG_Python_UnpackTuple(args,"_PositionIterator___ne__",2,2,swig_obj)) SWIG_fail;
16229   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PositionIterator, 0 |  0 );
16230   if (!SWIG_IsOK(res1)) {
16231     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PositionIterator___ne__" "', argument " "1"" of type '" "Xapian::PositionIterator *""'");
16232   }
16233   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
16234   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PositionIterator,  0  | 0);
16235   if (!SWIG_IsOK(res2)) {
16236     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_PositionIterator___ne__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16237   }
16238   if (!argp2) {
16239     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_PositionIterator___ne__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16240   }
16241   arg2 = reinterpret_cast< Xapian::PositionIterator * >(argp2);
16242   {
16243     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16244     result = (bool)Xapian_PositionIterator___ne__(arg1,(Xapian::PositionIterator const &)*arg2);
16245     SWIG_PYTHON_THREAD_END_ALLOW;
16246   }
16247   resultobj = SWIG_From_bool(static_cast< bool >(result));
16248   return resultobj;
16249 fail:
16250   return NULL;
16251 }
16252 
16253 
_wrap__PositionIterator_equals(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16254 SWIGINTERN PyObject *_wrap__PositionIterator_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16255   PyObject *resultobj = 0;
16256   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
16257   Xapian::PositionIterator *arg2 = 0 ;
16258   void *argp1 = 0 ;
16259   int res1 = 0 ;
16260   void *argp2 = 0 ;
16261   int res2 = 0 ;
16262   PyObject *swig_obj[2] ;
16263   bool result;
16264 
16265   if (!SWIG_Python_UnpackTuple(args,"_PositionIterator_equals",2,2,swig_obj)) SWIG_fail;
16266   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PositionIterator, 0 |  0 );
16267   if (!SWIG_IsOK(res1)) {
16268     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PositionIterator_equals" "', argument " "1"" of type '" "Xapian::PositionIterator const *""'");
16269   }
16270   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
16271   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PositionIterator,  0  | 0);
16272   if (!SWIG_IsOK(res2)) {
16273     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_PositionIterator_equals" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16274   }
16275   if (!argp2) {
16276     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_PositionIterator_equals" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16277   }
16278   arg2 = reinterpret_cast< Xapian::PositionIterator * >(argp2);
16279   {
16280     try {
16281       {
16282         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16283         result = (bool)Xapian_PositionIterator_equals((Xapian::PositionIterator const *)arg1,(Xapian::PositionIterator const &)*arg2);
16284         SWIG_PYTHON_THREAD_END_ALLOW;
16285       }
16286     } catch (...) {
16287       Xapian::SetPythonException();
16288       SWIG_fail;
16289     }
16290   }
16291   resultobj = SWIG_From_bool(static_cast< bool >(result));
16292   return resultobj;
16293 fail:
16294   return NULL;
16295 }
16296 
16297 
_wrap__PositionIterator_get_termpos(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16298 SWIGINTERN PyObject *_wrap__PositionIterator_get_termpos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16299   PyObject *resultobj = 0;
16300   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
16301   void *argp1 = 0 ;
16302   int res1 = 0 ;
16303   PyObject *swig_obj[1] ;
16304   Xapian::termpos result;
16305 
16306   if (!args) SWIG_fail;
16307   swig_obj[0] = args;
16308   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PositionIterator, 0 |  0 );
16309   if (!SWIG_IsOK(res1)) {
16310     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PositionIterator_get_termpos" "', argument " "1"" of type '" "Xapian::PositionIterator const *""'");
16311   }
16312   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
16313   {
16314     try {
16315       {
16316         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16317         result = (Xapian::termpos)Xapian_PositionIterator_get_termpos((Xapian::PositionIterator const *)arg1);
16318         SWIG_PYTHON_THREAD_END_ALLOW;
16319       }
16320     } catch (...) {
16321       Xapian::SetPythonException();
16322       SWIG_fail;
16323     }
16324   }
16325   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16326   return resultobj;
16327 fail:
16328   return NULL;
16329 }
16330 
16331 
_wrap__PositionIterator___next__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16332 SWIGINTERN PyObject *_wrap__PositionIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16333   PyObject *resultobj = 0;
16334   Xapian::PositionIterator *arg1 = (Xapian::PositionIterator *) 0 ;
16335   void *argp1 = 0 ;
16336   int res1 = 0 ;
16337   PyObject *swig_obj[1] ;
16338 
16339   if (!args) SWIG_fail;
16340   swig_obj[0] = args;
16341   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PositionIterator, 0 |  0 );
16342   if (!SWIG_IsOK(res1)) {
16343     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PositionIterator___next__" "', argument " "1"" of type '" "Xapian::PositionIterator *""'");
16344   }
16345   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
16346   {
16347     try {
16348       {
16349         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16350         Xapian_PositionIterator_next(arg1);
16351         SWIG_PYTHON_THREAD_END_ALLOW;
16352       }
16353     } catch (...) {
16354       Xapian::SetPythonException();
16355       SWIG_fail;
16356     }
16357   }
16358   resultobj = SWIG_Py_Void();
16359   return resultobj;
16360 fail:
16361   return NULL;
16362 }
16363 
16364 
_PositionIterator_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16365 SWIGINTERN PyObject *_PositionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16366   PyObject *obj;
16367   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
16368   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__PositionIterator, SWIG_NewClientData(obj));
16369   return SWIG_Py_Void();
16370 }
16371 
_PositionIterator_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16372 SWIGINTERN PyObject *_PositionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16373   return SWIG_Python_InitShadowInstance(args);
16374 }
16375 
_wrap___eq____SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)16376 SWIGINTERN PyObject *_wrap___eq____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16377   PyObject *resultobj = 0;
16378   Xapian::PositionIterator *arg1 = 0 ;
16379   Xapian::PositionIterator *arg2 = 0 ;
16380   void *argp1 = 0 ;
16381   int res1 = 0 ;
16382   void *argp2 = 0 ;
16383   int res2 = 0 ;
16384   bool result;
16385 
16386   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16387   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__PositionIterator,  0  | 0);
16388   if (!SWIG_IsOK(res1)) {
16389     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::PositionIterator const &""'");
16390   }
16391   if (!argp1) {
16392     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::PositionIterator const &""'");
16393   }
16394   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
16395   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PositionIterator,  0  | 0);
16396   if (!SWIG_IsOK(res2)) {
16397     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16398   }
16399   if (!argp2) {
16400     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16401   }
16402   arg2 = reinterpret_cast< Xapian::PositionIterator * >(argp2);
16403   {
16404     try {
16405       {
16406         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16407         result = (bool)Xapian::operator ==((Xapian::PositionIterator const &)*arg1,(Xapian::PositionIterator const &)*arg2);
16408         SWIG_PYTHON_THREAD_END_ALLOW;
16409       }
16410     } catch (...) {
16411       Xapian::SetPythonException();
16412       SWIG_fail;
16413     }
16414   }
16415   resultobj = SWIG_From_bool(static_cast< bool >(result));
16416   return resultobj;
16417 fail:
16418   return NULL;
16419 }
16420 
16421 
_wrap___ne____SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)16422 SWIGINTERN PyObject *_wrap___ne____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16423   PyObject *resultobj = 0;
16424   Xapian::PositionIterator *arg1 = 0 ;
16425   Xapian::PositionIterator *arg2 = 0 ;
16426   void *argp1 = 0 ;
16427   int res1 = 0 ;
16428   void *argp2 = 0 ;
16429   int res2 = 0 ;
16430   bool result;
16431 
16432   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16433   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__PositionIterator,  0  | 0);
16434   if (!SWIG_IsOK(res1)) {
16435     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::PositionIterator const &""'");
16436   }
16437   if (!argp1) {
16438     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::PositionIterator const &""'");
16439   }
16440   arg1 = reinterpret_cast< Xapian::PositionIterator * >(argp1);
16441   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PositionIterator,  0  | 0);
16442   if (!SWIG_IsOK(res2)) {
16443     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16444   }
16445   if (!argp2) {
16446     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::PositionIterator const &""'");
16447   }
16448   arg2 = reinterpret_cast< Xapian::PositionIterator * >(argp2);
16449   {
16450     try {
16451       {
16452         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16453         result = (bool)Xapian::operator !=((Xapian::PositionIterator const &)*arg1,(Xapian::PositionIterator const &)*arg2);
16454         SWIG_PYTHON_THREAD_END_ALLOW;
16455       }
16456     } catch (...) {
16457       Xapian::SetPythonException();
16458       SWIG_fail;
16459     }
16460   }
16461   resultobj = SWIG_From_bool(static_cast< bool >(result));
16462   return resultobj;
16463 fail:
16464   return NULL;
16465 }
16466 
16467 
_wrap_new__PostingIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16468 SWIGINTERN PyObject *_wrap_new__PostingIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16469   PyObject *resultobj = 0;
16470   Xapian::PostingIterator *result = 0 ;
16471 
16472   if (!SWIG_Python_UnpackTuple(args,"new__PostingIterator",0,0,0)) SWIG_fail;
16473   {
16474     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16475     result = (Xapian::PostingIterator *)new Xapian::PostingIterator();
16476     SWIG_PYTHON_THREAD_END_ALLOW;
16477   }
16478   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PostingIterator, SWIG_POINTER_NEW |  0 );
16479   return resultobj;
16480 fail:
16481   return NULL;
16482 }
16483 
16484 
_wrap_delete__PostingIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16485 SWIGINTERN PyObject *_wrap_delete__PostingIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16486   PyObject *resultobj = 0;
16487   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16488   void *argp1 = 0 ;
16489   int res1 = 0 ;
16490   PyObject *swig_obj[1] ;
16491 
16492   if (!args) SWIG_fail;
16493   swig_obj[0] = args;
16494   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, SWIG_POINTER_DISOWN |  0 );
16495   if (!SWIG_IsOK(res1)) {
16496     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__PostingIterator" "', argument " "1"" of type '" "Xapian::PostingIterator *""'");
16497   }
16498   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16499   {
16500     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16501     delete arg1;
16502     SWIG_PYTHON_THREAD_END_ALLOW;
16503   }
16504   resultobj = SWIG_Py_Void();
16505   return resultobj;
16506 fail:
16507   return NULL;
16508 }
16509 
16510 
_wrap__PostingIterator_get_wdf(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16511 SWIGINTERN PyObject *_wrap__PostingIterator_get_wdf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16512   PyObject *resultobj = 0;
16513   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16514   void *argp1 = 0 ;
16515   int res1 = 0 ;
16516   PyObject *swig_obj[1] ;
16517   Xapian::termcount result;
16518 
16519   if (!args) SWIG_fail;
16520   swig_obj[0] = args;
16521   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16522   if (!SWIG_IsOK(res1)) {
16523     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator_get_wdf" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
16524   }
16525   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16526   {
16527     try {
16528       {
16529         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16530         result = (Xapian::termcount)((Xapian::PostingIterator const *)arg1)->get_wdf();
16531         SWIG_PYTHON_THREAD_END_ALLOW;
16532       }
16533     } catch (...) {
16534       Xapian::SetPythonException();
16535       SWIG_fail;
16536     }
16537   }
16538   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16539   return resultobj;
16540 fail:
16541   return NULL;
16542 }
16543 
16544 
_wrap__PostingIterator_get_doclength(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16545 SWIGINTERN PyObject *_wrap__PostingIterator_get_doclength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16546   PyObject *resultobj = 0;
16547   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16548   void *argp1 = 0 ;
16549   int res1 = 0 ;
16550   PyObject *swig_obj[1] ;
16551   Xapian::termcount result;
16552 
16553   if (!args) SWIG_fail;
16554   swig_obj[0] = args;
16555   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16556   if (!SWIG_IsOK(res1)) {
16557     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator_get_doclength" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
16558   }
16559   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16560   {
16561     try {
16562       {
16563         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16564         result = (Xapian::termcount)((Xapian::PostingIterator const *)arg1)->get_doclength();
16565         SWIG_PYTHON_THREAD_END_ALLOW;
16566       }
16567     } catch (...) {
16568       Xapian::SetPythonException();
16569       SWIG_fail;
16570     }
16571   }
16572   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16573   return resultobj;
16574 fail:
16575   return NULL;
16576 }
16577 
16578 
_wrap__PostingIterator_get_unique_terms(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16579 SWIGINTERN PyObject *_wrap__PostingIterator_get_unique_terms(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16580   PyObject *resultobj = 0;
16581   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16582   void *argp1 = 0 ;
16583   int res1 = 0 ;
16584   PyObject *swig_obj[1] ;
16585   Xapian::termcount result;
16586 
16587   if (!args) SWIG_fail;
16588   swig_obj[0] = args;
16589   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16590   if (!SWIG_IsOK(res1)) {
16591     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator_get_unique_terms" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
16592   }
16593   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16594   {
16595     try {
16596       {
16597         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16598         result = (Xapian::termcount)((Xapian::PostingIterator const *)arg1)->get_unique_terms();
16599         SWIG_PYTHON_THREAD_END_ALLOW;
16600       }
16601     } catch (...) {
16602       Xapian::SetPythonException();
16603       SWIG_fail;
16604     }
16605   }
16606   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16607   return resultobj;
16608 fail:
16609   return NULL;
16610 }
16611 
16612 
_wrap__PostingIterator__positionlist_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16613 SWIGINTERN PyObject *_wrap__PostingIterator__positionlist_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16614   PyObject *resultobj = 0;
16615   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16616   void *argp1 = 0 ;
16617   int res1 = 0 ;
16618   PyObject *swig_obj[1] ;
16619   Xapian::PositionIterator result;
16620 
16621   if (!args) SWIG_fail;
16622   swig_obj[0] = args;
16623   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16624   if (!SWIG_IsOK(res1)) {
16625     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator__positionlist_begin" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
16626   }
16627   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16628   {
16629     try {
16630       {
16631         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16632         result = ((Xapian::PostingIterator const *)arg1)->positionlist_begin();
16633         SWIG_PYTHON_THREAD_END_ALLOW;
16634       }
16635     } catch (...) {
16636       Xapian::SetPythonException();
16637       SWIG_fail;
16638     }
16639   }
16640   resultobj = SWIG_NewPointerObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_OWN |  0 );
16641   return resultobj;
16642 fail:
16643   return NULL;
16644 }
16645 
16646 
_wrap__PostingIterator__positionlist_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16647 SWIGINTERN PyObject *_wrap__PostingIterator__positionlist_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16648   PyObject *resultobj = 0;
16649   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16650   void *argp1 = 0 ;
16651   int res1 = 0 ;
16652   PyObject *swig_obj[1] ;
16653   Xapian::PositionIterator result;
16654 
16655   if (!args) SWIG_fail;
16656   swig_obj[0] = args;
16657   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16658   if (!SWIG_IsOK(res1)) {
16659     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator__positionlist_end" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
16660   }
16661   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16662   {
16663     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16664     result = ((Xapian::PostingIterator const *)arg1)->positionlist_end();
16665     SWIG_PYTHON_THREAD_END_ALLOW;
16666   }
16667   resultobj = SWIG_NewPointerObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_OWN |  0 );
16668   return resultobj;
16669 fail:
16670   return NULL;
16671 }
16672 
16673 
_wrap__PostingIterator_skip_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16674 SWIGINTERN PyObject *_wrap__PostingIterator_skip_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16675   PyObject *resultobj = 0;
16676   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16677   Xapian::docid arg2 ;
16678   void *argp1 = 0 ;
16679   int res1 = 0 ;
16680   unsigned int val2 ;
16681   int ecode2 = 0 ;
16682   PyObject *swig_obj[2] ;
16683 
16684   if (!SWIG_Python_UnpackTuple(args,"_PostingIterator_skip_to",2,2,swig_obj)) SWIG_fail;
16685   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16686   if (!SWIG_IsOK(res1)) {
16687     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator_skip_to" "', argument " "1"" of type '" "Xapian::PostingIterator *""'");
16688   }
16689   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16690   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
16691   if (!SWIG_IsOK(ecode2)) {
16692     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_PostingIterator_skip_to" "', argument " "2"" of type '" "Xapian::docid""'");
16693   }
16694   arg2 = static_cast< Xapian::docid >(val2);
16695   {
16696     try {
16697       {
16698         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16699         (arg1)->skip_to(arg2);
16700         SWIG_PYTHON_THREAD_END_ALLOW;
16701       }
16702     } catch (...) {
16703       Xapian::SetPythonException();
16704       SWIG_fail;
16705     }
16706   }
16707   resultobj = SWIG_Py_Void();
16708   return resultobj;
16709 fail:
16710   return NULL;
16711 }
16712 
16713 
_wrap__PostingIterator___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16714 SWIGINTERN PyObject *_wrap__PostingIterator___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16715   PyObject *resultobj = 0;
16716   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16717   void *argp1 = 0 ;
16718   int res1 = 0 ;
16719   PyObject *swig_obj[1] ;
16720   std::string result;
16721 
16722   if (!args) SWIG_fail;
16723   swig_obj[0] = args;
16724   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16725   if (!SWIG_IsOK(res1)) {
16726     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator___str__" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
16727   }
16728   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16729   {
16730     try {
16731       {
16732         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16733         result = ((Xapian::PostingIterator const *)arg1)->get_description();
16734         SWIG_PYTHON_THREAD_END_ALLOW;
16735       }
16736     } catch (...) {
16737       Xapian::SetPythonException();
16738       SWIG_fail;
16739     }
16740   }
16741   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
16742   return resultobj;
16743 fail:
16744   return NULL;
16745 }
16746 
16747 
_wrap__PostingIterator___eq__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16748 SWIGINTERN PyObject *_wrap__PostingIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16749   PyObject *resultobj = 0;
16750   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16751   Xapian::PostingIterator *arg2 = 0 ;
16752   void *argp1 = 0 ;
16753   int res1 = 0 ;
16754   void *argp2 = 0 ;
16755   int res2 = 0 ;
16756   PyObject *swig_obj[2] ;
16757   bool result;
16758 
16759   if (!SWIG_Python_UnpackTuple(args,"_PostingIterator___eq__",2,2,swig_obj)) SWIG_fail;
16760   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16761   if (!SWIG_IsOK(res1)) {
16762     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator___eq__" "', argument " "1"" of type '" "Xapian::PostingIterator *""'");
16763   }
16764   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16765   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PostingIterator,  0  | 0);
16766   if (!SWIG_IsOK(res2)) {
16767     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_PostingIterator___eq__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
16768   }
16769   if (!argp2) {
16770     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_PostingIterator___eq__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
16771   }
16772   arg2 = reinterpret_cast< Xapian::PostingIterator * >(argp2);
16773   {
16774     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16775     result = (bool)Xapian_PostingIterator___eq__(arg1,(Xapian::PostingIterator const &)*arg2);
16776     SWIG_PYTHON_THREAD_END_ALLOW;
16777   }
16778   resultobj = SWIG_From_bool(static_cast< bool >(result));
16779   return resultobj;
16780 fail:
16781   return NULL;
16782 }
16783 
16784 
_wrap__PostingIterator___ne__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16785 SWIGINTERN PyObject *_wrap__PostingIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16786   PyObject *resultobj = 0;
16787   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16788   Xapian::PostingIterator *arg2 = 0 ;
16789   void *argp1 = 0 ;
16790   int res1 = 0 ;
16791   void *argp2 = 0 ;
16792   int res2 = 0 ;
16793   PyObject *swig_obj[2] ;
16794   bool result;
16795 
16796   if (!SWIG_Python_UnpackTuple(args,"_PostingIterator___ne__",2,2,swig_obj)) SWIG_fail;
16797   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16798   if (!SWIG_IsOK(res1)) {
16799     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator___ne__" "', argument " "1"" of type '" "Xapian::PostingIterator *""'");
16800   }
16801   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16802   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PostingIterator,  0  | 0);
16803   if (!SWIG_IsOK(res2)) {
16804     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_PostingIterator___ne__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
16805   }
16806   if (!argp2) {
16807     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_PostingIterator___ne__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
16808   }
16809   arg2 = reinterpret_cast< Xapian::PostingIterator * >(argp2);
16810   {
16811     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16812     result = (bool)Xapian_PostingIterator___ne__(arg1,(Xapian::PostingIterator const &)*arg2);
16813     SWIG_PYTHON_THREAD_END_ALLOW;
16814   }
16815   resultobj = SWIG_From_bool(static_cast< bool >(result));
16816   return resultobj;
16817 fail:
16818   return NULL;
16819 }
16820 
16821 
_wrap__PostingIterator_equals(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16822 SWIGINTERN PyObject *_wrap__PostingIterator_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16823   PyObject *resultobj = 0;
16824   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16825   Xapian::PostingIterator *arg2 = 0 ;
16826   void *argp1 = 0 ;
16827   int res1 = 0 ;
16828   void *argp2 = 0 ;
16829   int res2 = 0 ;
16830   PyObject *swig_obj[2] ;
16831   bool result;
16832 
16833   if (!SWIG_Python_UnpackTuple(args,"_PostingIterator_equals",2,2,swig_obj)) SWIG_fail;
16834   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16835   if (!SWIG_IsOK(res1)) {
16836     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator_equals" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
16837   }
16838   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16839   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PostingIterator,  0  | 0);
16840   if (!SWIG_IsOK(res2)) {
16841     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_PostingIterator_equals" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
16842   }
16843   if (!argp2) {
16844     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_PostingIterator_equals" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
16845   }
16846   arg2 = reinterpret_cast< Xapian::PostingIterator * >(argp2);
16847   {
16848     try {
16849       {
16850         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16851         result = (bool)Xapian_PostingIterator_equals((Xapian::PostingIterator const *)arg1,(Xapian::PostingIterator const &)*arg2);
16852         SWIG_PYTHON_THREAD_END_ALLOW;
16853       }
16854     } catch (...) {
16855       Xapian::SetPythonException();
16856       SWIG_fail;
16857     }
16858   }
16859   resultobj = SWIG_From_bool(static_cast< bool >(result));
16860   return resultobj;
16861 fail:
16862   return NULL;
16863 }
16864 
16865 
_wrap__PostingIterator_get_docid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16866 SWIGINTERN PyObject *_wrap__PostingIterator_get_docid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16867   PyObject *resultobj = 0;
16868   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16869   void *argp1 = 0 ;
16870   int res1 = 0 ;
16871   PyObject *swig_obj[1] ;
16872   Xapian::docid result;
16873 
16874   if (!args) SWIG_fail;
16875   swig_obj[0] = args;
16876   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16877   if (!SWIG_IsOK(res1)) {
16878     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator_get_docid" "', argument " "1"" of type '" "Xapian::PostingIterator const *""'");
16879   }
16880   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16881   {
16882     try {
16883       {
16884         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16885         result = (Xapian::docid)Xapian_PostingIterator_get_docid((Xapian::PostingIterator const *)arg1);
16886         SWIG_PYTHON_THREAD_END_ALLOW;
16887       }
16888     } catch (...) {
16889       Xapian::SetPythonException();
16890       SWIG_fail;
16891     }
16892   }
16893   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16894   return resultobj;
16895 fail:
16896   return NULL;
16897 }
16898 
16899 
_wrap__PostingIterator___next__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16900 SWIGINTERN PyObject *_wrap__PostingIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16901   PyObject *resultobj = 0;
16902   Xapian::PostingIterator *arg1 = (Xapian::PostingIterator *) 0 ;
16903   void *argp1 = 0 ;
16904   int res1 = 0 ;
16905   PyObject *swig_obj[1] ;
16906 
16907   if (!args) SWIG_fail;
16908   swig_obj[0] = args;
16909   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingIterator, 0 |  0 );
16910   if (!SWIG_IsOK(res1)) {
16911     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_PostingIterator___next__" "', argument " "1"" of type '" "Xapian::PostingIterator *""'");
16912   }
16913   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16914   {
16915     try {
16916       {
16917         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16918         Xapian_PostingIterator_next(arg1);
16919         SWIG_PYTHON_THREAD_END_ALLOW;
16920       }
16921     } catch (...) {
16922       Xapian::SetPythonException();
16923       SWIG_fail;
16924     }
16925   }
16926   resultobj = SWIG_Py_Void();
16927   return resultobj;
16928 fail:
16929   return NULL;
16930 }
16931 
16932 
_PostingIterator_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16933 SWIGINTERN PyObject *_PostingIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16934   PyObject *obj;
16935   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
16936   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__PostingIterator, SWIG_NewClientData(obj));
16937   return SWIG_Py_Void();
16938 }
16939 
_PostingIterator_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16940 SWIGINTERN PyObject *_PostingIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16941   return SWIG_Python_InitShadowInstance(args);
16942 }
16943 
_wrap___eq____SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)16944 SWIGINTERN PyObject *_wrap___eq____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16945   PyObject *resultobj = 0;
16946   Xapian::PostingIterator *arg1 = 0 ;
16947   Xapian::PostingIterator *arg2 = 0 ;
16948   void *argp1 = 0 ;
16949   int res1 = 0 ;
16950   void *argp2 = 0 ;
16951   int res2 = 0 ;
16952   bool result;
16953 
16954   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16955   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__PostingIterator,  0  | 0);
16956   if (!SWIG_IsOK(res1)) {
16957     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::PostingIterator const &""'");
16958   }
16959   if (!argp1) {
16960     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::PostingIterator const &""'");
16961   }
16962   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
16963   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PostingIterator,  0  | 0);
16964   if (!SWIG_IsOK(res2)) {
16965     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
16966   }
16967   if (!argp2) {
16968     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
16969   }
16970   arg2 = reinterpret_cast< Xapian::PostingIterator * >(argp2);
16971   {
16972     try {
16973       {
16974         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
16975         result = (bool)Xapian::operator ==((Xapian::PostingIterator const &)*arg1,(Xapian::PostingIterator const &)*arg2);
16976         SWIG_PYTHON_THREAD_END_ALLOW;
16977       }
16978     } catch (...) {
16979       Xapian::SetPythonException();
16980       SWIG_fail;
16981     }
16982   }
16983   resultobj = SWIG_From_bool(static_cast< bool >(result));
16984   return resultobj;
16985 fail:
16986   return NULL;
16987 }
16988 
16989 
_wrap___ne____SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)16990 SWIGINTERN PyObject *_wrap___ne____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16991   PyObject *resultobj = 0;
16992   Xapian::PostingIterator *arg1 = 0 ;
16993   Xapian::PostingIterator *arg2 = 0 ;
16994   void *argp1 = 0 ;
16995   int res1 = 0 ;
16996   void *argp2 = 0 ;
16997   int res2 = 0 ;
16998   bool result;
16999 
17000   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17001   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__PostingIterator,  0  | 0);
17002   if (!SWIG_IsOK(res1)) {
17003     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::PostingIterator const &""'");
17004   }
17005   if (!argp1) {
17006     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::PostingIterator const &""'");
17007   }
17008   arg1 = reinterpret_cast< Xapian::PostingIterator * >(argp1);
17009   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PostingIterator,  0  | 0);
17010   if (!SWIG_IsOK(res2)) {
17011     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
17012   }
17013   if (!argp2) {
17014     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::PostingIterator const &""'");
17015   }
17016   arg2 = reinterpret_cast< Xapian::PostingIterator * >(argp2);
17017   {
17018     try {
17019       {
17020         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17021         result = (bool)Xapian::operator !=((Xapian::PostingIterator const &)*arg1,(Xapian::PostingIterator const &)*arg2);
17022         SWIG_PYTHON_THREAD_END_ALLOW;
17023       }
17024     } catch (...) {
17025       Xapian::SetPythonException();
17026       SWIG_fail;
17027     }
17028   }
17029   resultobj = SWIG_From_bool(static_cast< bool >(result));
17030   return resultobj;
17031 fail:
17032   return NULL;
17033 }
17034 
17035 
_wrap_new__TermIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17036 SWIGINTERN PyObject *_wrap_new__TermIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17037   PyObject *resultobj = 0;
17038   Xapian::TermIterator *result = 0 ;
17039 
17040   if (!SWIG_Python_UnpackTuple(args,"new__TermIterator",0,0,0)) SWIG_fail;
17041   {
17042     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17043     result = (Xapian::TermIterator *)new Xapian::TermIterator();
17044     SWIG_PYTHON_THREAD_END_ALLOW;
17045   }
17046   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_NEW |  0 );
17047   return resultobj;
17048 fail:
17049   return NULL;
17050 }
17051 
17052 
_wrap_delete__TermIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17053 SWIGINTERN PyObject *_wrap_delete__TermIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17054   PyObject *resultobj = 0;
17055   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17056   void *argp1 = 0 ;
17057   int res1 = 0 ;
17058   PyObject *swig_obj[1] ;
17059 
17060   if (!args) SWIG_fail;
17061   swig_obj[0] = args;
17062   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_DISOWN |  0 );
17063   if (!SWIG_IsOK(res1)) {
17064     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__TermIterator" "', argument " "1"" of type '" "Xapian::TermIterator *""'");
17065   }
17066   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17067   {
17068     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17069     delete arg1;
17070     SWIG_PYTHON_THREAD_END_ALLOW;
17071   }
17072   resultobj = SWIG_Py_Void();
17073   return resultobj;
17074 fail:
17075   return NULL;
17076 }
17077 
17078 
_wrap__TermIterator_get_wdf(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17079 SWIGINTERN PyObject *_wrap__TermIterator_get_wdf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17080   PyObject *resultobj = 0;
17081   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17082   void *argp1 = 0 ;
17083   int res1 = 0 ;
17084   PyObject *swig_obj[1] ;
17085   Xapian::termcount result;
17086 
17087   if (!args) SWIG_fail;
17088   swig_obj[0] = args;
17089   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17090   if (!SWIG_IsOK(res1)) {
17091     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator_get_wdf" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
17092   }
17093   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17094   {
17095     try {
17096       {
17097         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17098         result = (Xapian::termcount)((Xapian::TermIterator const *)arg1)->get_wdf();
17099         SWIG_PYTHON_THREAD_END_ALLOW;
17100       }
17101     } catch (...) {
17102       Xapian::SetPythonException();
17103       SWIG_fail;
17104     }
17105   }
17106   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17107   return resultobj;
17108 fail:
17109   return NULL;
17110 }
17111 
17112 
_wrap__TermIterator_get_termfreq(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17113 SWIGINTERN PyObject *_wrap__TermIterator_get_termfreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17114   PyObject *resultobj = 0;
17115   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17116   void *argp1 = 0 ;
17117   int res1 = 0 ;
17118   PyObject *swig_obj[1] ;
17119   Xapian::doccount result;
17120 
17121   if (!args) SWIG_fail;
17122   swig_obj[0] = args;
17123   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17124   if (!SWIG_IsOK(res1)) {
17125     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator_get_termfreq" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
17126   }
17127   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17128   {
17129     try {
17130       {
17131         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17132         result = (Xapian::doccount)((Xapian::TermIterator const *)arg1)->get_termfreq();
17133         SWIG_PYTHON_THREAD_END_ALLOW;
17134       }
17135     } catch (...) {
17136       Xapian::SetPythonException();
17137       SWIG_fail;
17138     }
17139   }
17140   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17141   return resultobj;
17142 fail:
17143   return NULL;
17144 }
17145 
17146 
_wrap__TermIterator_positionlist_count(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17147 SWIGINTERN PyObject *_wrap__TermIterator_positionlist_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17148   PyObject *resultobj = 0;
17149   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17150   void *argp1 = 0 ;
17151   int res1 = 0 ;
17152   PyObject *swig_obj[1] ;
17153   Xapian::termcount result;
17154 
17155   if (!args) SWIG_fail;
17156   swig_obj[0] = args;
17157   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17158   if (!SWIG_IsOK(res1)) {
17159     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator_positionlist_count" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
17160   }
17161   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17162   {
17163     try {
17164       {
17165         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17166         result = (Xapian::termcount)((Xapian::TermIterator const *)arg1)->positionlist_count();
17167         SWIG_PYTHON_THREAD_END_ALLOW;
17168       }
17169     } catch (...) {
17170       Xapian::SetPythonException();
17171       SWIG_fail;
17172     }
17173   }
17174   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17175   return resultobj;
17176 fail:
17177   return NULL;
17178 }
17179 
17180 
_wrap__TermIterator__positionlist_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17181 SWIGINTERN PyObject *_wrap__TermIterator__positionlist_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17182   PyObject *resultobj = 0;
17183   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17184   void *argp1 = 0 ;
17185   int res1 = 0 ;
17186   PyObject *swig_obj[1] ;
17187   Xapian::PositionIterator result;
17188 
17189   if (!args) SWIG_fail;
17190   swig_obj[0] = args;
17191   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17192   if (!SWIG_IsOK(res1)) {
17193     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator__positionlist_begin" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
17194   }
17195   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17196   {
17197     try {
17198       {
17199         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17200         result = ((Xapian::TermIterator const *)arg1)->positionlist_begin();
17201         SWIG_PYTHON_THREAD_END_ALLOW;
17202       }
17203     } catch (...) {
17204       Xapian::SetPythonException();
17205       SWIG_fail;
17206     }
17207   }
17208   resultobj = SWIG_NewPointerObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_OWN |  0 );
17209   return resultobj;
17210 fail:
17211   return NULL;
17212 }
17213 
17214 
_wrap__TermIterator__positionlist_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17215 SWIGINTERN PyObject *_wrap__TermIterator__positionlist_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17216   PyObject *resultobj = 0;
17217   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17218   void *argp1 = 0 ;
17219   int res1 = 0 ;
17220   PyObject *swig_obj[1] ;
17221   Xapian::PositionIterator result;
17222 
17223   if (!args) SWIG_fail;
17224   swig_obj[0] = args;
17225   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17226   if (!SWIG_IsOK(res1)) {
17227     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator__positionlist_end" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
17228   }
17229   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17230   {
17231     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17232     result = ((Xapian::TermIterator const *)arg1)->positionlist_end();
17233     SWIG_PYTHON_THREAD_END_ALLOW;
17234   }
17235   resultobj = SWIG_NewPointerObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_OWN |  0 );
17236   return resultobj;
17237 fail:
17238   return NULL;
17239 }
17240 
17241 
_wrap__TermIterator_skip_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17242 SWIGINTERN PyObject *_wrap__TermIterator_skip_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17243   PyObject *resultobj = 0;
17244   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17245   std::string *arg2 = 0 ;
17246   void *argp1 = 0 ;
17247   int res1 = 0 ;
17248   int res2 = SWIG_OLDOBJ ;
17249   PyObject *swig_obj[2] ;
17250 
17251   if (!SWIG_Python_UnpackTuple(args,"_TermIterator_skip_to",2,2,swig_obj)) SWIG_fail;
17252   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17253   if (!SWIG_IsOK(res1)) {
17254     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator_skip_to" "', argument " "1"" of type '" "Xapian::TermIterator *""'");
17255   }
17256   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17257   {
17258     std::string *ptr = (std::string *)0;
17259     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
17260     if (!SWIG_IsOK(res2)) {
17261       if (res2 == INT_MIN) SWIG_fail;
17262       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_TermIterator_skip_to" "', argument " "2"" of type '" "std::string const &""'");
17263     }
17264     if (!ptr) {
17265       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_TermIterator_skip_to" "', argument " "2"" of type '" "std::string const &""'");
17266     }
17267     arg2 = ptr;
17268   }
17269   {
17270     try {
17271       {
17272         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17273         (arg1)->skip_to((std::string const &)*arg2);
17274         SWIG_PYTHON_THREAD_END_ALLOW;
17275       }
17276     } catch (...) {
17277       Xapian::SetPythonException();
17278       SWIG_fail;
17279     }
17280   }
17281   resultobj = SWIG_Py_Void();
17282   if (SWIG_IsNewObj(res2)) delete arg2;
17283   return resultobj;
17284 fail:
17285   if (SWIG_IsNewObj(res2)) delete arg2;
17286   return NULL;
17287 }
17288 
17289 
_wrap__TermIterator___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17290 SWIGINTERN PyObject *_wrap__TermIterator___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17291   PyObject *resultobj = 0;
17292   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17293   void *argp1 = 0 ;
17294   int res1 = 0 ;
17295   PyObject *swig_obj[1] ;
17296   std::string result;
17297 
17298   if (!args) SWIG_fail;
17299   swig_obj[0] = args;
17300   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17301   if (!SWIG_IsOK(res1)) {
17302     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator___str__" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
17303   }
17304   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17305   {
17306     try {
17307       {
17308         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17309         result = ((Xapian::TermIterator const *)arg1)->get_description();
17310         SWIG_PYTHON_THREAD_END_ALLOW;
17311       }
17312     } catch (...) {
17313       Xapian::SetPythonException();
17314       SWIG_fail;
17315     }
17316   }
17317   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
17318   return resultobj;
17319 fail:
17320   return NULL;
17321 }
17322 
17323 
_wrap__TermIterator___eq__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17324 SWIGINTERN PyObject *_wrap__TermIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17325   PyObject *resultobj = 0;
17326   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17327   Xapian::TermIterator *arg2 = 0 ;
17328   void *argp1 = 0 ;
17329   int res1 = 0 ;
17330   void *argp2 = 0 ;
17331   int res2 = 0 ;
17332   PyObject *swig_obj[2] ;
17333   bool result;
17334 
17335   if (!SWIG_Python_UnpackTuple(args,"_TermIterator___eq__",2,2,swig_obj)) SWIG_fail;
17336   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17337   if (!SWIG_IsOK(res1)) {
17338     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator___eq__" "', argument " "1"" of type '" "Xapian::TermIterator *""'");
17339   }
17340   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17341   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__TermIterator,  0  | 0);
17342   if (!SWIG_IsOK(res2)) {
17343     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_TermIterator___eq__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17344   }
17345   if (!argp2) {
17346     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_TermIterator___eq__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17347   }
17348   arg2 = reinterpret_cast< Xapian::TermIterator * >(argp2);
17349   {
17350     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17351     result = (bool)Xapian_TermIterator___eq__(arg1,(Xapian::TermIterator const &)*arg2);
17352     SWIG_PYTHON_THREAD_END_ALLOW;
17353   }
17354   resultobj = SWIG_From_bool(static_cast< bool >(result));
17355   return resultobj;
17356 fail:
17357   return NULL;
17358 }
17359 
17360 
_wrap__TermIterator___ne__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17361 SWIGINTERN PyObject *_wrap__TermIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17362   PyObject *resultobj = 0;
17363   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17364   Xapian::TermIterator *arg2 = 0 ;
17365   void *argp1 = 0 ;
17366   int res1 = 0 ;
17367   void *argp2 = 0 ;
17368   int res2 = 0 ;
17369   PyObject *swig_obj[2] ;
17370   bool result;
17371 
17372   if (!SWIG_Python_UnpackTuple(args,"_TermIterator___ne__",2,2,swig_obj)) SWIG_fail;
17373   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17374   if (!SWIG_IsOK(res1)) {
17375     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator___ne__" "', argument " "1"" of type '" "Xapian::TermIterator *""'");
17376   }
17377   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17378   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__TermIterator,  0  | 0);
17379   if (!SWIG_IsOK(res2)) {
17380     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_TermIterator___ne__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17381   }
17382   if (!argp2) {
17383     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_TermIterator___ne__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17384   }
17385   arg2 = reinterpret_cast< Xapian::TermIterator * >(argp2);
17386   {
17387     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17388     result = (bool)Xapian_TermIterator___ne__(arg1,(Xapian::TermIterator const &)*arg2);
17389     SWIG_PYTHON_THREAD_END_ALLOW;
17390   }
17391   resultobj = SWIG_From_bool(static_cast< bool >(result));
17392   return resultobj;
17393 fail:
17394   return NULL;
17395 }
17396 
17397 
_wrap__TermIterator_equals(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17398 SWIGINTERN PyObject *_wrap__TermIterator_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17399   PyObject *resultobj = 0;
17400   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17401   Xapian::TermIterator *arg2 = 0 ;
17402   void *argp1 = 0 ;
17403   int res1 = 0 ;
17404   void *argp2 = 0 ;
17405   int res2 = 0 ;
17406   PyObject *swig_obj[2] ;
17407   bool result;
17408 
17409   if (!SWIG_Python_UnpackTuple(args,"_TermIterator_equals",2,2,swig_obj)) SWIG_fail;
17410   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17411   if (!SWIG_IsOK(res1)) {
17412     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator_equals" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
17413   }
17414   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17415   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__TermIterator,  0  | 0);
17416   if (!SWIG_IsOK(res2)) {
17417     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_TermIterator_equals" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17418   }
17419   if (!argp2) {
17420     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_TermIterator_equals" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17421   }
17422   arg2 = reinterpret_cast< Xapian::TermIterator * >(argp2);
17423   {
17424     try {
17425       {
17426         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17427         result = (bool)Xapian_TermIterator_equals((Xapian::TermIterator const *)arg1,(Xapian::TermIterator const &)*arg2);
17428         SWIG_PYTHON_THREAD_END_ALLOW;
17429       }
17430     } catch (...) {
17431       Xapian::SetPythonException();
17432       SWIG_fail;
17433     }
17434   }
17435   resultobj = SWIG_From_bool(static_cast< bool >(result));
17436   return resultobj;
17437 fail:
17438   return NULL;
17439 }
17440 
17441 
_wrap__TermIterator_get_term(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17442 SWIGINTERN PyObject *_wrap__TermIterator_get_term(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17443   PyObject *resultobj = 0;
17444   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17445   void *argp1 = 0 ;
17446   int res1 = 0 ;
17447   PyObject *swig_obj[1] ;
17448   std::string result;
17449 
17450   if (!args) SWIG_fail;
17451   swig_obj[0] = args;
17452   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17453   if (!SWIG_IsOK(res1)) {
17454     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator_get_term" "', argument " "1"" of type '" "Xapian::TermIterator const *""'");
17455   }
17456   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17457   {
17458     try {
17459       {
17460         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17461         result = Xapian_TermIterator_get_term((Xapian::TermIterator const *)arg1);
17462         SWIG_PYTHON_THREAD_END_ALLOW;
17463       }
17464     } catch (...) {
17465       Xapian::SetPythonException();
17466       SWIG_fail;
17467     }
17468   }
17469 
17470   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
17471 
17472   return resultobj;
17473 fail:
17474   return NULL;
17475 }
17476 
17477 
_wrap__TermIterator___next__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17478 SWIGINTERN PyObject *_wrap__TermIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17479   PyObject *resultobj = 0;
17480   Xapian::TermIterator *arg1 = (Xapian::TermIterator *) 0 ;
17481   void *argp1 = 0 ;
17482   int res1 = 0 ;
17483   PyObject *swig_obj[1] ;
17484 
17485   if (!args) SWIG_fail;
17486   swig_obj[0] = args;
17487   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermIterator, 0 |  0 );
17488   if (!SWIG_IsOK(res1)) {
17489     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_TermIterator___next__" "', argument " "1"" of type '" "Xapian::TermIterator *""'");
17490   }
17491   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17492   {
17493     try {
17494       {
17495         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17496         Xapian_TermIterator_next(arg1);
17497         SWIG_PYTHON_THREAD_END_ALLOW;
17498       }
17499     } catch (...) {
17500       Xapian::SetPythonException();
17501       SWIG_fail;
17502     }
17503   }
17504   resultobj = SWIG_Py_Void();
17505   return resultobj;
17506 fail:
17507   return NULL;
17508 }
17509 
17510 
_TermIterator_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17511 SWIGINTERN PyObject *_TermIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17512   PyObject *obj;
17513   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
17514   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__TermIterator, SWIG_NewClientData(obj));
17515   return SWIG_Py_Void();
17516 }
17517 
_TermIterator_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17518 SWIGINTERN PyObject *_TermIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17519   return SWIG_Python_InitShadowInstance(args);
17520 }
17521 
_wrap___eq____SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)17522 SWIGINTERN PyObject *_wrap___eq____SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17523   PyObject *resultobj = 0;
17524   Xapian::TermIterator *arg1 = 0 ;
17525   Xapian::TermIterator *arg2 = 0 ;
17526   void *argp1 = 0 ;
17527   int res1 = 0 ;
17528   void *argp2 = 0 ;
17529   int res2 = 0 ;
17530   bool result;
17531 
17532   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17533   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__TermIterator,  0  | 0);
17534   if (!SWIG_IsOK(res1)) {
17535     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::TermIterator const &""'");
17536   }
17537   if (!argp1) {
17538     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::TermIterator const &""'");
17539   }
17540   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17541   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__TermIterator,  0  | 0);
17542   if (!SWIG_IsOK(res2)) {
17543     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17544   }
17545   if (!argp2) {
17546     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17547   }
17548   arg2 = reinterpret_cast< Xapian::TermIterator * >(argp2);
17549   {
17550     try {
17551       {
17552         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17553         result = (bool)Xapian::operator ==((Xapian::TermIterator const &)*arg1,(Xapian::TermIterator const &)*arg2);
17554         SWIG_PYTHON_THREAD_END_ALLOW;
17555       }
17556     } catch (...) {
17557       Xapian::SetPythonException();
17558       SWIG_fail;
17559     }
17560   }
17561   resultobj = SWIG_From_bool(static_cast< bool >(result));
17562   return resultobj;
17563 fail:
17564   return NULL;
17565 }
17566 
17567 
_wrap___ne____SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)17568 SWIGINTERN PyObject *_wrap___ne____SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17569   PyObject *resultobj = 0;
17570   Xapian::TermIterator *arg1 = 0 ;
17571   Xapian::TermIterator *arg2 = 0 ;
17572   void *argp1 = 0 ;
17573   int res1 = 0 ;
17574   void *argp2 = 0 ;
17575   int res2 = 0 ;
17576   bool result;
17577 
17578   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17579   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__TermIterator,  0  | 0);
17580   if (!SWIG_IsOK(res1)) {
17581     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::TermIterator const &""'");
17582   }
17583   if (!argp1) {
17584     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::TermIterator const &""'");
17585   }
17586   arg1 = reinterpret_cast< Xapian::TermIterator * >(argp1);
17587   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__TermIterator,  0  | 0);
17588   if (!SWIG_IsOK(res2)) {
17589     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17590   }
17591   if (!argp2) {
17592     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::TermIterator const &""'");
17593   }
17594   arg2 = reinterpret_cast< Xapian::TermIterator * >(argp2);
17595   {
17596     try {
17597       {
17598         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17599         result = (bool)Xapian::operator !=((Xapian::TermIterator const &)*arg1,(Xapian::TermIterator const &)*arg2);
17600         SWIG_PYTHON_THREAD_END_ALLOW;
17601       }
17602     } catch (...) {
17603       Xapian::SetPythonException();
17604       SWIG_fail;
17605     }
17606   }
17607   resultobj = SWIG_From_bool(static_cast< bool >(result));
17608   return resultobj;
17609 fail:
17610   return NULL;
17611 }
17612 
17613 
_wrap_new__ValueIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17614 SWIGINTERN PyObject *_wrap_new__ValueIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17615   PyObject *resultobj = 0;
17616   Xapian::ValueIterator *result = 0 ;
17617 
17618   if (!SWIG_Python_UnpackTuple(args,"new__ValueIterator",0,0,0)) SWIG_fail;
17619   {
17620     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17621     result = (Xapian::ValueIterator *)new Xapian::ValueIterator();
17622     SWIG_PYTHON_THREAD_END_ALLOW;
17623   }
17624   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueIterator, SWIG_POINTER_NEW |  0 );
17625   return resultobj;
17626 fail:
17627   return NULL;
17628 }
17629 
17630 
_wrap_delete__ValueIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17631 SWIGINTERN PyObject *_wrap_delete__ValueIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17632   PyObject *resultobj = 0;
17633   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17634   void *argp1 = 0 ;
17635   int res1 = 0 ;
17636   PyObject *swig_obj[1] ;
17637 
17638   if (!args) SWIG_fail;
17639   swig_obj[0] = args;
17640   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, SWIG_POINTER_DISOWN |  0 );
17641   if (!SWIG_IsOK(res1)) {
17642     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__ValueIterator" "', argument " "1"" of type '" "Xapian::ValueIterator *""'");
17643   }
17644   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17645   {
17646     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17647     delete arg1;
17648     SWIG_PYTHON_THREAD_END_ALLOW;
17649   }
17650   resultobj = SWIG_Py_Void();
17651   return resultobj;
17652 fail:
17653   return NULL;
17654 }
17655 
17656 
_wrap__ValueIterator_get_docid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17657 SWIGINTERN PyObject *_wrap__ValueIterator_get_docid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17658   PyObject *resultobj = 0;
17659   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17660   void *argp1 = 0 ;
17661   int res1 = 0 ;
17662   PyObject *swig_obj[1] ;
17663   Xapian::docid result;
17664 
17665   if (!args) SWIG_fail;
17666   swig_obj[0] = args;
17667   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
17668   if (!SWIG_IsOK(res1)) {
17669     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator_get_docid" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'");
17670   }
17671   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17672   {
17673     try {
17674       {
17675         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17676         result = (Xapian::docid)((Xapian::ValueIterator const *)arg1)->get_docid();
17677         SWIG_PYTHON_THREAD_END_ALLOW;
17678       }
17679     } catch (...) {
17680       Xapian::SetPythonException();
17681       SWIG_fail;
17682     }
17683   }
17684   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17685   return resultobj;
17686 fail:
17687   return NULL;
17688 }
17689 
17690 
_wrap__ValueIterator_get_valueno(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17691 SWIGINTERN PyObject *_wrap__ValueIterator_get_valueno(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17692   PyObject *resultobj = 0;
17693   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17694   void *argp1 = 0 ;
17695   int res1 = 0 ;
17696   PyObject *swig_obj[1] ;
17697   Xapian::valueno result;
17698 
17699   if (!args) SWIG_fail;
17700   swig_obj[0] = args;
17701   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
17702   if (!SWIG_IsOK(res1)) {
17703     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator_get_valueno" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'");
17704   }
17705   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17706   {
17707     try {
17708       {
17709         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17710         result = (Xapian::valueno)((Xapian::ValueIterator const *)arg1)->get_valueno();
17711         SWIG_PYTHON_THREAD_END_ALLOW;
17712       }
17713     } catch (...) {
17714       Xapian::SetPythonException();
17715       SWIG_fail;
17716     }
17717   }
17718   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17719   return resultobj;
17720 fail:
17721   return NULL;
17722 }
17723 
17724 
_wrap__ValueIterator_skip_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17725 SWIGINTERN PyObject *_wrap__ValueIterator_skip_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17726   PyObject *resultobj = 0;
17727   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17728   Xapian::docid arg2 ;
17729   void *argp1 = 0 ;
17730   int res1 = 0 ;
17731   unsigned int val2 ;
17732   int ecode2 = 0 ;
17733   PyObject *swig_obj[2] ;
17734 
17735   if (!SWIG_Python_UnpackTuple(args,"_ValueIterator_skip_to",2,2,swig_obj)) SWIG_fail;
17736   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
17737   if (!SWIG_IsOK(res1)) {
17738     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator_skip_to" "', argument " "1"" of type '" "Xapian::ValueIterator *""'");
17739   }
17740   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17741   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
17742   if (!SWIG_IsOK(ecode2)) {
17743     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_ValueIterator_skip_to" "', argument " "2"" of type '" "Xapian::docid""'");
17744   }
17745   arg2 = static_cast< Xapian::docid >(val2);
17746   {
17747     try {
17748       {
17749         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17750         (arg1)->skip_to(arg2);
17751         SWIG_PYTHON_THREAD_END_ALLOW;
17752       }
17753     } catch (...) {
17754       Xapian::SetPythonException();
17755       SWIG_fail;
17756     }
17757   }
17758   resultobj = SWIG_Py_Void();
17759   return resultobj;
17760 fail:
17761   return NULL;
17762 }
17763 
17764 
_wrap__ValueIterator_check(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17765 SWIGINTERN PyObject *_wrap__ValueIterator_check(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17766   PyObject *resultobj = 0;
17767   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17768   Xapian::docid arg2 ;
17769   void *argp1 = 0 ;
17770   int res1 = 0 ;
17771   unsigned int val2 ;
17772   int ecode2 = 0 ;
17773   PyObject *swig_obj[2] ;
17774   bool result;
17775 
17776   if (!SWIG_Python_UnpackTuple(args,"_ValueIterator_check",2,2,swig_obj)) SWIG_fail;
17777   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
17778   if (!SWIG_IsOK(res1)) {
17779     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator_check" "', argument " "1"" of type '" "Xapian::ValueIterator *""'");
17780   }
17781   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17782   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
17783   if (!SWIG_IsOK(ecode2)) {
17784     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_ValueIterator_check" "', argument " "2"" of type '" "Xapian::docid""'");
17785   }
17786   arg2 = static_cast< Xapian::docid >(val2);
17787   {
17788     try {
17789       {
17790         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17791         result = (bool)(arg1)->check(arg2);
17792         SWIG_PYTHON_THREAD_END_ALLOW;
17793       }
17794     } catch (...) {
17795       Xapian::SetPythonException();
17796       SWIG_fail;
17797     }
17798   }
17799   resultobj = SWIG_From_bool(static_cast< bool >(result));
17800   return resultobj;
17801 fail:
17802   return NULL;
17803 }
17804 
17805 
_wrap__ValueIterator___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17806 SWIGINTERN PyObject *_wrap__ValueIterator___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17807   PyObject *resultobj = 0;
17808   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17809   void *argp1 = 0 ;
17810   int res1 = 0 ;
17811   PyObject *swig_obj[1] ;
17812   std::string result;
17813 
17814   if (!args) SWIG_fail;
17815   swig_obj[0] = args;
17816   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
17817   if (!SWIG_IsOK(res1)) {
17818     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator___str__" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'");
17819   }
17820   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17821   {
17822     try {
17823       {
17824         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17825         result = ((Xapian::ValueIterator const *)arg1)->get_description();
17826         SWIG_PYTHON_THREAD_END_ALLOW;
17827       }
17828     } catch (...) {
17829       Xapian::SetPythonException();
17830       SWIG_fail;
17831     }
17832   }
17833   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
17834   return resultobj;
17835 fail:
17836   return NULL;
17837 }
17838 
17839 
_wrap__ValueIterator___eq__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17840 SWIGINTERN PyObject *_wrap__ValueIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17841   PyObject *resultobj = 0;
17842   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17843   Xapian::ValueIterator *arg2 = 0 ;
17844   void *argp1 = 0 ;
17845   int res1 = 0 ;
17846   void *argp2 = 0 ;
17847   int res2 = 0 ;
17848   PyObject *swig_obj[2] ;
17849   bool result;
17850 
17851   if (!SWIG_Python_UnpackTuple(args,"_ValueIterator___eq__",2,2,swig_obj)) SWIG_fail;
17852   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
17853   if (!SWIG_IsOK(res1)) {
17854     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator___eq__" "', argument " "1"" of type '" "Xapian::ValueIterator *""'");
17855   }
17856   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17857   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ValueIterator,  0  | 0);
17858   if (!SWIG_IsOK(res2)) {
17859     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_ValueIterator___eq__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
17860   }
17861   if (!argp2) {
17862     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_ValueIterator___eq__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
17863   }
17864   arg2 = reinterpret_cast< Xapian::ValueIterator * >(argp2);
17865   {
17866     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17867     result = (bool)Xapian_ValueIterator___eq__(arg1,(Xapian::ValueIterator const &)*arg2);
17868     SWIG_PYTHON_THREAD_END_ALLOW;
17869   }
17870   resultobj = SWIG_From_bool(static_cast< bool >(result));
17871   return resultobj;
17872 fail:
17873   return NULL;
17874 }
17875 
17876 
_wrap__ValueIterator___ne__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17877 SWIGINTERN PyObject *_wrap__ValueIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17878   PyObject *resultobj = 0;
17879   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17880   Xapian::ValueIterator *arg2 = 0 ;
17881   void *argp1 = 0 ;
17882   int res1 = 0 ;
17883   void *argp2 = 0 ;
17884   int res2 = 0 ;
17885   PyObject *swig_obj[2] ;
17886   bool result;
17887 
17888   if (!SWIG_Python_UnpackTuple(args,"_ValueIterator___ne__",2,2,swig_obj)) SWIG_fail;
17889   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
17890   if (!SWIG_IsOK(res1)) {
17891     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator___ne__" "', argument " "1"" of type '" "Xapian::ValueIterator *""'");
17892   }
17893   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17894   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ValueIterator,  0  | 0);
17895   if (!SWIG_IsOK(res2)) {
17896     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_ValueIterator___ne__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
17897   }
17898   if (!argp2) {
17899     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_ValueIterator___ne__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
17900   }
17901   arg2 = reinterpret_cast< Xapian::ValueIterator * >(argp2);
17902   {
17903     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17904     result = (bool)Xapian_ValueIterator___ne__(arg1,(Xapian::ValueIterator const &)*arg2);
17905     SWIG_PYTHON_THREAD_END_ALLOW;
17906   }
17907   resultobj = SWIG_From_bool(static_cast< bool >(result));
17908   return resultobj;
17909 fail:
17910   return NULL;
17911 }
17912 
17913 
_wrap__ValueIterator_equals(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17914 SWIGINTERN PyObject *_wrap__ValueIterator_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17915   PyObject *resultobj = 0;
17916   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17917   Xapian::ValueIterator *arg2 = 0 ;
17918   void *argp1 = 0 ;
17919   int res1 = 0 ;
17920   void *argp2 = 0 ;
17921   int res2 = 0 ;
17922   PyObject *swig_obj[2] ;
17923   bool result;
17924 
17925   if (!SWIG_Python_UnpackTuple(args,"_ValueIterator_equals",2,2,swig_obj)) SWIG_fail;
17926   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
17927   if (!SWIG_IsOK(res1)) {
17928     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator_equals" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'");
17929   }
17930   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17931   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ValueIterator,  0  | 0);
17932   if (!SWIG_IsOK(res2)) {
17933     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_ValueIterator_equals" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
17934   }
17935   if (!argp2) {
17936     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_ValueIterator_equals" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
17937   }
17938   arg2 = reinterpret_cast< Xapian::ValueIterator * >(argp2);
17939   {
17940     try {
17941       {
17942         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17943         result = (bool)Xapian_ValueIterator_equals((Xapian::ValueIterator const *)arg1,(Xapian::ValueIterator const &)*arg2);
17944         SWIG_PYTHON_THREAD_END_ALLOW;
17945       }
17946     } catch (...) {
17947       Xapian::SetPythonException();
17948       SWIG_fail;
17949     }
17950   }
17951   resultobj = SWIG_From_bool(static_cast< bool >(result));
17952   return resultobj;
17953 fail:
17954   return NULL;
17955 }
17956 
17957 
_wrap__ValueIterator_get_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17958 SWIGINTERN PyObject *_wrap__ValueIterator_get_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17959   PyObject *resultobj = 0;
17960   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17961   void *argp1 = 0 ;
17962   int res1 = 0 ;
17963   PyObject *swig_obj[1] ;
17964   std::string result;
17965 
17966   if (!args) SWIG_fail;
17967   swig_obj[0] = args;
17968   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
17969   if (!SWIG_IsOK(res1)) {
17970     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator_get_value" "', argument " "1"" of type '" "Xapian::ValueIterator const *""'");
17971   }
17972   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
17973   {
17974     try {
17975       {
17976         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
17977         result = Xapian_ValueIterator_get_value((Xapian::ValueIterator const *)arg1);
17978         SWIG_PYTHON_THREAD_END_ALLOW;
17979       }
17980     } catch (...) {
17981       Xapian::SetPythonException();
17982       SWIG_fail;
17983     }
17984   }
17985 
17986   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
17987 
17988   return resultobj;
17989 fail:
17990   return NULL;
17991 }
17992 
17993 
_wrap__ValueIterator___next__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17994 SWIGINTERN PyObject *_wrap__ValueIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17995   PyObject *resultobj = 0;
17996   Xapian::ValueIterator *arg1 = (Xapian::ValueIterator *) 0 ;
17997   void *argp1 = 0 ;
17998   int res1 = 0 ;
17999   PyObject *swig_obj[1] ;
18000 
18001   if (!args) SWIG_fail;
18002   swig_obj[0] = args;
18003   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueIterator, 0 |  0 );
18004   if (!SWIG_IsOK(res1)) {
18005     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ValueIterator___next__" "', argument " "1"" of type '" "Xapian::ValueIterator *""'");
18006   }
18007   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
18008   {
18009     try {
18010       {
18011         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18012         Xapian_ValueIterator_next(arg1);
18013         SWIG_PYTHON_THREAD_END_ALLOW;
18014       }
18015     } catch (...) {
18016       Xapian::SetPythonException();
18017       SWIG_fail;
18018     }
18019   }
18020   resultobj = SWIG_Py_Void();
18021   return resultobj;
18022 fail:
18023   return NULL;
18024 }
18025 
18026 
_ValueIterator_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18027 SWIGINTERN PyObject *_ValueIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18028   PyObject *obj;
18029   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
18030   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ValueIterator, SWIG_NewClientData(obj));
18031   return SWIG_Py_Void();
18032 }
18033 
_ValueIterator_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18034 SWIGINTERN PyObject *_ValueIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18035   return SWIG_Python_InitShadowInstance(args);
18036 }
18037 
_wrap___eq____SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)18038 SWIGINTERN PyObject *_wrap___eq____SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18039   PyObject *resultobj = 0;
18040   Xapian::ValueIterator *arg1 = 0 ;
18041   Xapian::ValueIterator *arg2 = 0 ;
18042   void *argp1 = 0 ;
18043   int res1 = 0 ;
18044   void *argp2 = 0 ;
18045   int res2 = 0 ;
18046   bool result;
18047 
18048   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
18049   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__ValueIterator,  0  | 0);
18050   if (!SWIG_IsOK(res1)) {
18051     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::ValueIterator const &""'");
18052   }
18053   if (!argp1) {
18054     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::ValueIterator const &""'");
18055   }
18056   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
18057   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ValueIterator,  0  | 0);
18058   if (!SWIG_IsOK(res2)) {
18059     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
18060   }
18061   if (!argp2) {
18062     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
18063   }
18064   arg2 = reinterpret_cast< Xapian::ValueIterator * >(argp2);
18065   {
18066     try {
18067       {
18068         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18069         result = (bool)Xapian::operator ==((Xapian::ValueIterator const &)*arg1,(Xapian::ValueIterator const &)*arg2);
18070         SWIG_PYTHON_THREAD_END_ALLOW;
18071       }
18072     } catch (...) {
18073       Xapian::SetPythonException();
18074       SWIG_fail;
18075     }
18076   }
18077   resultobj = SWIG_From_bool(static_cast< bool >(result));
18078   return resultobj;
18079 fail:
18080   return NULL;
18081 }
18082 
18083 
_wrap___ne____SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)18084 SWIGINTERN PyObject *_wrap___ne____SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18085   PyObject *resultobj = 0;
18086   Xapian::ValueIterator *arg1 = 0 ;
18087   Xapian::ValueIterator *arg2 = 0 ;
18088   void *argp1 = 0 ;
18089   int res1 = 0 ;
18090   void *argp2 = 0 ;
18091   int res2 = 0 ;
18092   bool result;
18093 
18094   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
18095   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__ValueIterator,  0  | 0);
18096   if (!SWIG_IsOK(res1)) {
18097     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::ValueIterator const &""'");
18098   }
18099   if (!argp1) {
18100     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::ValueIterator const &""'");
18101   }
18102   arg1 = reinterpret_cast< Xapian::ValueIterator * >(argp1);
18103   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ValueIterator,  0  | 0);
18104   if (!SWIG_IsOK(res2)) {
18105     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
18106   }
18107   if (!argp2) {
18108     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::ValueIterator const &""'");
18109   }
18110   arg2 = reinterpret_cast< Xapian::ValueIterator * >(argp2);
18111   {
18112     try {
18113       {
18114         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18115         result = (bool)Xapian::operator !=((Xapian::ValueIterator const &)*arg1,(Xapian::ValueIterator const &)*arg2);
18116         SWIG_PYTHON_THREAD_END_ALLOW;
18117       }
18118     } catch (...) {
18119       Xapian::SetPythonException();
18120       SWIG_fail;
18121     }
18122   }
18123   resultobj = SWIG_From_bool(static_cast< bool >(result));
18124   return resultobj;
18125 fail:
18126   return NULL;
18127 }
18128 
18129 
_wrap_new_Document(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18130 SWIGINTERN PyObject *_wrap_new_Document(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18131   PyObject *resultobj = 0;
18132   Xapian::Document *result = 0 ;
18133 
18134   if (!SWIG_Python_UnpackTuple(args,"new_Document",0,0,0)) SWIG_fail;
18135   {
18136     try {
18137       {
18138         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18139         result = (Xapian::Document *)new Xapian::Document();
18140         SWIG_PYTHON_THREAD_END_ALLOW;
18141       }
18142     } catch (...) {
18143       Xapian::SetPythonException();
18144       SWIG_fail;
18145     }
18146   }
18147   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Document, SWIG_POINTER_NEW |  0 );
18148   return resultobj;
18149 fail:
18150   return NULL;
18151 }
18152 
18153 
_wrap_delete_Document(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18154 SWIGINTERN PyObject *_wrap_delete_Document(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18155   PyObject *resultobj = 0;
18156   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18157   void *argp1 = 0 ;
18158   int res1 = 0 ;
18159   PyObject *swig_obj[1] ;
18160 
18161   if (!args) SWIG_fail;
18162   swig_obj[0] = args;
18163   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, SWIG_POINTER_DISOWN |  0 );
18164   if (!SWIG_IsOK(res1)) {
18165     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Document" "', argument " "1"" of type '" "Xapian::Document *""'");
18166   }
18167   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18168   {
18169     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18170     delete arg1;
18171     SWIG_PYTHON_THREAD_END_ALLOW;
18172   }
18173   resultobj = SWIG_Py_Void();
18174   return resultobj;
18175 fail:
18176   return NULL;
18177 }
18178 
18179 
_wrap_Document_get_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18180 SWIGINTERN PyObject *_wrap_Document_get_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18181   PyObject *resultobj = 0;
18182   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18183   Xapian::valueno arg2 ;
18184   void *argp1 = 0 ;
18185   int res1 = 0 ;
18186   unsigned int val2 ;
18187   int ecode2 = 0 ;
18188   PyObject *swig_obj[2] ;
18189   std::string result;
18190 
18191   if (!SWIG_Python_UnpackTuple(args,"Document_get_value",2,2,swig_obj)) SWIG_fail;
18192   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18193   if (!SWIG_IsOK(res1)) {
18194     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_get_value" "', argument " "1"" of type '" "Xapian::Document const *""'");
18195   }
18196   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18197   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
18198   if (!SWIG_IsOK(ecode2)) {
18199     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Document_get_value" "', argument " "2"" of type '" "Xapian::valueno""'");
18200   }
18201   arg2 = static_cast< Xapian::valueno >(val2);
18202   {
18203     try {
18204       {
18205         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18206         result = ((Xapian::Document const *)arg1)->get_value(arg2);
18207         SWIG_PYTHON_THREAD_END_ALLOW;
18208       }
18209     } catch (...) {
18210       Xapian::SetPythonException();
18211       SWIG_fail;
18212     }
18213   }
18214 
18215   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
18216 
18217   return resultobj;
18218 fail:
18219   return NULL;
18220 }
18221 
18222 
_wrap_Document_add_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18223 SWIGINTERN PyObject *_wrap_Document_add_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18224   PyObject *resultobj = 0;
18225   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18226   Xapian::valueno arg2 ;
18227   std::string *arg3 = 0 ;
18228   void *argp1 = 0 ;
18229   int res1 = 0 ;
18230   unsigned int val2 ;
18231   int ecode2 = 0 ;
18232   int res3 = SWIG_OLDOBJ ;
18233   PyObject *swig_obj[3] ;
18234 
18235   if (!SWIG_Python_UnpackTuple(args,"Document_add_value",3,3,swig_obj)) SWIG_fail;
18236   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18237   if (!SWIG_IsOK(res1)) {
18238     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_add_value" "', argument " "1"" of type '" "Xapian::Document *""'");
18239   }
18240   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18241   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
18242   if (!SWIG_IsOK(ecode2)) {
18243     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Document_add_value" "', argument " "2"" of type '" "Xapian::valueno""'");
18244   }
18245   arg2 = static_cast< Xapian::valueno >(val2);
18246   {
18247     std::string *ptr = (std::string *)0;
18248     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
18249     if (!SWIG_IsOK(res3)) {
18250       if (res3 == INT_MIN) SWIG_fail;
18251       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Document_add_value" "', argument " "3"" of type '" "std::string const &""'");
18252     }
18253     if (!ptr) {
18254       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_add_value" "', argument " "3"" of type '" "std::string const &""'");
18255     }
18256     arg3 = ptr;
18257   }
18258   {
18259     try {
18260       {
18261         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18262         (arg1)->add_value(arg2,(std::string const &)*arg3);
18263         SWIG_PYTHON_THREAD_END_ALLOW;
18264       }
18265     } catch (...) {
18266       Xapian::SetPythonException();
18267       SWIG_fail;
18268     }
18269   }
18270   resultobj = SWIG_Py_Void();
18271   if (SWIG_IsNewObj(res3)) delete arg3;
18272   return resultobj;
18273 fail:
18274   if (SWIG_IsNewObj(res3)) delete arg3;
18275   return NULL;
18276 }
18277 
18278 
_wrap_Document_remove_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18279 SWIGINTERN PyObject *_wrap_Document_remove_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18280   PyObject *resultobj = 0;
18281   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18282   Xapian::valueno arg2 ;
18283   void *argp1 = 0 ;
18284   int res1 = 0 ;
18285   unsigned int val2 ;
18286   int ecode2 = 0 ;
18287   PyObject *swig_obj[2] ;
18288 
18289   if (!SWIG_Python_UnpackTuple(args,"Document_remove_value",2,2,swig_obj)) SWIG_fail;
18290   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18291   if (!SWIG_IsOK(res1)) {
18292     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_remove_value" "', argument " "1"" of type '" "Xapian::Document *""'");
18293   }
18294   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18295   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
18296   if (!SWIG_IsOK(ecode2)) {
18297     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Document_remove_value" "', argument " "2"" of type '" "Xapian::valueno""'");
18298   }
18299   arg2 = static_cast< Xapian::valueno >(val2);
18300   {
18301     try {
18302       {
18303         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18304         (arg1)->remove_value(arg2);
18305         SWIG_PYTHON_THREAD_END_ALLOW;
18306       }
18307     } catch (...) {
18308       Xapian::SetPythonException();
18309       SWIG_fail;
18310     }
18311   }
18312   resultobj = SWIG_Py_Void();
18313   return resultobj;
18314 fail:
18315   return NULL;
18316 }
18317 
18318 
_wrap_Document_clear_values(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18319 SWIGINTERN PyObject *_wrap_Document_clear_values(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18320   PyObject *resultobj = 0;
18321   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18322   void *argp1 = 0 ;
18323   int res1 = 0 ;
18324   PyObject *swig_obj[1] ;
18325 
18326   if (!args) SWIG_fail;
18327   swig_obj[0] = args;
18328   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18329   if (!SWIG_IsOK(res1)) {
18330     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_clear_values" "', argument " "1"" of type '" "Xapian::Document *""'");
18331   }
18332   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18333   {
18334     try {
18335       {
18336         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18337         (arg1)->clear_values();
18338         SWIG_PYTHON_THREAD_END_ALLOW;
18339       }
18340     } catch (...) {
18341       Xapian::SetPythonException();
18342       SWIG_fail;
18343     }
18344   }
18345   resultobj = SWIG_Py_Void();
18346   return resultobj;
18347 fail:
18348   return NULL;
18349 }
18350 
18351 
_wrap_Document_get_data(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18352 SWIGINTERN PyObject *_wrap_Document_get_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18353   PyObject *resultobj = 0;
18354   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18355   void *argp1 = 0 ;
18356   int res1 = 0 ;
18357   PyObject *swig_obj[1] ;
18358   std::string result;
18359 
18360   if (!args) SWIG_fail;
18361   swig_obj[0] = args;
18362   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18363   if (!SWIG_IsOK(res1)) {
18364     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_get_data" "', argument " "1"" of type '" "Xapian::Document const *""'");
18365   }
18366   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18367   {
18368     try {
18369       {
18370         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18371         result = ((Xapian::Document const *)arg1)->get_data();
18372         SWIG_PYTHON_THREAD_END_ALLOW;
18373       }
18374     } catch (...) {
18375       Xapian::SetPythonException();
18376       SWIG_fail;
18377     }
18378   }
18379 
18380   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
18381 
18382   return resultobj;
18383 fail:
18384   return NULL;
18385 }
18386 
18387 
_wrap_Document_set_data(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18388 SWIGINTERN PyObject *_wrap_Document_set_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18389   PyObject *resultobj = 0;
18390   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18391   std::string *arg2 = 0 ;
18392   void *argp1 = 0 ;
18393   int res1 = 0 ;
18394   int res2 = SWIG_OLDOBJ ;
18395   PyObject *swig_obj[2] ;
18396 
18397   if (!SWIG_Python_UnpackTuple(args,"Document_set_data",2,2,swig_obj)) SWIG_fail;
18398   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18399   if (!SWIG_IsOK(res1)) {
18400     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_set_data" "', argument " "1"" of type '" "Xapian::Document *""'");
18401   }
18402   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18403   {
18404     std::string *ptr = (std::string *)0;
18405     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18406     if (!SWIG_IsOK(res2)) {
18407       if (res2 == INT_MIN) SWIG_fail;
18408       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_set_data" "', argument " "2"" of type '" "std::string const &""'");
18409     }
18410     if (!ptr) {
18411       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_set_data" "', argument " "2"" of type '" "std::string const &""'");
18412     }
18413     arg2 = ptr;
18414   }
18415   {
18416     try {
18417       {
18418         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18419         (arg1)->set_data((std::string const &)*arg2);
18420         SWIG_PYTHON_THREAD_END_ALLOW;
18421       }
18422     } catch (...) {
18423       Xapian::SetPythonException();
18424       SWIG_fail;
18425     }
18426   }
18427   resultobj = SWIG_Py_Void();
18428   if (SWIG_IsNewObj(res2)) delete arg2;
18429   return resultobj;
18430 fail:
18431   if (SWIG_IsNewObj(res2)) delete arg2;
18432   return NULL;
18433 }
18434 
18435 
_wrap_Document_add_posting__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)18436 SWIGINTERN PyObject *_wrap_Document_add_posting__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18437   PyObject *resultobj = 0;
18438   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18439   std::string *arg2 = 0 ;
18440   Xapian::termpos arg3 ;
18441   Xapian::termcount arg4 ;
18442   void *argp1 = 0 ;
18443   int res1 = 0 ;
18444   int res2 = SWIG_OLDOBJ ;
18445   unsigned int val3 ;
18446   int ecode3 = 0 ;
18447   unsigned int val4 ;
18448   int ecode4 = 0 ;
18449 
18450   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
18451   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18452   if (!SWIG_IsOK(res1)) {
18453     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_add_posting" "', argument " "1"" of type '" "Xapian::Document *""'");
18454   }
18455   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18456   {
18457     std::string *ptr = (std::string *)0;
18458     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18459     if (!SWIG_IsOK(res2)) {
18460       if (res2 == INT_MIN) SWIG_fail;
18461       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_add_posting" "', argument " "2"" of type '" "std::string const &""'");
18462     }
18463     if (!ptr) {
18464       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_add_posting" "', argument " "2"" of type '" "std::string const &""'");
18465     }
18466     arg2 = ptr;
18467   }
18468   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
18469   if (!SWIG_IsOK(ecode3)) {
18470     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_add_posting" "', argument " "3"" of type '" "Xapian::termpos""'");
18471   }
18472   arg3 = static_cast< Xapian::termpos >(val3);
18473   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
18474   if (!SWIG_IsOK(ecode4)) {
18475     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Document_add_posting" "', argument " "4"" of type '" "Xapian::termcount""'");
18476   }
18477   arg4 = static_cast< Xapian::termcount >(val4);
18478   {
18479     try {
18480       {
18481         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18482         (arg1)->add_posting((std::string const &)*arg2,arg3,arg4);
18483         SWIG_PYTHON_THREAD_END_ALLOW;
18484       }
18485     } catch (...) {
18486       Xapian::SetPythonException();
18487       SWIG_fail;
18488     }
18489   }
18490   resultobj = SWIG_Py_Void();
18491   if (SWIG_IsNewObj(res2)) delete arg2;
18492   return resultobj;
18493 fail:
18494   if (SWIG_IsNewObj(res2)) delete arg2;
18495   return NULL;
18496 }
18497 
18498 
_wrap_Document_add_posting__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)18499 SWIGINTERN PyObject *_wrap_Document_add_posting__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18500   PyObject *resultobj = 0;
18501   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18502   std::string *arg2 = 0 ;
18503   Xapian::termpos arg3 ;
18504   void *argp1 = 0 ;
18505   int res1 = 0 ;
18506   int res2 = SWIG_OLDOBJ ;
18507   unsigned int val3 ;
18508   int ecode3 = 0 ;
18509 
18510   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
18511   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18512   if (!SWIG_IsOK(res1)) {
18513     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_add_posting" "', argument " "1"" of type '" "Xapian::Document *""'");
18514   }
18515   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18516   {
18517     std::string *ptr = (std::string *)0;
18518     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18519     if (!SWIG_IsOK(res2)) {
18520       if (res2 == INT_MIN) SWIG_fail;
18521       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_add_posting" "', argument " "2"" of type '" "std::string const &""'");
18522     }
18523     if (!ptr) {
18524       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_add_posting" "', argument " "2"" of type '" "std::string const &""'");
18525     }
18526     arg2 = ptr;
18527   }
18528   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
18529   if (!SWIG_IsOK(ecode3)) {
18530     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_add_posting" "', argument " "3"" of type '" "Xapian::termpos""'");
18531   }
18532   arg3 = static_cast< Xapian::termpos >(val3);
18533   {
18534     try {
18535       {
18536         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18537         (arg1)->add_posting((std::string const &)*arg2,arg3);
18538         SWIG_PYTHON_THREAD_END_ALLOW;
18539       }
18540     } catch (...) {
18541       Xapian::SetPythonException();
18542       SWIG_fail;
18543     }
18544   }
18545   resultobj = SWIG_Py_Void();
18546   if (SWIG_IsNewObj(res2)) delete arg2;
18547   return resultobj;
18548 fail:
18549   if (SWIG_IsNewObj(res2)) delete arg2;
18550   return NULL;
18551 }
18552 
18553 
_wrap_Document_add_posting(PyObject * self,PyObject * args)18554 SWIGINTERN PyObject *_wrap_Document_add_posting(PyObject *self, PyObject *args) {
18555   Py_ssize_t argc;
18556   PyObject *argv[5] = {
18557     0
18558   };
18559 
18560   if (!(argc = SWIG_Python_UnpackTuple(args,"Document_add_posting",0,4,argv))) SWIG_fail;
18561   --argc;
18562   if (argc == 3) {
18563     return _wrap_Document_add_posting__SWIG_1(self, argc, argv);
18564   }
18565   if (argc == 4) {
18566     return _wrap_Document_add_posting__SWIG_0(self, argc, argv);
18567   }
18568 
18569 fail:
18570   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Document_add_posting'.\n"
18571     "  Possible C/C++ prototypes are:\n"
18572     "    Xapian::Document::add_posting(std::string const &,Xapian::termpos,Xapian::termcount)\n"
18573     "    Xapian::Document::add_posting(std::string const &,Xapian::termpos)\n");
18574   return 0;
18575 }
18576 
18577 
_wrap_Document_add_term__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)18578 SWIGINTERN PyObject *_wrap_Document_add_term__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18579   PyObject *resultobj = 0;
18580   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18581   std::string *arg2 = 0 ;
18582   Xapian::termcount arg3 ;
18583   void *argp1 = 0 ;
18584   int res1 = 0 ;
18585   int res2 = SWIG_OLDOBJ ;
18586   unsigned int val3 ;
18587   int ecode3 = 0 ;
18588 
18589   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
18590   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18591   if (!SWIG_IsOK(res1)) {
18592     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_add_term" "', argument " "1"" of type '" "Xapian::Document *""'");
18593   }
18594   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18595   {
18596     std::string *ptr = (std::string *)0;
18597     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18598     if (!SWIG_IsOK(res2)) {
18599       if (res2 == INT_MIN) SWIG_fail;
18600       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_add_term" "', argument " "2"" of type '" "std::string const &""'");
18601     }
18602     if (!ptr) {
18603       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_add_term" "', argument " "2"" of type '" "std::string const &""'");
18604     }
18605     arg2 = ptr;
18606   }
18607   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
18608   if (!SWIG_IsOK(ecode3)) {
18609     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_add_term" "', argument " "3"" of type '" "Xapian::termcount""'");
18610   }
18611   arg3 = static_cast< Xapian::termcount >(val3);
18612   {
18613     try {
18614       {
18615         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18616         (arg1)->add_term((std::string const &)*arg2,arg3);
18617         SWIG_PYTHON_THREAD_END_ALLOW;
18618       }
18619     } catch (...) {
18620       Xapian::SetPythonException();
18621       SWIG_fail;
18622     }
18623   }
18624   resultobj = SWIG_Py_Void();
18625   if (SWIG_IsNewObj(res2)) delete arg2;
18626   return resultobj;
18627 fail:
18628   if (SWIG_IsNewObj(res2)) delete arg2;
18629   return NULL;
18630 }
18631 
18632 
_wrap_Document_add_term__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)18633 SWIGINTERN PyObject *_wrap_Document_add_term__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18634   PyObject *resultobj = 0;
18635   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18636   std::string *arg2 = 0 ;
18637   void *argp1 = 0 ;
18638   int res1 = 0 ;
18639   int res2 = SWIG_OLDOBJ ;
18640 
18641   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
18642   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18643   if (!SWIG_IsOK(res1)) {
18644     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_add_term" "', argument " "1"" of type '" "Xapian::Document *""'");
18645   }
18646   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18647   {
18648     std::string *ptr = (std::string *)0;
18649     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18650     if (!SWIG_IsOK(res2)) {
18651       if (res2 == INT_MIN) SWIG_fail;
18652       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_add_term" "', argument " "2"" of type '" "std::string const &""'");
18653     }
18654     if (!ptr) {
18655       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_add_term" "', argument " "2"" of type '" "std::string const &""'");
18656     }
18657     arg2 = ptr;
18658   }
18659   {
18660     try {
18661       {
18662         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18663         (arg1)->add_term((std::string const &)*arg2);
18664         SWIG_PYTHON_THREAD_END_ALLOW;
18665       }
18666     } catch (...) {
18667       Xapian::SetPythonException();
18668       SWIG_fail;
18669     }
18670   }
18671   resultobj = SWIG_Py_Void();
18672   if (SWIG_IsNewObj(res2)) delete arg2;
18673   return resultobj;
18674 fail:
18675   if (SWIG_IsNewObj(res2)) delete arg2;
18676   return NULL;
18677 }
18678 
18679 
_wrap_Document_add_term(PyObject * self,PyObject * args)18680 SWIGINTERN PyObject *_wrap_Document_add_term(PyObject *self, PyObject *args) {
18681   Py_ssize_t argc;
18682   PyObject *argv[4] = {
18683     0
18684   };
18685 
18686   if (!(argc = SWIG_Python_UnpackTuple(args,"Document_add_term",0,3,argv))) SWIG_fail;
18687   --argc;
18688   if (argc == 2) {
18689     return _wrap_Document_add_term__SWIG_1(self, argc, argv);
18690   }
18691   if (argc == 3) {
18692     return _wrap_Document_add_term__SWIG_0(self, argc, argv);
18693   }
18694 
18695 fail:
18696   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Document_add_term'.\n"
18697     "  Possible C/C++ prototypes are:\n"
18698     "    Xapian::Document::add_term(std::string const &,Xapian::termcount)\n"
18699     "    Xapian::Document::add_term(std::string const &)\n");
18700   return 0;
18701 }
18702 
18703 
_wrap_Document_add_boolean_term(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18704 SWIGINTERN PyObject *_wrap_Document_add_boolean_term(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18705   PyObject *resultobj = 0;
18706   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18707   std::string *arg2 = 0 ;
18708   void *argp1 = 0 ;
18709   int res1 = 0 ;
18710   int res2 = SWIG_OLDOBJ ;
18711   PyObject *swig_obj[2] ;
18712 
18713   if (!SWIG_Python_UnpackTuple(args,"Document_add_boolean_term",2,2,swig_obj)) SWIG_fail;
18714   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18715   if (!SWIG_IsOK(res1)) {
18716     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_add_boolean_term" "', argument " "1"" of type '" "Xapian::Document *""'");
18717   }
18718   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18719   {
18720     std::string *ptr = (std::string *)0;
18721     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18722     if (!SWIG_IsOK(res2)) {
18723       if (res2 == INT_MIN) SWIG_fail;
18724       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_add_boolean_term" "', argument " "2"" of type '" "std::string const &""'");
18725     }
18726     if (!ptr) {
18727       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_add_boolean_term" "', argument " "2"" of type '" "std::string const &""'");
18728     }
18729     arg2 = ptr;
18730   }
18731   {
18732     try {
18733       {
18734         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18735         (arg1)->add_boolean_term((std::string const &)*arg2);
18736         SWIG_PYTHON_THREAD_END_ALLOW;
18737       }
18738     } catch (...) {
18739       Xapian::SetPythonException();
18740       SWIG_fail;
18741     }
18742   }
18743   resultobj = SWIG_Py_Void();
18744   if (SWIG_IsNewObj(res2)) delete arg2;
18745   return resultobj;
18746 fail:
18747   if (SWIG_IsNewObj(res2)) delete arg2;
18748   return NULL;
18749 }
18750 
18751 
_wrap_Document_remove_posting__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)18752 SWIGINTERN PyObject *_wrap_Document_remove_posting__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18753   PyObject *resultobj = 0;
18754   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18755   std::string *arg2 = 0 ;
18756   Xapian::termpos arg3 ;
18757   Xapian::termcount arg4 ;
18758   void *argp1 = 0 ;
18759   int res1 = 0 ;
18760   int res2 = SWIG_OLDOBJ ;
18761   unsigned int val3 ;
18762   int ecode3 = 0 ;
18763   unsigned int val4 ;
18764   int ecode4 = 0 ;
18765 
18766   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
18767   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18768   if (!SWIG_IsOK(res1)) {
18769     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_remove_posting" "', argument " "1"" of type '" "Xapian::Document *""'");
18770   }
18771   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18772   {
18773     std::string *ptr = (std::string *)0;
18774     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18775     if (!SWIG_IsOK(res2)) {
18776       if (res2 == INT_MIN) SWIG_fail;
18777       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_remove_posting" "', argument " "2"" of type '" "std::string const &""'");
18778     }
18779     if (!ptr) {
18780       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_remove_posting" "', argument " "2"" of type '" "std::string const &""'");
18781     }
18782     arg2 = ptr;
18783   }
18784   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
18785   if (!SWIG_IsOK(ecode3)) {
18786     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_remove_posting" "', argument " "3"" of type '" "Xapian::termpos""'");
18787   }
18788   arg3 = static_cast< Xapian::termpos >(val3);
18789   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
18790   if (!SWIG_IsOK(ecode4)) {
18791     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Document_remove_posting" "', argument " "4"" of type '" "Xapian::termcount""'");
18792   }
18793   arg4 = static_cast< Xapian::termcount >(val4);
18794   {
18795     try {
18796       {
18797         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18798         (arg1)->remove_posting((std::string const &)*arg2,arg3,arg4);
18799         SWIG_PYTHON_THREAD_END_ALLOW;
18800       }
18801     } catch (...) {
18802       Xapian::SetPythonException();
18803       SWIG_fail;
18804     }
18805   }
18806   resultobj = SWIG_Py_Void();
18807   if (SWIG_IsNewObj(res2)) delete arg2;
18808   return resultobj;
18809 fail:
18810   if (SWIG_IsNewObj(res2)) delete arg2;
18811   return NULL;
18812 }
18813 
18814 
_wrap_Document_remove_posting__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)18815 SWIGINTERN PyObject *_wrap_Document_remove_posting__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18816   PyObject *resultobj = 0;
18817   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18818   std::string *arg2 = 0 ;
18819   Xapian::termpos arg3 ;
18820   void *argp1 = 0 ;
18821   int res1 = 0 ;
18822   int res2 = SWIG_OLDOBJ ;
18823   unsigned int val3 ;
18824   int ecode3 = 0 ;
18825 
18826   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
18827   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18828   if (!SWIG_IsOK(res1)) {
18829     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_remove_posting" "', argument " "1"" of type '" "Xapian::Document *""'");
18830   }
18831   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18832   {
18833     std::string *ptr = (std::string *)0;
18834     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18835     if (!SWIG_IsOK(res2)) {
18836       if (res2 == INT_MIN) SWIG_fail;
18837       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_remove_posting" "', argument " "2"" of type '" "std::string const &""'");
18838     }
18839     if (!ptr) {
18840       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_remove_posting" "', argument " "2"" of type '" "std::string const &""'");
18841     }
18842     arg2 = ptr;
18843   }
18844   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
18845   if (!SWIG_IsOK(ecode3)) {
18846     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_remove_posting" "', argument " "3"" of type '" "Xapian::termpos""'");
18847   }
18848   arg3 = static_cast< Xapian::termpos >(val3);
18849   {
18850     try {
18851       {
18852         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18853         (arg1)->remove_posting((std::string const &)*arg2,arg3);
18854         SWIG_PYTHON_THREAD_END_ALLOW;
18855       }
18856     } catch (...) {
18857       Xapian::SetPythonException();
18858       SWIG_fail;
18859     }
18860   }
18861   resultobj = SWIG_Py_Void();
18862   if (SWIG_IsNewObj(res2)) delete arg2;
18863   return resultobj;
18864 fail:
18865   if (SWIG_IsNewObj(res2)) delete arg2;
18866   return NULL;
18867 }
18868 
18869 
_wrap_Document_remove_posting(PyObject * self,PyObject * args)18870 SWIGINTERN PyObject *_wrap_Document_remove_posting(PyObject *self, PyObject *args) {
18871   Py_ssize_t argc;
18872   PyObject *argv[5] = {
18873     0
18874   };
18875 
18876   if (!(argc = SWIG_Python_UnpackTuple(args,"Document_remove_posting",0,4,argv))) SWIG_fail;
18877   --argc;
18878   if (argc == 3) {
18879     return _wrap_Document_remove_posting__SWIG_1(self, argc, argv);
18880   }
18881   if (argc == 4) {
18882     return _wrap_Document_remove_posting__SWIG_0(self, argc, argv);
18883   }
18884 
18885 fail:
18886   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Document_remove_posting'.\n"
18887     "  Possible C/C++ prototypes are:\n"
18888     "    Xapian::Document::remove_posting(std::string const &,Xapian::termpos,Xapian::termcount)\n"
18889     "    Xapian::Document::remove_posting(std::string const &,Xapian::termpos)\n");
18890   return 0;
18891 }
18892 
18893 
_wrap_Document_remove_postings__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)18894 SWIGINTERN PyObject *_wrap_Document_remove_postings__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18895   PyObject *resultobj = 0;
18896   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18897   std::string *arg2 = 0 ;
18898   Xapian::termpos arg3 ;
18899   Xapian::termpos arg4 ;
18900   Xapian::termcount arg5 ;
18901   void *argp1 = 0 ;
18902   int res1 = 0 ;
18903   int res2 = SWIG_OLDOBJ ;
18904   unsigned int val3 ;
18905   int ecode3 = 0 ;
18906   unsigned int val4 ;
18907   int ecode4 = 0 ;
18908   unsigned int val5 ;
18909   int ecode5 = 0 ;
18910   Xapian::termpos result;
18911 
18912   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
18913   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18914   if (!SWIG_IsOK(res1)) {
18915     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_remove_postings" "', argument " "1"" of type '" "Xapian::Document *""'");
18916   }
18917   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18918   {
18919     std::string *ptr = (std::string *)0;
18920     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18921     if (!SWIG_IsOK(res2)) {
18922       if (res2 == INT_MIN) SWIG_fail;
18923       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_remove_postings" "', argument " "2"" of type '" "std::string const &""'");
18924     }
18925     if (!ptr) {
18926       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_remove_postings" "', argument " "2"" of type '" "std::string const &""'");
18927     }
18928     arg2 = ptr;
18929   }
18930   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
18931   if (!SWIG_IsOK(ecode3)) {
18932     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_remove_postings" "', argument " "3"" of type '" "Xapian::termpos""'");
18933   }
18934   arg3 = static_cast< Xapian::termpos >(val3);
18935   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
18936   if (!SWIG_IsOK(ecode4)) {
18937     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Document_remove_postings" "', argument " "4"" of type '" "Xapian::termpos""'");
18938   }
18939   arg4 = static_cast< Xapian::termpos >(val4);
18940   ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5);
18941   if (!SWIG_IsOK(ecode5)) {
18942     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Document_remove_postings" "', argument " "5"" of type '" "Xapian::termcount""'");
18943   }
18944   arg5 = static_cast< Xapian::termcount >(val5);
18945   {
18946     try {
18947       {
18948         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
18949         result = (Xapian::termpos)(arg1)->remove_postings((std::string const &)*arg2,arg3,arg4,arg5);
18950         SWIG_PYTHON_THREAD_END_ALLOW;
18951       }
18952     } catch (...) {
18953       Xapian::SetPythonException();
18954       SWIG_fail;
18955     }
18956   }
18957   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
18958   if (SWIG_IsNewObj(res2)) delete arg2;
18959   return resultobj;
18960 fail:
18961   if (SWIG_IsNewObj(res2)) delete arg2;
18962   return NULL;
18963 }
18964 
18965 
_wrap_Document_remove_postings__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)18966 SWIGINTERN PyObject *_wrap_Document_remove_postings__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18967   PyObject *resultobj = 0;
18968   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
18969   std::string *arg2 = 0 ;
18970   Xapian::termpos arg3 ;
18971   Xapian::termpos arg4 ;
18972   void *argp1 = 0 ;
18973   int res1 = 0 ;
18974   int res2 = SWIG_OLDOBJ ;
18975   unsigned int val3 ;
18976   int ecode3 = 0 ;
18977   unsigned int val4 ;
18978   int ecode4 = 0 ;
18979   Xapian::termpos result;
18980 
18981   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
18982   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
18983   if (!SWIG_IsOK(res1)) {
18984     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_remove_postings" "', argument " "1"" of type '" "Xapian::Document *""'");
18985   }
18986   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
18987   {
18988     std::string *ptr = (std::string *)0;
18989     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
18990     if (!SWIG_IsOK(res2)) {
18991       if (res2 == INT_MIN) SWIG_fail;
18992       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_remove_postings" "', argument " "2"" of type '" "std::string const &""'");
18993     }
18994     if (!ptr) {
18995       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_remove_postings" "', argument " "2"" of type '" "std::string const &""'");
18996     }
18997     arg2 = ptr;
18998   }
18999   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
19000   if (!SWIG_IsOK(ecode3)) {
19001     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Document_remove_postings" "', argument " "3"" of type '" "Xapian::termpos""'");
19002   }
19003   arg3 = static_cast< Xapian::termpos >(val3);
19004   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
19005   if (!SWIG_IsOK(ecode4)) {
19006     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Document_remove_postings" "', argument " "4"" of type '" "Xapian::termpos""'");
19007   }
19008   arg4 = static_cast< Xapian::termpos >(val4);
19009   {
19010     try {
19011       {
19012         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19013         result = (Xapian::termpos)(arg1)->remove_postings((std::string const &)*arg2,arg3,arg4);
19014         SWIG_PYTHON_THREAD_END_ALLOW;
19015       }
19016     } catch (...) {
19017       Xapian::SetPythonException();
19018       SWIG_fail;
19019     }
19020   }
19021   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19022   if (SWIG_IsNewObj(res2)) delete arg2;
19023   return resultobj;
19024 fail:
19025   if (SWIG_IsNewObj(res2)) delete arg2;
19026   return NULL;
19027 }
19028 
19029 
_wrap_Document_remove_postings(PyObject * self,PyObject * args)19030 SWIGINTERN PyObject *_wrap_Document_remove_postings(PyObject *self, PyObject *args) {
19031   Py_ssize_t argc;
19032   PyObject *argv[6] = {
19033     0
19034   };
19035 
19036   if (!(argc = SWIG_Python_UnpackTuple(args,"Document_remove_postings",0,5,argv))) SWIG_fail;
19037   --argc;
19038   if (argc == 4) {
19039     return _wrap_Document_remove_postings__SWIG_1(self, argc, argv);
19040   }
19041   if (argc == 5) {
19042     return _wrap_Document_remove_postings__SWIG_0(self, argc, argv);
19043   }
19044 
19045 fail:
19046   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Document_remove_postings'.\n"
19047     "  Possible C/C++ prototypes are:\n"
19048     "    Xapian::Document::remove_postings(std::string const &,Xapian::termpos,Xapian::termpos,Xapian::termcount)\n"
19049     "    Xapian::Document::remove_postings(std::string const &,Xapian::termpos,Xapian::termpos)\n");
19050   return 0;
19051 }
19052 
19053 
_wrap_Document_remove_term(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19054 SWIGINTERN PyObject *_wrap_Document_remove_term(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19055   PyObject *resultobj = 0;
19056   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19057   std::string *arg2 = 0 ;
19058   void *argp1 = 0 ;
19059   int res1 = 0 ;
19060   int res2 = SWIG_OLDOBJ ;
19061   PyObject *swig_obj[2] ;
19062 
19063   if (!SWIG_Python_UnpackTuple(args,"Document_remove_term",2,2,swig_obj)) SWIG_fail;
19064   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19065   if (!SWIG_IsOK(res1)) {
19066     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_remove_term" "', argument " "1"" of type '" "Xapian::Document *""'");
19067   }
19068   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19069   {
19070     std::string *ptr = (std::string *)0;
19071     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
19072     if (!SWIG_IsOK(res2)) {
19073       if (res2 == INT_MIN) SWIG_fail;
19074       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Document_remove_term" "', argument " "2"" of type '" "std::string const &""'");
19075     }
19076     if (!ptr) {
19077       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Document_remove_term" "', argument " "2"" of type '" "std::string const &""'");
19078     }
19079     arg2 = ptr;
19080   }
19081   {
19082     try {
19083       {
19084         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19085         (arg1)->remove_term((std::string const &)*arg2);
19086         SWIG_PYTHON_THREAD_END_ALLOW;
19087       }
19088     } catch (...) {
19089       Xapian::SetPythonException();
19090       SWIG_fail;
19091     }
19092   }
19093   resultobj = SWIG_Py_Void();
19094   if (SWIG_IsNewObj(res2)) delete arg2;
19095   return resultobj;
19096 fail:
19097   if (SWIG_IsNewObj(res2)) delete arg2;
19098   return NULL;
19099 }
19100 
19101 
_wrap_Document_clear_terms(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19102 SWIGINTERN PyObject *_wrap_Document_clear_terms(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19103   PyObject *resultobj = 0;
19104   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19105   void *argp1 = 0 ;
19106   int res1 = 0 ;
19107   PyObject *swig_obj[1] ;
19108 
19109   if (!args) SWIG_fail;
19110   swig_obj[0] = args;
19111   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19112   if (!SWIG_IsOK(res1)) {
19113     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_clear_terms" "', argument " "1"" of type '" "Xapian::Document *""'");
19114   }
19115   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19116   {
19117     try {
19118       {
19119         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19120         (arg1)->clear_terms();
19121         SWIG_PYTHON_THREAD_END_ALLOW;
19122       }
19123     } catch (...) {
19124       Xapian::SetPythonException();
19125       SWIG_fail;
19126     }
19127   }
19128   resultobj = SWIG_Py_Void();
19129   return resultobj;
19130 fail:
19131   return NULL;
19132 }
19133 
19134 
_wrap_Document_termlist_count(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19135 SWIGINTERN PyObject *_wrap_Document_termlist_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19136   PyObject *resultobj = 0;
19137   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19138   void *argp1 = 0 ;
19139   int res1 = 0 ;
19140   PyObject *swig_obj[1] ;
19141   Xapian::termcount result;
19142 
19143   if (!args) SWIG_fail;
19144   swig_obj[0] = args;
19145   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19146   if (!SWIG_IsOK(res1)) {
19147     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_termlist_count" "', argument " "1"" of type '" "Xapian::Document const *""'");
19148   }
19149   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19150   {
19151     try {
19152       {
19153         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19154         result = (Xapian::termcount)((Xapian::Document const *)arg1)->termlist_count();
19155         SWIG_PYTHON_THREAD_END_ALLOW;
19156       }
19157     } catch (...) {
19158       Xapian::SetPythonException();
19159       SWIG_fail;
19160     }
19161   }
19162   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19163   return resultobj;
19164 fail:
19165   return NULL;
19166 }
19167 
19168 
_wrap_Document__termlist_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19169 SWIGINTERN PyObject *_wrap_Document__termlist_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19170   PyObject *resultobj = 0;
19171   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19172   void *argp1 = 0 ;
19173   int res1 = 0 ;
19174   PyObject *swig_obj[1] ;
19175   Xapian::TermIterator result;
19176 
19177   if (!args) SWIG_fail;
19178   swig_obj[0] = args;
19179   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19180   if (!SWIG_IsOK(res1)) {
19181     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document__termlist_begin" "', argument " "1"" of type '" "Xapian::Document const *""'");
19182   }
19183   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19184   {
19185     try {
19186       {
19187         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19188         result = ((Xapian::Document const *)arg1)->termlist_begin();
19189         SWIG_PYTHON_THREAD_END_ALLOW;
19190       }
19191     } catch (...) {
19192       Xapian::SetPythonException();
19193       SWIG_fail;
19194     }
19195   }
19196   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
19197   return resultobj;
19198 fail:
19199   return NULL;
19200 }
19201 
19202 
_wrap_Document__termlist_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19203 SWIGINTERN PyObject *_wrap_Document__termlist_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19204   PyObject *resultobj = 0;
19205   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19206   void *argp1 = 0 ;
19207   int res1 = 0 ;
19208   PyObject *swig_obj[1] ;
19209   Xapian::TermIterator result;
19210 
19211   if (!args) SWIG_fail;
19212   swig_obj[0] = args;
19213   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19214   if (!SWIG_IsOK(res1)) {
19215     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document__termlist_end" "', argument " "1"" of type '" "Xapian::Document const *""'");
19216   }
19217   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19218   {
19219     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19220     result = ((Xapian::Document const *)arg1)->termlist_end();
19221     SWIG_PYTHON_THREAD_END_ALLOW;
19222   }
19223   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
19224   return resultobj;
19225 fail:
19226   return NULL;
19227 }
19228 
19229 
_wrap_Document_values_count(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19230 SWIGINTERN PyObject *_wrap_Document_values_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19231   PyObject *resultobj = 0;
19232   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19233   void *argp1 = 0 ;
19234   int res1 = 0 ;
19235   PyObject *swig_obj[1] ;
19236   Xapian::termcount result;
19237 
19238   if (!args) SWIG_fail;
19239   swig_obj[0] = args;
19240   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19241   if (!SWIG_IsOK(res1)) {
19242     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_values_count" "', argument " "1"" of type '" "Xapian::Document const *""'");
19243   }
19244   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19245   {
19246     try {
19247       {
19248         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19249         result = (Xapian::termcount)((Xapian::Document const *)arg1)->values_count();
19250         SWIG_PYTHON_THREAD_END_ALLOW;
19251       }
19252     } catch (...) {
19253       Xapian::SetPythonException();
19254       SWIG_fail;
19255     }
19256   }
19257   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19258   return resultobj;
19259 fail:
19260   return NULL;
19261 }
19262 
19263 
_wrap_Document__values_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19264 SWIGINTERN PyObject *_wrap_Document__values_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19265   PyObject *resultobj = 0;
19266   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19267   void *argp1 = 0 ;
19268   int res1 = 0 ;
19269   PyObject *swig_obj[1] ;
19270   Xapian::ValueIterator result;
19271 
19272   if (!args) SWIG_fail;
19273   swig_obj[0] = args;
19274   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19275   if (!SWIG_IsOK(res1)) {
19276     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document__values_begin" "', argument " "1"" of type '" "Xapian::Document const *""'");
19277   }
19278   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19279   {
19280     try {
19281       {
19282         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19283         result = ((Xapian::Document const *)arg1)->values_begin();
19284         SWIG_PYTHON_THREAD_END_ALLOW;
19285       }
19286     } catch (...) {
19287       Xapian::SetPythonException();
19288       SWIG_fail;
19289     }
19290   }
19291   resultobj = SWIG_NewPointerObj((new Xapian::ValueIterator(static_cast< const Xapian::ValueIterator& >(result))), SWIGTYPE_p_Xapian__ValueIterator, SWIG_POINTER_OWN |  0 );
19292   return resultobj;
19293 fail:
19294   return NULL;
19295 }
19296 
19297 
_wrap_Document__values_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19298 SWIGINTERN PyObject *_wrap_Document__values_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19299   PyObject *resultobj = 0;
19300   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19301   void *argp1 = 0 ;
19302   int res1 = 0 ;
19303   PyObject *swig_obj[1] ;
19304   Xapian::ValueIterator result;
19305 
19306   if (!args) SWIG_fail;
19307   swig_obj[0] = args;
19308   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19309   if (!SWIG_IsOK(res1)) {
19310     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document__values_end" "', argument " "1"" of type '" "Xapian::Document const *""'");
19311   }
19312   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19313   {
19314     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19315     result = ((Xapian::Document const *)arg1)->values_end();
19316     SWIG_PYTHON_THREAD_END_ALLOW;
19317   }
19318   resultobj = SWIG_NewPointerObj((new Xapian::ValueIterator(static_cast< const Xapian::ValueIterator& >(result))), SWIGTYPE_p_Xapian__ValueIterator, SWIG_POINTER_OWN |  0 );
19319   return resultobj;
19320 fail:
19321   return NULL;
19322 }
19323 
19324 
_wrap_Document_get_docid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19325 SWIGINTERN PyObject *_wrap_Document_get_docid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19326   PyObject *resultobj = 0;
19327   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19328   void *argp1 = 0 ;
19329   int res1 = 0 ;
19330   PyObject *swig_obj[1] ;
19331   Xapian::docid result;
19332 
19333   if (!args) SWIG_fail;
19334   swig_obj[0] = args;
19335   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19336   if (!SWIG_IsOK(res1)) {
19337     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_get_docid" "', argument " "1"" of type '" "Xapian::Document const *""'");
19338   }
19339   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19340   {
19341     try {
19342       {
19343         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19344         result = (Xapian::docid)((Xapian::Document const *)arg1)->get_docid();
19345         SWIG_PYTHON_THREAD_END_ALLOW;
19346       }
19347     } catch (...) {
19348       Xapian::SetPythonException();
19349       SWIG_fail;
19350     }
19351   }
19352   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19353   return resultobj;
19354 fail:
19355   return NULL;
19356 }
19357 
19358 
_wrap_Document_serialise(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19359 SWIGINTERN PyObject *_wrap_Document_serialise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19360   PyObject *resultobj = 0;
19361   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19362   void *argp1 = 0 ;
19363   int res1 = 0 ;
19364   PyObject *swig_obj[1] ;
19365   std::string result;
19366 
19367   if (!args) SWIG_fail;
19368   swig_obj[0] = args;
19369   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19370   if (!SWIG_IsOK(res1)) {
19371     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document_serialise" "', argument " "1"" of type '" "Xapian::Document const *""'");
19372   }
19373   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19374   {
19375     try {
19376       {
19377         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19378         result = ((Xapian::Document const *)arg1)->serialise();
19379         SWIG_PYTHON_THREAD_END_ALLOW;
19380       }
19381     } catch (...) {
19382       Xapian::SetPythonException();
19383       SWIG_fail;
19384     }
19385   }
19386 
19387   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
19388 
19389   return resultobj;
19390 fail:
19391   return NULL;
19392 }
19393 
19394 
_wrap_Document_unserialise(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19395 SWIGINTERN PyObject *_wrap_Document_unserialise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19396   PyObject *resultobj = 0;
19397   std::string *arg1 = 0 ;
19398   std::string bytes1 ;
19399   PyObject *swig_obj[1] ;
19400   Xapian::Document result;
19401 
19402   if (!args) SWIG_fail;
19403   swig_obj[0] = args;
19404   {
19405     char * p;
19406     Py_ssize_t len;
19407     if (PyBytes_AsStringAndSize(swig_obj[0], &p, &len) < 0) SWIG_fail;
19408     bytes1.assign(p, len);
19409     arg1 = &bytes1;
19410   }
19411   {
19412     try {
19413       {
19414         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19415         result = Xapian::Document::unserialise((std::string const &)*arg1);
19416         SWIG_PYTHON_THREAD_END_ALLOW;
19417       }
19418     } catch (...) {
19419       Xapian::SetPythonException();
19420       SWIG_fail;
19421     }
19422   }
19423   resultobj = SWIG_NewPointerObj((new Xapian::Document(static_cast< const Xapian::Document& >(result))), SWIGTYPE_p_Xapian__Document, SWIG_POINTER_OWN |  0 );
19424   return resultobj;
19425 fail:
19426   return NULL;
19427 }
19428 
19429 
_wrap_Document___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19430 SWIGINTERN PyObject *_wrap_Document___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19431   PyObject *resultobj = 0;
19432   Xapian::Document *arg1 = (Xapian::Document *) 0 ;
19433   void *argp1 = 0 ;
19434   int res1 = 0 ;
19435   PyObject *swig_obj[1] ;
19436   std::string result;
19437 
19438   if (!args) SWIG_fail;
19439   swig_obj[0] = args;
19440   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Document, 0 |  0 );
19441   if (!SWIG_IsOK(res1)) {
19442     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Document___str__" "', argument " "1"" of type '" "Xapian::Document const *""'");
19443   }
19444   arg1 = reinterpret_cast< Xapian::Document * >(argp1);
19445   {
19446     try {
19447       {
19448         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19449         result = ((Xapian::Document const *)arg1)->get_description();
19450         SWIG_PYTHON_THREAD_END_ALLOW;
19451       }
19452     } catch (...) {
19453       Xapian::SetPythonException();
19454       SWIG_fail;
19455     }
19456   }
19457   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
19458   return resultobj;
19459 fail:
19460   return NULL;
19461 }
19462 
19463 
Document_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19464 SWIGINTERN PyObject *Document_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19465   PyObject *obj;
19466   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
19467   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Document, SWIG_NewClientData(obj));
19468   return SWIG_Py_Void();
19469 }
19470 
Document_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19471 SWIGINTERN PyObject *Document_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19472   return SWIG_Python_InitShadowInstance(args);
19473 }
19474 
_wrap_new_Registry(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19475 SWIGINTERN PyObject *_wrap_new_Registry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19476   PyObject *resultobj = 0;
19477   Xapian::Registry *result = 0 ;
19478 
19479   if (!SWIG_Python_UnpackTuple(args,"new_Registry",0,0,0)) SWIG_fail;
19480   {
19481     try {
19482       {
19483         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19484         result = (Xapian::Registry *)new Xapian::Registry();
19485         SWIG_PYTHON_THREAD_END_ALLOW;
19486       }
19487     } catch (...) {
19488       Xapian::SetPythonException();
19489       SWIG_fail;
19490     }
19491   }
19492   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Registry, SWIG_POINTER_NEW |  0 );
19493   return resultobj;
19494 fail:
19495   return NULL;
19496 }
19497 
19498 
_wrap_delete_Registry(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19499 SWIGINTERN PyObject *_wrap_delete_Registry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19500   PyObject *resultobj = 0;
19501   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
19502   void *argp1 = 0 ;
19503   int res1 = 0 ;
19504   PyObject *swig_obj[1] ;
19505 
19506   if (!args) SWIG_fail;
19507   swig_obj[0] = args;
19508   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Registry, SWIG_POINTER_DISOWN |  0 );
19509   if (!SWIG_IsOK(res1)) {
19510     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Registry" "', argument " "1"" of type '" "Xapian::Registry *""'");
19511   }
19512   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
19513   {
19514     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19515     delete arg1;
19516     SWIG_PYTHON_THREAD_END_ALLOW;
19517   }
19518   resultobj = SWIG_Py_Void();
19519   return resultobj;
19520 fail:
19521   return NULL;
19522 }
19523 
19524 
_wrap_Registry_register_weighting_scheme(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19525 SWIGINTERN PyObject *_wrap_Registry_register_weighting_scheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19526   PyObject *resultobj = 0;
19527   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
19528   Xapian::Weight *arg2 = 0 ;
19529   void *argp1 = 0 ;
19530   int res1 = 0 ;
19531   void *argp2 = 0 ;
19532   int res2 = 0 ;
19533   PyObject *swig_obj[2] ;
19534 
19535   if (!SWIG_Python_UnpackTuple(args,"Registry_register_weighting_scheme",2,2,swig_obj)) SWIG_fail;
19536   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
19537   if (!SWIG_IsOK(res1)) {
19538     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_register_weighting_scheme" "', argument " "1"" of type '" "Xapian::Registry *""'");
19539   }
19540   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
19541   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Weight,  0  | 0);
19542   if (!SWIG_IsOK(res2)) {
19543     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_register_weighting_scheme" "', argument " "2"" of type '" "Xapian::Weight const &""'");
19544   }
19545   if (!argp2) {
19546     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_register_weighting_scheme" "', argument " "2"" of type '" "Xapian::Weight const &""'");
19547   }
19548   arg2 = reinterpret_cast< Xapian::Weight * >(argp2);
19549   {
19550     try {
19551       {
19552         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19553         (arg1)->register_weighting_scheme((Xapian::Weight const &)*arg2);
19554         SWIG_PYTHON_THREAD_END_ALLOW;
19555       }
19556     } catch (...) {
19557       Xapian::SetPythonException();
19558       SWIG_fail;
19559     }
19560   }
19561   resultobj = SWIG_Py_Void();
19562   return resultobj;
19563 fail:
19564   return NULL;
19565 }
19566 
19567 
_wrap_Registry_get_weighting_scheme(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19568 SWIGINTERN PyObject *_wrap_Registry_get_weighting_scheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19569   PyObject *resultobj = 0;
19570   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
19571   std::string *arg2 = 0 ;
19572   void *argp1 = 0 ;
19573   int res1 = 0 ;
19574   int res2 = SWIG_OLDOBJ ;
19575   PyObject *swig_obj[2] ;
19576   Xapian::Weight *result = 0 ;
19577 
19578   if (!SWIG_Python_UnpackTuple(args,"Registry_get_weighting_scheme",2,2,swig_obj)) SWIG_fail;
19579   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
19580   if (!SWIG_IsOK(res1)) {
19581     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_get_weighting_scheme" "', argument " "1"" of type '" "Xapian::Registry const *""'");
19582   }
19583   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
19584   {
19585     std::string *ptr = (std::string *)0;
19586     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
19587     if (!SWIG_IsOK(res2)) {
19588       if (res2 == INT_MIN) SWIG_fail;
19589       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_get_weighting_scheme" "', argument " "2"" of type '" "std::string const &""'");
19590     }
19591     if (!ptr) {
19592       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_get_weighting_scheme" "', argument " "2"" of type '" "std::string const &""'");
19593     }
19594     arg2 = ptr;
19595   }
19596   {
19597     try {
19598       {
19599         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19600         result = (Xapian::Weight *)((Xapian::Registry const *)arg1)->get_weighting_scheme((std::string const &)*arg2);
19601         SWIG_PYTHON_THREAD_END_ALLOW;
19602       }
19603     } catch (...) {
19604       Xapian::SetPythonException();
19605       SWIG_fail;
19606     }
19607   }
19608   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Weight, 0 |  0 );
19609   if (SWIG_IsNewObj(res2)) delete arg2;
19610   return resultobj;
19611 fail:
19612   if (SWIG_IsNewObj(res2)) delete arg2;
19613   return NULL;
19614 }
19615 
19616 
_wrap_Registry_register_posting_source(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19617 SWIGINTERN PyObject *_wrap_Registry_register_posting_source(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19618   PyObject *resultobj = 0;
19619   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
19620   Xapian::PostingSource *arg2 = 0 ;
19621   void *argp1 = 0 ;
19622   int res1 = 0 ;
19623   void *argp2 = 0 ;
19624   int res2 = 0 ;
19625   PyObject *swig_obj[2] ;
19626 
19627   if (!SWIG_Python_UnpackTuple(args,"Registry_register_posting_source",2,2,swig_obj)) SWIG_fail;
19628   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
19629   if (!SWIG_IsOK(res1)) {
19630     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_register_posting_source" "', argument " "1"" of type '" "Xapian::Registry *""'");
19631   }
19632   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
19633   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__PostingSource,  0  | 0);
19634   if (!SWIG_IsOK(res2)) {
19635     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_register_posting_source" "', argument " "2"" of type '" "Xapian::PostingSource const &""'");
19636   }
19637   if (!argp2) {
19638     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_register_posting_source" "', argument " "2"" of type '" "Xapian::PostingSource const &""'");
19639   }
19640   arg2 = reinterpret_cast< Xapian::PostingSource * >(argp2);
19641   {
19642     try {
19643       {
19644         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19645         (arg1)->register_posting_source((Xapian::PostingSource const &)*arg2);
19646         SWIG_PYTHON_THREAD_END_ALLOW;
19647       }
19648     } catch (...) {
19649       Xapian::SetPythonException();
19650       SWIG_fail;
19651     }
19652   }
19653   resultobj = SWIG_Py_Void();
19654   return resultobj;
19655 fail:
19656   return NULL;
19657 }
19658 
19659 
_wrap_Registry_get_posting_source(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19660 SWIGINTERN PyObject *_wrap_Registry_get_posting_source(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19661   PyObject *resultobj = 0;
19662   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
19663   std::string *arg2 = 0 ;
19664   void *argp1 = 0 ;
19665   int res1 = 0 ;
19666   int res2 = SWIG_OLDOBJ ;
19667   PyObject *swig_obj[2] ;
19668   Xapian::PostingSource *result = 0 ;
19669 
19670   if (!SWIG_Python_UnpackTuple(args,"Registry_get_posting_source",2,2,swig_obj)) SWIG_fail;
19671   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
19672   if (!SWIG_IsOK(res1)) {
19673     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_get_posting_source" "', argument " "1"" of type '" "Xapian::Registry const *""'");
19674   }
19675   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
19676   {
19677     std::string *ptr = (std::string *)0;
19678     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
19679     if (!SWIG_IsOK(res2)) {
19680       if (res2 == INT_MIN) SWIG_fail;
19681       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_get_posting_source" "', argument " "2"" of type '" "std::string const &""'");
19682     }
19683     if (!ptr) {
19684       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_get_posting_source" "', argument " "2"" of type '" "std::string const &""'");
19685     }
19686     arg2 = ptr;
19687   }
19688   {
19689     try {
19690       {
19691         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19692         result = (Xapian::PostingSource *)((Xapian::Registry const *)arg1)->get_posting_source((std::string const &)*arg2);
19693         SWIG_PYTHON_THREAD_END_ALLOW;
19694       }
19695     } catch (...) {
19696       Xapian::SetPythonException();
19697       SWIG_fail;
19698     }
19699   }
19700   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
19701   if (SWIG_IsNewObj(res2)) delete arg2;
19702   return resultobj;
19703 fail:
19704   if (SWIG_IsNewObj(res2)) delete arg2;
19705   return NULL;
19706 }
19707 
19708 
_wrap_Registry_register_match_spy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19709 SWIGINTERN PyObject *_wrap_Registry_register_match_spy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19710   PyObject *resultobj = 0;
19711   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
19712   Xapian::MatchSpy *arg2 = 0 ;
19713   void *argp1 = 0 ;
19714   int res1 = 0 ;
19715   void *argp2 = 0 ;
19716   int res2 = 0 ;
19717   PyObject *swig_obj[2] ;
19718 
19719   if (!SWIG_Python_UnpackTuple(args,"Registry_register_match_spy",2,2,swig_obj)) SWIG_fail;
19720   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
19721   if (!SWIG_IsOK(res1)) {
19722     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_register_match_spy" "', argument " "1"" of type '" "Xapian::Registry *""'");
19723   }
19724   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
19725   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MatchSpy,  0  | 0);
19726   if (!SWIG_IsOK(res2)) {
19727     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_register_match_spy" "', argument " "2"" of type '" "Xapian::MatchSpy const &""'");
19728   }
19729   if (!argp2) {
19730     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_register_match_spy" "', argument " "2"" of type '" "Xapian::MatchSpy const &""'");
19731   }
19732   arg2 = reinterpret_cast< Xapian::MatchSpy * >(argp2);
19733   {
19734     try {
19735       {
19736         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19737         (arg1)->register_match_spy((Xapian::MatchSpy const &)*arg2);
19738         SWIG_PYTHON_THREAD_END_ALLOW;
19739       }
19740     } catch (...) {
19741       Xapian::SetPythonException();
19742       SWIG_fail;
19743     }
19744   }
19745   resultobj = SWIG_Py_Void();
19746   return resultobj;
19747 fail:
19748   return NULL;
19749 }
19750 
19751 
_wrap_Registry_get_match_spy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19752 SWIGINTERN PyObject *_wrap_Registry_get_match_spy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19753   PyObject *resultobj = 0;
19754   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
19755   std::string *arg2 = 0 ;
19756   void *argp1 = 0 ;
19757   int res1 = 0 ;
19758   int res2 = SWIG_OLDOBJ ;
19759   PyObject *swig_obj[2] ;
19760   Xapian::MatchSpy *result = 0 ;
19761 
19762   if (!SWIG_Python_UnpackTuple(args,"Registry_get_match_spy",2,2,swig_obj)) SWIG_fail;
19763   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
19764   if (!SWIG_IsOK(res1)) {
19765     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_get_match_spy" "', argument " "1"" of type '" "Xapian::Registry const *""'");
19766   }
19767   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
19768   {
19769     std::string *ptr = (std::string *)0;
19770     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
19771     if (!SWIG_IsOK(res2)) {
19772       if (res2 == INT_MIN) SWIG_fail;
19773       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_get_match_spy" "', argument " "2"" of type '" "std::string const &""'");
19774     }
19775     if (!ptr) {
19776       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_get_match_spy" "', argument " "2"" of type '" "std::string const &""'");
19777     }
19778     arg2 = ptr;
19779   }
19780   {
19781     try {
19782       {
19783         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19784         result = (Xapian::MatchSpy *)((Xapian::Registry const *)arg1)->get_match_spy((std::string const &)*arg2);
19785         SWIG_PYTHON_THREAD_END_ALLOW;
19786       }
19787     } catch (...) {
19788       Xapian::SetPythonException();
19789       SWIG_fail;
19790     }
19791   }
19792   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
19793   if (SWIG_IsNewObj(res2)) delete arg2;
19794   return resultobj;
19795 fail:
19796   if (SWIG_IsNewObj(res2)) delete arg2;
19797   return NULL;
19798 }
19799 
19800 
_wrap_Registry_register_lat_long_metric(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19801 SWIGINTERN PyObject *_wrap_Registry_register_lat_long_metric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19802   PyObject *resultobj = 0;
19803   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
19804   Xapian::LatLongMetric *arg2 = 0 ;
19805   void *argp1 = 0 ;
19806   int res1 = 0 ;
19807   void *argp2 = 0 ;
19808   int res2 = 0 ;
19809   PyObject *swig_obj[2] ;
19810 
19811   if (!SWIG_Python_UnpackTuple(args,"Registry_register_lat_long_metric",2,2,swig_obj)) SWIG_fail;
19812   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
19813   if (!SWIG_IsOK(res1)) {
19814     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_register_lat_long_metric" "', argument " "1"" of type '" "Xapian::Registry *""'");
19815   }
19816   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
19817   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongMetric,  0  | 0);
19818   if (!SWIG_IsOK(res2)) {
19819     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_register_lat_long_metric" "', argument " "2"" of type '" "Xapian::LatLongMetric const &""'");
19820   }
19821   if (!argp2) {
19822     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_register_lat_long_metric" "', argument " "2"" of type '" "Xapian::LatLongMetric const &""'");
19823   }
19824   arg2 = reinterpret_cast< Xapian::LatLongMetric * >(argp2);
19825   {
19826     try {
19827       {
19828         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19829         (arg1)->register_lat_long_metric((Xapian::LatLongMetric const &)*arg2);
19830         SWIG_PYTHON_THREAD_END_ALLOW;
19831       }
19832     } catch (...) {
19833       Xapian::SetPythonException();
19834       SWIG_fail;
19835     }
19836   }
19837   resultobj = SWIG_Py_Void();
19838   return resultobj;
19839 fail:
19840   return NULL;
19841 }
19842 
19843 
_wrap_Registry_get_lat_long_metric(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19844 SWIGINTERN PyObject *_wrap_Registry_get_lat_long_metric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19845   PyObject *resultobj = 0;
19846   Xapian::Registry *arg1 = (Xapian::Registry *) 0 ;
19847   std::string *arg2 = 0 ;
19848   void *argp1 = 0 ;
19849   int res1 = 0 ;
19850   int res2 = SWIG_OLDOBJ ;
19851   PyObject *swig_obj[2] ;
19852   Xapian::LatLongMetric *result = 0 ;
19853 
19854   if (!SWIG_Python_UnpackTuple(args,"Registry_get_lat_long_metric",2,2,swig_obj)) SWIG_fail;
19855   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Registry, 0 |  0 );
19856   if (!SWIG_IsOK(res1)) {
19857     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_get_lat_long_metric" "', argument " "1"" of type '" "Xapian::Registry const *""'");
19858   }
19859   arg1 = reinterpret_cast< Xapian::Registry * >(argp1);
19860   {
19861     std::string *ptr = (std::string *)0;
19862     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
19863     if (!SWIG_IsOK(res2)) {
19864       if (res2 == INT_MIN) SWIG_fail;
19865       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Registry_get_lat_long_metric" "', argument " "2"" of type '" "std::string const &""'");
19866     }
19867     if (!ptr) {
19868       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_get_lat_long_metric" "', argument " "2"" of type '" "std::string const &""'");
19869     }
19870     arg2 = ptr;
19871   }
19872   {
19873     try {
19874       {
19875         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19876         result = (Xapian::LatLongMetric *)((Xapian::Registry const *)arg1)->get_lat_long_metric((std::string const &)*arg2);
19877         SWIG_PYTHON_THREAD_END_ALLOW;
19878       }
19879     } catch (...) {
19880       Xapian::SetPythonException();
19881       SWIG_fail;
19882     }
19883   }
19884   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongMetric, 0 |  0 );
19885   if (SWIG_IsNewObj(res2)) delete arg2;
19886   return resultobj;
19887 fail:
19888   if (SWIG_IsNewObj(res2)) delete arg2;
19889   return NULL;
19890 }
19891 
19892 
Registry_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19893 SWIGINTERN PyObject *Registry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19894   PyObject *obj;
19895   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
19896   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Registry, SWIG_NewClientData(obj));
19897   return SWIG_Py_Void();
19898 }
19899 
Registry_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19900 SWIGINTERN PyObject *Registry_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19901   return SWIG_Python_InitShadowInstance(args);
19902 }
19903 
_wrap_new_Query__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))19904 SWIGINTERN PyObject *_wrap_new_Query__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
19905   PyObject *resultobj = 0;
19906   Xapian::Query *result = 0 ;
19907 
19908   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
19909   {
19910     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19911     result = (Xapian::Query *)new Xapian::Query();
19912     SWIG_PYTHON_THREAD_END_ALLOW;
19913   }
19914   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
19915   return resultobj;
19916 fail:
19917   return NULL;
19918 }
19919 
19920 
_wrap_delete_Query(PyObject * SWIGUNUSEDPARM (self),PyObject * args)19921 SWIGINTERN PyObject *_wrap_delete_Query(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19922   PyObject *resultobj = 0;
19923   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
19924   void *argp1 = 0 ;
19925   int res1 = 0 ;
19926   PyObject *swig_obj[1] ;
19927 
19928   if (!args) SWIG_fail;
19929   swig_obj[0] = args;
19930   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, SWIG_POINTER_DISOWN |  0 );
19931   if (!SWIG_IsOK(res1)) {
19932     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Query" "', argument " "1"" of type '" "Xapian::Query *""'");
19933   }
19934   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
19935   {
19936     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19937     delete arg1;
19938     SWIG_PYTHON_THREAD_END_ALLOW;
19939   }
19940   resultobj = SWIG_Py_Void();
19941   return resultobj;
19942 fail:
19943   return NULL;
19944 }
19945 
19946 
_wrap_new_Query__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)19947 SWIGINTERN PyObject *_wrap_new_Query__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
19948   PyObject *resultobj = 0;
19949   std::string *arg1 = 0 ;
19950   Xapian::termcount arg2 ;
19951   Xapian::termpos arg3 ;
19952   int res1 = SWIG_OLDOBJ ;
19953   unsigned int val2 ;
19954   int ecode2 = 0 ;
19955   unsigned int val3 ;
19956   int ecode3 = 0 ;
19957   Xapian::Query *result = 0 ;
19958 
19959   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
19960   {
19961     std::string *ptr = (std::string *)0;
19962     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
19963     if (!SWIG_IsOK(res1)) {
19964       if (res1 == INT_MIN) SWIG_fail;
19965       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'");
19966     }
19967     if (!ptr) {
19968       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'");
19969     }
19970     arg1 = ptr;
19971   }
19972   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
19973   if (!SWIG_IsOK(ecode2)) {
19974     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::termcount""'");
19975   }
19976   arg2 = static_cast< Xapian::termcount >(val2);
19977   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
19978   if (!SWIG_IsOK(ecode3)) {
19979     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::termpos""'");
19980   }
19981   arg3 = static_cast< Xapian::termpos >(val3);
19982   {
19983     try {
19984       {
19985         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19986         result = (Xapian::Query *)new Xapian::Query((std::string const &)*arg1,arg2,arg3);
19987         SWIG_PYTHON_THREAD_END_ALLOW;
19988       }
19989     } catch (...) {
19990       Xapian::SetPythonException();
19991       SWIG_fail;
19992     }
19993   }
19994   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
19995   if (SWIG_IsNewObj(res1)) delete arg1;
19996   return resultobj;
19997 fail:
19998   if (SWIG_IsNewObj(res1)) delete arg1;
19999   return NULL;
20000 }
20001 
20002 
_wrap_new_Query__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20003 SWIGINTERN PyObject *_wrap_new_Query__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20004   PyObject *resultobj = 0;
20005   std::string *arg1 = 0 ;
20006   Xapian::termcount arg2 ;
20007   int res1 = SWIG_OLDOBJ ;
20008   unsigned int val2 ;
20009   int ecode2 = 0 ;
20010   Xapian::Query *result = 0 ;
20011 
20012   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
20013   {
20014     std::string *ptr = (std::string *)0;
20015     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
20016     if (!SWIG_IsOK(res1)) {
20017       if (res1 == INT_MIN) SWIG_fail;
20018       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'");
20019     }
20020     if (!ptr) {
20021       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'");
20022     }
20023     arg1 = ptr;
20024   }
20025   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
20026   if (!SWIG_IsOK(ecode2)) {
20027     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::termcount""'");
20028   }
20029   arg2 = static_cast< Xapian::termcount >(val2);
20030   {
20031     try {
20032       {
20033         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20034         result = (Xapian::Query *)new Xapian::Query((std::string const &)*arg1,arg2);
20035         SWIG_PYTHON_THREAD_END_ALLOW;
20036       }
20037     } catch (...) {
20038       Xapian::SetPythonException();
20039       SWIG_fail;
20040     }
20041   }
20042   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20043   if (SWIG_IsNewObj(res1)) delete arg1;
20044   return resultobj;
20045 fail:
20046   if (SWIG_IsNewObj(res1)) delete arg1;
20047   return NULL;
20048 }
20049 
20050 
_wrap_new_Query__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20051 SWIGINTERN PyObject *_wrap_new_Query__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20052   PyObject *resultobj = 0;
20053   std::string *arg1 = 0 ;
20054   int res1 = SWIG_OLDOBJ ;
20055   Xapian::Query *result = 0 ;
20056 
20057   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
20058   {
20059     std::string *ptr = (std::string *)0;
20060     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
20061     if (!SWIG_IsOK(res1)) {
20062       if (res1 == INT_MIN) SWIG_fail;
20063       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'");
20064     }
20065     if (!ptr) {
20066       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "1"" of type '" "std::string const &""'");
20067     }
20068     arg1 = ptr;
20069   }
20070   {
20071     try {
20072       {
20073         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20074         result = (Xapian::Query *)new Xapian::Query((std::string const &)*arg1);
20075         SWIG_PYTHON_THREAD_END_ALLOW;
20076       }
20077     } catch (...) {
20078       Xapian::SetPythonException();
20079       SWIG_fail;
20080     }
20081   }
20082   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20083   if (SWIG_IsNewObj(res1)) delete arg1;
20084   return resultobj;
20085 fail:
20086   if (SWIG_IsNewObj(res1)) delete arg1;
20087   return NULL;
20088 }
20089 
20090 
_wrap_new_Query__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20091 SWIGINTERN PyObject *_wrap_new_Query__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20092   PyObject *resultobj = 0;
20093   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
20094   void *argp1 = 0 ;
20095   int res1 = 0 ;
20096   Xapian::Query *result = 0 ;
20097 
20098   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
20099   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
20100   if (!SWIG_IsOK(res1)) {
20101     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
20102   }
20103   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
20104   {
20105     try {
20106       {
20107         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20108         result = (Xapian::Query *)new Xapian::Query(arg1);
20109         SWIG_PYTHON_THREAD_END_ALLOW;
20110       }
20111     } catch (...) {
20112       Xapian::SetPythonException();
20113       SWIG_fail;
20114     }
20115   }
20116   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20117   return resultobj;
20118 fail:
20119   return NULL;
20120 }
20121 
20122 
_wrap_new_Query__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20123 SWIGINTERN PyObject *_wrap_new_Query__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20124   PyObject *resultobj = 0;
20125   double arg1 ;
20126   Xapian::Query *arg2 = 0 ;
20127   double val1 ;
20128   int ecode1 = 0 ;
20129   void *argp2 = 0 ;
20130   int res2 = 0 ;
20131   Xapian::Query *result = 0 ;
20132 
20133   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
20134   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
20135   if (!SWIG_IsOK(ecode1)) {
20136     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "double""'");
20137   }
20138   arg1 = static_cast< double >(val1);
20139   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Query,  0  | 0);
20140   if (!SWIG_IsOK(res2)) {
20141     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'");
20142   }
20143   if (!argp2) {
20144     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'");
20145   }
20146   arg2 = reinterpret_cast< Xapian::Query * >(argp2);
20147   {
20148     try {
20149       {
20150         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20151         result = (Xapian::Query *)new Xapian::Query(arg1,(Xapian::Query const &)*arg2);
20152         SWIG_PYTHON_THREAD_END_ALLOW;
20153       }
20154     } catch (...) {
20155       Xapian::SetPythonException();
20156       SWIG_fail;
20157     }
20158   }
20159   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20160   return resultobj;
20161 fail:
20162   return NULL;
20163 }
20164 
20165 
_wrap_new_Query__SWIG_6(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20166 SWIGINTERN PyObject *_wrap_new_Query__SWIG_6(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20167   PyObject *resultobj = 0;
20168   Xapian::Query::op arg1 ;
20169   Xapian::Query *arg2 = 0 ;
20170   double arg3 ;
20171   int val1 ;
20172   int ecode1 = 0 ;
20173   void *argp2 = 0 ;
20174   int res2 = 0 ;
20175   double val3 ;
20176   int ecode3 = 0 ;
20177   Xapian::Query *result = 0 ;
20178 
20179   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
20180   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20181   if (!SWIG_IsOK(ecode1)) {
20182     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20183   }
20184   arg1 = static_cast< Xapian::Query::op >(val1);
20185   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Query,  0  | 0);
20186   if (!SWIG_IsOK(res2)) {
20187     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'");
20188   }
20189   if (!argp2) {
20190     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'");
20191   }
20192   arg2 = reinterpret_cast< Xapian::Query * >(argp2);
20193   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
20194   if (!SWIG_IsOK(ecode3)) {
20195     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Query" "', argument " "3"" of type '" "double""'");
20196   }
20197   arg3 = static_cast< double >(val3);
20198   {
20199     try {
20200       {
20201         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20202         result = (Xapian::Query *)new Xapian::Query(arg1,(Xapian::Query const &)*arg2,arg3);
20203         SWIG_PYTHON_THREAD_END_ALLOW;
20204       }
20205     } catch (...) {
20206       Xapian::SetPythonException();
20207       SWIG_fail;
20208     }
20209   }
20210   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20211   return resultobj;
20212 fail:
20213   return NULL;
20214 }
20215 
20216 
_wrap_new_Query__SWIG_7(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20217 SWIGINTERN PyObject *_wrap_new_Query__SWIG_7(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20218   PyObject *resultobj = 0;
20219   Xapian::Query::op arg1 ;
20220   Xapian::Query *arg2 = 0 ;
20221   Xapian::Query *arg3 = 0 ;
20222   int val1 ;
20223   int ecode1 = 0 ;
20224   void *argp2 = 0 ;
20225   int res2 = 0 ;
20226   void *argp3 = 0 ;
20227   int res3 = 0 ;
20228   Xapian::Query *result = 0 ;
20229 
20230   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
20231   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20232   if (!SWIG_IsOK(ecode1)) {
20233     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20234   }
20235   arg1 = static_cast< Xapian::Query::op >(val1);
20236   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Query,  0  | 0);
20237   if (!SWIG_IsOK(res2)) {
20238     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'");
20239   }
20240   if (!argp2) {
20241     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::Query const &""'");
20242   }
20243   arg2 = reinterpret_cast< Xapian::Query * >(argp2);
20244   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__Query,  0  | 0);
20245   if (!SWIG_IsOK(res3)) {
20246     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::Query const &""'");
20247   }
20248   if (!argp3) {
20249     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::Query const &""'");
20250   }
20251   arg3 = reinterpret_cast< Xapian::Query * >(argp3);
20252   {
20253     try {
20254       {
20255         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20256         result = (Xapian::Query *)new Xapian::Query(arg1,(Xapian::Query const &)*arg2,(Xapian::Query const &)*arg3);
20257         SWIG_PYTHON_THREAD_END_ALLOW;
20258       }
20259     } catch (...) {
20260       Xapian::SetPythonException();
20261       SWIG_fail;
20262     }
20263   }
20264   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20265   return resultobj;
20266 fail:
20267   return NULL;
20268 }
20269 
20270 
_wrap_new_Query__SWIG_8(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20271 SWIGINTERN PyObject *_wrap_new_Query__SWIG_8(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20272   PyObject *resultobj = 0;
20273   Xapian::Query::op arg1 ;
20274   std::string *arg2 = 0 ;
20275   std::string *arg3 = 0 ;
20276   int val1 ;
20277   int ecode1 = 0 ;
20278   int res2 = SWIG_OLDOBJ ;
20279   int res3 = SWIG_OLDOBJ ;
20280   Xapian::Query *result = 0 ;
20281 
20282   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
20283   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20284   if (!SWIG_IsOK(ecode1)) {
20285     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20286   }
20287   arg1 = static_cast< Xapian::Query::op >(val1);
20288   {
20289     std::string *ptr = (std::string *)0;
20290     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
20291     if (!SWIG_IsOK(res2)) {
20292       if (res2 == INT_MIN) SWIG_fail;
20293       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20294     }
20295     if (!ptr) {
20296       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20297     }
20298     arg2 = ptr;
20299   }
20300   {
20301     std::string *ptr = (std::string *)0;
20302     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
20303     if (!SWIG_IsOK(res3)) {
20304       if (res3 == INT_MIN) SWIG_fail;
20305       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'");
20306     }
20307     if (!ptr) {
20308       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'");
20309     }
20310     arg3 = ptr;
20311   }
20312   {
20313     try {
20314       {
20315         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20316         result = (Xapian::Query *)new Xapian::Query(arg1,(std::string const &)*arg2,(std::string const &)*arg3);
20317         SWIG_PYTHON_THREAD_END_ALLOW;
20318       }
20319     } catch (...) {
20320       Xapian::SetPythonException();
20321       SWIG_fail;
20322     }
20323   }
20324   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20325   if (SWIG_IsNewObj(res2)) delete arg2;
20326   if (SWIG_IsNewObj(res3)) delete arg3;
20327   return resultobj;
20328 fail:
20329   if (SWIG_IsNewObj(res2)) delete arg2;
20330   if (SWIG_IsNewObj(res3)) delete arg3;
20331   return NULL;
20332 }
20333 
20334 
_wrap_new_Query__SWIG_9(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20335 SWIGINTERN PyObject *_wrap_new_Query__SWIG_9(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20336   PyObject *resultobj = 0;
20337   Xapian::Query::op arg1 ;
20338   Xapian::valueno arg2 ;
20339   std::string *arg3 = 0 ;
20340   int val1 ;
20341   int ecode1 = 0 ;
20342   unsigned int val2 ;
20343   int ecode2 = 0 ;
20344   int res3 = SWIG_OLDOBJ ;
20345   Xapian::Query *result = 0 ;
20346 
20347   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
20348   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20349   if (!SWIG_IsOK(ecode1)) {
20350     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20351   }
20352   arg1 = static_cast< Xapian::Query::op >(val1);
20353   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
20354   if (!SWIG_IsOK(ecode2)) {
20355     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::valueno""'");
20356   }
20357   arg2 = static_cast< Xapian::valueno >(val2);
20358   {
20359     std::string *ptr = (std::string *)0;
20360     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
20361     if (!SWIG_IsOK(res3)) {
20362       if (res3 == INT_MIN) SWIG_fail;
20363       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'");
20364     }
20365     if (!ptr) {
20366       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'");
20367     }
20368     arg3 = ptr;
20369   }
20370   {
20371     try {
20372       {
20373         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20374         result = (Xapian::Query *)new Xapian::Query(arg1,arg2,(std::string const &)*arg3);
20375         SWIG_PYTHON_THREAD_END_ALLOW;
20376       }
20377     } catch (...) {
20378       Xapian::SetPythonException();
20379       SWIG_fail;
20380     }
20381   }
20382   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20383   if (SWIG_IsNewObj(res3)) delete arg3;
20384   return resultobj;
20385 fail:
20386   if (SWIG_IsNewObj(res3)) delete arg3;
20387   return NULL;
20388 }
20389 
20390 
_wrap_new_Query__SWIG_10(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20391 SWIGINTERN PyObject *_wrap_new_Query__SWIG_10(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20392   PyObject *resultobj = 0;
20393   Xapian::Query::op arg1 ;
20394   Xapian::valueno arg2 ;
20395   std::string *arg3 = 0 ;
20396   std::string *arg4 = 0 ;
20397   int val1 ;
20398   int ecode1 = 0 ;
20399   unsigned int val2 ;
20400   int ecode2 = 0 ;
20401   int res3 = SWIG_OLDOBJ ;
20402   int res4 = SWIG_OLDOBJ ;
20403   Xapian::Query *result = 0 ;
20404 
20405   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
20406   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20407   if (!SWIG_IsOK(ecode1)) {
20408     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20409   }
20410   arg1 = static_cast< Xapian::Query::op >(val1);
20411   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
20412   if (!SWIG_IsOK(ecode2)) {
20413     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Query" "', argument " "2"" of type '" "Xapian::valueno""'");
20414   }
20415   arg2 = static_cast< Xapian::valueno >(val2);
20416   {
20417     std::string *ptr = (std::string *)0;
20418     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
20419     if (!SWIG_IsOK(res3)) {
20420       if (res3 == INT_MIN) SWIG_fail;
20421       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'");
20422     }
20423     if (!ptr) {
20424       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "3"" of type '" "std::string const &""'");
20425     }
20426     arg3 = ptr;
20427   }
20428   {
20429     std::string *ptr = (std::string *)0;
20430     res4 = XapianSWIG_anystring_as_ptr(swig_obj[3], &ptr);
20431     if (!SWIG_IsOK(res4)) {
20432       if (res4 == INT_MIN) SWIG_fail;
20433       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Query" "', argument " "4"" of type '" "std::string const &""'");
20434     }
20435     if (!ptr) {
20436       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "4"" of type '" "std::string const &""'");
20437     }
20438     arg4 = ptr;
20439   }
20440   {
20441     try {
20442       {
20443         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20444         result = (Xapian::Query *)new Xapian::Query(arg1,arg2,(std::string const &)*arg3,(std::string const &)*arg4);
20445         SWIG_PYTHON_THREAD_END_ALLOW;
20446       }
20447     } catch (...) {
20448       Xapian::SetPythonException();
20449       SWIG_fail;
20450     }
20451   }
20452   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20453   if (SWIG_IsNewObj(res3)) delete arg3;
20454   if (SWIG_IsNewObj(res4)) delete arg4;
20455   return resultobj;
20456 fail:
20457   if (SWIG_IsNewObj(res3)) delete arg3;
20458   if (SWIG_IsNewObj(res4)) delete arg4;
20459   return NULL;
20460 }
20461 
20462 
_wrap_new_Query__SWIG_11(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20463 SWIGINTERN PyObject *_wrap_new_Query__SWIG_11(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20464   PyObject *resultobj = 0;
20465   Xapian::Query::op arg1 ;
20466   std::string *arg2 = 0 ;
20467   Xapian::termcount arg3 ;
20468   int arg4 ;
20469   Xapian::Query::op arg5 ;
20470   int val1 ;
20471   int ecode1 = 0 ;
20472   int res2 = SWIG_OLDOBJ ;
20473   unsigned int val3 ;
20474   int ecode3 = 0 ;
20475   int val4 ;
20476   int ecode4 = 0 ;
20477   int val5 ;
20478   int ecode5 = 0 ;
20479   Xapian::Query *result = 0 ;
20480 
20481   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
20482   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20483   if (!SWIG_IsOK(ecode1)) {
20484     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20485   }
20486   arg1 = static_cast< Xapian::Query::op >(val1);
20487   {
20488     std::string *ptr = (std::string *)0;
20489     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
20490     if (!SWIG_IsOK(res2)) {
20491       if (res2 == INT_MIN) SWIG_fail;
20492       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20493     }
20494     if (!ptr) {
20495       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20496     }
20497     arg2 = ptr;
20498   }
20499   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
20500   if (!SWIG_IsOK(ecode3)) {
20501     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::termcount""'");
20502   }
20503   arg3 = static_cast< Xapian::termcount >(val3);
20504   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
20505   if (!SWIG_IsOK(ecode4)) {
20506     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Query" "', argument " "4"" of type '" "int""'");
20507   }
20508   arg4 = static_cast< int >(val4);
20509   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
20510   if (!SWIG_IsOK(ecode5)) {
20511     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Query" "', argument " "5"" of type '" "Xapian::Query::op""'");
20512   }
20513   arg5 = static_cast< Xapian::Query::op >(val5);
20514   {
20515     try {
20516       {
20517         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20518         result = (Xapian::Query *)new Xapian::Query(arg1,(std::string const &)*arg2,arg3,arg4,arg5);
20519         SWIG_PYTHON_THREAD_END_ALLOW;
20520       }
20521     } catch (...) {
20522       Xapian::SetPythonException();
20523       SWIG_fail;
20524     }
20525   }
20526   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20527   if (SWIG_IsNewObj(res2)) delete arg2;
20528   return resultobj;
20529 fail:
20530   if (SWIG_IsNewObj(res2)) delete arg2;
20531   return NULL;
20532 }
20533 
20534 
_wrap_new_Query__SWIG_12(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20535 SWIGINTERN PyObject *_wrap_new_Query__SWIG_12(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20536   PyObject *resultobj = 0;
20537   Xapian::Query::op arg1 ;
20538   std::string *arg2 = 0 ;
20539   Xapian::termcount arg3 ;
20540   int arg4 ;
20541   int val1 ;
20542   int ecode1 = 0 ;
20543   int res2 = SWIG_OLDOBJ ;
20544   unsigned int val3 ;
20545   int ecode3 = 0 ;
20546   int val4 ;
20547   int ecode4 = 0 ;
20548   Xapian::Query *result = 0 ;
20549 
20550   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
20551   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20552   if (!SWIG_IsOK(ecode1)) {
20553     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20554   }
20555   arg1 = static_cast< Xapian::Query::op >(val1);
20556   {
20557     std::string *ptr = (std::string *)0;
20558     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
20559     if (!SWIG_IsOK(res2)) {
20560       if (res2 == INT_MIN) SWIG_fail;
20561       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20562     }
20563     if (!ptr) {
20564       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20565     }
20566     arg2 = ptr;
20567   }
20568   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
20569   if (!SWIG_IsOK(ecode3)) {
20570     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::termcount""'");
20571   }
20572   arg3 = static_cast< Xapian::termcount >(val3);
20573   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
20574   if (!SWIG_IsOK(ecode4)) {
20575     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Query" "', argument " "4"" of type '" "int""'");
20576   }
20577   arg4 = static_cast< int >(val4);
20578   {
20579     try {
20580       {
20581         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20582         result = (Xapian::Query *)new Xapian::Query(arg1,(std::string const &)*arg2,arg3,arg4);
20583         SWIG_PYTHON_THREAD_END_ALLOW;
20584       }
20585     } catch (...) {
20586       Xapian::SetPythonException();
20587       SWIG_fail;
20588     }
20589   }
20590   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20591   if (SWIG_IsNewObj(res2)) delete arg2;
20592   return resultobj;
20593 fail:
20594   if (SWIG_IsNewObj(res2)) delete arg2;
20595   return NULL;
20596 }
20597 
20598 
_wrap_new_Query__SWIG_13(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20599 SWIGINTERN PyObject *_wrap_new_Query__SWIG_13(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20600   PyObject *resultobj = 0;
20601   Xapian::Query::op arg1 ;
20602   std::string *arg2 = 0 ;
20603   Xapian::termcount arg3 ;
20604   int val1 ;
20605   int ecode1 = 0 ;
20606   int res2 = SWIG_OLDOBJ ;
20607   unsigned int val3 ;
20608   int ecode3 = 0 ;
20609   Xapian::Query *result = 0 ;
20610 
20611   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
20612   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20613   if (!SWIG_IsOK(ecode1)) {
20614     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20615   }
20616   arg1 = static_cast< Xapian::Query::op >(val1);
20617   {
20618     std::string *ptr = (std::string *)0;
20619     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
20620     if (!SWIG_IsOK(res2)) {
20621       if (res2 == INT_MIN) SWIG_fail;
20622       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20623     }
20624     if (!ptr) {
20625       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20626     }
20627     arg2 = ptr;
20628   }
20629   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
20630   if (!SWIG_IsOK(ecode3)) {
20631     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Query" "', argument " "3"" of type '" "Xapian::termcount""'");
20632   }
20633   arg3 = static_cast< Xapian::termcount >(val3);
20634   {
20635     try {
20636       {
20637         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20638         result = (Xapian::Query *)new Xapian::Query(arg1,(std::string const &)*arg2,arg3);
20639         SWIG_PYTHON_THREAD_END_ALLOW;
20640       }
20641     } catch (...) {
20642       Xapian::SetPythonException();
20643       SWIG_fail;
20644     }
20645   }
20646   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20647   if (SWIG_IsNewObj(res2)) delete arg2;
20648   return resultobj;
20649 fail:
20650   if (SWIG_IsNewObj(res2)) delete arg2;
20651   return NULL;
20652 }
20653 
20654 
_wrap_new_Query__SWIG_14(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20655 SWIGINTERN PyObject *_wrap_new_Query__SWIG_14(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20656   PyObject *resultobj = 0;
20657   Xapian::Query::op arg1 ;
20658   std::string *arg2 = 0 ;
20659   int val1 ;
20660   int ecode1 = 0 ;
20661   int res2 = SWIG_OLDOBJ ;
20662   Xapian::Query *result = 0 ;
20663 
20664   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
20665   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20666   if (!SWIG_IsOK(ecode1)) {
20667     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20668   }
20669   arg1 = static_cast< Xapian::Query::op >(val1);
20670   {
20671     std::string *ptr = (std::string *)0;
20672     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
20673     if (!SWIG_IsOK(res2)) {
20674       if (res2 == INT_MIN) SWIG_fail;
20675       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20676     }
20677     if (!ptr) {
20678       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Query" "', argument " "2"" of type '" "std::string const &""'");
20679     }
20680     arg2 = ptr;
20681   }
20682   {
20683     try {
20684       {
20685         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20686         result = (Xapian::Query *)new Xapian::Query(arg1,(std::string const &)*arg2);
20687         SWIG_PYTHON_THREAD_END_ALLOW;
20688       }
20689     } catch (...) {
20690       Xapian::SetPythonException();
20691       SWIG_fail;
20692     }
20693   }
20694   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20695   if (SWIG_IsNewObj(res2)) delete arg2;
20696   return resultobj;
20697 fail:
20698   if (SWIG_IsNewObj(res2)) delete arg2;
20699   return NULL;
20700 }
20701 
20702 
_wrap_new_Query__SWIG_17(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20703 SWIGINTERN PyObject *_wrap_new_Query__SWIG_17(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20704   PyObject *resultobj = 0;
20705   Xapian::Query::op arg1 ;
20706   XapianSWIGQueryItor arg2 ;
20707   XapianSWIGQueryItor arg3 ;
20708   Xapian::termcount arg4 ;
20709   int val1 ;
20710   int ecode1 = 0 ;
20711   unsigned int val4 ;
20712   int ecode4 = 0 ;
20713   Xapian::Query *result = 0 ;
20714 
20715   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
20716   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20717   if (!SWIG_IsOK(ecode1)) {
20718     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20719   }
20720   arg1 = static_cast< Xapian::Query::op >(val1);
20721   {
20722     PyObject * seq;
20723     seq = PySequence_Fast(swig_obj[1],
20724       "expected sequence of Query objects and/or strings");
20725     if (!seq) SWIG_fail;
20726     (&arg2)->begin(seq);
20727     (&arg3)->end(seq);
20728   }
20729   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val4);
20730   if (!SWIG_IsOK(ecode4)) {
20731     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Query" "', argument " "4"" of type '" "Xapian::termcount""'");
20732   }
20733   arg4 = static_cast< Xapian::termcount >(val4);
20734   {
20735     try {
20736       result = (Xapian::Query *)new Xapian::Query(arg1,arg2,arg3,arg4);
20737     } catch (...) {
20738       Xapian::SetPythonException();
20739       SWIG_fail;
20740     }
20741   }
20742   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20743   (&arg2)->free_seq();
20744   return resultobj;
20745 fail:
20746   (&arg2)->free_seq();
20747   return NULL;
20748 }
20749 
20750 
_wrap_new_Query__SWIG_18(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)20751 SWIGINTERN PyObject *_wrap_new_Query__SWIG_18(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20752   PyObject *resultobj = 0;
20753   Xapian::Query::op arg1 ;
20754   XapianSWIGQueryItor arg2 ;
20755   XapianSWIGQueryItor arg3 ;
20756   int val1 ;
20757   int ecode1 = 0 ;
20758   Xapian::Query *result = 0 ;
20759 
20760   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
20761   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
20762   if (!SWIG_IsOK(ecode1)) {
20763     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
20764   }
20765   arg1 = static_cast< Xapian::Query::op >(val1);
20766   {
20767     PyObject * seq;
20768     seq = PySequence_Fast(swig_obj[1],
20769       "expected sequence of Query objects and/or strings");
20770     if (!seq) SWIG_fail;
20771     (&arg2)->begin(seq);
20772     (&arg3)->end(seq);
20773   }
20774   {
20775     try {
20776       result = (Xapian::Query *)new Xapian::Query(arg1,arg2,arg3);
20777     } catch (...) {
20778       Xapian::SetPythonException();
20779       SWIG_fail;
20780     }
20781   }
20782   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
20783   (&arg2)->free_seq();
20784   return resultobj;
20785 fail:
20786   (&arg2)->free_seq();
20787   return NULL;
20788 }
20789 
20790 
_wrap_Query__get_terms_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20791 SWIGINTERN PyObject *_wrap_Query__get_terms_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20792   PyObject *resultobj = 0;
20793   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
20794   void *argp1 = 0 ;
20795   int res1 = 0 ;
20796   PyObject *swig_obj[1] ;
20797   Xapian::TermIterator result;
20798 
20799   if (!args) SWIG_fail;
20800   swig_obj[0] = args;
20801   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
20802   if (!SWIG_IsOK(res1)) {
20803     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query__get_terms_begin" "', argument " "1"" of type '" "Xapian::Query const *""'");
20804   }
20805   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
20806   {
20807     try {
20808       {
20809         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20810         result = ((Xapian::Query const *)arg1)->get_terms_begin();
20811         SWIG_PYTHON_THREAD_END_ALLOW;
20812       }
20813     } catch (...) {
20814       Xapian::SetPythonException();
20815       SWIG_fail;
20816     }
20817   }
20818   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
20819   return resultobj;
20820 fail:
20821   return NULL;
20822 }
20823 
20824 
_wrap_Query__get_terms_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20825 SWIGINTERN PyObject *_wrap_Query__get_terms_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20826   PyObject *resultobj = 0;
20827   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
20828   void *argp1 = 0 ;
20829   int res1 = 0 ;
20830   PyObject *swig_obj[1] ;
20831   Xapian::TermIterator result;
20832 
20833   if (!args) SWIG_fail;
20834   swig_obj[0] = args;
20835   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
20836   if (!SWIG_IsOK(res1)) {
20837     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query__get_terms_end" "', argument " "1"" of type '" "Xapian::Query const *""'");
20838   }
20839   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
20840   {
20841     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20842     result = ((Xapian::Query const *)arg1)->get_terms_end();
20843     SWIG_PYTHON_THREAD_END_ALLOW;
20844   }
20845   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
20846   return resultobj;
20847 fail:
20848   return NULL;
20849 }
20850 
20851 
_wrap_Query_get_unique_terms_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20852 SWIGINTERN PyObject *_wrap_Query_get_unique_terms_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20853   PyObject *resultobj = 0;
20854   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
20855   void *argp1 = 0 ;
20856   int res1 = 0 ;
20857   PyObject *swig_obj[1] ;
20858   Xapian::TermIterator result;
20859 
20860   if (!args) SWIG_fail;
20861   swig_obj[0] = args;
20862   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
20863   if (!SWIG_IsOK(res1)) {
20864     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_unique_terms_begin" "', argument " "1"" of type '" "Xapian::Query const *""'");
20865   }
20866   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
20867   {
20868     try {
20869       {
20870         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20871         result = ((Xapian::Query const *)arg1)->get_unique_terms_begin();
20872         SWIG_PYTHON_THREAD_END_ALLOW;
20873       }
20874     } catch (...) {
20875       Xapian::SetPythonException();
20876       SWIG_fail;
20877     }
20878   }
20879   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
20880   return resultobj;
20881 fail:
20882   return NULL;
20883 }
20884 
20885 
_wrap_Query_get_unique_terms_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20886 SWIGINTERN PyObject *_wrap_Query_get_unique_terms_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20887   PyObject *resultobj = 0;
20888   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
20889   void *argp1 = 0 ;
20890   int res1 = 0 ;
20891   PyObject *swig_obj[1] ;
20892   Xapian::TermIterator result;
20893 
20894   if (!args) SWIG_fail;
20895   swig_obj[0] = args;
20896   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
20897   if (!SWIG_IsOK(res1)) {
20898     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_unique_terms_end" "', argument " "1"" of type '" "Xapian::Query const *""'");
20899   }
20900   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
20901   {
20902     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20903     result = ((Xapian::Query const *)arg1)->get_unique_terms_end();
20904     SWIG_PYTHON_THREAD_END_ALLOW;
20905   }
20906   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
20907   return resultobj;
20908 fail:
20909   return NULL;
20910 }
20911 
20912 
_wrap_Query_get_length(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20913 SWIGINTERN PyObject *_wrap_Query_get_length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20914   PyObject *resultobj = 0;
20915   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
20916   void *argp1 = 0 ;
20917   int res1 = 0 ;
20918   PyObject *swig_obj[1] ;
20919   Xapian::termcount result;
20920 
20921   if (!args) SWIG_fail;
20922   swig_obj[0] = args;
20923   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
20924   if (!SWIG_IsOK(res1)) {
20925     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_length" "', argument " "1"" of type '" "Xapian::Query const *""'");
20926   }
20927   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
20928   {
20929     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20930     result = (Xapian::termcount)((Xapian::Query const *)arg1)->get_length();
20931     SWIG_PYTHON_THREAD_END_ALLOW;
20932   }
20933   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
20934   return resultobj;
20935 fail:
20936   return NULL;
20937 }
20938 
20939 
_wrap_Query_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20940 SWIGINTERN PyObject *_wrap_Query_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20941   PyObject *resultobj = 0;
20942   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
20943   void *argp1 = 0 ;
20944   int res1 = 0 ;
20945   PyObject *swig_obj[1] ;
20946   bool result;
20947 
20948   if (!args) SWIG_fail;
20949   swig_obj[0] = args;
20950   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
20951   if (!SWIG_IsOK(res1)) {
20952     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_empty" "', argument " "1"" of type '" "Xapian::Query const *""'");
20953   }
20954   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
20955   {
20956     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20957     result = (bool)((Xapian::Query const *)arg1)->empty();
20958     SWIG_PYTHON_THREAD_END_ALLOW;
20959   }
20960   resultobj = SWIG_From_bool(static_cast< bool >(result));
20961   return resultobj;
20962 fail:
20963   return NULL;
20964 }
20965 
20966 
_wrap_Query_serialise(PyObject * SWIGUNUSEDPARM (self),PyObject * args)20967 SWIGINTERN PyObject *_wrap_Query_serialise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20968   PyObject *resultobj = 0;
20969   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
20970   void *argp1 = 0 ;
20971   int res1 = 0 ;
20972   PyObject *swig_obj[1] ;
20973   std::string result;
20974 
20975   if (!args) SWIG_fail;
20976   swig_obj[0] = args;
20977   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
20978   if (!SWIG_IsOK(res1)) {
20979     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_serialise" "', argument " "1"" of type '" "Xapian::Query const *""'");
20980   }
20981   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
20982   {
20983     try {
20984       {
20985         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
20986         result = ((Xapian::Query const *)arg1)->serialise();
20987         SWIG_PYTHON_THREAD_END_ALLOW;
20988       }
20989     } catch (...) {
20990       Xapian::SetPythonException();
20991       SWIG_fail;
20992     }
20993   }
20994 
20995   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
20996 
20997   return resultobj;
20998 fail:
20999   return NULL;
21000 }
21001 
21002 
_wrap_Query_unserialise__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)21003 SWIGINTERN PyObject *_wrap_Query_unserialise__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21004   PyObject *resultobj = 0;
21005   std::string *arg1 = 0 ;
21006   Xapian::Registry *arg2 = 0 ;
21007   std::string bytes1 ;
21008   void *argp2 = 0 ;
21009   int res2 = 0 ;
21010   Xapian::Query result;
21011 
21012   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
21013   {
21014     char * p;
21015     Py_ssize_t len;
21016     if (PyBytes_AsStringAndSize(swig_obj[0], &p, &len) < 0) SWIG_fail;
21017     bytes1.assign(p, len);
21018     arg1 = &bytes1;
21019   }
21020   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Registry,  0  | 0);
21021   if (!SWIG_IsOK(res2)) {
21022     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Query_unserialise" "', argument " "2"" of type '" "Xapian::Registry const &""'");
21023   }
21024   if (!argp2) {
21025     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Query_unserialise" "', argument " "2"" of type '" "Xapian::Registry const &""'");
21026   }
21027   arg2 = reinterpret_cast< Xapian::Registry * >(argp2);
21028   {
21029     try {
21030       {
21031         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21032         result = Xapian::Query::unserialise((std::string const &)*arg1,(Xapian::Registry const &)*arg2);
21033         SWIG_PYTHON_THREAD_END_ALLOW;
21034       }
21035     } catch (...) {
21036       Xapian::SetPythonException();
21037       SWIG_fail;
21038     }
21039   }
21040   resultobj = SWIG_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN |  0 );
21041   return resultobj;
21042 fail:
21043   return NULL;
21044 }
21045 
21046 
_wrap_Query_unserialise__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)21047 SWIGINTERN PyObject *_wrap_Query_unserialise__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21048   PyObject *resultobj = 0;
21049   std::string *arg1 = 0 ;
21050   std::string bytes1 ;
21051   Xapian::Query result;
21052 
21053   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
21054   {
21055     char * p;
21056     Py_ssize_t len;
21057     if (PyBytes_AsStringAndSize(swig_obj[0], &p, &len) < 0) SWIG_fail;
21058     bytes1.assign(p, len);
21059     arg1 = &bytes1;
21060   }
21061   {
21062     try {
21063       {
21064         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21065         result = Xapian::Query::unserialise((std::string const &)*arg1);
21066         SWIG_PYTHON_THREAD_END_ALLOW;
21067       }
21068     } catch (...) {
21069       Xapian::SetPythonException();
21070       SWIG_fail;
21071     }
21072   }
21073   resultobj = SWIG_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN |  0 );
21074   return resultobj;
21075 fail:
21076   return NULL;
21077 }
21078 
21079 
_wrap_Query_unserialise(PyObject * self,PyObject * args)21080 SWIGINTERN PyObject *_wrap_Query_unserialise(PyObject *self, PyObject *args) {
21081   Py_ssize_t argc;
21082   PyObject *argv[3] = {
21083     0
21084   };
21085 
21086   if (!(argc = SWIG_Python_UnpackTuple(args,"Query_unserialise",0,2,argv))) SWIG_fail;
21087   --argc;
21088   if (argc == 1) {
21089     return _wrap_Query_unserialise__SWIG_1(self, argc, argv);
21090   }
21091   if (argc == 2) {
21092     return _wrap_Query_unserialise__SWIG_0(self, argc, argv);
21093   }
21094 
21095 fail:
21096   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Query_unserialise'.\n"
21097     "  Possible C/C++ prototypes are:\n"
21098     "    Xapian::Query::unserialise(std::string const &,Xapian::Registry const &)\n"
21099     "    Xapian::Query::unserialise(std::string const &)\n");
21100   return 0;
21101 }
21102 
21103 
_wrap_Query_get_type(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21104 SWIGINTERN PyObject *_wrap_Query_get_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21105   PyObject *resultobj = 0;
21106   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
21107   void *argp1 = 0 ;
21108   int res1 = 0 ;
21109   PyObject *swig_obj[1] ;
21110   Xapian::Query::op result;
21111 
21112   if (!args) SWIG_fail;
21113   swig_obj[0] = args;
21114   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
21115   if (!SWIG_IsOK(res1)) {
21116     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_type" "', argument " "1"" of type '" "Xapian::Query const *""'");
21117   }
21118   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
21119   {
21120     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21121     result = (Xapian::Query::op)((Xapian::Query const *)arg1)->get_type();
21122     SWIG_PYTHON_THREAD_END_ALLOW;
21123   }
21124   resultobj = SWIG_From_int(static_cast< int >(result));
21125   return resultobj;
21126 fail:
21127   return NULL;
21128 }
21129 
21130 
_wrap_Query_get_num_subqueries(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21131 SWIGINTERN PyObject *_wrap_Query_get_num_subqueries(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21132   PyObject *resultobj = 0;
21133   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
21134   void *argp1 = 0 ;
21135   int res1 = 0 ;
21136   PyObject *swig_obj[1] ;
21137   size_t result;
21138 
21139   if (!args) SWIG_fail;
21140   swig_obj[0] = args;
21141   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
21142   if (!SWIG_IsOK(res1)) {
21143     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_num_subqueries" "', argument " "1"" of type '" "Xapian::Query const *""'");
21144   }
21145   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
21146   {
21147     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21148     result = ((Xapian::Query const *)arg1)->get_num_subqueries();
21149     SWIG_PYTHON_THREAD_END_ALLOW;
21150   }
21151   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
21152   return resultobj;
21153 fail:
21154   return NULL;
21155 }
21156 
21157 
_wrap_Query_get_subquery(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21158 SWIGINTERN PyObject *_wrap_Query_get_subquery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21159   PyObject *resultobj = 0;
21160   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
21161   size_t arg2 ;
21162   void *argp1 = 0 ;
21163   int res1 = 0 ;
21164   size_t val2 ;
21165   int ecode2 = 0 ;
21166   PyObject *swig_obj[2] ;
21167   Xapian::Query result;
21168 
21169   if (!SWIG_Python_UnpackTuple(args,"Query_get_subquery",2,2,swig_obj)) SWIG_fail;
21170   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
21171   if (!SWIG_IsOK(res1)) {
21172     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query_get_subquery" "', argument " "1"" of type '" "Xapian::Query const *""'");
21173   }
21174   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
21175   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
21176   if (!SWIG_IsOK(ecode2)) {
21177     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Query_get_subquery" "', argument " "2"" of type '" "size_t""'");
21178   }
21179   arg2 = static_cast< size_t >(val2);
21180   {
21181     try {
21182       {
21183         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21184         result = ((Xapian::Query const *)arg1)->get_subquery(arg2);
21185         SWIG_PYTHON_THREAD_END_ALLOW;
21186       }
21187     } catch (...) {
21188       Xapian::SetPythonException();
21189       SWIG_fail;
21190     }
21191   }
21192   resultobj = SWIG_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN |  0 );
21193   return resultobj;
21194 fail:
21195   return NULL;
21196 }
21197 
21198 
_wrap_Query___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21199 SWIGINTERN PyObject *_wrap_Query___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21200   PyObject *resultobj = 0;
21201   Xapian::Query *arg1 = (Xapian::Query *) 0 ;
21202   void *argp1 = 0 ;
21203   int res1 = 0 ;
21204   PyObject *swig_obj[1] ;
21205   std::string result;
21206 
21207   if (!args) SWIG_fail;
21208   swig_obj[0] = args;
21209   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Query, 0 |  0 );
21210   if (!SWIG_IsOK(res1)) {
21211     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Query___str__" "', argument " "1"" of type '" "Xapian::Query const *""'");
21212   }
21213   arg1 = reinterpret_cast< Xapian::Query * >(argp1);
21214   {
21215     try {
21216       {
21217         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21218         result = ((Xapian::Query const *)arg1)->get_description();
21219         SWIG_PYTHON_THREAD_END_ALLOW;
21220       }
21221     } catch (...) {
21222       Xapian::SetPythonException();
21223       SWIG_fail;
21224     }
21225   }
21226   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
21227   return resultobj;
21228 fail:
21229   return NULL;
21230 }
21231 
21232 
_wrap_new_Query__SWIG_19(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)21233 SWIGINTERN PyObject *_wrap_new_Query__SWIG_19(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21234   PyObject *resultobj = 0;
21235   Xapian::Query::op arg1 ;
21236   int val1 ;
21237   int ecode1 = 0 ;
21238   Xapian::Query *result = 0 ;
21239 
21240   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
21241   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
21242   if (!SWIG_IsOK(ecode1)) {
21243     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Query" "', argument " "1"" of type '" "Xapian::Query::op""'");
21244   }
21245   arg1 = static_cast< Xapian::Query::op >(val1);
21246   {
21247     try {
21248       {
21249         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21250         result = (Xapian::Query *)new Xapian::Query(arg1);
21251         SWIG_PYTHON_THREAD_END_ALLOW;
21252       }
21253     } catch (...) {
21254       Xapian::SetPythonException();
21255       SWIG_fail;
21256     }
21257   }
21258   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_NEW |  0 );
21259   return resultobj;
21260 fail:
21261   return NULL;
21262 }
21263 
21264 
_wrap_new_Query(PyObject * self,PyObject * args)21265 SWIGINTERN PyObject *_wrap_new_Query(PyObject *self, PyObject *args) {
21266   Py_ssize_t argc;
21267   PyObject *argv[6] = {
21268     0
21269   };
21270 
21271   if (!(argc = SWIG_Python_UnpackTuple(args,"new_Query",0,5,argv))) SWIG_fail;
21272   --argc;
21273   if (argc == 0) {
21274     return _wrap_new_Query__SWIG_0(self, argc, argv);
21275   }
21276   if (argc == 1) {
21277     int _v = 0;
21278     {
21279       void *vptr = 0;
21280       int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__PostingSource, 0);
21281       _v = SWIG_CheckState(res);
21282     }
21283     if (!_v) goto check_2;
21284     return _wrap_new_Query__SWIG_4(self, argc, argv);
21285   }
21286 check_2:
21287 
21288   if (argc == 1) {
21289     int _v = 0;
21290     {
21291       {
21292         int res = SWIG_AsVal_int(argv[0], NULL);
21293         _v = SWIG_CheckState(res);
21294       }
21295     }
21296     if (!_v) goto check_3;
21297     return _wrap_new_Query__SWIG_19(self, argc, argv);
21298   }
21299 check_3:
21300 
21301   if (argc == 1) {
21302     return _wrap_new_Query__SWIG_3(self, argc, argv);
21303   }
21304   if (argc == 2) {
21305     int _v = 0;
21306     {
21307       {
21308         int res = SWIG_AsVal_int(argv[0], NULL);
21309         _v = SWIG_CheckState(res);
21310       }
21311     }
21312     if (!_v) goto check_5;
21313     {
21314       {
21315         // Checking for a sequence is enough to disambiguate currently.
21316         _v = PySequence_Check(argv[1]);
21317       }
21318     }
21319     if (!_v) goto check_5;
21320     return _wrap_new_Query__SWIG_18(self, argc, argv);
21321   }
21322 check_5:
21323 
21324   if (argc == 2) {
21325     int _v = 0;
21326     {
21327       {
21328         int res = SWIG_AsVal_int(argv[0], NULL);
21329         _v = SWIG_CheckState(res);
21330       }
21331     }
21332     if (!_v) goto check_6;
21333     {
21334       if (PyUnicode_Check(argv[1])) {
21335         _v = 1;
21336       } else if (PyBytes_Check(argv[1])) {
21337         _v = 1;
21338       } else {
21339         int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
21340         _v = SWIG_CheckState(res);
21341       }
21342     }
21343     if (!_v) goto check_6;
21344     return _wrap_new_Query__SWIG_14(self, argc, argv);
21345   }
21346 check_6:
21347 
21348   if (argc == 2) {
21349     int _v = 0;
21350     {
21351       {
21352         int res = SWIG_AsVal_double(argv[0], NULL);
21353         _v = SWIG_CheckState(res);
21354       }
21355     }
21356     if (!_v) goto check_7;
21357     {
21358       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__Query, 0);
21359       _v = SWIG_CheckState(res);
21360     }
21361     if (!_v) goto check_7;
21362     return _wrap_new_Query__SWIG_5(self, argc, argv);
21363   }
21364 check_7:
21365 
21366   if (argc == 2) {
21367     return _wrap_new_Query__SWIG_2(self, argc, argv);
21368   }
21369   if (argc == 3) {
21370     int _v = 0;
21371     {
21372       {
21373         int res = SWIG_AsVal_int(argv[0], NULL);
21374         _v = SWIG_CheckState(res);
21375       }
21376     }
21377     if (!_v) goto check_9;
21378     {
21379       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__Query, 0);
21380       _v = SWIG_CheckState(res);
21381     }
21382     if (!_v) goto check_9;
21383     {
21384       int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Xapian__Query, 0);
21385       _v = SWIG_CheckState(res);
21386     }
21387     if (!_v) goto check_9;
21388     return _wrap_new_Query__SWIG_7(self, argc, argv);
21389   }
21390 check_9:
21391 
21392   if (argc == 3) {
21393     int _v = 0;
21394     {
21395       {
21396         int res = SWIG_AsVal_int(argv[0], NULL);
21397         _v = SWIG_CheckState(res);
21398       }
21399     }
21400     if (!_v) goto check_10;
21401     {
21402       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__Query, 0);
21403       _v = SWIG_CheckState(res);
21404     }
21405     if (!_v) goto check_10;
21406     {
21407       {
21408         int res = SWIG_AsVal_double(argv[2], NULL);
21409         _v = SWIG_CheckState(res);
21410       }
21411     }
21412     if (!_v) goto check_10;
21413     return _wrap_new_Query__SWIG_6(self, argc, argv);
21414   }
21415 check_10:
21416 
21417   if (argc == 3) {
21418     int _v = 0;
21419     {
21420       {
21421         int res = SWIG_AsVal_int(argv[0], NULL);
21422         _v = SWIG_CheckState(res);
21423       }
21424     }
21425     if (!_v) goto check_11;
21426     {
21427       {
21428         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
21429         _v = SWIG_CheckState(res);
21430       }
21431     }
21432     if (!_v) goto check_11;
21433     {
21434       if (PyUnicode_Check(argv[2])) {
21435         _v = 1;
21436       } else if (PyBytes_Check(argv[2])) {
21437         _v = 1;
21438       } else {
21439         int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
21440         _v = SWIG_CheckState(res);
21441       }
21442     }
21443     if (!_v) goto check_11;
21444     return _wrap_new_Query__SWIG_9(self, argc, argv);
21445   }
21446 check_11:
21447 
21448   if (argc == 3) {
21449     int _v = 0;
21450     {
21451       {
21452         int res = SWIG_AsVal_int(argv[0], NULL);
21453         _v = SWIG_CheckState(res);
21454       }
21455     }
21456     if (!_v) goto check_12;
21457     {
21458       {
21459         // Checking for a sequence is enough to disambiguate currently.
21460         _v = PySequence_Check(argv[1]);
21461       }
21462     }
21463     if (!_v) goto check_12;
21464     {
21465       {
21466         int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
21467         _v = SWIG_CheckState(res);
21468       }
21469     }
21470     if (!_v) goto check_12;
21471     return _wrap_new_Query__SWIG_17(self, argc, argv);
21472   }
21473 check_12:
21474 
21475   if (argc == 3) {
21476     int _v = 0;
21477     {
21478       {
21479         int res = SWIG_AsVal_int(argv[0], NULL);
21480         _v = SWIG_CheckState(res);
21481       }
21482     }
21483     if (!_v) goto check_13;
21484     {
21485       if (PyUnicode_Check(argv[1])) {
21486         _v = 1;
21487       } else if (PyBytes_Check(argv[1])) {
21488         _v = 1;
21489       } else {
21490         int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
21491         _v = SWIG_CheckState(res);
21492       }
21493     }
21494     if (!_v) goto check_13;
21495     {
21496       {
21497         int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
21498         _v = SWIG_CheckState(res);
21499       }
21500     }
21501     if (!_v) goto check_13;
21502     return _wrap_new_Query__SWIG_13(self, argc, argv);
21503   }
21504 check_13:
21505 
21506   if (argc == 3) {
21507     int _v = 0;
21508     {
21509       {
21510         int res = SWIG_AsVal_int(argv[0], NULL);
21511         _v = SWIG_CheckState(res);
21512       }
21513     }
21514     if (!_v) goto check_14;
21515     {
21516       if (PyUnicode_Check(argv[1])) {
21517         _v = 1;
21518       } else if (PyBytes_Check(argv[1])) {
21519         _v = 1;
21520       } else {
21521         int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
21522         _v = SWIG_CheckState(res);
21523       }
21524     }
21525     if (!_v) goto check_14;
21526     {
21527       if (PyUnicode_Check(argv[2])) {
21528         _v = 1;
21529       } else if (PyBytes_Check(argv[2])) {
21530         _v = 1;
21531       } else {
21532         int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
21533         _v = SWIG_CheckState(res);
21534       }
21535     }
21536     if (!_v) goto check_14;
21537     return _wrap_new_Query__SWIG_8(self, argc, argv);
21538   }
21539 check_14:
21540 
21541   if (argc == 3) {
21542     return _wrap_new_Query__SWIG_1(self, argc, argv);
21543   }
21544   if (argc == 4) {
21545     int _v = 0;
21546     {
21547       {
21548         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
21549         _v = SWIG_CheckState(res);
21550       }
21551     }
21552     if (!_v) goto check_16;
21553     {
21554       if (PyUnicode_Check(argv[2])) {
21555         _v = 1;
21556       } else if (PyBytes_Check(argv[2])) {
21557         _v = 1;
21558       } else {
21559         int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
21560         _v = SWIG_CheckState(res);
21561       }
21562     }
21563     if (!_v) goto check_16;
21564     {
21565       if (PyUnicode_Check(argv[3])) {
21566         _v = 1;
21567       } else if (PyBytes_Check(argv[3])) {
21568         _v = 1;
21569       } else {
21570         int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
21571         _v = SWIG_CheckState(res);
21572       }
21573     }
21574     if (!_v) goto check_16;
21575     return _wrap_new_Query__SWIG_10(self, argc, argv);
21576   }
21577 check_16:
21578 
21579   if (argc == 4) {
21580     return _wrap_new_Query__SWIG_12(self, argc, argv);
21581   }
21582   if (argc == 5) {
21583     return _wrap_new_Query__SWIG_11(self, argc, argv);
21584   }
21585 
21586 fail:
21587   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Query'.\n"
21588     "  Possible C/C++ prototypes are:\n"
21589     "    Xapian::Query::Query()\n"
21590     "    Xapian::Query::Query(std::string const &,Xapian::termcount,Xapian::termpos)\n"
21591     "    Xapian::Query::Query(std::string const &,Xapian::termcount)\n"
21592     "    Xapian::Query::Query(std::string const &)\n"
21593     "    Xapian::Query::Query(Xapian::PostingSource *)\n"
21594     "    Xapian::Query::Query(double,Xapian::Query const &)\n"
21595     "    Xapian::Query::Query(Xapian::Query::op,Xapian::Query const &,double)\n"
21596     "    Xapian::Query::Query(Xapian::Query::op,Xapian::Query const &,Xapian::Query const &)\n"
21597     "    Xapian::Query::Query(Xapian::Query::op,std::string const &,std::string const &)\n"
21598     "    Xapian::Query::Query(Xapian::Query::op,Xapian::valueno,std::string const &)\n"
21599     "    Xapian::Query::Query(Xapian::Query::op,Xapian::valueno,std::string const &,std::string const &)\n"
21600     "    Xapian::Query::Query(Xapian::Query::op,std::string const &,Xapian::termcount,int,Xapian::Query::op)\n"
21601     "    Xapian::Query::Query(Xapian::Query::op,std::string const &,Xapian::termcount,int)\n"
21602     "    Xapian::Query::Query(Xapian::Query::op,std::string const &,Xapian::termcount)\n"
21603     "    Xapian::Query::Query(Xapian::Query::op,std::string const &)\n"
21604     "    Xapian::Query::Query(Xapian::Query::op,XapianSWIGQueryItor,XapianSWIGQueryItor,Xapian::termcount)\n"
21605     "    Xapian::Query::Query(Xapian::Query::op,XapianSWIGQueryItor,XapianSWIGQueryItor)\n"
21606     "    Xapian::Query::Query(Xapian::Query::op)\n");
21607   return 0;
21608 }
21609 
21610 
Query_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21611 SWIGINTERN PyObject *Query_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21612   PyObject *obj;
21613   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
21614   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Query, SWIG_NewClientData(obj));
21615   return SWIG_Py_Void();
21616 }
21617 
Query_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21618 SWIGINTERN PyObject *Query_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21619   return SWIG_Python_InitShadowInstance(args);
21620 }
21621 
_wrap_new_StemImplementation(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21622 SWIGINTERN PyObject *_wrap_new_StemImplementation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21623   PyObject *resultobj = 0;
21624   PyObject *arg1 = (PyObject *) 0 ;
21625   PyObject *swig_obj[1] ;
21626   Xapian::StemImplementation *result = 0 ;
21627 
21628   if (!args) SWIG_fail;
21629   swig_obj[0] = args;
21630   arg1 = swig_obj[0];
21631   {
21632     try {
21633       {
21634         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21635         if ( arg1 != Py_None ) {
21636           /* subclassed */
21637           result = (Xapian::StemImplementation *)new SwigDirector_StemImplementation(arg1);
21638         } else {
21639           SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
21640           SWIG_fail;
21641         }
21642 
21643         SWIG_PYTHON_THREAD_END_ALLOW;
21644       }
21645     } catch (...) {
21646       Xapian::SetPythonException();
21647       SWIG_fail;
21648     }
21649   }
21650   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__StemImplementation, SWIG_POINTER_NEW |  0 );
21651   return resultobj;
21652 fail:
21653   return NULL;
21654 }
21655 
21656 
_wrap_delete_StemImplementation(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21657 SWIGINTERN PyObject *_wrap_delete_StemImplementation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21658   PyObject *resultobj = 0;
21659   Xapian::StemImplementation *arg1 = (Xapian::StemImplementation *) 0 ;
21660   void *argp1 = 0 ;
21661   int res1 = 0 ;
21662   PyObject *swig_obj[1] ;
21663 
21664   if (!args) SWIG_fail;
21665   swig_obj[0] = args;
21666   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__StemImplementation, SWIG_POINTER_DISOWN |  0 );
21667   if (!SWIG_IsOK(res1)) {
21668     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StemImplementation" "', argument " "1"" of type '" "Xapian::StemImplementation *""'");
21669   }
21670   arg1 = reinterpret_cast< Xapian::StemImplementation * >(argp1);
21671   {
21672     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21673     delete arg1;
21674     SWIG_PYTHON_THREAD_END_ALLOW;
21675   }
21676   resultobj = SWIG_Py_Void();
21677   return resultobj;
21678 fail:
21679   return NULL;
21680 }
21681 
21682 
_wrap_StemImplementation___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21683 SWIGINTERN PyObject *_wrap_StemImplementation___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21684   PyObject *resultobj = 0;
21685   Xapian::StemImplementation *arg1 = (Xapian::StemImplementation *) 0 ;
21686   std::string *arg2 = 0 ;
21687   void *argp1 = 0 ;
21688   int res1 = 0 ;
21689   int res2 = SWIG_OLDOBJ ;
21690   PyObject *swig_obj[2] ;
21691   Swig::Director *director = 0;
21692   bool upcall = false;
21693   std::string result;
21694 
21695   if (!SWIG_Python_UnpackTuple(args,"StemImplementation___call__",2,2,swig_obj)) SWIG_fail;
21696   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__StemImplementation, 0 |  0 );
21697   if (!SWIG_IsOK(res1)) {
21698     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StemImplementation___call__" "', argument " "1"" of type '" "Xapian::StemImplementation *""'");
21699   }
21700   arg1 = reinterpret_cast< Xapian::StemImplementation * >(argp1);
21701   {
21702     std::string *ptr = (std::string *)0;
21703     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
21704     if (!SWIG_IsOK(res2)) {
21705       if (res2 == INT_MIN) SWIG_fail;
21706       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StemImplementation___call__" "', argument " "2"" of type '" "std::string const &""'");
21707     }
21708     if (!ptr) {
21709       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StemImplementation___call__" "', argument " "2"" of type '" "std::string const &""'");
21710     }
21711     arg2 = ptr;
21712   }
21713   director = SWIG_DIRECTOR_CAST(arg1);
21714   upcall = (director && (director->swig_get_self()==swig_obj[0]));
21715   try {
21716     {
21717       try {
21718         if (upcall) {
21719           Swig::DirectorPureVirtualException::raise("Xapian::StemImplementation::operator ()");
21720         } else {
21721           result = (arg1)->operator ()((std::string const &)*arg2);
21722         }
21723       } catch (...) {
21724         Xapian::SetPythonException();
21725         SWIG_fail;
21726       }
21727     }
21728   } catch (Swig::DirectorException&) {
21729     SWIG_fail;
21730   }
21731 
21732   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
21733 
21734   if (SWIG_IsNewObj(res2)) delete arg2;
21735   return resultobj;
21736 fail:
21737   if (SWIG_IsNewObj(res2)) delete arg2;
21738   return NULL;
21739 }
21740 
21741 
_wrap_StemImplementation___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21742 SWIGINTERN PyObject *_wrap_StemImplementation___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21743   PyObject *resultobj = 0;
21744   Xapian::StemImplementation *arg1 = (Xapian::StemImplementation *) 0 ;
21745   void *argp1 = 0 ;
21746   int res1 = 0 ;
21747   PyObject *swig_obj[1] ;
21748   Swig::Director *director = 0;
21749   bool upcall = false;
21750   std::string result;
21751 
21752   if (!args) SWIG_fail;
21753   swig_obj[0] = args;
21754   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__StemImplementation, 0 |  0 );
21755   if (!SWIG_IsOK(res1)) {
21756     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StemImplementation___str__" "', argument " "1"" of type '" "Xapian::StemImplementation const *""'");
21757   }
21758   arg1 = reinterpret_cast< Xapian::StemImplementation * >(argp1);
21759   director = SWIG_DIRECTOR_CAST(arg1);
21760   upcall = (director && (director->swig_get_self()==swig_obj[0]));
21761   try {
21762     {
21763       try {
21764         if (upcall) {
21765           Swig::DirectorPureVirtualException::raise("Xapian::StemImplementation::get_description");
21766         } else {
21767           result = ((Xapian::StemImplementation const *)arg1)->get_description();
21768         }
21769       } catch (...) {
21770         Xapian::SetPythonException();
21771         SWIG_fail;
21772       }
21773     }
21774   } catch (Swig::DirectorException&) {
21775     SWIG_fail;
21776   }
21777   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
21778   return resultobj;
21779 fail:
21780   return NULL;
21781 }
21782 
21783 
_wrap_disown_StemImplementation(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21784 SWIGINTERN PyObject *_wrap_disown_StemImplementation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21785   PyObject *resultobj = 0;
21786   Xapian::StemImplementation *arg1 = (Xapian::StemImplementation *) 0 ;
21787   void *argp1 = 0 ;
21788   int res1 = 0 ;
21789   PyObject *swig_obj[1] ;
21790 
21791   if (!args) SWIG_fail;
21792   swig_obj[0] = args;
21793   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__StemImplementation, 0 |  0 );
21794   if (!SWIG_IsOK(res1)) {
21795     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_StemImplementation" "', argument " "1"" of type '" "Xapian::StemImplementation *""'");
21796   }
21797   arg1 = reinterpret_cast< Xapian::StemImplementation * >(argp1);
21798   {
21799     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21800     {
21801       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
21802       if (director) director->swig_disown();
21803     }
21804 
21805     SWIG_PYTHON_THREAD_END_ALLOW;
21806   }
21807   resultobj = SWIG_Py_Void();
21808   return resultobj;
21809 fail:
21810   return NULL;
21811 }
21812 
21813 
StemImplementation_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21814 SWIGINTERN PyObject *StemImplementation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21815   PyObject *obj;
21816   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
21817   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__StemImplementation, SWIG_NewClientData(obj));
21818   return SWIG_Py_Void();
21819 }
21820 
StemImplementation_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21821 SWIGINTERN PyObject *StemImplementation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21822   return SWIG_Python_InitShadowInstance(args);
21823 }
21824 
_wrap_new_Stem__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)21825 SWIGINTERN PyObject *_wrap_new_Stem__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21826   PyObject *resultobj = 0;
21827   std::string *arg1 = 0 ;
21828   int res1 = SWIG_OLDOBJ ;
21829   Xapian::Stem *result = 0 ;
21830 
21831   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
21832   {
21833     std::string *ptr = (std::string *)0;
21834     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
21835     if (!SWIG_IsOK(res1)) {
21836       if (res1 == INT_MIN) SWIG_fail;
21837       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Stem" "', argument " "1"" of type '" "std::string const &""'");
21838     }
21839     if (!ptr) {
21840       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Stem" "', argument " "1"" of type '" "std::string const &""'");
21841     }
21842     arg1 = ptr;
21843   }
21844   {
21845     try {
21846       {
21847         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21848         result = (Xapian::Stem *)new Xapian::Stem((std::string const &)*arg1);
21849         SWIG_PYTHON_THREAD_END_ALLOW;
21850       }
21851     } catch (...) {
21852       Xapian::SetPythonException();
21853       SWIG_fail;
21854     }
21855   }
21856   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Stem, SWIG_POINTER_NEW |  0 );
21857   if (SWIG_IsNewObj(res1)) delete arg1;
21858   return resultobj;
21859 fail:
21860   if (SWIG_IsNewObj(res1)) delete arg1;
21861   return NULL;
21862 }
21863 
21864 
_wrap_new_Stem__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)21865 SWIGINTERN PyObject *_wrap_new_Stem__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21866   PyObject *resultobj = 0;
21867   std::string *arg1 = 0 ;
21868   bool arg2 ;
21869   int res1 = SWIG_OLDOBJ ;
21870   bool val2 ;
21871   int ecode2 = 0 ;
21872   Xapian::Stem *result = 0 ;
21873 
21874   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
21875   {
21876     std::string *ptr = (std::string *)0;
21877     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
21878     if (!SWIG_IsOK(res1)) {
21879       if (res1 == INT_MIN) SWIG_fail;
21880       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Stem" "', argument " "1"" of type '" "std::string const &""'");
21881     }
21882     if (!ptr) {
21883       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Stem" "', argument " "1"" of type '" "std::string const &""'");
21884     }
21885     arg1 = ptr;
21886   }
21887   ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
21888   if (!SWIG_IsOK(ecode2)) {
21889     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Stem" "', argument " "2"" of type '" "bool""'");
21890   }
21891   arg2 = static_cast< bool >(val2);
21892   {
21893     try {
21894       {
21895         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21896         result = (Xapian::Stem *)new Xapian::Stem((std::string const &)*arg1,arg2);
21897         SWIG_PYTHON_THREAD_END_ALLOW;
21898       }
21899     } catch (...) {
21900       Xapian::SetPythonException();
21901       SWIG_fail;
21902     }
21903   }
21904   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Stem, SWIG_POINTER_NEW |  0 );
21905   if (SWIG_IsNewObj(res1)) delete arg1;
21906   return resultobj;
21907 fail:
21908   if (SWIG_IsNewObj(res1)) delete arg1;
21909   return NULL;
21910 }
21911 
21912 
_wrap_new_Stem__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)21913 SWIGINTERN PyObject *_wrap_new_Stem__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21914   PyObject *resultobj = 0;
21915   Xapian::StemImplementation *arg1 = (Xapian::StemImplementation *) 0 ;
21916   void *argp1 = 0 ;
21917   int res1 = 0 ;
21918   Xapian::Stem *result = 0 ;
21919 
21920   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
21921   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__StemImplementation, 0 |  0 );
21922   if (!SWIG_IsOK(res1)) {
21923     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Stem" "', argument " "1"" of type '" "Xapian::StemImplementation *""'");
21924   }
21925   arg1 = reinterpret_cast< Xapian::StemImplementation * >(argp1);
21926   {
21927     try {
21928       {
21929         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21930         result = (Xapian::Stem *)new Xapian::Stem(arg1);
21931         SWIG_PYTHON_THREAD_END_ALLOW;
21932       }
21933     } catch (...) {
21934       Xapian::SetPythonException();
21935       SWIG_fail;
21936     }
21937   }
21938   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Stem, SWIG_POINTER_NEW |  0 );
21939   return resultobj;
21940 fail:
21941   return NULL;
21942 }
21943 
21944 
_wrap_new_Stem(PyObject * self,PyObject * args)21945 SWIGINTERN PyObject *_wrap_new_Stem(PyObject *self, PyObject *args) {
21946   Py_ssize_t argc;
21947   PyObject *argv[3] = {
21948     0
21949   };
21950 
21951   if (!(argc = SWIG_Python_UnpackTuple(args,"new_Stem",0,2,argv))) SWIG_fail;
21952   --argc;
21953   if (argc == 1) {
21954     int _v = 0;
21955     {
21956       void *vptr = 0;
21957       int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Xapian__StemImplementation, 0);
21958       _v = SWIG_CheckState(res);
21959     }
21960     if (!_v) goto check_1;
21961     return _wrap_new_Stem__SWIG_2(self, argc, argv);
21962   }
21963 check_1:
21964 
21965   if (argc == 1) {
21966     return _wrap_new_Stem__SWIG_0(self, argc, argv);
21967   }
21968   if (argc == 2) {
21969     return _wrap_new_Stem__SWIG_1(self, argc, argv);
21970   }
21971 
21972 fail:
21973   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Stem'.\n"
21974     "  Possible C/C++ prototypes are:\n"
21975     "    Xapian::Stem::Stem(std::string const &)\n"
21976     "    Xapian::Stem::Stem(std::string const &,bool)\n"
21977     "    Xapian::Stem::Stem(Xapian::StemImplementation *)\n");
21978   return 0;
21979 }
21980 
21981 
_wrap_delete_Stem(PyObject * SWIGUNUSEDPARM (self),PyObject * args)21982 SWIGINTERN PyObject *_wrap_delete_Stem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21983   PyObject *resultobj = 0;
21984   Xapian::Stem *arg1 = (Xapian::Stem *) 0 ;
21985   void *argp1 = 0 ;
21986   int res1 = 0 ;
21987   PyObject *swig_obj[1] ;
21988 
21989   if (!args) SWIG_fail;
21990   swig_obj[0] = args;
21991   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Stem, SWIG_POINTER_DISOWN |  0 );
21992   if (!SWIG_IsOK(res1)) {
21993     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Stem" "', argument " "1"" of type '" "Xapian::Stem *""'");
21994   }
21995   arg1 = reinterpret_cast< Xapian::Stem * >(argp1);
21996   {
21997     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
21998     delete arg1;
21999     SWIG_PYTHON_THREAD_END_ALLOW;
22000   }
22001   resultobj = SWIG_Py_Void();
22002   return resultobj;
22003 fail:
22004   return NULL;
22005 }
22006 
22007 
_wrap_Stem___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22008 SWIGINTERN PyObject *_wrap_Stem___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22009   PyObject *resultobj = 0;
22010   Xapian::Stem *arg1 = (Xapian::Stem *) 0 ;
22011   std::string *arg2 = 0 ;
22012   void *argp1 = 0 ;
22013   int res1 = 0 ;
22014   int res2 = SWIG_OLDOBJ ;
22015   PyObject *swig_obj[2] ;
22016   std::string result;
22017 
22018   if (!SWIG_Python_UnpackTuple(args,"Stem___call__",2,2,swig_obj)) SWIG_fail;
22019   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Stem, 0 |  0 );
22020   if (!SWIG_IsOK(res1)) {
22021     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stem___call__" "', argument " "1"" of type '" "Xapian::Stem const *""'");
22022   }
22023   arg1 = reinterpret_cast< Xapian::Stem * >(argp1);
22024   {
22025     std::string *ptr = (std::string *)0;
22026     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
22027     if (!SWIG_IsOK(res2)) {
22028       if (res2 == INT_MIN) SWIG_fail;
22029       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Stem___call__" "', argument " "2"" of type '" "std::string const &""'");
22030     }
22031     if (!ptr) {
22032       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Stem___call__" "', argument " "2"" of type '" "std::string const &""'");
22033     }
22034     arg2 = ptr;
22035   }
22036   {
22037     try {
22038       {
22039         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22040         result = ((Xapian::Stem const *)arg1)->operator ()((std::string const &)*arg2);
22041         SWIG_PYTHON_THREAD_END_ALLOW;
22042       }
22043     } catch (...) {
22044       Xapian::SetPythonException();
22045       SWIG_fail;
22046     }
22047   }
22048 
22049   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
22050 
22051   if (SWIG_IsNewObj(res2)) delete arg2;
22052   return resultobj;
22053 fail:
22054   if (SWIG_IsNewObj(res2)) delete arg2;
22055   return NULL;
22056 }
22057 
22058 
_wrap_Stem_is_none(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22059 SWIGINTERN PyObject *_wrap_Stem_is_none(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22060   PyObject *resultobj = 0;
22061   Xapian::Stem *arg1 = (Xapian::Stem *) 0 ;
22062   void *argp1 = 0 ;
22063   int res1 = 0 ;
22064   PyObject *swig_obj[1] ;
22065   bool result;
22066 
22067   if (!args) SWIG_fail;
22068   swig_obj[0] = args;
22069   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Stem, 0 |  0 );
22070   if (!SWIG_IsOK(res1)) {
22071     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stem_is_none" "', argument " "1"" of type '" "Xapian::Stem const *""'");
22072   }
22073   arg1 = reinterpret_cast< Xapian::Stem * >(argp1);
22074   {
22075     try {
22076       {
22077         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22078         result = (bool)((Xapian::Stem const *)arg1)->is_none();
22079         SWIG_PYTHON_THREAD_END_ALLOW;
22080       }
22081     } catch (...) {
22082       Xapian::SetPythonException();
22083       SWIG_fail;
22084     }
22085   }
22086   resultobj = SWIG_From_bool(static_cast< bool >(result));
22087   return resultobj;
22088 fail:
22089   return NULL;
22090 }
22091 
22092 
_wrap_Stem___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22093 SWIGINTERN PyObject *_wrap_Stem___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22094   PyObject *resultobj = 0;
22095   Xapian::Stem *arg1 = (Xapian::Stem *) 0 ;
22096   void *argp1 = 0 ;
22097   int res1 = 0 ;
22098   PyObject *swig_obj[1] ;
22099   std::string result;
22100 
22101   if (!args) SWIG_fail;
22102   swig_obj[0] = args;
22103   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Stem, 0 |  0 );
22104   if (!SWIG_IsOK(res1)) {
22105     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stem___str__" "', argument " "1"" of type '" "Xapian::Stem const *""'");
22106   }
22107   arg1 = reinterpret_cast< Xapian::Stem * >(argp1);
22108   {
22109     try {
22110       {
22111         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22112         result = ((Xapian::Stem const *)arg1)->get_description();
22113         SWIG_PYTHON_THREAD_END_ALLOW;
22114       }
22115     } catch (...) {
22116       Xapian::SetPythonException();
22117       SWIG_fail;
22118     }
22119   }
22120   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
22121   return resultobj;
22122 fail:
22123   return NULL;
22124 }
22125 
22126 
_wrap_Stem_get_available_languages(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22127 SWIGINTERN PyObject *_wrap_Stem_get_available_languages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22128   PyObject *resultobj = 0;
22129   std::string result;
22130 
22131   if (!SWIG_Python_UnpackTuple(args,"Stem_get_available_languages",0,0,0)) SWIG_fail;
22132   {
22133     try {
22134       {
22135         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22136         result = Xapian::Stem::get_available_languages();
22137         SWIG_PYTHON_THREAD_END_ALLOW;
22138       }
22139     } catch (...) {
22140       Xapian::SetPythonException();
22141       SWIG_fail;
22142     }
22143   }
22144 
22145   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
22146 
22147   return resultobj;
22148 fail:
22149   return NULL;
22150 }
22151 
22152 
Stem_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22153 SWIGINTERN PyObject *Stem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22154   PyObject *obj;
22155   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
22156   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Stem, SWIG_NewClientData(obj));
22157   return SWIG_Py_Void();
22158 }
22159 
Stem_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22160 SWIGINTERN PyObject *Stem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22161   return SWIG_Python_InitShadowInstance(args);
22162 }
22163 
_wrap_new_TermGenerator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22164 SWIGINTERN PyObject *_wrap_new_TermGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22165   PyObject *resultobj = 0;
22166   Xapian::TermGenerator *result = 0 ;
22167 
22168   if (!SWIG_Python_UnpackTuple(args,"new_TermGenerator",0,0,0)) SWIG_fail;
22169   {
22170     try {
22171       {
22172         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22173         result = (Xapian::TermGenerator *)new Xapian::TermGenerator();
22174         SWIG_PYTHON_THREAD_END_ALLOW;
22175       }
22176     } catch (...) {
22177       Xapian::SetPythonException();
22178       SWIG_fail;
22179     }
22180   }
22181   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__TermGenerator, SWIG_POINTER_NEW |  0 );
22182   return resultobj;
22183 fail:
22184   return NULL;
22185 }
22186 
22187 
_wrap_delete_TermGenerator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22188 SWIGINTERN PyObject *_wrap_delete_TermGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22189   PyObject *resultobj = 0;
22190   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22191   void *argp1 = 0 ;
22192   int res1 = 0 ;
22193   PyObject *swig_obj[1] ;
22194 
22195   if (!args) SWIG_fail;
22196   swig_obj[0] = args;
22197   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, SWIG_POINTER_DISOWN |  0 );
22198   if (!SWIG_IsOK(res1)) {
22199     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TermGenerator" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22200   }
22201   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22202   {
22203     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22204     delete arg1;
22205     SWIG_PYTHON_THREAD_END_ALLOW;
22206   }
22207   resultobj = SWIG_Py_Void();
22208   return resultobj;
22209 fail:
22210   return NULL;
22211 }
22212 
22213 
_wrap_TermGenerator_set_stemmer(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22214 SWIGINTERN PyObject *_wrap_TermGenerator_set_stemmer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22215   PyObject *resultobj = 0;
22216   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22217   Xapian::Stem *arg2 = 0 ;
22218   void *argp1 = 0 ;
22219   int res1 = 0 ;
22220   void *argp2 = 0 ;
22221   int res2 = 0 ;
22222   PyObject *swig_obj[2] ;
22223 
22224   if (!SWIG_Python_UnpackTuple(args,"TermGenerator_set_stemmer",2,2,swig_obj)) SWIG_fail;
22225   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22226   if (!SWIG_IsOK(res1)) {
22227     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_stemmer" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22228   }
22229   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22230   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Stem,  0  | 0);
22231   if (!SWIG_IsOK(res2)) {
22232     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_set_stemmer" "', argument " "2"" of type '" "Xapian::Stem const &""'");
22233   }
22234   if (!argp2) {
22235     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_set_stemmer" "', argument " "2"" of type '" "Xapian::Stem const &""'");
22236   }
22237   arg2 = reinterpret_cast< Xapian::Stem * >(argp2);
22238   {
22239     try {
22240       {
22241         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22242         (arg1)->set_stemmer((Xapian::Stem const &)*arg2);
22243         SWIG_PYTHON_THREAD_END_ALLOW;
22244       }
22245     } catch (...) {
22246       Xapian::SetPythonException();
22247       SWIG_fail;
22248     }
22249   }
22250   resultobj = SWIG_Py_Void();
22251   return resultobj;
22252 fail:
22253   return NULL;
22254 }
22255 
22256 
_wrap_TermGenerator_set_stopper__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22257 SWIGINTERN PyObject *_wrap_TermGenerator_set_stopper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22258   PyObject *resultobj = 0;
22259   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22260   Xapian::Stopper *arg2 = (Xapian::Stopper *) 0 ;
22261   void *argp1 = 0 ;
22262   int res1 = 0 ;
22263   void *argp2 = 0 ;
22264   int res2 = 0 ;
22265 
22266   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
22267   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22268   if (!SWIG_IsOK(res1)) {
22269     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_stopper" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22270   }
22271   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22272   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__Stopper, 0 |  0 );
22273   if (!SWIG_IsOK(res2)) {
22274     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_set_stopper" "', argument " "2"" of type '" "Xapian::Stopper const *""'");
22275   }
22276   arg2 = reinterpret_cast< Xapian::Stopper * >(argp2);
22277   {
22278     try {
22279       {
22280         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22281         (arg1)->set_stopper((Xapian::Stopper const *)arg2);
22282         SWIG_PYTHON_THREAD_END_ALLOW;
22283       }
22284     } catch (...) {
22285       Xapian::SetPythonException();
22286       SWIG_fail;
22287     }
22288   }
22289   resultobj = SWIG_Py_Void();
22290   return resultobj;
22291 fail:
22292   return NULL;
22293 }
22294 
22295 
_wrap_TermGenerator_set_stopper__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22296 SWIGINTERN PyObject *_wrap_TermGenerator_set_stopper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22297   PyObject *resultobj = 0;
22298   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22299   void *argp1 = 0 ;
22300   int res1 = 0 ;
22301 
22302   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
22303   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22304   if (!SWIG_IsOK(res1)) {
22305     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_stopper" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22306   }
22307   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22308   {
22309     try {
22310       {
22311         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22312         (arg1)->set_stopper();
22313         SWIG_PYTHON_THREAD_END_ALLOW;
22314       }
22315     } catch (...) {
22316       Xapian::SetPythonException();
22317       SWIG_fail;
22318     }
22319   }
22320   resultobj = SWIG_Py_Void();
22321   return resultobj;
22322 fail:
22323   return NULL;
22324 }
22325 
22326 
_wrap_TermGenerator_set_stopper(PyObject * self,PyObject * args)22327 SWIGINTERN PyObject *_wrap_TermGenerator_set_stopper(PyObject *self, PyObject *args) {
22328   Py_ssize_t argc;
22329   PyObject *argv[3] = {
22330     0
22331   };
22332 
22333   if (!(argc = SWIG_Python_UnpackTuple(args,"TermGenerator_set_stopper",0,2,argv))) SWIG_fail;
22334   --argc;
22335   if (argc == 1) {
22336     return _wrap_TermGenerator_set_stopper__SWIG_1(self, argc, argv);
22337   }
22338   if (argc == 2) {
22339     return _wrap_TermGenerator_set_stopper__SWIG_0(self, argc, argv);
22340   }
22341 
22342 fail:
22343   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'TermGenerator_set_stopper'.\n"
22344     "  Possible C/C++ prototypes are:\n"
22345     "    Xapian::TermGenerator::set_stopper(Xapian::Stopper const *)\n"
22346     "    Xapian::TermGenerator::set_stopper()\n");
22347   return 0;
22348 }
22349 
22350 
_wrap_TermGenerator_set_document(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22351 SWIGINTERN PyObject *_wrap_TermGenerator_set_document(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22352   PyObject *resultobj = 0;
22353   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22354   Xapian::Document *arg2 = 0 ;
22355   void *argp1 = 0 ;
22356   int res1 = 0 ;
22357   void *argp2 = 0 ;
22358   int res2 = 0 ;
22359   PyObject *swig_obj[2] ;
22360 
22361   if (!SWIG_Python_UnpackTuple(args,"TermGenerator_set_document",2,2,swig_obj)) SWIG_fail;
22362   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22363   if (!SWIG_IsOK(res1)) {
22364     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_document" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22365   }
22366   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22367   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Document,  0  | 0);
22368   if (!SWIG_IsOK(res2)) {
22369     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_set_document" "', argument " "2"" of type '" "Xapian::Document const &""'");
22370   }
22371   if (!argp2) {
22372     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_set_document" "', argument " "2"" of type '" "Xapian::Document const &""'");
22373   }
22374   arg2 = reinterpret_cast< Xapian::Document * >(argp2);
22375   {
22376     try {
22377       {
22378         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22379         (arg1)->set_document((Xapian::Document const &)*arg2);
22380         SWIG_PYTHON_THREAD_END_ALLOW;
22381       }
22382     } catch (...) {
22383       Xapian::SetPythonException();
22384       SWIG_fail;
22385     }
22386   }
22387   resultobj = SWIG_Py_Void();
22388   return resultobj;
22389 fail:
22390   return NULL;
22391 }
22392 
22393 
_wrap_TermGenerator_get_document(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22394 SWIGINTERN PyObject *_wrap_TermGenerator_get_document(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22395   PyObject *resultobj = 0;
22396   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22397   void *argp1 = 0 ;
22398   int res1 = 0 ;
22399   PyObject *swig_obj[1] ;
22400   Xapian::Document *result = 0 ;
22401 
22402   if (!args) SWIG_fail;
22403   swig_obj[0] = args;
22404   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22405   if (!SWIG_IsOK(res1)) {
22406     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_get_document" "', argument " "1"" of type '" "Xapian::TermGenerator const *""'");
22407   }
22408   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22409   {
22410     try {
22411       {
22412         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22413         result = (Xapian::Document *) &((Xapian::TermGenerator const *)arg1)->get_document();
22414         SWIG_PYTHON_THREAD_END_ALLOW;
22415       }
22416     } catch (...) {
22417       Xapian::SetPythonException();
22418       SWIG_fail;
22419     }
22420   }
22421   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Document, 0 |  0 );
22422   return resultobj;
22423 fail:
22424   return NULL;
22425 }
22426 
22427 
_wrap_TermGenerator_set_database(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22428 SWIGINTERN PyObject *_wrap_TermGenerator_set_database(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22429   PyObject *resultobj = 0;
22430   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22431   Xapian::WritableDatabase *arg2 = 0 ;
22432   void *argp1 = 0 ;
22433   int res1 = 0 ;
22434   void *argp2 = 0 ;
22435   int res2 = 0 ;
22436   PyObject *swig_obj[2] ;
22437 
22438   if (!SWIG_Python_UnpackTuple(args,"TermGenerator_set_database",2,2,swig_obj)) SWIG_fail;
22439   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22440   if (!SWIG_IsOK(res1)) {
22441     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_database" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22442   }
22443   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22444   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__WritableDatabase,  0  | 0);
22445   if (!SWIG_IsOK(res2)) {
22446     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_set_database" "', argument " "2"" of type '" "Xapian::WritableDatabase const &""'");
22447   }
22448   if (!argp2) {
22449     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_set_database" "', argument " "2"" of type '" "Xapian::WritableDatabase const &""'");
22450   }
22451   arg2 = reinterpret_cast< Xapian::WritableDatabase * >(argp2);
22452   {
22453     try {
22454       {
22455         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22456         (arg1)->set_database((Xapian::WritableDatabase const &)*arg2);
22457         SWIG_PYTHON_THREAD_END_ALLOW;
22458       }
22459     } catch (...) {
22460       Xapian::SetPythonException();
22461       SWIG_fail;
22462     }
22463   }
22464   resultobj = SWIG_Py_Void();
22465   return resultobj;
22466 fail:
22467   return NULL;
22468 }
22469 
22470 
_wrap_TermGenerator_set_flags__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22471 SWIGINTERN PyObject *_wrap_TermGenerator_set_flags__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22472   PyObject *resultobj = 0;
22473   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22474   Xapian::TermGenerator::flags arg2 ;
22475   Xapian::TermGenerator::flags arg3 ;
22476   void *argp1 = 0 ;
22477   int res1 = 0 ;
22478   int val2 ;
22479   int ecode2 = 0 ;
22480   int val3 ;
22481   int ecode3 = 0 ;
22482   Xapian::TermGenerator::flags result;
22483 
22484   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
22485   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22486   if (!SWIG_IsOK(res1)) {
22487     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_flags" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22488   }
22489   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22490   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
22491   if (!SWIG_IsOK(ecode2)) {
22492     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_set_flags" "', argument " "2"" of type '" "Xapian::TermGenerator::flags""'");
22493   }
22494   arg2 = static_cast< Xapian::TermGenerator::flags >(val2);
22495   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
22496   if (!SWIG_IsOK(ecode3)) {
22497     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TermGenerator_set_flags" "', argument " "3"" of type '" "Xapian::TermGenerator::flags""'");
22498   }
22499   arg3 = static_cast< Xapian::TermGenerator::flags >(val3);
22500   {
22501     try {
22502       {
22503         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22504         result = (Xapian::TermGenerator::flags)(arg1)->set_flags(arg2,arg3);
22505         SWIG_PYTHON_THREAD_END_ALLOW;
22506       }
22507     } catch (...) {
22508       Xapian::SetPythonException();
22509       SWIG_fail;
22510     }
22511   }
22512   resultobj = SWIG_From_int(static_cast< int >(result));
22513   return resultobj;
22514 fail:
22515   return NULL;
22516 }
22517 
22518 
_wrap_TermGenerator_set_flags__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22519 SWIGINTERN PyObject *_wrap_TermGenerator_set_flags__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22520   PyObject *resultobj = 0;
22521   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22522   Xapian::TermGenerator::flags arg2 ;
22523   void *argp1 = 0 ;
22524   int res1 = 0 ;
22525   int val2 ;
22526   int ecode2 = 0 ;
22527   Xapian::TermGenerator::flags result;
22528 
22529   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
22530   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22531   if (!SWIG_IsOK(res1)) {
22532     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_flags" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22533   }
22534   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22535   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
22536   if (!SWIG_IsOK(ecode2)) {
22537     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_set_flags" "', argument " "2"" of type '" "Xapian::TermGenerator::flags""'");
22538   }
22539   arg2 = static_cast< Xapian::TermGenerator::flags >(val2);
22540   {
22541     try {
22542       {
22543         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22544         result = (Xapian::TermGenerator::flags)(arg1)->set_flags(arg2);
22545         SWIG_PYTHON_THREAD_END_ALLOW;
22546       }
22547     } catch (...) {
22548       Xapian::SetPythonException();
22549       SWIG_fail;
22550     }
22551   }
22552   resultobj = SWIG_From_int(static_cast< int >(result));
22553   return resultobj;
22554 fail:
22555   return NULL;
22556 }
22557 
22558 
_wrap_TermGenerator_set_flags(PyObject * self,PyObject * args)22559 SWIGINTERN PyObject *_wrap_TermGenerator_set_flags(PyObject *self, PyObject *args) {
22560   Py_ssize_t argc;
22561   PyObject *argv[4] = {
22562     0
22563   };
22564 
22565   if (!(argc = SWIG_Python_UnpackTuple(args,"TermGenerator_set_flags",0,3,argv))) SWIG_fail;
22566   --argc;
22567   if (argc == 2) {
22568     return _wrap_TermGenerator_set_flags__SWIG_1(self, argc, argv);
22569   }
22570   if (argc == 3) {
22571     return _wrap_TermGenerator_set_flags__SWIG_0(self, argc, argv);
22572   }
22573 
22574 fail:
22575   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'TermGenerator_set_flags'.\n"
22576     "  Possible C/C++ prototypes are:\n"
22577     "    Xapian::TermGenerator::set_flags(Xapian::TermGenerator::flags,Xapian::TermGenerator::flags)\n"
22578     "    Xapian::TermGenerator::set_flags(Xapian::TermGenerator::flags)\n");
22579   return 0;
22580 }
22581 
22582 
_wrap_TermGenerator_set_stemming_strategy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22583 SWIGINTERN PyObject *_wrap_TermGenerator_set_stemming_strategy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22584   PyObject *resultobj = 0;
22585   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22586   Xapian::TermGenerator::stem_strategy arg2 ;
22587   void *argp1 = 0 ;
22588   int res1 = 0 ;
22589   int val2 ;
22590   int ecode2 = 0 ;
22591   PyObject *swig_obj[2] ;
22592 
22593   if (!SWIG_Python_UnpackTuple(args,"TermGenerator_set_stemming_strategy",2,2,swig_obj)) SWIG_fail;
22594   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22595   if (!SWIG_IsOK(res1)) {
22596     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_stemming_strategy" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22597   }
22598   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22599   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
22600   if (!SWIG_IsOK(ecode2)) {
22601     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_set_stemming_strategy" "', argument " "2"" of type '" "Xapian::TermGenerator::stem_strategy""'");
22602   }
22603   arg2 = static_cast< Xapian::TermGenerator::stem_strategy >(val2);
22604   {
22605     try {
22606       {
22607         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22608         (arg1)->set_stemming_strategy(arg2);
22609         SWIG_PYTHON_THREAD_END_ALLOW;
22610       }
22611     } catch (...) {
22612       Xapian::SetPythonException();
22613       SWIG_fail;
22614     }
22615   }
22616   resultobj = SWIG_Py_Void();
22617   return resultobj;
22618 fail:
22619   return NULL;
22620 }
22621 
22622 
_wrap_TermGenerator_set_stopper_strategy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22623 SWIGINTERN PyObject *_wrap_TermGenerator_set_stopper_strategy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22624   PyObject *resultobj = 0;
22625   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22626   Xapian::TermGenerator::stop_strategy arg2 ;
22627   void *argp1 = 0 ;
22628   int res1 = 0 ;
22629   int val2 ;
22630   int ecode2 = 0 ;
22631   PyObject *swig_obj[2] ;
22632 
22633   if (!SWIG_Python_UnpackTuple(args,"TermGenerator_set_stopper_strategy",2,2,swig_obj)) SWIG_fail;
22634   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22635   if (!SWIG_IsOK(res1)) {
22636     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_stopper_strategy" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22637   }
22638   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22639   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
22640   if (!SWIG_IsOK(ecode2)) {
22641     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_set_stopper_strategy" "', argument " "2"" of type '" "Xapian::TermGenerator::stop_strategy""'");
22642   }
22643   arg2 = static_cast< Xapian::TermGenerator::stop_strategy >(val2);
22644   {
22645     try {
22646       {
22647         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22648         (arg1)->set_stopper_strategy(arg2);
22649         SWIG_PYTHON_THREAD_END_ALLOW;
22650       }
22651     } catch (...) {
22652       Xapian::SetPythonException();
22653       SWIG_fail;
22654     }
22655   }
22656   resultobj = SWIG_Py_Void();
22657   return resultobj;
22658 fail:
22659   return NULL;
22660 }
22661 
22662 
_wrap_TermGenerator_set_max_word_length(PyObject * SWIGUNUSEDPARM (self),PyObject * args)22663 SWIGINTERN PyObject *_wrap_TermGenerator_set_max_word_length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22664   PyObject *resultobj = 0;
22665   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22666   unsigned int arg2 ;
22667   void *argp1 = 0 ;
22668   int res1 = 0 ;
22669   unsigned int val2 ;
22670   int ecode2 = 0 ;
22671   PyObject *swig_obj[2] ;
22672 
22673   if (!SWIG_Python_UnpackTuple(args,"TermGenerator_set_max_word_length",2,2,swig_obj)) SWIG_fail;
22674   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22675   if (!SWIG_IsOK(res1)) {
22676     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_max_word_length" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22677   }
22678   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22679   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
22680   if (!SWIG_IsOK(ecode2)) {
22681     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_set_max_word_length" "', argument " "2"" of type '" "unsigned int""'");
22682   }
22683   arg2 = static_cast< unsigned int >(val2);
22684   {
22685     try {
22686       {
22687         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22688         (arg1)->set_max_word_length(arg2);
22689         SWIG_PYTHON_THREAD_END_ALLOW;
22690       }
22691     } catch (...) {
22692       Xapian::SetPythonException();
22693       SWIG_fail;
22694     }
22695   }
22696   resultobj = SWIG_Py_Void();
22697   return resultobj;
22698 fail:
22699   return NULL;
22700 }
22701 
22702 
_wrap_TermGenerator_index_text__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22703 SWIGINTERN PyObject *_wrap_TermGenerator_index_text__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22704   PyObject *resultobj = 0;
22705   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22706   std::string *arg2 = 0 ;
22707   Xapian::termcount arg3 ;
22708   std::string *arg4 = 0 ;
22709   void *argp1 = 0 ;
22710   int res1 = 0 ;
22711   int res2 = SWIG_OLDOBJ ;
22712   unsigned int val3 ;
22713   int ecode3 = 0 ;
22714   int res4 = SWIG_OLDOBJ ;
22715 
22716   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
22717   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22718   if (!SWIG_IsOK(res1)) {
22719     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_index_text" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22720   }
22721   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22722   {
22723     std::string *ptr = (std::string *)0;
22724     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
22725     if (!SWIG_IsOK(res2)) {
22726       if (res2 == INT_MIN) SWIG_fail;
22727       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'");
22728     }
22729     if (!ptr) {
22730       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'");
22731     }
22732     arg2 = ptr;
22733   }
22734   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
22735   if (!SWIG_IsOK(ecode3)) {
22736     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TermGenerator_index_text" "', argument " "3"" of type '" "Xapian::termcount""'");
22737   }
22738   arg3 = static_cast< Xapian::termcount >(val3);
22739   {
22740     std::string *ptr = (std::string *)0;
22741     res4 = XapianSWIG_anystring_as_ptr(swig_obj[3], &ptr);
22742     if (!SWIG_IsOK(res4)) {
22743       if (res4 == INT_MIN) SWIG_fail;
22744       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TermGenerator_index_text" "', argument " "4"" of type '" "std::string const &""'");
22745     }
22746     if (!ptr) {
22747       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text" "', argument " "4"" of type '" "std::string const &""'");
22748     }
22749     arg4 = ptr;
22750   }
22751   {
22752     try {
22753       {
22754         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22755         (arg1)->index_text((std::string const &)*arg2,arg3,(std::string const &)*arg4);
22756         SWIG_PYTHON_THREAD_END_ALLOW;
22757       }
22758     } catch (...) {
22759       Xapian::SetPythonException();
22760       SWIG_fail;
22761     }
22762   }
22763   resultobj = SWIG_Py_Void();
22764   if (SWIG_IsNewObj(res2)) delete arg2;
22765   if (SWIG_IsNewObj(res4)) delete arg4;
22766   return resultobj;
22767 fail:
22768   if (SWIG_IsNewObj(res2)) delete arg2;
22769   if (SWIG_IsNewObj(res4)) delete arg4;
22770   return NULL;
22771 }
22772 
22773 
_wrap_TermGenerator_index_text__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22774 SWIGINTERN PyObject *_wrap_TermGenerator_index_text__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22775   PyObject *resultobj = 0;
22776   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22777   std::string *arg2 = 0 ;
22778   Xapian::termcount arg3 ;
22779   void *argp1 = 0 ;
22780   int res1 = 0 ;
22781   int res2 = SWIG_OLDOBJ ;
22782   unsigned int val3 ;
22783   int ecode3 = 0 ;
22784 
22785   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
22786   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22787   if (!SWIG_IsOK(res1)) {
22788     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_index_text" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22789   }
22790   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22791   {
22792     std::string *ptr = (std::string *)0;
22793     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
22794     if (!SWIG_IsOK(res2)) {
22795       if (res2 == INT_MIN) SWIG_fail;
22796       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'");
22797     }
22798     if (!ptr) {
22799       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'");
22800     }
22801     arg2 = ptr;
22802   }
22803   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
22804   if (!SWIG_IsOK(ecode3)) {
22805     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TermGenerator_index_text" "', argument " "3"" of type '" "Xapian::termcount""'");
22806   }
22807   arg3 = static_cast< Xapian::termcount >(val3);
22808   {
22809     try {
22810       {
22811         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22812         (arg1)->index_text((std::string const &)*arg2,arg3);
22813         SWIG_PYTHON_THREAD_END_ALLOW;
22814       }
22815     } catch (...) {
22816       Xapian::SetPythonException();
22817       SWIG_fail;
22818     }
22819   }
22820   resultobj = SWIG_Py_Void();
22821   if (SWIG_IsNewObj(res2)) delete arg2;
22822   return resultobj;
22823 fail:
22824   if (SWIG_IsNewObj(res2)) delete arg2;
22825   return NULL;
22826 }
22827 
22828 
_wrap_TermGenerator_index_text__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22829 SWIGINTERN PyObject *_wrap_TermGenerator_index_text__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22830   PyObject *resultobj = 0;
22831   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22832   std::string *arg2 = 0 ;
22833   void *argp1 = 0 ;
22834   int res1 = 0 ;
22835   int res2 = SWIG_OLDOBJ ;
22836 
22837   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
22838   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22839   if (!SWIG_IsOK(res1)) {
22840     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_index_text" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22841   }
22842   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22843   {
22844     std::string *ptr = (std::string *)0;
22845     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
22846     if (!SWIG_IsOK(res2)) {
22847       if (res2 == INT_MIN) SWIG_fail;
22848       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'");
22849     }
22850     if (!ptr) {
22851       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text" "', argument " "2"" of type '" "std::string const &""'");
22852     }
22853     arg2 = ptr;
22854   }
22855   {
22856     try {
22857       {
22858         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22859         (arg1)->index_text((std::string const &)*arg2);
22860         SWIG_PYTHON_THREAD_END_ALLOW;
22861       }
22862     } catch (...) {
22863       Xapian::SetPythonException();
22864       SWIG_fail;
22865     }
22866   }
22867   resultobj = SWIG_Py_Void();
22868   if (SWIG_IsNewObj(res2)) delete arg2;
22869   return resultobj;
22870 fail:
22871   if (SWIG_IsNewObj(res2)) delete arg2;
22872   return NULL;
22873 }
22874 
22875 
_wrap_TermGenerator_index_text(PyObject * self,PyObject * args)22876 SWIGINTERN PyObject *_wrap_TermGenerator_index_text(PyObject *self, PyObject *args) {
22877   Py_ssize_t argc;
22878   PyObject *argv[5] = {
22879     0
22880   };
22881 
22882   if (!(argc = SWIG_Python_UnpackTuple(args,"TermGenerator_index_text",0,4,argv))) SWIG_fail;
22883   --argc;
22884   if (argc == 2) {
22885     return _wrap_TermGenerator_index_text__SWIG_2(self, argc, argv);
22886   }
22887   if (argc == 3) {
22888     return _wrap_TermGenerator_index_text__SWIG_1(self, argc, argv);
22889   }
22890   if (argc == 4) {
22891     return _wrap_TermGenerator_index_text__SWIG_0(self, argc, argv);
22892   }
22893 
22894 fail:
22895   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'TermGenerator_index_text'.\n"
22896     "  Possible C/C++ prototypes are:\n"
22897     "    Xapian::TermGenerator::index_text(std::string const &,Xapian::termcount,std::string const &)\n"
22898     "    Xapian::TermGenerator::index_text(std::string const &,Xapian::termcount)\n"
22899     "    Xapian::TermGenerator::index_text(std::string const &)\n");
22900   return 0;
22901 }
22902 
22903 
_wrap_TermGenerator_index_text_without_positions__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22904 SWIGINTERN PyObject *_wrap_TermGenerator_index_text_without_positions__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22905   PyObject *resultobj = 0;
22906   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22907   std::string *arg2 = 0 ;
22908   Xapian::termcount arg3 ;
22909   std::string *arg4 = 0 ;
22910   void *argp1 = 0 ;
22911   int res1 = 0 ;
22912   int res2 = SWIG_OLDOBJ ;
22913   unsigned int val3 ;
22914   int ecode3 = 0 ;
22915   int res4 = SWIG_OLDOBJ ;
22916 
22917   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
22918   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22919   if (!SWIG_IsOK(res1)) {
22920     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_index_text_without_positions" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22921   }
22922   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22923   {
22924     std::string *ptr = (std::string *)0;
22925     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
22926     if (!SWIG_IsOK(res2)) {
22927       if (res2 == INT_MIN) SWIG_fail;
22928       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'");
22929     }
22930     if (!ptr) {
22931       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'");
22932     }
22933     arg2 = ptr;
22934   }
22935   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
22936   if (!SWIG_IsOK(ecode3)) {
22937     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TermGenerator_index_text_without_positions" "', argument " "3"" of type '" "Xapian::termcount""'");
22938   }
22939   arg3 = static_cast< Xapian::termcount >(val3);
22940   {
22941     std::string *ptr = (std::string *)0;
22942     res4 = XapianSWIG_anystring_as_ptr(swig_obj[3], &ptr);
22943     if (!SWIG_IsOK(res4)) {
22944       if (res4 == INT_MIN) SWIG_fail;
22945       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TermGenerator_index_text_without_positions" "', argument " "4"" of type '" "std::string const &""'");
22946     }
22947     if (!ptr) {
22948       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text_without_positions" "', argument " "4"" of type '" "std::string const &""'");
22949     }
22950     arg4 = ptr;
22951   }
22952   {
22953     try {
22954       {
22955         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
22956         (arg1)->index_text_without_positions((std::string const &)*arg2,arg3,(std::string const &)*arg4);
22957         SWIG_PYTHON_THREAD_END_ALLOW;
22958       }
22959     } catch (...) {
22960       Xapian::SetPythonException();
22961       SWIG_fail;
22962     }
22963   }
22964   resultobj = SWIG_Py_Void();
22965   if (SWIG_IsNewObj(res2)) delete arg2;
22966   if (SWIG_IsNewObj(res4)) delete arg4;
22967   return resultobj;
22968 fail:
22969   if (SWIG_IsNewObj(res2)) delete arg2;
22970   if (SWIG_IsNewObj(res4)) delete arg4;
22971   return NULL;
22972 }
22973 
22974 
_wrap_TermGenerator_index_text_without_positions__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)22975 SWIGINTERN PyObject *_wrap_TermGenerator_index_text_without_positions__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22976   PyObject *resultobj = 0;
22977   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
22978   std::string *arg2 = 0 ;
22979   Xapian::termcount arg3 ;
22980   void *argp1 = 0 ;
22981   int res1 = 0 ;
22982   int res2 = SWIG_OLDOBJ ;
22983   unsigned int val3 ;
22984   int ecode3 = 0 ;
22985 
22986   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
22987   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
22988   if (!SWIG_IsOK(res1)) {
22989     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_index_text_without_positions" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
22990   }
22991   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
22992   {
22993     std::string *ptr = (std::string *)0;
22994     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
22995     if (!SWIG_IsOK(res2)) {
22996       if (res2 == INT_MIN) SWIG_fail;
22997       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'");
22998     }
22999     if (!ptr) {
23000       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'");
23001     }
23002     arg2 = ptr;
23003   }
23004   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
23005   if (!SWIG_IsOK(ecode3)) {
23006     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TermGenerator_index_text_without_positions" "', argument " "3"" of type '" "Xapian::termcount""'");
23007   }
23008   arg3 = static_cast< Xapian::termcount >(val3);
23009   {
23010     try {
23011       {
23012         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23013         (arg1)->index_text_without_positions((std::string const &)*arg2,arg3);
23014         SWIG_PYTHON_THREAD_END_ALLOW;
23015       }
23016     } catch (...) {
23017       Xapian::SetPythonException();
23018       SWIG_fail;
23019     }
23020   }
23021   resultobj = SWIG_Py_Void();
23022   if (SWIG_IsNewObj(res2)) delete arg2;
23023   return resultobj;
23024 fail:
23025   if (SWIG_IsNewObj(res2)) delete arg2;
23026   return NULL;
23027 }
23028 
23029 
_wrap_TermGenerator_index_text_without_positions__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)23030 SWIGINTERN PyObject *_wrap_TermGenerator_index_text_without_positions__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23031   PyObject *resultobj = 0;
23032   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
23033   std::string *arg2 = 0 ;
23034   void *argp1 = 0 ;
23035   int res1 = 0 ;
23036   int res2 = SWIG_OLDOBJ ;
23037 
23038   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23039   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
23040   if (!SWIG_IsOK(res1)) {
23041     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_index_text_without_positions" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
23042   }
23043   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
23044   {
23045     std::string *ptr = (std::string *)0;
23046     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
23047     if (!SWIG_IsOK(res2)) {
23048       if (res2 == INT_MIN) SWIG_fail;
23049       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'");
23050     }
23051     if (!ptr) {
23052       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TermGenerator_index_text_without_positions" "', argument " "2"" of type '" "std::string const &""'");
23053     }
23054     arg2 = ptr;
23055   }
23056   {
23057     try {
23058       {
23059         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23060         (arg1)->index_text_without_positions((std::string const &)*arg2);
23061         SWIG_PYTHON_THREAD_END_ALLOW;
23062       }
23063     } catch (...) {
23064       Xapian::SetPythonException();
23065       SWIG_fail;
23066     }
23067   }
23068   resultobj = SWIG_Py_Void();
23069   if (SWIG_IsNewObj(res2)) delete arg2;
23070   return resultobj;
23071 fail:
23072   if (SWIG_IsNewObj(res2)) delete arg2;
23073   return NULL;
23074 }
23075 
23076 
_wrap_TermGenerator_index_text_without_positions(PyObject * self,PyObject * args)23077 SWIGINTERN PyObject *_wrap_TermGenerator_index_text_without_positions(PyObject *self, PyObject *args) {
23078   Py_ssize_t argc;
23079   PyObject *argv[5] = {
23080     0
23081   };
23082 
23083   if (!(argc = SWIG_Python_UnpackTuple(args,"TermGenerator_index_text_without_positions",0,4,argv))) SWIG_fail;
23084   --argc;
23085   if (argc == 2) {
23086     return _wrap_TermGenerator_index_text_without_positions__SWIG_2(self, argc, argv);
23087   }
23088   if (argc == 3) {
23089     return _wrap_TermGenerator_index_text_without_positions__SWIG_1(self, argc, argv);
23090   }
23091   if (argc == 4) {
23092     return _wrap_TermGenerator_index_text_without_positions__SWIG_0(self, argc, argv);
23093   }
23094 
23095 fail:
23096   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'TermGenerator_index_text_without_positions'.\n"
23097     "  Possible C/C++ prototypes are:\n"
23098     "    Xapian::TermGenerator::index_text_without_positions(std::string const &,Xapian::termcount,std::string const &)\n"
23099     "    Xapian::TermGenerator::index_text_without_positions(std::string const &,Xapian::termcount)\n"
23100     "    Xapian::TermGenerator::index_text_without_positions(std::string const &)\n");
23101   return 0;
23102 }
23103 
23104 
_wrap_TermGenerator_increase_termpos__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)23105 SWIGINTERN PyObject *_wrap_TermGenerator_increase_termpos__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23106   PyObject *resultobj = 0;
23107   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
23108   Xapian::termpos arg2 ;
23109   void *argp1 = 0 ;
23110   int res1 = 0 ;
23111   unsigned int val2 ;
23112   int ecode2 = 0 ;
23113 
23114   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23115   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
23116   if (!SWIG_IsOK(res1)) {
23117     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_increase_termpos" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
23118   }
23119   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
23120   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
23121   if (!SWIG_IsOK(ecode2)) {
23122     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_increase_termpos" "', argument " "2"" of type '" "Xapian::termpos""'");
23123   }
23124   arg2 = static_cast< Xapian::termpos >(val2);
23125   {
23126     try {
23127       {
23128         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23129         (arg1)->increase_termpos(arg2);
23130         SWIG_PYTHON_THREAD_END_ALLOW;
23131       }
23132     } catch (...) {
23133       Xapian::SetPythonException();
23134       SWIG_fail;
23135     }
23136   }
23137   resultobj = SWIG_Py_Void();
23138   return resultobj;
23139 fail:
23140   return NULL;
23141 }
23142 
23143 
_wrap_TermGenerator_increase_termpos__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)23144 SWIGINTERN PyObject *_wrap_TermGenerator_increase_termpos__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23145   PyObject *resultobj = 0;
23146   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
23147   void *argp1 = 0 ;
23148   int res1 = 0 ;
23149 
23150   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
23151   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
23152   if (!SWIG_IsOK(res1)) {
23153     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_increase_termpos" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
23154   }
23155   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
23156   {
23157     try {
23158       {
23159         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23160         (arg1)->increase_termpos();
23161         SWIG_PYTHON_THREAD_END_ALLOW;
23162       }
23163     } catch (...) {
23164       Xapian::SetPythonException();
23165       SWIG_fail;
23166     }
23167   }
23168   resultobj = SWIG_Py_Void();
23169   return resultobj;
23170 fail:
23171   return NULL;
23172 }
23173 
23174 
_wrap_TermGenerator_increase_termpos(PyObject * self,PyObject * args)23175 SWIGINTERN PyObject *_wrap_TermGenerator_increase_termpos(PyObject *self, PyObject *args) {
23176   Py_ssize_t argc;
23177   PyObject *argv[3] = {
23178     0
23179   };
23180 
23181   if (!(argc = SWIG_Python_UnpackTuple(args,"TermGenerator_increase_termpos",0,2,argv))) SWIG_fail;
23182   --argc;
23183   if (argc == 1) {
23184     return _wrap_TermGenerator_increase_termpos__SWIG_1(self, argc, argv);
23185   }
23186   if (argc == 2) {
23187     return _wrap_TermGenerator_increase_termpos__SWIG_0(self, argc, argv);
23188   }
23189 
23190 fail:
23191   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'TermGenerator_increase_termpos'.\n"
23192     "  Possible C/C++ prototypes are:\n"
23193     "    Xapian::TermGenerator::increase_termpos(Xapian::termpos)\n"
23194     "    Xapian::TermGenerator::increase_termpos()\n");
23195   return 0;
23196 }
23197 
23198 
_wrap_TermGenerator_get_termpos(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23199 SWIGINTERN PyObject *_wrap_TermGenerator_get_termpos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23200   PyObject *resultobj = 0;
23201   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
23202   void *argp1 = 0 ;
23203   int res1 = 0 ;
23204   PyObject *swig_obj[1] ;
23205   Xapian::termpos result;
23206 
23207   if (!args) SWIG_fail;
23208   swig_obj[0] = args;
23209   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
23210   if (!SWIG_IsOK(res1)) {
23211     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_get_termpos" "', argument " "1"" of type '" "Xapian::TermGenerator const *""'");
23212   }
23213   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
23214   {
23215     try {
23216       {
23217         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23218         result = (Xapian::termpos)((Xapian::TermGenerator const *)arg1)->get_termpos();
23219         SWIG_PYTHON_THREAD_END_ALLOW;
23220       }
23221     } catch (...) {
23222       Xapian::SetPythonException();
23223       SWIG_fail;
23224     }
23225   }
23226   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
23227   return resultobj;
23228 fail:
23229   return NULL;
23230 }
23231 
23232 
_wrap_TermGenerator_set_termpos(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23233 SWIGINTERN PyObject *_wrap_TermGenerator_set_termpos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23234   PyObject *resultobj = 0;
23235   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
23236   Xapian::termpos arg2 ;
23237   void *argp1 = 0 ;
23238   int res1 = 0 ;
23239   unsigned int val2 ;
23240   int ecode2 = 0 ;
23241   PyObject *swig_obj[2] ;
23242 
23243   if (!SWIG_Python_UnpackTuple(args,"TermGenerator_set_termpos",2,2,swig_obj)) SWIG_fail;
23244   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
23245   if (!SWIG_IsOK(res1)) {
23246     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator_set_termpos" "', argument " "1"" of type '" "Xapian::TermGenerator *""'");
23247   }
23248   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
23249   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
23250   if (!SWIG_IsOK(ecode2)) {
23251     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TermGenerator_set_termpos" "', argument " "2"" of type '" "Xapian::termpos""'");
23252   }
23253   arg2 = static_cast< Xapian::termpos >(val2);
23254   {
23255     try {
23256       {
23257         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23258         (arg1)->set_termpos(arg2);
23259         SWIG_PYTHON_THREAD_END_ALLOW;
23260       }
23261     } catch (...) {
23262       Xapian::SetPythonException();
23263       SWIG_fail;
23264     }
23265   }
23266   resultobj = SWIG_Py_Void();
23267   return resultobj;
23268 fail:
23269   return NULL;
23270 }
23271 
23272 
_wrap_TermGenerator___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23273 SWIGINTERN PyObject *_wrap_TermGenerator___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23274   PyObject *resultobj = 0;
23275   Xapian::TermGenerator *arg1 = (Xapian::TermGenerator *) 0 ;
23276   void *argp1 = 0 ;
23277   int res1 = 0 ;
23278   PyObject *swig_obj[1] ;
23279   std::string result;
23280 
23281   if (!args) SWIG_fail;
23282   swig_obj[0] = args;
23283   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TermGenerator, 0 |  0 );
23284   if (!SWIG_IsOK(res1)) {
23285     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TermGenerator___str__" "', argument " "1"" of type '" "Xapian::TermGenerator const *""'");
23286   }
23287   arg1 = reinterpret_cast< Xapian::TermGenerator * >(argp1);
23288   {
23289     try {
23290       {
23291         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23292         result = ((Xapian::TermGenerator const *)arg1)->get_description();
23293         SWIG_PYTHON_THREAD_END_ALLOW;
23294       }
23295     } catch (...) {
23296       Xapian::SetPythonException();
23297       SWIG_fail;
23298     }
23299   }
23300   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
23301   return resultobj;
23302 fail:
23303   return NULL;
23304 }
23305 
23306 
TermGenerator_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23307 SWIGINTERN PyObject *TermGenerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23308   PyObject *obj;
23309   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
23310   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__TermGenerator, SWIG_NewClientData(obj));
23311   return SWIG_Py_Void();
23312 }
23313 
TermGenerator_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23314 SWIGINTERN PyObject *TermGenerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23315   return SWIG_Python_InitShadowInstance(args);
23316 }
23317 
_wrap_new_MSet(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23318 SWIGINTERN PyObject *_wrap_new_MSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23319   PyObject *resultobj = 0;
23320   Xapian::MSet *result = 0 ;
23321 
23322   if (!SWIG_Python_UnpackTuple(args,"new_MSet",0,0,0)) SWIG_fail;
23323   {
23324     try {
23325       {
23326         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23327         result = (Xapian::MSet *)new Xapian::MSet();
23328         SWIG_PYTHON_THREAD_END_ALLOW;
23329       }
23330     } catch (...) {
23331       Xapian::SetPythonException();
23332       SWIG_fail;
23333     }
23334   }
23335   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_NEW |  0 );
23336   return resultobj;
23337 fail:
23338   return NULL;
23339 }
23340 
23341 
_wrap_delete_MSet(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23342 SWIGINTERN PyObject *_wrap_delete_MSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23343   PyObject *resultobj = 0;
23344   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23345   void *argp1 = 0 ;
23346   int res1 = 0 ;
23347   PyObject *swig_obj[1] ;
23348 
23349   if (!args) SWIG_fail;
23350   swig_obj[0] = args;
23351   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_DISOWN |  0 );
23352   if (!SWIG_IsOK(res1)) {
23353     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MSet" "', argument " "1"" of type '" "Xapian::MSet *""'");
23354   }
23355   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23356   {
23357     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23358     delete arg1;
23359     SWIG_PYTHON_THREAD_END_ALLOW;
23360   }
23361   resultobj = SWIG_Py_Void();
23362   return resultobj;
23363 fail:
23364   return NULL;
23365 }
23366 
23367 
_wrap_MSet_convert_to_percent__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)23368 SWIGINTERN PyObject *_wrap_MSet_convert_to_percent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23369   PyObject *resultobj = 0;
23370   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23371   double arg2 ;
23372   void *argp1 = 0 ;
23373   int res1 = 0 ;
23374   double val2 ;
23375   int ecode2 = 0 ;
23376   int result;
23377 
23378   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23379   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23380   if (!SWIG_IsOK(res1)) {
23381     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_convert_to_percent" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23382   }
23383   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23384   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
23385   if (!SWIG_IsOK(ecode2)) {
23386     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MSet_convert_to_percent" "', argument " "2"" of type '" "double""'");
23387   }
23388   arg2 = static_cast< double >(val2);
23389   {
23390     try {
23391       {
23392         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23393         result = (int)((Xapian::MSet const *)arg1)->convert_to_percent(arg2);
23394         SWIG_PYTHON_THREAD_END_ALLOW;
23395       }
23396     } catch (...) {
23397       Xapian::SetPythonException();
23398       SWIG_fail;
23399     }
23400   }
23401   resultobj = SWIG_From_int(static_cast< int >(result));
23402   return resultobj;
23403 fail:
23404   return NULL;
23405 }
23406 
23407 
_wrap_MSet_convert_to_percent__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)23408 SWIGINTERN PyObject *_wrap_MSet_convert_to_percent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23409   PyObject *resultobj = 0;
23410   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23411   Xapian::MSetIterator *arg2 = 0 ;
23412   void *argp1 = 0 ;
23413   int res1 = 0 ;
23414   void *argp2 = 0 ;
23415   int res2 = 0 ;
23416   int result;
23417 
23418   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23419   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23420   if (!SWIG_IsOK(res1)) {
23421     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_convert_to_percent" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23422   }
23423   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23424   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
23425   if (!SWIG_IsOK(res2)) {
23426     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_convert_to_percent" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
23427   }
23428   if (!argp2) {
23429     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_convert_to_percent" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
23430   }
23431   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
23432   {
23433     try {
23434       {
23435         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23436         result = (int)((Xapian::MSet const *)arg1)->convert_to_percent((Xapian::MSetIterator const &)*arg2);
23437         SWIG_PYTHON_THREAD_END_ALLOW;
23438       }
23439     } catch (...) {
23440       Xapian::SetPythonException();
23441       SWIG_fail;
23442     }
23443   }
23444   resultobj = SWIG_From_int(static_cast< int >(result));
23445   return resultobj;
23446 fail:
23447   return NULL;
23448 }
23449 
23450 
_wrap_MSet_convert_to_percent(PyObject * self,PyObject * args)23451 SWIGINTERN PyObject *_wrap_MSet_convert_to_percent(PyObject *self, PyObject *args) {
23452   Py_ssize_t argc;
23453   PyObject *argv[3] = {
23454     0
23455   };
23456 
23457   if (!(argc = SWIG_Python_UnpackTuple(args,"MSet_convert_to_percent",0,2,argv))) SWIG_fail;
23458   --argc;
23459   if (argc == 2) {
23460     int _v = 0;
23461     {
23462       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
23463       _v = SWIG_CheckState(res);
23464     }
23465     if (!_v) goto check_1;
23466     return _wrap_MSet_convert_to_percent__SWIG_1(self, argc, argv);
23467   }
23468 check_1:
23469 
23470   if (argc == 2) {
23471     return _wrap_MSet_convert_to_percent__SWIG_0(self, argc, argv);
23472   }
23473 
23474 fail:
23475   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MSet_convert_to_percent'.\n"
23476     "  Possible C/C++ prototypes are:\n"
23477     "    Xapian::MSet::convert_to_percent(double) const\n"
23478     "    Xapian::MSet::convert_to_percent(Xapian::MSetIterator const &) const\n");
23479   return 0;
23480 }
23481 
23482 
_wrap_MSet_get_termfreq(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23483 SWIGINTERN PyObject *_wrap_MSet_get_termfreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23484   PyObject *resultobj = 0;
23485   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23486   std::string *arg2 = 0 ;
23487   void *argp1 = 0 ;
23488   int res1 = 0 ;
23489   int res2 = SWIG_OLDOBJ ;
23490   PyObject *swig_obj[2] ;
23491   Xapian::doccount result;
23492 
23493   if (!SWIG_Python_UnpackTuple(args,"MSet_get_termfreq",2,2,swig_obj)) SWIG_fail;
23494   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23495   if (!SWIG_IsOK(res1)) {
23496     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_termfreq" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23497   }
23498   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23499   {
23500     std::string *ptr = (std::string *)0;
23501     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
23502     if (!SWIG_IsOK(res2)) {
23503       if (res2 == INT_MIN) SWIG_fail;
23504       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_get_termfreq" "', argument " "2"" of type '" "std::string const &""'");
23505     }
23506     if (!ptr) {
23507       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_get_termfreq" "', argument " "2"" of type '" "std::string const &""'");
23508     }
23509     arg2 = ptr;
23510   }
23511   {
23512     try {
23513       {
23514         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23515         result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_termfreq((std::string const &)*arg2);
23516         SWIG_PYTHON_THREAD_END_ALLOW;
23517       }
23518     } catch (...) {
23519       Xapian::SetPythonException();
23520       SWIG_fail;
23521     }
23522   }
23523   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
23524   if (SWIG_IsNewObj(res2)) delete arg2;
23525   return resultobj;
23526 fail:
23527   if (SWIG_IsNewObj(res2)) delete arg2;
23528   return NULL;
23529 }
23530 
23531 
_wrap_MSet_get_termweight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23532 SWIGINTERN PyObject *_wrap_MSet_get_termweight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23533   PyObject *resultobj = 0;
23534   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23535   std::string *arg2 = 0 ;
23536   void *argp1 = 0 ;
23537   int res1 = 0 ;
23538   int res2 = SWIG_OLDOBJ ;
23539   PyObject *swig_obj[2] ;
23540   double result;
23541 
23542   if (!SWIG_Python_UnpackTuple(args,"MSet_get_termweight",2,2,swig_obj)) SWIG_fail;
23543   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23544   if (!SWIG_IsOK(res1)) {
23545     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_termweight" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23546   }
23547   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23548   {
23549     std::string *ptr = (std::string *)0;
23550     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
23551     if (!SWIG_IsOK(res2)) {
23552       if (res2 == INT_MIN) SWIG_fail;
23553       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_get_termweight" "', argument " "2"" of type '" "std::string const &""'");
23554     }
23555     if (!ptr) {
23556       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_get_termweight" "', argument " "2"" of type '" "std::string const &""'");
23557     }
23558     arg2 = ptr;
23559   }
23560   {
23561     try {
23562       {
23563         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23564         result = (double)((Xapian::MSet const *)arg1)->get_termweight((std::string const &)*arg2);
23565         SWIG_PYTHON_THREAD_END_ALLOW;
23566       }
23567     } catch (...) {
23568       Xapian::SetPythonException();
23569       SWIG_fail;
23570     }
23571   }
23572   resultobj = SWIG_From_double(static_cast< double >(result));
23573   if (SWIG_IsNewObj(res2)) delete arg2;
23574   return resultobj;
23575 fail:
23576   if (SWIG_IsNewObj(res2)) delete arg2;
23577   return NULL;
23578 }
23579 
23580 
_wrap_MSet_get_firstitem(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23581 SWIGINTERN PyObject *_wrap_MSet_get_firstitem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23582   PyObject *resultobj = 0;
23583   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23584   void *argp1 = 0 ;
23585   int res1 = 0 ;
23586   PyObject *swig_obj[1] ;
23587   Xapian::doccount result;
23588 
23589   if (!args) SWIG_fail;
23590   swig_obj[0] = args;
23591   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23592   if (!SWIG_IsOK(res1)) {
23593     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_firstitem" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23594   }
23595   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23596   {
23597     try {
23598       {
23599         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23600         result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_firstitem();
23601         SWIG_PYTHON_THREAD_END_ALLOW;
23602       }
23603     } catch (...) {
23604       Xapian::SetPythonException();
23605       SWIG_fail;
23606     }
23607   }
23608   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
23609   return resultobj;
23610 fail:
23611   return NULL;
23612 }
23613 
23614 
_wrap_MSet_get_matches_lower_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23615 SWIGINTERN PyObject *_wrap_MSet_get_matches_lower_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23616   PyObject *resultobj = 0;
23617   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23618   void *argp1 = 0 ;
23619   int res1 = 0 ;
23620   PyObject *swig_obj[1] ;
23621   Xapian::doccount result;
23622 
23623   if (!args) SWIG_fail;
23624   swig_obj[0] = args;
23625   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23626   if (!SWIG_IsOK(res1)) {
23627     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_matches_lower_bound" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23628   }
23629   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23630   {
23631     try {
23632       {
23633         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23634         result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_matches_lower_bound();
23635         SWIG_PYTHON_THREAD_END_ALLOW;
23636       }
23637     } catch (...) {
23638       Xapian::SetPythonException();
23639       SWIG_fail;
23640     }
23641   }
23642   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
23643   return resultobj;
23644 fail:
23645   return NULL;
23646 }
23647 
23648 
_wrap_MSet_get_matches_estimated(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23649 SWIGINTERN PyObject *_wrap_MSet_get_matches_estimated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23650   PyObject *resultobj = 0;
23651   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23652   void *argp1 = 0 ;
23653   int res1 = 0 ;
23654   PyObject *swig_obj[1] ;
23655   Xapian::doccount result;
23656 
23657   if (!args) SWIG_fail;
23658   swig_obj[0] = args;
23659   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23660   if (!SWIG_IsOK(res1)) {
23661     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_matches_estimated" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23662   }
23663   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23664   {
23665     try {
23666       {
23667         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23668         result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_matches_estimated();
23669         SWIG_PYTHON_THREAD_END_ALLOW;
23670       }
23671     } catch (...) {
23672       Xapian::SetPythonException();
23673       SWIG_fail;
23674     }
23675   }
23676   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
23677   return resultobj;
23678 fail:
23679   return NULL;
23680 }
23681 
23682 
_wrap_MSet_get_matches_upper_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23683 SWIGINTERN PyObject *_wrap_MSet_get_matches_upper_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23684   PyObject *resultobj = 0;
23685   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23686   void *argp1 = 0 ;
23687   int res1 = 0 ;
23688   PyObject *swig_obj[1] ;
23689   Xapian::doccount result;
23690 
23691   if (!args) SWIG_fail;
23692   swig_obj[0] = args;
23693   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23694   if (!SWIG_IsOK(res1)) {
23695     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_matches_upper_bound" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23696   }
23697   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23698   {
23699     try {
23700       {
23701         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23702         result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_matches_upper_bound();
23703         SWIG_PYTHON_THREAD_END_ALLOW;
23704       }
23705     } catch (...) {
23706       Xapian::SetPythonException();
23707       SWIG_fail;
23708     }
23709   }
23710   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
23711   return resultobj;
23712 fail:
23713   return NULL;
23714 }
23715 
23716 
_wrap_MSet_get_uncollapsed_matches_lower_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23717 SWIGINTERN PyObject *_wrap_MSet_get_uncollapsed_matches_lower_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23718   PyObject *resultobj = 0;
23719   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23720   void *argp1 = 0 ;
23721   int res1 = 0 ;
23722   PyObject *swig_obj[1] ;
23723   Xapian::doccount result;
23724 
23725   if (!args) SWIG_fail;
23726   swig_obj[0] = args;
23727   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23728   if (!SWIG_IsOK(res1)) {
23729     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_uncollapsed_matches_lower_bound" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23730   }
23731   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23732   {
23733     try {
23734       {
23735         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23736         result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_uncollapsed_matches_lower_bound();
23737         SWIG_PYTHON_THREAD_END_ALLOW;
23738       }
23739     } catch (...) {
23740       Xapian::SetPythonException();
23741       SWIG_fail;
23742     }
23743   }
23744   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
23745   return resultobj;
23746 fail:
23747   return NULL;
23748 }
23749 
23750 
_wrap_MSet_get_uncollapsed_matches_estimated(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23751 SWIGINTERN PyObject *_wrap_MSet_get_uncollapsed_matches_estimated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23752   PyObject *resultobj = 0;
23753   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23754   void *argp1 = 0 ;
23755   int res1 = 0 ;
23756   PyObject *swig_obj[1] ;
23757   Xapian::doccount result;
23758 
23759   if (!args) SWIG_fail;
23760   swig_obj[0] = args;
23761   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23762   if (!SWIG_IsOK(res1)) {
23763     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_uncollapsed_matches_estimated" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23764   }
23765   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23766   {
23767     try {
23768       {
23769         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23770         result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_uncollapsed_matches_estimated();
23771         SWIG_PYTHON_THREAD_END_ALLOW;
23772       }
23773     } catch (...) {
23774       Xapian::SetPythonException();
23775       SWIG_fail;
23776     }
23777   }
23778   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
23779   return resultobj;
23780 fail:
23781   return NULL;
23782 }
23783 
23784 
_wrap_MSet_get_uncollapsed_matches_upper_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23785 SWIGINTERN PyObject *_wrap_MSet_get_uncollapsed_matches_upper_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23786   PyObject *resultobj = 0;
23787   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23788   void *argp1 = 0 ;
23789   int res1 = 0 ;
23790   PyObject *swig_obj[1] ;
23791   Xapian::doccount result;
23792 
23793   if (!args) SWIG_fail;
23794   swig_obj[0] = args;
23795   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23796   if (!SWIG_IsOK(res1)) {
23797     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_uncollapsed_matches_upper_bound" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23798   }
23799   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23800   {
23801     try {
23802       {
23803         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23804         result = (Xapian::doccount)((Xapian::MSet const *)arg1)->get_uncollapsed_matches_upper_bound();
23805         SWIG_PYTHON_THREAD_END_ALLOW;
23806       }
23807     } catch (...) {
23808       Xapian::SetPythonException();
23809       SWIG_fail;
23810     }
23811   }
23812   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
23813   return resultobj;
23814 fail:
23815   return NULL;
23816 }
23817 
23818 
_wrap_MSet_get_max_attained(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23819 SWIGINTERN PyObject *_wrap_MSet_get_max_attained(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23820   PyObject *resultobj = 0;
23821   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23822   void *argp1 = 0 ;
23823   int res1 = 0 ;
23824   PyObject *swig_obj[1] ;
23825   double result;
23826 
23827   if (!args) SWIG_fail;
23828   swig_obj[0] = args;
23829   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23830   if (!SWIG_IsOK(res1)) {
23831     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_max_attained" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23832   }
23833   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23834   {
23835     try {
23836       {
23837         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23838         result = (double)((Xapian::MSet const *)arg1)->get_max_attained();
23839         SWIG_PYTHON_THREAD_END_ALLOW;
23840       }
23841     } catch (...) {
23842       Xapian::SetPythonException();
23843       SWIG_fail;
23844     }
23845   }
23846   resultobj = SWIG_From_double(static_cast< double >(result));
23847   return resultobj;
23848 fail:
23849   return NULL;
23850 }
23851 
23852 
_wrap_MSet_get_max_possible(PyObject * SWIGUNUSEDPARM (self),PyObject * args)23853 SWIGINTERN PyObject *_wrap_MSet_get_max_possible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23854   PyObject *resultobj = 0;
23855   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23856   void *argp1 = 0 ;
23857   int res1 = 0 ;
23858   PyObject *swig_obj[1] ;
23859   double result;
23860 
23861   if (!args) SWIG_fail;
23862   swig_obj[0] = args;
23863   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23864   if (!SWIG_IsOK(res1)) {
23865     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_max_possible" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23866   }
23867   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23868   {
23869     try {
23870       {
23871         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23872         result = (double)((Xapian::MSet const *)arg1)->get_max_possible();
23873         SWIG_PYTHON_THREAD_END_ALLOW;
23874       }
23875     } catch (...) {
23876       Xapian::SetPythonException();
23877       SWIG_fail;
23878     }
23879   }
23880   resultobj = SWIG_From_double(static_cast< double >(result));
23881   return resultobj;
23882 fail:
23883   return NULL;
23884 }
23885 
23886 
_wrap_MSet_snippet__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)23887 SWIGINTERN PyObject *_wrap_MSet_snippet__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23888   PyObject *resultobj = 0;
23889   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
23890   std::string *arg2 = 0 ;
23891   size_t arg3 ;
23892   Xapian::Stem *arg4 = 0 ;
23893   unsigned int arg5 ;
23894   std::string *arg6 = 0 ;
23895   std::string *arg7 = 0 ;
23896   std::string *arg8 = 0 ;
23897   void *argp1 = 0 ;
23898   int res1 = 0 ;
23899   int res2 = SWIG_OLDOBJ ;
23900   size_t val3 ;
23901   int ecode3 = 0 ;
23902   void *argp4 = 0 ;
23903   int res4 = 0 ;
23904   unsigned int val5 ;
23905   int ecode5 = 0 ;
23906   int res6 = SWIG_OLDOBJ ;
23907   int res7 = SWIG_OLDOBJ ;
23908   int res8 = SWIG_OLDOBJ ;
23909   std::string result;
23910 
23911   if ((nobjs < 8) || (nobjs > 8)) SWIG_fail;
23912   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
23913   if (!SWIG_IsOK(res1)) {
23914     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
23915   }
23916   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
23917   {
23918     std::string *ptr = (std::string *)0;
23919     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
23920     if (!SWIG_IsOK(res2)) {
23921       if (res2 == INT_MIN) SWIG_fail;
23922       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
23923     }
23924     if (!ptr) {
23925       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
23926     }
23927     arg2 = ptr;
23928   }
23929   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
23930   if (!SWIG_IsOK(ecode3)) {
23931     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSet_snippet" "', argument " "3"" of type '" "size_t""'");
23932   }
23933   arg3 = static_cast< size_t >(val3);
23934   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Xapian__Stem,  0  | 0);
23935   if (!SWIG_IsOK(res4)) {
23936     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
23937   }
23938   if (!argp4) {
23939     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
23940   }
23941   arg4 = reinterpret_cast< Xapian::Stem * >(argp4);
23942   ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5);
23943   if (!SWIG_IsOK(ecode5)) {
23944     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "MSet_snippet" "', argument " "5"" of type '" "unsigned int""'");
23945   }
23946   arg5 = static_cast< unsigned int >(val5);
23947   {
23948     std::string *ptr = (std::string *)0;
23949     res6 = XapianSWIG_anystring_as_ptr(swig_obj[5], &ptr);
23950     if (!SWIG_IsOK(res6)) {
23951       if (res6 == INT_MIN) SWIG_fail;
23952       SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "MSet_snippet" "', argument " "6"" of type '" "std::string const &""'");
23953     }
23954     if (!ptr) {
23955       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "6"" of type '" "std::string const &""'");
23956     }
23957     arg6 = ptr;
23958   }
23959   {
23960     std::string *ptr = (std::string *)0;
23961     res7 = XapianSWIG_anystring_as_ptr(swig_obj[6], &ptr);
23962     if (!SWIG_IsOK(res7)) {
23963       if (res7 == INT_MIN) SWIG_fail;
23964       SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "MSet_snippet" "', argument " "7"" of type '" "std::string const &""'");
23965     }
23966     if (!ptr) {
23967       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "7"" of type '" "std::string const &""'");
23968     }
23969     arg7 = ptr;
23970   }
23971   {
23972     std::string *ptr = (std::string *)0;
23973     res8 = XapianSWIG_anystring_as_ptr(swig_obj[7], &ptr);
23974     if (!SWIG_IsOK(res8)) {
23975       if (res8 == INT_MIN) SWIG_fail;
23976       SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "MSet_snippet" "', argument " "8"" of type '" "std::string const &""'");
23977     }
23978     if (!ptr) {
23979       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "8"" of type '" "std::string const &""'");
23980     }
23981     arg8 = ptr;
23982   }
23983   {
23984     try {
23985       {
23986         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23987         result = ((Xapian::MSet const *)arg1)->snippet((std::string const &)*arg2,arg3,(Xapian::Stem const &)*arg4,arg5,(std::string const &)*arg6,(std::string const &)*arg7,(std::string const &)*arg8);
23988         SWIG_PYTHON_THREAD_END_ALLOW;
23989       }
23990     } catch (...) {
23991       Xapian::SetPythonException();
23992       SWIG_fail;
23993     }
23994   }
23995 
23996   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
23997 
23998   if (SWIG_IsNewObj(res2)) delete arg2;
23999   if (SWIG_IsNewObj(res6)) delete arg6;
24000   if (SWIG_IsNewObj(res7)) delete arg7;
24001   if (SWIG_IsNewObj(res8)) delete arg8;
24002   return resultobj;
24003 fail:
24004   if (SWIG_IsNewObj(res2)) delete arg2;
24005   if (SWIG_IsNewObj(res6)) delete arg6;
24006   if (SWIG_IsNewObj(res7)) delete arg7;
24007   if (SWIG_IsNewObj(res8)) delete arg8;
24008   return NULL;
24009 }
24010 
24011 
_wrap_MSet_snippet__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)24012 SWIGINTERN PyObject *_wrap_MSet_snippet__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24013   PyObject *resultobj = 0;
24014   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24015   std::string *arg2 = 0 ;
24016   size_t arg3 ;
24017   Xapian::Stem *arg4 = 0 ;
24018   unsigned int arg5 ;
24019   std::string *arg6 = 0 ;
24020   std::string *arg7 = 0 ;
24021   void *argp1 = 0 ;
24022   int res1 = 0 ;
24023   int res2 = SWIG_OLDOBJ ;
24024   size_t val3 ;
24025   int ecode3 = 0 ;
24026   void *argp4 = 0 ;
24027   int res4 = 0 ;
24028   unsigned int val5 ;
24029   int ecode5 = 0 ;
24030   int res6 = SWIG_OLDOBJ ;
24031   int res7 = SWIG_OLDOBJ ;
24032   std::string result;
24033 
24034   if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
24035   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24036   if (!SWIG_IsOK(res1)) {
24037     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24038   }
24039   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24040   {
24041     std::string *ptr = (std::string *)0;
24042     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
24043     if (!SWIG_IsOK(res2)) {
24044       if (res2 == INT_MIN) SWIG_fail;
24045       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24046     }
24047     if (!ptr) {
24048       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24049     }
24050     arg2 = ptr;
24051   }
24052   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
24053   if (!SWIG_IsOK(ecode3)) {
24054     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSet_snippet" "', argument " "3"" of type '" "size_t""'");
24055   }
24056   arg3 = static_cast< size_t >(val3);
24057   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Xapian__Stem,  0  | 0);
24058   if (!SWIG_IsOK(res4)) {
24059     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
24060   }
24061   if (!argp4) {
24062     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
24063   }
24064   arg4 = reinterpret_cast< Xapian::Stem * >(argp4);
24065   ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5);
24066   if (!SWIG_IsOK(ecode5)) {
24067     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "MSet_snippet" "', argument " "5"" of type '" "unsigned int""'");
24068   }
24069   arg5 = static_cast< unsigned int >(val5);
24070   {
24071     std::string *ptr = (std::string *)0;
24072     res6 = XapianSWIG_anystring_as_ptr(swig_obj[5], &ptr);
24073     if (!SWIG_IsOK(res6)) {
24074       if (res6 == INT_MIN) SWIG_fail;
24075       SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "MSet_snippet" "', argument " "6"" of type '" "std::string const &""'");
24076     }
24077     if (!ptr) {
24078       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "6"" of type '" "std::string const &""'");
24079     }
24080     arg6 = ptr;
24081   }
24082   {
24083     std::string *ptr = (std::string *)0;
24084     res7 = XapianSWIG_anystring_as_ptr(swig_obj[6], &ptr);
24085     if (!SWIG_IsOK(res7)) {
24086       if (res7 == INT_MIN) SWIG_fail;
24087       SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "MSet_snippet" "', argument " "7"" of type '" "std::string const &""'");
24088     }
24089     if (!ptr) {
24090       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "7"" of type '" "std::string const &""'");
24091     }
24092     arg7 = ptr;
24093   }
24094   {
24095     try {
24096       {
24097         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24098         result = ((Xapian::MSet const *)arg1)->snippet((std::string const &)*arg2,arg3,(Xapian::Stem const &)*arg4,arg5,(std::string const &)*arg6,(std::string const &)*arg7);
24099         SWIG_PYTHON_THREAD_END_ALLOW;
24100       }
24101     } catch (...) {
24102       Xapian::SetPythonException();
24103       SWIG_fail;
24104     }
24105   }
24106 
24107   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
24108 
24109   if (SWIG_IsNewObj(res2)) delete arg2;
24110   if (SWIG_IsNewObj(res6)) delete arg6;
24111   if (SWIG_IsNewObj(res7)) delete arg7;
24112   return resultobj;
24113 fail:
24114   if (SWIG_IsNewObj(res2)) delete arg2;
24115   if (SWIG_IsNewObj(res6)) delete arg6;
24116   if (SWIG_IsNewObj(res7)) delete arg7;
24117   return NULL;
24118 }
24119 
24120 
_wrap_MSet_snippet__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)24121 SWIGINTERN PyObject *_wrap_MSet_snippet__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24122   PyObject *resultobj = 0;
24123   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24124   std::string *arg2 = 0 ;
24125   size_t arg3 ;
24126   Xapian::Stem *arg4 = 0 ;
24127   unsigned int arg5 ;
24128   std::string *arg6 = 0 ;
24129   void *argp1 = 0 ;
24130   int res1 = 0 ;
24131   int res2 = SWIG_OLDOBJ ;
24132   size_t val3 ;
24133   int ecode3 = 0 ;
24134   void *argp4 = 0 ;
24135   int res4 = 0 ;
24136   unsigned int val5 ;
24137   int ecode5 = 0 ;
24138   int res6 = SWIG_OLDOBJ ;
24139   std::string result;
24140 
24141   if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
24142   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24143   if (!SWIG_IsOK(res1)) {
24144     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24145   }
24146   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24147   {
24148     std::string *ptr = (std::string *)0;
24149     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
24150     if (!SWIG_IsOK(res2)) {
24151       if (res2 == INT_MIN) SWIG_fail;
24152       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24153     }
24154     if (!ptr) {
24155       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24156     }
24157     arg2 = ptr;
24158   }
24159   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
24160   if (!SWIG_IsOK(ecode3)) {
24161     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSet_snippet" "', argument " "3"" of type '" "size_t""'");
24162   }
24163   arg3 = static_cast< size_t >(val3);
24164   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Xapian__Stem,  0  | 0);
24165   if (!SWIG_IsOK(res4)) {
24166     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
24167   }
24168   if (!argp4) {
24169     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
24170   }
24171   arg4 = reinterpret_cast< Xapian::Stem * >(argp4);
24172   ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5);
24173   if (!SWIG_IsOK(ecode5)) {
24174     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "MSet_snippet" "', argument " "5"" of type '" "unsigned int""'");
24175   }
24176   arg5 = static_cast< unsigned int >(val5);
24177   {
24178     std::string *ptr = (std::string *)0;
24179     res6 = XapianSWIG_anystring_as_ptr(swig_obj[5], &ptr);
24180     if (!SWIG_IsOK(res6)) {
24181       if (res6 == INT_MIN) SWIG_fail;
24182       SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "MSet_snippet" "', argument " "6"" of type '" "std::string const &""'");
24183     }
24184     if (!ptr) {
24185       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "6"" of type '" "std::string const &""'");
24186     }
24187     arg6 = ptr;
24188   }
24189   {
24190     try {
24191       {
24192         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24193         result = ((Xapian::MSet const *)arg1)->snippet((std::string const &)*arg2,arg3,(Xapian::Stem const &)*arg4,arg5,(std::string const &)*arg6);
24194         SWIG_PYTHON_THREAD_END_ALLOW;
24195       }
24196     } catch (...) {
24197       Xapian::SetPythonException();
24198       SWIG_fail;
24199     }
24200   }
24201 
24202   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
24203 
24204   if (SWIG_IsNewObj(res2)) delete arg2;
24205   if (SWIG_IsNewObj(res6)) delete arg6;
24206   return resultobj;
24207 fail:
24208   if (SWIG_IsNewObj(res2)) delete arg2;
24209   if (SWIG_IsNewObj(res6)) delete arg6;
24210   return NULL;
24211 }
24212 
24213 
_wrap_MSet_snippet__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)24214 SWIGINTERN PyObject *_wrap_MSet_snippet__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24215   PyObject *resultobj = 0;
24216   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24217   std::string *arg2 = 0 ;
24218   size_t arg3 ;
24219   Xapian::Stem *arg4 = 0 ;
24220   unsigned int arg5 ;
24221   void *argp1 = 0 ;
24222   int res1 = 0 ;
24223   int res2 = SWIG_OLDOBJ ;
24224   size_t val3 ;
24225   int ecode3 = 0 ;
24226   void *argp4 = 0 ;
24227   int res4 = 0 ;
24228   unsigned int val5 ;
24229   int ecode5 = 0 ;
24230   std::string result;
24231 
24232   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
24233   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24234   if (!SWIG_IsOK(res1)) {
24235     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24236   }
24237   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24238   {
24239     std::string *ptr = (std::string *)0;
24240     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
24241     if (!SWIG_IsOK(res2)) {
24242       if (res2 == INT_MIN) SWIG_fail;
24243       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24244     }
24245     if (!ptr) {
24246       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24247     }
24248     arg2 = ptr;
24249   }
24250   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
24251   if (!SWIG_IsOK(ecode3)) {
24252     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSet_snippet" "', argument " "3"" of type '" "size_t""'");
24253   }
24254   arg3 = static_cast< size_t >(val3);
24255   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Xapian__Stem,  0  | 0);
24256   if (!SWIG_IsOK(res4)) {
24257     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
24258   }
24259   if (!argp4) {
24260     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
24261   }
24262   arg4 = reinterpret_cast< Xapian::Stem * >(argp4);
24263   ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5);
24264   if (!SWIG_IsOK(ecode5)) {
24265     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "MSet_snippet" "', argument " "5"" of type '" "unsigned int""'");
24266   }
24267   arg5 = static_cast< unsigned int >(val5);
24268   {
24269     try {
24270       {
24271         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24272         result = ((Xapian::MSet const *)arg1)->snippet((std::string const &)*arg2,arg3,(Xapian::Stem const &)*arg4,arg5);
24273         SWIG_PYTHON_THREAD_END_ALLOW;
24274       }
24275     } catch (...) {
24276       Xapian::SetPythonException();
24277       SWIG_fail;
24278     }
24279   }
24280 
24281   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
24282 
24283   if (SWIG_IsNewObj(res2)) delete arg2;
24284   return resultobj;
24285 fail:
24286   if (SWIG_IsNewObj(res2)) delete arg2;
24287   return NULL;
24288 }
24289 
24290 
_wrap_MSet_snippet__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)24291 SWIGINTERN PyObject *_wrap_MSet_snippet__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24292   PyObject *resultobj = 0;
24293   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24294   std::string *arg2 = 0 ;
24295   size_t arg3 ;
24296   Xapian::Stem *arg4 = 0 ;
24297   void *argp1 = 0 ;
24298   int res1 = 0 ;
24299   int res2 = SWIG_OLDOBJ ;
24300   size_t val3 ;
24301   int ecode3 = 0 ;
24302   void *argp4 = 0 ;
24303   int res4 = 0 ;
24304   std::string result;
24305 
24306   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
24307   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24308   if (!SWIG_IsOK(res1)) {
24309     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24310   }
24311   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24312   {
24313     std::string *ptr = (std::string *)0;
24314     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
24315     if (!SWIG_IsOK(res2)) {
24316       if (res2 == INT_MIN) SWIG_fail;
24317       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24318     }
24319     if (!ptr) {
24320       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24321     }
24322     arg2 = ptr;
24323   }
24324   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
24325   if (!SWIG_IsOK(ecode3)) {
24326     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSet_snippet" "', argument " "3"" of type '" "size_t""'");
24327   }
24328   arg3 = static_cast< size_t >(val3);
24329   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Xapian__Stem,  0  | 0);
24330   if (!SWIG_IsOK(res4)) {
24331     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
24332   }
24333   if (!argp4) {
24334     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "4"" of type '" "Xapian::Stem const &""'");
24335   }
24336   arg4 = reinterpret_cast< Xapian::Stem * >(argp4);
24337   {
24338     try {
24339       {
24340         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24341         result = ((Xapian::MSet const *)arg1)->snippet((std::string const &)*arg2,arg3,(Xapian::Stem const &)*arg4);
24342         SWIG_PYTHON_THREAD_END_ALLOW;
24343       }
24344     } catch (...) {
24345       Xapian::SetPythonException();
24346       SWIG_fail;
24347     }
24348   }
24349 
24350   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
24351 
24352   if (SWIG_IsNewObj(res2)) delete arg2;
24353   return resultobj;
24354 fail:
24355   if (SWIG_IsNewObj(res2)) delete arg2;
24356   return NULL;
24357 }
24358 
24359 
_wrap_MSet_snippet__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)24360 SWIGINTERN PyObject *_wrap_MSet_snippet__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24361   PyObject *resultobj = 0;
24362   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24363   std::string *arg2 = 0 ;
24364   size_t arg3 ;
24365   void *argp1 = 0 ;
24366   int res1 = 0 ;
24367   int res2 = SWIG_OLDOBJ ;
24368   size_t val3 ;
24369   int ecode3 = 0 ;
24370   std::string result;
24371 
24372   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
24373   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24374   if (!SWIG_IsOK(res1)) {
24375     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24376   }
24377   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24378   {
24379     std::string *ptr = (std::string *)0;
24380     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
24381     if (!SWIG_IsOK(res2)) {
24382       if (res2 == INT_MIN) SWIG_fail;
24383       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24384     }
24385     if (!ptr) {
24386       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24387     }
24388     arg2 = ptr;
24389   }
24390   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
24391   if (!SWIG_IsOK(ecode3)) {
24392     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSet_snippet" "', argument " "3"" of type '" "size_t""'");
24393   }
24394   arg3 = static_cast< size_t >(val3);
24395   {
24396     try {
24397       {
24398         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24399         result = ((Xapian::MSet const *)arg1)->snippet((std::string const &)*arg2,arg3);
24400         SWIG_PYTHON_THREAD_END_ALLOW;
24401       }
24402     } catch (...) {
24403       Xapian::SetPythonException();
24404       SWIG_fail;
24405     }
24406   }
24407 
24408   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
24409 
24410   if (SWIG_IsNewObj(res2)) delete arg2;
24411   return resultobj;
24412 fail:
24413   if (SWIG_IsNewObj(res2)) delete arg2;
24414   return NULL;
24415 }
24416 
24417 
_wrap_MSet_snippet__SWIG_6(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)24418 SWIGINTERN PyObject *_wrap_MSet_snippet__SWIG_6(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24419   PyObject *resultobj = 0;
24420   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24421   std::string *arg2 = 0 ;
24422   void *argp1 = 0 ;
24423   int res1 = 0 ;
24424   int res2 = SWIG_OLDOBJ ;
24425   std::string result;
24426 
24427   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24428   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24429   if (!SWIG_IsOK(res1)) {
24430     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_snippet" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24431   }
24432   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24433   {
24434     std::string *ptr = (std::string *)0;
24435     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
24436     if (!SWIG_IsOK(res2)) {
24437       if (res2 == INT_MIN) SWIG_fail;
24438       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24439     }
24440     if (!ptr) {
24441       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_snippet" "', argument " "2"" of type '" "std::string const &""'");
24442     }
24443     arg2 = ptr;
24444   }
24445   {
24446     try {
24447       {
24448         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24449         result = ((Xapian::MSet const *)arg1)->snippet((std::string const &)*arg2);
24450         SWIG_PYTHON_THREAD_END_ALLOW;
24451       }
24452     } catch (...) {
24453       Xapian::SetPythonException();
24454       SWIG_fail;
24455     }
24456   }
24457 
24458   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
24459 
24460   if (SWIG_IsNewObj(res2)) delete arg2;
24461   return resultobj;
24462 fail:
24463   if (SWIG_IsNewObj(res2)) delete arg2;
24464   return NULL;
24465 }
24466 
24467 
_wrap_MSet_snippet(PyObject * self,PyObject * args)24468 SWIGINTERN PyObject *_wrap_MSet_snippet(PyObject *self, PyObject *args) {
24469   Py_ssize_t argc;
24470   PyObject *argv[9] = {
24471     0
24472   };
24473 
24474   if (!(argc = SWIG_Python_UnpackTuple(args,"MSet_snippet",0,8,argv))) SWIG_fail;
24475   --argc;
24476   if (argc == 2) {
24477     return _wrap_MSet_snippet__SWIG_6(self, argc, argv);
24478   }
24479   if (argc == 3) {
24480     return _wrap_MSet_snippet__SWIG_5(self, argc, argv);
24481   }
24482   if (argc == 4) {
24483     return _wrap_MSet_snippet__SWIG_4(self, argc, argv);
24484   }
24485   if (argc == 5) {
24486     return _wrap_MSet_snippet__SWIG_3(self, argc, argv);
24487   }
24488   if (argc == 6) {
24489     return _wrap_MSet_snippet__SWIG_2(self, argc, argv);
24490   }
24491   if (argc == 7) {
24492     return _wrap_MSet_snippet__SWIG_1(self, argc, argv);
24493   }
24494   if (argc == 8) {
24495     return _wrap_MSet_snippet__SWIG_0(self, argc, argv);
24496   }
24497 
24498 fail:
24499   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MSet_snippet'.\n"
24500     "  Possible C/C++ prototypes are:\n"
24501     "    Xapian::MSet::snippet(std::string const &,size_t,Xapian::Stem const &,unsigned int,std::string const &,std::string const &,std::string const &) const\n"
24502     "    Xapian::MSet::snippet(std::string const &,size_t,Xapian::Stem const &,unsigned int,std::string const &,std::string const &) const\n"
24503     "    Xapian::MSet::snippet(std::string const &,size_t,Xapian::Stem const &,unsigned int,std::string const &) const\n"
24504     "    Xapian::MSet::snippet(std::string const &,size_t,Xapian::Stem const &,unsigned int) const\n"
24505     "    Xapian::MSet::snippet(std::string const &,size_t,Xapian::Stem const &) const\n"
24506     "    Xapian::MSet::snippet(std::string const &,size_t) const\n"
24507     "    Xapian::MSet::snippet(std::string const &) const\n");
24508   return 0;
24509 }
24510 
24511 
_wrap_MSet_fetch__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)24512 SWIGINTERN PyObject *_wrap_MSet_fetch__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24513   PyObject *resultobj = 0;
24514   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24515   Xapian::MSetIterator *arg2 = 0 ;
24516   Xapian::MSetIterator *arg3 = 0 ;
24517   void *argp1 = 0 ;
24518   int res1 = 0 ;
24519   void *argp2 = 0 ;
24520   int res2 = 0 ;
24521   void *argp3 = 0 ;
24522   int res3 = 0 ;
24523 
24524   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
24525   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24526   if (!SWIG_IsOK(res1)) {
24527     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_fetch" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24528   }
24529   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24530   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
24531   if (!SWIG_IsOK(res2)) {
24532     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_fetch" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
24533   }
24534   if (!argp2) {
24535     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_fetch" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
24536   }
24537   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
24538   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
24539   if (!SWIG_IsOK(res3)) {
24540     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MSet_fetch" "', argument " "3"" of type '" "Xapian::MSetIterator const &""'");
24541   }
24542   if (!argp3) {
24543     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_fetch" "', argument " "3"" of type '" "Xapian::MSetIterator const &""'");
24544   }
24545   arg3 = reinterpret_cast< Xapian::MSetIterator * >(argp3);
24546   {
24547     try {
24548       {
24549         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24550         ((Xapian::MSet const *)arg1)->fetch((Xapian::MSetIterator const &)*arg2,(Xapian::MSetIterator const &)*arg3);
24551         SWIG_PYTHON_THREAD_END_ALLOW;
24552       }
24553     } catch (...) {
24554       Xapian::SetPythonException();
24555       SWIG_fail;
24556     }
24557   }
24558   resultobj = SWIG_Py_Void();
24559   return resultobj;
24560 fail:
24561   return NULL;
24562 }
24563 
24564 
_wrap_MSet_fetch__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)24565 SWIGINTERN PyObject *_wrap_MSet_fetch__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24566   PyObject *resultobj = 0;
24567   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24568   Xapian::MSetIterator *arg2 = 0 ;
24569   void *argp1 = 0 ;
24570   int res1 = 0 ;
24571   void *argp2 = 0 ;
24572   int res2 = 0 ;
24573 
24574   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24575   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24576   if (!SWIG_IsOK(res1)) {
24577     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_fetch" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24578   }
24579   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24580   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
24581   if (!SWIG_IsOK(res2)) {
24582     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSet_fetch" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
24583   }
24584   if (!argp2) {
24585     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSet_fetch" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
24586   }
24587   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
24588   {
24589     try {
24590       {
24591         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24592         ((Xapian::MSet const *)arg1)->fetch((Xapian::MSetIterator const &)*arg2);
24593         SWIG_PYTHON_THREAD_END_ALLOW;
24594       }
24595     } catch (...) {
24596       Xapian::SetPythonException();
24597       SWIG_fail;
24598     }
24599   }
24600   resultobj = SWIG_Py_Void();
24601   return resultobj;
24602 fail:
24603   return NULL;
24604 }
24605 
24606 
_wrap_MSet_fetch__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)24607 SWIGINTERN PyObject *_wrap_MSet_fetch__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24608   PyObject *resultobj = 0;
24609   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24610   void *argp1 = 0 ;
24611   int res1 = 0 ;
24612 
24613   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
24614   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24615   if (!SWIG_IsOK(res1)) {
24616     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_fetch" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24617   }
24618   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24619   {
24620     try {
24621       {
24622         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24623         ((Xapian::MSet const *)arg1)->fetch();
24624         SWIG_PYTHON_THREAD_END_ALLOW;
24625       }
24626     } catch (...) {
24627       Xapian::SetPythonException();
24628       SWIG_fail;
24629     }
24630   }
24631   resultobj = SWIG_Py_Void();
24632   return resultobj;
24633 fail:
24634   return NULL;
24635 }
24636 
24637 
_wrap_MSet_fetch(PyObject * self,PyObject * args)24638 SWIGINTERN PyObject *_wrap_MSet_fetch(PyObject *self, PyObject *args) {
24639   Py_ssize_t argc;
24640   PyObject *argv[4] = {
24641     0
24642   };
24643 
24644   if (!(argc = SWIG_Python_UnpackTuple(args,"MSet_fetch",0,3,argv))) SWIG_fail;
24645   --argc;
24646   if (argc == 1) {
24647     return _wrap_MSet_fetch__SWIG_2(self, argc, argv);
24648   }
24649   if (argc == 2) {
24650     return _wrap_MSet_fetch__SWIG_1(self, argc, argv);
24651   }
24652   if (argc == 3) {
24653     return _wrap_MSet_fetch__SWIG_0(self, argc, argv);
24654   }
24655 
24656 fail:
24657   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MSet_fetch'.\n"
24658     "  Possible C/C++ prototypes are:\n"
24659     "    Xapian::MSet::fetch(Xapian::MSetIterator const &,Xapian::MSetIterator const &) const\n"
24660     "    Xapian::MSet::fetch(Xapian::MSetIterator const &) const\n"
24661     "    Xapian::MSet::fetch() const\n");
24662   return 0;
24663 }
24664 
24665 
_wrap_MSet_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24666 SWIGINTERN PyObject *_wrap_MSet_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24667   PyObject *resultobj = 0;
24668   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24669   void *argp1 = 0 ;
24670   int res1 = 0 ;
24671   PyObject *swig_obj[1] ;
24672   Xapian::doccount result;
24673 
24674   if (!args) SWIG_fail;
24675   swig_obj[0] = args;
24676   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24677   if (!SWIG_IsOK(res1)) {
24678     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_size" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24679   }
24680   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24681   {
24682     try {
24683       {
24684         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24685         result = (Xapian::doccount)((Xapian::MSet const *)arg1)->size();
24686         SWIG_PYTHON_THREAD_END_ALLOW;
24687       }
24688     } catch (...) {
24689       Xapian::SetPythonException();
24690       SWIG_fail;
24691     }
24692   }
24693   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
24694   return resultobj;
24695 fail:
24696   return NULL;
24697 }
24698 
24699 
_wrap_MSet_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24700 SWIGINTERN PyObject *_wrap_MSet_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24701   PyObject *resultobj = 0;
24702   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24703   void *argp1 = 0 ;
24704   int res1 = 0 ;
24705   PyObject *swig_obj[1] ;
24706   bool result;
24707 
24708   if (!args) SWIG_fail;
24709   swig_obj[0] = args;
24710   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24711   if (!SWIG_IsOK(res1)) {
24712     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_empty" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24713   }
24714   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24715   {
24716     try {
24717       {
24718         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24719         result = (bool)((Xapian::MSet const *)arg1)->empty();
24720         SWIG_PYTHON_THREAD_END_ALLOW;
24721       }
24722     } catch (...) {
24723       Xapian::SetPythonException();
24724       SWIG_fail;
24725     }
24726   }
24727   resultobj = SWIG_From_bool(static_cast< bool >(result));
24728   return resultobj;
24729 fail:
24730   return NULL;
24731 }
24732 
24733 
_wrap_MSet__begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24734 SWIGINTERN PyObject *_wrap_MSet__begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24735   PyObject *resultobj = 0;
24736   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24737   void *argp1 = 0 ;
24738   int res1 = 0 ;
24739   PyObject *swig_obj[1] ;
24740   Xapian::MSetIterator result;
24741 
24742   if (!args) SWIG_fail;
24743   swig_obj[0] = args;
24744   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24745   if (!SWIG_IsOK(res1)) {
24746     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet__begin" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24747   }
24748   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24749   {
24750     try {
24751       {
24752         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24753         result = ((Xapian::MSet const *)arg1)->begin();
24754         SWIG_PYTHON_THREAD_END_ALLOW;
24755       }
24756     } catch (...) {
24757       Xapian::SetPythonException();
24758       SWIG_fail;
24759     }
24760   }
24761   resultobj = SWIG_NewPointerObj((new Xapian::MSetIterator(static_cast< const Xapian::MSetIterator& >(result))), SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_OWN |  0 );
24762   return resultobj;
24763 fail:
24764   return NULL;
24765 }
24766 
24767 
_wrap_MSet__end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24768 SWIGINTERN PyObject *_wrap_MSet__end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24769   PyObject *resultobj = 0;
24770   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24771   void *argp1 = 0 ;
24772   int res1 = 0 ;
24773   PyObject *swig_obj[1] ;
24774   Xapian::MSetIterator result;
24775 
24776   if (!args) SWIG_fail;
24777   swig_obj[0] = args;
24778   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24779   if (!SWIG_IsOK(res1)) {
24780     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet__end" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24781   }
24782   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24783   {
24784     try {
24785       {
24786         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24787         result = ((Xapian::MSet const *)arg1)->end();
24788         SWIG_PYTHON_THREAD_END_ALLOW;
24789       }
24790     } catch (...) {
24791       Xapian::SetPythonException();
24792       SWIG_fail;
24793     }
24794   }
24795   resultobj = SWIG_NewPointerObj((new Xapian::MSetIterator(static_cast< const Xapian::MSetIterator& >(result))), SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_OWN |  0 );
24796   return resultobj;
24797 fail:
24798   return NULL;
24799 }
24800 
24801 
_wrap_MSet_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24802 SWIGINTERN PyObject *_wrap_MSet_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24803   PyObject *resultobj = 0;
24804   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24805   void *argp1 = 0 ;
24806   int res1 = 0 ;
24807   PyObject *swig_obj[1] ;
24808   Xapian::MSetIterator result;
24809 
24810   if (!args) SWIG_fail;
24811   swig_obj[0] = args;
24812   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24813   if (!SWIG_IsOK(res1)) {
24814     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_back" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24815   }
24816   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24817   {
24818     try {
24819       {
24820         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24821         result = ((Xapian::MSet const *)arg1)->back();
24822         SWIG_PYTHON_THREAD_END_ALLOW;
24823       }
24824     } catch (...) {
24825       Xapian::SetPythonException();
24826       SWIG_fail;
24827     }
24828   }
24829   resultobj = SWIG_NewPointerObj((new Xapian::MSetIterator(static_cast< const Xapian::MSetIterator& >(result))), SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_OWN |  0 );
24830   return resultobj;
24831 fail:
24832   return NULL;
24833 }
24834 
24835 
_wrap_MSet___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24836 SWIGINTERN PyObject *_wrap_MSet___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24837   PyObject *resultobj = 0;
24838   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24839   void *argp1 = 0 ;
24840   int res1 = 0 ;
24841   PyObject *swig_obj[1] ;
24842   std::string result;
24843 
24844   if (!args) SWIG_fail;
24845   swig_obj[0] = args;
24846   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24847   if (!SWIG_IsOK(res1)) {
24848     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet___str__" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24849   }
24850   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24851   {
24852     try {
24853       {
24854         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24855         result = ((Xapian::MSet const *)arg1)->get_description();
24856         SWIG_PYTHON_THREAD_END_ALLOW;
24857       }
24858     } catch (...) {
24859       Xapian::SetPythonException();
24860       SWIG_fail;
24861     }
24862   }
24863   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
24864   return resultobj;
24865 fail:
24866   return NULL;
24867 }
24868 
24869 
_wrap_MSet_get_docid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24870 SWIGINTERN PyObject *_wrap_MSet_get_docid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24871   PyObject *resultobj = 0;
24872   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24873   Xapian::doccount arg2 ;
24874   void *argp1 = 0 ;
24875   int res1 = 0 ;
24876   unsigned int val2 ;
24877   int ecode2 = 0 ;
24878   PyObject *swig_obj[2] ;
24879   Xapian::docid result;
24880 
24881   if (!SWIG_Python_UnpackTuple(args,"MSet_get_docid",2,2,swig_obj)) SWIG_fail;
24882   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24883   if (!SWIG_IsOK(res1)) {
24884     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_docid" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24885   }
24886   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24887   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
24888   if (!SWIG_IsOK(ecode2)) {
24889     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MSet_get_docid" "', argument " "2"" of type '" "Xapian::doccount""'");
24890   }
24891   arg2 = static_cast< Xapian::doccount >(val2);
24892   {
24893     try {
24894       {
24895         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24896         result = (Xapian::docid)Xapian_MSet_get_docid((Xapian::MSet const *)arg1,arg2);
24897         SWIG_PYTHON_THREAD_END_ALLOW;
24898       }
24899     } catch (...) {
24900       Xapian::SetPythonException();
24901       SWIG_fail;
24902     }
24903   }
24904   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
24905   return resultobj;
24906 fail:
24907   return NULL;
24908 }
24909 
24910 
_wrap_MSet_get_document(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24911 SWIGINTERN PyObject *_wrap_MSet_get_document(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24912   PyObject *resultobj = 0;
24913   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24914   Xapian::doccount arg2 ;
24915   void *argp1 = 0 ;
24916   int res1 = 0 ;
24917   unsigned int val2 ;
24918   int ecode2 = 0 ;
24919   PyObject *swig_obj[2] ;
24920   Xapian::Document result;
24921 
24922   if (!SWIG_Python_UnpackTuple(args,"MSet_get_document",2,2,swig_obj)) SWIG_fail;
24923   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24924   if (!SWIG_IsOK(res1)) {
24925     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_document" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24926   }
24927   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24928   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
24929   if (!SWIG_IsOK(ecode2)) {
24930     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MSet_get_document" "', argument " "2"" of type '" "Xapian::doccount""'");
24931   }
24932   arg2 = static_cast< Xapian::doccount >(val2);
24933   {
24934     try {
24935       {
24936         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24937         result = Xapian_MSet_get_document((Xapian::MSet const *)arg1,arg2);
24938         SWIG_PYTHON_THREAD_END_ALLOW;
24939       }
24940     } catch (...) {
24941       Xapian::SetPythonException();
24942       SWIG_fail;
24943     }
24944   }
24945   resultobj = SWIG_NewPointerObj((new Xapian::Document(static_cast< const Xapian::Document& >(result))), SWIGTYPE_p_Xapian__Document, SWIG_POINTER_OWN |  0 );
24946   return resultobj;
24947 fail:
24948   return NULL;
24949 }
24950 
24951 
_wrap_MSet__get_hit_internal(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24952 SWIGINTERN PyObject *_wrap_MSet__get_hit_internal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24953   PyObject *resultobj = 0;
24954   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24955   Xapian::doccount arg2 ;
24956   void *argp1 = 0 ;
24957   int res1 = 0 ;
24958   unsigned int val2 ;
24959   int ecode2 = 0 ;
24960   PyObject *swig_obj[2] ;
24961   Xapian::MSetIterator result;
24962 
24963   if (!SWIG_Python_UnpackTuple(args,"MSet__get_hit_internal",2,2,swig_obj)) SWIG_fail;
24964   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
24965   if (!SWIG_IsOK(res1)) {
24966     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet__get_hit_internal" "', argument " "1"" of type '" "Xapian::MSet const *""'");
24967   }
24968   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
24969   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
24970   if (!SWIG_IsOK(ecode2)) {
24971     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MSet__get_hit_internal" "', argument " "2"" of type '" "Xapian::doccount""'");
24972   }
24973   arg2 = static_cast< Xapian::doccount >(val2);
24974   {
24975     try {
24976       {
24977         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
24978         result = Xapian_MSet_get_hit((Xapian::MSet const *)arg1,arg2);
24979         SWIG_PYTHON_THREAD_END_ALLOW;
24980       }
24981     } catch (...) {
24982       Xapian::SetPythonException();
24983       SWIG_fail;
24984     }
24985   }
24986   resultobj = SWIG_NewPointerObj((new Xapian::MSetIterator(static_cast< const Xapian::MSetIterator& >(result))), SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_OWN |  0 );
24987   return resultobj;
24988 fail:
24989   return NULL;
24990 }
24991 
24992 
_wrap_MSet_get_document_percentage(PyObject * SWIGUNUSEDPARM (self),PyObject * args)24993 SWIGINTERN PyObject *_wrap_MSet_get_document_percentage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24994   PyObject *resultobj = 0;
24995   Xapian::MSet *arg1 = (Xapian::MSet *) 0 ;
24996   Xapian::doccount arg2 ;
24997   void *argp1 = 0 ;
24998   int res1 = 0 ;
24999   unsigned int val2 ;
25000   int ecode2 = 0 ;
25001   PyObject *swig_obj[2] ;
25002   int result;
25003 
25004   if (!SWIG_Python_UnpackTuple(args,"MSet_get_document_percentage",2,2,swig_obj)) SWIG_fail;
25005   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
25006   if (!SWIG_IsOK(res1)) {
25007     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSet_get_document_percentage" "', argument " "1"" of type '" "Xapian::MSet const *""'");
25008   }
25009   arg1 = reinterpret_cast< Xapian::MSet * >(argp1);
25010   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
25011   if (!SWIG_IsOK(ecode2)) {
25012     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MSet_get_document_percentage" "', argument " "2"" of type '" "Xapian::doccount""'");
25013   }
25014   arg2 = static_cast< Xapian::doccount >(val2);
25015   {
25016     try {
25017       {
25018         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25019         result = (int)Xapian_MSet_get_document_percentage((Xapian::MSet const *)arg1,arg2);
25020         SWIG_PYTHON_THREAD_END_ALLOW;
25021       }
25022     } catch (...) {
25023       Xapian::SetPythonException();
25024       SWIG_fail;
25025     }
25026   }
25027   resultobj = SWIG_From_int(static_cast< int >(result));
25028   return resultobj;
25029 fail:
25030   return NULL;
25031 }
25032 
25033 
MSet_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25034 SWIGINTERN PyObject *MSet_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25035   PyObject *obj;
25036   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
25037   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__MSet, SWIG_NewClientData(obj));
25038   return SWIG_Py_Void();
25039 }
25040 
MSet_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25041 SWIGINTERN PyObject *MSet_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25042   return SWIG_Python_InitShadowInstance(args);
25043 }
25044 
_wrap__MSetIterator_mset_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25045 SWIGINTERN PyObject *_wrap__MSetIterator_mset_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25046   PyObject *resultobj = 0;
25047   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25048   Xapian::MSet *arg2 = (Xapian::MSet *) 0 ;
25049   void *argp1 = 0 ;
25050   int res1 = 0 ;
25051   void *argp2 = 0 ;
25052   int res2 = 0 ;
25053   PyObject *swig_obj[2] ;
25054 
25055   if (!SWIG_Python_UnpackTuple(args,"_MSetIterator_mset_set",2,2,swig_obj)) SWIG_fail;
25056   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25057   if (!SWIG_IsOK(res1)) {
25058     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_mset_set" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
25059   }
25060   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25061   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__MSet, 0 |  0 );
25062   if (!SWIG_IsOK(res2)) {
25063     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_MSetIterator_mset_set" "', argument " "2"" of type '" "Xapian::MSet *""'");
25064   }
25065   arg2 = reinterpret_cast< Xapian::MSet * >(argp2);
25066   {
25067     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25068     if (arg1) (arg1)->mset = *arg2;
25069     SWIG_PYTHON_THREAD_END_ALLOW;
25070   }
25071   resultobj = SWIG_Py_Void();
25072   return resultobj;
25073 fail:
25074   return NULL;
25075 }
25076 
25077 
_wrap__MSetIterator_mset_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25078 SWIGINTERN PyObject *_wrap__MSetIterator_mset_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25079   PyObject *resultobj = 0;
25080   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25081   void *argp1 = 0 ;
25082   int res1 = 0 ;
25083   PyObject *swig_obj[1] ;
25084   Xapian::MSet *result = 0 ;
25085 
25086   if (!args) SWIG_fail;
25087   swig_obj[0] = args;
25088   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25089   if (!SWIG_IsOK(res1)) {
25090     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_mset_get" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
25091   }
25092   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25093   {
25094     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25095     result = (Xapian::MSet *)& ((arg1)->mset);
25096     SWIG_PYTHON_THREAD_END_ALLOW;
25097   }
25098   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MSet, 0 |  0 );
25099   return resultobj;
25100 fail:
25101   return NULL;
25102 }
25103 
25104 
_wrap__MSetIterator_off_from_end_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25105 SWIGINTERN PyObject *_wrap__MSetIterator_off_from_end_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25106   PyObject *resultobj = 0;
25107   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25108   Xapian::MSet::size_type arg2 ;
25109   void *argp1 = 0 ;
25110   int res1 = 0 ;
25111   unsigned int val2 ;
25112   int ecode2 = 0 ;
25113   PyObject *swig_obj[2] ;
25114 
25115   if (!SWIG_Python_UnpackTuple(args,"_MSetIterator_off_from_end_set",2,2,swig_obj)) SWIG_fail;
25116   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25117   if (!SWIG_IsOK(res1)) {
25118     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_off_from_end_set" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
25119   }
25120   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25121   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
25122   if (!SWIG_IsOK(ecode2)) {
25123     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_MSetIterator_off_from_end_set" "', argument " "2"" of type '" "Xapian::MSet::size_type""'");
25124   }
25125   arg2 = static_cast< Xapian::MSet::size_type >(val2);
25126   {
25127     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25128     if (arg1) (arg1)->off_from_end = arg2;
25129     SWIG_PYTHON_THREAD_END_ALLOW;
25130   }
25131   resultobj = SWIG_Py_Void();
25132   return resultobj;
25133 fail:
25134   return NULL;
25135 }
25136 
25137 
_wrap__MSetIterator_off_from_end_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25138 SWIGINTERN PyObject *_wrap__MSetIterator_off_from_end_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25139   PyObject *resultobj = 0;
25140   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25141   void *argp1 = 0 ;
25142   int res1 = 0 ;
25143   PyObject *swig_obj[1] ;
25144   Xapian::MSet::size_type result;
25145 
25146   if (!args) SWIG_fail;
25147   swig_obj[0] = args;
25148   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25149   if (!SWIG_IsOK(res1)) {
25150     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_off_from_end_get" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
25151   }
25152   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25153   {
25154     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25155     result = (Xapian::MSet::size_type) ((arg1)->off_from_end);
25156     SWIG_PYTHON_THREAD_END_ALLOW;
25157   }
25158   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
25159   return resultobj;
25160 fail:
25161   return NULL;
25162 }
25163 
25164 
_wrap_new__MSetIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25165 SWIGINTERN PyObject *_wrap_new__MSetIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25166   PyObject *resultobj = 0;
25167   Xapian::MSetIterator *result = 0 ;
25168 
25169   if (!SWIG_Python_UnpackTuple(args,"new__MSetIterator",0,0,0)) SWIG_fail;
25170   {
25171     try {
25172       {
25173         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25174         result = (Xapian::MSetIterator *)new Xapian::MSetIterator();
25175         SWIG_PYTHON_THREAD_END_ALLOW;
25176       }
25177     } catch (...) {
25178       Xapian::SetPythonException();
25179       SWIG_fail;
25180     }
25181   }
25182   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_NEW |  0 );
25183   return resultobj;
25184 fail:
25185   return NULL;
25186 }
25187 
25188 
_wrap__MSetIterator_get_rank(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25189 SWIGINTERN PyObject *_wrap__MSetIterator_get_rank(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25190   PyObject *resultobj = 0;
25191   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25192   void *argp1 = 0 ;
25193   int res1 = 0 ;
25194   PyObject *swig_obj[1] ;
25195   Xapian::doccount result;
25196 
25197   if (!args) SWIG_fail;
25198   swig_obj[0] = args;
25199   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25200   if (!SWIG_IsOK(res1)) {
25201     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_get_rank" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25202   }
25203   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25204   {
25205     try {
25206       {
25207         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25208         result = (Xapian::doccount)((Xapian::MSetIterator const *)arg1)->get_rank();
25209         SWIG_PYTHON_THREAD_END_ALLOW;
25210       }
25211     } catch (...) {
25212       Xapian::SetPythonException();
25213       SWIG_fail;
25214     }
25215   }
25216   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
25217   return resultobj;
25218 fail:
25219   return NULL;
25220 }
25221 
25222 
_wrap__MSetIterator_get_document(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25223 SWIGINTERN PyObject *_wrap__MSetIterator_get_document(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25224   PyObject *resultobj = 0;
25225   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25226   void *argp1 = 0 ;
25227   int res1 = 0 ;
25228   PyObject *swig_obj[1] ;
25229   Xapian::Document result;
25230 
25231   if (!args) SWIG_fail;
25232   swig_obj[0] = args;
25233   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25234   if (!SWIG_IsOK(res1)) {
25235     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_get_document" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25236   }
25237   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25238   {
25239     try {
25240       {
25241         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25242         result = ((Xapian::MSetIterator const *)arg1)->get_document();
25243         SWIG_PYTHON_THREAD_END_ALLOW;
25244       }
25245     } catch (...) {
25246       Xapian::SetPythonException();
25247       SWIG_fail;
25248     }
25249   }
25250   resultobj = SWIG_NewPointerObj((new Xapian::Document(static_cast< const Xapian::Document& >(result))), SWIGTYPE_p_Xapian__Document, SWIG_POINTER_OWN |  0 );
25251   return resultobj;
25252 fail:
25253   return NULL;
25254 }
25255 
25256 
_wrap__MSetIterator_get_weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25257 SWIGINTERN PyObject *_wrap__MSetIterator_get_weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25258   PyObject *resultobj = 0;
25259   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25260   void *argp1 = 0 ;
25261   int res1 = 0 ;
25262   PyObject *swig_obj[1] ;
25263   double result;
25264 
25265   if (!args) SWIG_fail;
25266   swig_obj[0] = args;
25267   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25268   if (!SWIG_IsOK(res1)) {
25269     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_get_weight" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25270   }
25271   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25272   {
25273     try {
25274       {
25275         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25276         result = (double)((Xapian::MSetIterator const *)arg1)->get_weight();
25277         SWIG_PYTHON_THREAD_END_ALLOW;
25278       }
25279     } catch (...) {
25280       Xapian::SetPythonException();
25281       SWIG_fail;
25282     }
25283   }
25284   resultobj = SWIG_From_double(static_cast< double >(result));
25285   return resultobj;
25286 fail:
25287   return NULL;
25288 }
25289 
25290 
_wrap__MSetIterator_get_collapse_key(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25291 SWIGINTERN PyObject *_wrap__MSetIterator_get_collapse_key(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25292   PyObject *resultobj = 0;
25293   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25294   void *argp1 = 0 ;
25295   int res1 = 0 ;
25296   PyObject *swig_obj[1] ;
25297   std::string result;
25298 
25299   if (!args) SWIG_fail;
25300   swig_obj[0] = args;
25301   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25302   if (!SWIG_IsOK(res1)) {
25303     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_get_collapse_key" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25304   }
25305   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25306   {
25307     try {
25308       {
25309         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25310         result = ((Xapian::MSetIterator const *)arg1)->get_collapse_key();
25311         SWIG_PYTHON_THREAD_END_ALLOW;
25312       }
25313     } catch (...) {
25314       Xapian::SetPythonException();
25315       SWIG_fail;
25316     }
25317   }
25318 
25319   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
25320 
25321   return resultobj;
25322 fail:
25323   return NULL;
25324 }
25325 
25326 
_wrap__MSetIterator_get_collapse_count(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25327 SWIGINTERN PyObject *_wrap__MSetIterator_get_collapse_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25328   PyObject *resultobj = 0;
25329   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25330   void *argp1 = 0 ;
25331   int res1 = 0 ;
25332   PyObject *swig_obj[1] ;
25333   Xapian::doccount result;
25334 
25335   if (!args) SWIG_fail;
25336   swig_obj[0] = args;
25337   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25338   if (!SWIG_IsOK(res1)) {
25339     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_get_collapse_count" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25340   }
25341   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25342   {
25343     try {
25344       {
25345         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25346         result = (Xapian::doccount)((Xapian::MSetIterator const *)arg1)->get_collapse_count();
25347         SWIG_PYTHON_THREAD_END_ALLOW;
25348       }
25349     } catch (...) {
25350       Xapian::SetPythonException();
25351       SWIG_fail;
25352     }
25353   }
25354   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
25355   return resultobj;
25356 fail:
25357   return NULL;
25358 }
25359 
25360 
_wrap__MSetIterator_get_sort_key(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25361 SWIGINTERN PyObject *_wrap__MSetIterator_get_sort_key(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25362   PyObject *resultobj = 0;
25363   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25364   void *argp1 = 0 ;
25365   int res1 = 0 ;
25366   PyObject *swig_obj[1] ;
25367   std::string result;
25368 
25369   if (!args) SWIG_fail;
25370   swig_obj[0] = args;
25371   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25372   if (!SWIG_IsOK(res1)) {
25373     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_get_sort_key" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25374   }
25375   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25376   {
25377     try {
25378       {
25379         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25380         result = ((Xapian::MSetIterator const *)arg1)->get_sort_key();
25381         SWIG_PYTHON_THREAD_END_ALLOW;
25382       }
25383     } catch (...) {
25384       Xapian::SetPythonException();
25385       SWIG_fail;
25386     }
25387   }
25388 
25389   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
25390 
25391   return resultobj;
25392 fail:
25393   return NULL;
25394 }
25395 
25396 
_wrap__MSetIterator_get_percent(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25397 SWIGINTERN PyObject *_wrap__MSetIterator_get_percent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25398   PyObject *resultobj = 0;
25399   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25400   void *argp1 = 0 ;
25401   int res1 = 0 ;
25402   PyObject *swig_obj[1] ;
25403   int result;
25404 
25405   if (!args) SWIG_fail;
25406   swig_obj[0] = args;
25407   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25408   if (!SWIG_IsOK(res1)) {
25409     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_get_percent" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25410   }
25411   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25412   {
25413     try {
25414       {
25415         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25416         result = (int)((Xapian::MSetIterator const *)arg1)->get_percent();
25417         SWIG_PYTHON_THREAD_END_ALLOW;
25418       }
25419     } catch (...) {
25420       Xapian::SetPythonException();
25421       SWIG_fail;
25422     }
25423   }
25424   resultobj = SWIG_From_int(static_cast< int >(result));
25425   return resultobj;
25426 fail:
25427   return NULL;
25428 }
25429 
25430 
_wrap__MSetIterator___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25431 SWIGINTERN PyObject *_wrap__MSetIterator___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25432   PyObject *resultobj = 0;
25433   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25434   void *argp1 = 0 ;
25435   int res1 = 0 ;
25436   PyObject *swig_obj[1] ;
25437   std::string result;
25438 
25439   if (!args) SWIG_fail;
25440   swig_obj[0] = args;
25441   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25442   if (!SWIG_IsOK(res1)) {
25443     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator___str__" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25444   }
25445   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25446   {
25447     try {
25448       {
25449         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25450         result = ((Xapian::MSetIterator const *)arg1)->get_description();
25451         SWIG_PYTHON_THREAD_END_ALLOW;
25452       }
25453     } catch (...) {
25454       Xapian::SetPythonException();
25455       SWIG_fail;
25456     }
25457   }
25458   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
25459   return resultobj;
25460 fail:
25461   return NULL;
25462 }
25463 
25464 
_wrap__MSetIterator___eq__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25465 SWIGINTERN PyObject *_wrap__MSetIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25466   PyObject *resultobj = 0;
25467   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25468   Xapian::MSetIterator *arg2 = 0 ;
25469   void *argp1 = 0 ;
25470   int res1 = 0 ;
25471   void *argp2 = 0 ;
25472   int res2 = 0 ;
25473   PyObject *swig_obj[2] ;
25474   bool result;
25475 
25476   if (!SWIG_Python_UnpackTuple(args,"_MSetIterator___eq__",2,2,swig_obj)) SWIG_fail;
25477   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25478   if (!SWIG_IsOK(res1)) {
25479     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator___eq__" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
25480   }
25481   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25482   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25483   if (!SWIG_IsOK(res2)) {
25484     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_MSetIterator___eq__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25485   }
25486   if (!argp2) {
25487     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_MSetIterator___eq__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25488   }
25489   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
25490   {
25491     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25492     result = (bool)Xapian_MSetIterator___eq__(arg1,(Xapian::MSetIterator const &)*arg2);
25493     SWIG_PYTHON_THREAD_END_ALLOW;
25494   }
25495   resultobj = SWIG_From_bool(static_cast< bool >(result));
25496   return resultobj;
25497 fail:
25498   return NULL;
25499 }
25500 
25501 
_wrap__MSetIterator___ne__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25502 SWIGINTERN PyObject *_wrap__MSetIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25503   PyObject *resultobj = 0;
25504   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25505   Xapian::MSetIterator *arg2 = 0 ;
25506   void *argp1 = 0 ;
25507   int res1 = 0 ;
25508   void *argp2 = 0 ;
25509   int res2 = 0 ;
25510   PyObject *swig_obj[2] ;
25511   bool result;
25512 
25513   if (!SWIG_Python_UnpackTuple(args,"_MSetIterator___ne__",2,2,swig_obj)) SWIG_fail;
25514   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25515   if (!SWIG_IsOK(res1)) {
25516     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator___ne__" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
25517   }
25518   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25519   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25520   if (!SWIG_IsOK(res2)) {
25521     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_MSetIterator___ne__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25522   }
25523   if (!argp2) {
25524     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_MSetIterator___ne__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25525   }
25526   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
25527   {
25528     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25529     result = (bool)Xapian_MSetIterator___ne__(arg1,(Xapian::MSetIterator const &)*arg2);
25530     SWIG_PYTHON_THREAD_END_ALLOW;
25531   }
25532   resultobj = SWIG_From_bool(static_cast< bool >(result));
25533   return resultobj;
25534 fail:
25535   return NULL;
25536 }
25537 
25538 
_wrap__MSetIterator_equals(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25539 SWIGINTERN PyObject *_wrap__MSetIterator_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25540   PyObject *resultobj = 0;
25541   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25542   Xapian::MSetIterator *arg2 = 0 ;
25543   void *argp1 = 0 ;
25544   int res1 = 0 ;
25545   void *argp2 = 0 ;
25546   int res2 = 0 ;
25547   PyObject *swig_obj[2] ;
25548   bool result;
25549 
25550   if (!SWIG_Python_UnpackTuple(args,"_MSetIterator_equals",2,2,swig_obj)) SWIG_fail;
25551   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25552   if (!SWIG_IsOK(res1)) {
25553     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_equals" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25554   }
25555   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25556   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25557   if (!SWIG_IsOK(res2)) {
25558     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_MSetIterator_equals" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25559   }
25560   if (!argp2) {
25561     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_MSetIterator_equals" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25562   }
25563   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
25564   {
25565     try {
25566       {
25567         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25568         result = (bool)Xapian_MSetIterator_equals((Xapian::MSetIterator const *)arg1,(Xapian::MSetIterator const &)*arg2);
25569         SWIG_PYTHON_THREAD_END_ALLOW;
25570       }
25571     } catch (...) {
25572       Xapian::SetPythonException();
25573       SWIG_fail;
25574     }
25575   }
25576   resultobj = SWIG_From_bool(static_cast< bool >(result));
25577   return resultobj;
25578 fail:
25579   return NULL;
25580 }
25581 
25582 
_wrap__MSetIterator_get_docid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25583 SWIGINTERN PyObject *_wrap__MSetIterator_get_docid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25584   PyObject *resultobj = 0;
25585   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25586   void *argp1 = 0 ;
25587   int res1 = 0 ;
25588   PyObject *swig_obj[1] ;
25589   Xapian::docid result;
25590 
25591   if (!args) SWIG_fail;
25592   swig_obj[0] = args;
25593   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25594   if (!SWIG_IsOK(res1)) {
25595     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_get_docid" "', argument " "1"" of type '" "Xapian::MSetIterator const *""'");
25596   }
25597   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25598   {
25599     try {
25600       {
25601         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25602         result = (Xapian::docid)Xapian_MSetIterator_get_docid((Xapian::MSetIterator const *)arg1);
25603         SWIG_PYTHON_THREAD_END_ALLOW;
25604       }
25605     } catch (...) {
25606       Xapian::SetPythonException();
25607       SWIG_fail;
25608     }
25609   }
25610   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
25611   return resultobj;
25612 fail:
25613   return NULL;
25614 }
25615 
25616 
_wrap__MSetIterator___next__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25617 SWIGINTERN PyObject *_wrap__MSetIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25618   PyObject *resultobj = 0;
25619   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25620   void *argp1 = 0 ;
25621   int res1 = 0 ;
25622   PyObject *swig_obj[1] ;
25623 
25624   if (!args) SWIG_fail;
25625   swig_obj[0] = args;
25626   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25627   if (!SWIG_IsOK(res1)) {
25628     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator___next__" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
25629   }
25630   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25631   {
25632     try {
25633       {
25634         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25635         Xapian_MSetIterator_next(arg1);
25636         SWIG_PYTHON_THREAD_END_ALLOW;
25637       }
25638     } catch (...) {
25639       Xapian::SetPythonException();
25640       SWIG_fail;
25641     }
25642   }
25643   resultobj = SWIG_Py_Void();
25644   return resultobj;
25645 fail:
25646   return NULL;
25647 }
25648 
25649 
_wrap__MSetIterator_prev(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25650 SWIGINTERN PyObject *_wrap__MSetIterator_prev(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25651   PyObject *resultobj = 0;
25652   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25653   void *argp1 = 0 ;
25654   int res1 = 0 ;
25655   PyObject *swig_obj[1] ;
25656 
25657   if (!args) SWIG_fail;
25658   swig_obj[0] = args;
25659   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, 0 |  0 );
25660   if (!SWIG_IsOK(res1)) {
25661     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_MSetIterator_prev" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
25662   }
25663   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25664   {
25665     try {
25666       {
25667         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25668         Xapian_MSetIterator_prev(arg1);
25669         SWIG_PYTHON_THREAD_END_ALLOW;
25670       }
25671     } catch (...) {
25672       Xapian::SetPythonException();
25673       SWIG_fail;
25674     }
25675   }
25676   resultobj = SWIG_Py_Void();
25677   return resultobj;
25678 fail:
25679   return NULL;
25680 }
25681 
25682 
_wrap_delete__MSetIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25683 SWIGINTERN PyObject *_wrap_delete__MSetIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25684   PyObject *resultobj = 0;
25685   Xapian::MSetIterator *arg1 = (Xapian::MSetIterator *) 0 ;
25686   void *argp1 = 0 ;
25687   int res1 = 0 ;
25688   PyObject *swig_obj[1] ;
25689 
25690   if (!args) SWIG_fail;
25691   swig_obj[0] = args;
25692   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_DISOWN |  0 );
25693   if (!SWIG_IsOK(res1)) {
25694     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__MSetIterator" "', argument " "1"" of type '" "Xapian::MSetIterator *""'");
25695   }
25696   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25697   {
25698     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25699     delete arg1;
25700     SWIG_PYTHON_THREAD_END_ALLOW;
25701   }
25702   resultobj = SWIG_Py_Void();
25703   return resultobj;
25704 fail:
25705   return NULL;
25706 }
25707 
25708 
_MSetIterator_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25709 SWIGINTERN PyObject *_MSetIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25710   PyObject *obj;
25711   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
25712   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__MSetIterator, SWIG_NewClientData(obj));
25713   return SWIG_Py_Void();
25714 }
25715 
_MSetIterator_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)25716 SWIGINTERN PyObject *_MSetIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25717   return SWIG_Python_InitShadowInstance(args);
25718 }
25719 
_wrap___eq____SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)25720 SWIGINTERN PyObject *_wrap___eq____SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25721   PyObject *resultobj = 0;
25722   Xapian::MSetIterator *arg1 = 0 ;
25723   Xapian::MSetIterator *arg2 = 0 ;
25724   void *argp1 = 0 ;
25725   int res1 = 0 ;
25726   void *argp2 = 0 ;
25727   int res2 = 0 ;
25728   bool result;
25729 
25730   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
25731   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25732   if (!SWIG_IsOK(res1)) {
25733     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25734   }
25735   if (!argp1) {
25736     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25737   }
25738   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25739   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25740   if (!SWIG_IsOK(res2)) {
25741     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25742   }
25743   if (!argp2) {
25744     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25745   }
25746   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
25747   {
25748     try {
25749       {
25750         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25751         result = (bool)Xapian::operator ==((Xapian::MSetIterator const &)*arg1,(Xapian::MSetIterator const &)*arg2);
25752         SWIG_PYTHON_THREAD_END_ALLOW;
25753       }
25754     } catch (...) {
25755       Xapian::SetPythonException();
25756       SWIG_fail;
25757     }
25758   }
25759   resultobj = SWIG_From_bool(static_cast< bool >(result));
25760   return resultobj;
25761 fail:
25762   return NULL;
25763 }
25764 
25765 
_wrap___ne____SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)25766 SWIGINTERN PyObject *_wrap___ne____SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25767   PyObject *resultobj = 0;
25768   Xapian::MSetIterator *arg1 = 0 ;
25769   Xapian::MSetIterator *arg2 = 0 ;
25770   void *argp1 = 0 ;
25771   int res1 = 0 ;
25772   void *argp2 = 0 ;
25773   int res2 = 0 ;
25774   bool result;
25775 
25776   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
25777   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25778   if (!SWIG_IsOK(res1)) {
25779     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25780   }
25781   if (!argp1) {
25782     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25783   }
25784   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25785   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25786   if (!SWIG_IsOK(res2)) {
25787     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25788   }
25789   if (!argp2) {
25790     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25791   }
25792   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
25793   {
25794     try {
25795       {
25796         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25797         result = (bool)Xapian::operator !=((Xapian::MSetIterator const &)*arg1,(Xapian::MSetIterator const &)*arg2);
25798         SWIG_PYTHON_THREAD_END_ALLOW;
25799       }
25800     } catch (...) {
25801       Xapian::SetPythonException();
25802       SWIG_fail;
25803     }
25804   }
25805   resultobj = SWIG_From_bool(static_cast< bool >(result));
25806   return resultobj;
25807 fail:
25808   return NULL;
25809 }
25810 
25811 
_wrap___lt____SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)25812 SWIGINTERN PyObject *_wrap___lt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25813   PyObject *resultobj = 0;
25814   Xapian::MSetIterator *arg1 = 0 ;
25815   Xapian::MSetIterator *arg2 = 0 ;
25816   void *argp1 = 0 ;
25817   int res1 = 0 ;
25818   void *argp2 = 0 ;
25819   int res2 = 0 ;
25820   bool result;
25821 
25822   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
25823   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25824   if (!SWIG_IsOK(res1)) {
25825     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__lt__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25826   }
25827   if (!argp1) {
25828     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__lt__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25829   }
25830   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25831   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25832   if (!SWIG_IsOK(res2)) {
25833     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__lt__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25834   }
25835   if (!argp2) {
25836     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__lt__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25837   }
25838   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
25839   {
25840     try {
25841       {
25842         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25843         result = (bool)Xapian::operator <((Xapian::MSetIterator const &)*arg1,(Xapian::MSetIterator const &)*arg2);
25844         SWIG_PYTHON_THREAD_END_ALLOW;
25845       }
25846     } catch (...) {
25847       Xapian::SetPythonException();
25848       SWIG_fail;
25849     }
25850   }
25851   resultobj = SWIG_From_bool(static_cast< bool >(result));
25852   return resultobj;
25853 fail:
25854   return NULL;
25855 }
25856 
25857 
_wrap___gt____SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)25858 SWIGINTERN PyObject *_wrap___gt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25859   PyObject *resultobj = 0;
25860   Xapian::MSetIterator *arg1 = 0 ;
25861   Xapian::MSetIterator *arg2 = 0 ;
25862   void *argp1 = 0 ;
25863   int res1 = 0 ;
25864   void *argp2 = 0 ;
25865   int res2 = 0 ;
25866   bool result;
25867 
25868   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
25869   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25870   if (!SWIG_IsOK(res1)) {
25871     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__gt__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25872   }
25873   if (!argp1) {
25874     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__gt__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25875   }
25876   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25877   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25878   if (!SWIG_IsOK(res2)) {
25879     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__gt__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25880   }
25881   if (!argp2) {
25882     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__gt__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25883   }
25884   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
25885   {
25886     try {
25887       {
25888         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25889         result = (bool)Xapian::operator >((Xapian::MSetIterator const &)*arg1,(Xapian::MSetIterator const &)*arg2);
25890         SWIG_PYTHON_THREAD_END_ALLOW;
25891       }
25892     } catch (...) {
25893       Xapian::SetPythonException();
25894       SWIG_fail;
25895     }
25896   }
25897   resultobj = SWIG_From_bool(static_cast< bool >(result));
25898   return resultobj;
25899 fail:
25900   return NULL;
25901 }
25902 
25903 
_wrap___ge____SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)25904 SWIGINTERN PyObject *_wrap___ge____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25905   PyObject *resultobj = 0;
25906   Xapian::MSetIterator *arg1 = 0 ;
25907   Xapian::MSetIterator *arg2 = 0 ;
25908   void *argp1 = 0 ;
25909   int res1 = 0 ;
25910   void *argp2 = 0 ;
25911   int res2 = 0 ;
25912   bool result;
25913 
25914   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
25915   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25916   if (!SWIG_IsOK(res1)) {
25917     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ge__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25918   }
25919   if (!argp1) {
25920     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ge__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25921   }
25922   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25923   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25924   if (!SWIG_IsOK(res2)) {
25925     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__ge__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25926   }
25927   if (!argp2) {
25928     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ge__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25929   }
25930   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
25931   {
25932     try {
25933       {
25934         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25935         result = (bool)Xapian::operator >=((Xapian::MSetIterator const &)*arg1,(Xapian::MSetIterator const &)*arg2);
25936         SWIG_PYTHON_THREAD_END_ALLOW;
25937       }
25938     } catch (...) {
25939       Xapian::SetPythonException();
25940       SWIG_fail;
25941     }
25942   }
25943   resultobj = SWIG_From_bool(static_cast< bool >(result));
25944   return resultobj;
25945 fail:
25946   return NULL;
25947 }
25948 
25949 
_wrap___le____SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)25950 SWIGINTERN PyObject *_wrap___le____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25951   PyObject *resultobj = 0;
25952   Xapian::MSetIterator *arg1 = 0 ;
25953   Xapian::MSetIterator *arg2 = 0 ;
25954   void *argp1 = 0 ;
25955   int res1 = 0 ;
25956   void *argp2 = 0 ;
25957   int res2 = 0 ;
25958   bool result;
25959 
25960   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
25961   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25962   if (!SWIG_IsOK(res1)) {
25963     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__le__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25964   }
25965   if (!argp1) {
25966     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__le__" "', argument " "1"" of type '" "Xapian::MSetIterator const &""'");
25967   }
25968   arg1 = reinterpret_cast< Xapian::MSetIterator * >(argp1);
25969   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
25970   if (!SWIG_IsOK(res2)) {
25971     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__le__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25972   }
25973   if (!argp2) {
25974     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__le__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
25975   }
25976   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
25977   {
25978     try {
25979       {
25980         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
25981         result = (bool)Xapian::operator <=((Xapian::MSetIterator const &)*arg1,(Xapian::MSetIterator const &)*arg2);
25982         SWIG_PYTHON_THREAD_END_ALLOW;
25983       }
25984     } catch (...) {
25985       Xapian::SetPythonException();
25986       SWIG_fail;
25987     }
25988   }
25989   resultobj = SWIG_From_bool(static_cast< bool >(result));
25990   return resultobj;
25991 fail:
25992   return NULL;
25993 }
25994 
25995 
_wrap___add____SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)25996 SWIGINTERN PyObject *_wrap___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25997   PyObject *resultobj = 0;
25998   Xapian::MSetIterator::difference_type arg1 ;
25999   Xapian::MSetIterator *arg2 = 0 ;
26000   int val1 ;
26001   int ecode1 = 0 ;
26002   void *argp2 = 0 ;
26003   int res2 = 0 ;
26004   Xapian::MSetIterator result;
26005 
26006   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26007   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
26008   if (!SWIG_IsOK(ecode1)) {
26009     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "__add__" "', argument " "1"" of type '" "Xapian::MSetIterator::difference_type""'");
26010   }
26011   arg1 = static_cast< Xapian::MSetIterator::difference_type >(val1);
26012   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
26013   if (!SWIG_IsOK(res2)) {
26014     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__add__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
26015   }
26016   if (!argp2) {
26017     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__add__" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
26018   }
26019   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
26020   {
26021     try {
26022       {
26023         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26024         result = Xapian::operator +(arg1,(Xapian::MSetIterator const &)*arg2);
26025         SWIG_PYTHON_THREAD_END_ALLOW;
26026       }
26027     } catch (...) {
26028       Xapian::SetPythonException();
26029       SWIG_fail;
26030     }
26031   }
26032   resultobj = SWIG_NewPointerObj((new Xapian::MSetIterator(static_cast< const Xapian::MSetIterator& >(result))), SWIGTYPE_p_Xapian__MSetIterator, SWIG_POINTER_OWN |  0 );
26033   return resultobj;
26034 fail:
26035   return NULL;
26036 }
26037 
26038 
_wrap_new_ESet(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26039 SWIGINTERN PyObject *_wrap_new_ESet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26040   PyObject *resultobj = 0;
26041   Xapian::ESet *result = 0 ;
26042 
26043   if (!SWIG_Python_UnpackTuple(args,"new_ESet",0,0,0)) SWIG_fail;
26044   {
26045     try {
26046       {
26047         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26048         result = (Xapian::ESet *)new Xapian::ESet();
26049         SWIG_PYTHON_THREAD_END_ALLOW;
26050       }
26051     } catch (...) {
26052       Xapian::SetPythonException();
26053       SWIG_fail;
26054     }
26055   }
26056   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_NEW |  0 );
26057   return resultobj;
26058 fail:
26059   return NULL;
26060 }
26061 
26062 
_wrap_delete_ESet(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26063 SWIGINTERN PyObject *_wrap_delete_ESet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26064   PyObject *resultobj = 0;
26065   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
26066   void *argp1 = 0 ;
26067   int res1 = 0 ;
26068   PyObject *swig_obj[1] ;
26069 
26070   if (!args) SWIG_fail;
26071   swig_obj[0] = args;
26072   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_DISOWN |  0 );
26073   if (!SWIG_IsOK(res1)) {
26074     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ESet" "', argument " "1"" of type '" "Xapian::ESet *""'");
26075   }
26076   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
26077   {
26078     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26079     delete arg1;
26080     SWIG_PYTHON_THREAD_END_ALLOW;
26081   }
26082   resultobj = SWIG_Py_Void();
26083   return resultobj;
26084 fail:
26085   return NULL;
26086 }
26087 
26088 
_wrap_ESet_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26089 SWIGINTERN PyObject *_wrap_ESet_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26090   PyObject *resultobj = 0;
26091   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
26092   void *argp1 = 0 ;
26093   int res1 = 0 ;
26094   PyObject *swig_obj[1] ;
26095   Xapian::doccount result;
26096 
26097   if (!args) SWIG_fail;
26098   swig_obj[0] = args;
26099   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
26100   if (!SWIG_IsOK(res1)) {
26101     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet_size" "', argument " "1"" of type '" "Xapian::ESet const *""'");
26102   }
26103   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
26104   {
26105     try {
26106       {
26107         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26108         result = (Xapian::doccount)((Xapian::ESet const *)arg1)->size();
26109         SWIG_PYTHON_THREAD_END_ALLOW;
26110       }
26111     } catch (...) {
26112       Xapian::SetPythonException();
26113       SWIG_fail;
26114     }
26115   }
26116   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
26117   return resultobj;
26118 fail:
26119   return NULL;
26120 }
26121 
26122 
_wrap_ESet_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26123 SWIGINTERN PyObject *_wrap_ESet_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26124   PyObject *resultobj = 0;
26125   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
26126   void *argp1 = 0 ;
26127   int res1 = 0 ;
26128   PyObject *swig_obj[1] ;
26129   bool result;
26130 
26131   if (!args) SWIG_fail;
26132   swig_obj[0] = args;
26133   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
26134   if (!SWIG_IsOK(res1)) {
26135     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet_empty" "', argument " "1"" of type '" "Xapian::ESet const *""'");
26136   }
26137   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
26138   {
26139     try {
26140       {
26141         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26142         result = (bool)((Xapian::ESet const *)arg1)->empty();
26143         SWIG_PYTHON_THREAD_END_ALLOW;
26144       }
26145     } catch (...) {
26146       Xapian::SetPythonException();
26147       SWIG_fail;
26148     }
26149   }
26150   resultobj = SWIG_From_bool(static_cast< bool >(result));
26151   return resultobj;
26152 fail:
26153   return NULL;
26154 }
26155 
26156 
_wrap_ESet_get_ebound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26157 SWIGINTERN PyObject *_wrap_ESet_get_ebound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26158   PyObject *resultobj = 0;
26159   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
26160   void *argp1 = 0 ;
26161   int res1 = 0 ;
26162   PyObject *swig_obj[1] ;
26163   Xapian::termcount result;
26164 
26165   if (!args) SWIG_fail;
26166   swig_obj[0] = args;
26167   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
26168   if (!SWIG_IsOK(res1)) {
26169     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet_get_ebound" "', argument " "1"" of type '" "Xapian::ESet const *""'");
26170   }
26171   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
26172   {
26173     try {
26174       {
26175         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26176         result = (Xapian::termcount)((Xapian::ESet const *)arg1)->get_ebound();
26177         SWIG_PYTHON_THREAD_END_ALLOW;
26178       }
26179     } catch (...) {
26180       Xapian::SetPythonException();
26181       SWIG_fail;
26182     }
26183   }
26184   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
26185   return resultobj;
26186 fail:
26187   return NULL;
26188 }
26189 
26190 
_wrap_ESet__begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26191 SWIGINTERN PyObject *_wrap_ESet__begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26192   PyObject *resultobj = 0;
26193   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
26194   void *argp1 = 0 ;
26195   int res1 = 0 ;
26196   PyObject *swig_obj[1] ;
26197   Xapian::ESetIterator result;
26198 
26199   if (!args) SWIG_fail;
26200   swig_obj[0] = args;
26201   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
26202   if (!SWIG_IsOK(res1)) {
26203     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet__begin" "', argument " "1"" of type '" "Xapian::ESet const *""'");
26204   }
26205   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
26206   {
26207     try {
26208       {
26209         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26210         result = ((Xapian::ESet const *)arg1)->begin();
26211         SWIG_PYTHON_THREAD_END_ALLOW;
26212       }
26213     } catch (...) {
26214       Xapian::SetPythonException();
26215       SWIG_fail;
26216     }
26217   }
26218   resultobj = SWIG_NewPointerObj((new Xapian::ESetIterator(static_cast< const Xapian::ESetIterator& >(result))), SWIGTYPE_p_Xapian__ESetIterator, SWIG_POINTER_OWN |  0 );
26219   return resultobj;
26220 fail:
26221   return NULL;
26222 }
26223 
26224 
_wrap_ESet__end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26225 SWIGINTERN PyObject *_wrap_ESet__end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26226   PyObject *resultobj = 0;
26227   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
26228   void *argp1 = 0 ;
26229   int res1 = 0 ;
26230   PyObject *swig_obj[1] ;
26231   Xapian::ESetIterator result;
26232 
26233   if (!args) SWIG_fail;
26234   swig_obj[0] = args;
26235   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
26236   if (!SWIG_IsOK(res1)) {
26237     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet__end" "', argument " "1"" of type '" "Xapian::ESet const *""'");
26238   }
26239   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
26240   {
26241     try {
26242       {
26243         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26244         result = ((Xapian::ESet const *)arg1)->end();
26245         SWIG_PYTHON_THREAD_END_ALLOW;
26246       }
26247     } catch (...) {
26248       Xapian::SetPythonException();
26249       SWIG_fail;
26250     }
26251   }
26252   resultobj = SWIG_NewPointerObj((new Xapian::ESetIterator(static_cast< const Xapian::ESetIterator& >(result))), SWIGTYPE_p_Xapian__ESetIterator, SWIG_POINTER_OWN |  0 );
26253   return resultobj;
26254 fail:
26255   return NULL;
26256 }
26257 
26258 
_wrap_ESet_back(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26259 SWIGINTERN PyObject *_wrap_ESet_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26260   PyObject *resultobj = 0;
26261   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
26262   void *argp1 = 0 ;
26263   int res1 = 0 ;
26264   PyObject *swig_obj[1] ;
26265   Xapian::ESetIterator result;
26266 
26267   if (!args) SWIG_fail;
26268   swig_obj[0] = args;
26269   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
26270   if (!SWIG_IsOK(res1)) {
26271     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet_back" "', argument " "1"" of type '" "Xapian::ESet const *""'");
26272   }
26273   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
26274   {
26275     try {
26276       {
26277         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26278         result = ((Xapian::ESet const *)arg1)->back();
26279         SWIG_PYTHON_THREAD_END_ALLOW;
26280       }
26281     } catch (...) {
26282       Xapian::SetPythonException();
26283       SWIG_fail;
26284     }
26285   }
26286   resultobj = SWIG_NewPointerObj((new Xapian::ESetIterator(static_cast< const Xapian::ESetIterator& >(result))), SWIGTYPE_p_Xapian__ESetIterator, SWIG_POINTER_OWN |  0 );
26287   return resultobj;
26288 fail:
26289   return NULL;
26290 }
26291 
26292 
_wrap_ESet___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26293 SWIGINTERN PyObject *_wrap_ESet___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26294   PyObject *resultobj = 0;
26295   Xapian::ESet *arg1 = (Xapian::ESet *) 0 ;
26296   void *argp1 = 0 ;
26297   int res1 = 0 ;
26298   PyObject *swig_obj[1] ;
26299   std::string result;
26300 
26301   if (!args) SWIG_fail;
26302   swig_obj[0] = args;
26303   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
26304   if (!SWIG_IsOK(res1)) {
26305     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ESet___str__" "', argument " "1"" of type '" "Xapian::ESet const *""'");
26306   }
26307   arg1 = reinterpret_cast< Xapian::ESet * >(argp1);
26308   {
26309     try {
26310       {
26311         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26312         result = ((Xapian::ESet const *)arg1)->get_description();
26313         SWIG_PYTHON_THREAD_END_ALLOW;
26314       }
26315     } catch (...) {
26316       Xapian::SetPythonException();
26317       SWIG_fail;
26318     }
26319   }
26320   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
26321   return resultobj;
26322 fail:
26323   return NULL;
26324 }
26325 
26326 
ESet_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26327 SWIGINTERN PyObject *ESet_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26328   PyObject *obj;
26329   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
26330   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ESet, SWIG_NewClientData(obj));
26331   return SWIG_Py_Void();
26332 }
26333 
ESet_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26334 SWIGINTERN PyObject *ESet_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26335   return SWIG_Python_InitShadowInstance(args);
26336 }
26337 
_wrap__ESetIterator_eset_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26338 SWIGINTERN PyObject *_wrap__ESetIterator_eset_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26339   PyObject *resultobj = 0;
26340   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26341   Xapian::ESet *arg2 = (Xapian::ESet *) 0 ;
26342   void *argp1 = 0 ;
26343   int res1 = 0 ;
26344   void *argp2 = 0 ;
26345   int res2 = 0 ;
26346   PyObject *swig_obj[2] ;
26347 
26348   if (!SWIG_Python_UnpackTuple(args,"_ESetIterator_eset_set",2,2,swig_obj)) SWIG_fail;
26349   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26350   if (!SWIG_IsOK(res1)) {
26351     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator_eset_set" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
26352   }
26353   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26354   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__ESet, 0 |  0 );
26355   if (!SWIG_IsOK(res2)) {
26356     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_ESetIterator_eset_set" "', argument " "2"" of type '" "Xapian::ESet *""'");
26357   }
26358   arg2 = reinterpret_cast< Xapian::ESet * >(argp2);
26359   {
26360     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26361     if (arg1) (arg1)->eset = *arg2;
26362     SWIG_PYTHON_THREAD_END_ALLOW;
26363   }
26364   resultobj = SWIG_Py_Void();
26365   return resultobj;
26366 fail:
26367   return NULL;
26368 }
26369 
26370 
_wrap__ESetIterator_eset_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26371 SWIGINTERN PyObject *_wrap__ESetIterator_eset_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26372   PyObject *resultobj = 0;
26373   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26374   void *argp1 = 0 ;
26375   int res1 = 0 ;
26376   PyObject *swig_obj[1] ;
26377   Xapian::ESet *result = 0 ;
26378 
26379   if (!args) SWIG_fail;
26380   swig_obj[0] = args;
26381   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26382   if (!SWIG_IsOK(res1)) {
26383     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator_eset_get" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
26384   }
26385   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26386   {
26387     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26388     result = (Xapian::ESet *)& ((arg1)->eset);
26389     SWIG_PYTHON_THREAD_END_ALLOW;
26390   }
26391   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ESet, 0 |  0 );
26392   return resultobj;
26393 fail:
26394   return NULL;
26395 }
26396 
26397 
_wrap__ESetIterator_off_from_end_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26398 SWIGINTERN PyObject *_wrap__ESetIterator_off_from_end_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26399   PyObject *resultobj = 0;
26400   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26401   Xapian::ESet::size_type arg2 ;
26402   void *argp1 = 0 ;
26403   int res1 = 0 ;
26404   unsigned int val2 ;
26405   int ecode2 = 0 ;
26406   PyObject *swig_obj[2] ;
26407 
26408   if (!SWIG_Python_UnpackTuple(args,"_ESetIterator_off_from_end_set",2,2,swig_obj)) SWIG_fail;
26409   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26410   if (!SWIG_IsOK(res1)) {
26411     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator_off_from_end_set" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
26412   }
26413   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26414   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
26415   if (!SWIG_IsOK(ecode2)) {
26416     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_ESetIterator_off_from_end_set" "', argument " "2"" of type '" "Xapian::ESet::size_type""'");
26417   }
26418   arg2 = static_cast< Xapian::ESet::size_type >(val2);
26419   {
26420     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26421     if (arg1) (arg1)->off_from_end = arg2;
26422     SWIG_PYTHON_THREAD_END_ALLOW;
26423   }
26424   resultobj = SWIG_Py_Void();
26425   return resultobj;
26426 fail:
26427   return NULL;
26428 }
26429 
26430 
_wrap__ESetIterator_off_from_end_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26431 SWIGINTERN PyObject *_wrap__ESetIterator_off_from_end_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26432   PyObject *resultobj = 0;
26433   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26434   void *argp1 = 0 ;
26435   int res1 = 0 ;
26436   PyObject *swig_obj[1] ;
26437   Xapian::ESet::size_type result;
26438 
26439   if (!args) SWIG_fail;
26440   swig_obj[0] = args;
26441   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26442   if (!SWIG_IsOK(res1)) {
26443     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator_off_from_end_get" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
26444   }
26445   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26446   {
26447     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26448     result = (Xapian::ESet::size_type) ((arg1)->off_from_end);
26449     SWIG_PYTHON_THREAD_END_ALLOW;
26450   }
26451   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
26452   return resultobj;
26453 fail:
26454   return NULL;
26455 }
26456 
26457 
_wrap_new__ESetIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26458 SWIGINTERN PyObject *_wrap_new__ESetIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26459   PyObject *resultobj = 0;
26460   Xapian::ESetIterator *result = 0 ;
26461 
26462   if (!SWIG_Python_UnpackTuple(args,"new__ESetIterator",0,0,0)) SWIG_fail;
26463   {
26464     try {
26465       {
26466         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26467         result = (Xapian::ESetIterator *)new Xapian::ESetIterator();
26468         SWIG_PYTHON_THREAD_END_ALLOW;
26469       }
26470     } catch (...) {
26471       Xapian::SetPythonException();
26472       SWIG_fail;
26473     }
26474   }
26475   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ESetIterator, SWIG_POINTER_NEW |  0 );
26476   return resultobj;
26477 fail:
26478   return NULL;
26479 }
26480 
26481 
_wrap__ESetIterator_get_weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26482 SWIGINTERN PyObject *_wrap__ESetIterator_get_weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26483   PyObject *resultobj = 0;
26484   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26485   void *argp1 = 0 ;
26486   int res1 = 0 ;
26487   PyObject *swig_obj[1] ;
26488   double result;
26489 
26490   if (!args) SWIG_fail;
26491   swig_obj[0] = args;
26492   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26493   if (!SWIG_IsOK(res1)) {
26494     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator_get_weight" "', argument " "1"" of type '" "Xapian::ESetIterator const *""'");
26495   }
26496   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26497   {
26498     try {
26499       {
26500         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26501         result = (double)((Xapian::ESetIterator const *)arg1)->get_weight();
26502         SWIG_PYTHON_THREAD_END_ALLOW;
26503       }
26504     } catch (...) {
26505       Xapian::SetPythonException();
26506       SWIG_fail;
26507     }
26508   }
26509   resultobj = SWIG_From_double(static_cast< double >(result));
26510   return resultobj;
26511 fail:
26512   return NULL;
26513 }
26514 
26515 
_wrap__ESetIterator___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26516 SWIGINTERN PyObject *_wrap__ESetIterator___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26517   PyObject *resultobj = 0;
26518   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26519   void *argp1 = 0 ;
26520   int res1 = 0 ;
26521   PyObject *swig_obj[1] ;
26522   std::string result;
26523 
26524   if (!args) SWIG_fail;
26525   swig_obj[0] = args;
26526   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26527   if (!SWIG_IsOK(res1)) {
26528     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator___str__" "', argument " "1"" of type '" "Xapian::ESetIterator const *""'");
26529   }
26530   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26531   {
26532     try {
26533       {
26534         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26535         result = ((Xapian::ESetIterator const *)arg1)->get_description();
26536         SWIG_PYTHON_THREAD_END_ALLOW;
26537       }
26538     } catch (...) {
26539       Xapian::SetPythonException();
26540       SWIG_fail;
26541     }
26542   }
26543   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
26544   return resultobj;
26545 fail:
26546   return NULL;
26547 }
26548 
26549 
_wrap__ESetIterator___eq__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26550 SWIGINTERN PyObject *_wrap__ESetIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26551   PyObject *resultobj = 0;
26552   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26553   Xapian::ESetIterator *arg2 = 0 ;
26554   void *argp1 = 0 ;
26555   int res1 = 0 ;
26556   void *argp2 = 0 ;
26557   int res2 = 0 ;
26558   PyObject *swig_obj[2] ;
26559   bool result;
26560 
26561   if (!SWIG_Python_UnpackTuple(args,"_ESetIterator___eq__",2,2,swig_obj)) SWIG_fail;
26562   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26563   if (!SWIG_IsOK(res1)) {
26564     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator___eq__" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
26565   }
26566   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26567   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
26568   if (!SWIG_IsOK(res2)) {
26569     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_ESetIterator___eq__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26570   }
26571   if (!argp2) {
26572     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_ESetIterator___eq__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26573   }
26574   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
26575   {
26576     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26577     result = (bool)Xapian_ESetIterator___eq__(arg1,(Xapian::ESetIterator const &)*arg2);
26578     SWIG_PYTHON_THREAD_END_ALLOW;
26579   }
26580   resultobj = SWIG_From_bool(static_cast< bool >(result));
26581   return resultobj;
26582 fail:
26583   return NULL;
26584 }
26585 
26586 
_wrap__ESetIterator___ne__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26587 SWIGINTERN PyObject *_wrap__ESetIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26588   PyObject *resultobj = 0;
26589   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26590   Xapian::ESetIterator *arg2 = 0 ;
26591   void *argp1 = 0 ;
26592   int res1 = 0 ;
26593   void *argp2 = 0 ;
26594   int res2 = 0 ;
26595   PyObject *swig_obj[2] ;
26596   bool result;
26597 
26598   if (!SWIG_Python_UnpackTuple(args,"_ESetIterator___ne__",2,2,swig_obj)) SWIG_fail;
26599   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26600   if (!SWIG_IsOK(res1)) {
26601     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator___ne__" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
26602   }
26603   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26604   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
26605   if (!SWIG_IsOK(res2)) {
26606     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_ESetIterator___ne__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26607   }
26608   if (!argp2) {
26609     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_ESetIterator___ne__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26610   }
26611   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
26612   {
26613     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26614     result = (bool)Xapian_ESetIterator___ne__(arg1,(Xapian::ESetIterator const &)*arg2);
26615     SWIG_PYTHON_THREAD_END_ALLOW;
26616   }
26617   resultobj = SWIG_From_bool(static_cast< bool >(result));
26618   return resultobj;
26619 fail:
26620   return NULL;
26621 }
26622 
26623 
_wrap__ESetIterator_equals(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26624 SWIGINTERN PyObject *_wrap__ESetIterator_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26625   PyObject *resultobj = 0;
26626   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26627   Xapian::ESetIterator *arg2 = 0 ;
26628   void *argp1 = 0 ;
26629   int res1 = 0 ;
26630   void *argp2 = 0 ;
26631   int res2 = 0 ;
26632   PyObject *swig_obj[2] ;
26633   bool result;
26634 
26635   if (!SWIG_Python_UnpackTuple(args,"_ESetIterator_equals",2,2,swig_obj)) SWIG_fail;
26636   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26637   if (!SWIG_IsOK(res1)) {
26638     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator_equals" "', argument " "1"" of type '" "Xapian::ESetIterator const *""'");
26639   }
26640   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26641   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
26642   if (!SWIG_IsOK(res2)) {
26643     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_ESetIterator_equals" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26644   }
26645   if (!argp2) {
26646     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_ESetIterator_equals" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26647   }
26648   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
26649   {
26650     try {
26651       {
26652         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26653         result = (bool)Xapian_ESetIterator_equals((Xapian::ESetIterator const *)arg1,(Xapian::ESetIterator const &)*arg2);
26654         SWIG_PYTHON_THREAD_END_ALLOW;
26655       }
26656     } catch (...) {
26657       Xapian::SetPythonException();
26658       SWIG_fail;
26659     }
26660   }
26661   resultobj = SWIG_From_bool(static_cast< bool >(result));
26662   return resultobj;
26663 fail:
26664   return NULL;
26665 }
26666 
26667 
_wrap__ESetIterator_get_term(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26668 SWIGINTERN PyObject *_wrap__ESetIterator_get_term(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26669   PyObject *resultobj = 0;
26670   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26671   void *argp1 = 0 ;
26672   int res1 = 0 ;
26673   PyObject *swig_obj[1] ;
26674   std::string result;
26675 
26676   if (!args) SWIG_fail;
26677   swig_obj[0] = args;
26678   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26679   if (!SWIG_IsOK(res1)) {
26680     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator_get_term" "', argument " "1"" of type '" "Xapian::ESetIterator const *""'");
26681   }
26682   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26683   {
26684     try {
26685       {
26686         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26687         result = Xapian_ESetIterator_get_term((Xapian::ESetIterator const *)arg1);
26688         SWIG_PYTHON_THREAD_END_ALLOW;
26689       }
26690     } catch (...) {
26691       Xapian::SetPythonException();
26692       SWIG_fail;
26693     }
26694   }
26695 
26696   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
26697 
26698   return resultobj;
26699 fail:
26700   return NULL;
26701 }
26702 
26703 
_wrap__ESetIterator___next__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26704 SWIGINTERN PyObject *_wrap__ESetIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26705   PyObject *resultobj = 0;
26706   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26707   void *argp1 = 0 ;
26708   int res1 = 0 ;
26709   PyObject *swig_obj[1] ;
26710 
26711   if (!args) SWIG_fail;
26712   swig_obj[0] = args;
26713   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26714   if (!SWIG_IsOK(res1)) {
26715     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator___next__" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
26716   }
26717   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26718   {
26719     try {
26720       {
26721         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26722         Xapian_ESetIterator_next(arg1);
26723         SWIG_PYTHON_THREAD_END_ALLOW;
26724       }
26725     } catch (...) {
26726       Xapian::SetPythonException();
26727       SWIG_fail;
26728     }
26729   }
26730   resultobj = SWIG_Py_Void();
26731   return resultobj;
26732 fail:
26733   return NULL;
26734 }
26735 
26736 
_wrap__ESetIterator_prev(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26737 SWIGINTERN PyObject *_wrap__ESetIterator_prev(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26738   PyObject *resultobj = 0;
26739   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26740   void *argp1 = 0 ;
26741   int res1 = 0 ;
26742   PyObject *swig_obj[1] ;
26743 
26744   if (!args) SWIG_fail;
26745   swig_obj[0] = args;
26746   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, 0 |  0 );
26747   if (!SWIG_IsOK(res1)) {
26748     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_ESetIterator_prev" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
26749   }
26750   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26751   {
26752     try {
26753       {
26754         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26755         Xapian_ESetIterator_prev(arg1);
26756         SWIG_PYTHON_THREAD_END_ALLOW;
26757       }
26758     } catch (...) {
26759       Xapian::SetPythonException();
26760       SWIG_fail;
26761     }
26762   }
26763   resultobj = SWIG_Py_Void();
26764   return resultobj;
26765 fail:
26766   return NULL;
26767 }
26768 
26769 
_wrap_delete__ESetIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26770 SWIGINTERN PyObject *_wrap_delete__ESetIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26771   PyObject *resultobj = 0;
26772   Xapian::ESetIterator *arg1 = (Xapian::ESetIterator *) 0 ;
26773   void *argp1 = 0 ;
26774   int res1 = 0 ;
26775   PyObject *swig_obj[1] ;
26776 
26777   if (!args) SWIG_fail;
26778   swig_obj[0] = args;
26779   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ESetIterator, SWIG_POINTER_DISOWN |  0 );
26780   if (!SWIG_IsOK(res1)) {
26781     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__ESetIterator" "', argument " "1"" of type '" "Xapian::ESetIterator *""'");
26782   }
26783   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26784   {
26785     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26786     delete arg1;
26787     SWIG_PYTHON_THREAD_END_ALLOW;
26788   }
26789   resultobj = SWIG_Py_Void();
26790   return resultobj;
26791 fail:
26792   return NULL;
26793 }
26794 
26795 
_ESetIterator_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26796 SWIGINTERN PyObject *_ESetIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26797   PyObject *obj;
26798   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
26799   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ESetIterator, SWIG_NewClientData(obj));
26800   return SWIG_Py_Void();
26801 }
26802 
_ESetIterator_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)26803 SWIGINTERN PyObject *_ESetIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26804   return SWIG_Python_InitShadowInstance(args);
26805 }
26806 
_wrap___eq____SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)26807 SWIGINTERN PyObject *_wrap___eq____SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26808   PyObject *resultobj = 0;
26809   Xapian::ESetIterator *arg1 = 0 ;
26810   Xapian::ESetIterator *arg2 = 0 ;
26811   void *argp1 = 0 ;
26812   int res1 = 0 ;
26813   void *argp2 = 0 ;
26814   int res2 = 0 ;
26815   bool result;
26816 
26817   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26818   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
26819   if (!SWIG_IsOK(res1)) {
26820     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
26821   }
26822   if (!argp1) {
26823     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
26824   }
26825   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26826   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
26827   if (!SWIG_IsOK(res2)) {
26828     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26829   }
26830   if (!argp2) {
26831     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__eq__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26832   }
26833   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
26834   {
26835     try {
26836       {
26837         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26838         result = (bool)Xapian::operator ==((Xapian::ESetIterator const &)*arg1,(Xapian::ESetIterator const &)*arg2);
26839         SWIG_PYTHON_THREAD_END_ALLOW;
26840       }
26841     } catch (...) {
26842       Xapian::SetPythonException();
26843       SWIG_fail;
26844     }
26845   }
26846   resultobj = SWIG_From_bool(static_cast< bool >(result));
26847   return resultobj;
26848 fail:
26849   return NULL;
26850 }
26851 
26852 
_wrap___eq__(PyObject * self,PyObject * args)26853 SWIGINTERN PyObject *_wrap___eq__(PyObject *self, PyObject *args) {
26854   Py_ssize_t argc;
26855   PyObject *argv[3] = {
26856     0
26857   };
26858 
26859   if (!(argc = SWIG_Python_UnpackTuple(args,"__eq__",0,2,argv))) SWIG_fail;
26860   --argc;
26861   if (argc == 2) {
26862     int _v = 0;
26863     {
26864       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__PositionIterator, 0);
26865       _v = SWIG_CheckState(res);
26866     }
26867     if (!_v) goto check_1;
26868     {
26869       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__PositionIterator, 0);
26870       _v = SWIG_CheckState(res);
26871     }
26872     if (!_v) goto check_1;
26873     return _wrap___eq____SWIG_0(self, argc, argv);
26874   }
26875 check_1:
26876 
26877   if (argc == 2) {
26878     int _v = 0;
26879     {
26880       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__PostingIterator, 0);
26881       _v = SWIG_CheckState(res);
26882     }
26883     if (!_v) goto check_2;
26884     {
26885       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__PostingIterator, 0);
26886       _v = SWIG_CheckState(res);
26887     }
26888     if (!_v) goto check_2;
26889     return _wrap___eq____SWIG_1(self, argc, argv);
26890   }
26891 check_2:
26892 
26893   if (argc == 2) {
26894     int _v = 0;
26895     {
26896       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__TermIterator, 0);
26897       _v = SWIG_CheckState(res);
26898     }
26899     if (!_v) goto check_3;
26900     {
26901       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__TermIterator, 0);
26902       _v = SWIG_CheckState(res);
26903     }
26904     if (!_v) goto check_3;
26905     return _wrap___eq____SWIG_2(self, argc, argv);
26906   }
26907 check_3:
26908 
26909   if (argc == 2) {
26910     int _v = 0;
26911     {
26912       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__ValueIterator, 0);
26913       _v = SWIG_CheckState(res);
26914     }
26915     if (!_v) goto check_4;
26916     {
26917       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__ValueIterator, 0);
26918       _v = SWIG_CheckState(res);
26919     }
26920     if (!_v) goto check_4;
26921     return _wrap___eq____SWIG_3(self, argc, argv);
26922   }
26923 check_4:
26924 
26925   if (argc == 2) {
26926     int _v = 0;
26927     {
26928       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
26929       _v = SWIG_CheckState(res);
26930     }
26931     if (!_v) goto check_5;
26932     {
26933       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
26934       _v = SWIG_CheckState(res);
26935     }
26936     if (!_v) goto check_5;
26937     return _wrap___eq____SWIG_4(self, argc, argv);
26938   }
26939 check_5:
26940 
26941   if (argc == 2) {
26942     return _wrap___eq____SWIG_5(self, argc, argv);
26943   }
26944 
26945 fail:
26946   Py_INCREF(Py_NotImplemented);
26947   return Py_NotImplemented;
26948 }
26949 
26950 
_wrap___ne____SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)26951 SWIGINTERN PyObject *_wrap___ne____SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26952   PyObject *resultobj = 0;
26953   Xapian::ESetIterator *arg1 = 0 ;
26954   Xapian::ESetIterator *arg2 = 0 ;
26955   void *argp1 = 0 ;
26956   int res1 = 0 ;
26957   void *argp2 = 0 ;
26958   int res2 = 0 ;
26959   bool result;
26960 
26961   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26962   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
26963   if (!SWIG_IsOK(res1)) {
26964     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
26965   }
26966   if (!argp1) {
26967     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
26968   }
26969   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
26970   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
26971   if (!SWIG_IsOK(res2)) {
26972     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26973   }
26974   if (!argp2) {
26975     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
26976   }
26977   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
26978   {
26979     try {
26980       {
26981         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
26982         result = (bool)Xapian::operator !=((Xapian::ESetIterator const &)*arg1,(Xapian::ESetIterator const &)*arg2);
26983         SWIG_PYTHON_THREAD_END_ALLOW;
26984       }
26985     } catch (...) {
26986       Xapian::SetPythonException();
26987       SWIG_fail;
26988     }
26989   }
26990   resultobj = SWIG_From_bool(static_cast< bool >(result));
26991   return resultobj;
26992 fail:
26993   return NULL;
26994 }
26995 
26996 
_wrap___lt____SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)26997 SWIGINTERN PyObject *_wrap___lt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26998   PyObject *resultobj = 0;
26999   Xapian::ESetIterator *arg1 = 0 ;
27000   Xapian::ESetIterator *arg2 = 0 ;
27001   void *argp1 = 0 ;
27002   int res1 = 0 ;
27003   void *argp2 = 0 ;
27004   int res2 = 0 ;
27005   bool result;
27006 
27007   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27008   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
27009   if (!SWIG_IsOK(res1)) {
27010     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__lt__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
27011   }
27012   if (!argp1) {
27013     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__lt__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
27014   }
27015   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
27016   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
27017   if (!SWIG_IsOK(res2)) {
27018     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__lt__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
27019   }
27020   if (!argp2) {
27021     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__lt__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
27022   }
27023   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
27024   {
27025     try {
27026       {
27027         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27028         result = (bool)Xapian::operator <((Xapian::ESetIterator const &)*arg1,(Xapian::ESetIterator const &)*arg2);
27029         SWIG_PYTHON_THREAD_END_ALLOW;
27030       }
27031     } catch (...) {
27032       Xapian::SetPythonException();
27033       SWIG_fail;
27034     }
27035   }
27036   resultobj = SWIG_From_bool(static_cast< bool >(result));
27037   return resultobj;
27038 fail:
27039   return NULL;
27040 }
27041 
27042 
_wrap___lt__(PyObject * self,PyObject * args)27043 SWIGINTERN PyObject *_wrap___lt__(PyObject *self, PyObject *args) {
27044   Py_ssize_t argc;
27045   PyObject *argv[3] = {
27046     0
27047   };
27048 
27049   if (!(argc = SWIG_Python_UnpackTuple(args,"__lt__",0,2,argv))) SWIG_fail;
27050   --argc;
27051   if (argc == 2) {
27052     int _v = 0;
27053     {
27054       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27055       _v = SWIG_CheckState(res);
27056     }
27057     if (!_v) goto check_1;
27058     {
27059       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27060       _v = SWIG_CheckState(res);
27061     }
27062     if (!_v) goto check_1;
27063     return _wrap___lt____SWIG_0(self, argc, argv);
27064   }
27065 check_1:
27066 
27067   if (argc == 2) {
27068     return _wrap___lt____SWIG_1(self, argc, argv);
27069   }
27070 
27071 fail:
27072   Py_INCREF(Py_NotImplemented);
27073   return Py_NotImplemented;
27074 }
27075 
27076 
_wrap___gt____SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27077 SWIGINTERN PyObject *_wrap___gt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27078   PyObject *resultobj = 0;
27079   Xapian::ESetIterator *arg1 = 0 ;
27080   Xapian::ESetIterator *arg2 = 0 ;
27081   void *argp1 = 0 ;
27082   int res1 = 0 ;
27083   void *argp2 = 0 ;
27084   int res2 = 0 ;
27085   bool result;
27086 
27087   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27088   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
27089   if (!SWIG_IsOK(res1)) {
27090     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__gt__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
27091   }
27092   if (!argp1) {
27093     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__gt__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
27094   }
27095   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
27096   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
27097   if (!SWIG_IsOK(res2)) {
27098     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__gt__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
27099   }
27100   if (!argp2) {
27101     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__gt__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
27102   }
27103   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
27104   {
27105     try {
27106       {
27107         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27108         result = (bool)Xapian::operator >((Xapian::ESetIterator const &)*arg1,(Xapian::ESetIterator const &)*arg2);
27109         SWIG_PYTHON_THREAD_END_ALLOW;
27110       }
27111     } catch (...) {
27112       Xapian::SetPythonException();
27113       SWIG_fail;
27114     }
27115   }
27116   resultobj = SWIG_From_bool(static_cast< bool >(result));
27117   return resultobj;
27118 fail:
27119   return NULL;
27120 }
27121 
27122 
_wrap___gt__(PyObject * self,PyObject * args)27123 SWIGINTERN PyObject *_wrap___gt__(PyObject *self, PyObject *args) {
27124   Py_ssize_t argc;
27125   PyObject *argv[3] = {
27126     0
27127   };
27128 
27129   if (!(argc = SWIG_Python_UnpackTuple(args,"__gt__",0,2,argv))) SWIG_fail;
27130   --argc;
27131   if (argc == 2) {
27132     int _v = 0;
27133     {
27134       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27135       _v = SWIG_CheckState(res);
27136     }
27137     if (!_v) goto check_1;
27138     {
27139       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27140       _v = SWIG_CheckState(res);
27141     }
27142     if (!_v) goto check_1;
27143     return _wrap___gt____SWIG_0(self, argc, argv);
27144   }
27145 check_1:
27146 
27147   if (argc == 2) {
27148     return _wrap___gt____SWIG_1(self, argc, argv);
27149   }
27150 
27151 fail:
27152   Py_INCREF(Py_NotImplemented);
27153   return Py_NotImplemented;
27154 }
27155 
27156 
_wrap___ge____SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27157 SWIGINTERN PyObject *_wrap___ge____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27158   PyObject *resultobj = 0;
27159   Xapian::ESetIterator *arg1 = 0 ;
27160   Xapian::ESetIterator *arg2 = 0 ;
27161   void *argp1 = 0 ;
27162   int res1 = 0 ;
27163   void *argp2 = 0 ;
27164   int res2 = 0 ;
27165   bool result;
27166 
27167   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27168   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
27169   if (!SWIG_IsOK(res1)) {
27170     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ge__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
27171   }
27172   if (!argp1) {
27173     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ge__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
27174   }
27175   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
27176   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
27177   if (!SWIG_IsOK(res2)) {
27178     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__ge__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
27179   }
27180   if (!argp2) {
27181     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ge__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
27182   }
27183   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
27184   {
27185     try {
27186       {
27187         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27188         result = (bool)Xapian::operator >=((Xapian::ESetIterator const &)*arg1,(Xapian::ESetIterator const &)*arg2);
27189         SWIG_PYTHON_THREAD_END_ALLOW;
27190       }
27191     } catch (...) {
27192       Xapian::SetPythonException();
27193       SWIG_fail;
27194     }
27195   }
27196   resultobj = SWIG_From_bool(static_cast< bool >(result));
27197   return resultobj;
27198 fail:
27199   return NULL;
27200 }
27201 
27202 
_wrap___ge__(PyObject * self,PyObject * args)27203 SWIGINTERN PyObject *_wrap___ge__(PyObject *self, PyObject *args) {
27204   Py_ssize_t argc;
27205   PyObject *argv[3] = {
27206     0
27207   };
27208 
27209   if (!(argc = SWIG_Python_UnpackTuple(args,"__ge__",0,2,argv))) SWIG_fail;
27210   --argc;
27211   if (argc == 2) {
27212     int _v = 0;
27213     {
27214       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27215       _v = SWIG_CheckState(res);
27216     }
27217     if (!_v) goto check_1;
27218     {
27219       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27220       _v = SWIG_CheckState(res);
27221     }
27222     if (!_v) goto check_1;
27223     return _wrap___ge____SWIG_0(self, argc, argv);
27224   }
27225 check_1:
27226 
27227   if (argc == 2) {
27228     return _wrap___ge____SWIG_1(self, argc, argv);
27229   }
27230 
27231 fail:
27232   Py_INCREF(Py_NotImplemented);
27233   return Py_NotImplemented;
27234 }
27235 
27236 
_wrap___le____SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27237 SWIGINTERN PyObject *_wrap___le____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27238   PyObject *resultobj = 0;
27239   Xapian::ESetIterator *arg1 = 0 ;
27240   Xapian::ESetIterator *arg2 = 0 ;
27241   void *argp1 = 0 ;
27242   int res1 = 0 ;
27243   void *argp2 = 0 ;
27244   int res2 = 0 ;
27245   bool result;
27246 
27247   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27248   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
27249   if (!SWIG_IsOK(res1)) {
27250     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__le__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
27251   }
27252   if (!argp1) {
27253     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__le__" "', argument " "1"" of type '" "Xapian::ESetIterator const &""'");
27254   }
27255   arg1 = reinterpret_cast< Xapian::ESetIterator * >(argp1);
27256   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
27257   if (!SWIG_IsOK(res2)) {
27258     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__le__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
27259   }
27260   if (!argp2) {
27261     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__le__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
27262   }
27263   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
27264   {
27265     try {
27266       {
27267         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27268         result = (bool)Xapian::operator <=((Xapian::ESetIterator const &)*arg1,(Xapian::ESetIterator const &)*arg2);
27269         SWIG_PYTHON_THREAD_END_ALLOW;
27270       }
27271     } catch (...) {
27272       Xapian::SetPythonException();
27273       SWIG_fail;
27274     }
27275   }
27276   resultobj = SWIG_From_bool(static_cast< bool >(result));
27277   return resultobj;
27278 fail:
27279   return NULL;
27280 }
27281 
27282 
_wrap___le__(PyObject * self,PyObject * args)27283 SWIGINTERN PyObject *_wrap___le__(PyObject *self, PyObject *args) {
27284   Py_ssize_t argc;
27285   PyObject *argv[3] = {
27286     0
27287   };
27288 
27289   if (!(argc = SWIG_Python_UnpackTuple(args,"__le__",0,2,argv))) SWIG_fail;
27290   --argc;
27291   if (argc == 2) {
27292     int _v = 0;
27293     {
27294       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27295       _v = SWIG_CheckState(res);
27296     }
27297     if (!_v) goto check_1;
27298     {
27299       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27300       _v = SWIG_CheckState(res);
27301     }
27302     if (!_v) goto check_1;
27303     return _wrap___le____SWIG_0(self, argc, argv);
27304   }
27305 check_1:
27306 
27307   if (argc == 2) {
27308     return _wrap___le____SWIG_1(self, argc, argv);
27309   }
27310 
27311 fail:
27312   Py_INCREF(Py_NotImplemented);
27313   return Py_NotImplemented;
27314 }
27315 
27316 
_wrap___add____SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27317 SWIGINTERN PyObject *_wrap___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27318   PyObject *resultobj = 0;
27319   Xapian::ESetIterator::difference_type arg1 ;
27320   Xapian::ESetIterator *arg2 = 0 ;
27321   int val1 ;
27322   int ecode1 = 0 ;
27323   void *argp2 = 0 ;
27324   int res2 = 0 ;
27325   Xapian::ESetIterator result;
27326 
27327   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27328   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
27329   if (!SWIG_IsOK(ecode1)) {
27330     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "__add__" "', argument " "1"" of type '" "Xapian::ESetIterator::difference_type""'");
27331   }
27332   arg1 = static_cast< Xapian::ESetIterator::difference_type >(val1);
27333   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ESetIterator,  0  | 0);
27334   if (!SWIG_IsOK(res2)) {
27335     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__add__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
27336   }
27337   if (!argp2) {
27338     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__add__" "', argument " "2"" of type '" "Xapian::ESetIterator const &""'");
27339   }
27340   arg2 = reinterpret_cast< Xapian::ESetIterator * >(argp2);
27341   {
27342     try {
27343       {
27344         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27345         result = Xapian::operator +(arg1,(Xapian::ESetIterator const &)*arg2);
27346         SWIG_PYTHON_THREAD_END_ALLOW;
27347       }
27348     } catch (...) {
27349       Xapian::SetPythonException();
27350       SWIG_fail;
27351     }
27352   }
27353   resultobj = SWIG_NewPointerObj((new Xapian::ESetIterator(static_cast< const Xapian::ESetIterator& >(result))), SWIGTYPE_p_Xapian__ESetIterator, SWIG_POINTER_OWN |  0 );
27354   return resultobj;
27355 fail:
27356   return NULL;
27357 }
27358 
27359 
_wrap___add__(PyObject * self,PyObject * args)27360 SWIGINTERN PyObject *_wrap___add__(PyObject *self, PyObject *args) {
27361   Py_ssize_t argc;
27362   PyObject *argv[3] = {
27363     0
27364   };
27365 
27366   if (!(argc = SWIG_Python_UnpackTuple(args,"__add__",0,2,argv))) SWIG_fail;
27367   --argc;
27368   if (argc == 2) {
27369     int _v = 0;
27370     {
27371       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27372       _v = SWIG_CheckState(res);
27373     }
27374     if (!_v) goto check_1;
27375     return _wrap___add____SWIG_0(self, argc, argv);
27376   }
27377 check_1:
27378 
27379   if (argc == 2) {
27380     return _wrap___add____SWIG_1(self, argc, argv);
27381   }
27382 
27383 fail:
27384   Py_INCREF(Py_NotImplemented);
27385   return Py_NotImplemented;
27386 }
27387 
27388 
_wrap_new_RSet(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27389 SWIGINTERN PyObject *_wrap_new_RSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27390   PyObject *resultobj = 0;
27391   Xapian::RSet *result = 0 ;
27392 
27393   if (!SWIG_Python_UnpackTuple(args,"new_RSet",0,0,0)) SWIG_fail;
27394   {
27395     try {
27396       {
27397         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27398         result = (Xapian::RSet *)new Xapian::RSet();
27399         SWIG_PYTHON_THREAD_END_ALLOW;
27400       }
27401     } catch (...) {
27402       Xapian::SetPythonException();
27403       SWIG_fail;
27404     }
27405   }
27406   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RSet, SWIG_POINTER_NEW |  0 );
27407   return resultobj;
27408 fail:
27409   return NULL;
27410 }
27411 
27412 
_wrap_delete_RSet(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27413 SWIGINTERN PyObject *_wrap_delete_RSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27414   PyObject *resultobj = 0;
27415   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27416   void *argp1 = 0 ;
27417   int res1 = 0 ;
27418   PyObject *swig_obj[1] ;
27419 
27420   if (!args) SWIG_fail;
27421   swig_obj[0] = args;
27422   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, SWIG_POINTER_DISOWN |  0 );
27423   if (!SWIG_IsOK(res1)) {
27424     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RSet" "', argument " "1"" of type '" "Xapian::RSet *""'");
27425   }
27426   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27427   {
27428     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27429     delete arg1;
27430     SWIG_PYTHON_THREAD_END_ALLOW;
27431   }
27432   resultobj = SWIG_Py_Void();
27433   return resultobj;
27434 fail:
27435   return NULL;
27436 }
27437 
27438 
_wrap_RSet_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27439 SWIGINTERN PyObject *_wrap_RSet_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27440   PyObject *resultobj = 0;
27441   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27442   void *argp1 = 0 ;
27443   int res1 = 0 ;
27444   PyObject *swig_obj[1] ;
27445   Xapian::doccount result;
27446 
27447   if (!args) SWIG_fail;
27448   swig_obj[0] = args;
27449   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
27450   if (!SWIG_IsOK(res1)) {
27451     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_size" "', argument " "1"" of type '" "Xapian::RSet const *""'");
27452   }
27453   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27454   {
27455     try {
27456       {
27457         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27458         result = (Xapian::doccount)((Xapian::RSet const *)arg1)->size();
27459         SWIG_PYTHON_THREAD_END_ALLOW;
27460       }
27461     } catch (...) {
27462       Xapian::SetPythonException();
27463       SWIG_fail;
27464     }
27465   }
27466   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
27467   return resultobj;
27468 fail:
27469   return NULL;
27470 }
27471 
27472 
_wrap_RSet_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27473 SWIGINTERN PyObject *_wrap_RSet_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27474   PyObject *resultobj = 0;
27475   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27476   void *argp1 = 0 ;
27477   int res1 = 0 ;
27478   PyObject *swig_obj[1] ;
27479   bool result;
27480 
27481   if (!args) SWIG_fail;
27482   swig_obj[0] = args;
27483   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
27484   if (!SWIG_IsOK(res1)) {
27485     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_empty" "', argument " "1"" of type '" "Xapian::RSet const *""'");
27486   }
27487   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27488   {
27489     try {
27490       {
27491         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27492         result = (bool)((Xapian::RSet const *)arg1)->empty();
27493         SWIG_PYTHON_THREAD_END_ALLOW;
27494       }
27495     } catch (...) {
27496       Xapian::SetPythonException();
27497       SWIG_fail;
27498     }
27499   }
27500   resultobj = SWIG_From_bool(static_cast< bool >(result));
27501   return resultobj;
27502 fail:
27503   return NULL;
27504 }
27505 
27506 
_wrap_RSet_add_document__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27507 SWIGINTERN PyObject *_wrap_RSet_add_document__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27508   PyObject *resultobj = 0;
27509   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27510   Xapian::docid arg2 ;
27511   void *argp1 = 0 ;
27512   int res1 = 0 ;
27513   unsigned int val2 ;
27514   int ecode2 = 0 ;
27515 
27516   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27517   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
27518   if (!SWIG_IsOK(res1)) {
27519     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_add_document" "', argument " "1"" of type '" "Xapian::RSet *""'");
27520   }
27521   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27522   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
27523   if (!SWIG_IsOK(ecode2)) {
27524     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RSet_add_document" "', argument " "2"" of type '" "Xapian::docid""'");
27525   }
27526   arg2 = static_cast< Xapian::docid >(val2);
27527   {
27528     try {
27529       {
27530         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27531         (arg1)->add_document(arg2);
27532         SWIG_PYTHON_THREAD_END_ALLOW;
27533       }
27534     } catch (...) {
27535       Xapian::SetPythonException();
27536       SWIG_fail;
27537     }
27538   }
27539   resultobj = SWIG_Py_Void();
27540   return resultobj;
27541 fail:
27542   return NULL;
27543 }
27544 
27545 
_wrap_RSet_add_document__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27546 SWIGINTERN PyObject *_wrap_RSet_add_document__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27547   PyObject *resultobj = 0;
27548   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27549   Xapian::MSetIterator *arg2 = 0 ;
27550   void *argp1 = 0 ;
27551   int res1 = 0 ;
27552   void *argp2 = 0 ;
27553   int res2 = 0 ;
27554 
27555   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27556   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
27557   if (!SWIG_IsOK(res1)) {
27558     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_add_document" "', argument " "1"" of type '" "Xapian::RSet *""'");
27559   }
27560   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27561   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
27562   if (!SWIG_IsOK(res2)) {
27563     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RSet_add_document" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
27564   }
27565   if (!argp2) {
27566     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RSet_add_document" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
27567   }
27568   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
27569   {
27570     try {
27571       {
27572         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27573         (arg1)->add_document((Xapian::MSetIterator const &)*arg2);
27574         SWIG_PYTHON_THREAD_END_ALLOW;
27575       }
27576     } catch (...) {
27577       Xapian::SetPythonException();
27578       SWIG_fail;
27579     }
27580   }
27581   resultobj = SWIG_Py_Void();
27582   return resultobj;
27583 fail:
27584   return NULL;
27585 }
27586 
27587 
_wrap_RSet_add_document(PyObject * self,PyObject * args)27588 SWIGINTERN PyObject *_wrap_RSet_add_document(PyObject *self, PyObject *args) {
27589   Py_ssize_t argc;
27590   PyObject *argv[3] = {
27591     0
27592   };
27593 
27594   if (!(argc = SWIG_Python_UnpackTuple(args,"RSet_add_document",0,2,argv))) SWIG_fail;
27595   --argc;
27596   if (argc == 2) {
27597     int _v = 0;
27598     {
27599       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27600       _v = SWIG_CheckState(res);
27601     }
27602     if (!_v) goto check_1;
27603     return _wrap_RSet_add_document__SWIG_1(self, argc, argv);
27604   }
27605 check_1:
27606 
27607   if (argc == 2) {
27608     return _wrap_RSet_add_document__SWIG_0(self, argc, argv);
27609   }
27610 
27611 fail:
27612   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RSet_add_document'.\n"
27613     "  Possible C/C++ prototypes are:\n"
27614     "    Xapian::RSet::add_document(Xapian::docid)\n"
27615     "    Xapian::RSet::add_document(Xapian::MSetIterator const &)\n");
27616   return 0;
27617 }
27618 
27619 
_wrap_RSet_remove_document__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27620 SWIGINTERN PyObject *_wrap_RSet_remove_document__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27621   PyObject *resultobj = 0;
27622   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27623   Xapian::docid arg2 ;
27624   void *argp1 = 0 ;
27625   int res1 = 0 ;
27626   unsigned int val2 ;
27627   int ecode2 = 0 ;
27628 
27629   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27630   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
27631   if (!SWIG_IsOK(res1)) {
27632     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_remove_document" "', argument " "1"" of type '" "Xapian::RSet *""'");
27633   }
27634   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27635   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
27636   if (!SWIG_IsOK(ecode2)) {
27637     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RSet_remove_document" "', argument " "2"" of type '" "Xapian::docid""'");
27638   }
27639   arg2 = static_cast< Xapian::docid >(val2);
27640   {
27641     try {
27642       {
27643         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27644         (arg1)->remove_document(arg2);
27645         SWIG_PYTHON_THREAD_END_ALLOW;
27646       }
27647     } catch (...) {
27648       Xapian::SetPythonException();
27649       SWIG_fail;
27650     }
27651   }
27652   resultobj = SWIG_Py_Void();
27653   return resultobj;
27654 fail:
27655   return NULL;
27656 }
27657 
27658 
_wrap_RSet_remove_document__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27659 SWIGINTERN PyObject *_wrap_RSet_remove_document__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27660   PyObject *resultobj = 0;
27661   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27662   Xapian::MSetIterator *arg2 = 0 ;
27663   void *argp1 = 0 ;
27664   int res1 = 0 ;
27665   void *argp2 = 0 ;
27666   int res2 = 0 ;
27667 
27668   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27669   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
27670   if (!SWIG_IsOK(res1)) {
27671     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_remove_document" "', argument " "1"" of type '" "Xapian::RSet *""'");
27672   }
27673   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27674   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
27675   if (!SWIG_IsOK(res2)) {
27676     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RSet_remove_document" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
27677   }
27678   if (!argp2) {
27679     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RSet_remove_document" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
27680   }
27681   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
27682   {
27683     try {
27684       {
27685         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27686         (arg1)->remove_document((Xapian::MSetIterator const &)*arg2);
27687         SWIG_PYTHON_THREAD_END_ALLOW;
27688       }
27689     } catch (...) {
27690       Xapian::SetPythonException();
27691       SWIG_fail;
27692     }
27693   }
27694   resultobj = SWIG_Py_Void();
27695   return resultobj;
27696 fail:
27697   return NULL;
27698 }
27699 
27700 
_wrap_RSet_remove_document(PyObject * self,PyObject * args)27701 SWIGINTERN PyObject *_wrap_RSet_remove_document(PyObject *self, PyObject *args) {
27702   Py_ssize_t argc;
27703   PyObject *argv[3] = {
27704     0
27705   };
27706 
27707   if (!(argc = SWIG_Python_UnpackTuple(args,"RSet_remove_document",0,2,argv))) SWIG_fail;
27708   --argc;
27709   if (argc == 2) {
27710     int _v = 0;
27711     {
27712       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27713       _v = SWIG_CheckState(res);
27714     }
27715     if (!_v) goto check_1;
27716     return _wrap_RSet_remove_document__SWIG_1(self, argc, argv);
27717   }
27718 check_1:
27719 
27720   if (argc == 2) {
27721     return _wrap_RSet_remove_document__SWIG_0(self, argc, argv);
27722   }
27723 
27724 fail:
27725   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RSet_remove_document'.\n"
27726     "  Possible C/C++ prototypes are:\n"
27727     "    Xapian::RSet::remove_document(Xapian::docid)\n"
27728     "    Xapian::RSet::remove_document(Xapian::MSetIterator const &)\n");
27729   return 0;
27730 }
27731 
27732 
_wrap_RSet_contains__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27733 SWIGINTERN PyObject *_wrap_RSet_contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27734   PyObject *resultobj = 0;
27735   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27736   Xapian::docid arg2 ;
27737   void *argp1 = 0 ;
27738   int res1 = 0 ;
27739   unsigned int val2 ;
27740   int ecode2 = 0 ;
27741   bool result;
27742 
27743   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27744   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
27745   if (!SWIG_IsOK(res1)) {
27746     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_contains" "', argument " "1"" of type '" "Xapian::RSet const *""'");
27747   }
27748   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27749   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
27750   if (!SWIG_IsOK(ecode2)) {
27751     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RSet_contains" "', argument " "2"" of type '" "Xapian::docid""'");
27752   }
27753   arg2 = static_cast< Xapian::docid >(val2);
27754   {
27755     try {
27756       {
27757         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27758         result = (bool)((Xapian::RSet const *)arg1)->contains(arg2);
27759         SWIG_PYTHON_THREAD_END_ALLOW;
27760       }
27761     } catch (...) {
27762       Xapian::SetPythonException();
27763       SWIG_fail;
27764     }
27765   }
27766   resultobj = SWIG_From_bool(static_cast< bool >(result));
27767   return resultobj;
27768 fail:
27769   return NULL;
27770 }
27771 
27772 
_wrap_RSet_contains__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)27773 SWIGINTERN PyObject *_wrap_RSet_contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27774   PyObject *resultobj = 0;
27775   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27776   Xapian::MSetIterator *arg2 = 0 ;
27777   void *argp1 = 0 ;
27778   int res1 = 0 ;
27779   void *argp2 = 0 ;
27780   int res2 = 0 ;
27781   bool result;
27782 
27783   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27784   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
27785   if (!SWIG_IsOK(res1)) {
27786     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet_contains" "', argument " "1"" of type '" "Xapian::RSet const *""'");
27787   }
27788   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27789   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
27790   if (!SWIG_IsOK(res2)) {
27791     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RSet_contains" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
27792   }
27793   if (!argp2) {
27794     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RSet_contains" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
27795   }
27796   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
27797   {
27798     try {
27799       {
27800         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27801         result = (bool)((Xapian::RSet const *)arg1)->contains((Xapian::MSetIterator const &)*arg2);
27802         SWIG_PYTHON_THREAD_END_ALLOW;
27803       }
27804     } catch (...) {
27805       Xapian::SetPythonException();
27806       SWIG_fail;
27807     }
27808   }
27809   resultobj = SWIG_From_bool(static_cast< bool >(result));
27810   return resultobj;
27811 fail:
27812   return NULL;
27813 }
27814 
27815 
_wrap_RSet_contains(PyObject * self,PyObject * args)27816 SWIGINTERN PyObject *_wrap_RSet_contains(PyObject *self, PyObject *args) {
27817   Py_ssize_t argc;
27818   PyObject *argv[3] = {
27819     0
27820   };
27821 
27822   if (!(argc = SWIG_Python_UnpackTuple(args,"RSet_contains",0,2,argv))) SWIG_fail;
27823   --argc;
27824   if (argc == 2) {
27825     int _v = 0;
27826     {
27827       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
27828       _v = SWIG_CheckState(res);
27829     }
27830     if (!_v) goto check_1;
27831     return _wrap_RSet_contains__SWIG_1(self, argc, argv);
27832   }
27833 check_1:
27834 
27835   if (argc == 2) {
27836     return _wrap_RSet_contains__SWIG_0(self, argc, argv);
27837   }
27838 
27839 fail:
27840   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RSet_contains'.\n"
27841     "  Possible C/C++ prototypes are:\n"
27842     "    Xapian::RSet::contains(Xapian::docid) const\n"
27843     "    Xapian::RSet::contains(Xapian::MSetIterator const &) const\n");
27844   return 0;
27845 }
27846 
27847 
_wrap_RSet___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27848 SWIGINTERN PyObject *_wrap_RSet___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27849   PyObject *resultobj = 0;
27850   Xapian::RSet *arg1 = (Xapian::RSet *) 0 ;
27851   void *argp1 = 0 ;
27852   int res1 = 0 ;
27853   PyObject *swig_obj[1] ;
27854   std::string result;
27855 
27856   if (!args) SWIG_fail;
27857   swig_obj[0] = args;
27858   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
27859   if (!SWIG_IsOK(res1)) {
27860     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RSet___str__" "', argument " "1"" of type '" "Xapian::RSet const *""'");
27861   }
27862   arg1 = reinterpret_cast< Xapian::RSet * >(argp1);
27863   {
27864     try {
27865       {
27866         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27867         result = ((Xapian::RSet const *)arg1)->get_description();
27868         SWIG_PYTHON_THREAD_END_ALLOW;
27869       }
27870     } catch (...) {
27871       Xapian::SetPythonException();
27872       SWIG_fail;
27873     }
27874   }
27875   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
27876   return resultobj;
27877 fail:
27878   return NULL;
27879 }
27880 
27881 
RSet_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27882 SWIGINTERN PyObject *RSet_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27883   PyObject *obj;
27884   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
27885   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__RSet, SWIG_NewClientData(obj));
27886   return SWIG_Py_Void();
27887 }
27888 
RSet_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27889 SWIGINTERN PyObject *RSet_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27890   return SWIG_Python_InitShadowInstance(args);
27891 }
27892 
_wrap_new_MatchDecider(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27893 SWIGINTERN PyObject *_wrap_new_MatchDecider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27894   PyObject *resultobj = 0;
27895   PyObject *arg1 = (PyObject *) 0 ;
27896   PyObject *swig_obj[1] ;
27897   Xapian::MatchDecider *result = 0 ;
27898 
27899   if (!args) SWIG_fail;
27900   swig_obj[0] = args;
27901   arg1 = swig_obj[0];
27902   {
27903     try {
27904       {
27905         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27906         if ( arg1 != Py_None ) {
27907           /* subclassed */
27908           result = (Xapian::MatchDecider *)new SwigDirector_MatchDecider(arg1);
27909         } else {
27910           SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
27911           SWIG_fail;
27912         }
27913 
27914         SWIG_PYTHON_THREAD_END_ALLOW;
27915       }
27916     } catch (...) {
27917       Xapian::SetPythonException();
27918       SWIG_fail;
27919     }
27920   }
27921   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MatchDecider, SWIG_POINTER_NEW |  0 );
27922   return resultobj;
27923 fail:
27924   return NULL;
27925 }
27926 
27927 
_wrap_MatchDecider___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27928 SWIGINTERN PyObject *_wrap_MatchDecider___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27929   PyObject *resultobj = 0;
27930   Xapian::MatchDecider *arg1 = (Xapian::MatchDecider *) 0 ;
27931   Xapian::Document *arg2 = 0 ;
27932   void *argp1 = 0 ;
27933   int res1 = 0 ;
27934   void *argp2 = 0 ;
27935   int res2 = 0 ;
27936   PyObject *swig_obj[2] ;
27937   Swig::Director *director = 0;
27938   bool upcall = false;
27939   bool result;
27940 
27941   if (!SWIG_Python_UnpackTuple(args,"MatchDecider___call__",2,2,swig_obj)) SWIG_fail;
27942   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchDecider, 0 |  0 );
27943   if (!SWIG_IsOK(res1)) {
27944     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatchDecider___call__" "', argument " "1"" of type '" "Xapian::MatchDecider const *""'");
27945   }
27946   arg1 = reinterpret_cast< Xapian::MatchDecider * >(argp1);
27947   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Document,  0  | 0);
27948   if (!SWIG_IsOK(res2)) {
27949     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MatchDecider___call__" "', argument " "2"" of type '" "Xapian::Document const &""'");
27950   }
27951   if (!argp2) {
27952     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MatchDecider___call__" "', argument " "2"" of type '" "Xapian::Document const &""'");
27953   }
27954   arg2 = reinterpret_cast< Xapian::Document * >(argp2);
27955   director = SWIG_DIRECTOR_CAST(arg1);
27956   upcall = (director && (director->swig_get_self()==swig_obj[0]));
27957   try {
27958     {
27959       try {
27960         if (upcall) {
27961           Swig::DirectorPureVirtualException::raise("Xapian::MatchDecider::operator ()");
27962         } else {
27963           result = (bool)((Xapian::MatchDecider const *)arg1)->operator ()((Xapian::Document const &)*arg2);
27964         }
27965       } catch (...) {
27966         Xapian::SetPythonException();
27967         SWIG_fail;
27968       }
27969     }
27970   } catch (Swig::DirectorException&) {
27971     SWIG_fail;
27972   }
27973   resultobj = SWIG_From_bool(static_cast< bool >(result));
27974   return resultobj;
27975 fail:
27976   return NULL;
27977 }
27978 
27979 
_wrap_delete_MatchDecider(PyObject * SWIGUNUSEDPARM (self),PyObject * args)27980 SWIGINTERN PyObject *_wrap_delete_MatchDecider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27981   PyObject *resultobj = 0;
27982   Xapian::MatchDecider *arg1 = (Xapian::MatchDecider *) 0 ;
27983   void *argp1 = 0 ;
27984   int res1 = 0 ;
27985   PyObject *swig_obj[1] ;
27986 
27987   if (!args) SWIG_fail;
27988   swig_obj[0] = args;
27989   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchDecider, SWIG_POINTER_DISOWN |  0 );
27990   if (!SWIG_IsOK(res1)) {
27991     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MatchDecider" "', argument " "1"" of type '" "Xapian::MatchDecider *""'");
27992   }
27993   arg1 = reinterpret_cast< Xapian::MatchDecider * >(argp1);
27994   {
27995     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
27996     delete arg1;
27997     SWIG_PYTHON_THREAD_END_ALLOW;
27998   }
27999   resultobj = SWIG_Py_Void();
28000   return resultobj;
28001 fail:
28002   return NULL;
28003 }
28004 
28005 
_wrap_disown_MatchDecider(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28006 SWIGINTERN PyObject *_wrap_disown_MatchDecider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28007   PyObject *resultobj = 0;
28008   Xapian::MatchDecider *arg1 = (Xapian::MatchDecider *) 0 ;
28009   void *argp1 = 0 ;
28010   int res1 = 0 ;
28011   PyObject *swig_obj[1] ;
28012 
28013   if (!args) SWIG_fail;
28014   swig_obj[0] = args;
28015   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchDecider, 0 |  0 );
28016   if (!SWIG_IsOK(res1)) {
28017     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_MatchDecider" "', argument " "1"" of type '" "Xapian::MatchDecider *""'");
28018   }
28019   arg1 = reinterpret_cast< Xapian::MatchDecider * >(argp1);
28020   {
28021     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28022     {
28023       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
28024       if (director) director->swig_disown();
28025     }
28026 
28027     SWIG_PYTHON_THREAD_END_ALLOW;
28028   }
28029   resultobj = SWIG_Py_Void();
28030   return resultobj;
28031 fail:
28032   return NULL;
28033 }
28034 
28035 
MatchDecider_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28036 SWIGINTERN PyObject *MatchDecider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28037   PyObject *obj;
28038   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
28039   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__MatchDecider, SWIG_NewClientData(obj));
28040   return SWIG_Py_Void();
28041 }
28042 
MatchDecider_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28043 SWIGINTERN PyObject *MatchDecider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28044   return SWIG_Python_InitShadowInstance(args);
28045 }
28046 
_wrap_new_Enquire(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28047 SWIGINTERN PyObject *_wrap_new_Enquire(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28048   PyObject *resultobj = 0;
28049   Xapian::Database *arg1 = 0 ;
28050   void *argp1 = 0 ;
28051   int res1 = 0 ;
28052   PyObject *swig_obj[1] ;
28053   Xapian::Enquire *result = 0 ;
28054 
28055   if (!args) SWIG_fail;
28056   swig_obj[0] = args;
28057   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__Database,  0  | 0);
28058   if (!SWIG_IsOK(res1)) {
28059     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Enquire" "', argument " "1"" of type '" "Xapian::Database const &""'");
28060   }
28061   if (!argp1) {
28062     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Enquire" "', argument " "1"" of type '" "Xapian::Database const &""'");
28063   }
28064   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
28065   {
28066     try {
28067       {
28068         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28069         result = (Xapian::Enquire *)new Xapian::Enquire((Xapian::Database const &)*arg1);
28070         SWIG_PYTHON_THREAD_END_ALLOW;
28071       }
28072     } catch (...) {
28073       Xapian::SetPythonException();
28074       SWIG_fail;
28075     }
28076   }
28077   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Enquire, SWIG_POINTER_NEW |  0 );
28078   return resultobj;
28079 fail:
28080   return NULL;
28081 }
28082 
28083 
_wrap_delete_Enquire(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28084 SWIGINTERN PyObject *_wrap_delete_Enquire(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28085   PyObject *resultobj = 0;
28086   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28087   void *argp1 = 0 ;
28088   int res1 = 0 ;
28089   PyObject *swig_obj[1] ;
28090 
28091   if (!args) SWIG_fail;
28092   swig_obj[0] = args;
28093   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, SWIG_POINTER_DISOWN |  0 );
28094   if (!SWIG_IsOK(res1)) {
28095     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Enquire" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28096   }
28097   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28098   {
28099     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28100     delete arg1;
28101     SWIG_PYTHON_THREAD_END_ALLOW;
28102   }
28103   resultobj = SWIG_Py_Void();
28104   return resultobj;
28105 fail:
28106   return NULL;
28107 }
28108 
28109 
_wrap_Enquire_set_query__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)28110 SWIGINTERN PyObject *_wrap_Enquire_set_query__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28111   PyObject *resultobj = 0;
28112   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28113   Xapian::Query *arg2 = 0 ;
28114   Xapian::termcount arg3 ;
28115   void *argp1 = 0 ;
28116   int res1 = 0 ;
28117   void *argp2 = 0 ;
28118   int res2 = 0 ;
28119   unsigned int val3 ;
28120   int ecode3 = 0 ;
28121 
28122   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
28123   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28124   if (!SWIG_IsOK(res1)) {
28125     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_query" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28126   }
28127   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28128   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Query,  0  | 0);
28129   if (!SWIG_IsOK(res2)) {
28130     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_query" "', argument " "2"" of type '" "Xapian::Query const &""'");
28131   }
28132   if (!argp2) {
28133     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_set_query" "', argument " "2"" of type '" "Xapian::Query const &""'");
28134   }
28135   arg2 = reinterpret_cast< Xapian::Query * >(argp2);
28136   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
28137   if (!SWIG_IsOK(ecode3)) {
28138     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_query" "', argument " "3"" of type '" "Xapian::termcount""'");
28139   }
28140   arg3 = static_cast< Xapian::termcount >(val3);
28141   {
28142     try {
28143       {
28144         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28145         (arg1)->set_query((Xapian::Query const &)*arg2,arg3);
28146         SWIG_PYTHON_THREAD_END_ALLOW;
28147       }
28148     } catch (...) {
28149       Xapian::SetPythonException();
28150       SWIG_fail;
28151     }
28152   }
28153   resultobj = SWIG_Py_Void();
28154   return resultobj;
28155 fail:
28156   return NULL;
28157 }
28158 
28159 
_wrap_Enquire_set_query__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)28160 SWIGINTERN PyObject *_wrap_Enquire_set_query__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28161   PyObject *resultobj = 0;
28162   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28163   Xapian::Query *arg2 = 0 ;
28164   void *argp1 = 0 ;
28165   int res1 = 0 ;
28166   void *argp2 = 0 ;
28167   int res2 = 0 ;
28168 
28169   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28170   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28171   if (!SWIG_IsOK(res1)) {
28172     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_query" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28173   }
28174   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28175   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Query,  0  | 0);
28176   if (!SWIG_IsOK(res2)) {
28177     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_query" "', argument " "2"" of type '" "Xapian::Query const &""'");
28178   }
28179   if (!argp2) {
28180     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_set_query" "', argument " "2"" of type '" "Xapian::Query const &""'");
28181   }
28182   arg2 = reinterpret_cast< Xapian::Query * >(argp2);
28183   {
28184     try {
28185       {
28186         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28187         (arg1)->set_query((Xapian::Query const &)*arg2);
28188         SWIG_PYTHON_THREAD_END_ALLOW;
28189       }
28190     } catch (...) {
28191       Xapian::SetPythonException();
28192       SWIG_fail;
28193     }
28194   }
28195   resultobj = SWIG_Py_Void();
28196   return resultobj;
28197 fail:
28198   return NULL;
28199 }
28200 
28201 
_wrap_Enquire_set_query(PyObject * self,PyObject * args)28202 SWIGINTERN PyObject *_wrap_Enquire_set_query(PyObject *self, PyObject *args) {
28203   Py_ssize_t argc;
28204   PyObject *argv[4] = {
28205     0
28206   };
28207 
28208   if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_set_query",0,3,argv))) SWIG_fail;
28209   --argc;
28210   if (argc == 2) {
28211     return _wrap_Enquire_set_query__SWIG_1(self, argc, argv);
28212   }
28213   if (argc == 3) {
28214     return _wrap_Enquire_set_query__SWIG_0(self, argc, argv);
28215   }
28216 
28217 fail:
28218   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Enquire_set_query'.\n"
28219     "  Possible C/C++ prototypes are:\n"
28220     "    Xapian::Enquire::set_query(Xapian::Query const &,Xapian::termcount)\n"
28221     "    Xapian::Enquire::set_query(Xapian::Query const &)\n");
28222   return 0;
28223 }
28224 
28225 
_wrap_Enquire_get_query(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28226 SWIGINTERN PyObject *_wrap_Enquire_get_query(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28227   PyObject *resultobj = 0;
28228   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28229   void *argp1 = 0 ;
28230   int res1 = 0 ;
28231   PyObject *swig_obj[1] ;
28232   Xapian::Query *result = 0 ;
28233 
28234   if (!args) SWIG_fail;
28235   swig_obj[0] = args;
28236   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28237   if (!SWIG_IsOK(res1)) {
28238     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_query" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
28239   }
28240   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28241   {
28242     try {
28243       {
28244         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28245         result = (Xapian::Query *) &((Xapian::Enquire const *)arg1)->get_query();
28246         SWIG_PYTHON_THREAD_END_ALLOW;
28247       }
28248     } catch (...) {
28249       Xapian::SetPythonException();
28250       SWIG_fail;
28251     }
28252   }
28253   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Query, 0 |  0 );
28254   return resultobj;
28255 fail:
28256   return NULL;
28257 }
28258 
28259 
_wrap_Enquire_add_matchspy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28260 SWIGINTERN PyObject *_wrap_Enquire_add_matchspy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28261   PyObject *resultobj = 0;
28262   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28263   Xapian::MatchSpy *arg2 = (Xapian::MatchSpy *) 0 ;
28264   void *argp1 = 0 ;
28265   int res1 = 0 ;
28266   void *argp2 = 0 ;
28267   int res2 = 0 ;
28268   PyObject *swig_obj[2] ;
28269 
28270   if (!SWIG_Python_UnpackTuple(args,"Enquire_add_matchspy",2,2,swig_obj)) SWIG_fail;
28271   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28272   if (!SWIG_IsOK(res1)) {
28273     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_add_matchspy" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28274   }
28275   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28276   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
28277   if (!SWIG_IsOK(res2)) {
28278     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_add_matchspy" "', argument " "2"" of type '" "Xapian::MatchSpy *""'");
28279   }
28280   arg2 = reinterpret_cast< Xapian::MatchSpy * >(argp2);
28281   {
28282     try {
28283       {
28284         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28285         (arg1)->add_matchspy(arg2);
28286         SWIG_PYTHON_THREAD_END_ALLOW;
28287       }
28288     } catch (...) {
28289       Xapian::SetPythonException();
28290       SWIG_fail;
28291     }
28292   }
28293   resultobj = SWIG_Py_Void();
28294   return resultobj;
28295 fail:
28296   return NULL;
28297 }
28298 
28299 
_wrap_Enquire_clear_matchspies(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28300 SWIGINTERN PyObject *_wrap_Enquire_clear_matchspies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28301   PyObject *resultobj = 0;
28302   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28303   void *argp1 = 0 ;
28304   int res1 = 0 ;
28305   PyObject *swig_obj[1] ;
28306 
28307   if (!args) SWIG_fail;
28308   swig_obj[0] = args;
28309   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28310   if (!SWIG_IsOK(res1)) {
28311     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_clear_matchspies" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28312   }
28313   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28314   {
28315     try {
28316       {
28317         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28318         (arg1)->clear_matchspies();
28319         SWIG_PYTHON_THREAD_END_ALLOW;
28320       }
28321     } catch (...) {
28322       Xapian::SetPythonException();
28323       SWIG_fail;
28324     }
28325   }
28326   resultobj = SWIG_Py_Void();
28327   return resultobj;
28328 fail:
28329   return NULL;
28330 }
28331 
28332 
_wrap_Enquire_set_weighting_scheme(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28333 SWIGINTERN PyObject *_wrap_Enquire_set_weighting_scheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28334   PyObject *resultobj = 0;
28335   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28336   Xapian::Weight *arg2 = 0 ;
28337   void *argp1 = 0 ;
28338   int res1 = 0 ;
28339   void *argp2 = 0 ;
28340   int res2 = 0 ;
28341   PyObject *swig_obj[2] ;
28342 
28343   if (!SWIG_Python_UnpackTuple(args,"Enquire_set_weighting_scheme",2,2,swig_obj)) SWIG_fail;
28344   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28345   if (!SWIG_IsOK(res1)) {
28346     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_weighting_scheme" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28347   }
28348   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28349   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Weight,  0  | 0);
28350   if (!SWIG_IsOK(res2)) {
28351     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_weighting_scheme" "', argument " "2"" of type '" "Xapian::Weight const &""'");
28352   }
28353   if (!argp2) {
28354     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_set_weighting_scheme" "', argument " "2"" of type '" "Xapian::Weight const &""'");
28355   }
28356   arg2 = reinterpret_cast< Xapian::Weight * >(argp2);
28357   {
28358     try {
28359       {
28360         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28361         (arg1)->set_weighting_scheme((Xapian::Weight const &)*arg2);
28362         SWIG_PYTHON_THREAD_END_ALLOW;
28363       }
28364     } catch (...) {
28365       Xapian::SetPythonException();
28366       SWIG_fail;
28367     }
28368   }
28369   resultobj = SWIG_Py_Void();
28370   return resultobj;
28371 fail:
28372   return NULL;
28373 }
28374 
28375 
_wrap_Enquire_set_expansion_scheme__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)28376 SWIGINTERN PyObject *_wrap_Enquire_set_expansion_scheme__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28377   PyObject *resultobj = 0;
28378   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28379   std::string *arg2 = 0 ;
28380   double arg3 ;
28381   void *argp1 = 0 ;
28382   int res1 = 0 ;
28383   int res2 = SWIG_OLDOBJ ;
28384   double val3 ;
28385   int ecode3 = 0 ;
28386 
28387   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
28388   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28389   if (!SWIG_IsOK(res1)) {
28390     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_expansion_scheme" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
28391   }
28392   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28393   {
28394     std::string *ptr = (std::string *)0;
28395     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
28396     if (!SWIG_IsOK(res2)) {
28397       if (res2 == INT_MIN) SWIG_fail;
28398       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_expansion_scheme" "', argument " "2"" of type '" "std::string const &""'");
28399     }
28400     if (!ptr) {
28401       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_set_expansion_scheme" "', argument " "2"" of type '" "std::string const &""'");
28402     }
28403     arg2 = ptr;
28404   }
28405   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28406   if (!SWIG_IsOK(ecode3)) {
28407     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_expansion_scheme" "', argument " "3"" of type '" "double""'");
28408   }
28409   arg3 = static_cast< double >(val3);
28410   {
28411     try {
28412       {
28413         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28414         ((Xapian::Enquire const *)arg1)->set_expansion_scheme((std::string const &)*arg2,arg3);
28415         SWIG_PYTHON_THREAD_END_ALLOW;
28416       }
28417     } catch (...) {
28418       Xapian::SetPythonException();
28419       SWIG_fail;
28420     }
28421   }
28422   resultobj = SWIG_Py_Void();
28423   if (SWIG_IsNewObj(res2)) delete arg2;
28424   return resultobj;
28425 fail:
28426   if (SWIG_IsNewObj(res2)) delete arg2;
28427   return NULL;
28428 }
28429 
28430 
_wrap_Enquire_set_expansion_scheme__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)28431 SWIGINTERN PyObject *_wrap_Enquire_set_expansion_scheme__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28432   PyObject *resultobj = 0;
28433   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28434   std::string *arg2 = 0 ;
28435   void *argp1 = 0 ;
28436   int res1 = 0 ;
28437   int res2 = SWIG_OLDOBJ ;
28438 
28439   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28440   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28441   if (!SWIG_IsOK(res1)) {
28442     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_expansion_scheme" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
28443   }
28444   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28445   {
28446     std::string *ptr = (std::string *)0;
28447     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
28448     if (!SWIG_IsOK(res2)) {
28449       if (res2 == INT_MIN) SWIG_fail;
28450       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_expansion_scheme" "', argument " "2"" of type '" "std::string const &""'");
28451     }
28452     if (!ptr) {
28453       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_set_expansion_scheme" "', argument " "2"" of type '" "std::string const &""'");
28454     }
28455     arg2 = ptr;
28456   }
28457   {
28458     try {
28459       {
28460         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28461         ((Xapian::Enquire const *)arg1)->set_expansion_scheme((std::string const &)*arg2);
28462         SWIG_PYTHON_THREAD_END_ALLOW;
28463       }
28464     } catch (...) {
28465       Xapian::SetPythonException();
28466       SWIG_fail;
28467     }
28468   }
28469   resultobj = SWIG_Py_Void();
28470   if (SWIG_IsNewObj(res2)) delete arg2;
28471   return resultobj;
28472 fail:
28473   if (SWIG_IsNewObj(res2)) delete arg2;
28474   return NULL;
28475 }
28476 
28477 
_wrap_Enquire_set_expansion_scheme(PyObject * self,PyObject * args)28478 SWIGINTERN PyObject *_wrap_Enquire_set_expansion_scheme(PyObject *self, PyObject *args) {
28479   Py_ssize_t argc;
28480   PyObject *argv[4] = {
28481     0
28482   };
28483 
28484   if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_set_expansion_scheme",0,3,argv))) SWIG_fail;
28485   --argc;
28486   if (argc == 2) {
28487     return _wrap_Enquire_set_expansion_scheme__SWIG_1(self, argc, argv);
28488   }
28489   if (argc == 3) {
28490     return _wrap_Enquire_set_expansion_scheme__SWIG_0(self, argc, argv);
28491   }
28492 
28493 fail:
28494   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Enquire_set_expansion_scheme'.\n"
28495     "  Possible C/C++ prototypes are:\n"
28496     "    Xapian::Enquire::set_expansion_scheme(std::string const &,double) const\n"
28497     "    Xapian::Enquire::set_expansion_scheme(std::string const &) const\n");
28498   return 0;
28499 }
28500 
28501 
_wrap_Enquire_set_collapse_key__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)28502 SWIGINTERN PyObject *_wrap_Enquire_set_collapse_key__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28503   PyObject *resultobj = 0;
28504   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28505   Xapian::valueno arg2 ;
28506   Xapian::doccount arg3 ;
28507   void *argp1 = 0 ;
28508   int res1 = 0 ;
28509   unsigned int val2 ;
28510   int ecode2 = 0 ;
28511   unsigned int val3 ;
28512   int ecode3 = 0 ;
28513 
28514   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
28515   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28516   if (!SWIG_IsOK(res1)) {
28517     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_collapse_key" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28518   }
28519   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28520   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
28521   if (!SWIG_IsOK(ecode2)) {
28522     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_collapse_key" "', argument " "2"" of type '" "Xapian::valueno""'");
28523   }
28524   arg2 = static_cast< Xapian::valueno >(val2);
28525   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
28526   if (!SWIG_IsOK(ecode3)) {
28527     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_collapse_key" "', argument " "3"" of type '" "Xapian::doccount""'");
28528   }
28529   arg3 = static_cast< Xapian::doccount >(val3);
28530   {
28531     try {
28532       {
28533         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28534         (arg1)->set_collapse_key(arg2,arg3);
28535         SWIG_PYTHON_THREAD_END_ALLOW;
28536       }
28537     } catch (...) {
28538       Xapian::SetPythonException();
28539       SWIG_fail;
28540     }
28541   }
28542   resultobj = SWIG_Py_Void();
28543   return resultobj;
28544 fail:
28545   return NULL;
28546 }
28547 
28548 
_wrap_Enquire_set_collapse_key__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)28549 SWIGINTERN PyObject *_wrap_Enquire_set_collapse_key__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28550   PyObject *resultobj = 0;
28551   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28552   Xapian::valueno arg2 ;
28553   void *argp1 = 0 ;
28554   int res1 = 0 ;
28555   unsigned int val2 ;
28556   int ecode2 = 0 ;
28557 
28558   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28559   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28560   if (!SWIG_IsOK(res1)) {
28561     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_collapse_key" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28562   }
28563   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28564   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
28565   if (!SWIG_IsOK(ecode2)) {
28566     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_collapse_key" "', argument " "2"" of type '" "Xapian::valueno""'");
28567   }
28568   arg2 = static_cast< Xapian::valueno >(val2);
28569   {
28570     try {
28571       {
28572         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28573         (arg1)->set_collapse_key(arg2);
28574         SWIG_PYTHON_THREAD_END_ALLOW;
28575       }
28576     } catch (...) {
28577       Xapian::SetPythonException();
28578       SWIG_fail;
28579     }
28580   }
28581   resultobj = SWIG_Py_Void();
28582   return resultobj;
28583 fail:
28584   return NULL;
28585 }
28586 
28587 
_wrap_Enquire_set_collapse_key(PyObject * self,PyObject * args)28588 SWIGINTERN PyObject *_wrap_Enquire_set_collapse_key(PyObject *self, PyObject *args) {
28589   Py_ssize_t argc;
28590   PyObject *argv[4] = {
28591     0
28592   };
28593 
28594   if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_set_collapse_key",0,3,argv))) SWIG_fail;
28595   --argc;
28596   if (argc == 2) {
28597     return _wrap_Enquire_set_collapse_key__SWIG_1(self, argc, argv);
28598   }
28599   if (argc == 3) {
28600     return _wrap_Enquire_set_collapse_key__SWIG_0(self, argc, argv);
28601   }
28602 
28603 fail:
28604   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Enquire_set_collapse_key'.\n"
28605     "  Possible C/C++ prototypes are:\n"
28606     "    Xapian::Enquire::set_collapse_key(Xapian::valueno,Xapian::doccount)\n"
28607     "    Xapian::Enquire::set_collapse_key(Xapian::valueno)\n");
28608   return 0;
28609 }
28610 
28611 
_wrap_Enquire_set_docid_order(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28612 SWIGINTERN PyObject *_wrap_Enquire_set_docid_order(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28613   PyObject *resultobj = 0;
28614   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28615   Xapian::Enquire::docid_order arg2 ;
28616   void *argp1 = 0 ;
28617   int res1 = 0 ;
28618   int val2 ;
28619   int ecode2 = 0 ;
28620   PyObject *swig_obj[2] ;
28621 
28622   if (!SWIG_Python_UnpackTuple(args,"Enquire_set_docid_order",2,2,swig_obj)) SWIG_fail;
28623   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28624   if (!SWIG_IsOK(res1)) {
28625     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_docid_order" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28626   }
28627   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28628   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28629   if (!SWIG_IsOK(ecode2)) {
28630     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_docid_order" "', argument " "2"" of type '" "Xapian::Enquire::docid_order""'");
28631   }
28632   arg2 = static_cast< Xapian::Enquire::docid_order >(val2);
28633   {
28634     try {
28635       {
28636         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28637         (arg1)->set_docid_order(arg2);
28638         SWIG_PYTHON_THREAD_END_ALLOW;
28639       }
28640     } catch (...) {
28641       Xapian::SetPythonException();
28642       SWIG_fail;
28643     }
28644   }
28645   resultobj = SWIG_Py_Void();
28646   return resultobj;
28647 fail:
28648   return NULL;
28649 }
28650 
28651 
_wrap_Enquire_set_cutoff__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)28652 SWIGINTERN PyObject *_wrap_Enquire_set_cutoff__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28653   PyObject *resultobj = 0;
28654   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28655   int arg2 ;
28656   double arg3 ;
28657   void *argp1 = 0 ;
28658   int res1 = 0 ;
28659   int val2 ;
28660   int ecode2 = 0 ;
28661   double val3 ;
28662   int ecode3 = 0 ;
28663 
28664   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
28665   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28666   if (!SWIG_IsOK(res1)) {
28667     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_cutoff" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28668   }
28669   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28670   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28671   if (!SWIG_IsOK(ecode2)) {
28672     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_cutoff" "', argument " "2"" of type '" "int""'");
28673   }
28674   arg2 = static_cast< int >(val2);
28675   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28676   if (!SWIG_IsOK(ecode3)) {
28677     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_cutoff" "', argument " "3"" of type '" "double""'");
28678   }
28679   arg3 = static_cast< double >(val3);
28680   {
28681     try {
28682       {
28683         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28684         (arg1)->set_cutoff(arg2,arg3);
28685         SWIG_PYTHON_THREAD_END_ALLOW;
28686       }
28687     } catch (...) {
28688       Xapian::SetPythonException();
28689       SWIG_fail;
28690     }
28691   }
28692   resultobj = SWIG_Py_Void();
28693   return resultobj;
28694 fail:
28695   return NULL;
28696 }
28697 
28698 
_wrap_Enquire_set_cutoff__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)28699 SWIGINTERN PyObject *_wrap_Enquire_set_cutoff__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28700   PyObject *resultobj = 0;
28701   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28702   int arg2 ;
28703   void *argp1 = 0 ;
28704   int res1 = 0 ;
28705   int val2 ;
28706   int ecode2 = 0 ;
28707 
28708   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28709   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28710   if (!SWIG_IsOK(res1)) {
28711     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_cutoff" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28712   }
28713   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28714   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28715   if (!SWIG_IsOK(ecode2)) {
28716     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_cutoff" "', argument " "2"" of type '" "int""'");
28717   }
28718   arg2 = static_cast< int >(val2);
28719   {
28720     try {
28721       {
28722         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28723         (arg1)->set_cutoff(arg2);
28724         SWIG_PYTHON_THREAD_END_ALLOW;
28725       }
28726     } catch (...) {
28727       Xapian::SetPythonException();
28728       SWIG_fail;
28729     }
28730   }
28731   resultobj = SWIG_Py_Void();
28732   return resultobj;
28733 fail:
28734   return NULL;
28735 }
28736 
28737 
_wrap_Enquire_set_cutoff(PyObject * self,PyObject * args)28738 SWIGINTERN PyObject *_wrap_Enquire_set_cutoff(PyObject *self, PyObject *args) {
28739   Py_ssize_t argc;
28740   PyObject *argv[4] = {
28741     0
28742   };
28743 
28744   if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_set_cutoff",0,3,argv))) SWIG_fail;
28745   --argc;
28746   if (argc == 2) {
28747     return _wrap_Enquire_set_cutoff__SWIG_1(self, argc, argv);
28748   }
28749   if (argc == 3) {
28750     return _wrap_Enquire_set_cutoff__SWIG_0(self, argc, argv);
28751   }
28752 
28753 fail:
28754   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Enquire_set_cutoff'.\n"
28755     "  Possible C/C++ prototypes are:\n"
28756     "    Xapian::Enquire::set_cutoff(int,double)\n"
28757     "    Xapian::Enquire::set_cutoff(int)\n");
28758   return 0;
28759 }
28760 
28761 
_wrap_Enquire_set_sort_by_relevance(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28762 SWIGINTERN PyObject *_wrap_Enquire_set_sort_by_relevance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28763   PyObject *resultobj = 0;
28764   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28765   void *argp1 = 0 ;
28766   int res1 = 0 ;
28767   PyObject *swig_obj[1] ;
28768 
28769   if (!args) SWIG_fail;
28770   swig_obj[0] = args;
28771   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28772   if (!SWIG_IsOK(res1)) {
28773     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_relevance" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28774   }
28775   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28776   {
28777     try {
28778       {
28779         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28780         (arg1)->set_sort_by_relevance();
28781         SWIG_PYTHON_THREAD_END_ALLOW;
28782       }
28783     } catch (...) {
28784       Xapian::SetPythonException();
28785       SWIG_fail;
28786     }
28787   }
28788   resultobj = SWIG_Py_Void();
28789   return resultobj;
28790 fail:
28791   return NULL;
28792 }
28793 
28794 
_wrap_Enquire_set_sort_by_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28795 SWIGINTERN PyObject *_wrap_Enquire_set_sort_by_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28796   PyObject *resultobj = 0;
28797   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28798   Xapian::valueno arg2 ;
28799   bool arg3 ;
28800   void *argp1 = 0 ;
28801   int res1 = 0 ;
28802   unsigned int val2 ;
28803   int ecode2 = 0 ;
28804   bool val3 ;
28805   int ecode3 = 0 ;
28806   PyObject *swig_obj[3] ;
28807 
28808   if (!SWIG_Python_UnpackTuple(args,"Enquire_set_sort_by_value",3,3,swig_obj)) SWIG_fail;
28809   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28810   if (!SWIG_IsOK(res1)) {
28811     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_value" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28812   }
28813   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28814   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
28815   if (!SWIG_IsOK(ecode2)) {
28816     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_sort_by_value" "', argument " "2"" of type '" "Xapian::valueno""'");
28817   }
28818   arg2 = static_cast< Xapian::valueno >(val2);
28819   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
28820   if (!SWIG_IsOK(ecode3)) {
28821     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_sort_by_value" "', argument " "3"" of type '" "bool""'");
28822   }
28823   arg3 = static_cast< bool >(val3);
28824   {
28825     try {
28826       {
28827         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28828         (arg1)->set_sort_by_value(arg2,arg3);
28829         SWIG_PYTHON_THREAD_END_ALLOW;
28830       }
28831     } catch (...) {
28832       Xapian::SetPythonException();
28833       SWIG_fail;
28834     }
28835   }
28836   resultobj = SWIG_Py_Void();
28837   return resultobj;
28838 fail:
28839   return NULL;
28840 }
28841 
28842 
_wrap_Enquire_set_sort_by_key(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28843 SWIGINTERN PyObject *_wrap_Enquire_set_sort_by_key(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28844   PyObject *resultobj = 0;
28845   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28846   Xapian::KeyMaker *arg2 = (Xapian::KeyMaker *) 0 ;
28847   bool arg3 ;
28848   void *argp1 = 0 ;
28849   int res1 = 0 ;
28850   void *argp2 = 0 ;
28851   int res2 = 0 ;
28852   bool val3 ;
28853   int ecode3 = 0 ;
28854   PyObject *swig_obj[3] ;
28855 
28856   if (!SWIG_Python_UnpackTuple(args,"Enquire_set_sort_by_key",3,3,swig_obj)) SWIG_fail;
28857   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28858   if (!SWIG_IsOK(res1)) {
28859     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_key" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28860   }
28861   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28862   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__KeyMaker, 0 |  0 );
28863   if (!SWIG_IsOK(res2)) {
28864     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_sort_by_key" "', argument " "2"" of type '" "Xapian::KeyMaker *""'");
28865   }
28866   arg2 = reinterpret_cast< Xapian::KeyMaker * >(argp2);
28867   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
28868   if (!SWIG_IsOK(ecode3)) {
28869     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_sort_by_key" "', argument " "3"" of type '" "bool""'");
28870   }
28871   arg3 = static_cast< bool >(val3);
28872   {
28873     try {
28874       {
28875         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28876         (arg1)->set_sort_by_key(arg2,arg3);
28877         SWIG_PYTHON_THREAD_END_ALLOW;
28878       }
28879     } catch (...) {
28880       Xapian::SetPythonException();
28881       SWIG_fail;
28882     }
28883   }
28884   resultobj = SWIG_Py_Void();
28885   return resultobj;
28886 fail:
28887   return NULL;
28888 }
28889 
28890 
_wrap_Enquire_set_sort_by_value_then_relevance(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28891 SWIGINTERN PyObject *_wrap_Enquire_set_sort_by_value_then_relevance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28892   PyObject *resultobj = 0;
28893   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28894   Xapian::valueno arg2 ;
28895   bool arg3 ;
28896   void *argp1 = 0 ;
28897   int res1 = 0 ;
28898   unsigned int val2 ;
28899   int ecode2 = 0 ;
28900   bool val3 ;
28901   int ecode3 = 0 ;
28902   PyObject *swig_obj[3] ;
28903 
28904   if (!SWIG_Python_UnpackTuple(args,"Enquire_set_sort_by_value_then_relevance",3,3,swig_obj)) SWIG_fail;
28905   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28906   if (!SWIG_IsOK(res1)) {
28907     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_value_then_relevance" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28908   }
28909   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28910   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
28911   if (!SWIG_IsOK(ecode2)) {
28912     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_sort_by_value_then_relevance" "', argument " "2"" of type '" "Xapian::valueno""'");
28913   }
28914   arg2 = static_cast< Xapian::valueno >(val2);
28915   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
28916   if (!SWIG_IsOK(ecode3)) {
28917     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_sort_by_value_then_relevance" "', argument " "3"" of type '" "bool""'");
28918   }
28919   arg3 = static_cast< bool >(val3);
28920   {
28921     try {
28922       {
28923         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28924         (arg1)->set_sort_by_value_then_relevance(arg2,arg3);
28925         SWIG_PYTHON_THREAD_END_ALLOW;
28926       }
28927     } catch (...) {
28928       Xapian::SetPythonException();
28929       SWIG_fail;
28930     }
28931   }
28932   resultobj = SWIG_Py_Void();
28933   return resultobj;
28934 fail:
28935   return NULL;
28936 }
28937 
28938 
_wrap_Enquire_set_sort_by_key_then_relevance(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28939 SWIGINTERN PyObject *_wrap_Enquire_set_sort_by_key_then_relevance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28940   PyObject *resultobj = 0;
28941   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28942   Xapian::KeyMaker *arg2 = (Xapian::KeyMaker *) 0 ;
28943   bool arg3 ;
28944   void *argp1 = 0 ;
28945   int res1 = 0 ;
28946   void *argp2 = 0 ;
28947   int res2 = 0 ;
28948   bool val3 ;
28949   int ecode3 = 0 ;
28950   PyObject *swig_obj[3] ;
28951 
28952   if (!SWIG_Python_UnpackTuple(args,"Enquire_set_sort_by_key_then_relevance",3,3,swig_obj)) SWIG_fail;
28953   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
28954   if (!SWIG_IsOK(res1)) {
28955     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_key_then_relevance" "', argument " "1"" of type '" "Xapian::Enquire *""'");
28956   }
28957   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
28958   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__KeyMaker, 0 |  0 );
28959   if (!SWIG_IsOK(res2)) {
28960     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_sort_by_key_then_relevance" "', argument " "2"" of type '" "Xapian::KeyMaker *""'");
28961   }
28962   arg2 = reinterpret_cast< Xapian::KeyMaker * >(argp2);
28963   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
28964   if (!SWIG_IsOK(ecode3)) {
28965     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_sort_by_key_then_relevance" "', argument " "3"" of type '" "bool""'");
28966   }
28967   arg3 = static_cast< bool >(val3);
28968   {
28969     try {
28970       {
28971         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
28972         (arg1)->set_sort_by_key_then_relevance(arg2,arg3);
28973         SWIG_PYTHON_THREAD_END_ALLOW;
28974       }
28975     } catch (...) {
28976       Xapian::SetPythonException();
28977       SWIG_fail;
28978     }
28979   }
28980   resultobj = SWIG_Py_Void();
28981   return resultobj;
28982 fail:
28983   return NULL;
28984 }
28985 
28986 
_wrap_Enquire_set_sort_by_relevance_then_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)28987 SWIGINTERN PyObject *_wrap_Enquire_set_sort_by_relevance_then_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28988   PyObject *resultobj = 0;
28989   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
28990   Xapian::valueno arg2 ;
28991   bool arg3 ;
28992   void *argp1 = 0 ;
28993   int res1 = 0 ;
28994   unsigned int val2 ;
28995   int ecode2 = 0 ;
28996   bool val3 ;
28997   int ecode3 = 0 ;
28998   PyObject *swig_obj[3] ;
28999 
29000   if (!SWIG_Python_UnpackTuple(args,"Enquire_set_sort_by_relevance_then_value",3,3,swig_obj)) SWIG_fail;
29001   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29002   if (!SWIG_IsOK(res1)) {
29003     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_relevance_then_value" "', argument " "1"" of type '" "Xapian::Enquire *""'");
29004   }
29005   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29006   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29007   if (!SWIG_IsOK(ecode2)) {
29008     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_sort_by_relevance_then_value" "', argument " "2"" of type '" "Xapian::valueno""'");
29009   }
29010   arg2 = static_cast< Xapian::valueno >(val2);
29011   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
29012   if (!SWIG_IsOK(ecode3)) {
29013     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_sort_by_relevance_then_value" "', argument " "3"" of type '" "bool""'");
29014   }
29015   arg3 = static_cast< bool >(val3);
29016   {
29017     try {
29018       {
29019         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29020         (arg1)->set_sort_by_relevance_then_value(arg2,arg3);
29021         SWIG_PYTHON_THREAD_END_ALLOW;
29022       }
29023     } catch (...) {
29024       Xapian::SetPythonException();
29025       SWIG_fail;
29026     }
29027   }
29028   resultobj = SWIG_Py_Void();
29029   return resultobj;
29030 fail:
29031   return NULL;
29032 }
29033 
29034 
_wrap_Enquire_set_sort_by_relevance_then_key(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29035 SWIGINTERN PyObject *_wrap_Enquire_set_sort_by_relevance_then_key(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29036   PyObject *resultobj = 0;
29037   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29038   Xapian::KeyMaker *arg2 = (Xapian::KeyMaker *) 0 ;
29039   bool arg3 ;
29040   void *argp1 = 0 ;
29041   int res1 = 0 ;
29042   void *argp2 = 0 ;
29043   int res2 = 0 ;
29044   bool val3 ;
29045   int ecode3 = 0 ;
29046   PyObject *swig_obj[3] ;
29047 
29048   if (!SWIG_Python_UnpackTuple(args,"Enquire_set_sort_by_relevance_then_key",3,3,swig_obj)) SWIG_fail;
29049   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29050   if (!SWIG_IsOK(res1)) {
29051     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_sort_by_relevance_then_key" "', argument " "1"" of type '" "Xapian::Enquire *""'");
29052   }
29053   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29054   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__KeyMaker, 0 |  0 );
29055   if (!SWIG_IsOK(res2)) {
29056     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire_set_sort_by_relevance_then_key" "', argument " "2"" of type '" "Xapian::KeyMaker *""'");
29057   }
29058   arg2 = reinterpret_cast< Xapian::KeyMaker * >(argp2);
29059   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
29060   if (!SWIG_IsOK(ecode3)) {
29061     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_set_sort_by_relevance_then_key" "', argument " "3"" of type '" "bool""'");
29062   }
29063   arg3 = static_cast< bool >(val3);
29064   {
29065     try {
29066       {
29067         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29068         (arg1)->set_sort_by_relevance_then_key(arg2,arg3);
29069         SWIG_PYTHON_THREAD_END_ALLOW;
29070       }
29071     } catch (...) {
29072       Xapian::SetPythonException();
29073       SWIG_fail;
29074     }
29075   }
29076   resultobj = SWIG_Py_Void();
29077   return resultobj;
29078 fail:
29079   return NULL;
29080 }
29081 
29082 
_wrap_Enquire_set_time_limit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)29083 SWIGINTERN PyObject *_wrap_Enquire_set_time_limit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29084   PyObject *resultobj = 0;
29085   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29086   double arg2 ;
29087   void *argp1 = 0 ;
29088   int res1 = 0 ;
29089   double val2 ;
29090   int ecode2 = 0 ;
29091   PyObject *swig_obj[2] ;
29092 
29093   if (!SWIG_Python_UnpackTuple(args,"Enquire_set_time_limit",2,2,swig_obj)) SWIG_fail;
29094   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29095   if (!SWIG_IsOK(res1)) {
29096     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_set_time_limit" "', argument " "1"" of type '" "Xapian::Enquire *""'");
29097   }
29098   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29099   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
29100   if (!SWIG_IsOK(ecode2)) {
29101     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_set_time_limit" "', argument " "2"" of type '" "double""'");
29102   }
29103   arg2 = static_cast< double >(val2);
29104   {
29105     try {
29106       {
29107         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29108         (arg1)->set_time_limit(arg2);
29109         SWIG_PYTHON_THREAD_END_ALLOW;
29110       }
29111     } catch (...) {
29112       Xapian::SetPythonException();
29113       SWIG_fail;
29114     }
29115   }
29116   resultobj = SWIG_Py_Void();
29117   return resultobj;
29118 fail:
29119   return NULL;
29120 }
29121 
29122 
_wrap_Enquire_get_mset__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29123 SWIGINTERN PyObject *_wrap_Enquire_get_mset__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29124   PyObject *resultobj = 0;
29125   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29126   Xapian::doccount arg2 ;
29127   Xapian::doccount arg3 ;
29128   Xapian::doccount arg4 ;
29129   Xapian::RSet *arg5 = (Xapian::RSet *) 0 ;
29130   Xapian::MatchDecider *arg6 = (Xapian::MatchDecider *) 0 ;
29131   void *argp1 = 0 ;
29132   int res1 = 0 ;
29133   unsigned int val2 ;
29134   int ecode2 = 0 ;
29135   unsigned int val3 ;
29136   int ecode3 = 0 ;
29137   unsigned int val4 ;
29138   int ecode4 = 0 ;
29139   void *argp5 = 0 ;
29140   int res5 = 0 ;
29141   void *argp6 = 0 ;
29142   int res6 = 0 ;
29143   Xapian::MSet result;
29144 
29145   if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
29146   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29147   if (!SWIG_IsOK(res1)) {
29148     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29149   }
29150   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29151   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29152   if (!SWIG_IsOK(ecode2)) {
29153     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'");
29154   }
29155   arg2 = static_cast< Xapian::doccount >(val2);
29156   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
29157   if (!SWIG_IsOK(ecode3)) {
29158     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'");
29159   }
29160   arg3 = static_cast< Xapian::doccount >(val3);
29161   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
29162   if (!SWIG_IsOK(ecode4)) {
29163     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::doccount""'");
29164   }
29165   arg4 = static_cast< Xapian::doccount >(val4);
29166   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
29167   if (!SWIG_IsOK(res5)) {
29168     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Enquire_get_mset" "', argument " "5"" of type '" "Xapian::RSet const *""'");
29169   }
29170   arg5 = reinterpret_cast< Xapian::RSet * >(argp5);
29171   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_Xapian__MatchDecider, 0 |  0 );
29172   if (!SWIG_IsOK(res6)) {
29173     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Enquire_get_mset" "', argument " "6"" of type '" "Xapian::MatchDecider const *""'");
29174   }
29175   arg6 = reinterpret_cast< Xapian::MatchDecider * >(argp6);
29176   {
29177     try {
29178       {
29179         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29180         result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,arg4,(Xapian::RSet const *)arg5,(Xapian::MatchDecider const *)arg6);
29181         SWIG_PYTHON_THREAD_END_ALLOW;
29182       }
29183     } catch (...) {
29184       Xapian::SetPythonException();
29185       SWIG_fail;
29186     }
29187   }
29188   resultobj = SWIG_NewPointerObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_OWN |  0 );
29189   return resultobj;
29190 fail:
29191   return NULL;
29192 }
29193 
29194 
_wrap_Enquire_get_mset__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29195 SWIGINTERN PyObject *_wrap_Enquire_get_mset__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29196   PyObject *resultobj = 0;
29197   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29198   Xapian::doccount arg2 ;
29199   Xapian::doccount arg3 ;
29200   Xapian::doccount arg4 ;
29201   Xapian::RSet *arg5 = (Xapian::RSet *) 0 ;
29202   void *argp1 = 0 ;
29203   int res1 = 0 ;
29204   unsigned int val2 ;
29205   int ecode2 = 0 ;
29206   unsigned int val3 ;
29207   int ecode3 = 0 ;
29208   unsigned int val4 ;
29209   int ecode4 = 0 ;
29210   void *argp5 = 0 ;
29211   int res5 = 0 ;
29212   Xapian::MSet result;
29213 
29214   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
29215   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29216   if (!SWIG_IsOK(res1)) {
29217     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29218   }
29219   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29220   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29221   if (!SWIG_IsOK(ecode2)) {
29222     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'");
29223   }
29224   arg2 = static_cast< Xapian::doccount >(val2);
29225   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
29226   if (!SWIG_IsOK(ecode3)) {
29227     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'");
29228   }
29229   arg3 = static_cast< Xapian::doccount >(val3);
29230   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
29231   if (!SWIG_IsOK(ecode4)) {
29232     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::doccount""'");
29233   }
29234   arg4 = static_cast< Xapian::doccount >(val4);
29235   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
29236   if (!SWIG_IsOK(res5)) {
29237     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Enquire_get_mset" "', argument " "5"" of type '" "Xapian::RSet const *""'");
29238   }
29239   arg5 = reinterpret_cast< Xapian::RSet * >(argp5);
29240   {
29241     try {
29242       {
29243         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29244         result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,arg4,(Xapian::RSet const *)arg5);
29245         SWIG_PYTHON_THREAD_END_ALLOW;
29246       }
29247     } catch (...) {
29248       Xapian::SetPythonException();
29249       SWIG_fail;
29250     }
29251   }
29252   resultobj = SWIG_NewPointerObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_OWN |  0 );
29253   return resultobj;
29254 fail:
29255   return NULL;
29256 }
29257 
29258 
_wrap_Enquire_get_mset__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29259 SWIGINTERN PyObject *_wrap_Enquire_get_mset__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29260   PyObject *resultobj = 0;
29261   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29262   Xapian::doccount arg2 ;
29263   Xapian::doccount arg3 ;
29264   Xapian::doccount arg4 ;
29265   void *argp1 = 0 ;
29266   int res1 = 0 ;
29267   unsigned int val2 ;
29268   int ecode2 = 0 ;
29269   unsigned int val3 ;
29270   int ecode3 = 0 ;
29271   unsigned int val4 ;
29272   int ecode4 = 0 ;
29273   Xapian::MSet result;
29274 
29275   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
29276   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29277   if (!SWIG_IsOK(res1)) {
29278     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29279   }
29280   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29281   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29282   if (!SWIG_IsOK(ecode2)) {
29283     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'");
29284   }
29285   arg2 = static_cast< Xapian::doccount >(val2);
29286   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
29287   if (!SWIG_IsOK(ecode3)) {
29288     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'");
29289   }
29290   arg3 = static_cast< Xapian::doccount >(val3);
29291   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
29292   if (!SWIG_IsOK(ecode4)) {
29293     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::doccount""'");
29294   }
29295   arg4 = static_cast< Xapian::doccount >(val4);
29296   {
29297     try {
29298       {
29299         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29300         result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,arg4);
29301         SWIG_PYTHON_THREAD_END_ALLOW;
29302       }
29303     } catch (...) {
29304       Xapian::SetPythonException();
29305       SWIG_fail;
29306     }
29307   }
29308   resultobj = SWIG_NewPointerObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_OWN |  0 );
29309   return resultobj;
29310 fail:
29311   return NULL;
29312 }
29313 
29314 
_wrap_Enquire_get_mset__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29315 SWIGINTERN PyObject *_wrap_Enquire_get_mset__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29316   PyObject *resultobj = 0;
29317   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29318   Xapian::doccount arg2 ;
29319   Xapian::doccount arg3 ;
29320   void *argp1 = 0 ;
29321   int res1 = 0 ;
29322   unsigned int val2 ;
29323   int ecode2 = 0 ;
29324   unsigned int val3 ;
29325   int ecode3 = 0 ;
29326   Xapian::MSet result;
29327 
29328   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
29329   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29330   if (!SWIG_IsOK(res1)) {
29331     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29332   }
29333   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29334   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29335   if (!SWIG_IsOK(ecode2)) {
29336     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'");
29337   }
29338   arg2 = static_cast< Xapian::doccount >(val2);
29339   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
29340   if (!SWIG_IsOK(ecode3)) {
29341     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'");
29342   }
29343   arg3 = static_cast< Xapian::doccount >(val3);
29344   {
29345     try {
29346       {
29347         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29348         result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3);
29349         SWIG_PYTHON_THREAD_END_ALLOW;
29350       }
29351     } catch (...) {
29352       Xapian::SetPythonException();
29353       SWIG_fail;
29354     }
29355   }
29356   resultobj = SWIG_NewPointerObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_OWN |  0 );
29357   return resultobj;
29358 fail:
29359   return NULL;
29360 }
29361 
29362 
_wrap_Enquire_get_mset__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29363 SWIGINTERN PyObject *_wrap_Enquire_get_mset__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29364   PyObject *resultobj = 0;
29365   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29366   Xapian::doccount arg2 ;
29367   Xapian::doccount arg3 ;
29368   Xapian::RSet *arg4 = (Xapian::RSet *) 0 ;
29369   Xapian::MatchDecider *arg5 = (Xapian::MatchDecider *) 0 ;
29370   void *argp1 = 0 ;
29371   int res1 = 0 ;
29372   unsigned int val2 ;
29373   int ecode2 = 0 ;
29374   unsigned int val3 ;
29375   int ecode3 = 0 ;
29376   void *argp4 = 0 ;
29377   int res4 = 0 ;
29378   void *argp5 = 0 ;
29379   int res5 = 0 ;
29380   Xapian::MSet result;
29381 
29382   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
29383   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29384   if (!SWIG_IsOK(res1)) {
29385     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29386   }
29387   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29388   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29389   if (!SWIG_IsOK(ecode2)) {
29390     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'");
29391   }
29392   arg2 = static_cast< Xapian::doccount >(val2);
29393   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
29394   if (!SWIG_IsOK(ecode3)) {
29395     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'");
29396   }
29397   arg3 = static_cast< Xapian::doccount >(val3);
29398   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
29399   if (!SWIG_IsOK(res4)) {
29400     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::RSet const *""'");
29401   }
29402   arg4 = reinterpret_cast< Xapian::RSet * >(argp4);
29403   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_Xapian__MatchDecider, 0 |  0 );
29404   if (!SWIG_IsOK(res5)) {
29405     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Enquire_get_mset" "', argument " "5"" of type '" "Xapian::MatchDecider const *""'");
29406   }
29407   arg5 = reinterpret_cast< Xapian::MatchDecider * >(argp5);
29408   {
29409     try {
29410       {
29411         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29412         result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,(Xapian::RSet const *)arg4,(Xapian::MatchDecider const *)arg5);
29413         SWIG_PYTHON_THREAD_END_ALLOW;
29414       }
29415     } catch (...) {
29416       Xapian::SetPythonException();
29417       SWIG_fail;
29418     }
29419   }
29420   resultobj = SWIG_NewPointerObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_OWN |  0 );
29421   return resultobj;
29422 fail:
29423   return NULL;
29424 }
29425 
29426 
_wrap_Enquire_get_mset__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29427 SWIGINTERN PyObject *_wrap_Enquire_get_mset__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29428   PyObject *resultobj = 0;
29429   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29430   Xapian::doccount arg2 ;
29431   Xapian::doccount arg3 ;
29432   Xapian::RSet *arg4 = (Xapian::RSet *) 0 ;
29433   void *argp1 = 0 ;
29434   int res1 = 0 ;
29435   unsigned int val2 ;
29436   int ecode2 = 0 ;
29437   unsigned int val3 ;
29438   int ecode3 = 0 ;
29439   void *argp4 = 0 ;
29440   int res4 = 0 ;
29441   Xapian::MSet result;
29442 
29443   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
29444   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29445   if (!SWIG_IsOK(res1)) {
29446     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_mset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29447   }
29448   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29449   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29450   if (!SWIG_IsOK(ecode2)) {
29451     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_mset" "', argument " "2"" of type '" "Xapian::doccount""'");
29452   }
29453   arg2 = static_cast< Xapian::doccount >(val2);
29454   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
29455   if (!SWIG_IsOK(ecode3)) {
29456     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Enquire_get_mset" "', argument " "3"" of type '" "Xapian::doccount""'");
29457   }
29458   arg3 = static_cast< Xapian::doccount >(val3);
29459   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_Xapian__RSet, 0 |  0 );
29460   if (!SWIG_IsOK(res4)) {
29461     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Enquire_get_mset" "', argument " "4"" of type '" "Xapian::RSet const *""'");
29462   }
29463   arg4 = reinterpret_cast< Xapian::RSet * >(argp4);
29464   {
29465     try {
29466       {
29467         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29468         result = ((Xapian::Enquire const *)arg1)->get_mset(arg2,arg3,(Xapian::RSet const *)arg4);
29469         SWIG_PYTHON_THREAD_END_ALLOW;
29470       }
29471     } catch (...) {
29472       Xapian::SetPythonException();
29473       SWIG_fail;
29474     }
29475   }
29476   resultobj = SWIG_NewPointerObj((new Xapian::MSet(static_cast< const Xapian::MSet& >(result))), SWIGTYPE_p_Xapian__MSet, SWIG_POINTER_OWN |  0 );
29477   return resultobj;
29478 fail:
29479   return NULL;
29480 }
29481 
29482 
_wrap_Enquire_get_mset(PyObject * self,PyObject * args)29483 SWIGINTERN PyObject *_wrap_Enquire_get_mset(PyObject *self, PyObject *args) {
29484   Py_ssize_t argc;
29485   PyObject *argv[7] = {
29486     0
29487   };
29488 
29489   if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_get_mset",0,6,argv))) SWIG_fail;
29490   --argc;
29491   if (argc == 3) {
29492     return _wrap_Enquire_get_mset__SWIG_3(self, argc, argv);
29493   }
29494   if (argc == 4) {
29495     int _v = 0;
29496     {
29497       void *vptr = 0;
29498       int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
29499       _v = SWIG_CheckState(res);
29500     }
29501     if (!_v) goto check_2;
29502     return _wrap_Enquire_get_mset__SWIG_5(self, argc, argv);
29503   }
29504 check_2:
29505 
29506   if (argc == 4) {
29507     return _wrap_Enquire_get_mset__SWIG_2(self, argc, argv);
29508   }
29509   if (argc == 5) {
29510     int _v = 0;
29511     {
29512       void *vptr = 0;
29513       int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_Xapian__RSet, 0);
29514       _v = SWIG_CheckState(res);
29515     }
29516     if (!_v) goto check_4;
29517     {
29518       void *vptr = 0;
29519       int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_Xapian__MatchDecider, 0);
29520       _v = SWIG_CheckState(res);
29521     }
29522     if (!_v) goto check_4;
29523     return _wrap_Enquire_get_mset__SWIG_4(self, argc, argv);
29524   }
29525 check_4:
29526 
29527   if (argc == 5) {
29528     return _wrap_Enquire_get_mset__SWIG_1(self, argc, argv);
29529   }
29530   if (argc == 6) {
29531     return _wrap_Enquire_get_mset__SWIG_0(self, argc, argv);
29532   }
29533 
29534 fail:
29535   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Enquire_get_mset'.\n"
29536     "  Possible C/C++ prototypes are:\n"
29537     "    Xapian::Enquire::get_mset(Xapian::doccount,Xapian::doccount,Xapian::doccount,Xapian::RSet const *,Xapian::MatchDecider const *) const\n"
29538     "    Xapian::Enquire::get_mset(Xapian::doccount,Xapian::doccount,Xapian::doccount,Xapian::RSet const *) const\n"
29539     "    Xapian::Enquire::get_mset(Xapian::doccount,Xapian::doccount,Xapian::doccount) const\n"
29540     "    Xapian::Enquire::get_mset(Xapian::doccount,Xapian::doccount) const\n"
29541     "    Xapian::Enquire::get_mset(Xapian::doccount,Xapian::doccount,Xapian::RSet const *,Xapian::MatchDecider const *) const\n"
29542     "    Xapian::Enquire::get_mset(Xapian::doccount,Xapian::doccount,Xapian::RSet const *) const\n");
29543   return 0;
29544 }
29545 
29546 
_wrap_Enquire_get_eset__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29547 SWIGINTERN PyObject *_wrap_Enquire_get_eset__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29548   PyObject *resultobj = 0;
29549   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29550   Xapian::termcount arg2 ;
29551   Xapian::RSet *arg3 = 0 ;
29552   int arg4 ;
29553   Xapian::ExpandDecider *arg5 = (Xapian::ExpandDecider *) 0 ;
29554   double arg6 ;
29555   void *argp1 = 0 ;
29556   int res1 = 0 ;
29557   unsigned int val2 ;
29558   int ecode2 = 0 ;
29559   void *argp3 = 0 ;
29560   int res3 = 0 ;
29561   int val4 ;
29562   int ecode4 = 0 ;
29563   void *argp5 = 0 ;
29564   int res5 = 0 ;
29565   double val6 ;
29566   int ecode6 = 0 ;
29567   Xapian::ESet result;
29568 
29569   if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
29570   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29571   if (!SWIG_IsOK(res1)) {
29572     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29573   }
29574   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29575   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29576   if (!SWIG_IsOK(ecode2)) {
29577     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
29578   }
29579   arg2 = static_cast< Xapian::termcount >(val2);
29580   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__RSet,  0  | 0);
29581   if (!SWIG_IsOK(res3)) {
29582     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29583   }
29584   if (!argp3) {
29585     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29586   }
29587   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
29588   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
29589   if (!SWIG_IsOK(ecode4)) {
29590     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'");
29591   }
29592   arg4 = static_cast< int >(val4);
29593   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
29594   if (!SWIG_IsOK(res5)) {
29595     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Enquire_get_eset" "', argument " "5"" of type '" "Xapian::ExpandDecider const *""'");
29596   }
29597   arg5 = reinterpret_cast< Xapian::ExpandDecider * >(argp5);
29598   ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
29599   if (!SWIG_IsOK(ecode6)) {
29600     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Enquire_get_eset" "', argument " "6"" of type '" "double""'");
29601   }
29602   arg6 = static_cast< double >(val6);
29603   {
29604     try {
29605       {
29606         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29607         result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4,(Xapian::ExpandDecider const *)arg5,arg6);
29608         SWIG_PYTHON_THREAD_END_ALLOW;
29609       }
29610     } catch (...) {
29611       Xapian::SetPythonException();
29612       SWIG_fail;
29613     }
29614   }
29615   resultobj = SWIG_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN |  0 );
29616   return resultobj;
29617 fail:
29618   return NULL;
29619 }
29620 
29621 
_wrap_Enquire_get_eset__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29622 SWIGINTERN PyObject *_wrap_Enquire_get_eset__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29623   PyObject *resultobj = 0;
29624   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29625   Xapian::termcount arg2 ;
29626   Xapian::RSet *arg3 = 0 ;
29627   int arg4 ;
29628   Xapian::ExpandDecider *arg5 = (Xapian::ExpandDecider *) 0 ;
29629   void *argp1 = 0 ;
29630   int res1 = 0 ;
29631   unsigned int val2 ;
29632   int ecode2 = 0 ;
29633   void *argp3 = 0 ;
29634   int res3 = 0 ;
29635   int val4 ;
29636   int ecode4 = 0 ;
29637   void *argp5 = 0 ;
29638   int res5 = 0 ;
29639   Xapian::ESet result;
29640 
29641   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
29642   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29643   if (!SWIG_IsOK(res1)) {
29644     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29645   }
29646   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29647   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29648   if (!SWIG_IsOK(ecode2)) {
29649     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
29650   }
29651   arg2 = static_cast< Xapian::termcount >(val2);
29652   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__RSet,  0  | 0);
29653   if (!SWIG_IsOK(res3)) {
29654     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29655   }
29656   if (!argp3) {
29657     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29658   }
29659   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
29660   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
29661   if (!SWIG_IsOK(ecode4)) {
29662     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'");
29663   }
29664   arg4 = static_cast< int >(val4);
29665   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
29666   if (!SWIG_IsOK(res5)) {
29667     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Enquire_get_eset" "', argument " "5"" of type '" "Xapian::ExpandDecider const *""'");
29668   }
29669   arg5 = reinterpret_cast< Xapian::ExpandDecider * >(argp5);
29670   {
29671     try {
29672       {
29673         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29674         result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4,(Xapian::ExpandDecider const *)arg5);
29675         SWIG_PYTHON_THREAD_END_ALLOW;
29676       }
29677     } catch (...) {
29678       Xapian::SetPythonException();
29679       SWIG_fail;
29680     }
29681   }
29682   resultobj = SWIG_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN |  0 );
29683   return resultobj;
29684 fail:
29685   return NULL;
29686 }
29687 
29688 
_wrap_Enquire_get_eset__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29689 SWIGINTERN PyObject *_wrap_Enquire_get_eset__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29690   PyObject *resultobj = 0;
29691   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29692   Xapian::termcount arg2 ;
29693   Xapian::RSet *arg3 = 0 ;
29694   int arg4 ;
29695   void *argp1 = 0 ;
29696   int res1 = 0 ;
29697   unsigned int val2 ;
29698   int ecode2 = 0 ;
29699   void *argp3 = 0 ;
29700   int res3 = 0 ;
29701   int val4 ;
29702   int ecode4 = 0 ;
29703   Xapian::ESet result;
29704 
29705   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
29706   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29707   if (!SWIG_IsOK(res1)) {
29708     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29709   }
29710   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29711   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29712   if (!SWIG_IsOK(ecode2)) {
29713     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
29714   }
29715   arg2 = static_cast< Xapian::termcount >(val2);
29716   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__RSet,  0  | 0);
29717   if (!SWIG_IsOK(res3)) {
29718     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29719   }
29720   if (!argp3) {
29721     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29722   }
29723   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
29724   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
29725   if (!SWIG_IsOK(ecode4)) {
29726     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'");
29727   }
29728   arg4 = static_cast< int >(val4);
29729   {
29730     try {
29731       {
29732         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29733         result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4);
29734         SWIG_PYTHON_THREAD_END_ALLOW;
29735       }
29736     } catch (...) {
29737       Xapian::SetPythonException();
29738       SWIG_fail;
29739     }
29740   }
29741   resultobj = SWIG_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN |  0 );
29742   return resultobj;
29743 fail:
29744   return NULL;
29745 }
29746 
29747 
_wrap_Enquire_get_eset__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29748 SWIGINTERN PyObject *_wrap_Enquire_get_eset__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29749   PyObject *resultobj = 0;
29750   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29751   Xapian::termcount arg2 ;
29752   Xapian::RSet *arg3 = 0 ;
29753   void *argp1 = 0 ;
29754   int res1 = 0 ;
29755   unsigned int val2 ;
29756   int ecode2 = 0 ;
29757   void *argp3 = 0 ;
29758   int res3 = 0 ;
29759   Xapian::ESet result;
29760 
29761   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
29762   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29763   if (!SWIG_IsOK(res1)) {
29764     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29765   }
29766   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29767   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29768   if (!SWIG_IsOK(ecode2)) {
29769     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
29770   }
29771   arg2 = static_cast< Xapian::termcount >(val2);
29772   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__RSet,  0  | 0);
29773   if (!SWIG_IsOK(res3)) {
29774     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29775   }
29776   if (!argp3) {
29777     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29778   }
29779   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
29780   {
29781     try {
29782       {
29783         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29784         result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3);
29785         SWIG_PYTHON_THREAD_END_ALLOW;
29786       }
29787     } catch (...) {
29788       Xapian::SetPythonException();
29789       SWIG_fail;
29790     }
29791   }
29792   resultobj = SWIG_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN |  0 );
29793   return resultobj;
29794 fail:
29795   return NULL;
29796 }
29797 
29798 
_wrap_Enquire_get_eset__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29799 SWIGINTERN PyObject *_wrap_Enquire_get_eset__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29800   PyObject *resultobj = 0;
29801   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29802   Xapian::termcount arg2 ;
29803   Xapian::RSet *arg3 = 0 ;
29804   Xapian::ExpandDecider *arg4 = (Xapian::ExpandDecider *) 0 ;
29805   void *argp1 = 0 ;
29806   int res1 = 0 ;
29807   unsigned int val2 ;
29808   int ecode2 = 0 ;
29809   void *argp3 = 0 ;
29810   int res3 = 0 ;
29811   void *argp4 = 0 ;
29812   int res4 = 0 ;
29813   Xapian::ESet result;
29814 
29815   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
29816   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29817   if (!SWIG_IsOK(res1)) {
29818     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29819   }
29820   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29821   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29822   if (!SWIG_IsOK(ecode2)) {
29823     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
29824   }
29825   arg2 = static_cast< Xapian::termcount >(val2);
29826   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__RSet,  0  | 0);
29827   if (!SWIG_IsOK(res3)) {
29828     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29829   }
29830   if (!argp3) {
29831     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29832   }
29833   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
29834   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
29835   if (!SWIG_IsOK(res4)) {
29836     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "Xapian::ExpandDecider const *""'");
29837   }
29838   arg4 = reinterpret_cast< Xapian::ExpandDecider * >(argp4);
29839   {
29840     try {
29841       {
29842         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29843         result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,(Xapian::ExpandDecider const *)arg4);
29844         SWIG_PYTHON_THREAD_END_ALLOW;
29845       }
29846     } catch (...) {
29847       Xapian::SetPythonException();
29848       SWIG_fail;
29849     }
29850   }
29851   resultobj = SWIG_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN |  0 );
29852   return resultobj;
29853 fail:
29854   return NULL;
29855 }
29856 
29857 
_wrap_Enquire_get_eset__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29858 SWIGINTERN PyObject *_wrap_Enquire_get_eset__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29859   PyObject *resultobj = 0;
29860   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29861   Xapian::termcount arg2 ;
29862   Xapian::RSet *arg3 = 0 ;
29863   int arg4 ;
29864   double arg5 ;
29865   Xapian::ExpandDecider *arg6 = (Xapian::ExpandDecider *) 0 ;
29866   double arg7 ;
29867   void *argp1 = 0 ;
29868   int res1 = 0 ;
29869   unsigned int val2 ;
29870   int ecode2 = 0 ;
29871   void *argp3 = 0 ;
29872   int res3 = 0 ;
29873   int val4 ;
29874   int ecode4 = 0 ;
29875   double val5 ;
29876   int ecode5 = 0 ;
29877   void *argp6 = 0 ;
29878   int res6 = 0 ;
29879   double val7 ;
29880   int ecode7 = 0 ;
29881   Xapian::ESet result;
29882 
29883   if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
29884   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29885   if (!SWIG_IsOK(res1)) {
29886     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29887   }
29888   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29889   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29890   if (!SWIG_IsOK(ecode2)) {
29891     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
29892   }
29893   arg2 = static_cast< Xapian::termcount >(val2);
29894   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__RSet,  0  | 0);
29895   if (!SWIG_IsOK(res3)) {
29896     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29897   }
29898   if (!argp3) {
29899     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29900   }
29901   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
29902   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
29903   if (!SWIG_IsOK(ecode4)) {
29904     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'");
29905   }
29906   arg4 = static_cast< int >(val4);
29907   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
29908   if (!SWIG_IsOK(ecode5)) {
29909     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Enquire_get_eset" "', argument " "5"" of type '" "double""'");
29910   }
29911   arg5 = static_cast< double >(val5);
29912   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
29913   if (!SWIG_IsOK(res6)) {
29914     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Enquire_get_eset" "', argument " "6"" of type '" "Xapian::ExpandDecider const *""'");
29915   }
29916   arg6 = reinterpret_cast< Xapian::ExpandDecider * >(argp6);
29917   ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
29918   if (!SWIG_IsOK(ecode7)) {
29919     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Enquire_get_eset" "', argument " "7"" of type '" "double""'");
29920   }
29921   arg7 = static_cast< double >(val7);
29922   {
29923     try {
29924       {
29925         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
29926         result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4,arg5,(Xapian::ExpandDecider const *)arg6,arg7);
29927         SWIG_PYTHON_THREAD_END_ALLOW;
29928       }
29929     } catch (...) {
29930       Xapian::SetPythonException();
29931       SWIG_fail;
29932     }
29933   }
29934   resultobj = SWIG_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN |  0 );
29935   return resultobj;
29936 fail:
29937   return NULL;
29938 }
29939 
29940 
_wrap_Enquire_get_eset__SWIG_6(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)29941 SWIGINTERN PyObject *_wrap_Enquire_get_eset__SWIG_6(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29942   PyObject *resultobj = 0;
29943   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
29944   Xapian::termcount arg2 ;
29945   Xapian::RSet *arg3 = 0 ;
29946   int arg4 ;
29947   double arg5 ;
29948   Xapian::ExpandDecider *arg6 = (Xapian::ExpandDecider *) 0 ;
29949   void *argp1 = 0 ;
29950   int res1 = 0 ;
29951   unsigned int val2 ;
29952   int ecode2 = 0 ;
29953   void *argp3 = 0 ;
29954   int res3 = 0 ;
29955   int val4 ;
29956   int ecode4 = 0 ;
29957   double val5 ;
29958   int ecode5 = 0 ;
29959   void *argp6 = 0 ;
29960   int res6 = 0 ;
29961   Xapian::ESet result;
29962 
29963   if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
29964   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
29965   if (!SWIG_IsOK(res1)) {
29966     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
29967   }
29968   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
29969   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
29970   if (!SWIG_IsOK(ecode2)) {
29971     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
29972   }
29973   arg2 = static_cast< Xapian::termcount >(val2);
29974   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__RSet,  0  | 0);
29975   if (!SWIG_IsOK(res3)) {
29976     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29977   }
29978   if (!argp3) {
29979     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
29980   }
29981   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
29982   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
29983   if (!SWIG_IsOK(ecode4)) {
29984     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'");
29985   }
29986   arg4 = static_cast< int >(val4);
29987   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
29988   if (!SWIG_IsOK(ecode5)) {
29989     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Enquire_get_eset" "', argument " "5"" of type '" "double""'");
29990   }
29991   arg5 = static_cast< double >(val5);
29992   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
29993   if (!SWIG_IsOK(res6)) {
29994     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Enquire_get_eset" "', argument " "6"" of type '" "Xapian::ExpandDecider const *""'");
29995   }
29996   arg6 = reinterpret_cast< Xapian::ExpandDecider * >(argp6);
29997   {
29998     try {
29999       {
30000         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30001         result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4,arg5,(Xapian::ExpandDecider const *)arg6);
30002         SWIG_PYTHON_THREAD_END_ALLOW;
30003       }
30004     } catch (...) {
30005       Xapian::SetPythonException();
30006       SWIG_fail;
30007     }
30008   }
30009   resultobj = SWIG_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN |  0 );
30010   return resultobj;
30011 fail:
30012   return NULL;
30013 }
30014 
30015 
_wrap_Enquire_get_eset__SWIG_7(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)30016 SWIGINTERN PyObject *_wrap_Enquire_get_eset__SWIG_7(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30017   PyObject *resultobj = 0;
30018   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
30019   Xapian::termcount arg2 ;
30020   Xapian::RSet *arg3 = 0 ;
30021   int arg4 ;
30022   double arg5 ;
30023   void *argp1 = 0 ;
30024   int res1 = 0 ;
30025   unsigned int val2 ;
30026   int ecode2 = 0 ;
30027   void *argp3 = 0 ;
30028   int res3 = 0 ;
30029   int val4 ;
30030   int ecode4 = 0 ;
30031   double val5 ;
30032   int ecode5 = 0 ;
30033   Xapian::ESet result;
30034 
30035   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
30036   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
30037   if (!SWIG_IsOK(res1)) {
30038     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire_get_eset" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
30039   }
30040   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
30041   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
30042   if (!SWIG_IsOK(ecode2)) {
30043     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire_get_eset" "', argument " "2"" of type '" "Xapian::termcount""'");
30044   }
30045   arg2 = static_cast< Xapian::termcount >(val2);
30046   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__RSet,  0  | 0);
30047   if (!SWIG_IsOK(res3)) {
30048     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
30049   }
30050   if (!argp3) {
30051     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire_get_eset" "', argument " "3"" of type '" "Xapian::RSet const &""'");
30052   }
30053   arg3 = reinterpret_cast< Xapian::RSet * >(argp3);
30054   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30055   if (!SWIG_IsOK(ecode4)) {
30056     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Enquire_get_eset" "', argument " "4"" of type '" "int""'");
30057   }
30058   arg4 = static_cast< int >(val4);
30059   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
30060   if (!SWIG_IsOK(ecode5)) {
30061     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Enquire_get_eset" "', argument " "5"" of type '" "double""'");
30062   }
30063   arg5 = static_cast< double >(val5);
30064   {
30065     try {
30066       {
30067         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30068         result = ((Xapian::Enquire const *)arg1)->get_eset(arg2,(Xapian::RSet const &)*arg3,arg4,arg5);
30069         SWIG_PYTHON_THREAD_END_ALLOW;
30070       }
30071     } catch (...) {
30072       Xapian::SetPythonException();
30073       SWIG_fail;
30074     }
30075   }
30076   resultobj = SWIG_NewPointerObj((new Xapian::ESet(static_cast< const Xapian::ESet& >(result))), SWIGTYPE_p_Xapian__ESet, SWIG_POINTER_OWN |  0 );
30077   return resultobj;
30078 fail:
30079   return NULL;
30080 }
30081 
30082 
_wrap_Enquire_get_eset(PyObject * self,PyObject * args)30083 SWIGINTERN PyObject *_wrap_Enquire_get_eset(PyObject *self, PyObject *args) {
30084   Py_ssize_t argc;
30085   PyObject *argv[8] = {
30086     0
30087   };
30088 
30089   if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire_get_eset",0,7,argv))) SWIG_fail;
30090   --argc;
30091   if (argc == 3) {
30092     return _wrap_Enquire_get_eset__SWIG_3(self, argc, argv);
30093   }
30094   if (argc == 4) {
30095     int _v = 0;
30096     {
30097       void *vptr = 0;
30098       int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_Xapian__ExpandDecider, 0);
30099       _v = SWIG_CheckState(res);
30100     }
30101     if (!_v) goto check_2;
30102     return _wrap_Enquire_get_eset__SWIG_4(self, argc, argv);
30103   }
30104 check_2:
30105 
30106   if (argc == 4) {
30107     return _wrap_Enquire_get_eset__SWIG_2(self, argc, argv);
30108   }
30109   if (argc == 5) {
30110     int _v = 0;
30111     {
30112       void *vptr = 0;
30113       int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_Xapian__ExpandDecider, 0);
30114       _v = SWIG_CheckState(res);
30115     }
30116     if (!_v) goto check_4;
30117     return _wrap_Enquire_get_eset__SWIG_1(self, argc, argv);
30118   }
30119 check_4:
30120 
30121   if (argc == 5) {
30122     return _wrap_Enquire_get_eset__SWIG_7(self, argc, argv);
30123   }
30124   if (argc == 6) {
30125     int _v = 0;
30126     {
30127       void *vptr = 0;
30128       int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_Xapian__ExpandDecider, 0);
30129       _v = SWIG_CheckState(res);
30130     }
30131     if (!_v) goto check_6;
30132     {
30133       {
30134         int res = SWIG_AsVal_double(argv[5], NULL);
30135         _v = SWIG_CheckState(res);
30136       }
30137     }
30138     if (!_v) goto check_6;
30139     return _wrap_Enquire_get_eset__SWIG_0(self, argc, argv);
30140   }
30141 check_6:
30142 
30143   if (argc == 6) {
30144     return _wrap_Enquire_get_eset__SWIG_6(self, argc, argv);
30145   }
30146   if (argc == 7) {
30147     return _wrap_Enquire_get_eset__SWIG_5(self, argc, argv);
30148   }
30149 
30150 fail:
30151   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Enquire_get_eset'.\n"
30152     "  Possible C/C++ prototypes are:\n"
30153     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,int,Xapian::ExpandDecider const *,double) const\n"
30154     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,int,Xapian::ExpandDecider const *) const\n"
30155     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,int) const\n"
30156     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &) const\n"
30157     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,Xapian::ExpandDecider const *) const\n"
30158     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,int,double,Xapian::ExpandDecider const *,double) const\n"
30159     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,int,double,Xapian::ExpandDecider const *) const\n"
30160     "    Xapian::Enquire::get_eset(Xapian::termcount,Xapian::RSet const &,int,double) const\n");
30161   return 0;
30162 }
30163 
30164 
_wrap_Enquire__get_matching_terms_begin__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)30165 SWIGINTERN PyObject *_wrap_Enquire__get_matching_terms_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30166   PyObject *resultobj = 0;
30167   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
30168   Xapian::docid arg2 ;
30169   void *argp1 = 0 ;
30170   int res1 = 0 ;
30171   unsigned int val2 ;
30172   int ecode2 = 0 ;
30173   Xapian::TermIterator result;
30174 
30175   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30176   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
30177   if (!SWIG_IsOK(res1)) {
30178     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire__get_matching_terms_begin" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
30179   }
30180   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
30181   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
30182   if (!SWIG_IsOK(ecode2)) {
30183     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire__get_matching_terms_begin" "', argument " "2"" of type '" "Xapian::docid""'");
30184   }
30185   arg2 = static_cast< Xapian::docid >(val2);
30186   {
30187     try {
30188       {
30189         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30190         result = ((Xapian::Enquire const *)arg1)->get_matching_terms_begin(arg2);
30191         SWIG_PYTHON_THREAD_END_ALLOW;
30192       }
30193     } catch (...) {
30194       Xapian::SetPythonException();
30195       SWIG_fail;
30196     }
30197   }
30198   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
30199   return resultobj;
30200 fail:
30201   return NULL;
30202 }
30203 
30204 
_wrap_Enquire__get_matching_terms_end__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)30205 SWIGINTERN PyObject *_wrap_Enquire__get_matching_terms_end__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30206   PyObject *resultobj = 0;
30207   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
30208   Xapian::docid arg2 ;
30209   void *argp1 = 0 ;
30210   int res1 = 0 ;
30211   unsigned int val2 ;
30212   int ecode2 = 0 ;
30213   Xapian::TermIterator result;
30214 
30215   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30216   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
30217   if (!SWIG_IsOK(res1)) {
30218     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire__get_matching_terms_end" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
30219   }
30220   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
30221   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
30222   if (!SWIG_IsOK(ecode2)) {
30223     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Enquire__get_matching_terms_end" "', argument " "2"" of type '" "Xapian::docid""'");
30224   }
30225   arg2 = static_cast< Xapian::docid >(val2);
30226   {
30227     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30228     result = ((Xapian::Enquire const *)arg1)->get_matching_terms_end(arg2);
30229     SWIG_PYTHON_THREAD_END_ALLOW;
30230   }
30231   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
30232   return resultobj;
30233 fail:
30234   return NULL;
30235 }
30236 
30237 
_wrap_Enquire__get_matching_terms_begin__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)30238 SWIGINTERN PyObject *_wrap_Enquire__get_matching_terms_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30239   PyObject *resultobj = 0;
30240   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
30241   Xapian::MSetIterator *arg2 = 0 ;
30242   void *argp1 = 0 ;
30243   int res1 = 0 ;
30244   void *argp2 = 0 ;
30245   int res2 = 0 ;
30246   Xapian::TermIterator result;
30247 
30248   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30249   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
30250   if (!SWIG_IsOK(res1)) {
30251     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire__get_matching_terms_begin" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
30252   }
30253   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
30254   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
30255   if (!SWIG_IsOK(res2)) {
30256     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire__get_matching_terms_begin" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
30257   }
30258   if (!argp2) {
30259     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire__get_matching_terms_begin" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
30260   }
30261   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
30262   {
30263     try {
30264       {
30265         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30266         result = ((Xapian::Enquire const *)arg1)->get_matching_terms_begin((Xapian::MSetIterator const &)*arg2);
30267         SWIG_PYTHON_THREAD_END_ALLOW;
30268       }
30269     } catch (...) {
30270       Xapian::SetPythonException();
30271       SWIG_fail;
30272     }
30273   }
30274   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
30275   return resultobj;
30276 fail:
30277   return NULL;
30278 }
30279 
30280 
_wrap_Enquire__get_matching_terms_begin(PyObject * self,PyObject * args)30281 SWIGINTERN PyObject *_wrap_Enquire__get_matching_terms_begin(PyObject *self, PyObject *args) {
30282   Py_ssize_t argc;
30283   PyObject *argv[3] = {
30284     0
30285   };
30286 
30287   if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire__get_matching_terms_begin",0,2,argv))) SWIG_fail;
30288   --argc;
30289   if (argc == 2) {
30290     int _v = 0;
30291     {
30292       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
30293       _v = SWIG_CheckState(res);
30294     }
30295     if (!_v) goto check_1;
30296     return _wrap_Enquire__get_matching_terms_begin__SWIG_1(self, argc, argv);
30297   }
30298 check_1:
30299 
30300   if (argc == 2) {
30301     return _wrap_Enquire__get_matching_terms_begin__SWIG_0(self, argc, argv);
30302   }
30303 
30304 fail:
30305   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Enquire__get_matching_terms_begin'.\n"
30306     "  Possible C/C++ prototypes are:\n"
30307     "    Xapian::Enquire::get_matching_terms_begin(Xapian::docid) const\n"
30308     "    Xapian::Enquire::get_matching_terms_begin(Xapian::MSetIterator const &) const\n");
30309   return 0;
30310 }
30311 
30312 
_wrap_Enquire__get_matching_terms_end__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)30313 SWIGINTERN PyObject *_wrap_Enquire__get_matching_terms_end__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30314   PyObject *resultobj = 0;
30315   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
30316   Xapian::MSetIterator *arg2 = 0 ;
30317   void *argp1 = 0 ;
30318   int res1 = 0 ;
30319   void *argp2 = 0 ;
30320   int res2 = 0 ;
30321   Xapian::TermIterator result;
30322 
30323   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30324   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
30325   if (!SWIG_IsOK(res1)) {
30326     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire__get_matching_terms_end" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
30327   }
30328   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
30329   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__MSetIterator,  0  | 0);
30330   if (!SWIG_IsOK(res2)) {
30331     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Enquire__get_matching_terms_end" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
30332   }
30333   if (!argp2) {
30334     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Enquire__get_matching_terms_end" "', argument " "2"" of type '" "Xapian::MSetIterator const &""'");
30335   }
30336   arg2 = reinterpret_cast< Xapian::MSetIterator * >(argp2);
30337   {
30338     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30339     result = ((Xapian::Enquire const *)arg1)->get_matching_terms_end((Xapian::MSetIterator const &)*arg2);
30340     SWIG_PYTHON_THREAD_END_ALLOW;
30341   }
30342   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
30343   return resultobj;
30344 fail:
30345   return NULL;
30346 }
30347 
30348 
_wrap_Enquire__get_matching_terms_end(PyObject * self,PyObject * args)30349 SWIGINTERN PyObject *_wrap_Enquire__get_matching_terms_end(PyObject *self, PyObject *args) {
30350   Py_ssize_t argc;
30351   PyObject *argv[3] = {
30352     0
30353   };
30354 
30355   if (!(argc = SWIG_Python_UnpackTuple(args,"Enquire__get_matching_terms_end",0,2,argv))) SWIG_fail;
30356   --argc;
30357   if (argc == 2) {
30358     int _v = 0;
30359     {
30360       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
30361       _v = SWIG_CheckState(res);
30362     }
30363     if (!_v) goto check_1;
30364     return _wrap_Enquire__get_matching_terms_end__SWIG_1(self, argc, argv);
30365   }
30366 check_1:
30367 
30368   if (argc == 2) {
30369     return _wrap_Enquire__get_matching_terms_end__SWIG_0(self, argc, argv);
30370   }
30371 
30372 fail:
30373   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Enquire__get_matching_terms_end'.\n"
30374     "  Possible C/C++ prototypes are:\n"
30375     "    Xapian::Enquire::get_matching_terms_end(Xapian::docid) const\n"
30376     "    Xapian::Enquire::get_matching_terms_end(Xapian::MSetIterator const &) const\n");
30377   return 0;
30378 }
30379 
30380 
_wrap_Enquire___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30381 SWIGINTERN PyObject *_wrap_Enquire___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30382   PyObject *resultobj = 0;
30383   Xapian::Enquire *arg1 = (Xapian::Enquire *) 0 ;
30384   void *argp1 = 0 ;
30385   int res1 = 0 ;
30386   PyObject *swig_obj[1] ;
30387   std::string result;
30388 
30389   if (!args) SWIG_fail;
30390   swig_obj[0] = args;
30391   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Enquire, 0 |  0 );
30392   if (!SWIG_IsOK(res1)) {
30393     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Enquire___str__" "', argument " "1"" of type '" "Xapian::Enquire const *""'");
30394   }
30395   arg1 = reinterpret_cast< Xapian::Enquire * >(argp1);
30396   {
30397     try {
30398       {
30399         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30400         result = ((Xapian::Enquire const *)arg1)->get_description();
30401         SWIG_PYTHON_THREAD_END_ALLOW;
30402       }
30403     } catch (...) {
30404       Xapian::SetPythonException();
30405       SWIG_fail;
30406     }
30407   }
30408   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
30409   return resultobj;
30410 fail:
30411   return NULL;
30412 }
30413 
30414 
Enquire_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30415 SWIGINTERN PyObject *Enquire_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30416   PyObject *obj;
30417   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
30418   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Enquire, SWIG_NewClientData(obj));
30419   return SWIG_Py_Void();
30420 }
30421 
Enquire_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30422 SWIGINTERN PyObject *Enquire_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30423   return SWIG_Python_InitShadowInstance(args);
30424 }
30425 
_wrap_new_ExpandDecider(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30426 SWIGINTERN PyObject *_wrap_new_ExpandDecider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30427   PyObject *resultobj = 0;
30428   PyObject *arg1 = (PyObject *) 0 ;
30429   PyObject *swig_obj[1] ;
30430   Xapian::ExpandDecider *result = 0 ;
30431 
30432   if (!args) SWIG_fail;
30433   swig_obj[0] = args;
30434   arg1 = swig_obj[0];
30435   {
30436     try {
30437       {
30438         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30439         if ( arg1 != Py_None ) {
30440           /* subclassed */
30441           result = (Xapian::ExpandDecider *)new SwigDirector_ExpandDecider(arg1);
30442         } else {
30443           SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
30444           SWIG_fail;
30445         }
30446 
30447         SWIG_PYTHON_THREAD_END_ALLOW;
30448       }
30449     } catch (...) {
30450       Xapian::SetPythonException();
30451       SWIG_fail;
30452     }
30453   }
30454   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ExpandDecider, SWIG_POINTER_NEW |  0 );
30455   return resultobj;
30456 fail:
30457   return NULL;
30458 }
30459 
30460 
_wrap_ExpandDecider___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30461 SWIGINTERN PyObject *_wrap_ExpandDecider___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30462   PyObject *resultobj = 0;
30463   Xapian::ExpandDecider *arg1 = (Xapian::ExpandDecider *) 0 ;
30464   std::string *arg2 = 0 ;
30465   void *argp1 = 0 ;
30466   int res1 = 0 ;
30467   int res2 = SWIG_OLDOBJ ;
30468   PyObject *swig_obj[2] ;
30469   Swig::Director *director = 0;
30470   bool upcall = false;
30471   bool result;
30472 
30473   if (!SWIG_Python_UnpackTuple(args,"ExpandDecider___call__",2,2,swig_obj)) SWIG_fail;
30474   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
30475   if (!SWIG_IsOK(res1)) {
30476     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExpandDecider___call__" "', argument " "1"" of type '" "Xapian::ExpandDecider const *""'");
30477   }
30478   arg1 = reinterpret_cast< Xapian::ExpandDecider * >(argp1);
30479   {
30480     std::string *ptr = (std::string *)0;
30481     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
30482     if (!SWIG_IsOK(res2)) {
30483       if (res2 == INT_MIN) SWIG_fail;
30484       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ExpandDecider___call__" "', argument " "2"" of type '" "std::string const &""'");
30485     }
30486     if (!ptr) {
30487       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExpandDecider___call__" "', argument " "2"" of type '" "std::string const &""'");
30488     }
30489     arg2 = ptr;
30490   }
30491   director = SWIG_DIRECTOR_CAST(arg1);
30492   upcall = (director && (director->swig_get_self()==swig_obj[0]));
30493   try {
30494     {
30495       try {
30496         if (upcall) {
30497           Swig::DirectorPureVirtualException::raise("Xapian::ExpandDecider::operator ()");
30498         } else {
30499           result = (bool)((Xapian::ExpandDecider const *)arg1)->operator ()((std::string const &)*arg2);
30500         }
30501       } catch (...) {
30502         Xapian::SetPythonException();
30503         SWIG_fail;
30504       }
30505     }
30506   } catch (Swig::DirectorException&) {
30507     SWIG_fail;
30508   }
30509   resultobj = SWIG_From_bool(static_cast< bool >(result));
30510   if (SWIG_IsNewObj(res2)) delete arg2;
30511   return resultobj;
30512 fail:
30513   if (SWIG_IsNewObj(res2)) delete arg2;
30514   return NULL;
30515 }
30516 
30517 
_wrap_delete_ExpandDecider(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30518 SWIGINTERN PyObject *_wrap_delete_ExpandDecider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30519   PyObject *resultobj = 0;
30520   Xapian::ExpandDecider *arg1 = (Xapian::ExpandDecider *) 0 ;
30521   void *argp1 = 0 ;
30522   int res1 = 0 ;
30523   PyObject *swig_obj[1] ;
30524 
30525   if (!args) SWIG_fail;
30526   swig_obj[0] = args;
30527   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ExpandDecider, SWIG_POINTER_DISOWN |  0 );
30528   if (!SWIG_IsOK(res1)) {
30529     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ExpandDecider" "', argument " "1"" of type '" "Xapian::ExpandDecider *""'");
30530   }
30531   arg1 = reinterpret_cast< Xapian::ExpandDecider * >(argp1);
30532   {
30533     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30534     delete arg1;
30535     SWIG_PYTHON_THREAD_END_ALLOW;
30536   }
30537   resultobj = SWIG_Py_Void();
30538   return resultobj;
30539 fail:
30540   return NULL;
30541 }
30542 
30543 
_wrap_ExpandDecider_release(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30544 SWIGINTERN PyObject *_wrap_ExpandDecider_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30545   PyObject *resultobj = 0;
30546   Xapian::ExpandDecider *arg1 = (Xapian::ExpandDecider *) 0 ;
30547   void *argp1 = 0 ;
30548   int res1 = 0 ;
30549   PyObject *swig_obj[1] ;
30550   Swig::Director *director = 0;
30551   Xapian::ExpandDecider *result = 0 ;
30552 
30553   if (!args) SWIG_fail;
30554   swig_obj[0] = args;
30555   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
30556   if (!SWIG_IsOK(res1)) {
30557     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExpandDecider_release" "', argument " "1"" of type '" "Xapian::ExpandDecider const *""'");
30558   }
30559   arg1 = reinterpret_cast< Xapian::ExpandDecider * >(argp1);
30560   {
30561     try {
30562       {
30563         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30564         result = (Xapian::ExpandDecider *)((Xapian::ExpandDecider const *)arg1)->release();
30565         SWIG_PYTHON_THREAD_END_ALLOW;
30566       }
30567     } catch (...) {
30568       Xapian::SetPythonException();
30569       SWIG_fail;
30570     }
30571   }
30572   director = SWIG_DIRECTOR_CAST(result);
30573   if (director) {
30574     resultobj = director->swig_get_self();
30575     Py_INCREF(resultobj);
30576   } else {
30577     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
30578   }
30579   return resultobj;
30580 fail:
30581   return NULL;
30582 }
30583 
30584 
_wrap_disown_ExpandDecider(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30585 SWIGINTERN PyObject *_wrap_disown_ExpandDecider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30586   PyObject *resultobj = 0;
30587   Xapian::ExpandDecider *arg1 = (Xapian::ExpandDecider *) 0 ;
30588   void *argp1 = 0 ;
30589   int res1 = 0 ;
30590   PyObject *swig_obj[1] ;
30591 
30592   if (!args) SWIG_fail;
30593   swig_obj[0] = args;
30594   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ExpandDecider, 0 |  0 );
30595   if (!SWIG_IsOK(res1)) {
30596     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_ExpandDecider" "', argument " "1"" of type '" "Xapian::ExpandDecider *""'");
30597   }
30598   arg1 = reinterpret_cast< Xapian::ExpandDecider * >(argp1);
30599   {
30600     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30601     {
30602       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
30603       if (director) director->swig_disown();
30604     }
30605 
30606     SWIG_PYTHON_THREAD_END_ALLOW;
30607   }
30608   resultobj = SWIG_Py_Void();
30609   return resultobj;
30610 fail:
30611   return NULL;
30612 }
30613 
30614 
ExpandDecider_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30615 SWIGINTERN PyObject *ExpandDecider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30616   PyObject *obj;
30617   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
30618   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ExpandDecider, SWIG_NewClientData(obj));
30619   return SWIG_Py_Void();
30620 }
30621 
ExpandDecider_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30622 SWIGINTERN PyObject *ExpandDecider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30623   return SWIG_Python_InitShadowInstance(args);
30624 }
30625 
_wrap_new_ExpandDeciderAnd(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30626 SWIGINTERN PyObject *_wrap_new_ExpandDeciderAnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30627   PyObject *resultobj = 0;
30628   Xapian::ExpandDecider *arg1 = 0 ;
30629   Xapian::ExpandDecider *arg2 = 0 ;
30630   void *argp1 = 0 ;
30631   int res1 = 0 ;
30632   void *argp2 = 0 ;
30633   int res2 = 0 ;
30634   PyObject *swig_obj[2] ;
30635   Xapian::ExpandDeciderAnd *result = 0 ;
30636 
30637   if (!SWIG_Python_UnpackTuple(args,"new_ExpandDeciderAnd",2,2,swig_obj)) SWIG_fail;
30638   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__ExpandDecider,  0  | 0);
30639   if (!SWIG_IsOK(res1)) {
30640     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ExpandDeciderAnd" "', argument " "1"" of type '" "Xapian::ExpandDecider const &""'");
30641   }
30642   if (!argp1) {
30643     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ExpandDeciderAnd" "', argument " "1"" of type '" "Xapian::ExpandDecider const &""'");
30644   }
30645   arg1 = reinterpret_cast< Xapian::ExpandDecider * >(argp1);
30646   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__ExpandDecider,  0  | 0);
30647   if (!SWIG_IsOK(res2)) {
30648     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ExpandDeciderAnd" "', argument " "2"" of type '" "Xapian::ExpandDecider const &""'");
30649   }
30650   if (!argp2) {
30651     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ExpandDeciderAnd" "', argument " "2"" of type '" "Xapian::ExpandDecider const &""'");
30652   }
30653   arg2 = reinterpret_cast< Xapian::ExpandDecider * >(argp2);
30654   {
30655     try {
30656       {
30657         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30658         result = (Xapian::ExpandDeciderAnd *)new Xapian::ExpandDeciderAnd((Xapian::ExpandDecider const &)*arg1,(Xapian::ExpandDecider const &)*arg2);
30659         SWIG_PYTHON_THREAD_END_ALLOW;
30660       }
30661     } catch (...) {
30662       Xapian::SetPythonException();
30663       SWIG_fail;
30664     }
30665   }
30666   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ExpandDeciderAnd, SWIG_POINTER_NEW |  0 );
30667   return resultobj;
30668 fail:
30669   return NULL;
30670 }
30671 
30672 
_wrap_delete_ExpandDeciderAnd(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30673 SWIGINTERN PyObject *_wrap_delete_ExpandDeciderAnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30674   PyObject *resultobj = 0;
30675   Xapian::ExpandDeciderAnd *arg1 = (Xapian::ExpandDeciderAnd *) 0 ;
30676   void *argp1 = 0 ;
30677   int res1 = 0 ;
30678   PyObject *swig_obj[1] ;
30679 
30680   if (!args) SWIG_fail;
30681   swig_obj[0] = args;
30682   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ExpandDeciderAnd, SWIG_POINTER_DISOWN |  0 );
30683   if (!SWIG_IsOK(res1)) {
30684     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ExpandDeciderAnd" "', argument " "1"" of type '" "Xapian::ExpandDeciderAnd *""'");
30685   }
30686   arg1 = reinterpret_cast< Xapian::ExpandDeciderAnd * >(argp1);
30687   {
30688     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30689     delete arg1;
30690     SWIG_PYTHON_THREAD_END_ALLOW;
30691   }
30692   resultobj = SWIG_Py_Void();
30693   return resultobj;
30694 fail:
30695   return NULL;
30696 }
30697 
30698 
ExpandDeciderAnd_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30699 SWIGINTERN PyObject *ExpandDeciderAnd_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30700   PyObject *obj;
30701   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
30702   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ExpandDeciderAnd, SWIG_NewClientData(obj));
30703   return SWIG_Py_Void();
30704 }
30705 
ExpandDeciderAnd_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30706 SWIGINTERN PyObject *ExpandDeciderAnd_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30707   return SWIG_Python_InitShadowInstance(args);
30708 }
30709 
_wrap_new_ExpandDeciderFilterPrefix(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30710 SWIGINTERN PyObject *_wrap_new_ExpandDeciderFilterPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30711   PyObject *resultobj = 0;
30712   std::string *arg1 = 0 ;
30713   int res1 = SWIG_OLDOBJ ;
30714   PyObject *swig_obj[1] ;
30715   Xapian::ExpandDeciderFilterPrefix *result = 0 ;
30716 
30717   if (!args) SWIG_fail;
30718   swig_obj[0] = args;
30719   {
30720     std::string *ptr = (std::string *)0;
30721     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
30722     if (!SWIG_IsOK(res1)) {
30723       if (res1 == INT_MIN) SWIG_fail;
30724       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ExpandDeciderFilterPrefix" "', argument " "1"" of type '" "std::string const &""'");
30725     }
30726     if (!ptr) {
30727       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ExpandDeciderFilterPrefix" "', argument " "1"" of type '" "std::string const &""'");
30728     }
30729     arg1 = ptr;
30730   }
30731   {
30732     try {
30733       {
30734         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30735         result = (Xapian::ExpandDeciderFilterPrefix *)new Xapian::ExpandDeciderFilterPrefix((std::string const &)*arg1);
30736         SWIG_PYTHON_THREAD_END_ALLOW;
30737       }
30738     } catch (...) {
30739       Xapian::SetPythonException();
30740       SWIG_fail;
30741     }
30742   }
30743   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ExpandDeciderFilterPrefix, SWIG_POINTER_NEW |  0 );
30744   if (SWIG_IsNewObj(res1)) delete arg1;
30745   return resultobj;
30746 fail:
30747   if (SWIG_IsNewObj(res1)) delete arg1;
30748   return NULL;
30749 }
30750 
30751 
_wrap_delete_ExpandDeciderFilterPrefix(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30752 SWIGINTERN PyObject *_wrap_delete_ExpandDeciderFilterPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30753   PyObject *resultobj = 0;
30754   Xapian::ExpandDeciderFilterPrefix *arg1 = (Xapian::ExpandDeciderFilterPrefix *) 0 ;
30755   void *argp1 = 0 ;
30756   int res1 = 0 ;
30757   PyObject *swig_obj[1] ;
30758 
30759   if (!args) SWIG_fail;
30760   swig_obj[0] = args;
30761   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ExpandDeciderFilterPrefix, SWIG_POINTER_DISOWN |  0 );
30762   if (!SWIG_IsOK(res1)) {
30763     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ExpandDeciderFilterPrefix" "', argument " "1"" of type '" "Xapian::ExpandDeciderFilterPrefix *""'");
30764   }
30765   arg1 = reinterpret_cast< Xapian::ExpandDeciderFilterPrefix * >(argp1);
30766   {
30767     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30768     delete arg1;
30769     SWIG_PYTHON_THREAD_END_ALLOW;
30770   }
30771   resultobj = SWIG_Py_Void();
30772   return resultobj;
30773 fail:
30774   return NULL;
30775 }
30776 
30777 
ExpandDeciderFilterPrefix_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30778 SWIGINTERN PyObject *ExpandDeciderFilterPrefix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30779   PyObject *obj;
30780   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
30781   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ExpandDeciderFilterPrefix, SWIG_NewClientData(obj));
30782   return SWIG_Py_Void();
30783 }
30784 
ExpandDeciderFilterPrefix_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30785 SWIGINTERN PyObject *ExpandDeciderFilterPrefix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30786   return SWIG_Python_InitShadowInstance(args);
30787 }
30788 
_wrap_new_KeyMaker(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30789 SWIGINTERN PyObject *_wrap_new_KeyMaker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30790   PyObject *resultobj = 0;
30791   PyObject *arg1 = (PyObject *) 0 ;
30792   PyObject *swig_obj[1] ;
30793   Xapian::KeyMaker *result = 0 ;
30794 
30795   if (!args) SWIG_fail;
30796   swig_obj[0] = args;
30797   arg1 = swig_obj[0];
30798   {
30799     try {
30800       {
30801         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30802         if ( arg1 != Py_None ) {
30803           /* subclassed */
30804           result = (Xapian::KeyMaker *)new SwigDirector_KeyMaker(arg1);
30805         } else {
30806           SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
30807           SWIG_fail;
30808         }
30809 
30810         SWIG_PYTHON_THREAD_END_ALLOW;
30811       }
30812     } catch (...) {
30813       Xapian::SetPythonException();
30814       SWIG_fail;
30815     }
30816   }
30817   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__KeyMaker, SWIG_POINTER_NEW |  0 );
30818   return resultobj;
30819 fail:
30820   return NULL;
30821 }
30822 
30823 
_wrap_KeyMaker___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30824 SWIGINTERN PyObject *_wrap_KeyMaker___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30825   PyObject *resultobj = 0;
30826   Xapian::KeyMaker *arg1 = (Xapian::KeyMaker *) 0 ;
30827   Xapian::Document *arg2 = 0 ;
30828   void *argp1 = 0 ;
30829   int res1 = 0 ;
30830   void *argp2 = 0 ;
30831   int res2 = 0 ;
30832   PyObject *swig_obj[2] ;
30833   Swig::Director *director = 0;
30834   bool upcall = false;
30835   std::string result;
30836 
30837   if (!SWIG_Python_UnpackTuple(args,"KeyMaker___call__",2,2,swig_obj)) SWIG_fail;
30838   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__KeyMaker, 0 |  0 );
30839   if (!SWIG_IsOK(res1)) {
30840     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyMaker___call__" "', argument " "1"" of type '" "Xapian::KeyMaker const *""'");
30841   }
30842   arg1 = reinterpret_cast< Xapian::KeyMaker * >(argp1);
30843   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Document,  0  | 0);
30844   if (!SWIG_IsOK(res2)) {
30845     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KeyMaker___call__" "', argument " "2"" of type '" "Xapian::Document const &""'");
30846   }
30847   if (!argp2) {
30848     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KeyMaker___call__" "', argument " "2"" of type '" "Xapian::Document const &""'");
30849   }
30850   arg2 = reinterpret_cast< Xapian::Document * >(argp2);
30851   director = SWIG_DIRECTOR_CAST(arg1);
30852   upcall = (director && (director->swig_get_self()==swig_obj[0]));
30853   try {
30854     {
30855       try {
30856         if (upcall) {
30857           Swig::DirectorPureVirtualException::raise("Xapian::KeyMaker::operator ()");
30858         } else {
30859           result = ((Xapian::KeyMaker const *)arg1)->operator ()((Xapian::Document const &)*arg2);
30860         }
30861       } catch (...) {
30862         Xapian::SetPythonException();
30863         SWIG_fail;
30864       }
30865     }
30866   } catch (Swig::DirectorException&) {
30867     SWIG_fail;
30868   }
30869 
30870   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
30871 
30872   return resultobj;
30873 fail:
30874   return NULL;
30875 }
30876 
30877 
_wrap_delete_KeyMaker(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30878 SWIGINTERN PyObject *_wrap_delete_KeyMaker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30879   PyObject *resultobj = 0;
30880   Xapian::KeyMaker *arg1 = (Xapian::KeyMaker *) 0 ;
30881   void *argp1 = 0 ;
30882   int res1 = 0 ;
30883   PyObject *swig_obj[1] ;
30884 
30885   if (!args) SWIG_fail;
30886   swig_obj[0] = args;
30887   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__KeyMaker, SWIG_POINTER_DISOWN |  0 );
30888   if (!SWIG_IsOK(res1)) {
30889     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_KeyMaker" "', argument " "1"" of type '" "Xapian::KeyMaker *""'");
30890   }
30891   arg1 = reinterpret_cast< Xapian::KeyMaker * >(argp1);
30892   {
30893     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30894     delete arg1;
30895     SWIG_PYTHON_THREAD_END_ALLOW;
30896   }
30897   resultobj = SWIG_Py_Void();
30898   return resultobj;
30899 fail:
30900   return NULL;
30901 }
30902 
30903 
_wrap_KeyMaker_release(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30904 SWIGINTERN PyObject *_wrap_KeyMaker_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30905   PyObject *resultobj = 0;
30906   Xapian::KeyMaker *arg1 = (Xapian::KeyMaker *) 0 ;
30907   void *argp1 = 0 ;
30908   int res1 = 0 ;
30909   PyObject *swig_obj[1] ;
30910   Swig::Director *director = 0;
30911   Xapian::KeyMaker *result = 0 ;
30912 
30913   if (!args) SWIG_fail;
30914   swig_obj[0] = args;
30915   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__KeyMaker, 0 |  0 );
30916   if (!SWIG_IsOK(res1)) {
30917     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyMaker_release" "', argument " "1"" of type '" "Xapian::KeyMaker const *""'");
30918   }
30919   arg1 = reinterpret_cast< Xapian::KeyMaker * >(argp1);
30920   {
30921     try {
30922       {
30923         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30924         result = (Xapian::KeyMaker *)((Xapian::KeyMaker const *)arg1)->release();
30925         SWIG_PYTHON_THREAD_END_ALLOW;
30926       }
30927     } catch (...) {
30928       Xapian::SetPythonException();
30929       SWIG_fail;
30930     }
30931   }
30932   director = SWIG_DIRECTOR_CAST(result);
30933   if (director) {
30934     resultobj = director->swig_get_self();
30935     Py_INCREF(resultobj);
30936   } else {
30937     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__KeyMaker, 0 |  0 );
30938   }
30939   return resultobj;
30940 fail:
30941   return NULL;
30942 }
30943 
30944 
_wrap_disown_KeyMaker(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30945 SWIGINTERN PyObject *_wrap_disown_KeyMaker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30946   PyObject *resultobj = 0;
30947   Xapian::KeyMaker *arg1 = (Xapian::KeyMaker *) 0 ;
30948   void *argp1 = 0 ;
30949   int res1 = 0 ;
30950   PyObject *swig_obj[1] ;
30951 
30952   if (!args) SWIG_fail;
30953   swig_obj[0] = args;
30954   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__KeyMaker, 0 |  0 );
30955   if (!SWIG_IsOK(res1)) {
30956     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_KeyMaker" "', argument " "1"" of type '" "Xapian::KeyMaker *""'");
30957   }
30958   arg1 = reinterpret_cast< Xapian::KeyMaker * >(argp1);
30959   {
30960     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30961     {
30962       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
30963       if (director) director->swig_disown();
30964     }
30965 
30966     SWIG_PYTHON_THREAD_END_ALLOW;
30967   }
30968   resultobj = SWIG_Py_Void();
30969   return resultobj;
30970 fail:
30971   return NULL;
30972 }
30973 
30974 
KeyMaker_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30975 SWIGINTERN PyObject *KeyMaker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30976   PyObject *obj;
30977   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
30978   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__KeyMaker, SWIG_NewClientData(obj));
30979   return SWIG_Py_Void();
30980 }
30981 
KeyMaker_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30982 SWIGINTERN PyObject *KeyMaker_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30983   return SWIG_Python_InitShadowInstance(args);
30984 }
30985 
_wrap_new_MultiValueKeyMaker(PyObject * SWIGUNUSEDPARM (self),PyObject * args)30986 SWIGINTERN PyObject *_wrap_new_MultiValueKeyMaker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30987   PyObject *resultobj = 0;
30988   Xapian::MultiValueKeyMaker *result = 0 ;
30989 
30990   if (!SWIG_Python_UnpackTuple(args,"new_MultiValueKeyMaker",0,0,0)) SWIG_fail;
30991   {
30992     try {
30993       {
30994         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
30995         result = (Xapian::MultiValueKeyMaker *)new Xapian::MultiValueKeyMaker();
30996         SWIG_PYTHON_THREAD_END_ALLOW;
30997       }
30998     } catch (...) {
30999       Xapian::SetPythonException();
31000       SWIG_fail;
31001     }
31002   }
31003   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MultiValueKeyMaker, SWIG_POINTER_NEW |  0 );
31004   return resultobj;
31005 fail:
31006   return NULL;
31007 }
31008 
31009 
_wrap_MultiValueKeyMaker_add_value__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)31010 SWIGINTERN PyObject *_wrap_MultiValueKeyMaker_add_value__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31011   PyObject *resultobj = 0;
31012   Xapian::MultiValueKeyMaker *arg1 = (Xapian::MultiValueKeyMaker *) 0 ;
31013   Xapian::valueno arg2 ;
31014   bool arg3 ;
31015   std::string *arg4 = 0 ;
31016   void *argp1 = 0 ;
31017   int res1 = 0 ;
31018   unsigned int val2 ;
31019   int ecode2 = 0 ;
31020   bool val3 ;
31021   int ecode3 = 0 ;
31022   int res4 = SWIG_OLDOBJ ;
31023 
31024   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
31025   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MultiValueKeyMaker, 0 |  0 );
31026   if (!SWIG_IsOK(res1)) {
31027     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiValueKeyMaker_add_value" "', argument " "1"" of type '" "Xapian::MultiValueKeyMaker *""'");
31028   }
31029   arg1 = reinterpret_cast< Xapian::MultiValueKeyMaker * >(argp1);
31030   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
31031   if (!SWIG_IsOK(ecode2)) {
31032     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MultiValueKeyMaker_add_value" "', argument " "2"" of type '" "Xapian::valueno""'");
31033   }
31034   arg2 = static_cast< Xapian::valueno >(val2);
31035   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
31036   if (!SWIG_IsOK(ecode3)) {
31037     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MultiValueKeyMaker_add_value" "', argument " "3"" of type '" "bool""'");
31038   }
31039   arg3 = static_cast< bool >(val3);
31040   {
31041     std::string *ptr = (std::string *)0;
31042     res4 = XapianSWIG_anystring_as_ptr(swig_obj[3], &ptr);
31043     if (!SWIG_IsOK(res4)) {
31044       if (res4 == INT_MIN) SWIG_fail;
31045       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MultiValueKeyMaker_add_value" "', argument " "4"" of type '" "std::string const &""'");
31046     }
31047     if (!ptr) {
31048       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MultiValueKeyMaker_add_value" "', argument " "4"" of type '" "std::string const &""'");
31049     }
31050     arg4 = ptr;
31051   }
31052   {
31053     try {
31054       {
31055         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31056         (arg1)->add_value(arg2,arg3,(std::string const &)*arg4);
31057         SWIG_PYTHON_THREAD_END_ALLOW;
31058       }
31059     } catch (...) {
31060       Xapian::SetPythonException();
31061       SWIG_fail;
31062     }
31063   }
31064   resultobj = SWIG_Py_Void();
31065   if (SWIG_IsNewObj(res4)) delete arg4;
31066   return resultobj;
31067 fail:
31068   if (SWIG_IsNewObj(res4)) delete arg4;
31069   return NULL;
31070 }
31071 
31072 
_wrap_MultiValueKeyMaker_add_value__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)31073 SWIGINTERN PyObject *_wrap_MultiValueKeyMaker_add_value__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31074   PyObject *resultobj = 0;
31075   Xapian::MultiValueKeyMaker *arg1 = (Xapian::MultiValueKeyMaker *) 0 ;
31076   Xapian::valueno arg2 ;
31077   bool arg3 ;
31078   void *argp1 = 0 ;
31079   int res1 = 0 ;
31080   unsigned int val2 ;
31081   int ecode2 = 0 ;
31082   bool val3 ;
31083   int ecode3 = 0 ;
31084 
31085   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
31086   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MultiValueKeyMaker, 0 |  0 );
31087   if (!SWIG_IsOK(res1)) {
31088     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiValueKeyMaker_add_value" "', argument " "1"" of type '" "Xapian::MultiValueKeyMaker *""'");
31089   }
31090   arg1 = reinterpret_cast< Xapian::MultiValueKeyMaker * >(argp1);
31091   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
31092   if (!SWIG_IsOK(ecode2)) {
31093     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MultiValueKeyMaker_add_value" "', argument " "2"" of type '" "Xapian::valueno""'");
31094   }
31095   arg2 = static_cast< Xapian::valueno >(val2);
31096   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
31097   if (!SWIG_IsOK(ecode3)) {
31098     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MultiValueKeyMaker_add_value" "', argument " "3"" of type '" "bool""'");
31099   }
31100   arg3 = static_cast< bool >(val3);
31101   {
31102     try {
31103       {
31104         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31105         (arg1)->add_value(arg2,arg3);
31106         SWIG_PYTHON_THREAD_END_ALLOW;
31107       }
31108     } catch (...) {
31109       Xapian::SetPythonException();
31110       SWIG_fail;
31111     }
31112   }
31113   resultobj = SWIG_Py_Void();
31114   return resultobj;
31115 fail:
31116   return NULL;
31117 }
31118 
31119 
_wrap_MultiValueKeyMaker_add_value__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)31120 SWIGINTERN PyObject *_wrap_MultiValueKeyMaker_add_value__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31121   PyObject *resultobj = 0;
31122   Xapian::MultiValueKeyMaker *arg1 = (Xapian::MultiValueKeyMaker *) 0 ;
31123   Xapian::valueno arg2 ;
31124   void *argp1 = 0 ;
31125   int res1 = 0 ;
31126   unsigned int val2 ;
31127   int ecode2 = 0 ;
31128 
31129   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31130   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MultiValueKeyMaker, 0 |  0 );
31131   if (!SWIG_IsOK(res1)) {
31132     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiValueKeyMaker_add_value" "', argument " "1"" of type '" "Xapian::MultiValueKeyMaker *""'");
31133   }
31134   arg1 = reinterpret_cast< Xapian::MultiValueKeyMaker * >(argp1);
31135   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
31136   if (!SWIG_IsOK(ecode2)) {
31137     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MultiValueKeyMaker_add_value" "', argument " "2"" of type '" "Xapian::valueno""'");
31138   }
31139   arg2 = static_cast< Xapian::valueno >(val2);
31140   {
31141     try {
31142       {
31143         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31144         (arg1)->add_value(arg2);
31145         SWIG_PYTHON_THREAD_END_ALLOW;
31146       }
31147     } catch (...) {
31148       Xapian::SetPythonException();
31149       SWIG_fail;
31150     }
31151   }
31152   resultobj = SWIG_Py_Void();
31153   return resultobj;
31154 fail:
31155   return NULL;
31156 }
31157 
31158 
_wrap_MultiValueKeyMaker_add_value(PyObject * self,PyObject * args)31159 SWIGINTERN PyObject *_wrap_MultiValueKeyMaker_add_value(PyObject *self, PyObject *args) {
31160   Py_ssize_t argc;
31161   PyObject *argv[5] = {
31162     0
31163   };
31164 
31165   if (!(argc = SWIG_Python_UnpackTuple(args,"MultiValueKeyMaker_add_value",0,4,argv))) SWIG_fail;
31166   --argc;
31167   if (argc == 2) {
31168     return _wrap_MultiValueKeyMaker_add_value__SWIG_2(self, argc, argv);
31169   }
31170   if (argc == 3) {
31171     return _wrap_MultiValueKeyMaker_add_value__SWIG_1(self, argc, argv);
31172   }
31173   if (argc == 4) {
31174     return _wrap_MultiValueKeyMaker_add_value__SWIG_0(self, argc, argv);
31175   }
31176 
31177 fail:
31178   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MultiValueKeyMaker_add_value'.\n"
31179     "  Possible C/C++ prototypes are:\n"
31180     "    Xapian::MultiValueKeyMaker::add_value(Xapian::valueno,bool,std::string const &)\n"
31181     "    Xapian::MultiValueKeyMaker::add_value(Xapian::valueno,bool)\n"
31182     "    Xapian::MultiValueKeyMaker::add_value(Xapian::valueno)\n");
31183   return 0;
31184 }
31185 
31186 
_wrap_delete_MultiValueKeyMaker(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31187 SWIGINTERN PyObject *_wrap_delete_MultiValueKeyMaker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31188   PyObject *resultobj = 0;
31189   Xapian::MultiValueKeyMaker *arg1 = (Xapian::MultiValueKeyMaker *) 0 ;
31190   void *argp1 = 0 ;
31191   int res1 = 0 ;
31192   PyObject *swig_obj[1] ;
31193 
31194   if (!args) SWIG_fail;
31195   swig_obj[0] = args;
31196   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MultiValueKeyMaker, SWIG_POINTER_DISOWN |  0 );
31197   if (!SWIG_IsOK(res1)) {
31198     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MultiValueKeyMaker" "', argument " "1"" of type '" "Xapian::MultiValueKeyMaker *""'");
31199   }
31200   arg1 = reinterpret_cast< Xapian::MultiValueKeyMaker * >(argp1);
31201   {
31202     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31203     delete arg1;
31204     SWIG_PYTHON_THREAD_END_ALLOW;
31205   }
31206   resultobj = SWIG_Py_Void();
31207   return resultobj;
31208 fail:
31209   return NULL;
31210 }
31211 
31212 
MultiValueKeyMaker_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31213 SWIGINTERN PyObject *MultiValueKeyMaker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31214   PyObject *obj;
31215   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
31216   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__MultiValueKeyMaker, SWIG_NewClientData(obj));
31217   return SWIG_Py_Void();
31218 }
31219 
MultiValueKeyMaker_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31220 SWIGINTERN PyObject *MultiValueKeyMaker_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31221   return SWIG_Python_InitShadowInstance(args);
31222 }
31223 
_wrap_new_Stopper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31224 SWIGINTERN PyObject *_wrap_new_Stopper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31225   PyObject *resultobj = 0;
31226   PyObject *arg1 = (PyObject *) 0 ;
31227   PyObject *swig_obj[1] ;
31228   Xapian::Stopper *result = 0 ;
31229 
31230   if (!args) SWIG_fail;
31231   swig_obj[0] = args;
31232   arg1 = swig_obj[0];
31233   {
31234     try {
31235       {
31236         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31237         if ( arg1 != Py_None ) {
31238           /* subclassed */
31239           result = (Xapian::Stopper *)new SwigDirector_Stopper(arg1);
31240         } else {
31241           SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
31242           SWIG_fail;
31243         }
31244 
31245         SWIG_PYTHON_THREAD_END_ALLOW;
31246       }
31247     } catch (...) {
31248       Xapian::SetPythonException();
31249       SWIG_fail;
31250     }
31251   }
31252   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Stopper, SWIG_POINTER_NEW |  0 );
31253   return resultobj;
31254 fail:
31255   return NULL;
31256 }
31257 
31258 
_wrap_Stopper___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31259 SWIGINTERN PyObject *_wrap_Stopper___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31260   PyObject *resultobj = 0;
31261   Xapian::Stopper *arg1 = (Xapian::Stopper *) 0 ;
31262   std::string *arg2 = 0 ;
31263   void *argp1 = 0 ;
31264   int res1 = 0 ;
31265   int res2 = SWIG_OLDOBJ ;
31266   PyObject *swig_obj[2] ;
31267   Swig::Director *director = 0;
31268   bool upcall = false;
31269   bool result;
31270 
31271   if (!SWIG_Python_UnpackTuple(args,"Stopper___call__",2,2,swig_obj)) SWIG_fail;
31272   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Stopper, 0 |  0 );
31273   if (!SWIG_IsOK(res1)) {
31274     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stopper___call__" "', argument " "1"" of type '" "Xapian::Stopper const *""'");
31275   }
31276   arg1 = reinterpret_cast< Xapian::Stopper * >(argp1);
31277   {
31278     std::string *ptr = (std::string *)0;
31279     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
31280     if (!SWIG_IsOK(res2)) {
31281       if (res2 == INT_MIN) SWIG_fail;
31282       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Stopper___call__" "', argument " "2"" of type '" "std::string const &""'");
31283     }
31284     if (!ptr) {
31285       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Stopper___call__" "', argument " "2"" of type '" "std::string const &""'");
31286     }
31287     arg2 = ptr;
31288   }
31289   director = SWIG_DIRECTOR_CAST(arg1);
31290   upcall = (director && (director->swig_get_self()==swig_obj[0]));
31291   try {
31292     {
31293       try {
31294         if (upcall) {
31295           Swig::DirectorPureVirtualException::raise("Xapian::Stopper::operator ()");
31296         } else {
31297           result = (bool)((Xapian::Stopper const *)arg1)->operator ()((std::string const &)*arg2);
31298         }
31299       } catch (...) {
31300         Xapian::SetPythonException();
31301         SWIG_fail;
31302       }
31303     }
31304   } catch (Swig::DirectorException&) {
31305     SWIG_fail;
31306   }
31307   resultobj = SWIG_From_bool(static_cast< bool >(result));
31308   if (SWIG_IsNewObj(res2)) delete arg2;
31309   return resultobj;
31310 fail:
31311   if (SWIG_IsNewObj(res2)) delete arg2;
31312   return NULL;
31313 }
31314 
31315 
_wrap_delete_Stopper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31316 SWIGINTERN PyObject *_wrap_delete_Stopper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31317   PyObject *resultobj = 0;
31318   Xapian::Stopper *arg1 = (Xapian::Stopper *) 0 ;
31319   void *argp1 = 0 ;
31320   int res1 = 0 ;
31321   PyObject *swig_obj[1] ;
31322 
31323   if (!args) SWIG_fail;
31324   swig_obj[0] = args;
31325   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Stopper, SWIG_POINTER_DISOWN |  0 );
31326   if (!SWIG_IsOK(res1)) {
31327     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Stopper" "', argument " "1"" of type '" "Xapian::Stopper *""'");
31328   }
31329   arg1 = reinterpret_cast< Xapian::Stopper * >(argp1);
31330   {
31331     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31332     delete arg1;
31333     SWIG_PYTHON_THREAD_END_ALLOW;
31334   }
31335   resultobj = SWIG_Py_Void();
31336   return resultobj;
31337 fail:
31338   return NULL;
31339 }
31340 
31341 
_wrap_Stopper___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31342 SWIGINTERN PyObject *_wrap_Stopper___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31343   PyObject *resultobj = 0;
31344   Xapian::Stopper *arg1 = (Xapian::Stopper *) 0 ;
31345   void *argp1 = 0 ;
31346   int res1 = 0 ;
31347   PyObject *swig_obj[1] ;
31348   Swig::Director *director = 0;
31349   bool upcall = false;
31350   std::string result;
31351 
31352   if (!args) SWIG_fail;
31353   swig_obj[0] = args;
31354   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Stopper, 0 |  0 );
31355   if (!SWIG_IsOK(res1)) {
31356     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stopper___str__" "', argument " "1"" of type '" "Xapian::Stopper const *""'");
31357   }
31358   arg1 = reinterpret_cast< Xapian::Stopper * >(argp1);
31359   director = SWIG_DIRECTOR_CAST(arg1);
31360   upcall = (director && (director->swig_get_self()==swig_obj[0]));
31361   try {
31362     {
31363       try {
31364         if (upcall) {
31365           result = ((Xapian::Stopper const *)arg1)->Xapian::Stopper::get_description();
31366         } else {
31367           result = ((Xapian::Stopper const *)arg1)->get_description();
31368         }
31369       } catch (...) {
31370         Xapian::SetPythonException();
31371         SWIG_fail;
31372       }
31373     }
31374   } catch (Swig::DirectorException&) {
31375     SWIG_fail;
31376   }
31377   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
31378   return resultobj;
31379 fail:
31380   return NULL;
31381 }
31382 
31383 
_wrap_Stopper_release(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31384 SWIGINTERN PyObject *_wrap_Stopper_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31385   PyObject *resultobj = 0;
31386   Xapian::Stopper *arg1 = (Xapian::Stopper *) 0 ;
31387   void *argp1 = 0 ;
31388   int res1 = 0 ;
31389   PyObject *swig_obj[1] ;
31390   Swig::Director *director = 0;
31391   Xapian::Stopper *result = 0 ;
31392 
31393   if (!args) SWIG_fail;
31394   swig_obj[0] = args;
31395   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Stopper, 0 |  0 );
31396   if (!SWIG_IsOK(res1)) {
31397     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stopper_release" "', argument " "1"" of type '" "Xapian::Stopper const *""'");
31398   }
31399   arg1 = reinterpret_cast< Xapian::Stopper * >(argp1);
31400   {
31401     try {
31402       {
31403         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31404         result = (Xapian::Stopper *)((Xapian::Stopper const *)arg1)->release();
31405         SWIG_PYTHON_THREAD_END_ALLOW;
31406       }
31407     } catch (...) {
31408       Xapian::SetPythonException();
31409       SWIG_fail;
31410     }
31411   }
31412   director = SWIG_DIRECTOR_CAST(result);
31413   if (director) {
31414     resultobj = director->swig_get_self();
31415     Py_INCREF(resultobj);
31416   } else {
31417     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Stopper, 0 |  0 );
31418   }
31419   return resultobj;
31420 fail:
31421   return NULL;
31422 }
31423 
31424 
_wrap_disown_Stopper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31425 SWIGINTERN PyObject *_wrap_disown_Stopper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31426   PyObject *resultobj = 0;
31427   Xapian::Stopper *arg1 = (Xapian::Stopper *) 0 ;
31428   void *argp1 = 0 ;
31429   int res1 = 0 ;
31430   PyObject *swig_obj[1] ;
31431 
31432   if (!args) SWIG_fail;
31433   swig_obj[0] = args;
31434   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Stopper, 0 |  0 );
31435   if (!SWIG_IsOK(res1)) {
31436     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_Stopper" "', argument " "1"" of type '" "Xapian::Stopper *""'");
31437   }
31438   arg1 = reinterpret_cast< Xapian::Stopper * >(argp1);
31439   {
31440     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31441     {
31442       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
31443       if (director) director->swig_disown();
31444     }
31445 
31446     SWIG_PYTHON_THREAD_END_ALLOW;
31447   }
31448   resultobj = SWIG_Py_Void();
31449   return resultobj;
31450 fail:
31451   return NULL;
31452 }
31453 
31454 
Stopper_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31455 SWIGINTERN PyObject *Stopper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31456   PyObject *obj;
31457   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
31458   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Stopper, SWIG_NewClientData(obj));
31459   return SWIG_Py_Void();
31460 }
31461 
Stopper_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31462 SWIGINTERN PyObject *Stopper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31463   return SWIG_Python_InitShadowInstance(args);
31464 }
31465 
_wrap_new_SimpleStopper__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))31466 SWIGINTERN PyObject *_wrap_new_SimpleStopper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
31467   PyObject *resultobj = 0;
31468   Xapian::SimpleStopper *result = 0 ;
31469 
31470   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
31471   {
31472     try {
31473       {
31474         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31475         result = (Xapian::SimpleStopper *)new Xapian::SimpleStopper();
31476         SWIG_PYTHON_THREAD_END_ALLOW;
31477       }
31478     } catch (...) {
31479       Xapian::SetPythonException();
31480       SWIG_fail;
31481     }
31482   }
31483   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__SimpleStopper, SWIG_POINTER_NEW |  0 );
31484   return resultobj;
31485 fail:
31486   return NULL;
31487 }
31488 
31489 
_wrap_SimpleStopper_add(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31490 SWIGINTERN PyObject *_wrap_SimpleStopper_add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31491   PyObject *resultobj = 0;
31492   Xapian::SimpleStopper *arg1 = (Xapian::SimpleStopper *) 0 ;
31493   std::string *arg2 = 0 ;
31494   void *argp1 = 0 ;
31495   int res1 = 0 ;
31496   int res2 = SWIG_OLDOBJ ;
31497   PyObject *swig_obj[2] ;
31498 
31499   if (!SWIG_Python_UnpackTuple(args,"SimpleStopper_add",2,2,swig_obj)) SWIG_fail;
31500   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__SimpleStopper, 0 |  0 );
31501   if (!SWIG_IsOK(res1)) {
31502     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimpleStopper_add" "', argument " "1"" of type '" "Xapian::SimpleStopper *""'");
31503   }
31504   arg1 = reinterpret_cast< Xapian::SimpleStopper * >(argp1);
31505   {
31506     std::string *ptr = (std::string *)0;
31507     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
31508     if (!SWIG_IsOK(res2)) {
31509       if (res2 == INT_MIN) SWIG_fail;
31510       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimpleStopper_add" "', argument " "2"" of type '" "std::string const &""'");
31511     }
31512     if (!ptr) {
31513       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimpleStopper_add" "', argument " "2"" of type '" "std::string const &""'");
31514     }
31515     arg2 = ptr;
31516   }
31517   {
31518     try {
31519       {
31520         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31521         (arg1)->add((std::string const &)*arg2);
31522         SWIG_PYTHON_THREAD_END_ALLOW;
31523       }
31524     } catch (...) {
31525       Xapian::SetPythonException();
31526       SWIG_fail;
31527     }
31528   }
31529   resultobj = SWIG_Py_Void();
31530   if (SWIG_IsNewObj(res2)) delete arg2;
31531   return resultobj;
31532 fail:
31533   if (SWIG_IsNewObj(res2)) delete arg2;
31534   return NULL;
31535 }
31536 
31537 
_wrap_new_SimpleStopper__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)31538 SWIGINTERN PyObject *_wrap_new_SimpleStopper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31539   PyObject *resultobj = 0;
31540   std::string *arg1 = 0 ;
31541   int res1 = SWIG_OLDOBJ ;
31542   Xapian::SimpleStopper *result = 0 ;
31543 
31544   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31545   {
31546     std::string *ptr = (std::string *)0;
31547     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
31548     if (!SWIG_IsOK(res1)) {
31549       if (res1 == INT_MIN) SWIG_fail;
31550       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SimpleStopper" "', argument " "1"" of type '" "std::string const &""'");
31551     }
31552     if (!ptr) {
31553       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimpleStopper" "', argument " "1"" of type '" "std::string const &""'");
31554     }
31555     arg1 = ptr;
31556   }
31557   {
31558     try {
31559       {
31560         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31561         result = (Xapian::SimpleStopper *)new_Xapian_SimpleStopper__SWIG_2((std::string const &)*arg1);
31562         SWIG_PYTHON_THREAD_END_ALLOW;
31563       }
31564     } catch (...) {
31565       Xapian::SetPythonException();
31566       SWIG_fail;
31567     }
31568   }
31569   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__SimpleStopper, SWIG_POINTER_NEW |  0 );
31570   if (SWIG_IsNewObj(res1)) delete arg1;
31571   return resultobj;
31572 fail:
31573   if (SWIG_IsNewObj(res1)) delete arg1;
31574   return NULL;
31575 }
31576 
31577 
_wrap_new_SimpleStopper(PyObject * self,PyObject * args)31578 SWIGINTERN PyObject *_wrap_new_SimpleStopper(PyObject *self, PyObject *args) {
31579   Py_ssize_t argc;
31580   PyObject *argv[2] = {
31581     0
31582   };
31583 
31584   if (!(argc = SWIG_Python_UnpackTuple(args,"new_SimpleStopper",0,1,argv))) SWIG_fail;
31585   --argc;
31586   if (argc == 0) {
31587     return _wrap_new_SimpleStopper__SWIG_0(self, argc, argv);
31588   }
31589   if (argc == 1) {
31590     return _wrap_new_SimpleStopper__SWIG_2(self, argc, argv);
31591   }
31592 
31593 fail:
31594   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SimpleStopper'.\n"
31595     "  Possible C/C++ prototypes are:\n"
31596     "    Xapian::SimpleStopper::SimpleStopper()\n"
31597     "    Xapian::SimpleStopper::SimpleStopper(std::string const &)\n");
31598   return 0;
31599 }
31600 
31601 
_wrap_delete_SimpleStopper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31602 SWIGINTERN PyObject *_wrap_delete_SimpleStopper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31603   PyObject *resultobj = 0;
31604   Xapian::SimpleStopper *arg1 = (Xapian::SimpleStopper *) 0 ;
31605   void *argp1 = 0 ;
31606   int res1 = 0 ;
31607   PyObject *swig_obj[1] ;
31608 
31609   if (!args) SWIG_fail;
31610   swig_obj[0] = args;
31611   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__SimpleStopper, SWIG_POINTER_DISOWN |  0 );
31612   if (!SWIG_IsOK(res1)) {
31613     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SimpleStopper" "', argument " "1"" of type '" "Xapian::SimpleStopper *""'");
31614   }
31615   arg1 = reinterpret_cast< Xapian::SimpleStopper * >(argp1);
31616   {
31617     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31618     delete arg1;
31619     SWIG_PYTHON_THREAD_END_ALLOW;
31620   }
31621   resultobj = SWIG_Py_Void();
31622   return resultobj;
31623 fail:
31624   return NULL;
31625 }
31626 
31627 
SimpleStopper_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31628 SWIGINTERN PyObject *SimpleStopper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31629   PyObject *obj;
31630   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
31631   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__SimpleStopper, SWIG_NewClientData(obj));
31632   return SWIG_Py_Void();
31633 }
31634 
SimpleStopper_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31635 SWIGINTERN PyObject *SimpleStopper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31636   return SWIG_Python_InitShadowInstance(args);
31637 }
31638 
_wrap_new_RangeProcessor__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)31639 SWIGINTERN PyObject *_wrap_new_RangeProcessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31640   PyObject *resultobj = 0;
31641   PyObject *arg1 = (PyObject *) 0 ;
31642   Xapian::RangeProcessor *result = 0 ;
31643 
31644   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31645   arg1 = swig_obj[0];
31646   {
31647     try {
31648       {
31649         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31650         if ( arg1 != Py_None ) {
31651           /* subclassed */
31652           result = (Xapian::RangeProcessor *)new SwigDirector_RangeProcessor(arg1);
31653         } else {
31654           result = (Xapian::RangeProcessor *)new Xapian::RangeProcessor();
31655         }
31656 
31657         SWIG_PYTHON_THREAD_END_ALLOW;
31658       }
31659     } catch (...) {
31660       Xapian::SetPythonException();
31661       SWIG_fail;
31662     }
31663   }
31664   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeProcessor, SWIG_POINTER_NEW |  0 );
31665   return resultobj;
31666 fail:
31667   return NULL;
31668 }
31669 
31670 
_wrap_new_RangeProcessor__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)31671 SWIGINTERN PyObject *_wrap_new_RangeProcessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31672   PyObject *resultobj = 0;
31673   PyObject *arg1 = (PyObject *) 0 ;
31674   Xapian::valueno arg2 ;
31675   std::string *arg3 = 0 ;
31676   unsigned int arg4 ;
31677   unsigned int val2 ;
31678   int ecode2 = 0 ;
31679   int res3 = SWIG_OLDOBJ ;
31680   unsigned int val4 ;
31681   int ecode4 = 0 ;
31682   Xapian::RangeProcessor *result = 0 ;
31683 
31684   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
31685   arg1 = swig_obj[0];
31686   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
31687   if (!SWIG_IsOK(ecode2)) {
31688     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RangeProcessor" "', argument " "2"" of type '" "Xapian::valueno""'");
31689   }
31690   arg2 = static_cast< Xapian::valueno >(val2);
31691   {
31692     std::string *ptr = (std::string *)0;
31693     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
31694     if (!SWIG_IsOK(res3)) {
31695       if (res3 == INT_MIN) SWIG_fail;
31696       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_RangeProcessor" "', argument " "3"" of type '" "std::string const &""'");
31697     }
31698     if (!ptr) {
31699       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeProcessor" "', argument " "3"" of type '" "std::string const &""'");
31700     }
31701     arg3 = ptr;
31702   }
31703   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
31704   if (!SWIG_IsOK(ecode4)) {
31705     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_RangeProcessor" "', argument " "4"" of type '" "unsigned int""'");
31706   }
31707   arg4 = static_cast< unsigned int >(val4);
31708   {
31709     try {
31710       {
31711         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31712         if ( arg1 != Py_None ) {
31713           /* subclassed */
31714           result = (Xapian::RangeProcessor *)new SwigDirector_RangeProcessor(arg1,arg2,(std::string const &)*arg3,arg4);
31715         } else {
31716           result = (Xapian::RangeProcessor *)new Xapian::RangeProcessor(arg2,(std::string const &)*arg3,arg4);
31717         }
31718 
31719         SWIG_PYTHON_THREAD_END_ALLOW;
31720       }
31721     } catch (...) {
31722       Xapian::SetPythonException();
31723       SWIG_fail;
31724     }
31725   }
31726   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeProcessor, SWIG_POINTER_NEW |  0 );
31727   if (SWIG_IsNewObj(res3)) delete arg3;
31728   return resultobj;
31729 fail:
31730   if (SWIG_IsNewObj(res3)) delete arg3;
31731   return NULL;
31732 }
31733 
31734 
_wrap_new_RangeProcessor__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)31735 SWIGINTERN PyObject *_wrap_new_RangeProcessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31736   PyObject *resultobj = 0;
31737   PyObject *arg1 = (PyObject *) 0 ;
31738   Xapian::valueno arg2 ;
31739   std::string *arg3 = 0 ;
31740   unsigned int val2 ;
31741   int ecode2 = 0 ;
31742   int res3 = SWIG_OLDOBJ ;
31743   Xapian::RangeProcessor *result = 0 ;
31744 
31745   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
31746   arg1 = swig_obj[0];
31747   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
31748   if (!SWIG_IsOK(ecode2)) {
31749     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RangeProcessor" "', argument " "2"" of type '" "Xapian::valueno""'");
31750   }
31751   arg2 = static_cast< Xapian::valueno >(val2);
31752   {
31753     std::string *ptr = (std::string *)0;
31754     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
31755     if (!SWIG_IsOK(res3)) {
31756       if (res3 == INT_MIN) SWIG_fail;
31757       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_RangeProcessor" "', argument " "3"" of type '" "std::string const &""'");
31758     }
31759     if (!ptr) {
31760       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RangeProcessor" "', argument " "3"" of type '" "std::string const &""'");
31761     }
31762     arg3 = ptr;
31763   }
31764   {
31765     try {
31766       {
31767         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31768         if ( arg1 != Py_None ) {
31769           /* subclassed */
31770           result = (Xapian::RangeProcessor *)new SwigDirector_RangeProcessor(arg1,arg2,(std::string const &)*arg3);
31771         } else {
31772           result = (Xapian::RangeProcessor *)new Xapian::RangeProcessor(arg2,(std::string const &)*arg3);
31773         }
31774 
31775         SWIG_PYTHON_THREAD_END_ALLOW;
31776       }
31777     } catch (...) {
31778       Xapian::SetPythonException();
31779       SWIG_fail;
31780     }
31781   }
31782   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeProcessor, SWIG_POINTER_NEW |  0 );
31783   if (SWIG_IsNewObj(res3)) delete arg3;
31784   return resultobj;
31785 fail:
31786   if (SWIG_IsNewObj(res3)) delete arg3;
31787   return NULL;
31788 }
31789 
31790 
_wrap_new_RangeProcessor__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)31791 SWIGINTERN PyObject *_wrap_new_RangeProcessor__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31792   PyObject *resultobj = 0;
31793   PyObject *arg1 = (PyObject *) 0 ;
31794   Xapian::valueno arg2 ;
31795   unsigned int val2 ;
31796   int ecode2 = 0 ;
31797   Xapian::RangeProcessor *result = 0 ;
31798 
31799   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31800   arg1 = swig_obj[0];
31801   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
31802   if (!SWIG_IsOK(ecode2)) {
31803     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RangeProcessor" "', argument " "2"" of type '" "Xapian::valueno""'");
31804   }
31805   arg2 = static_cast< Xapian::valueno >(val2);
31806   {
31807     try {
31808       {
31809         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31810         if ( arg1 != Py_None ) {
31811           /* subclassed */
31812           result = (Xapian::RangeProcessor *)new SwigDirector_RangeProcessor(arg1,arg2);
31813         } else {
31814           result = (Xapian::RangeProcessor *)new Xapian::RangeProcessor(arg2);
31815         }
31816 
31817         SWIG_PYTHON_THREAD_END_ALLOW;
31818       }
31819     } catch (...) {
31820       Xapian::SetPythonException();
31821       SWIG_fail;
31822     }
31823   }
31824   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeProcessor, SWIG_POINTER_NEW |  0 );
31825   return resultobj;
31826 fail:
31827   return NULL;
31828 }
31829 
31830 
_wrap_new_RangeProcessor(PyObject * self,PyObject * args)31831 SWIGINTERN PyObject *_wrap_new_RangeProcessor(PyObject *self, PyObject *args) {
31832   Py_ssize_t argc;
31833   PyObject *argv[5] = {
31834     0
31835   };
31836 
31837   if (!(argc = SWIG_Python_UnpackTuple(args,"new_RangeProcessor",0,4,argv))) SWIG_fail;
31838   --argc;
31839   if (argc == 1) {
31840     return _wrap_new_RangeProcessor__SWIG_0(self, argc, argv);
31841   }
31842   if (argc == 2) {
31843     return _wrap_new_RangeProcessor__SWIG_3(self, argc, argv);
31844   }
31845   if (argc == 3) {
31846     return _wrap_new_RangeProcessor__SWIG_2(self, argc, argv);
31847   }
31848   if (argc == 4) {
31849     return _wrap_new_RangeProcessor__SWIG_1(self, argc, argv);
31850   }
31851 
31852 fail:
31853   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RangeProcessor'.\n"
31854     "  Possible C/C++ prototypes are:\n"
31855     "    Xapian::RangeProcessor::RangeProcessor()\n"
31856     "    Xapian::RangeProcessor::RangeProcessor(Xapian::valueno,std::string const &,unsigned int)\n"
31857     "    Xapian::RangeProcessor::RangeProcessor(Xapian::valueno,std::string const &)\n"
31858     "    Xapian::RangeProcessor::RangeProcessor(PyObject *,Xapian::valueno)\n");
31859   return 0;
31860 }
31861 
31862 
_wrap_delete_RangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31863 SWIGINTERN PyObject *_wrap_delete_RangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31864   PyObject *resultobj = 0;
31865   Xapian::RangeProcessor *arg1 = (Xapian::RangeProcessor *) 0 ;
31866   void *argp1 = 0 ;
31867   int res1 = 0 ;
31868   PyObject *swig_obj[1] ;
31869 
31870   if (!args) SWIG_fail;
31871   swig_obj[0] = args;
31872   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RangeProcessor, SWIG_POINTER_DISOWN |  0 );
31873   if (!SWIG_IsOK(res1)) {
31874     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RangeProcessor" "', argument " "1"" of type '" "Xapian::RangeProcessor *""'");
31875   }
31876   arg1 = reinterpret_cast< Xapian::RangeProcessor * >(argp1);
31877   {
31878     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31879     delete arg1;
31880     SWIG_PYTHON_THREAD_END_ALLOW;
31881   }
31882   resultobj = SWIG_Py_Void();
31883   return resultobj;
31884 fail:
31885   return NULL;
31886 }
31887 
31888 
_wrap_RangeProcessor_check_range(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31889 SWIGINTERN PyObject *_wrap_RangeProcessor_check_range(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31890   PyObject *resultobj = 0;
31891   Xapian::RangeProcessor *arg1 = (Xapian::RangeProcessor *) 0 ;
31892   std::string *arg2 = 0 ;
31893   std::string *arg3 = 0 ;
31894   void *argp1 = 0 ;
31895   int res1 = 0 ;
31896   int res2 = SWIG_OLDOBJ ;
31897   int res3 = SWIG_OLDOBJ ;
31898   PyObject *swig_obj[3] ;
31899   Xapian::Query result;
31900 
31901   if (!SWIG_Python_UnpackTuple(args,"RangeProcessor_check_range",3,3,swig_obj)) SWIG_fail;
31902   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RangeProcessor, 0 |  0 );
31903   if (!SWIG_IsOK(res1)) {
31904     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RangeProcessor_check_range" "', argument " "1"" of type '" "Xapian::RangeProcessor *""'");
31905   }
31906   arg1 = reinterpret_cast< Xapian::RangeProcessor * >(argp1);
31907   {
31908     std::string *ptr = (std::string *)0;
31909     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
31910     if (!SWIG_IsOK(res2)) {
31911       if (res2 == INT_MIN) SWIG_fail;
31912       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RangeProcessor_check_range" "', argument " "2"" of type '" "std::string const &""'");
31913     }
31914     if (!ptr) {
31915       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RangeProcessor_check_range" "', argument " "2"" of type '" "std::string const &""'");
31916     }
31917     arg2 = ptr;
31918   }
31919   {
31920     std::string *ptr = (std::string *)0;
31921     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
31922     if (!SWIG_IsOK(res3)) {
31923       if (res3 == INT_MIN) SWIG_fail;
31924       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RangeProcessor_check_range" "', argument " "3"" of type '" "std::string const &""'");
31925     }
31926     if (!ptr) {
31927       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RangeProcessor_check_range" "', argument " "3"" of type '" "std::string const &""'");
31928     }
31929     arg3 = ptr;
31930   }
31931   {
31932     try {
31933       {
31934         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
31935         result = (arg1)->check_range((std::string const &)*arg2,(std::string const &)*arg3);
31936         SWIG_PYTHON_THREAD_END_ALLOW;
31937       }
31938     } catch (...) {
31939       Xapian::SetPythonException();
31940       SWIG_fail;
31941     }
31942   }
31943   resultobj = SWIG_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN |  0 );
31944   if (SWIG_IsNewObj(res2)) delete arg2;
31945   if (SWIG_IsNewObj(res3)) delete arg3;
31946   return resultobj;
31947 fail:
31948   if (SWIG_IsNewObj(res2)) delete arg2;
31949   if (SWIG_IsNewObj(res3)) delete arg3;
31950   return NULL;
31951 }
31952 
31953 
_wrap_RangeProcessor___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)31954 SWIGINTERN PyObject *_wrap_RangeProcessor___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31955   PyObject *resultobj = 0;
31956   Xapian::RangeProcessor *arg1 = (Xapian::RangeProcessor *) 0 ;
31957   std::string *arg2 = 0 ;
31958   std::string *arg3 = 0 ;
31959   void *argp1 = 0 ;
31960   int res1 = 0 ;
31961   int res2 = SWIG_OLDOBJ ;
31962   int res3 = SWIG_OLDOBJ ;
31963   PyObject *swig_obj[3] ;
31964   Swig::Director *director = 0;
31965   bool upcall = false;
31966   Xapian::Query result;
31967 
31968   if (!SWIG_Python_UnpackTuple(args,"RangeProcessor___call__",3,3,swig_obj)) SWIG_fail;
31969   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RangeProcessor, 0 |  0 );
31970   if (!SWIG_IsOK(res1)) {
31971     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RangeProcessor___call__" "', argument " "1"" of type '" "Xapian::RangeProcessor *""'");
31972   }
31973   arg1 = reinterpret_cast< Xapian::RangeProcessor * >(argp1);
31974   {
31975     std::string *ptr = (std::string *)0;
31976     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
31977     if (!SWIG_IsOK(res2)) {
31978       if (res2 == INT_MIN) SWIG_fail;
31979       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RangeProcessor___call__" "', argument " "2"" of type '" "std::string const &""'");
31980     }
31981     if (!ptr) {
31982       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RangeProcessor___call__" "', argument " "2"" of type '" "std::string const &""'");
31983     }
31984     arg2 = ptr;
31985   }
31986   {
31987     std::string *ptr = (std::string *)0;
31988     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
31989     if (!SWIG_IsOK(res3)) {
31990       if (res3 == INT_MIN) SWIG_fail;
31991       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RangeProcessor___call__" "', argument " "3"" of type '" "std::string const &""'");
31992     }
31993     if (!ptr) {
31994       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RangeProcessor___call__" "', argument " "3"" of type '" "std::string const &""'");
31995     }
31996     arg3 = ptr;
31997   }
31998   director = SWIG_DIRECTOR_CAST(arg1);
31999   upcall = (director && (director->swig_get_self()==swig_obj[0]));
32000   try {
32001     {
32002       try {
32003         if (upcall) {
32004           result = (arg1)->Xapian::RangeProcessor::operator ()((std::string const &)*arg2,(std::string const &)*arg3);
32005         } else {
32006           result = (arg1)->operator ()((std::string const &)*arg2,(std::string const &)*arg3);
32007         }
32008       } catch (...) {
32009         Xapian::SetPythonException();
32010         SWIG_fail;
32011       }
32012     }
32013   } catch (Swig::DirectorException&) {
32014     SWIG_fail;
32015   }
32016   resultobj = SWIG_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN |  0 );
32017   if (SWIG_IsNewObj(res2)) delete arg2;
32018   if (SWIG_IsNewObj(res3)) delete arg3;
32019   return resultobj;
32020 fail:
32021   if (SWIG_IsNewObj(res2)) delete arg2;
32022   if (SWIG_IsNewObj(res3)) delete arg3;
32023   return NULL;
32024 }
32025 
32026 
_wrap_RangeProcessor_release(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32027 SWIGINTERN PyObject *_wrap_RangeProcessor_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32028   PyObject *resultobj = 0;
32029   Xapian::RangeProcessor *arg1 = (Xapian::RangeProcessor *) 0 ;
32030   void *argp1 = 0 ;
32031   int res1 = 0 ;
32032   PyObject *swig_obj[1] ;
32033   Swig::Director *director = 0;
32034   Xapian::RangeProcessor *result = 0 ;
32035 
32036   if (!args) SWIG_fail;
32037   swig_obj[0] = args;
32038   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RangeProcessor, 0 |  0 );
32039   if (!SWIG_IsOK(res1)) {
32040     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RangeProcessor_release" "', argument " "1"" of type '" "Xapian::RangeProcessor const *""'");
32041   }
32042   arg1 = reinterpret_cast< Xapian::RangeProcessor * >(argp1);
32043   {
32044     try {
32045       {
32046         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32047         result = (Xapian::RangeProcessor *)((Xapian::RangeProcessor const *)arg1)->release();
32048         SWIG_PYTHON_THREAD_END_ALLOW;
32049       }
32050     } catch (...) {
32051       Xapian::SetPythonException();
32052       SWIG_fail;
32053     }
32054   }
32055   director = SWIG_DIRECTOR_CAST(result);
32056   if (director) {
32057     resultobj = director->swig_get_self();
32058     Py_INCREF(resultobj);
32059   } else {
32060     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__RangeProcessor, 0 |  0 );
32061   }
32062   return resultobj;
32063 fail:
32064   return NULL;
32065 }
32066 
32067 
_wrap_disown_RangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32068 SWIGINTERN PyObject *_wrap_disown_RangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32069   PyObject *resultobj = 0;
32070   Xapian::RangeProcessor *arg1 = (Xapian::RangeProcessor *) 0 ;
32071   void *argp1 = 0 ;
32072   int res1 = 0 ;
32073   PyObject *swig_obj[1] ;
32074 
32075   if (!args) SWIG_fail;
32076   swig_obj[0] = args;
32077   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__RangeProcessor, 0 |  0 );
32078   if (!SWIG_IsOK(res1)) {
32079     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_RangeProcessor" "', argument " "1"" of type '" "Xapian::RangeProcessor *""'");
32080   }
32081   arg1 = reinterpret_cast< Xapian::RangeProcessor * >(argp1);
32082   {
32083     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32084     {
32085       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
32086       if (director) director->swig_disown();
32087     }
32088 
32089     SWIG_PYTHON_THREAD_END_ALLOW;
32090   }
32091   resultobj = SWIG_Py_Void();
32092   return resultobj;
32093 fail:
32094   return NULL;
32095 }
32096 
32097 
RangeProcessor_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32098 SWIGINTERN PyObject *RangeProcessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32099   PyObject *obj;
32100   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
32101   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__RangeProcessor, SWIG_NewClientData(obj));
32102   return SWIG_Py_Void();
32103 }
32104 
RangeProcessor_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32105 SWIGINTERN PyObject *RangeProcessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32106   return SWIG_Python_InitShadowInstance(args);
32107 }
32108 
_wrap_new_DateRangeProcessor__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32109 SWIGINTERN PyObject *_wrap_new_DateRangeProcessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32110   PyObject *resultobj = 0;
32111   Xapian::valueno arg1 ;
32112   unsigned int arg2 ;
32113   int arg3 ;
32114   unsigned int val1 ;
32115   int ecode1 = 0 ;
32116   unsigned int val2 ;
32117   int ecode2 = 0 ;
32118   int val3 ;
32119   int ecode3 = 0 ;
32120   Xapian::DateRangeProcessor *result = 0 ;
32121 
32122   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
32123   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32124   if (!SWIG_IsOK(ecode1)) {
32125     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32126   }
32127   arg1 = static_cast< Xapian::valueno >(val1);
32128   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
32129   if (!SWIG_IsOK(ecode2)) {
32130     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "unsigned int""'");
32131   }
32132   arg2 = static_cast< unsigned int >(val2);
32133   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
32134   if (!SWIG_IsOK(ecode3)) {
32135     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateRangeProcessor" "', argument " "3"" of type '" "int""'");
32136   }
32137   arg3 = static_cast< int >(val3);
32138   {
32139     try {
32140       {
32141         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32142         result = (Xapian::DateRangeProcessor *)new Xapian::DateRangeProcessor(arg1,arg2,arg3);
32143         SWIG_PYTHON_THREAD_END_ALLOW;
32144       }
32145     } catch (...) {
32146       Xapian::SetPythonException();
32147       SWIG_fail;
32148     }
32149   }
32150   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateRangeProcessor, SWIG_POINTER_NEW |  0 );
32151   return resultobj;
32152 fail:
32153   return NULL;
32154 }
32155 
32156 
_wrap_new_DateRangeProcessor__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32157 SWIGINTERN PyObject *_wrap_new_DateRangeProcessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32158   PyObject *resultobj = 0;
32159   Xapian::valueno arg1 ;
32160   unsigned int arg2 ;
32161   unsigned int val1 ;
32162   int ecode1 = 0 ;
32163   unsigned int val2 ;
32164   int ecode2 = 0 ;
32165   Xapian::DateRangeProcessor *result = 0 ;
32166 
32167   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
32168   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32169   if (!SWIG_IsOK(ecode1)) {
32170     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32171   }
32172   arg1 = static_cast< Xapian::valueno >(val1);
32173   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
32174   if (!SWIG_IsOK(ecode2)) {
32175     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "unsigned int""'");
32176   }
32177   arg2 = static_cast< unsigned int >(val2);
32178   {
32179     try {
32180       {
32181         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32182         result = (Xapian::DateRangeProcessor *)new Xapian::DateRangeProcessor(arg1,arg2);
32183         SWIG_PYTHON_THREAD_END_ALLOW;
32184       }
32185     } catch (...) {
32186       Xapian::SetPythonException();
32187       SWIG_fail;
32188     }
32189   }
32190   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateRangeProcessor, SWIG_POINTER_NEW |  0 );
32191   return resultobj;
32192 fail:
32193   return NULL;
32194 }
32195 
32196 
_wrap_new_DateRangeProcessor__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32197 SWIGINTERN PyObject *_wrap_new_DateRangeProcessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32198   PyObject *resultobj = 0;
32199   Xapian::valueno arg1 ;
32200   unsigned int val1 ;
32201   int ecode1 = 0 ;
32202   Xapian::DateRangeProcessor *result = 0 ;
32203 
32204   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
32205   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32206   if (!SWIG_IsOK(ecode1)) {
32207     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32208   }
32209   arg1 = static_cast< Xapian::valueno >(val1);
32210   {
32211     try {
32212       {
32213         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32214         result = (Xapian::DateRangeProcessor *)new Xapian::DateRangeProcessor(arg1);
32215         SWIG_PYTHON_THREAD_END_ALLOW;
32216       }
32217     } catch (...) {
32218       Xapian::SetPythonException();
32219       SWIG_fail;
32220     }
32221   }
32222   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateRangeProcessor, SWIG_POINTER_NEW |  0 );
32223   return resultobj;
32224 fail:
32225   return NULL;
32226 }
32227 
32228 
_wrap_new_DateRangeProcessor__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32229 SWIGINTERN PyObject *_wrap_new_DateRangeProcessor__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32230   PyObject *resultobj = 0;
32231   Xapian::valueno arg1 ;
32232   std::string *arg2 = 0 ;
32233   unsigned int arg3 ;
32234   int arg4 ;
32235   unsigned int val1 ;
32236   int ecode1 = 0 ;
32237   int res2 = SWIG_OLDOBJ ;
32238   unsigned int val3 ;
32239   int ecode3 = 0 ;
32240   int val4 ;
32241   int ecode4 = 0 ;
32242   Xapian::DateRangeProcessor *result = 0 ;
32243 
32244   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
32245   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32246   if (!SWIG_IsOK(ecode1)) {
32247     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32248   }
32249   arg1 = static_cast< Xapian::valueno >(val1);
32250   {
32251     std::string *ptr = (std::string *)0;
32252     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
32253     if (!SWIG_IsOK(res2)) {
32254       if (res2 == INT_MIN) SWIG_fail;
32255       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32256     }
32257     if (!ptr) {
32258       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32259     }
32260     arg2 = ptr;
32261   }
32262   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
32263   if (!SWIG_IsOK(ecode3)) {
32264     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateRangeProcessor" "', argument " "3"" of type '" "unsigned int""'");
32265   }
32266   arg3 = static_cast< unsigned int >(val3);
32267   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
32268   if (!SWIG_IsOK(ecode4)) {
32269     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DateRangeProcessor" "', argument " "4"" of type '" "int""'");
32270   }
32271   arg4 = static_cast< int >(val4);
32272   {
32273     try {
32274       {
32275         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32276         result = (Xapian::DateRangeProcessor *)new Xapian::DateRangeProcessor(arg1,(std::string const &)*arg2,arg3,arg4);
32277         SWIG_PYTHON_THREAD_END_ALLOW;
32278       }
32279     } catch (...) {
32280       Xapian::SetPythonException();
32281       SWIG_fail;
32282     }
32283   }
32284   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateRangeProcessor, SWIG_POINTER_NEW |  0 );
32285   if (SWIG_IsNewObj(res2)) delete arg2;
32286   return resultobj;
32287 fail:
32288   if (SWIG_IsNewObj(res2)) delete arg2;
32289   return NULL;
32290 }
32291 
32292 
_wrap_new_DateRangeProcessor__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32293 SWIGINTERN PyObject *_wrap_new_DateRangeProcessor__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32294   PyObject *resultobj = 0;
32295   Xapian::valueno arg1 ;
32296   std::string *arg2 = 0 ;
32297   unsigned int arg3 ;
32298   unsigned int val1 ;
32299   int ecode1 = 0 ;
32300   int res2 = SWIG_OLDOBJ ;
32301   unsigned int val3 ;
32302   int ecode3 = 0 ;
32303   Xapian::DateRangeProcessor *result = 0 ;
32304 
32305   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
32306   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32307   if (!SWIG_IsOK(ecode1)) {
32308     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32309   }
32310   arg1 = static_cast< Xapian::valueno >(val1);
32311   {
32312     std::string *ptr = (std::string *)0;
32313     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
32314     if (!SWIG_IsOK(res2)) {
32315       if (res2 == INT_MIN) SWIG_fail;
32316       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32317     }
32318     if (!ptr) {
32319       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32320     }
32321     arg2 = ptr;
32322   }
32323   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
32324   if (!SWIG_IsOK(ecode3)) {
32325     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateRangeProcessor" "', argument " "3"" of type '" "unsigned int""'");
32326   }
32327   arg3 = static_cast< unsigned int >(val3);
32328   {
32329     try {
32330       {
32331         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32332         result = (Xapian::DateRangeProcessor *)new Xapian::DateRangeProcessor(arg1,(std::string const &)*arg2,arg3);
32333         SWIG_PYTHON_THREAD_END_ALLOW;
32334       }
32335     } catch (...) {
32336       Xapian::SetPythonException();
32337       SWIG_fail;
32338     }
32339   }
32340   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateRangeProcessor, SWIG_POINTER_NEW |  0 );
32341   if (SWIG_IsNewObj(res2)) delete arg2;
32342   return resultobj;
32343 fail:
32344   if (SWIG_IsNewObj(res2)) delete arg2;
32345   return NULL;
32346 }
32347 
32348 
_wrap_new_DateRangeProcessor__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32349 SWIGINTERN PyObject *_wrap_new_DateRangeProcessor__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32350   PyObject *resultobj = 0;
32351   Xapian::valueno arg1 ;
32352   std::string *arg2 = 0 ;
32353   unsigned int val1 ;
32354   int ecode1 = 0 ;
32355   int res2 = SWIG_OLDOBJ ;
32356   Xapian::DateRangeProcessor *result = 0 ;
32357 
32358   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
32359   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32360   if (!SWIG_IsOK(ecode1)) {
32361     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32362   }
32363   arg1 = static_cast< Xapian::valueno >(val1);
32364   {
32365     std::string *ptr = (std::string *)0;
32366     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
32367     if (!SWIG_IsOK(res2)) {
32368       if (res2 == INT_MIN) SWIG_fail;
32369       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32370     }
32371     if (!ptr) {
32372       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32373     }
32374     arg2 = ptr;
32375   }
32376   {
32377     try {
32378       {
32379         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32380         result = (Xapian::DateRangeProcessor *)new Xapian::DateRangeProcessor(arg1,(std::string const &)*arg2);
32381         SWIG_PYTHON_THREAD_END_ALLOW;
32382       }
32383     } catch (...) {
32384       Xapian::SetPythonException();
32385       SWIG_fail;
32386     }
32387   }
32388   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateRangeProcessor, SWIG_POINTER_NEW |  0 );
32389   if (SWIG_IsNewObj(res2)) delete arg2;
32390   return resultobj;
32391 fail:
32392   if (SWIG_IsNewObj(res2)) delete arg2;
32393   return NULL;
32394 }
32395 
32396 
_wrap_new_DateRangeProcessor(PyObject * self,PyObject * args)32397 SWIGINTERN PyObject *_wrap_new_DateRangeProcessor(PyObject *self, PyObject *args) {
32398   Py_ssize_t argc;
32399   PyObject *argv[5] = {
32400     0
32401   };
32402 
32403   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DateRangeProcessor",0,4,argv))) SWIG_fail;
32404   --argc;
32405   if (argc == 1) {
32406     return _wrap_new_DateRangeProcessor__SWIG_2(self, argc, argv);
32407   }
32408   if (argc == 2) {
32409     int _v = 0;
32410     {
32411       {
32412         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
32413         _v = SWIG_CheckState(res);
32414       }
32415     }
32416     if (!_v) goto check_2;
32417     return _wrap_new_DateRangeProcessor__SWIG_1(self, argc, argv);
32418   }
32419 check_2:
32420 
32421   if (argc == 2) {
32422     return _wrap_new_DateRangeProcessor__SWIG_5(self, argc, argv);
32423   }
32424   if (argc == 3) {
32425     int _v = 0;
32426     {
32427       {
32428         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
32429         _v = SWIG_CheckState(res);
32430       }
32431     }
32432     if (!_v) goto check_4;
32433     {
32434       {
32435         int res = SWIG_AsVal_int(argv[2], NULL);
32436         _v = SWIG_CheckState(res);
32437       }
32438     }
32439     if (!_v) goto check_4;
32440     return _wrap_new_DateRangeProcessor__SWIG_0(self, argc, argv);
32441   }
32442 check_4:
32443 
32444   if (argc == 3) {
32445     return _wrap_new_DateRangeProcessor__SWIG_4(self, argc, argv);
32446   }
32447   if (argc == 4) {
32448     return _wrap_new_DateRangeProcessor__SWIG_3(self, argc, argv);
32449   }
32450 
32451 fail:
32452   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DateRangeProcessor'.\n"
32453     "  Possible C/C++ prototypes are:\n"
32454     "    Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno,unsigned int,int)\n"
32455     "    Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno,unsigned int)\n"
32456     "    Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno)\n"
32457     "    Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno,std::string const &,unsigned int,int)\n"
32458     "    Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno,std::string const &,unsigned int)\n"
32459     "    Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno,std::string const &)\n");
32460   return 0;
32461 }
32462 
32463 
_wrap_delete_DateRangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32464 SWIGINTERN PyObject *_wrap_delete_DateRangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32465   PyObject *resultobj = 0;
32466   Xapian::DateRangeProcessor *arg1 = (Xapian::DateRangeProcessor *) 0 ;
32467   void *argp1 = 0 ;
32468   int res1 = 0 ;
32469   PyObject *swig_obj[1] ;
32470 
32471   if (!args) SWIG_fail;
32472   swig_obj[0] = args;
32473   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DateRangeProcessor, SWIG_POINTER_DISOWN |  0 );
32474   if (!SWIG_IsOK(res1)) {
32475     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DateRangeProcessor" "', argument " "1"" of type '" "Xapian::DateRangeProcessor *""'");
32476   }
32477   arg1 = reinterpret_cast< Xapian::DateRangeProcessor * >(argp1);
32478   {
32479     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32480     delete arg1;
32481     SWIG_PYTHON_THREAD_END_ALLOW;
32482   }
32483   resultobj = SWIG_Py_Void();
32484   return resultobj;
32485 fail:
32486   return NULL;
32487 }
32488 
32489 
DateRangeProcessor_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32490 SWIGINTERN PyObject *DateRangeProcessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32491   PyObject *obj;
32492   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
32493   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DateRangeProcessor, SWIG_NewClientData(obj));
32494   return SWIG_Py_Void();
32495 }
32496 
DateRangeProcessor_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32497 SWIGINTERN PyObject *DateRangeProcessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32498   return SWIG_Python_InitShadowInstance(args);
32499 }
32500 
_wrap_new_NumberRangeProcessor__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32501 SWIGINTERN PyObject *_wrap_new_NumberRangeProcessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32502   PyObject *resultobj = 0;
32503   Xapian::valueno arg1 ;
32504   std::string *arg2 = 0 ;
32505   unsigned int arg3 ;
32506   unsigned int val1 ;
32507   int ecode1 = 0 ;
32508   int res2 = SWIG_OLDOBJ ;
32509   unsigned int val3 ;
32510   int ecode3 = 0 ;
32511   Xapian::NumberRangeProcessor *result = 0 ;
32512 
32513   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
32514   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32515   if (!SWIG_IsOK(ecode1)) {
32516     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NumberRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32517   }
32518   arg1 = static_cast< Xapian::valueno >(val1);
32519   {
32520     std::string *ptr = (std::string *)0;
32521     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
32522     if (!SWIG_IsOK(res2)) {
32523       if (res2 == INT_MIN) SWIG_fail;
32524       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NumberRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32525     }
32526     if (!ptr) {
32527       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumberRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32528     }
32529     arg2 = ptr;
32530   }
32531   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
32532   if (!SWIG_IsOK(ecode3)) {
32533     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NumberRangeProcessor" "', argument " "3"" of type '" "unsigned int""'");
32534   }
32535   arg3 = static_cast< unsigned int >(val3);
32536   {
32537     try {
32538       {
32539         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32540         result = (Xapian::NumberRangeProcessor *)new Xapian::NumberRangeProcessor(arg1,(std::string const &)*arg2,arg3);
32541         SWIG_PYTHON_THREAD_END_ALLOW;
32542       }
32543     } catch (...) {
32544       Xapian::SetPythonException();
32545       SWIG_fail;
32546     }
32547   }
32548   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NumberRangeProcessor, SWIG_POINTER_NEW |  0 );
32549   if (SWIG_IsNewObj(res2)) delete arg2;
32550   return resultobj;
32551 fail:
32552   if (SWIG_IsNewObj(res2)) delete arg2;
32553   return NULL;
32554 }
32555 
32556 
_wrap_new_NumberRangeProcessor__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32557 SWIGINTERN PyObject *_wrap_new_NumberRangeProcessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32558   PyObject *resultobj = 0;
32559   Xapian::valueno arg1 ;
32560   std::string *arg2 = 0 ;
32561   unsigned int val1 ;
32562   int ecode1 = 0 ;
32563   int res2 = SWIG_OLDOBJ ;
32564   Xapian::NumberRangeProcessor *result = 0 ;
32565 
32566   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
32567   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32568   if (!SWIG_IsOK(ecode1)) {
32569     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NumberRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32570   }
32571   arg1 = static_cast< Xapian::valueno >(val1);
32572   {
32573     std::string *ptr = (std::string *)0;
32574     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
32575     if (!SWIG_IsOK(res2)) {
32576       if (res2 == INT_MIN) SWIG_fail;
32577       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NumberRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32578     }
32579     if (!ptr) {
32580       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumberRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32581     }
32582     arg2 = ptr;
32583   }
32584   {
32585     try {
32586       {
32587         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32588         result = (Xapian::NumberRangeProcessor *)new Xapian::NumberRangeProcessor(arg1,(std::string const &)*arg2);
32589         SWIG_PYTHON_THREAD_END_ALLOW;
32590       }
32591     } catch (...) {
32592       Xapian::SetPythonException();
32593       SWIG_fail;
32594     }
32595   }
32596   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NumberRangeProcessor, SWIG_POINTER_NEW |  0 );
32597   if (SWIG_IsNewObj(res2)) delete arg2;
32598   return resultobj;
32599 fail:
32600   if (SWIG_IsNewObj(res2)) delete arg2;
32601   return NULL;
32602 }
32603 
32604 
_wrap_new_NumberRangeProcessor__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32605 SWIGINTERN PyObject *_wrap_new_NumberRangeProcessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32606   PyObject *resultobj = 0;
32607   Xapian::valueno arg1 ;
32608   unsigned int val1 ;
32609   int ecode1 = 0 ;
32610   Xapian::NumberRangeProcessor *result = 0 ;
32611 
32612   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
32613   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32614   if (!SWIG_IsOK(ecode1)) {
32615     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NumberRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32616   }
32617   arg1 = static_cast< Xapian::valueno >(val1);
32618   {
32619     try {
32620       {
32621         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32622         result = (Xapian::NumberRangeProcessor *)new Xapian::NumberRangeProcessor(arg1);
32623         SWIG_PYTHON_THREAD_END_ALLOW;
32624       }
32625     } catch (...) {
32626       Xapian::SetPythonException();
32627       SWIG_fail;
32628     }
32629   }
32630   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NumberRangeProcessor, SWIG_POINTER_NEW |  0 );
32631   return resultobj;
32632 fail:
32633   return NULL;
32634 }
32635 
32636 
_wrap_new_NumberRangeProcessor(PyObject * self,PyObject * args)32637 SWIGINTERN PyObject *_wrap_new_NumberRangeProcessor(PyObject *self, PyObject *args) {
32638   Py_ssize_t argc;
32639   PyObject *argv[4] = {
32640     0
32641   };
32642 
32643   if (!(argc = SWIG_Python_UnpackTuple(args,"new_NumberRangeProcessor",0,3,argv))) SWIG_fail;
32644   --argc;
32645   if (argc == 1) {
32646     return _wrap_new_NumberRangeProcessor__SWIG_2(self, argc, argv);
32647   }
32648   if (argc == 2) {
32649     return _wrap_new_NumberRangeProcessor__SWIG_1(self, argc, argv);
32650   }
32651   if (argc == 3) {
32652     return _wrap_new_NumberRangeProcessor__SWIG_0(self, argc, argv);
32653   }
32654 
32655 fail:
32656   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_NumberRangeProcessor'.\n"
32657     "  Possible C/C++ prototypes are:\n"
32658     "    Xapian::NumberRangeProcessor::NumberRangeProcessor(Xapian::valueno,std::string const &,unsigned int)\n"
32659     "    Xapian::NumberRangeProcessor::NumberRangeProcessor(Xapian::valueno,std::string const &)\n"
32660     "    Xapian::NumberRangeProcessor::NumberRangeProcessor(Xapian::valueno)\n");
32661   return 0;
32662 }
32663 
32664 
_wrap_delete_NumberRangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32665 SWIGINTERN PyObject *_wrap_delete_NumberRangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32666   PyObject *resultobj = 0;
32667   Xapian::NumberRangeProcessor *arg1 = (Xapian::NumberRangeProcessor *) 0 ;
32668   void *argp1 = 0 ;
32669   int res1 = 0 ;
32670   PyObject *swig_obj[1] ;
32671 
32672   if (!args) SWIG_fail;
32673   swig_obj[0] = args;
32674   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__NumberRangeProcessor, SWIG_POINTER_DISOWN |  0 );
32675   if (!SWIG_IsOK(res1)) {
32676     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NumberRangeProcessor" "', argument " "1"" of type '" "Xapian::NumberRangeProcessor *""'");
32677   }
32678   arg1 = reinterpret_cast< Xapian::NumberRangeProcessor * >(argp1);
32679   {
32680     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32681     delete arg1;
32682     SWIG_PYTHON_THREAD_END_ALLOW;
32683   }
32684   resultobj = SWIG_Py_Void();
32685   return resultobj;
32686 fail:
32687   return NULL;
32688 }
32689 
32690 
NumberRangeProcessor_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32691 SWIGINTERN PyObject *NumberRangeProcessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32692   PyObject *obj;
32693   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
32694   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__NumberRangeProcessor, SWIG_NewClientData(obj));
32695   return SWIG_Py_Void();
32696 }
32697 
NumberRangeProcessor_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32698 SWIGINTERN PyObject *NumberRangeProcessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32699   return SWIG_Python_InitShadowInstance(args);
32700 }
32701 
_wrap_new_ValueRangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32702 SWIGINTERN PyObject *_wrap_new_ValueRangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32703   PyObject *resultobj = 0;
32704   PyObject *arg1 = (PyObject *) 0 ;
32705   PyObject *swig_obj[1] ;
32706   Xapian::ValueRangeProcessor *result = 0 ;
32707 
32708   if (!args) SWIG_fail;
32709   swig_obj[0] = args;
32710   arg1 = swig_obj[0];
32711   {
32712     try {
32713       {
32714         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32715         if ( arg1 != Py_None ) {
32716           /* subclassed */
32717           result = (Xapian::ValueRangeProcessor *)new SwigDirector_ValueRangeProcessor(arg1);
32718         } else {
32719           SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
32720           SWIG_fail;
32721         }
32722 
32723         SWIG_PYTHON_THREAD_END_ALLOW;
32724       }
32725     } catch (...) {
32726       Xapian::SetPythonException();
32727       SWIG_fail;
32728     }
32729   }
32730   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueRangeProcessor, SWIG_POINTER_NEW |  0 );
32731   return resultobj;
32732 fail:
32733   return NULL;
32734 }
32735 
32736 
_wrap_delete_ValueRangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32737 SWIGINTERN PyObject *_wrap_delete_ValueRangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32738   PyObject *resultobj = 0;
32739   Xapian::ValueRangeProcessor *arg1 = (Xapian::ValueRangeProcessor *) 0 ;
32740   void *argp1 = 0 ;
32741   int res1 = 0 ;
32742   PyObject *swig_obj[1] ;
32743 
32744   if (!args) SWIG_fail;
32745   swig_obj[0] = args;
32746   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueRangeProcessor, SWIG_POINTER_DISOWN |  0 );
32747   if (!SWIG_IsOK(res1)) {
32748     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ValueRangeProcessor" "', argument " "1"" of type '" "Xapian::ValueRangeProcessor *""'");
32749   }
32750   arg1 = reinterpret_cast< Xapian::ValueRangeProcessor * >(argp1);
32751   {
32752     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32753     delete arg1;
32754     SWIG_PYTHON_THREAD_END_ALLOW;
32755   }
32756   resultobj = SWIG_Py_Void();
32757   return resultobj;
32758 fail:
32759   return NULL;
32760 }
32761 
32762 
_wrap_ValueRangeProcessor___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32763 SWIGINTERN PyObject *_wrap_ValueRangeProcessor___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32764   PyObject *resultobj = 0;
32765   Xapian::ValueRangeProcessor *arg1 = (Xapian::ValueRangeProcessor *) 0 ;
32766   std::string *arg2 = 0 ;
32767   std::string *arg3 = 0 ;
32768   void *argp1 = 0 ;
32769   int res1 = 0 ;
32770   std::string temp2 ;
32771   std::string temp3 ;
32772   PyObject *swig_obj[3] ;
32773   Swig::Director *director = 0;
32774   bool upcall = false;
32775   Xapian::valueno result;
32776 
32777   if (!SWIG_Python_UnpackTuple(args,"ValueRangeProcessor___call__",3,3,swig_obj)) SWIG_fail;
32778   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueRangeProcessor, 0 |  0 );
32779   if (!SWIG_IsOK(res1)) {
32780     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueRangeProcessor___call__" "', argument " "1"" of type '" "Xapian::ValueRangeProcessor *""'");
32781   }
32782   arg1 = reinterpret_cast< Xapian::ValueRangeProcessor * >(argp1);
32783   {
32784     std::string *ptr = (std::string *)0;
32785     int res = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
32786     if (!SWIG_IsOK(res) || !ptr) {
32787       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ValueRangeProcessor___call__" "', argument " "2"" of type '" "std::string &""'");
32788     }
32789     temp2 = *ptr;
32790     arg2 = &temp2;
32791     if (SWIG_IsNewObj(res)) delete ptr;
32792   }
32793   {
32794     std::string *ptr = (std::string *)0;
32795     int res = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
32796     if (!SWIG_IsOK(res) || !ptr) {
32797       SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ValueRangeProcessor___call__" "', argument " "3"" of type '" "std::string &""'");
32798     }
32799     temp3 = *ptr;
32800     arg3 = &temp3;
32801     if (SWIG_IsNewObj(res)) delete ptr;
32802   }
32803   director = SWIG_DIRECTOR_CAST(arg1);
32804   upcall = (director && (director->swig_get_self()==swig_obj[0]));
32805   try {
32806     {
32807       try {
32808         if (upcall) {
32809           Swig::DirectorPureVirtualException::raise("Xapian::ValueRangeProcessor::operator ()");
32810         } else {
32811           result = (Xapian::valueno)(arg1)->operator ()(*arg2,*arg3);
32812         }
32813       } catch (...) {
32814         Xapian::SetPythonException();
32815         SWIG_fail;
32816       }
32817     }
32818   } catch (Swig::DirectorException&) {
32819     SWIG_fail;
32820   }
32821   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
32822   {
32823     PyObject * str;
32824     PyObject * newresult;
32825 
32826     // Put the existing result into the first item of a new 3-tuple.
32827     newresult = PyTuple_New(3);
32828     if (newresult == 0) {
32829       Py_DECREF(resultobj);
32830       resultobj = NULL;
32831       SWIG_fail;
32832     }
32833     PyTuple_SET_ITEM(newresult, 0, resultobj);
32834     resultobj = newresult;
32835 
32836     str = PyBytes_FromStringAndSize(arg2->data(), arg2->size());
32837     if (str == 0) {
32838       Py_DECREF(resultobj);
32839       resultobj = NULL;
32840       SWIG_fail;
32841     }
32842     PyTuple_SET_ITEM(resultobj, 1, str);
32843 
32844     str = PyBytes_FromStringAndSize(arg3->data(), arg3->size());
32845     if (str == 0) {
32846       Py_DECREF(resultobj);
32847       resultobj = NULL;
32848       SWIG_fail;
32849     }
32850 
32851     PyTuple_SET_ITEM(resultobj, 2, str);
32852   }
32853   return resultobj;
32854 fail:
32855   return NULL;
32856 }
32857 
32858 
_wrap_ValueRangeProcessor_release(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32859 SWIGINTERN PyObject *_wrap_ValueRangeProcessor_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32860   PyObject *resultobj = 0;
32861   Xapian::ValueRangeProcessor *arg1 = (Xapian::ValueRangeProcessor *) 0 ;
32862   void *argp1 = 0 ;
32863   int res1 = 0 ;
32864   PyObject *swig_obj[1] ;
32865   Swig::Director *director = 0;
32866   Xapian::ValueRangeProcessor *result = 0 ;
32867 
32868   if (!args) SWIG_fail;
32869   swig_obj[0] = args;
32870   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueRangeProcessor, 0 |  0 );
32871   if (!SWIG_IsOK(res1)) {
32872     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueRangeProcessor_release" "', argument " "1"" of type '" "Xapian::ValueRangeProcessor const *""'");
32873   }
32874   arg1 = reinterpret_cast< Xapian::ValueRangeProcessor * >(argp1);
32875   {
32876     try {
32877       {
32878         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32879         result = (Xapian::ValueRangeProcessor *)((Xapian::ValueRangeProcessor const *)arg1)->release();
32880         SWIG_PYTHON_THREAD_END_ALLOW;
32881       }
32882     } catch (...) {
32883       Xapian::SetPythonException();
32884       SWIG_fail;
32885     }
32886   }
32887   director = SWIG_DIRECTOR_CAST(result);
32888   if (director) {
32889     resultobj = director->swig_get_self();
32890     Py_INCREF(resultobj);
32891   } else {
32892     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueRangeProcessor, 0 |  0 );
32893   }
32894   return resultobj;
32895 fail:
32896   return NULL;
32897 }
32898 
32899 
_wrap_disown_ValueRangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32900 SWIGINTERN PyObject *_wrap_disown_ValueRangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32901   PyObject *resultobj = 0;
32902   Xapian::ValueRangeProcessor *arg1 = (Xapian::ValueRangeProcessor *) 0 ;
32903   void *argp1 = 0 ;
32904   int res1 = 0 ;
32905   PyObject *swig_obj[1] ;
32906 
32907   if (!args) SWIG_fail;
32908   swig_obj[0] = args;
32909   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueRangeProcessor, 0 |  0 );
32910   if (!SWIG_IsOK(res1)) {
32911     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_ValueRangeProcessor" "', argument " "1"" of type '" "Xapian::ValueRangeProcessor *""'");
32912   }
32913   arg1 = reinterpret_cast< Xapian::ValueRangeProcessor * >(argp1);
32914   {
32915     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32916     {
32917       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
32918       if (director) director->swig_disown();
32919     }
32920 
32921     SWIG_PYTHON_THREAD_END_ALLOW;
32922   }
32923   resultobj = SWIG_Py_Void();
32924   return resultobj;
32925 fail:
32926   return NULL;
32927 }
32928 
32929 
ValueRangeProcessor_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32930 SWIGINTERN PyObject *ValueRangeProcessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32931   PyObject *obj;
32932   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
32933   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ValueRangeProcessor, SWIG_NewClientData(obj));
32934   return SWIG_Py_Void();
32935 }
32936 
ValueRangeProcessor_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)32937 SWIGINTERN PyObject *ValueRangeProcessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32938   return SWIG_Python_InitShadowInstance(args);
32939 }
32940 
_wrap_new_StringValueRangeProcessor__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32941 SWIGINTERN PyObject *_wrap_new_StringValueRangeProcessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32942   PyObject *resultobj = 0;
32943   Xapian::valueno arg1 ;
32944   unsigned int val1 ;
32945   int ecode1 = 0 ;
32946   Xapian::StringValueRangeProcessor *result = 0 ;
32947 
32948   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
32949   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32950   if (!SWIG_IsOK(ecode1)) {
32951     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StringValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32952   }
32953   arg1 = static_cast< Xapian::valueno >(val1);
32954   {
32955     try {
32956       {
32957         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
32958         result = (Xapian::StringValueRangeProcessor *)new Xapian::StringValueRangeProcessor(arg1);
32959         SWIG_PYTHON_THREAD_END_ALLOW;
32960       }
32961     } catch (...) {
32962       Xapian::SetPythonException();
32963       SWIG_fail;
32964     }
32965   }
32966   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__StringValueRangeProcessor, SWIG_POINTER_NEW |  0 );
32967   return resultobj;
32968 fail:
32969   return NULL;
32970 }
32971 
32972 
_wrap_new_StringValueRangeProcessor__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)32973 SWIGINTERN PyObject *_wrap_new_StringValueRangeProcessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32974   PyObject *resultobj = 0;
32975   Xapian::valueno arg1 ;
32976   std::string *arg2 = 0 ;
32977   bool arg3 ;
32978   unsigned int val1 ;
32979   int ecode1 = 0 ;
32980   int res2 = SWIG_OLDOBJ ;
32981   bool val3 ;
32982   int ecode3 = 0 ;
32983   Xapian::StringValueRangeProcessor *result = 0 ;
32984 
32985   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
32986   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
32987   if (!SWIG_IsOK(ecode1)) {
32988     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StringValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
32989   }
32990   arg1 = static_cast< Xapian::valueno >(val1);
32991   {
32992     std::string *ptr = (std::string *)0;
32993     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
32994     if (!SWIG_IsOK(res2)) {
32995       if (res2 == INT_MIN) SWIG_fail;
32996       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_StringValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
32997     }
32998     if (!ptr) {
32999       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StringValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33000     }
33001     arg2 = ptr;
33002   }
33003   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
33004   if (!SWIG_IsOK(ecode3)) {
33005     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_StringValueRangeProcessor" "', argument " "3"" of type '" "bool""'");
33006   }
33007   arg3 = static_cast< bool >(val3);
33008   {
33009     try {
33010       {
33011         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33012         result = (Xapian::StringValueRangeProcessor *)new Xapian::StringValueRangeProcessor(arg1,(std::string const &)*arg2,arg3);
33013         SWIG_PYTHON_THREAD_END_ALLOW;
33014       }
33015     } catch (...) {
33016       Xapian::SetPythonException();
33017       SWIG_fail;
33018     }
33019   }
33020   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__StringValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33021   if (SWIG_IsNewObj(res2)) delete arg2;
33022   return resultobj;
33023 fail:
33024   if (SWIG_IsNewObj(res2)) delete arg2;
33025   return NULL;
33026 }
33027 
33028 
_wrap_new_StringValueRangeProcessor__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33029 SWIGINTERN PyObject *_wrap_new_StringValueRangeProcessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33030   PyObject *resultobj = 0;
33031   Xapian::valueno arg1 ;
33032   std::string *arg2 = 0 ;
33033   unsigned int val1 ;
33034   int ecode1 = 0 ;
33035   int res2 = SWIG_OLDOBJ ;
33036   Xapian::StringValueRangeProcessor *result = 0 ;
33037 
33038   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
33039   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33040   if (!SWIG_IsOK(ecode1)) {
33041     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StringValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33042   }
33043   arg1 = static_cast< Xapian::valueno >(val1);
33044   {
33045     std::string *ptr = (std::string *)0;
33046     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
33047     if (!SWIG_IsOK(res2)) {
33048       if (res2 == INT_MIN) SWIG_fail;
33049       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_StringValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33050     }
33051     if (!ptr) {
33052       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StringValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33053     }
33054     arg2 = ptr;
33055   }
33056   {
33057     try {
33058       {
33059         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33060         result = (Xapian::StringValueRangeProcessor *)new Xapian::StringValueRangeProcessor(arg1,(std::string const &)*arg2);
33061         SWIG_PYTHON_THREAD_END_ALLOW;
33062       }
33063     } catch (...) {
33064       Xapian::SetPythonException();
33065       SWIG_fail;
33066     }
33067   }
33068   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__StringValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33069   if (SWIG_IsNewObj(res2)) delete arg2;
33070   return resultobj;
33071 fail:
33072   if (SWIG_IsNewObj(res2)) delete arg2;
33073   return NULL;
33074 }
33075 
33076 
_wrap_new_StringValueRangeProcessor(PyObject * self,PyObject * args)33077 SWIGINTERN PyObject *_wrap_new_StringValueRangeProcessor(PyObject *self, PyObject *args) {
33078   Py_ssize_t argc;
33079   PyObject *argv[4] = {
33080     0
33081   };
33082 
33083   if (!(argc = SWIG_Python_UnpackTuple(args,"new_StringValueRangeProcessor",0,3,argv))) SWIG_fail;
33084   --argc;
33085   if (argc == 1) {
33086     return _wrap_new_StringValueRangeProcessor__SWIG_0(self, argc, argv);
33087   }
33088   if (argc == 2) {
33089     return _wrap_new_StringValueRangeProcessor__SWIG_2(self, argc, argv);
33090   }
33091   if (argc == 3) {
33092     return _wrap_new_StringValueRangeProcessor__SWIG_1(self, argc, argv);
33093   }
33094 
33095 fail:
33096   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_StringValueRangeProcessor'.\n"
33097     "  Possible C/C++ prototypes are:\n"
33098     "    Xapian::StringValueRangeProcessor::StringValueRangeProcessor(Xapian::valueno)\n"
33099     "    Xapian::StringValueRangeProcessor::StringValueRangeProcessor(Xapian::valueno,std::string const &,bool)\n"
33100     "    Xapian::StringValueRangeProcessor::StringValueRangeProcessor(Xapian::valueno,std::string const &)\n");
33101   return 0;
33102 }
33103 
33104 
_wrap_delete_StringValueRangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33105 SWIGINTERN PyObject *_wrap_delete_StringValueRangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33106   PyObject *resultobj = 0;
33107   Xapian::StringValueRangeProcessor *arg1 = (Xapian::StringValueRangeProcessor *) 0 ;
33108   void *argp1 = 0 ;
33109   int res1 = 0 ;
33110   PyObject *swig_obj[1] ;
33111 
33112   if (!args) SWIG_fail;
33113   swig_obj[0] = args;
33114   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__StringValueRangeProcessor, SWIG_POINTER_DISOWN |  0 );
33115   if (!SWIG_IsOK(res1)) {
33116     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StringValueRangeProcessor" "', argument " "1"" of type '" "Xapian::StringValueRangeProcessor *""'");
33117   }
33118   arg1 = reinterpret_cast< Xapian::StringValueRangeProcessor * >(argp1);
33119   {
33120     try {
33121       {
33122         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33123         delete arg1;
33124         SWIG_PYTHON_THREAD_END_ALLOW;
33125       }
33126     } catch (...) {
33127       Xapian::SetPythonException();
33128       SWIG_fail;
33129     }
33130   }
33131   resultobj = SWIG_Py_Void();
33132   return resultobj;
33133 fail:
33134   return NULL;
33135 }
33136 
33137 
StringValueRangeProcessor_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33138 SWIGINTERN PyObject *StringValueRangeProcessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33139   PyObject *obj;
33140   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
33141   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__StringValueRangeProcessor, SWIG_NewClientData(obj));
33142   return SWIG_Py_Void();
33143 }
33144 
StringValueRangeProcessor_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33145 SWIGINTERN PyObject *StringValueRangeProcessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33146   return SWIG_Python_InitShadowInstance(args);
33147 }
33148 
_wrap_new_DateValueRangeProcessor__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33149 SWIGINTERN PyObject *_wrap_new_DateValueRangeProcessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33150   PyObject *resultobj = 0;
33151   Xapian::valueno arg1 ;
33152   bool arg2 ;
33153   int arg3 ;
33154   unsigned int val1 ;
33155   int ecode1 = 0 ;
33156   bool val2 ;
33157   int ecode2 = 0 ;
33158   int val3 ;
33159   int ecode3 = 0 ;
33160   Xapian::DateValueRangeProcessor *result = 0 ;
33161 
33162   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
33163   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33164   if (!SWIG_IsOK(ecode1)) {
33165     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33166   }
33167   arg1 = static_cast< Xapian::valueno >(val1);
33168   ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
33169   if (!SWIG_IsOK(ecode2)) {
33170     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "bool""'");
33171   }
33172   arg2 = static_cast< bool >(val2);
33173   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
33174   if (!SWIG_IsOK(ecode3)) {
33175     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateValueRangeProcessor" "', argument " "3"" of type '" "int""'");
33176   }
33177   arg3 = static_cast< int >(val3);
33178   {
33179     try {
33180       {
33181         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33182         result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,arg2,arg3);
33183         SWIG_PYTHON_THREAD_END_ALLOW;
33184       }
33185     } catch (...) {
33186       Xapian::SetPythonException();
33187       SWIG_fail;
33188     }
33189   }
33190   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33191   return resultobj;
33192 fail:
33193   return NULL;
33194 }
33195 
33196 
_wrap_new_DateValueRangeProcessor__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33197 SWIGINTERN PyObject *_wrap_new_DateValueRangeProcessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33198   PyObject *resultobj = 0;
33199   Xapian::valueno arg1 ;
33200   bool arg2 ;
33201   unsigned int val1 ;
33202   int ecode1 = 0 ;
33203   bool val2 ;
33204   int ecode2 = 0 ;
33205   Xapian::DateValueRangeProcessor *result = 0 ;
33206 
33207   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
33208   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33209   if (!SWIG_IsOK(ecode1)) {
33210     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33211   }
33212   arg1 = static_cast< Xapian::valueno >(val1);
33213   ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
33214   if (!SWIG_IsOK(ecode2)) {
33215     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "bool""'");
33216   }
33217   arg2 = static_cast< bool >(val2);
33218   {
33219     try {
33220       {
33221         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33222         result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,arg2);
33223         SWIG_PYTHON_THREAD_END_ALLOW;
33224       }
33225     } catch (...) {
33226       Xapian::SetPythonException();
33227       SWIG_fail;
33228     }
33229   }
33230   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33231   return resultobj;
33232 fail:
33233   return NULL;
33234 }
33235 
33236 
_wrap_new_DateValueRangeProcessor__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33237 SWIGINTERN PyObject *_wrap_new_DateValueRangeProcessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33238   PyObject *resultobj = 0;
33239   Xapian::valueno arg1 ;
33240   unsigned int val1 ;
33241   int ecode1 = 0 ;
33242   Xapian::DateValueRangeProcessor *result = 0 ;
33243 
33244   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
33245   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33246   if (!SWIG_IsOK(ecode1)) {
33247     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33248   }
33249   arg1 = static_cast< Xapian::valueno >(val1);
33250   {
33251     try {
33252       {
33253         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33254         result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1);
33255         SWIG_PYTHON_THREAD_END_ALLOW;
33256       }
33257     } catch (...) {
33258       Xapian::SetPythonException();
33259       SWIG_fail;
33260     }
33261   }
33262   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33263   return resultobj;
33264 fail:
33265   return NULL;
33266 }
33267 
33268 
_wrap_new_DateValueRangeProcessor__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33269 SWIGINTERN PyObject *_wrap_new_DateValueRangeProcessor__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33270   PyObject *resultobj = 0;
33271   Xapian::valueno arg1 ;
33272   std::string *arg2 = 0 ;
33273   bool arg3 ;
33274   bool arg4 ;
33275   int arg5 ;
33276   unsigned int val1 ;
33277   int ecode1 = 0 ;
33278   int res2 = SWIG_OLDOBJ ;
33279   bool val3 ;
33280   int ecode3 = 0 ;
33281   bool val4 ;
33282   int ecode4 = 0 ;
33283   int val5 ;
33284   int ecode5 = 0 ;
33285   Xapian::DateValueRangeProcessor *result = 0 ;
33286 
33287   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
33288   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33289   if (!SWIG_IsOK(ecode1)) {
33290     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33291   }
33292   arg1 = static_cast< Xapian::valueno >(val1);
33293   {
33294     std::string *ptr = (std::string *)0;
33295     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
33296     if (!SWIG_IsOK(res2)) {
33297       if (res2 == INT_MIN) SWIG_fail;
33298       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33299     }
33300     if (!ptr) {
33301       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33302     }
33303     arg2 = ptr;
33304   }
33305   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
33306   if (!SWIG_IsOK(ecode3)) {
33307     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateValueRangeProcessor" "', argument " "3"" of type '" "bool""'");
33308   }
33309   arg3 = static_cast< bool >(val3);
33310   ecode4 = SWIG_AsVal_bool(swig_obj[3], &val4);
33311   if (!SWIG_IsOK(ecode4)) {
33312     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DateValueRangeProcessor" "', argument " "4"" of type '" "bool""'");
33313   }
33314   arg4 = static_cast< bool >(val4);
33315   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
33316   if (!SWIG_IsOK(ecode5)) {
33317     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DateValueRangeProcessor" "', argument " "5"" of type '" "int""'");
33318   }
33319   arg5 = static_cast< int >(val5);
33320   {
33321     try {
33322       {
33323         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33324         result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,(std::string const &)*arg2,arg3,arg4,arg5);
33325         SWIG_PYTHON_THREAD_END_ALLOW;
33326       }
33327     } catch (...) {
33328       Xapian::SetPythonException();
33329       SWIG_fail;
33330     }
33331   }
33332   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33333   if (SWIG_IsNewObj(res2)) delete arg2;
33334   return resultobj;
33335 fail:
33336   if (SWIG_IsNewObj(res2)) delete arg2;
33337   return NULL;
33338 }
33339 
33340 
_wrap_new_DateValueRangeProcessor__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33341 SWIGINTERN PyObject *_wrap_new_DateValueRangeProcessor__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33342   PyObject *resultobj = 0;
33343   Xapian::valueno arg1 ;
33344   std::string *arg2 = 0 ;
33345   bool arg3 ;
33346   bool arg4 ;
33347   unsigned int val1 ;
33348   int ecode1 = 0 ;
33349   int res2 = SWIG_OLDOBJ ;
33350   bool val3 ;
33351   int ecode3 = 0 ;
33352   bool val4 ;
33353   int ecode4 = 0 ;
33354   Xapian::DateValueRangeProcessor *result = 0 ;
33355 
33356   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
33357   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33358   if (!SWIG_IsOK(ecode1)) {
33359     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33360   }
33361   arg1 = static_cast< Xapian::valueno >(val1);
33362   {
33363     std::string *ptr = (std::string *)0;
33364     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
33365     if (!SWIG_IsOK(res2)) {
33366       if (res2 == INT_MIN) SWIG_fail;
33367       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33368     }
33369     if (!ptr) {
33370       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33371     }
33372     arg2 = ptr;
33373   }
33374   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
33375   if (!SWIG_IsOK(ecode3)) {
33376     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateValueRangeProcessor" "', argument " "3"" of type '" "bool""'");
33377   }
33378   arg3 = static_cast< bool >(val3);
33379   ecode4 = SWIG_AsVal_bool(swig_obj[3], &val4);
33380   if (!SWIG_IsOK(ecode4)) {
33381     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DateValueRangeProcessor" "', argument " "4"" of type '" "bool""'");
33382   }
33383   arg4 = static_cast< bool >(val4);
33384   {
33385     try {
33386       {
33387         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33388         result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,(std::string const &)*arg2,arg3,arg4);
33389         SWIG_PYTHON_THREAD_END_ALLOW;
33390       }
33391     } catch (...) {
33392       Xapian::SetPythonException();
33393       SWIG_fail;
33394     }
33395   }
33396   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33397   if (SWIG_IsNewObj(res2)) delete arg2;
33398   return resultobj;
33399 fail:
33400   if (SWIG_IsNewObj(res2)) delete arg2;
33401   return NULL;
33402 }
33403 
33404 
_wrap_new_DateValueRangeProcessor__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33405 SWIGINTERN PyObject *_wrap_new_DateValueRangeProcessor__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33406   PyObject *resultobj = 0;
33407   Xapian::valueno arg1 ;
33408   std::string *arg2 = 0 ;
33409   bool arg3 ;
33410   unsigned int val1 ;
33411   int ecode1 = 0 ;
33412   int res2 = SWIG_OLDOBJ ;
33413   bool val3 ;
33414   int ecode3 = 0 ;
33415   Xapian::DateValueRangeProcessor *result = 0 ;
33416 
33417   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
33418   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33419   if (!SWIG_IsOK(ecode1)) {
33420     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33421   }
33422   arg1 = static_cast< Xapian::valueno >(val1);
33423   {
33424     std::string *ptr = (std::string *)0;
33425     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
33426     if (!SWIG_IsOK(res2)) {
33427       if (res2 == INT_MIN) SWIG_fail;
33428       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33429     }
33430     if (!ptr) {
33431       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33432     }
33433     arg2 = ptr;
33434   }
33435   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
33436   if (!SWIG_IsOK(ecode3)) {
33437     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateValueRangeProcessor" "', argument " "3"" of type '" "bool""'");
33438   }
33439   arg3 = static_cast< bool >(val3);
33440   {
33441     try {
33442       {
33443         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33444         result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,(std::string const &)*arg2,arg3);
33445         SWIG_PYTHON_THREAD_END_ALLOW;
33446       }
33447     } catch (...) {
33448       Xapian::SetPythonException();
33449       SWIG_fail;
33450     }
33451   }
33452   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33453   if (SWIG_IsNewObj(res2)) delete arg2;
33454   return resultobj;
33455 fail:
33456   if (SWIG_IsNewObj(res2)) delete arg2;
33457   return NULL;
33458 }
33459 
33460 
_wrap_new_DateValueRangeProcessor__SWIG_6(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33461 SWIGINTERN PyObject *_wrap_new_DateValueRangeProcessor__SWIG_6(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33462   PyObject *resultobj = 0;
33463   Xapian::valueno arg1 ;
33464   std::string *arg2 = 0 ;
33465   unsigned int val1 ;
33466   int ecode1 = 0 ;
33467   int res2 = SWIG_OLDOBJ ;
33468   Xapian::DateValueRangeProcessor *result = 0 ;
33469 
33470   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
33471   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33472   if (!SWIG_IsOK(ecode1)) {
33473     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33474   }
33475   arg1 = static_cast< Xapian::valueno >(val1);
33476   {
33477     std::string *ptr = (std::string *)0;
33478     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
33479     if (!SWIG_IsOK(res2)) {
33480       if (res2 == INT_MIN) SWIG_fail;
33481       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33482     }
33483     if (!ptr) {
33484       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33485     }
33486     arg2 = ptr;
33487   }
33488   {
33489     try {
33490       {
33491         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33492         result = (Xapian::DateValueRangeProcessor *)new Xapian::DateValueRangeProcessor(arg1,(std::string const &)*arg2);
33493         SWIG_PYTHON_THREAD_END_ALLOW;
33494       }
33495     } catch (...) {
33496       Xapian::SetPythonException();
33497       SWIG_fail;
33498     }
33499   }
33500   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DateValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33501   if (SWIG_IsNewObj(res2)) delete arg2;
33502   return resultobj;
33503 fail:
33504   if (SWIG_IsNewObj(res2)) delete arg2;
33505   return NULL;
33506 }
33507 
33508 
_wrap_new_DateValueRangeProcessor(PyObject * self,PyObject * args)33509 SWIGINTERN PyObject *_wrap_new_DateValueRangeProcessor(PyObject *self, PyObject *args) {
33510   Py_ssize_t argc;
33511   PyObject *argv[6] = {
33512     0
33513   };
33514 
33515   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DateValueRangeProcessor",0,5,argv))) SWIG_fail;
33516   --argc;
33517   if (argc == 1) {
33518     return _wrap_new_DateValueRangeProcessor__SWIG_2(self, argc, argv);
33519   }
33520   if (argc == 2) {
33521     int _v = 0;
33522     {
33523       if (PyUnicode_Check(argv[1])) {
33524         _v = 1;
33525       } else if (PyBytes_Check(argv[1])) {
33526         _v = 1;
33527       } else {
33528         int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
33529         _v = SWIG_CheckState(res);
33530       }
33531     }
33532     if (!_v) goto check_2;
33533     return _wrap_new_DateValueRangeProcessor__SWIG_6(self, argc, argv);
33534   }
33535 check_2:
33536 
33537   if (argc == 2) {
33538     return _wrap_new_DateValueRangeProcessor__SWIG_1(self, argc, argv);
33539   }
33540   if (argc == 3) {
33541     int _v = 0;
33542     {
33543       if (PyUnicode_Check(argv[1])) {
33544         _v = 1;
33545       } else if (PyBytes_Check(argv[1])) {
33546         _v = 1;
33547       } else {
33548         int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
33549         _v = SWIG_CheckState(res);
33550       }
33551     }
33552     if (!_v) goto check_4;
33553     {
33554       {
33555         int res = SWIG_AsVal_bool(argv[2], NULL);
33556         _v = SWIG_CheckState(res);
33557       }
33558     }
33559     if (!_v) goto check_4;
33560     return _wrap_new_DateValueRangeProcessor__SWIG_5(self, argc, argv);
33561   }
33562 check_4:
33563 
33564   if (argc == 3) {
33565     return _wrap_new_DateValueRangeProcessor__SWIG_0(self, argc, argv);
33566   }
33567   if (argc == 4) {
33568     return _wrap_new_DateValueRangeProcessor__SWIG_4(self, argc, argv);
33569   }
33570   if (argc == 5) {
33571     return _wrap_new_DateValueRangeProcessor__SWIG_3(self, argc, argv);
33572   }
33573 
33574 fail:
33575   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DateValueRangeProcessor'.\n"
33576     "  Possible C/C++ prototypes are:\n"
33577     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno,bool,int)\n"
33578     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno,bool)\n"
33579     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno)\n"
33580     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno,std::string const &,bool,bool,int)\n"
33581     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno,std::string const &,bool,bool)\n"
33582     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno,std::string const &,bool)\n"
33583     "    Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno,std::string const &)\n");
33584   return 0;
33585 }
33586 
33587 
_wrap_delete_DateValueRangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33588 SWIGINTERN PyObject *_wrap_delete_DateValueRangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33589   PyObject *resultobj = 0;
33590   Xapian::DateValueRangeProcessor *arg1 = (Xapian::DateValueRangeProcessor *) 0 ;
33591   void *argp1 = 0 ;
33592   int res1 = 0 ;
33593   PyObject *swig_obj[1] ;
33594 
33595   if (!args) SWIG_fail;
33596   swig_obj[0] = args;
33597   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DateValueRangeProcessor, SWIG_POINTER_DISOWN |  0 );
33598   if (!SWIG_IsOK(res1)) {
33599     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DateValueRangeProcessor" "', argument " "1"" of type '" "Xapian::DateValueRangeProcessor *""'");
33600   }
33601   arg1 = reinterpret_cast< Xapian::DateValueRangeProcessor * >(argp1);
33602   {
33603     try {
33604       {
33605         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33606         delete arg1;
33607         SWIG_PYTHON_THREAD_END_ALLOW;
33608       }
33609     } catch (...) {
33610       Xapian::SetPythonException();
33611       SWIG_fail;
33612     }
33613   }
33614   resultobj = SWIG_Py_Void();
33615   return resultobj;
33616 fail:
33617   return NULL;
33618 }
33619 
33620 
DateValueRangeProcessor_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33621 SWIGINTERN PyObject *DateValueRangeProcessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33622   PyObject *obj;
33623   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
33624   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DateValueRangeProcessor, SWIG_NewClientData(obj));
33625   return SWIG_Py_Void();
33626 }
33627 
DateValueRangeProcessor_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33628 SWIGINTERN PyObject *DateValueRangeProcessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33629   return SWIG_Python_InitShadowInstance(args);
33630 }
33631 
_wrap_new_NumberValueRangeProcessor__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33632 SWIGINTERN PyObject *_wrap_new_NumberValueRangeProcessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33633   PyObject *resultobj = 0;
33634   Xapian::valueno arg1 ;
33635   unsigned int val1 ;
33636   int ecode1 = 0 ;
33637   Xapian::NumberValueRangeProcessor *result = 0 ;
33638 
33639   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
33640   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33641   if (!SWIG_IsOK(ecode1)) {
33642     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NumberValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33643   }
33644   arg1 = static_cast< Xapian::valueno >(val1);
33645   {
33646     try {
33647       {
33648         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33649         result = (Xapian::NumberValueRangeProcessor *)new Xapian::NumberValueRangeProcessor(arg1);
33650         SWIG_PYTHON_THREAD_END_ALLOW;
33651       }
33652     } catch (...) {
33653       Xapian::SetPythonException();
33654       SWIG_fail;
33655     }
33656   }
33657   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NumberValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33658   return resultobj;
33659 fail:
33660   return NULL;
33661 }
33662 
33663 
_wrap_new_NumberValueRangeProcessor__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33664 SWIGINTERN PyObject *_wrap_new_NumberValueRangeProcessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33665   PyObject *resultobj = 0;
33666   Xapian::valueno arg1 ;
33667   std::string *arg2 = 0 ;
33668   bool arg3 ;
33669   unsigned int val1 ;
33670   int ecode1 = 0 ;
33671   int res2 = SWIG_OLDOBJ ;
33672   bool val3 ;
33673   int ecode3 = 0 ;
33674   Xapian::NumberValueRangeProcessor *result = 0 ;
33675 
33676   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
33677   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33678   if (!SWIG_IsOK(ecode1)) {
33679     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NumberValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33680   }
33681   arg1 = static_cast< Xapian::valueno >(val1);
33682   {
33683     std::string *ptr = (std::string *)0;
33684     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
33685     if (!SWIG_IsOK(res2)) {
33686       if (res2 == INT_MIN) SWIG_fail;
33687       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NumberValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33688     }
33689     if (!ptr) {
33690       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumberValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33691     }
33692     arg2 = ptr;
33693   }
33694   ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
33695   if (!SWIG_IsOK(ecode3)) {
33696     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NumberValueRangeProcessor" "', argument " "3"" of type '" "bool""'");
33697   }
33698   arg3 = static_cast< bool >(val3);
33699   {
33700     try {
33701       {
33702         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33703         result = (Xapian::NumberValueRangeProcessor *)new Xapian::NumberValueRangeProcessor(arg1,(std::string const &)*arg2,arg3);
33704         SWIG_PYTHON_THREAD_END_ALLOW;
33705       }
33706     } catch (...) {
33707       Xapian::SetPythonException();
33708       SWIG_fail;
33709     }
33710   }
33711   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NumberValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33712   if (SWIG_IsNewObj(res2)) delete arg2;
33713   return resultobj;
33714 fail:
33715   if (SWIG_IsNewObj(res2)) delete arg2;
33716   return NULL;
33717 }
33718 
33719 
_wrap_new_NumberValueRangeProcessor__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)33720 SWIGINTERN PyObject *_wrap_new_NumberValueRangeProcessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33721   PyObject *resultobj = 0;
33722   Xapian::valueno arg1 ;
33723   std::string *arg2 = 0 ;
33724   unsigned int val1 ;
33725   int ecode1 = 0 ;
33726   int res2 = SWIG_OLDOBJ ;
33727   Xapian::NumberValueRangeProcessor *result = 0 ;
33728 
33729   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
33730   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
33731   if (!SWIG_IsOK(ecode1)) {
33732     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NumberValueRangeProcessor" "', argument " "1"" of type '" "Xapian::valueno""'");
33733   }
33734   arg1 = static_cast< Xapian::valueno >(val1);
33735   {
33736     std::string *ptr = (std::string *)0;
33737     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
33738     if (!SWIG_IsOK(res2)) {
33739       if (res2 == INT_MIN) SWIG_fail;
33740       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NumberValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33741     }
33742     if (!ptr) {
33743       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumberValueRangeProcessor" "', argument " "2"" of type '" "std::string const &""'");
33744     }
33745     arg2 = ptr;
33746   }
33747   {
33748     try {
33749       {
33750         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33751         result = (Xapian::NumberValueRangeProcessor *)new Xapian::NumberValueRangeProcessor(arg1,(std::string const &)*arg2);
33752         SWIG_PYTHON_THREAD_END_ALLOW;
33753       }
33754     } catch (...) {
33755       Xapian::SetPythonException();
33756       SWIG_fail;
33757     }
33758   }
33759   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__NumberValueRangeProcessor, SWIG_POINTER_NEW |  0 );
33760   if (SWIG_IsNewObj(res2)) delete arg2;
33761   return resultobj;
33762 fail:
33763   if (SWIG_IsNewObj(res2)) delete arg2;
33764   return NULL;
33765 }
33766 
33767 
_wrap_new_NumberValueRangeProcessor(PyObject * self,PyObject * args)33768 SWIGINTERN PyObject *_wrap_new_NumberValueRangeProcessor(PyObject *self, PyObject *args) {
33769   Py_ssize_t argc;
33770   PyObject *argv[4] = {
33771     0
33772   };
33773 
33774   if (!(argc = SWIG_Python_UnpackTuple(args,"new_NumberValueRangeProcessor",0,3,argv))) SWIG_fail;
33775   --argc;
33776   if (argc == 1) {
33777     return _wrap_new_NumberValueRangeProcessor__SWIG_0(self, argc, argv);
33778   }
33779   if (argc == 2) {
33780     return _wrap_new_NumberValueRangeProcessor__SWIG_2(self, argc, argv);
33781   }
33782   if (argc == 3) {
33783     return _wrap_new_NumberValueRangeProcessor__SWIG_1(self, argc, argv);
33784   }
33785 
33786 fail:
33787   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_NumberValueRangeProcessor'.\n"
33788     "  Possible C/C++ prototypes are:\n"
33789     "    Xapian::NumberValueRangeProcessor::NumberValueRangeProcessor(Xapian::valueno)\n"
33790     "    Xapian::NumberValueRangeProcessor::NumberValueRangeProcessor(Xapian::valueno,std::string const &,bool)\n"
33791     "    Xapian::NumberValueRangeProcessor::NumberValueRangeProcessor(Xapian::valueno,std::string const &)\n");
33792   return 0;
33793 }
33794 
33795 
_wrap_delete_NumberValueRangeProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33796 SWIGINTERN PyObject *_wrap_delete_NumberValueRangeProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33797   PyObject *resultobj = 0;
33798   Xapian::NumberValueRangeProcessor *arg1 = (Xapian::NumberValueRangeProcessor *) 0 ;
33799   void *argp1 = 0 ;
33800   int res1 = 0 ;
33801   PyObject *swig_obj[1] ;
33802 
33803   if (!args) SWIG_fail;
33804   swig_obj[0] = args;
33805   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__NumberValueRangeProcessor, SWIG_POINTER_DISOWN |  0 );
33806   if (!SWIG_IsOK(res1)) {
33807     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NumberValueRangeProcessor" "', argument " "1"" of type '" "Xapian::NumberValueRangeProcessor *""'");
33808   }
33809   arg1 = reinterpret_cast< Xapian::NumberValueRangeProcessor * >(argp1);
33810   {
33811     try {
33812       {
33813         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33814         delete arg1;
33815         SWIG_PYTHON_THREAD_END_ALLOW;
33816       }
33817     } catch (...) {
33818       Xapian::SetPythonException();
33819       SWIG_fail;
33820     }
33821   }
33822   resultobj = SWIG_Py_Void();
33823   return resultobj;
33824 fail:
33825   return NULL;
33826 }
33827 
33828 
NumberValueRangeProcessor_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33829 SWIGINTERN PyObject *NumberValueRangeProcessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33830   PyObject *obj;
33831   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
33832   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__NumberValueRangeProcessor, SWIG_NewClientData(obj));
33833   return SWIG_Py_Void();
33834 }
33835 
NumberValueRangeProcessor_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33836 SWIGINTERN PyObject *NumberValueRangeProcessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33837   return SWIG_Python_InitShadowInstance(args);
33838 }
33839 
_wrap_new_FieldProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33840 SWIGINTERN PyObject *_wrap_new_FieldProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33841   PyObject *resultobj = 0;
33842   PyObject *arg1 = (PyObject *) 0 ;
33843   PyObject *swig_obj[1] ;
33844   Xapian::FieldProcessor *result = 0 ;
33845 
33846   if (!args) SWIG_fail;
33847   swig_obj[0] = args;
33848   arg1 = swig_obj[0];
33849   {
33850     try {
33851       {
33852         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33853         if ( arg1 != Py_None ) {
33854           /* subclassed */
33855           result = (Xapian::FieldProcessor *)new SwigDirector_FieldProcessor(arg1);
33856         } else {
33857           SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
33858           SWIG_fail;
33859         }
33860 
33861         SWIG_PYTHON_THREAD_END_ALLOW;
33862       }
33863     } catch (...) {
33864       Xapian::SetPythonException();
33865       SWIG_fail;
33866     }
33867   }
33868   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__FieldProcessor, SWIG_POINTER_NEW |  0 );
33869   return resultobj;
33870 fail:
33871   return NULL;
33872 }
33873 
33874 
_wrap_delete_FieldProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33875 SWIGINTERN PyObject *_wrap_delete_FieldProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33876   PyObject *resultobj = 0;
33877   Xapian::FieldProcessor *arg1 = (Xapian::FieldProcessor *) 0 ;
33878   void *argp1 = 0 ;
33879   int res1 = 0 ;
33880   PyObject *swig_obj[1] ;
33881 
33882   if (!args) SWIG_fail;
33883   swig_obj[0] = args;
33884   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__FieldProcessor, SWIG_POINTER_DISOWN |  0 );
33885   if (!SWIG_IsOK(res1)) {
33886     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FieldProcessor" "', argument " "1"" of type '" "Xapian::FieldProcessor *""'");
33887   }
33888   arg1 = reinterpret_cast< Xapian::FieldProcessor * >(argp1);
33889   {
33890     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33891     delete arg1;
33892     SWIG_PYTHON_THREAD_END_ALLOW;
33893   }
33894   resultobj = SWIG_Py_Void();
33895   return resultobj;
33896 fail:
33897   return NULL;
33898 }
33899 
33900 
_wrap_FieldProcessor___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33901 SWIGINTERN PyObject *_wrap_FieldProcessor___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33902   PyObject *resultobj = 0;
33903   Xapian::FieldProcessor *arg1 = (Xapian::FieldProcessor *) 0 ;
33904   std::string *arg2 = 0 ;
33905   void *argp1 = 0 ;
33906   int res1 = 0 ;
33907   int res2 = SWIG_OLDOBJ ;
33908   PyObject *swig_obj[2] ;
33909   Swig::Director *director = 0;
33910   bool upcall = false;
33911   Xapian::Query result;
33912 
33913   if (!SWIG_Python_UnpackTuple(args,"FieldProcessor___call__",2,2,swig_obj)) SWIG_fail;
33914   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
33915   if (!SWIG_IsOK(res1)) {
33916     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FieldProcessor___call__" "', argument " "1"" of type '" "Xapian::FieldProcessor *""'");
33917   }
33918   arg1 = reinterpret_cast< Xapian::FieldProcessor * >(argp1);
33919   {
33920     std::string *ptr = (std::string *)0;
33921     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
33922     if (!SWIG_IsOK(res2)) {
33923       if (res2 == INT_MIN) SWIG_fail;
33924       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FieldProcessor___call__" "', argument " "2"" of type '" "std::string const &""'");
33925     }
33926     if (!ptr) {
33927       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FieldProcessor___call__" "', argument " "2"" of type '" "std::string const &""'");
33928     }
33929     arg2 = ptr;
33930   }
33931   director = SWIG_DIRECTOR_CAST(arg1);
33932   upcall = (director && (director->swig_get_self()==swig_obj[0]));
33933   try {
33934     {
33935       try {
33936         if (upcall) {
33937           Swig::DirectorPureVirtualException::raise("Xapian::FieldProcessor::operator ()");
33938         } else {
33939           result = (arg1)->operator ()((std::string const &)*arg2);
33940         }
33941       } catch (...) {
33942         Xapian::SetPythonException();
33943         SWIG_fail;
33944       }
33945     }
33946   } catch (Swig::DirectorException&) {
33947     SWIG_fail;
33948   }
33949   resultobj = SWIG_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN |  0 );
33950   if (SWIG_IsNewObj(res2)) delete arg2;
33951   return resultobj;
33952 fail:
33953   if (SWIG_IsNewObj(res2)) delete arg2;
33954   return NULL;
33955 }
33956 
33957 
_wrap_FieldProcessor_release(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33958 SWIGINTERN PyObject *_wrap_FieldProcessor_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33959   PyObject *resultobj = 0;
33960   Xapian::FieldProcessor *arg1 = (Xapian::FieldProcessor *) 0 ;
33961   void *argp1 = 0 ;
33962   int res1 = 0 ;
33963   PyObject *swig_obj[1] ;
33964   Swig::Director *director = 0;
33965   Xapian::FieldProcessor *result = 0 ;
33966 
33967   if (!args) SWIG_fail;
33968   swig_obj[0] = args;
33969   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
33970   if (!SWIG_IsOK(res1)) {
33971     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FieldProcessor_release" "', argument " "1"" of type '" "Xapian::FieldProcessor const *""'");
33972   }
33973   arg1 = reinterpret_cast< Xapian::FieldProcessor * >(argp1);
33974   {
33975     try {
33976       {
33977         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
33978         result = (Xapian::FieldProcessor *)((Xapian::FieldProcessor const *)arg1)->release();
33979         SWIG_PYTHON_THREAD_END_ALLOW;
33980       }
33981     } catch (...) {
33982       Xapian::SetPythonException();
33983       SWIG_fail;
33984     }
33985   }
33986   director = SWIG_DIRECTOR_CAST(result);
33987   if (director) {
33988     resultobj = director->swig_get_self();
33989     Py_INCREF(resultobj);
33990   } else {
33991     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
33992   }
33993   return resultobj;
33994 fail:
33995   return NULL;
33996 }
33997 
33998 
_wrap_disown_FieldProcessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)33999 SWIGINTERN PyObject *_wrap_disown_FieldProcessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34000   PyObject *resultobj = 0;
34001   Xapian::FieldProcessor *arg1 = (Xapian::FieldProcessor *) 0 ;
34002   void *argp1 = 0 ;
34003   int res1 = 0 ;
34004   PyObject *swig_obj[1] ;
34005 
34006   if (!args) SWIG_fail;
34007   swig_obj[0] = args;
34008   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
34009   if (!SWIG_IsOK(res1)) {
34010     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_FieldProcessor" "', argument " "1"" of type '" "Xapian::FieldProcessor *""'");
34011   }
34012   arg1 = reinterpret_cast< Xapian::FieldProcessor * >(argp1);
34013   {
34014     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34015     {
34016       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
34017       if (director) director->swig_disown();
34018     }
34019 
34020     SWIG_PYTHON_THREAD_END_ALLOW;
34021   }
34022   resultobj = SWIG_Py_Void();
34023   return resultobj;
34024 fail:
34025   return NULL;
34026 }
34027 
34028 
FieldProcessor_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34029 SWIGINTERN PyObject *FieldProcessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34030   PyObject *obj;
34031   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
34032   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__FieldProcessor, SWIG_NewClientData(obj));
34033   return SWIG_Py_Void();
34034 }
34035 
FieldProcessor_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34036 SWIGINTERN PyObject *FieldProcessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34037   return SWIG_Python_InitShadowInstance(args);
34038 }
34039 
_wrap_new_QueryParser(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34040 SWIGINTERN PyObject *_wrap_new_QueryParser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34041   PyObject *resultobj = 0;
34042   Xapian::QueryParser *result = 0 ;
34043 
34044   if (!SWIG_Python_UnpackTuple(args,"new_QueryParser",0,0,0)) SWIG_fail;
34045   {
34046     try {
34047       {
34048         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34049         result = (Xapian::QueryParser *)new Xapian::QueryParser();
34050         SWIG_PYTHON_THREAD_END_ALLOW;
34051       }
34052     } catch (...) {
34053       Xapian::SetPythonException();
34054       SWIG_fail;
34055     }
34056   }
34057   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__QueryParser, SWIG_POINTER_NEW |  0 );
34058   return resultobj;
34059 fail:
34060   return NULL;
34061 }
34062 
34063 
_wrap_delete_QueryParser(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34064 SWIGINTERN PyObject *_wrap_delete_QueryParser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34065   PyObject *resultobj = 0;
34066   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34067   void *argp1 = 0 ;
34068   int res1 = 0 ;
34069   PyObject *swig_obj[1] ;
34070 
34071   if (!args) SWIG_fail;
34072   swig_obj[0] = args;
34073   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, SWIG_POINTER_DISOWN |  0 );
34074   if (!SWIG_IsOK(res1)) {
34075     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_QueryParser" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34076   }
34077   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34078   {
34079     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34080     delete arg1;
34081     SWIG_PYTHON_THREAD_END_ALLOW;
34082   }
34083   resultobj = SWIG_Py_Void();
34084   return resultobj;
34085 fail:
34086   return NULL;
34087 }
34088 
34089 
_wrap_QueryParser_set_stemmer(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34090 SWIGINTERN PyObject *_wrap_QueryParser_set_stemmer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34091   PyObject *resultobj = 0;
34092   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34093   Xapian::Stem *arg2 = 0 ;
34094   void *argp1 = 0 ;
34095   int res1 = 0 ;
34096   void *argp2 = 0 ;
34097   int res2 = 0 ;
34098   PyObject *swig_obj[2] ;
34099 
34100   if (!SWIG_Python_UnpackTuple(args,"QueryParser_set_stemmer",2,2,swig_obj)) SWIG_fail;
34101   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34102   if (!SWIG_IsOK(res1)) {
34103     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_stemmer" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34104   }
34105   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34106   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Stem,  0  | 0);
34107   if (!SWIG_IsOK(res2)) {
34108     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_set_stemmer" "', argument " "2"" of type '" "Xapian::Stem const &""'");
34109   }
34110   if (!argp2) {
34111     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_set_stemmer" "', argument " "2"" of type '" "Xapian::Stem const &""'");
34112   }
34113   arg2 = reinterpret_cast< Xapian::Stem * >(argp2);
34114   {
34115     try {
34116       {
34117         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34118         (arg1)->set_stemmer((Xapian::Stem const &)*arg2);
34119         SWIG_PYTHON_THREAD_END_ALLOW;
34120       }
34121     } catch (...) {
34122       Xapian::SetPythonException();
34123       SWIG_fail;
34124     }
34125   }
34126   resultobj = SWIG_Py_Void();
34127   return resultobj;
34128 fail:
34129   return NULL;
34130 }
34131 
34132 
_wrap_QueryParser_set_stemming_strategy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34133 SWIGINTERN PyObject *_wrap_QueryParser_set_stemming_strategy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34134   PyObject *resultobj = 0;
34135   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34136   Xapian::QueryParser::stem_strategy arg2 ;
34137   void *argp1 = 0 ;
34138   int res1 = 0 ;
34139   int val2 ;
34140   int ecode2 = 0 ;
34141   PyObject *swig_obj[2] ;
34142 
34143   if (!SWIG_Python_UnpackTuple(args,"QueryParser_set_stemming_strategy",2,2,swig_obj)) SWIG_fail;
34144   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34145   if (!SWIG_IsOK(res1)) {
34146     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_stemming_strategy" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34147   }
34148   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34149   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34150   if (!SWIG_IsOK(ecode2)) {
34151     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryParser_set_stemming_strategy" "', argument " "2"" of type '" "Xapian::QueryParser::stem_strategy""'");
34152   }
34153   arg2 = static_cast< Xapian::QueryParser::stem_strategy >(val2);
34154   {
34155     try {
34156       {
34157         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34158         (arg1)->set_stemming_strategy(arg2);
34159         SWIG_PYTHON_THREAD_END_ALLOW;
34160       }
34161     } catch (...) {
34162       Xapian::SetPythonException();
34163       SWIG_fail;
34164     }
34165   }
34166   resultobj = SWIG_Py_Void();
34167   return resultobj;
34168 fail:
34169   return NULL;
34170 }
34171 
34172 
_wrap_QueryParser_set_stopper__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34173 SWIGINTERN PyObject *_wrap_QueryParser_set_stopper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34174   PyObject *resultobj = 0;
34175   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34176   Xapian::Stopper *arg2 = (Xapian::Stopper *) 0 ;
34177   void *argp1 = 0 ;
34178   int res1 = 0 ;
34179   void *argp2 = 0 ;
34180   int res2 = 0 ;
34181 
34182   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
34183   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34184   if (!SWIG_IsOK(res1)) {
34185     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_stopper" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34186   }
34187   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34188   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__Stopper, 0 |  0 );
34189   if (!SWIG_IsOK(res2)) {
34190     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_set_stopper" "', argument " "2"" of type '" "Xapian::Stopper const *""'");
34191   }
34192   arg2 = reinterpret_cast< Xapian::Stopper * >(argp2);
34193   {
34194     try {
34195       {
34196         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34197         (arg1)->set_stopper((Xapian::Stopper const *)arg2);
34198         SWIG_PYTHON_THREAD_END_ALLOW;
34199       }
34200     } catch (...) {
34201       Xapian::SetPythonException();
34202       SWIG_fail;
34203     }
34204   }
34205   resultobj = SWIG_Py_Void();
34206   return resultobj;
34207 fail:
34208   return NULL;
34209 }
34210 
34211 
_wrap_QueryParser_set_stopper__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34212 SWIGINTERN PyObject *_wrap_QueryParser_set_stopper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34213   PyObject *resultobj = 0;
34214   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34215   void *argp1 = 0 ;
34216   int res1 = 0 ;
34217 
34218   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
34219   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34220   if (!SWIG_IsOK(res1)) {
34221     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_stopper" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34222   }
34223   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34224   {
34225     try {
34226       {
34227         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34228         (arg1)->set_stopper();
34229         SWIG_PYTHON_THREAD_END_ALLOW;
34230       }
34231     } catch (...) {
34232       Xapian::SetPythonException();
34233       SWIG_fail;
34234     }
34235   }
34236   resultobj = SWIG_Py_Void();
34237   return resultobj;
34238 fail:
34239   return NULL;
34240 }
34241 
34242 
_wrap_QueryParser_set_stopper(PyObject * self,PyObject * args)34243 SWIGINTERN PyObject *_wrap_QueryParser_set_stopper(PyObject *self, PyObject *args) {
34244   Py_ssize_t argc;
34245   PyObject *argv[3] = {
34246     0
34247   };
34248 
34249   if (!(argc = SWIG_Python_UnpackTuple(args,"QueryParser_set_stopper",0,2,argv))) SWIG_fail;
34250   --argc;
34251   if (argc == 1) {
34252     return _wrap_QueryParser_set_stopper__SWIG_1(self, argc, argv);
34253   }
34254   if (argc == 2) {
34255     return _wrap_QueryParser_set_stopper__SWIG_0(self, argc, argv);
34256   }
34257 
34258 fail:
34259   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QueryParser_set_stopper'.\n"
34260     "  Possible C/C++ prototypes are:\n"
34261     "    Xapian::QueryParser::set_stopper(Xapian::Stopper const *)\n"
34262     "    Xapian::QueryParser::set_stopper()\n");
34263   return 0;
34264 }
34265 
34266 
_wrap_QueryParser_set_default_op(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34267 SWIGINTERN PyObject *_wrap_QueryParser_set_default_op(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34268   PyObject *resultobj = 0;
34269   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34270   Xapian::Query::op arg2 ;
34271   void *argp1 = 0 ;
34272   int res1 = 0 ;
34273   int val2 ;
34274   int ecode2 = 0 ;
34275   PyObject *swig_obj[2] ;
34276 
34277   if (!SWIG_Python_UnpackTuple(args,"QueryParser_set_default_op",2,2,swig_obj)) SWIG_fail;
34278   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34279   if (!SWIG_IsOK(res1)) {
34280     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_default_op" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34281   }
34282   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34283   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34284   if (!SWIG_IsOK(ecode2)) {
34285     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryParser_set_default_op" "', argument " "2"" of type '" "Xapian::Query::op""'");
34286   }
34287   arg2 = static_cast< Xapian::Query::op >(val2);
34288   {
34289     try {
34290       {
34291         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34292         (arg1)->set_default_op(arg2);
34293         SWIG_PYTHON_THREAD_END_ALLOW;
34294       }
34295     } catch (...) {
34296       Xapian::SetPythonException();
34297       SWIG_fail;
34298     }
34299   }
34300   resultobj = SWIG_Py_Void();
34301   return resultobj;
34302 fail:
34303   return NULL;
34304 }
34305 
34306 
_wrap_QueryParser_get_default_op(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34307 SWIGINTERN PyObject *_wrap_QueryParser_get_default_op(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34308   PyObject *resultobj = 0;
34309   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34310   void *argp1 = 0 ;
34311   int res1 = 0 ;
34312   PyObject *swig_obj[1] ;
34313   Xapian::Query::op result;
34314 
34315   if (!args) SWIG_fail;
34316   swig_obj[0] = args;
34317   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34318   if (!SWIG_IsOK(res1)) {
34319     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_get_default_op" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
34320   }
34321   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34322   {
34323     try {
34324       {
34325         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34326         result = (Xapian::Query::op)((Xapian::QueryParser const *)arg1)->get_default_op();
34327         SWIG_PYTHON_THREAD_END_ALLOW;
34328       }
34329     } catch (...) {
34330       Xapian::SetPythonException();
34331       SWIG_fail;
34332     }
34333   }
34334   resultobj = SWIG_From_int(static_cast< int >(result));
34335   return resultobj;
34336 fail:
34337   return NULL;
34338 }
34339 
34340 
_wrap_QueryParser_set_database(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34341 SWIGINTERN PyObject *_wrap_QueryParser_set_database(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34342   PyObject *resultobj = 0;
34343   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34344   Xapian::Database *arg2 = 0 ;
34345   void *argp1 = 0 ;
34346   int res1 = 0 ;
34347   void *argp2 = 0 ;
34348   int res2 = 0 ;
34349   PyObject *swig_obj[2] ;
34350 
34351   if (!SWIG_Python_UnpackTuple(args,"QueryParser_set_database",2,2,swig_obj)) SWIG_fail;
34352   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34353   if (!SWIG_IsOK(res1)) {
34354     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_database" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34355   }
34356   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34357   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Database,  0  | 0);
34358   if (!SWIG_IsOK(res2)) {
34359     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_set_database" "', argument " "2"" of type '" "Xapian::Database const &""'");
34360   }
34361   if (!argp2) {
34362     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_set_database" "', argument " "2"" of type '" "Xapian::Database const &""'");
34363   }
34364   arg2 = reinterpret_cast< Xapian::Database * >(argp2);
34365   {
34366     try {
34367       {
34368         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34369         (arg1)->set_database((Xapian::Database const &)*arg2);
34370         SWIG_PYTHON_THREAD_END_ALLOW;
34371       }
34372     } catch (...) {
34373       Xapian::SetPythonException();
34374       SWIG_fail;
34375     }
34376   }
34377   resultobj = SWIG_Py_Void();
34378   return resultobj;
34379 fail:
34380   return NULL;
34381 }
34382 
34383 
_wrap_QueryParser_set_max_expansion__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34384 SWIGINTERN PyObject *_wrap_QueryParser_set_max_expansion__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34385   PyObject *resultobj = 0;
34386   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34387   Xapian::termcount arg2 ;
34388   int arg3 ;
34389   unsigned int arg4 ;
34390   void *argp1 = 0 ;
34391   int res1 = 0 ;
34392   unsigned int val2 ;
34393   int ecode2 = 0 ;
34394   int val3 ;
34395   int ecode3 = 0 ;
34396   unsigned int val4 ;
34397   int ecode4 = 0 ;
34398 
34399   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
34400   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34401   if (!SWIG_IsOK(res1)) {
34402     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_max_expansion" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34403   }
34404   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34405   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
34406   if (!SWIG_IsOK(ecode2)) {
34407     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryParser_set_max_expansion" "', argument " "2"" of type '" "Xapian::termcount""'");
34408   }
34409   arg2 = static_cast< Xapian::termcount >(val2);
34410   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
34411   if (!SWIG_IsOK(ecode3)) {
34412     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QueryParser_set_max_expansion" "', argument " "3"" of type '" "int""'");
34413   }
34414   arg3 = static_cast< int >(val3);
34415   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
34416   if (!SWIG_IsOK(ecode4)) {
34417     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "QueryParser_set_max_expansion" "', argument " "4"" of type '" "unsigned int""'");
34418   }
34419   arg4 = static_cast< unsigned int >(val4);
34420   {
34421     try {
34422       {
34423         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34424         (arg1)->set_max_expansion(arg2,arg3,arg4);
34425         SWIG_PYTHON_THREAD_END_ALLOW;
34426       }
34427     } catch (...) {
34428       Xapian::SetPythonException();
34429       SWIG_fail;
34430     }
34431   }
34432   resultobj = SWIG_Py_Void();
34433   return resultobj;
34434 fail:
34435   return NULL;
34436 }
34437 
34438 
_wrap_QueryParser_set_max_expansion__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34439 SWIGINTERN PyObject *_wrap_QueryParser_set_max_expansion__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34440   PyObject *resultobj = 0;
34441   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34442   Xapian::termcount arg2 ;
34443   int arg3 ;
34444   void *argp1 = 0 ;
34445   int res1 = 0 ;
34446   unsigned int val2 ;
34447   int ecode2 = 0 ;
34448   int val3 ;
34449   int ecode3 = 0 ;
34450 
34451   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
34452   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34453   if (!SWIG_IsOK(res1)) {
34454     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_max_expansion" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34455   }
34456   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34457   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
34458   if (!SWIG_IsOK(ecode2)) {
34459     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryParser_set_max_expansion" "', argument " "2"" of type '" "Xapian::termcount""'");
34460   }
34461   arg2 = static_cast< Xapian::termcount >(val2);
34462   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
34463   if (!SWIG_IsOK(ecode3)) {
34464     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QueryParser_set_max_expansion" "', argument " "3"" of type '" "int""'");
34465   }
34466   arg3 = static_cast< int >(val3);
34467   {
34468     try {
34469       {
34470         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34471         (arg1)->set_max_expansion(arg2,arg3);
34472         SWIG_PYTHON_THREAD_END_ALLOW;
34473       }
34474     } catch (...) {
34475       Xapian::SetPythonException();
34476       SWIG_fail;
34477     }
34478   }
34479   resultobj = SWIG_Py_Void();
34480   return resultobj;
34481 fail:
34482   return NULL;
34483 }
34484 
34485 
_wrap_QueryParser_set_max_expansion__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34486 SWIGINTERN PyObject *_wrap_QueryParser_set_max_expansion__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34487   PyObject *resultobj = 0;
34488   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34489   Xapian::termcount arg2 ;
34490   void *argp1 = 0 ;
34491   int res1 = 0 ;
34492   unsigned int val2 ;
34493   int ecode2 = 0 ;
34494 
34495   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
34496   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34497   if (!SWIG_IsOK(res1)) {
34498     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_max_expansion" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34499   }
34500   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34501   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
34502   if (!SWIG_IsOK(ecode2)) {
34503     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryParser_set_max_expansion" "', argument " "2"" of type '" "Xapian::termcount""'");
34504   }
34505   arg2 = static_cast< Xapian::termcount >(val2);
34506   {
34507     try {
34508       {
34509         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34510         (arg1)->set_max_expansion(arg2);
34511         SWIG_PYTHON_THREAD_END_ALLOW;
34512       }
34513     } catch (...) {
34514       Xapian::SetPythonException();
34515       SWIG_fail;
34516     }
34517   }
34518   resultobj = SWIG_Py_Void();
34519   return resultobj;
34520 fail:
34521   return NULL;
34522 }
34523 
34524 
_wrap_QueryParser_set_max_expansion(PyObject * self,PyObject * args)34525 SWIGINTERN PyObject *_wrap_QueryParser_set_max_expansion(PyObject *self, PyObject *args) {
34526   Py_ssize_t argc;
34527   PyObject *argv[5] = {
34528     0
34529   };
34530 
34531   if (!(argc = SWIG_Python_UnpackTuple(args,"QueryParser_set_max_expansion",0,4,argv))) SWIG_fail;
34532   --argc;
34533   if (argc == 2) {
34534     return _wrap_QueryParser_set_max_expansion__SWIG_2(self, argc, argv);
34535   }
34536   if (argc == 3) {
34537     return _wrap_QueryParser_set_max_expansion__SWIG_1(self, argc, argv);
34538   }
34539   if (argc == 4) {
34540     return _wrap_QueryParser_set_max_expansion__SWIG_0(self, argc, argv);
34541   }
34542 
34543 fail:
34544   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QueryParser_set_max_expansion'.\n"
34545     "  Possible C/C++ prototypes are:\n"
34546     "    Xapian::QueryParser::set_max_expansion(Xapian::termcount,int,unsigned int)\n"
34547     "    Xapian::QueryParser::set_max_expansion(Xapian::termcount,int)\n"
34548     "    Xapian::QueryParser::set_max_expansion(Xapian::termcount)\n");
34549   return 0;
34550 }
34551 
34552 
_wrap_QueryParser_set_max_wildcard_expansion(PyObject * SWIGUNUSEDPARM (self),PyObject * args)34553 SWIGINTERN PyObject *_wrap_QueryParser_set_max_wildcard_expansion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34554   PyObject *resultobj = 0;
34555   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34556   Xapian::termcount arg2 ;
34557   void *argp1 = 0 ;
34558   int res1 = 0 ;
34559   unsigned int val2 ;
34560   int ecode2 = 0 ;
34561   PyObject *swig_obj[2] ;
34562 
34563   if (!SWIG_Python_UnpackTuple(args,"QueryParser_set_max_wildcard_expansion",2,2,swig_obj)) SWIG_fail;
34564   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34565   if (!SWIG_IsOK(res1)) {
34566     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_set_max_wildcard_expansion" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34567   }
34568   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34569   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
34570   if (!SWIG_IsOK(ecode2)) {
34571     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryParser_set_max_wildcard_expansion" "', argument " "2"" of type '" "Xapian::termcount""'");
34572   }
34573   arg2 = static_cast< Xapian::termcount >(val2);
34574   {
34575     try {
34576       {
34577         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34578         (arg1)->set_max_wildcard_expansion(arg2);
34579         SWIG_PYTHON_THREAD_END_ALLOW;
34580       }
34581     } catch (...) {
34582       Xapian::SetPythonException();
34583       SWIG_fail;
34584     }
34585   }
34586   resultobj = SWIG_Py_Void();
34587   return resultobj;
34588 fail:
34589   return NULL;
34590 }
34591 
34592 
_wrap_QueryParser_parse_query__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34593 SWIGINTERN PyObject *_wrap_QueryParser_parse_query__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34594   PyObject *resultobj = 0;
34595   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34596   std::string *arg2 = 0 ;
34597   unsigned int arg3 ;
34598   std::string *arg4 = 0 ;
34599   void *argp1 = 0 ;
34600   int res1 = 0 ;
34601   int res2 = SWIG_OLDOBJ ;
34602   unsigned int val3 ;
34603   int ecode3 = 0 ;
34604   int res4 = SWIG_OLDOBJ ;
34605   Xapian::Query result;
34606 
34607   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
34608   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34609   if (!SWIG_IsOK(res1)) {
34610     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_parse_query" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34611   }
34612   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34613   {
34614     std::string *ptr = (std::string *)0;
34615     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
34616     if (!SWIG_IsOK(res2)) {
34617       if (res2 == INT_MIN) SWIG_fail;
34618       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'");
34619     }
34620     if (!ptr) {
34621       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'");
34622     }
34623     arg2 = ptr;
34624   }
34625   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
34626   if (!SWIG_IsOK(ecode3)) {
34627     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QueryParser_parse_query" "', argument " "3"" of type '" "unsigned int""'");
34628   }
34629   arg3 = static_cast< unsigned int >(val3);
34630   {
34631     std::string *ptr = (std::string *)0;
34632     res4 = XapianSWIG_anystring_as_ptr(swig_obj[3], &ptr);
34633     if (!SWIG_IsOK(res4)) {
34634       if (res4 == INT_MIN) SWIG_fail;
34635       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "QueryParser_parse_query" "', argument " "4"" of type '" "std::string const &""'");
34636     }
34637     if (!ptr) {
34638       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_parse_query" "', argument " "4"" of type '" "std::string const &""'");
34639     }
34640     arg4 = ptr;
34641   }
34642   {
34643     try {
34644       {
34645         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34646         result = (arg1)->parse_query((std::string const &)*arg2,arg3,(std::string const &)*arg4);
34647         SWIG_PYTHON_THREAD_END_ALLOW;
34648       }
34649     } catch (...) {
34650       Xapian::SetPythonException();
34651       SWIG_fail;
34652     }
34653   }
34654   resultobj = SWIG_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN |  0 );
34655   if (SWIG_IsNewObj(res2)) delete arg2;
34656   if (SWIG_IsNewObj(res4)) delete arg4;
34657   return resultobj;
34658 fail:
34659   if (SWIG_IsNewObj(res2)) delete arg2;
34660   if (SWIG_IsNewObj(res4)) delete arg4;
34661   return NULL;
34662 }
34663 
34664 
_wrap_QueryParser_parse_query__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34665 SWIGINTERN PyObject *_wrap_QueryParser_parse_query__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34666   PyObject *resultobj = 0;
34667   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34668   std::string *arg2 = 0 ;
34669   unsigned int arg3 ;
34670   void *argp1 = 0 ;
34671   int res1 = 0 ;
34672   int res2 = SWIG_OLDOBJ ;
34673   unsigned int val3 ;
34674   int ecode3 = 0 ;
34675   Xapian::Query result;
34676 
34677   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
34678   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34679   if (!SWIG_IsOK(res1)) {
34680     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_parse_query" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34681   }
34682   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34683   {
34684     std::string *ptr = (std::string *)0;
34685     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
34686     if (!SWIG_IsOK(res2)) {
34687       if (res2 == INT_MIN) SWIG_fail;
34688       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'");
34689     }
34690     if (!ptr) {
34691       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'");
34692     }
34693     arg2 = ptr;
34694   }
34695   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
34696   if (!SWIG_IsOK(ecode3)) {
34697     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QueryParser_parse_query" "', argument " "3"" of type '" "unsigned int""'");
34698   }
34699   arg3 = static_cast< unsigned int >(val3);
34700   {
34701     try {
34702       {
34703         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34704         result = (arg1)->parse_query((std::string const &)*arg2,arg3);
34705         SWIG_PYTHON_THREAD_END_ALLOW;
34706       }
34707     } catch (...) {
34708       Xapian::SetPythonException();
34709       SWIG_fail;
34710     }
34711   }
34712   resultobj = SWIG_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN |  0 );
34713   if (SWIG_IsNewObj(res2)) delete arg2;
34714   return resultobj;
34715 fail:
34716   if (SWIG_IsNewObj(res2)) delete arg2;
34717   return NULL;
34718 }
34719 
34720 
_wrap_QueryParser_parse_query__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34721 SWIGINTERN PyObject *_wrap_QueryParser_parse_query__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34722   PyObject *resultobj = 0;
34723   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34724   std::string *arg2 = 0 ;
34725   void *argp1 = 0 ;
34726   int res1 = 0 ;
34727   int res2 = SWIG_OLDOBJ ;
34728   Xapian::Query result;
34729 
34730   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
34731   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34732   if (!SWIG_IsOK(res1)) {
34733     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_parse_query" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34734   }
34735   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34736   {
34737     std::string *ptr = (std::string *)0;
34738     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
34739     if (!SWIG_IsOK(res2)) {
34740       if (res2 == INT_MIN) SWIG_fail;
34741       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'");
34742     }
34743     if (!ptr) {
34744       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_parse_query" "', argument " "2"" of type '" "std::string const &""'");
34745     }
34746     arg2 = ptr;
34747   }
34748   {
34749     try {
34750       {
34751         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34752         result = (arg1)->parse_query((std::string const &)*arg2);
34753         SWIG_PYTHON_THREAD_END_ALLOW;
34754       }
34755     } catch (...) {
34756       Xapian::SetPythonException();
34757       SWIG_fail;
34758     }
34759   }
34760   resultobj = SWIG_NewPointerObj((new Xapian::Query(static_cast< const Xapian::Query& >(result))), SWIGTYPE_p_Xapian__Query, SWIG_POINTER_OWN |  0 );
34761   if (SWIG_IsNewObj(res2)) delete arg2;
34762   return resultobj;
34763 fail:
34764   if (SWIG_IsNewObj(res2)) delete arg2;
34765   return NULL;
34766 }
34767 
34768 
_wrap_QueryParser_parse_query(PyObject * self,PyObject * args)34769 SWIGINTERN PyObject *_wrap_QueryParser_parse_query(PyObject *self, PyObject *args) {
34770   Py_ssize_t argc;
34771   PyObject *argv[5] = {
34772     0
34773   };
34774 
34775   if (!(argc = SWIG_Python_UnpackTuple(args,"QueryParser_parse_query",0,4,argv))) SWIG_fail;
34776   --argc;
34777   if (argc == 2) {
34778     return _wrap_QueryParser_parse_query__SWIG_2(self, argc, argv);
34779   }
34780   if (argc == 3) {
34781     return _wrap_QueryParser_parse_query__SWIG_1(self, argc, argv);
34782   }
34783   if (argc == 4) {
34784     return _wrap_QueryParser_parse_query__SWIG_0(self, argc, argv);
34785   }
34786 
34787 fail:
34788   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QueryParser_parse_query'.\n"
34789     "  Possible C/C++ prototypes are:\n"
34790     "    Xapian::QueryParser::parse_query(std::string const &,unsigned int,std::string const &)\n"
34791     "    Xapian::QueryParser::parse_query(std::string const &,unsigned int)\n"
34792     "    Xapian::QueryParser::parse_query(std::string const &)\n");
34793   return 0;
34794 }
34795 
34796 
_wrap_QueryParser_add_prefix__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34797 SWIGINTERN PyObject *_wrap_QueryParser_add_prefix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34798   PyObject *resultobj = 0;
34799   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34800   std::string *arg2 = 0 ;
34801   std::string *arg3 = 0 ;
34802   void *argp1 = 0 ;
34803   int res1 = 0 ;
34804   int res2 = SWIG_OLDOBJ ;
34805   int res3 = SWIG_OLDOBJ ;
34806 
34807   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
34808   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34809   if (!SWIG_IsOK(res1)) {
34810     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34811   }
34812   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34813   {
34814     std::string *ptr = (std::string *)0;
34815     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
34816     if (!SWIG_IsOK(res2)) {
34817       if (res2 == INT_MIN) SWIG_fail;
34818       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_prefix" "', argument " "2"" of type '" "std::string const &""'");
34819     }
34820     if (!ptr) {
34821       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_prefix" "', argument " "2"" of type '" "std::string const &""'");
34822     }
34823     arg2 = ptr;
34824   }
34825   {
34826     std::string *ptr = (std::string *)0;
34827     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
34828     if (!SWIG_IsOK(res3)) {
34829       if (res3 == INT_MIN) SWIG_fail;
34830       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_prefix" "', argument " "3"" of type '" "std::string const &""'");
34831     }
34832     if (!ptr) {
34833       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_prefix" "', argument " "3"" of type '" "std::string const &""'");
34834     }
34835     arg3 = ptr;
34836   }
34837   {
34838     try {
34839       {
34840         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34841         (arg1)->add_prefix((std::string const &)*arg2,(std::string const &)*arg3);
34842         SWIG_PYTHON_THREAD_END_ALLOW;
34843       }
34844     } catch (...) {
34845       Xapian::SetPythonException();
34846       SWIG_fail;
34847     }
34848   }
34849   resultobj = SWIG_Py_Void();
34850   if (SWIG_IsNewObj(res2)) delete arg2;
34851   if (SWIG_IsNewObj(res3)) delete arg3;
34852   return resultobj;
34853 fail:
34854   if (SWIG_IsNewObj(res2)) delete arg2;
34855   if (SWIG_IsNewObj(res3)) delete arg3;
34856   return NULL;
34857 }
34858 
34859 
_wrap_QueryParser_add_prefix__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34860 SWIGINTERN PyObject *_wrap_QueryParser_add_prefix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34861   PyObject *resultobj = 0;
34862   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34863   std::string *arg2 = 0 ;
34864   Xapian::FieldProcessor *arg3 = (Xapian::FieldProcessor *) 0 ;
34865   void *argp1 = 0 ;
34866   int res1 = 0 ;
34867   int res2 = SWIG_OLDOBJ ;
34868   void *argp3 = 0 ;
34869   int res3 = 0 ;
34870 
34871   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
34872   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34873   if (!SWIG_IsOK(res1)) {
34874     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34875   }
34876   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34877   {
34878     std::string *ptr = (std::string *)0;
34879     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
34880     if (!SWIG_IsOK(res2)) {
34881       if (res2 == INT_MIN) SWIG_fail;
34882       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_prefix" "', argument " "2"" of type '" "std::string const &""'");
34883     }
34884     if (!ptr) {
34885       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_prefix" "', argument " "2"" of type '" "std::string const &""'");
34886     }
34887     arg2 = ptr;
34888   }
34889   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
34890   if (!SWIG_IsOK(res3)) {
34891     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_prefix" "', argument " "3"" of type '" "Xapian::FieldProcessor *""'");
34892   }
34893   arg3 = reinterpret_cast< Xapian::FieldProcessor * >(argp3);
34894   {
34895     try {
34896       {
34897         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
34898         (arg1)->add_prefix((std::string const &)*arg2,arg3);
34899         SWIG_PYTHON_THREAD_END_ALLOW;
34900       }
34901     } catch (...) {
34902       Xapian::SetPythonException();
34903       SWIG_fail;
34904     }
34905   }
34906   resultobj = SWIG_Py_Void();
34907   if (SWIG_IsNewObj(res2)) delete arg2;
34908   return resultobj;
34909 fail:
34910   if (SWIG_IsNewObj(res2)) delete arg2;
34911   return NULL;
34912 }
34913 
34914 
_wrap_QueryParser_add_prefix(PyObject * self,PyObject * args)34915 SWIGINTERN PyObject *_wrap_QueryParser_add_prefix(PyObject *self, PyObject *args) {
34916   Py_ssize_t argc;
34917   PyObject *argv[4] = {
34918     0
34919   };
34920 
34921   if (!(argc = SWIG_Python_UnpackTuple(args,"QueryParser_add_prefix",0,3,argv))) SWIG_fail;
34922   --argc;
34923   if (argc == 3) {
34924     int _v = 0;
34925     {
34926       void *vptr = 0;
34927       int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__FieldProcessor, 0);
34928       _v = SWIG_CheckState(res);
34929     }
34930     if (!_v) goto check_1;
34931     return _wrap_QueryParser_add_prefix__SWIG_1(self, argc, argv);
34932   }
34933 check_1:
34934 
34935   if (argc == 3) {
34936     return _wrap_QueryParser_add_prefix__SWIG_0(self, argc, argv);
34937   }
34938 
34939 fail:
34940   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QueryParser_add_prefix'.\n"
34941     "  Possible C/C++ prototypes are:\n"
34942     "    Xapian::QueryParser::add_prefix(std::string const &,std::string const &)\n"
34943     "    Xapian::QueryParser::add_prefix(std::string const &,Xapian::FieldProcessor *)\n");
34944   return 0;
34945 }
34946 
34947 
_wrap_QueryParser_add_boolean_prefix__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)34948 SWIGINTERN PyObject *_wrap_QueryParser_add_boolean_prefix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
34949   PyObject *resultobj = 0;
34950   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
34951   std::string *arg2 = 0 ;
34952   std::string *arg3 = 0 ;
34953   std::string *arg4 = (std::string *) 0 ;
34954   void *argp1 = 0 ;
34955   int res1 = 0 ;
34956   int res2 = SWIG_OLDOBJ ;
34957   int res3 = SWIG_OLDOBJ ;
34958   int res4 = SWIG_OLDOBJ ;
34959 
34960   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
34961   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
34962   if (!SWIG_IsOK(res1)) {
34963     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
34964   }
34965   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
34966   {
34967     std::string *ptr = (std::string *)0;
34968     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
34969     if (!SWIG_IsOK(res2)) {
34970       if (res2 == INT_MIN) SWIG_fail;
34971       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
34972     }
34973     if (!ptr) {
34974       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
34975     }
34976     arg2 = ptr;
34977   }
34978   {
34979     std::string *ptr = (std::string *)0;
34980     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
34981     if (!SWIG_IsOK(res3)) {
34982       if (res3 == INT_MIN) SWIG_fail;
34983       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'");
34984     }
34985     if (!ptr) {
34986       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'");
34987     }
34988     arg3 = ptr;
34989   }
34990   {
34991     std::string *ptr = (std::string *)0;
34992     if (swig_obj[3] != Py_None) {
34993       res4 = XapianSWIG_anystring_as_ptr(swig_obj[3], &ptr);
34994       if (!SWIG_IsOK(res4)) {
34995         if (res4 == INT_MIN) SWIG_fail;
34996         SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "QueryParser_add_boolean_prefix" "', argument " "4"" of type '" "std::string const *""'");
34997       }
34998     }
34999     arg4 = ptr;
35000   }
35001   {
35002     try {
35003       {
35004         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35005         (arg1)->add_boolean_prefix((std::string const &)*arg2,(std::string const &)*arg3,(std::string const *)arg4);
35006         SWIG_PYTHON_THREAD_END_ALLOW;
35007       }
35008     } catch (...) {
35009       Xapian::SetPythonException();
35010       SWIG_fail;
35011     }
35012   }
35013   resultobj = SWIG_Py_Void();
35014   if (SWIG_IsNewObj(res2)) delete arg2;
35015   if (SWIG_IsNewObj(res3)) delete arg3;
35016   if (SWIG_IsNewObj(res4)) delete arg4;
35017   return resultobj;
35018 fail:
35019   if (SWIG_IsNewObj(res2)) delete arg2;
35020   if (SWIG_IsNewObj(res3)) delete arg3;
35021   if (SWIG_IsNewObj(res4)) delete arg4;
35022   return NULL;
35023 }
35024 
35025 
_wrap_QueryParser_add_boolean_prefix__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)35026 SWIGINTERN PyObject *_wrap_QueryParser_add_boolean_prefix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
35027   PyObject *resultobj = 0;
35028   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35029   std::string *arg2 = 0 ;
35030   std::string *arg3 = 0 ;
35031   void *argp1 = 0 ;
35032   int res1 = 0 ;
35033   int res2 = SWIG_OLDOBJ ;
35034   int res3 = SWIG_OLDOBJ ;
35035 
35036   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
35037   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35038   if (!SWIG_IsOK(res1)) {
35039     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
35040   }
35041   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35042   {
35043     std::string *ptr = (std::string *)0;
35044     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
35045     if (!SWIG_IsOK(res2)) {
35046       if (res2 == INT_MIN) SWIG_fail;
35047       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
35048     }
35049     if (!ptr) {
35050       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
35051     }
35052     arg2 = ptr;
35053   }
35054   {
35055     std::string *ptr = (std::string *)0;
35056     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
35057     if (!SWIG_IsOK(res3)) {
35058       if (res3 == INT_MIN) SWIG_fail;
35059       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'");
35060     }
35061     if (!ptr) {
35062       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'");
35063     }
35064     arg3 = ptr;
35065   }
35066   {
35067     try {
35068       {
35069         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35070         (arg1)->add_boolean_prefix((std::string const &)*arg2,(std::string const &)*arg3);
35071         SWIG_PYTHON_THREAD_END_ALLOW;
35072       }
35073     } catch (...) {
35074       Xapian::SetPythonException();
35075       SWIG_fail;
35076     }
35077   }
35078   resultobj = SWIG_Py_Void();
35079   if (SWIG_IsNewObj(res2)) delete arg2;
35080   if (SWIG_IsNewObj(res3)) delete arg3;
35081   return resultobj;
35082 fail:
35083   if (SWIG_IsNewObj(res2)) delete arg2;
35084   if (SWIG_IsNewObj(res3)) delete arg3;
35085   return NULL;
35086 }
35087 
35088 
_wrap_QueryParser_add_boolean_prefix__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)35089 SWIGINTERN PyObject *_wrap_QueryParser_add_boolean_prefix__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
35090   PyObject *resultobj = 0;
35091   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35092   std::string *arg2 = 0 ;
35093   std::string *arg3 = 0 ;
35094   bool arg4 ;
35095   void *argp1 = 0 ;
35096   int res1 = 0 ;
35097   int res2 = SWIG_OLDOBJ ;
35098   int res3 = SWIG_OLDOBJ ;
35099   bool val4 ;
35100   int ecode4 = 0 ;
35101 
35102   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
35103   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35104   if (!SWIG_IsOK(res1)) {
35105     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
35106   }
35107   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35108   {
35109     std::string *ptr = (std::string *)0;
35110     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
35111     if (!SWIG_IsOK(res2)) {
35112       if (res2 == INT_MIN) SWIG_fail;
35113       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
35114     }
35115     if (!ptr) {
35116       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
35117     }
35118     arg2 = ptr;
35119   }
35120   {
35121     std::string *ptr = (std::string *)0;
35122     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
35123     if (!SWIG_IsOK(res3)) {
35124       if (res3 == INT_MIN) SWIG_fail;
35125       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'");
35126     }
35127     if (!ptr) {
35128       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "std::string const &""'");
35129     }
35130     arg3 = ptr;
35131   }
35132   ecode4 = SWIG_AsVal_bool(swig_obj[3], &val4);
35133   if (!SWIG_IsOK(ecode4)) {
35134     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "QueryParser_add_boolean_prefix" "', argument " "4"" of type '" "bool""'");
35135   }
35136   arg4 = static_cast< bool >(val4);
35137   {
35138     try {
35139       {
35140         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35141         (arg1)->add_boolean_prefix((std::string const &)*arg2,(std::string const &)*arg3,arg4);
35142         SWIG_PYTHON_THREAD_END_ALLOW;
35143       }
35144     } catch (...) {
35145       Xapian::SetPythonException();
35146       SWIG_fail;
35147     }
35148   }
35149   resultobj = SWIG_Py_Void();
35150   if (SWIG_IsNewObj(res2)) delete arg2;
35151   if (SWIG_IsNewObj(res3)) delete arg3;
35152   return resultobj;
35153 fail:
35154   if (SWIG_IsNewObj(res2)) delete arg2;
35155   if (SWIG_IsNewObj(res3)) delete arg3;
35156   return NULL;
35157 }
35158 
35159 
_wrap_QueryParser_add_boolean_prefix__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)35160 SWIGINTERN PyObject *_wrap_QueryParser_add_boolean_prefix__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
35161   PyObject *resultobj = 0;
35162   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35163   std::string *arg2 = 0 ;
35164   Xapian::FieldProcessor *arg3 = (Xapian::FieldProcessor *) 0 ;
35165   std::string *arg4 = (std::string *) 0 ;
35166   void *argp1 = 0 ;
35167   int res1 = 0 ;
35168   int res2 = SWIG_OLDOBJ ;
35169   void *argp3 = 0 ;
35170   int res3 = 0 ;
35171   int res4 = SWIG_OLDOBJ ;
35172 
35173   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
35174   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35175   if (!SWIG_IsOK(res1)) {
35176     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
35177   }
35178   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35179   {
35180     std::string *ptr = (std::string *)0;
35181     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
35182     if (!SWIG_IsOK(res2)) {
35183       if (res2 == INT_MIN) SWIG_fail;
35184       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
35185     }
35186     if (!ptr) {
35187       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
35188     }
35189     arg2 = ptr;
35190   }
35191   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
35192   if (!SWIG_IsOK(res3)) {
35193     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "Xapian::FieldProcessor *""'");
35194   }
35195   arg3 = reinterpret_cast< Xapian::FieldProcessor * >(argp3);
35196   {
35197     std::string *ptr = (std::string *)0;
35198     if (swig_obj[3] != Py_None) {
35199       res4 = XapianSWIG_anystring_as_ptr(swig_obj[3], &ptr);
35200       if (!SWIG_IsOK(res4)) {
35201         if (res4 == INT_MIN) SWIG_fail;
35202         SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "QueryParser_add_boolean_prefix" "', argument " "4"" of type '" "std::string const *""'");
35203       }
35204     }
35205     arg4 = ptr;
35206   }
35207   {
35208     try {
35209       {
35210         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35211         (arg1)->add_boolean_prefix((std::string const &)*arg2,arg3,(std::string const *)arg4);
35212         SWIG_PYTHON_THREAD_END_ALLOW;
35213       }
35214     } catch (...) {
35215       Xapian::SetPythonException();
35216       SWIG_fail;
35217     }
35218   }
35219   resultobj = SWIG_Py_Void();
35220   if (SWIG_IsNewObj(res2)) delete arg2;
35221   if (SWIG_IsNewObj(res4)) delete arg4;
35222   return resultobj;
35223 fail:
35224   if (SWIG_IsNewObj(res2)) delete arg2;
35225   if (SWIG_IsNewObj(res4)) delete arg4;
35226   return NULL;
35227 }
35228 
35229 
_wrap_QueryParser_add_boolean_prefix__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)35230 SWIGINTERN PyObject *_wrap_QueryParser_add_boolean_prefix__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
35231   PyObject *resultobj = 0;
35232   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35233   std::string *arg2 = 0 ;
35234   Xapian::FieldProcessor *arg3 = (Xapian::FieldProcessor *) 0 ;
35235   void *argp1 = 0 ;
35236   int res1 = 0 ;
35237   int res2 = SWIG_OLDOBJ ;
35238   void *argp3 = 0 ;
35239   int res3 = 0 ;
35240 
35241   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
35242   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35243   if (!SWIG_IsOK(res1)) {
35244     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
35245   }
35246   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35247   {
35248     std::string *ptr = (std::string *)0;
35249     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
35250     if (!SWIG_IsOK(res2)) {
35251       if (res2 == INT_MIN) SWIG_fail;
35252       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
35253     }
35254     if (!ptr) {
35255       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
35256     }
35257     arg2 = ptr;
35258   }
35259   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
35260   if (!SWIG_IsOK(res3)) {
35261     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "Xapian::FieldProcessor *""'");
35262   }
35263   arg3 = reinterpret_cast< Xapian::FieldProcessor * >(argp3);
35264   {
35265     try {
35266       {
35267         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35268         (arg1)->add_boolean_prefix((std::string const &)*arg2,arg3);
35269         SWIG_PYTHON_THREAD_END_ALLOW;
35270       }
35271     } catch (...) {
35272       Xapian::SetPythonException();
35273       SWIG_fail;
35274     }
35275   }
35276   resultobj = SWIG_Py_Void();
35277   if (SWIG_IsNewObj(res2)) delete arg2;
35278   return resultobj;
35279 fail:
35280   if (SWIG_IsNewObj(res2)) delete arg2;
35281   return NULL;
35282 }
35283 
35284 
_wrap_QueryParser_add_boolean_prefix__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)35285 SWIGINTERN PyObject *_wrap_QueryParser_add_boolean_prefix__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
35286   PyObject *resultobj = 0;
35287   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35288   std::string *arg2 = 0 ;
35289   Xapian::FieldProcessor *arg3 = (Xapian::FieldProcessor *) 0 ;
35290   bool arg4 ;
35291   void *argp1 = 0 ;
35292   int res1 = 0 ;
35293   int res2 = SWIG_OLDOBJ ;
35294   void *argp3 = 0 ;
35295   int res3 = 0 ;
35296   bool val4 ;
35297   int ecode4 = 0 ;
35298 
35299   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
35300   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35301   if (!SWIG_IsOK(res1)) {
35302     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_boolean_prefix" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
35303   }
35304   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35305   {
35306     std::string *ptr = (std::string *)0;
35307     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
35308     if (!SWIG_IsOK(res2)) {
35309       if (res2 == INT_MIN) SWIG_fail;
35310       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
35311     }
35312     if (!ptr) {
35313       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser_add_boolean_prefix" "', argument " "2"" of type '" "std::string const &""'");
35314     }
35315     arg2 = ptr;
35316   }
35317   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_Xapian__FieldProcessor, 0 |  0 );
35318   if (!SWIG_IsOK(res3)) {
35319     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_boolean_prefix" "', argument " "3"" of type '" "Xapian::FieldProcessor *""'");
35320   }
35321   arg3 = reinterpret_cast< Xapian::FieldProcessor * >(argp3);
35322   ecode4 = SWIG_AsVal_bool(swig_obj[3], &val4);
35323   if (!SWIG_IsOK(ecode4)) {
35324     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "QueryParser_add_boolean_prefix" "', argument " "4"" of type '" "bool""'");
35325   }
35326   arg4 = static_cast< bool >(val4);
35327   {
35328     try {
35329       {
35330         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35331         (arg1)->add_boolean_prefix((std::string const &)*arg2,arg3,arg4);
35332         SWIG_PYTHON_THREAD_END_ALLOW;
35333       }
35334     } catch (...) {
35335       Xapian::SetPythonException();
35336       SWIG_fail;
35337     }
35338   }
35339   resultobj = SWIG_Py_Void();
35340   if (SWIG_IsNewObj(res2)) delete arg2;
35341   return resultobj;
35342 fail:
35343   if (SWIG_IsNewObj(res2)) delete arg2;
35344   return NULL;
35345 }
35346 
35347 
_wrap_QueryParser_add_boolean_prefix(PyObject * self,PyObject * args)35348 SWIGINTERN PyObject *_wrap_QueryParser_add_boolean_prefix(PyObject *self, PyObject *args) {
35349   Py_ssize_t argc;
35350   PyObject *argv[5] = {
35351     0
35352   };
35353 
35354   if (!(argc = SWIG_Python_UnpackTuple(args,"QueryParser_add_boolean_prefix",0,4,argv))) SWIG_fail;
35355   --argc;
35356   if (argc == 3) {
35357     int _v = 0;
35358     {
35359       void *vptr = 0;
35360       int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__FieldProcessor, 0);
35361       _v = SWIG_CheckState(res);
35362     }
35363     if (!_v) goto check_1;
35364     return _wrap_QueryParser_add_boolean_prefix__SWIG_4(self, argc, argv);
35365   }
35366 check_1:
35367 
35368   if (argc == 3) {
35369     return _wrap_QueryParser_add_boolean_prefix__SWIG_1(self, argc, argv);
35370   }
35371   if (argc == 4) {
35372     int _v = 0;
35373     {
35374       void *vptr = 0;
35375       int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__FieldProcessor, 0);
35376       _v = SWIG_CheckState(res);
35377     }
35378     if (!_v) goto check_3;
35379     {
35380       if (argv[3] == Py_None) {
35381         _v = 1;
35382       } else if (PyUnicode_Check(argv[3])) {
35383         _v = 1;
35384       } else if (PyBytes_Check(argv[3])) {
35385         _v = 1;
35386       } else {
35387         int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
35388         _v = SWIG_CheckState(res);
35389       }
35390     }
35391     if (!_v) goto check_3;
35392     return _wrap_QueryParser_add_boolean_prefix__SWIG_3(self, argc, argv);
35393   }
35394 check_3:
35395 
35396   if (argc == 4) {
35397     int _v = 0;
35398     {
35399       void *vptr = 0;
35400       int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Xapian__FieldProcessor, 0);
35401       _v = SWIG_CheckState(res);
35402     }
35403     if (!_v) goto check_4;
35404     {
35405       {
35406         int res = SWIG_AsVal_bool(argv[3], NULL);
35407         _v = SWIG_CheckState(res);
35408       }
35409     }
35410     if (!_v) goto check_4;
35411     return _wrap_QueryParser_add_boolean_prefix__SWIG_5(self, argc, argv);
35412   }
35413 check_4:
35414 
35415   if (argc == 4) {
35416     int _v = 0;
35417     {
35418       if (argv[3] == Py_None) {
35419         _v = 1;
35420       } else if (PyUnicode_Check(argv[3])) {
35421         _v = 1;
35422       } else if (PyBytes_Check(argv[3])) {
35423         _v = 1;
35424       } else {
35425         int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
35426         _v = SWIG_CheckState(res);
35427       }
35428     }
35429     if (!_v) goto check_5;
35430     return _wrap_QueryParser_add_boolean_prefix__SWIG_0(self, argc, argv);
35431   }
35432 check_5:
35433 
35434   if (argc == 4) {
35435     return _wrap_QueryParser_add_boolean_prefix__SWIG_2(self, argc, argv);
35436   }
35437 
35438 fail:
35439   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QueryParser_add_boolean_prefix'.\n"
35440     "  Possible C/C++ prototypes are:\n"
35441     "    Xapian::QueryParser::add_boolean_prefix(std::string const &,std::string const &,std::string const *)\n"
35442     "    Xapian::QueryParser::add_boolean_prefix(std::string const &,std::string const &)\n"
35443     "    Xapian::QueryParser::add_boolean_prefix(std::string const &,std::string const &,bool)\n"
35444     "    Xapian::QueryParser::add_boolean_prefix(std::string const &,Xapian::FieldProcessor *,std::string const *)\n"
35445     "    Xapian::QueryParser::add_boolean_prefix(std::string const &,Xapian::FieldProcessor *)\n"
35446     "    Xapian::QueryParser::add_boolean_prefix(std::string const &,Xapian::FieldProcessor *,bool)\n");
35447   return 0;
35448 }
35449 
35450 
_wrap_QueryParser__stoplist_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35451 SWIGINTERN PyObject *_wrap_QueryParser__stoplist_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35452   PyObject *resultobj = 0;
35453   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35454   void *argp1 = 0 ;
35455   int res1 = 0 ;
35456   PyObject *swig_obj[1] ;
35457   Xapian::TermIterator result;
35458 
35459   if (!args) SWIG_fail;
35460   swig_obj[0] = args;
35461   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35462   if (!SWIG_IsOK(res1)) {
35463     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser__stoplist_begin" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
35464   }
35465   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35466   {
35467     try {
35468       {
35469         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35470         result = ((Xapian::QueryParser const *)arg1)->stoplist_begin();
35471         SWIG_PYTHON_THREAD_END_ALLOW;
35472       }
35473     } catch (...) {
35474       Xapian::SetPythonException();
35475       SWIG_fail;
35476     }
35477   }
35478   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
35479   return resultobj;
35480 fail:
35481   return NULL;
35482 }
35483 
35484 
_wrap_QueryParser__stoplist_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35485 SWIGINTERN PyObject *_wrap_QueryParser__stoplist_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35486   PyObject *resultobj = 0;
35487   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35488   void *argp1 = 0 ;
35489   int res1 = 0 ;
35490   PyObject *swig_obj[1] ;
35491   Xapian::TermIterator result;
35492 
35493   if (!args) SWIG_fail;
35494   swig_obj[0] = args;
35495   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35496   if (!SWIG_IsOK(res1)) {
35497     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser__stoplist_end" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
35498   }
35499   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35500   {
35501     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35502     result = ((Xapian::QueryParser const *)arg1)->stoplist_end();
35503     SWIG_PYTHON_THREAD_END_ALLOW;
35504   }
35505   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
35506   return resultobj;
35507 fail:
35508   return NULL;
35509 }
35510 
35511 
_wrap_QueryParser__unstem_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35512 SWIGINTERN PyObject *_wrap_QueryParser__unstem_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35513   PyObject *resultobj = 0;
35514   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35515   std::string *arg2 = 0 ;
35516   void *argp1 = 0 ;
35517   int res1 = 0 ;
35518   int res2 = SWIG_OLDOBJ ;
35519   PyObject *swig_obj[2] ;
35520   Xapian::TermIterator result;
35521 
35522   if (!SWIG_Python_UnpackTuple(args,"QueryParser__unstem_begin",2,2,swig_obj)) SWIG_fail;
35523   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35524   if (!SWIG_IsOK(res1)) {
35525     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser__unstem_begin" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
35526   }
35527   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35528   {
35529     std::string *ptr = (std::string *)0;
35530     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
35531     if (!SWIG_IsOK(res2)) {
35532       if (res2 == INT_MIN) SWIG_fail;
35533       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser__unstem_begin" "', argument " "2"" of type '" "std::string const &""'");
35534     }
35535     if (!ptr) {
35536       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser__unstem_begin" "', argument " "2"" of type '" "std::string const &""'");
35537     }
35538     arg2 = ptr;
35539   }
35540   {
35541     try {
35542       {
35543         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35544         result = ((Xapian::QueryParser const *)arg1)->unstem_begin((std::string const &)*arg2);
35545         SWIG_PYTHON_THREAD_END_ALLOW;
35546       }
35547     } catch (...) {
35548       Xapian::SetPythonException();
35549       SWIG_fail;
35550     }
35551   }
35552   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
35553   if (SWIG_IsNewObj(res2)) delete arg2;
35554   return resultobj;
35555 fail:
35556   if (SWIG_IsNewObj(res2)) delete arg2;
35557   return NULL;
35558 }
35559 
35560 
_wrap_QueryParser__unstem_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35561 SWIGINTERN PyObject *_wrap_QueryParser__unstem_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35562   PyObject *resultobj = 0;
35563   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35564   std::string *arg2 = 0 ;
35565   void *argp1 = 0 ;
35566   int res1 = 0 ;
35567   int res2 = SWIG_OLDOBJ ;
35568   PyObject *swig_obj[2] ;
35569   Xapian::TermIterator result;
35570 
35571   if (!SWIG_Python_UnpackTuple(args,"QueryParser__unstem_end",2,2,swig_obj)) SWIG_fail;
35572   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35573   if (!SWIG_IsOK(res1)) {
35574     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser__unstem_end" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
35575   }
35576   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35577   {
35578     std::string *ptr = (std::string *)0;
35579     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
35580     if (!SWIG_IsOK(res2)) {
35581       if (res2 == INT_MIN) SWIG_fail;
35582       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser__unstem_end" "', argument " "2"" of type '" "std::string const &""'");
35583     }
35584     if (!ptr) {
35585       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QueryParser__unstem_end" "', argument " "2"" of type '" "std::string const &""'");
35586     }
35587     arg2 = ptr;
35588   }
35589   {
35590     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35591     result = ((Xapian::QueryParser const *)arg1)->unstem_end((std::string const &)*arg2);
35592     SWIG_PYTHON_THREAD_END_ALLOW;
35593   }
35594   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
35595   if (SWIG_IsNewObj(res2)) delete arg2;
35596   return resultobj;
35597 fail:
35598   if (SWIG_IsNewObj(res2)) delete arg2;
35599   return NULL;
35600 }
35601 
35602 
_wrap_QueryParser_add_rangeprocessor__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)35603 SWIGINTERN PyObject *_wrap_QueryParser_add_rangeprocessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
35604   PyObject *resultobj = 0;
35605   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35606   Xapian::RangeProcessor *arg2 = (Xapian::RangeProcessor *) 0 ;
35607   std::string *arg3 = (std::string *) 0 ;
35608   void *argp1 = 0 ;
35609   int res1 = 0 ;
35610   void *argp2 = 0 ;
35611   int res2 = 0 ;
35612   int res3 = SWIG_OLDOBJ ;
35613 
35614   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
35615   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35616   if (!SWIG_IsOK(res1)) {
35617     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_rangeprocessor" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
35618   }
35619   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35620   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__RangeProcessor, 0 |  0 );
35621   if (!SWIG_IsOK(res2)) {
35622     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_rangeprocessor" "', argument " "2"" of type '" "Xapian::RangeProcessor *""'");
35623   }
35624   arg2 = reinterpret_cast< Xapian::RangeProcessor * >(argp2);
35625   {
35626     std::string *ptr = (std::string *)0;
35627     if (swig_obj[2] != Py_None) {
35628       res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
35629       if (!SWIG_IsOK(res3)) {
35630         if (res3 == INT_MIN) SWIG_fail;
35631         SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QueryParser_add_rangeprocessor" "', argument " "3"" of type '" "std::string const *""'");
35632       }
35633     }
35634     arg3 = ptr;
35635   }
35636   {
35637     try {
35638       {
35639         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35640         (arg1)->add_rangeprocessor(arg2,(std::string const *)arg3);
35641         SWIG_PYTHON_THREAD_END_ALLOW;
35642       }
35643     } catch (...) {
35644       Xapian::SetPythonException();
35645       SWIG_fail;
35646     }
35647   }
35648   resultobj = SWIG_Py_Void();
35649   if (SWIG_IsNewObj(res3)) delete arg3;
35650   return resultobj;
35651 fail:
35652   if (SWIG_IsNewObj(res3)) delete arg3;
35653   return NULL;
35654 }
35655 
35656 
_wrap_QueryParser_add_rangeprocessor__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)35657 SWIGINTERN PyObject *_wrap_QueryParser_add_rangeprocessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
35658   PyObject *resultobj = 0;
35659   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35660   Xapian::RangeProcessor *arg2 = (Xapian::RangeProcessor *) 0 ;
35661   void *argp1 = 0 ;
35662   int res1 = 0 ;
35663   void *argp2 = 0 ;
35664   int res2 = 0 ;
35665 
35666   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
35667   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35668   if (!SWIG_IsOK(res1)) {
35669     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_rangeprocessor" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
35670   }
35671   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35672   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__RangeProcessor, 0 |  0 );
35673   if (!SWIG_IsOK(res2)) {
35674     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_rangeprocessor" "', argument " "2"" of type '" "Xapian::RangeProcessor *""'");
35675   }
35676   arg2 = reinterpret_cast< Xapian::RangeProcessor * >(argp2);
35677   {
35678     try {
35679       {
35680         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35681         (arg1)->add_rangeprocessor(arg2);
35682         SWIG_PYTHON_THREAD_END_ALLOW;
35683       }
35684     } catch (...) {
35685       Xapian::SetPythonException();
35686       SWIG_fail;
35687     }
35688   }
35689   resultobj = SWIG_Py_Void();
35690   return resultobj;
35691 fail:
35692   return NULL;
35693 }
35694 
35695 
_wrap_QueryParser_add_rangeprocessor(PyObject * self,PyObject * args)35696 SWIGINTERN PyObject *_wrap_QueryParser_add_rangeprocessor(PyObject *self, PyObject *args) {
35697   Py_ssize_t argc;
35698   PyObject *argv[4] = {
35699     0
35700   };
35701 
35702   if (!(argc = SWIG_Python_UnpackTuple(args,"QueryParser_add_rangeprocessor",0,3,argv))) SWIG_fail;
35703   --argc;
35704   if (argc == 2) {
35705     return _wrap_QueryParser_add_rangeprocessor__SWIG_1(self, argc, argv);
35706   }
35707   if (argc == 3) {
35708     return _wrap_QueryParser_add_rangeprocessor__SWIG_0(self, argc, argv);
35709   }
35710 
35711 fail:
35712   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QueryParser_add_rangeprocessor'.\n"
35713     "  Possible C/C++ prototypes are:\n"
35714     "    Xapian::QueryParser::add_rangeprocessor(Xapian::RangeProcessor *,std::string const *)\n"
35715     "    Xapian::QueryParser::add_rangeprocessor(Xapian::RangeProcessor *)\n");
35716   return 0;
35717 }
35718 
35719 
_wrap_QueryParser_add_valuerangeprocessor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35720 SWIGINTERN PyObject *_wrap_QueryParser_add_valuerangeprocessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35721   PyObject *resultobj = 0;
35722   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35723   Xapian::ValueRangeProcessor *arg2 = (Xapian::ValueRangeProcessor *) 0 ;
35724   void *argp1 = 0 ;
35725   int res1 = 0 ;
35726   void *argp2 = 0 ;
35727   int res2 = 0 ;
35728   PyObject *swig_obj[2] ;
35729 
35730   if (!SWIG_Python_UnpackTuple(args,"QueryParser_add_valuerangeprocessor",2,2,swig_obj)) SWIG_fail;
35731   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35732   if (!SWIG_IsOK(res1)) {
35733     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_add_valuerangeprocessor" "', argument " "1"" of type '" "Xapian::QueryParser *""'");
35734   }
35735   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35736   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Xapian__ValueRangeProcessor, 0 |  0 );
35737   if (!SWIG_IsOK(res2)) {
35738     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QueryParser_add_valuerangeprocessor" "', argument " "2"" of type '" "Xapian::ValueRangeProcessor *""'");
35739   }
35740   arg2 = reinterpret_cast< Xapian::ValueRangeProcessor * >(argp2);
35741   {
35742     try {
35743       {
35744         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35745         (arg1)->add_valuerangeprocessor(arg2);
35746         SWIG_PYTHON_THREAD_END_ALLOW;
35747       }
35748     } catch (...) {
35749       Xapian::SetPythonException();
35750       SWIG_fail;
35751     }
35752   }
35753   resultobj = SWIG_Py_Void();
35754   return resultobj;
35755 fail:
35756   return NULL;
35757 }
35758 
35759 
_wrap_QueryParser_get_corrected_query_string(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35760 SWIGINTERN PyObject *_wrap_QueryParser_get_corrected_query_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35761   PyObject *resultobj = 0;
35762   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35763   void *argp1 = 0 ;
35764   int res1 = 0 ;
35765   PyObject *swig_obj[1] ;
35766   std::string result;
35767 
35768   if (!args) SWIG_fail;
35769   swig_obj[0] = args;
35770   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35771   if (!SWIG_IsOK(res1)) {
35772     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser_get_corrected_query_string" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
35773   }
35774   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35775   {
35776     try {
35777       {
35778         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35779         result = ((Xapian::QueryParser const *)arg1)->get_corrected_query_string();
35780         SWIG_PYTHON_THREAD_END_ALLOW;
35781       }
35782     } catch (...) {
35783       Xapian::SetPythonException();
35784       SWIG_fail;
35785     }
35786   }
35787 
35788   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
35789 
35790   return resultobj;
35791 fail:
35792   return NULL;
35793 }
35794 
35795 
_wrap_QueryParser___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35796 SWIGINTERN PyObject *_wrap_QueryParser___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35797   PyObject *resultobj = 0;
35798   Xapian::QueryParser *arg1 = (Xapian::QueryParser *) 0 ;
35799   void *argp1 = 0 ;
35800   int res1 = 0 ;
35801   PyObject *swig_obj[1] ;
35802   std::string result;
35803 
35804   if (!args) SWIG_fail;
35805   swig_obj[0] = args;
35806   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__QueryParser, 0 |  0 );
35807   if (!SWIG_IsOK(res1)) {
35808     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryParser___str__" "', argument " "1"" of type '" "Xapian::QueryParser const *""'");
35809   }
35810   arg1 = reinterpret_cast< Xapian::QueryParser * >(argp1);
35811   {
35812     try {
35813       {
35814         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35815         result = ((Xapian::QueryParser const *)arg1)->get_description();
35816         SWIG_PYTHON_THREAD_END_ALLOW;
35817       }
35818     } catch (...) {
35819       Xapian::SetPythonException();
35820       SWIG_fail;
35821     }
35822   }
35823   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
35824   return resultobj;
35825 fail:
35826   return NULL;
35827 }
35828 
35829 
QueryParser_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35830 SWIGINTERN PyObject *QueryParser_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35831   PyObject *obj;
35832   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
35833   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__QueryParser, SWIG_NewClientData(obj));
35834   return SWIG_Py_Void();
35835 }
35836 
QueryParser_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35837 SWIGINTERN PyObject *QueryParser_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35838   return SWIG_Python_InitShadowInstance(args);
35839 }
35840 
_wrap_sortable_serialise(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35841 SWIGINTERN PyObject *_wrap_sortable_serialise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35842   PyObject *resultobj = 0;
35843   double arg1 ;
35844   double val1 ;
35845   int ecode1 = 0 ;
35846   PyObject *swig_obj[1] ;
35847   std::string result;
35848 
35849   if (!args) SWIG_fail;
35850   swig_obj[0] = args;
35851   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
35852   if (!SWIG_IsOK(ecode1)) {
35853     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "sortable_serialise" "', argument " "1"" of type '" "double""'");
35854   }
35855   arg1 = static_cast< double >(val1);
35856   {
35857     try {
35858       {
35859         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35860         result = Xapian::sortable_serialise(arg1);
35861         SWIG_PYTHON_THREAD_END_ALLOW;
35862       }
35863     } catch (...) {
35864       Xapian::SetPythonException();
35865       SWIG_fail;
35866     }
35867   }
35868 
35869   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
35870 
35871   return resultobj;
35872 fail:
35873   return NULL;
35874 }
35875 
35876 
_wrap_sortable_unserialise(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35877 SWIGINTERN PyObject *_wrap_sortable_unserialise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35878   PyObject *resultobj = 0;
35879   std::string *arg1 = 0 ;
35880   std::string bytes1 ;
35881   PyObject *swig_obj[1] ;
35882   double result;
35883 
35884   if (!args) SWIG_fail;
35885   swig_obj[0] = args;
35886   {
35887     char * p;
35888     Py_ssize_t len;
35889     if (PyBytes_AsStringAndSize(swig_obj[0], &p, &len) < 0) SWIG_fail;
35890     bytes1.assign(p, len);
35891     arg1 = &bytes1;
35892   }
35893   {
35894     try {
35895       {
35896         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35897         result = (double)Xapian::sortable_unserialise((std::string const &)*arg1);
35898         SWIG_PYTHON_THREAD_END_ALLOW;
35899       }
35900     } catch (...) {
35901       Xapian::SetPythonException();
35902       SWIG_fail;
35903     }
35904   }
35905   resultobj = SWIG_From_double(static_cast< double >(result));
35906   return resultobj;
35907 fail:
35908   return NULL;
35909 }
35910 
35911 
_wrap_new_ValueSetMatchDecider(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35912 SWIGINTERN PyObject *_wrap_new_ValueSetMatchDecider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35913   PyObject *resultobj = 0;
35914   Xapian::valueno arg1 ;
35915   bool arg2 ;
35916   unsigned int val1 ;
35917   int ecode1 = 0 ;
35918   bool val2 ;
35919   int ecode2 = 0 ;
35920   PyObject *swig_obj[2] ;
35921   Xapian::ValueSetMatchDecider *result = 0 ;
35922 
35923   if (!SWIG_Python_UnpackTuple(args,"new_ValueSetMatchDecider",2,2,swig_obj)) SWIG_fail;
35924   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
35925   if (!SWIG_IsOK(ecode1)) {
35926     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ValueSetMatchDecider" "', argument " "1"" of type '" "Xapian::valueno""'");
35927   }
35928   arg1 = static_cast< Xapian::valueno >(val1);
35929   ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
35930   if (!SWIG_IsOK(ecode2)) {
35931     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ValueSetMatchDecider" "', argument " "2"" of type '" "bool""'");
35932   }
35933   arg2 = static_cast< bool >(val2);
35934   {
35935     try {
35936       {
35937         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35938         result = (Xapian::ValueSetMatchDecider *)new Xapian::ValueSetMatchDecider(arg1,arg2);
35939         SWIG_PYTHON_THREAD_END_ALLOW;
35940       }
35941     } catch (...) {
35942       Xapian::SetPythonException();
35943       SWIG_fail;
35944     }
35945   }
35946   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueSetMatchDecider, SWIG_POINTER_NEW |  0 );
35947   return resultobj;
35948 fail:
35949   return NULL;
35950 }
35951 
35952 
_wrap_ValueSetMatchDecider_add_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)35953 SWIGINTERN PyObject *_wrap_ValueSetMatchDecider_add_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35954   PyObject *resultobj = 0;
35955   Xapian::ValueSetMatchDecider *arg1 = (Xapian::ValueSetMatchDecider *) 0 ;
35956   std::string *arg2 = 0 ;
35957   void *argp1 = 0 ;
35958   int res1 = 0 ;
35959   int res2 = SWIG_OLDOBJ ;
35960   PyObject *swig_obj[2] ;
35961 
35962   if (!SWIG_Python_UnpackTuple(args,"ValueSetMatchDecider_add_value",2,2,swig_obj)) SWIG_fail;
35963   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueSetMatchDecider, 0 |  0 );
35964   if (!SWIG_IsOK(res1)) {
35965     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueSetMatchDecider_add_value" "', argument " "1"" of type '" "Xapian::ValueSetMatchDecider *""'");
35966   }
35967   arg1 = reinterpret_cast< Xapian::ValueSetMatchDecider * >(argp1);
35968   {
35969     std::string *ptr = (std::string *)0;
35970     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
35971     if (!SWIG_IsOK(res2)) {
35972       if (res2 == INT_MIN) SWIG_fail;
35973       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValueSetMatchDecider_add_value" "', argument " "2"" of type '" "std::string const &""'");
35974     }
35975     if (!ptr) {
35976       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValueSetMatchDecider_add_value" "', argument " "2"" of type '" "std::string const &""'");
35977     }
35978     arg2 = ptr;
35979   }
35980   {
35981     try {
35982       {
35983         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
35984         (arg1)->add_value((std::string const &)*arg2);
35985         SWIG_PYTHON_THREAD_END_ALLOW;
35986       }
35987     } catch (...) {
35988       Xapian::SetPythonException();
35989       SWIG_fail;
35990     }
35991   }
35992   resultobj = SWIG_Py_Void();
35993   if (SWIG_IsNewObj(res2)) delete arg2;
35994   return resultobj;
35995 fail:
35996   if (SWIG_IsNewObj(res2)) delete arg2;
35997   return NULL;
35998 }
35999 
36000 
_wrap_ValueSetMatchDecider_remove_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36001 SWIGINTERN PyObject *_wrap_ValueSetMatchDecider_remove_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36002   PyObject *resultobj = 0;
36003   Xapian::ValueSetMatchDecider *arg1 = (Xapian::ValueSetMatchDecider *) 0 ;
36004   std::string *arg2 = 0 ;
36005   void *argp1 = 0 ;
36006   int res1 = 0 ;
36007   int res2 = SWIG_OLDOBJ ;
36008   PyObject *swig_obj[2] ;
36009 
36010   if (!SWIG_Python_UnpackTuple(args,"ValueSetMatchDecider_remove_value",2,2,swig_obj)) SWIG_fail;
36011   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueSetMatchDecider, 0 |  0 );
36012   if (!SWIG_IsOK(res1)) {
36013     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueSetMatchDecider_remove_value" "', argument " "1"" of type '" "Xapian::ValueSetMatchDecider *""'");
36014   }
36015   arg1 = reinterpret_cast< Xapian::ValueSetMatchDecider * >(argp1);
36016   {
36017     std::string *ptr = (std::string *)0;
36018     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
36019     if (!SWIG_IsOK(res2)) {
36020       if (res2 == INT_MIN) SWIG_fail;
36021       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValueSetMatchDecider_remove_value" "', argument " "2"" of type '" "std::string const &""'");
36022     }
36023     if (!ptr) {
36024       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValueSetMatchDecider_remove_value" "', argument " "2"" of type '" "std::string const &""'");
36025     }
36026     arg2 = ptr;
36027   }
36028   {
36029     try {
36030       {
36031         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36032         (arg1)->remove_value((std::string const &)*arg2);
36033         SWIG_PYTHON_THREAD_END_ALLOW;
36034       }
36035     } catch (...) {
36036       Xapian::SetPythonException();
36037       SWIG_fail;
36038     }
36039   }
36040   resultobj = SWIG_Py_Void();
36041   if (SWIG_IsNewObj(res2)) delete arg2;
36042   return resultobj;
36043 fail:
36044   if (SWIG_IsNewObj(res2)) delete arg2;
36045   return NULL;
36046 }
36047 
36048 
_wrap_delete_ValueSetMatchDecider(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36049 SWIGINTERN PyObject *_wrap_delete_ValueSetMatchDecider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36050   PyObject *resultobj = 0;
36051   Xapian::ValueSetMatchDecider *arg1 = (Xapian::ValueSetMatchDecider *) 0 ;
36052   void *argp1 = 0 ;
36053   int res1 = 0 ;
36054   PyObject *swig_obj[1] ;
36055 
36056   if (!args) SWIG_fail;
36057   swig_obj[0] = args;
36058   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueSetMatchDecider, SWIG_POINTER_DISOWN |  0 );
36059   if (!SWIG_IsOK(res1)) {
36060     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ValueSetMatchDecider" "', argument " "1"" of type '" "Xapian::ValueSetMatchDecider *""'");
36061   }
36062   arg1 = reinterpret_cast< Xapian::ValueSetMatchDecider * >(argp1);
36063   {
36064     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36065     delete arg1;
36066     SWIG_PYTHON_THREAD_END_ALLOW;
36067   }
36068   resultobj = SWIG_Py_Void();
36069   return resultobj;
36070 fail:
36071   return NULL;
36072 }
36073 
36074 
ValueSetMatchDecider_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36075 SWIGINTERN PyObject *ValueSetMatchDecider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36076   PyObject *obj;
36077   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
36078   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ValueSetMatchDecider, SWIG_NewClientData(obj));
36079   return SWIG_Py_Void();
36080 }
36081 
ValueSetMatchDecider_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36082 SWIGINTERN PyObject *ValueSetMatchDecider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36083   return SWIG_Python_InitShadowInstance(args);
36084 }
36085 
_wrap_delete_Weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36086 SWIGINTERN PyObject *_wrap_delete_Weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36087   PyObject *resultobj = 0;
36088   Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
36089   void *argp1 = 0 ;
36090   int res1 = 0 ;
36091   PyObject *swig_obj[1] ;
36092 
36093   if (!args) SWIG_fail;
36094   swig_obj[0] = args;
36095   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Weight, SWIG_POINTER_DISOWN |  0 );
36096   if (!SWIG_IsOK(res1)) {
36097     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Weight" "', argument " "1"" of type '" "Xapian::Weight *""'");
36098   }
36099   arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
36100   {
36101     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36102     delete arg1;
36103     SWIG_PYTHON_THREAD_END_ALLOW;
36104   }
36105   resultobj = SWIG_Py_Void();
36106   return resultobj;
36107 fail:
36108   return NULL;
36109 }
36110 
36111 
_wrap_Weight_name(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36112 SWIGINTERN PyObject *_wrap_Weight_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36113   PyObject *resultobj = 0;
36114   Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
36115   void *argp1 = 0 ;
36116   int res1 = 0 ;
36117   PyObject *swig_obj[1] ;
36118   std::string result;
36119 
36120   if (!args) SWIG_fail;
36121   swig_obj[0] = args;
36122   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Weight, 0 |  0 );
36123   if (!SWIG_IsOK(res1)) {
36124     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Weight_name" "', argument " "1"" of type '" "Xapian::Weight const *""'");
36125   }
36126   arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
36127   {
36128     try {
36129       {
36130         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36131         result = ((Xapian::Weight const *)arg1)->name();
36132         SWIG_PYTHON_THREAD_END_ALLOW;
36133       }
36134     } catch (...) {
36135       Xapian::SetPythonException();
36136       SWIG_fail;
36137     }
36138   }
36139 
36140   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
36141 
36142   return resultobj;
36143 fail:
36144   return NULL;
36145 }
36146 
36147 
_wrap_Weight_get_sumpart(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36148 SWIGINTERN PyObject *_wrap_Weight_get_sumpart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36149   PyObject *resultobj = 0;
36150   Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
36151   Xapian::termcount arg2 ;
36152   Xapian::termcount arg3 ;
36153   Xapian::termcount arg4 ;
36154   void *argp1 = 0 ;
36155   int res1 = 0 ;
36156   unsigned int val2 ;
36157   int ecode2 = 0 ;
36158   unsigned int val3 ;
36159   int ecode3 = 0 ;
36160   unsigned int val4 ;
36161   int ecode4 = 0 ;
36162   PyObject *swig_obj[4] ;
36163   double result;
36164 
36165   if (!SWIG_Python_UnpackTuple(args,"Weight_get_sumpart",4,4,swig_obj)) SWIG_fail;
36166   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Weight, 0 |  0 );
36167   if (!SWIG_IsOK(res1)) {
36168     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Weight_get_sumpart" "', argument " "1"" of type '" "Xapian::Weight const *""'");
36169   }
36170   arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
36171   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
36172   if (!SWIG_IsOK(ecode2)) {
36173     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Weight_get_sumpart" "', argument " "2"" of type '" "Xapian::termcount""'");
36174   }
36175   arg2 = static_cast< Xapian::termcount >(val2);
36176   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
36177   if (!SWIG_IsOK(ecode3)) {
36178     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Weight_get_sumpart" "', argument " "3"" of type '" "Xapian::termcount""'");
36179   }
36180   arg3 = static_cast< Xapian::termcount >(val3);
36181   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
36182   if (!SWIG_IsOK(ecode4)) {
36183     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Weight_get_sumpart" "', argument " "4"" of type '" "Xapian::termcount""'");
36184   }
36185   arg4 = static_cast< Xapian::termcount >(val4);
36186   {
36187     try {
36188       {
36189         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36190         result = (double)((Xapian::Weight const *)arg1)->get_sumpart(arg2,arg3,arg4);
36191         SWIG_PYTHON_THREAD_END_ALLOW;
36192       }
36193     } catch (...) {
36194       Xapian::SetPythonException();
36195       SWIG_fail;
36196     }
36197   }
36198   resultobj = SWIG_From_double(static_cast< double >(result));
36199   return resultobj;
36200 fail:
36201   return NULL;
36202 }
36203 
36204 
_wrap_Weight_get_maxpart(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36205 SWIGINTERN PyObject *_wrap_Weight_get_maxpart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36206   PyObject *resultobj = 0;
36207   Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
36208   void *argp1 = 0 ;
36209   int res1 = 0 ;
36210   PyObject *swig_obj[1] ;
36211   double result;
36212 
36213   if (!args) SWIG_fail;
36214   swig_obj[0] = args;
36215   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Weight, 0 |  0 );
36216   if (!SWIG_IsOK(res1)) {
36217     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Weight_get_maxpart" "', argument " "1"" of type '" "Xapian::Weight const *""'");
36218   }
36219   arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
36220   {
36221     try {
36222       {
36223         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36224         result = (double)((Xapian::Weight const *)arg1)->get_maxpart();
36225         SWIG_PYTHON_THREAD_END_ALLOW;
36226       }
36227     } catch (...) {
36228       Xapian::SetPythonException();
36229       SWIG_fail;
36230     }
36231   }
36232   resultobj = SWIG_From_double(static_cast< double >(result));
36233   return resultobj;
36234 fail:
36235   return NULL;
36236 }
36237 
36238 
_wrap_Weight_get_sumextra(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36239 SWIGINTERN PyObject *_wrap_Weight_get_sumextra(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36240   PyObject *resultobj = 0;
36241   Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
36242   Xapian::termcount arg2 ;
36243   Xapian::termcount arg3 ;
36244   void *argp1 = 0 ;
36245   int res1 = 0 ;
36246   unsigned int val2 ;
36247   int ecode2 = 0 ;
36248   unsigned int val3 ;
36249   int ecode3 = 0 ;
36250   PyObject *swig_obj[3] ;
36251   double result;
36252 
36253   if (!SWIG_Python_UnpackTuple(args,"Weight_get_sumextra",3,3,swig_obj)) SWIG_fail;
36254   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Weight, 0 |  0 );
36255   if (!SWIG_IsOK(res1)) {
36256     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Weight_get_sumextra" "', argument " "1"" of type '" "Xapian::Weight const *""'");
36257   }
36258   arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
36259   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
36260   if (!SWIG_IsOK(ecode2)) {
36261     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Weight_get_sumextra" "', argument " "2"" of type '" "Xapian::termcount""'");
36262   }
36263   arg2 = static_cast< Xapian::termcount >(val2);
36264   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
36265   if (!SWIG_IsOK(ecode3)) {
36266     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Weight_get_sumextra" "', argument " "3"" of type '" "Xapian::termcount""'");
36267   }
36268   arg3 = static_cast< Xapian::termcount >(val3);
36269   {
36270     try {
36271       {
36272         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36273         result = (double)((Xapian::Weight const *)arg1)->get_sumextra(arg2,arg3);
36274         SWIG_PYTHON_THREAD_END_ALLOW;
36275       }
36276     } catch (...) {
36277       Xapian::SetPythonException();
36278       SWIG_fail;
36279     }
36280   }
36281   resultobj = SWIG_From_double(static_cast< double >(result));
36282   return resultobj;
36283 fail:
36284   return NULL;
36285 }
36286 
36287 
_wrap_Weight_get_maxextra(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36288 SWIGINTERN PyObject *_wrap_Weight_get_maxextra(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36289   PyObject *resultobj = 0;
36290   Xapian::Weight *arg1 = (Xapian::Weight *) 0 ;
36291   void *argp1 = 0 ;
36292   int res1 = 0 ;
36293   PyObject *swig_obj[1] ;
36294   double result;
36295 
36296   if (!args) SWIG_fail;
36297   swig_obj[0] = args;
36298   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Weight, 0 |  0 );
36299   if (!SWIG_IsOK(res1)) {
36300     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Weight_get_maxextra" "', argument " "1"" of type '" "Xapian::Weight const *""'");
36301   }
36302   arg1 = reinterpret_cast< Xapian::Weight * >(argp1);
36303   {
36304     try {
36305       {
36306         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36307         result = (double)((Xapian::Weight const *)arg1)->get_maxextra();
36308         SWIG_PYTHON_THREAD_END_ALLOW;
36309       }
36310     } catch (...) {
36311       Xapian::SetPythonException();
36312       SWIG_fail;
36313     }
36314   }
36315   resultobj = SWIG_From_double(static_cast< double >(result));
36316   return resultobj;
36317 fail:
36318   return NULL;
36319 }
36320 
36321 
Weight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36322 SWIGINTERN PyObject *Weight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36323   PyObject *obj;
36324   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
36325   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Weight, SWIG_NewClientData(obj));
36326   return SWIG_Py_Void();
36327 }
36328 
_wrap_new_BoolWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36329 SWIGINTERN PyObject *_wrap_new_BoolWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36330   PyObject *resultobj = 0;
36331   Xapian::BoolWeight *result = 0 ;
36332 
36333   if (!SWIG_Python_UnpackTuple(args,"new_BoolWeight",0,0,0)) SWIG_fail;
36334   {
36335     try {
36336       {
36337         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36338         result = (Xapian::BoolWeight *)new Xapian::BoolWeight();
36339         SWIG_PYTHON_THREAD_END_ALLOW;
36340       }
36341     } catch (...) {
36342       Xapian::SetPythonException();
36343       SWIG_fail;
36344     }
36345   }
36346   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BoolWeight, SWIG_POINTER_NEW |  0 );
36347   return resultobj;
36348 fail:
36349   return NULL;
36350 }
36351 
36352 
_wrap_delete_BoolWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36353 SWIGINTERN PyObject *_wrap_delete_BoolWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36354   PyObject *resultobj = 0;
36355   Xapian::BoolWeight *arg1 = (Xapian::BoolWeight *) 0 ;
36356   void *argp1 = 0 ;
36357   int res1 = 0 ;
36358   PyObject *swig_obj[1] ;
36359 
36360   if (!args) SWIG_fail;
36361   swig_obj[0] = args;
36362   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__BoolWeight, SWIG_POINTER_DISOWN |  0 );
36363   if (!SWIG_IsOK(res1)) {
36364     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BoolWeight" "', argument " "1"" of type '" "Xapian::BoolWeight *""'");
36365   }
36366   arg1 = reinterpret_cast< Xapian::BoolWeight * >(argp1);
36367   {
36368     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36369     delete arg1;
36370     SWIG_PYTHON_THREAD_END_ALLOW;
36371   }
36372   resultobj = SWIG_Py_Void();
36373   return resultobj;
36374 fail:
36375   return NULL;
36376 }
36377 
36378 
BoolWeight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36379 SWIGINTERN PyObject *BoolWeight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36380   PyObject *obj;
36381   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
36382   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__BoolWeight, SWIG_NewClientData(obj));
36383   return SWIG_Py_Void();
36384 }
36385 
BoolWeight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36386 SWIGINTERN PyObject *BoolWeight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36387   return SWIG_Python_InitShadowInstance(args);
36388 }
36389 
_wrap_new_TfIdfWeight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)36390 SWIGINTERN PyObject *_wrap_new_TfIdfWeight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
36391   PyObject *resultobj = 0;
36392   std::string *arg1 = 0 ;
36393   int res1 = SWIG_OLDOBJ ;
36394   Xapian::TfIdfWeight *result = 0 ;
36395 
36396   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
36397   {
36398     std::string *ptr = (std::string *)0;
36399     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
36400     if (!SWIG_IsOK(res1)) {
36401       if (res1 == INT_MIN) SWIG_fail;
36402       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TfIdfWeight" "', argument " "1"" of type '" "std::string const &""'");
36403     }
36404     if (!ptr) {
36405       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TfIdfWeight" "', argument " "1"" of type '" "std::string const &""'");
36406     }
36407     arg1 = ptr;
36408   }
36409   {
36410     try {
36411       {
36412         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36413         result = (Xapian::TfIdfWeight *)new Xapian::TfIdfWeight((std::string const &)*arg1);
36414         SWIG_PYTHON_THREAD_END_ALLOW;
36415       }
36416     } catch (...) {
36417       Xapian::SetPythonException();
36418       SWIG_fail;
36419     }
36420   }
36421   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__TfIdfWeight, SWIG_POINTER_NEW |  0 );
36422   if (SWIG_IsNewObj(res1)) delete arg1;
36423   return resultobj;
36424 fail:
36425   if (SWIG_IsNewObj(res1)) delete arg1;
36426   return NULL;
36427 }
36428 
36429 
_wrap_new_TfIdfWeight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))36430 SWIGINTERN PyObject *_wrap_new_TfIdfWeight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
36431   PyObject *resultobj = 0;
36432   Xapian::TfIdfWeight *result = 0 ;
36433 
36434   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
36435   {
36436     try {
36437       {
36438         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36439         result = (Xapian::TfIdfWeight *)new Xapian::TfIdfWeight();
36440         SWIG_PYTHON_THREAD_END_ALLOW;
36441       }
36442     } catch (...) {
36443       Xapian::SetPythonException();
36444       SWIG_fail;
36445     }
36446   }
36447   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__TfIdfWeight, SWIG_POINTER_NEW |  0 );
36448   return resultobj;
36449 fail:
36450   return NULL;
36451 }
36452 
36453 
_wrap_new_TfIdfWeight(PyObject * self,PyObject * args)36454 SWIGINTERN PyObject *_wrap_new_TfIdfWeight(PyObject *self, PyObject *args) {
36455   Py_ssize_t argc;
36456   PyObject *argv[2] = {
36457     0
36458   };
36459 
36460   if (!(argc = SWIG_Python_UnpackTuple(args,"new_TfIdfWeight",0,1,argv))) SWIG_fail;
36461   --argc;
36462   if (argc == 0) {
36463     return _wrap_new_TfIdfWeight__SWIG_1(self, argc, argv);
36464   }
36465   if (argc == 1) {
36466     return _wrap_new_TfIdfWeight__SWIG_0(self, argc, argv);
36467   }
36468 
36469 fail:
36470   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_TfIdfWeight'.\n"
36471     "  Possible C/C++ prototypes are:\n"
36472     "    Xapian::TfIdfWeight::TfIdfWeight(std::string const &)\n"
36473     "    Xapian::TfIdfWeight::TfIdfWeight()\n");
36474   return 0;
36475 }
36476 
36477 
_wrap_delete_TfIdfWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36478 SWIGINTERN PyObject *_wrap_delete_TfIdfWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36479   PyObject *resultobj = 0;
36480   Xapian::TfIdfWeight *arg1 = (Xapian::TfIdfWeight *) 0 ;
36481   void *argp1 = 0 ;
36482   int res1 = 0 ;
36483   PyObject *swig_obj[1] ;
36484 
36485   if (!args) SWIG_fail;
36486   swig_obj[0] = args;
36487   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TfIdfWeight, SWIG_POINTER_DISOWN |  0 );
36488   if (!SWIG_IsOK(res1)) {
36489     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TfIdfWeight" "', argument " "1"" of type '" "Xapian::TfIdfWeight *""'");
36490   }
36491   arg1 = reinterpret_cast< Xapian::TfIdfWeight * >(argp1);
36492   {
36493     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36494     delete arg1;
36495     SWIG_PYTHON_THREAD_END_ALLOW;
36496   }
36497   resultobj = SWIG_Py_Void();
36498   return resultobj;
36499 fail:
36500   return NULL;
36501 }
36502 
36503 
TfIdfWeight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36504 SWIGINTERN PyObject *TfIdfWeight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36505   PyObject *obj;
36506   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
36507   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__TfIdfWeight, SWIG_NewClientData(obj));
36508   return SWIG_Py_Void();
36509 }
36510 
TfIdfWeight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36511 SWIGINTERN PyObject *TfIdfWeight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36512   return SWIG_Python_InitShadowInstance(args);
36513 }
36514 
_wrap_new_BM25Weight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)36515 SWIGINTERN PyObject *_wrap_new_BM25Weight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
36516   PyObject *resultobj = 0;
36517   double arg1 ;
36518   double arg2 ;
36519   double arg3 ;
36520   double arg4 ;
36521   double arg5 ;
36522   double val1 ;
36523   int ecode1 = 0 ;
36524   double val2 ;
36525   int ecode2 = 0 ;
36526   double val3 ;
36527   int ecode3 = 0 ;
36528   double val4 ;
36529   int ecode4 = 0 ;
36530   double val5 ;
36531   int ecode5 = 0 ;
36532   Xapian::BM25Weight *result = 0 ;
36533 
36534   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
36535   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
36536   if (!SWIG_IsOK(ecode1)) {
36537     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BM25Weight" "', argument " "1"" of type '" "double""'");
36538   }
36539   arg1 = static_cast< double >(val1);
36540   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
36541   if (!SWIG_IsOK(ecode2)) {
36542     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BM25Weight" "', argument " "2"" of type '" "double""'");
36543   }
36544   arg2 = static_cast< double >(val2);
36545   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
36546   if (!SWIG_IsOK(ecode3)) {
36547     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BM25Weight" "', argument " "3"" of type '" "double""'");
36548   }
36549   arg3 = static_cast< double >(val3);
36550   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
36551   if (!SWIG_IsOK(ecode4)) {
36552     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BM25Weight" "', argument " "4"" of type '" "double""'");
36553   }
36554   arg4 = static_cast< double >(val4);
36555   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
36556   if (!SWIG_IsOK(ecode5)) {
36557     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_BM25Weight" "', argument " "5"" of type '" "double""'");
36558   }
36559   arg5 = static_cast< double >(val5);
36560   {
36561     try {
36562       {
36563         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36564         result = (Xapian::BM25Weight *)new Xapian::BM25Weight(arg1,arg2,arg3,arg4,arg5);
36565         SWIG_PYTHON_THREAD_END_ALLOW;
36566       }
36567     } catch (...) {
36568       Xapian::SetPythonException();
36569       SWIG_fail;
36570     }
36571   }
36572   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BM25Weight, SWIG_POINTER_NEW |  0 );
36573   return resultobj;
36574 fail:
36575   return NULL;
36576 }
36577 
36578 
_wrap_new_BM25Weight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))36579 SWIGINTERN PyObject *_wrap_new_BM25Weight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
36580   PyObject *resultobj = 0;
36581   Xapian::BM25Weight *result = 0 ;
36582 
36583   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
36584   {
36585     try {
36586       {
36587         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36588         result = (Xapian::BM25Weight *)new Xapian::BM25Weight();
36589         SWIG_PYTHON_THREAD_END_ALLOW;
36590       }
36591     } catch (...) {
36592       Xapian::SetPythonException();
36593       SWIG_fail;
36594     }
36595   }
36596   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BM25Weight, SWIG_POINTER_NEW |  0 );
36597   return resultobj;
36598 fail:
36599   return NULL;
36600 }
36601 
36602 
_wrap_new_BM25Weight(PyObject * self,PyObject * args)36603 SWIGINTERN PyObject *_wrap_new_BM25Weight(PyObject *self, PyObject *args) {
36604   Py_ssize_t argc;
36605   PyObject *argv[6] = {
36606     0
36607   };
36608 
36609   if (!(argc = SWIG_Python_UnpackTuple(args,"new_BM25Weight",0,5,argv))) SWIG_fail;
36610   --argc;
36611   if (argc == 0) {
36612     return _wrap_new_BM25Weight__SWIG_1(self, argc, argv);
36613   }
36614   if (argc == 5) {
36615     return _wrap_new_BM25Weight__SWIG_0(self, argc, argv);
36616   }
36617 
36618 fail:
36619   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BM25Weight'.\n"
36620     "  Possible C/C++ prototypes are:\n"
36621     "    Xapian::BM25Weight::BM25Weight(double,double,double,double,double)\n"
36622     "    Xapian::BM25Weight::BM25Weight()\n");
36623   return 0;
36624 }
36625 
36626 
_wrap_delete_BM25Weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36627 SWIGINTERN PyObject *_wrap_delete_BM25Weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36628   PyObject *resultobj = 0;
36629   Xapian::BM25Weight *arg1 = (Xapian::BM25Weight *) 0 ;
36630   void *argp1 = 0 ;
36631   int res1 = 0 ;
36632   PyObject *swig_obj[1] ;
36633 
36634   if (!args) SWIG_fail;
36635   swig_obj[0] = args;
36636   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__BM25Weight, SWIG_POINTER_DISOWN |  0 );
36637   if (!SWIG_IsOK(res1)) {
36638     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BM25Weight" "', argument " "1"" of type '" "Xapian::BM25Weight *""'");
36639   }
36640   arg1 = reinterpret_cast< Xapian::BM25Weight * >(argp1);
36641   {
36642     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36643     delete arg1;
36644     SWIG_PYTHON_THREAD_END_ALLOW;
36645   }
36646   resultobj = SWIG_Py_Void();
36647   return resultobj;
36648 fail:
36649   return NULL;
36650 }
36651 
36652 
BM25Weight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36653 SWIGINTERN PyObject *BM25Weight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36654   PyObject *obj;
36655   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
36656   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__BM25Weight, SWIG_NewClientData(obj));
36657   return SWIG_Py_Void();
36658 }
36659 
BM25Weight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36660 SWIGINTERN PyObject *BM25Weight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36661   return SWIG_Python_InitShadowInstance(args);
36662 }
36663 
_wrap_new_BM25PlusWeight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)36664 SWIGINTERN PyObject *_wrap_new_BM25PlusWeight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
36665   PyObject *resultobj = 0;
36666   double arg1 ;
36667   double arg2 ;
36668   double arg3 ;
36669   double arg4 ;
36670   double arg5 ;
36671   double arg6 ;
36672   double val1 ;
36673   int ecode1 = 0 ;
36674   double val2 ;
36675   int ecode2 = 0 ;
36676   double val3 ;
36677   int ecode3 = 0 ;
36678   double val4 ;
36679   int ecode4 = 0 ;
36680   double val5 ;
36681   int ecode5 = 0 ;
36682   double val6 ;
36683   int ecode6 = 0 ;
36684   Xapian::BM25PlusWeight *result = 0 ;
36685 
36686   if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
36687   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
36688   if (!SWIG_IsOK(ecode1)) {
36689     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BM25PlusWeight" "', argument " "1"" of type '" "double""'");
36690   }
36691   arg1 = static_cast< double >(val1);
36692   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
36693   if (!SWIG_IsOK(ecode2)) {
36694     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BM25PlusWeight" "', argument " "2"" of type '" "double""'");
36695   }
36696   arg2 = static_cast< double >(val2);
36697   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
36698   if (!SWIG_IsOK(ecode3)) {
36699     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BM25PlusWeight" "', argument " "3"" of type '" "double""'");
36700   }
36701   arg3 = static_cast< double >(val3);
36702   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
36703   if (!SWIG_IsOK(ecode4)) {
36704     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BM25PlusWeight" "', argument " "4"" of type '" "double""'");
36705   }
36706   arg4 = static_cast< double >(val4);
36707   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
36708   if (!SWIG_IsOK(ecode5)) {
36709     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_BM25PlusWeight" "', argument " "5"" of type '" "double""'");
36710   }
36711   arg5 = static_cast< double >(val5);
36712   ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
36713   if (!SWIG_IsOK(ecode6)) {
36714     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BM25PlusWeight" "', argument " "6"" of type '" "double""'");
36715   }
36716   arg6 = static_cast< double >(val6);
36717   {
36718     try {
36719       {
36720         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36721         result = (Xapian::BM25PlusWeight *)new Xapian::BM25PlusWeight(arg1,arg2,arg3,arg4,arg5,arg6);
36722         SWIG_PYTHON_THREAD_END_ALLOW;
36723       }
36724     } catch (...) {
36725       Xapian::SetPythonException();
36726       SWIG_fail;
36727     }
36728   }
36729   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BM25PlusWeight, SWIG_POINTER_NEW |  0 );
36730   return resultobj;
36731 fail:
36732   return NULL;
36733 }
36734 
36735 
_wrap_new_BM25PlusWeight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))36736 SWIGINTERN PyObject *_wrap_new_BM25PlusWeight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
36737   PyObject *resultobj = 0;
36738   Xapian::BM25PlusWeight *result = 0 ;
36739 
36740   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
36741   {
36742     try {
36743       {
36744         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36745         result = (Xapian::BM25PlusWeight *)new Xapian::BM25PlusWeight();
36746         SWIG_PYTHON_THREAD_END_ALLOW;
36747       }
36748     } catch (...) {
36749       Xapian::SetPythonException();
36750       SWIG_fail;
36751     }
36752   }
36753   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BM25PlusWeight, SWIG_POINTER_NEW |  0 );
36754   return resultobj;
36755 fail:
36756   return NULL;
36757 }
36758 
36759 
_wrap_new_BM25PlusWeight(PyObject * self,PyObject * args)36760 SWIGINTERN PyObject *_wrap_new_BM25PlusWeight(PyObject *self, PyObject *args) {
36761   Py_ssize_t argc;
36762   PyObject *argv[7] = {
36763     0
36764   };
36765 
36766   if (!(argc = SWIG_Python_UnpackTuple(args,"new_BM25PlusWeight",0,6,argv))) SWIG_fail;
36767   --argc;
36768   if (argc == 0) {
36769     return _wrap_new_BM25PlusWeight__SWIG_1(self, argc, argv);
36770   }
36771   if (argc == 6) {
36772     return _wrap_new_BM25PlusWeight__SWIG_0(self, argc, argv);
36773   }
36774 
36775 fail:
36776   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BM25PlusWeight'.\n"
36777     "  Possible C/C++ prototypes are:\n"
36778     "    Xapian::BM25PlusWeight::BM25PlusWeight(double,double,double,double,double,double)\n"
36779     "    Xapian::BM25PlusWeight::BM25PlusWeight()\n");
36780   return 0;
36781 }
36782 
36783 
_wrap_delete_BM25PlusWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36784 SWIGINTERN PyObject *_wrap_delete_BM25PlusWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36785   PyObject *resultobj = 0;
36786   Xapian::BM25PlusWeight *arg1 = (Xapian::BM25PlusWeight *) 0 ;
36787   void *argp1 = 0 ;
36788   int res1 = 0 ;
36789   PyObject *swig_obj[1] ;
36790 
36791   if (!args) SWIG_fail;
36792   swig_obj[0] = args;
36793   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__BM25PlusWeight, SWIG_POINTER_DISOWN |  0 );
36794   if (!SWIG_IsOK(res1)) {
36795     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BM25PlusWeight" "', argument " "1"" of type '" "Xapian::BM25PlusWeight *""'");
36796   }
36797   arg1 = reinterpret_cast< Xapian::BM25PlusWeight * >(argp1);
36798   {
36799     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36800     delete arg1;
36801     SWIG_PYTHON_THREAD_END_ALLOW;
36802   }
36803   resultobj = SWIG_Py_Void();
36804   return resultobj;
36805 fail:
36806   return NULL;
36807 }
36808 
36809 
BM25PlusWeight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36810 SWIGINTERN PyObject *BM25PlusWeight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36811   PyObject *obj;
36812   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
36813   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__BM25PlusWeight, SWIG_NewClientData(obj));
36814   return SWIG_Py_Void();
36815 }
36816 
BM25PlusWeight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36817 SWIGINTERN PyObject *BM25PlusWeight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36818   return SWIG_Python_InitShadowInstance(args);
36819 }
36820 
_wrap_new_TradWeight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)36821 SWIGINTERN PyObject *_wrap_new_TradWeight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
36822   PyObject *resultobj = 0;
36823   double arg1 ;
36824   double val1 ;
36825   int ecode1 = 0 ;
36826   Xapian::TradWeight *result = 0 ;
36827 
36828   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
36829   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
36830   if (!SWIG_IsOK(ecode1)) {
36831     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TradWeight" "', argument " "1"" of type '" "double""'");
36832   }
36833   arg1 = static_cast< double >(val1);
36834   {
36835     try {
36836       {
36837         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36838         result = (Xapian::TradWeight *)new Xapian::TradWeight(arg1);
36839         SWIG_PYTHON_THREAD_END_ALLOW;
36840       }
36841     } catch (...) {
36842       Xapian::SetPythonException();
36843       SWIG_fail;
36844     }
36845   }
36846   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__TradWeight, SWIG_POINTER_NEW |  0 );
36847   return resultobj;
36848 fail:
36849   return NULL;
36850 }
36851 
36852 
_wrap_new_TradWeight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))36853 SWIGINTERN PyObject *_wrap_new_TradWeight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
36854   PyObject *resultobj = 0;
36855   Xapian::TradWeight *result = 0 ;
36856 
36857   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
36858   {
36859     try {
36860       {
36861         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36862         result = (Xapian::TradWeight *)new Xapian::TradWeight();
36863         SWIG_PYTHON_THREAD_END_ALLOW;
36864       }
36865     } catch (...) {
36866       Xapian::SetPythonException();
36867       SWIG_fail;
36868     }
36869   }
36870   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__TradWeight, SWIG_POINTER_NEW |  0 );
36871   return resultobj;
36872 fail:
36873   return NULL;
36874 }
36875 
36876 
_wrap_new_TradWeight(PyObject * self,PyObject * args)36877 SWIGINTERN PyObject *_wrap_new_TradWeight(PyObject *self, PyObject *args) {
36878   Py_ssize_t argc;
36879   PyObject *argv[2] = {
36880     0
36881   };
36882 
36883   if (!(argc = SWIG_Python_UnpackTuple(args,"new_TradWeight",0,1,argv))) SWIG_fail;
36884   --argc;
36885   if (argc == 0) {
36886     return _wrap_new_TradWeight__SWIG_1(self, argc, argv);
36887   }
36888   if (argc == 1) {
36889     return _wrap_new_TradWeight__SWIG_0(self, argc, argv);
36890   }
36891 
36892 fail:
36893   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_TradWeight'.\n"
36894     "  Possible C/C++ prototypes are:\n"
36895     "    Xapian::TradWeight::TradWeight(double)\n"
36896     "    Xapian::TradWeight::TradWeight()\n");
36897   return 0;
36898 }
36899 
36900 
_wrap_delete_TradWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36901 SWIGINTERN PyObject *_wrap_delete_TradWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36902   PyObject *resultobj = 0;
36903   Xapian::TradWeight *arg1 = (Xapian::TradWeight *) 0 ;
36904   void *argp1 = 0 ;
36905   int res1 = 0 ;
36906   PyObject *swig_obj[1] ;
36907 
36908   if (!args) SWIG_fail;
36909   swig_obj[0] = args;
36910   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__TradWeight, SWIG_POINTER_DISOWN |  0 );
36911   if (!SWIG_IsOK(res1)) {
36912     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TradWeight" "', argument " "1"" of type '" "Xapian::TradWeight *""'");
36913   }
36914   arg1 = reinterpret_cast< Xapian::TradWeight * >(argp1);
36915   {
36916     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36917     delete arg1;
36918     SWIG_PYTHON_THREAD_END_ALLOW;
36919   }
36920   resultobj = SWIG_Py_Void();
36921   return resultobj;
36922 fail:
36923   return NULL;
36924 }
36925 
36926 
TradWeight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36927 SWIGINTERN PyObject *TradWeight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36928   PyObject *obj;
36929   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
36930   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__TradWeight, SWIG_NewClientData(obj));
36931   return SWIG_Py_Void();
36932 }
36933 
TradWeight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)36934 SWIGINTERN PyObject *TradWeight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36935   return SWIG_Python_InitShadowInstance(args);
36936 }
36937 
_wrap_new_InL2Weight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)36938 SWIGINTERN PyObject *_wrap_new_InL2Weight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
36939   PyObject *resultobj = 0;
36940   double arg1 ;
36941   double val1 ;
36942   int ecode1 = 0 ;
36943   Xapian::InL2Weight *result = 0 ;
36944 
36945   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
36946   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
36947   if (!SWIG_IsOK(ecode1)) {
36948     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InL2Weight" "', argument " "1"" of type '" "double""'");
36949   }
36950   arg1 = static_cast< double >(val1);
36951   {
36952     try {
36953       {
36954         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36955         result = (Xapian::InL2Weight *)new Xapian::InL2Weight(arg1);
36956         SWIG_PYTHON_THREAD_END_ALLOW;
36957       }
36958     } catch (...) {
36959       Xapian::SetPythonException();
36960       SWIG_fail;
36961     }
36962   }
36963   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InL2Weight, SWIG_POINTER_NEW |  0 );
36964   return resultobj;
36965 fail:
36966   return NULL;
36967 }
36968 
36969 
_wrap_new_InL2Weight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))36970 SWIGINTERN PyObject *_wrap_new_InL2Weight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
36971   PyObject *resultobj = 0;
36972   Xapian::InL2Weight *result = 0 ;
36973 
36974   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
36975   {
36976     try {
36977       {
36978         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
36979         result = (Xapian::InL2Weight *)new Xapian::InL2Weight();
36980         SWIG_PYTHON_THREAD_END_ALLOW;
36981       }
36982     } catch (...) {
36983       Xapian::SetPythonException();
36984       SWIG_fail;
36985     }
36986   }
36987   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__InL2Weight, SWIG_POINTER_NEW |  0 );
36988   return resultobj;
36989 fail:
36990   return NULL;
36991 }
36992 
36993 
_wrap_new_InL2Weight(PyObject * self,PyObject * args)36994 SWIGINTERN PyObject *_wrap_new_InL2Weight(PyObject *self, PyObject *args) {
36995   Py_ssize_t argc;
36996   PyObject *argv[2] = {
36997     0
36998   };
36999 
37000   if (!(argc = SWIG_Python_UnpackTuple(args,"new_InL2Weight",0,1,argv))) SWIG_fail;
37001   --argc;
37002   if (argc == 0) {
37003     return _wrap_new_InL2Weight__SWIG_1(self, argc, argv);
37004   }
37005   if (argc == 1) {
37006     return _wrap_new_InL2Weight__SWIG_0(self, argc, argv);
37007   }
37008 
37009 fail:
37010   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_InL2Weight'.\n"
37011     "  Possible C/C++ prototypes are:\n"
37012     "    Xapian::InL2Weight::InL2Weight(double)\n"
37013     "    Xapian::InL2Weight::InL2Weight()\n");
37014   return 0;
37015 }
37016 
37017 
_wrap_delete_InL2Weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37018 SWIGINTERN PyObject *_wrap_delete_InL2Weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37019   PyObject *resultobj = 0;
37020   Xapian::InL2Weight *arg1 = (Xapian::InL2Weight *) 0 ;
37021   void *argp1 = 0 ;
37022   int res1 = 0 ;
37023   PyObject *swig_obj[1] ;
37024 
37025   if (!args) SWIG_fail;
37026   swig_obj[0] = args;
37027   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__InL2Weight, SWIG_POINTER_DISOWN |  0 );
37028   if (!SWIG_IsOK(res1)) {
37029     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InL2Weight" "', argument " "1"" of type '" "Xapian::InL2Weight *""'");
37030   }
37031   arg1 = reinterpret_cast< Xapian::InL2Weight * >(argp1);
37032   {
37033     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37034     delete arg1;
37035     SWIG_PYTHON_THREAD_END_ALLOW;
37036   }
37037   resultobj = SWIG_Py_Void();
37038   return resultobj;
37039 fail:
37040   return NULL;
37041 }
37042 
37043 
InL2Weight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37044 SWIGINTERN PyObject *InL2Weight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37045   PyObject *obj;
37046   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
37047   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__InL2Weight, SWIG_NewClientData(obj));
37048   return SWIG_Py_Void();
37049 }
37050 
InL2Weight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37051 SWIGINTERN PyObject *InL2Weight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37052   return SWIG_Python_InitShadowInstance(args);
37053 }
37054 
_wrap_new_IfB2Weight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)37055 SWIGINTERN PyObject *_wrap_new_IfB2Weight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
37056   PyObject *resultobj = 0;
37057   double arg1 ;
37058   double val1 ;
37059   int ecode1 = 0 ;
37060   Xapian::IfB2Weight *result = 0 ;
37061 
37062   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
37063   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
37064   if (!SWIG_IsOK(ecode1)) {
37065     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IfB2Weight" "', argument " "1"" of type '" "double""'");
37066   }
37067   arg1 = static_cast< double >(val1);
37068   {
37069     try {
37070       {
37071         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37072         result = (Xapian::IfB2Weight *)new Xapian::IfB2Weight(arg1);
37073         SWIG_PYTHON_THREAD_END_ALLOW;
37074       }
37075     } catch (...) {
37076       Xapian::SetPythonException();
37077       SWIG_fail;
37078     }
37079   }
37080   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__IfB2Weight, SWIG_POINTER_NEW |  0 );
37081   return resultobj;
37082 fail:
37083   return NULL;
37084 }
37085 
37086 
_wrap_new_IfB2Weight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))37087 SWIGINTERN PyObject *_wrap_new_IfB2Weight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
37088   PyObject *resultobj = 0;
37089   Xapian::IfB2Weight *result = 0 ;
37090 
37091   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
37092   {
37093     try {
37094       {
37095         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37096         result = (Xapian::IfB2Weight *)new Xapian::IfB2Weight();
37097         SWIG_PYTHON_THREAD_END_ALLOW;
37098       }
37099     } catch (...) {
37100       Xapian::SetPythonException();
37101       SWIG_fail;
37102     }
37103   }
37104   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__IfB2Weight, SWIG_POINTER_NEW |  0 );
37105   return resultobj;
37106 fail:
37107   return NULL;
37108 }
37109 
37110 
_wrap_new_IfB2Weight(PyObject * self,PyObject * args)37111 SWIGINTERN PyObject *_wrap_new_IfB2Weight(PyObject *self, PyObject *args) {
37112   Py_ssize_t argc;
37113   PyObject *argv[2] = {
37114     0
37115   };
37116 
37117   if (!(argc = SWIG_Python_UnpackTuple(args,"new_IfB2Weight",0,1,argv))) SWIG_fail;
37118   --argc;
37119   if (argc == 0) {
37120     return _wrap_new_IfB2Weight__SWIG_1(self, argc, argv);
37121   }
37122   if (argc == 1) {
37123     return _wrap_new_IfB2Weight__SWIG_0(self, argc, argv);
37124   }
37125 
37126 fail:
37127   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_IfB2Weight'.\n"
37128     "  Possible C/C++ prototypes are:\n"
37129     "    Xapian::IfB2Weight::IfB2Weight(double)\n"
37130     "    Xapian::IfB2Weight::IfB2Weight()\n");
37131   return 0;
37132 }
37133 
37134 
_wrap_delete_IfB2Weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37135 SWIGINTERN PyObject *_wrap_delete_IfB2Weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37136   PyObject *resultobj = 0;
37137   Xapian::IfB2Weight *arg1 = (Xapian::IfB2Weight *) 0 ;
37138   void *argp1 = 0 ;
37139   int res1 = 0 ;
37140   PyObject *swig_obj[1] ;
37141 
37142   if (!args) SWIG_fail;
37143   swig_obj[0] = args;
37144   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__IfB2Weight, SWIG_POINTER_DISOWN |  0 );
37145   if (!SWIG_IsOK(res1)) {
37146     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IfB2Weight" "', argument " "1"" of type '" "Xapian::IfB2Weight *""'");
37147   }
37148   arg1 = reinterpret_cast< Xapian::IfB2Weight * >(argp1);
37149   {
37150     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37151     delete arg1;
37152     SWIG_PYTHON_THREAD_END_ALLOW;
37153   }
37154   resultobj = SWIG_Py_Void();
37155   return resultobj;
37156 fail:
37157   return NULL;
37158 }
37159 
37160 
IfB2Weight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37161 SWIGINTERN PyObject *IfB2Weight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37162   PyObject *obj;
37163   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
37164   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__IfB2Weight, SWIG_NewClientData(obj));
37165   return SWIG_Py_Void();
37166 }
37167 
IfB2Weight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37168 SWIGINTERN PyObject *IfB2Weight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37169   return SWIG_Python_InitShadowInstance(args);
37170 }
37171 
_wrap_new_IneB2Weight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)37172 SWIGINTERN PyObject *_wrap_new_IneB2Weight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
37173   PyObject *resultobj = 0;
37174   double arg1 ;
37175   double val1 ;
37176   int ecode1 = 0 ;
37177   Xapian::IneB2Weight *result = 0 ;
37178 
37179   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
37180   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
37181   if (!SWIG_IsOK(ecode1)) {
37182     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IneB2Weight" "', argument " "1"" of type '" "double""'");
37183   }
37184   arg1 = static_cast< double >(val1);
37185   {
37186     try {
37187       {
37188         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37189         result = (Xapian::IneB2Weight *)new Xapian::IneB2Weight(arg1);
37190         SWIG_PYTHON_THREAD_END_ALLOW;
37191       }
37192     } catch (...) {
37193       Xapian::SetPythonException();
37194       SWIG_fail;
37195     }
37196   }
37197   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__IneB2Weight, SWIG_POINTER_NEW |  0 );
37198   return resultobj;
37199 fail:
37200   return NULL;
37201 }
37202 
37203 
_wrap_new_IneB2Weight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))37204 SWIGINTERN PyObject *_wrap_new_IneB2Weight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
37205   PyObject *resultobj = 0;
37206   Xapian::IneB2Weight *result = 0 ;
37207 
37208   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
37209   {
37210     try {
37211       {
37212         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37213         result = (Xapian::IneB2Weight *)new Xapian::IneB2Weight();
37214         SWIG_PYTHON_THREAD_END_ALLOW;
37215       }
37216     } catch (...) {
37217       Xapian::SetPythonException();
37218       SWIG_fail;
37219     }
37220   }
37221   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__IneB2Weight, SWIG_POINTER_NEW |  0 );
37222   return resultobj;
37223 fail:
37224   return NULL;
37225 }
37226 
37227 
_wrap_new_IneB2Weight(PyObject * self,PyObject * args)37228 SWIGINTERN PyObject *_wrap_new_IneB2Weight(PyObject *self, PyObject *args) {
37229   Py_ssize_t argc;
37230   PyObject *argv[2] = {
37231     0
37232   };
37233 
37234   if (!(argc = SWIG_Python_UnpackTuple(args,"new_IneB2Weight",0,1,argv))) SWIG_fail;
37235   --argc;
37236   if (argc == 0) {
37237     return _wrap_new_IneB2Weight__SWIG_1(self, argc, argv);
37238   }
37239   if (argc == 1) {
37240     return _wrap_new_IneB2Weight__SWIG_0(self, argc, argv);
37241   }
37242 
37243 fail:
37244   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_IneB2Weight'.\n"
37245     "  Possible C/C++ prototypes are:\n"
37246     "    Xapian::IneB2Weight::IneB2Weight(double)\n"
37247     "    Xapian::IneB2Weight::IneB2Weight()\n");
37248   return 0;
37249 }
37250 
37251 
_wrap_delete_IneB2Weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37252 SWIGINTERN PyObject *_wrap_delete_IneB2Weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37253   PyObject *resultobj = 0;
37254   Xapian::IneB2Weight *arg1 = (Xapian::IneB2Weight *) 0 ;
37255   void *argp1 = 0 ;
37256   int res1 = 0 ;
37257   PyObject *swig_obj[1] ;
37258 
37259   if (!args) SWIG_fail;
37260   swig_obj[0] = args;
37261   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__IneB2Weight, SWIG_POINTER_DISOWN |  0 );
37262   if (!SWIG_IsOK(res1)) {
37263     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IneB2Weight" "', argument " "1"" of type '" "Xapian::IneB2Weight *""'");
37264   }
37265   arg1 = reinterpret_cast< Xapian::IneB2Weight * >(argp1);
37266   {
37267     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37268     delete arg1;
37269     SWIG_PYTHON_THREAD_END_ALLOW;
37270   }
37271   resultobj = SWIG_Py_Void();
37272   return resultobj;
37273 fail:
37274   return NULL;
37275 }
37276 
37277 
IneB2Weight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37278 SWIGINTERN PyObject *IneB2Weight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37279   PyObject *obj;
37280   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
37281   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__IneB2Weight, SWIG_NewClientData(obj));
37282   return SWIG_Py_Void();
37283 }
37284 
IneB2Weight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37285 SWIGINTERN PyObject *IneB2Weight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37286   return SWIG_Python_InitShadowInstance(args);
37287 }
37288 
_wrap_new_BB2Weight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)37289 SWIGINTERN PyObject *_wrap_new_BB2Weight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
37290   PyObject *resultobj = 0;
37291   double arg1 ;
37292   double val1 ;
37293   int ecode1 = 0 ;
37294   Xapian::BB2Weight *result = 0 ;
37295 
37296   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
37297   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
37298   if (!SWIG_IsOK(ecode1)) {
37299     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BB2Weight" "', argument " "1"" of type '" "double""'");
37300   }
37301   arg1 = static_cast< double >(val1);
37302   {
37303     try {
37304       {
37305         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37306         result = (Xapian::BB2Weight *)new Xapian::BB2Weight(arg1);
37307         SWIG_PYTHON_THREAD_END_ALLOW;
37308       }
37309     } catch (...) {
37310       Xapian::SetPythonException();
37311       SWIG_fail;
37312     }
37313   }
37314   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BB2Weight, SWIG_POINTER_NEW |  0 );
37315   return resultobj;
37316 fail:
37317   return NULL;
37318 }
37319 
37320 
_wrap_new_BB2Weight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))37321 SWIGINTERN PyObject *_wrap_new_BB2Weight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
37322   PyObject *resultobj = 0;
37323   Xapian::BB2Weight *result = 0 ;
37324 
37325   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
37326   {
37327     try {
37328       {
37329         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37330         result = (Xapian::BB2Weight *)new Xapian::BB2Weight();
37331         SWIG_PYTHON_THREAD_END_ALLOW;
37332       }
37333     } catch (...) {
37334       Xapian::SetPythonException();
37335       SWIG_fail;
37336     }
37337   }
37338   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__BB2Weight, SWIG_POINTER_NEW |  0 );
37339   return resultobj;
37340 fail:
37341   return NULL;
37342 }
37343 
37344 
_wrap_new_BB2Weight(PyObject * self,PyObject * args)37345 SWIGINTERN PyObject *_wrap_new_BB2Weight(PyObject *self, PyObject *args) {
37346   Py_ssize_t argc;
37347   PyObject *argv[2] = {
37348     0
37349   };
37350 
37351   if (!(argc = SWIG_Python_UnpackTuple(args,"new_BB2Weight",0,1,argv))) SWIG_fail;
37352   --argc;
37353   if (argc == 0) {
37354     return _wrap_new_BB2Weight__SWIG_1(self, argc, argv);
37355   }
37356   if (argc == 1) {
37357     return _wrap_new_BB2Weight__SWIG_0(self, argc, argv);
37358   }
37359 
37360 fail:
37361   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BB2Weight'.\n"
37362     "  Possible C/C++ prototypes are:\n"
37363     "    Xapian::BB2Weight::BB2Weight(double)\n"
37364     "    Xapian::BB2Weight::BB2Weight()\n");
37365   return 0;
37366 }
37367 
37368 
_wrap_delete_BB2Weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37369 SWIGINTERN PyObject *_wrap_delete_BB2Weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37370   PyObject *resultobj = 0;
37371   Xapian::BB2Weight *arg1 = (Xapian::BB2Weight *) 0 ;
37372   void *argp1 = 0 ;
37373   int res1 = 0 ;
37374   PyObject *swig_obj[1] ;
37375 
37376   if (!args) SWIG_fail;
37377   swig_obj[0] = args;
37378   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__BB2Weight, SWIG_POINTER_DISOWN |  0 );
37379   if (!SWIG_IsOK(res1)) {
37380     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BB2Weight" "', argument " "1"" of type '" "Xapian::BB2Weight *""'");
37381   }
37382   arg1 = reinterpret_cast< Xapian::BB2Weight * >(argp1);
37383   {
37384     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37385     delete arg1;
37386     SWIG_PYTHON_THREAD_END_ALLOW;
37387   }
37388   resultobj = SWIG_Py_Void();
37389   return resultobj;
37390 fail:
37391   return NULL;
37392 }
37393 
37394 
BB2Weight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37395 SWIGINTERN PyObject *BB2Weight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37396   PyObject *obj;
37397   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
37398   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__BB2Weight, SWIG_NewClientData(obj));
37399   return SWIG_Py_Void();
37400 }
37401 
BB2Weight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37402 SWIGINTERN PyObject *BB2Weight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37403   return SWIG_Python_InitShadowInstance(args);
37404 }
37405 
_wrap_new_DLHWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37406 SWIGINTERN PyObject *_wrap_new_DLHWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37407   PyObject *resultobj = 0;
37408   Xapian::DLHWeight *result = 0 ;
37409 
37410   if (!SWIG_Python_UnpackTuple(args,"new_DLHWeight",0,0,0)) SWIG_fail;
37411   {
37412     try {
37413       {
37414         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37415         result = (Xapian::DLHWeight *)new Xapian::DLHWeight();
37416         SWIG_PYTHON_THREAD_END_ALLOW;
37417       }
37418     } catch (...) {
37419       Xapian::SetPythonException();
37420       SWIG_fail;
37421     }
37422   }
37423   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DLHWeight, SWIG_POINTER_NEW |  0 );
37424   return resultobj;
37425 fail:
37426   return NULL;
37427 }
37428 
37429 
_wrap_delete_DLHWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37430 SWIGINTERN PyObject *_wrap_delete_DLHWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37431   PyObject *resultobj = 0;
37432   Xapian::DLHWeight *arg1 = (Xapian::DLHWeight *) 0 ;
37433   void *argp1 = 0 ;
37434   int res1 = 0 ;
37435   PyObject *swig_obj[1] ;
37436 
37437   if (!args) SWIG_fail;
37438   swig_obj[0] = args;
37439   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DLHWeight, SWIG_POINTER_DISOWN |  0 );
37440   if (!SWIG_IsOK(res1)) {
37441     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DLHWeight" "', argument " "1"" of type '" "Xapian::DLHWeight *""'");
37442   }
37443   arg1 = reinterpret_cast< Xapian::DLHWeight * >(argp1);
37444   {
37445     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37446     delete arg1;
37447     SWIG_PYTHON_THREAD_END_ALLOW;
37448   }
37449   resultobj = SWIG_Py_Void();
37450   return resultobj;
37451 fail:
37452   return NULL;
37453 }
37454 
37455 
DLHWeight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37456 SWIGINTERN PyObject *DLHWeight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37457   PyObject *obj;
37458   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
37459   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DLHWeight, SWIG_NewClientData(obj));
37460   return SWIG_Py_Void();
37461 }
37462 
DLHWeight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37463 SWIGINTERN PyObject *DLHWeight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37464   return SWIG_Python_InitShadowInstance(args);
37465 }
37466 
_wrap_new_PL2Weight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)37467 SWIGINTERN PyObject *_wrap_new_PL2Weight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
37468   PyObject *resultobj = 0;
37469   double arg1 ;
37470   double val1 ;
37471   int ecode1 = 0 ;
37472   Xapian::PL2Weight *result = 0 ;
37473 
37474   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
37475   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
37476   if (!SWIG_IsOK(ecode1)) {
37477     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PL2Weight" "', argument " "1"" of type '" "double""'");
37478   }
37479   arg1 = static_cast< double >(val1);
37480   {
37481     try {
37482       {
37483         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37484         result = (Xapian::PL2Weight *)new Xapian::PL2Weight(arg1);
37485         SWIG_PYTHON_THREAD_END_ALLOW;
37486       }
37487     } catch (...) {
37488       Xapian::SetPythonException();
37489       SWIG_fail;
37490     }
37491   }
37492   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PL2Weight, SWIG_POINTER_NEW |  0 );
37493   return resultobj;
37494 fail:
37495   return NULL;
37496 }
37497 
37498 
_wrap_new_PL2Weight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))37499 SWIGINTERN PyObject *_wrap_new_PL2Weight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
37500   PyObject *resultobj = 0;
37501   Xapian::PL2Weight *result = 0 ;
37502 
37503   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
37504   {
37505     try {
37506       {
37507         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37508         result = (Xapian::PL2Weight *)new Xapian::PL2Weight();
37509         SWIG_PYTHON_THREAD_END_ALLOW;
37510       }
37511     } catch (...) {
37512       Xapian::SetPythonException();
37513       SWIG_fail;
37514     }
37515   }
37516   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PL2Weight, SWIG_POINTER_NEW |  0 );
37517   return resultobj;
37518 fail:
37519   return NULL;
37520 }
37521 
37522 
_wrap_new_PL2Weight(PyObject * self,PyObject * args)37523 SWIGINTERN PyObject *_wrap_new_PL2Weight(PyObject *self, PyObject *args) {
37524   Py_ssize_t argc;
37525   PyObject *argv[2] = {
37526     0
37527   };
37528 
37529   if (!(argc = SWIG_Python_UnpackTuple(args,"new_PL2Weight",0,1,argv))) SWIG_fail;
37530   --argc;
37531   if (argc == 0) {
37532     return _wrap_new_PL2Weight__SWIG_1(self, argc, argv);
37533   }
37534   if (argc == 1) {
37535     return _wrap_new_PL2Weight__SWIG_0(self, argc, argv);
37536   }
37537 
37538 fail:
37539   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_PL2Weight'.\n"
37540     "  Possible C/C++ prototypes are:\n"
37541     "    Xapian::PL2Weight::PL2Weight(double)\n"
37542     "    Xapian::PL2Weight::PL2Weight()\n");
37543   return 0;
37544 }
37545 
37546 
_wrap_delete_PL2Weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37547 SWIGINTERN PyObject *_wrap_delete_PL2Weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37548   PyObject *resultobj = 0;
37549   Xapian::PL2Weight *arg1 = (Xapian::PL2Weight *) 0 ;
37550   void *argp1 = 0 ;
37551   int res1 = 0 ;
37552   PyObject *swig_obj[1] ;
37553 
37554   if (!args) SWIG_fail;
37555   swig_obj[0] = args;
37556   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PL2Weight, SWIG_POINTER_DISOWN |  0 );
37557   if (!SWIG_IsOK(res1)) {
37558     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PL2Weight" "', argument " "1"" of type '" "Xapian::PL2Weight *""'");
37559   }
37560   arg1 = reinterpret_cast< Xapian::PL2Weight * >(argp1);
37561   {
37562     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37563     delete arg1;
37564     SWIG_PYTHON_THREAD_END_ALLOW;
37565   }
37566   resultobj = SWIG_Py_Void();
37567   return resultobj;
37568 fail:
37569   return NULL;
37570 }
37571 
37572 
PL2Weight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37573 SWIGINTERN PyObject *PL2Weight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37574   PyObject *obj;
37575   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
37576   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__PL2Weight, SWIG_NewClientData(obj));
37577   return SWIG_Py_Void();
37578 }
37579 
PL2Weight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37580 SWIGINTERN PyObject *PL2Weight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37581   return SWIG_Python_InitShadowInstance(args);
37582 }
37583 
_wrap_new_PL2PlusWeight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)37584 SWIGINTERN PyObject *_wrap_new_PL2PlusWeight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
37585   PyObject *resultobj = 0;
37586   double arg1 ;
37587   double arg2 ;
37588   double val1 ;
37589   int ecode1 = 0 ;
37590   double val2 ;
37591   int ecode2 = 0 ;
37592   Xapian::PL2PlusWeight *result = 0 ;
37593 
37594   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
37595   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
37596   if (!SWIG_IsOK(ecode1)) {
37597     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PL2PlusWeight" "', argument " "1"" of type '" "double""'");
37598   }
37599   arg1 = static_cast< double >(val1);
37600   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
37601   if (!SWIG_IsOK(ecode2)) {
37602     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PL2PlusWeight" "', argument " "2"" of type '" "double""'");
37603   }
37604   arg2 = static_cast< double >(val2);
37605   {
37606     try {
37607       {
37608         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37609         result = (Xapian::PL2PlusWeight *)new Xapian::PL2PlusWeight(arg1,arg2);
37610         SWIG_PYTHON_THREAD_END_ALLOW;
37611       }
37612     } catch (...) {
37613       Xapian::SetPythonException();
37614       SWIG_fail;
37615     }
37616   }
37617   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PL2PlusWeight, SWIG_POINTER_NEW |  0 );
37618   return resultobj;
37619 fail:
37620   return NULL;
37621 }
37622 
37623 
_wrap_new_PL2PlusWeight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))37624 SWIGINTERN PyObject *_wrap_new_PL2PlusWeight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
37625   PyObject *resultobj = 0;
37626   Xapian::PL2PlusWeight *result = 0 ;
37627 
37628   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
37629   {
37630     try {
37631       {
37632         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37633         result = (Xapian::PL2PlusWeight *)new Xapian::PL2PlusWeight();
37634         SWIG_PYTHON_THREAD_END_ALLOW;
37635       }
37636     } catch (...) {
37637       Xapian::SetPythonException();
37638       SWIG_fail;
37639     }
37640   }
37641   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PL2PlusWeight, SWIG_POINTER_NEW |  0 );
37642   return resultobj;
37643 fail:
37644   return NULL;
37645 }
37646 
37647 
_wrap_new_PL2PlusWeight(PyObject * self,PyObject * args)37648 SWIGINTERN PyObject *_wrap_new_PL2PlusWeight(PyObject *self, PyObject *args) {
37649   Py_ssize_t argc;
37650   PyObject *argv[3] = {
37651     0
37652   };
37653 
37654   if (!(argc = SWIG_Python_UnpackTuple(args,"new_PL2PlusWeight",0,2,argv))) SWIG_fail;
37655   --argc;
37656   if (argc == 0) {
37657     return _wrap_new_PL2PlusWeight__SWIG_1(self, argc, argv);
37658   }
37659   if (argc == 2) {
37660     return _wrap_new_PL2PlusWeight__SWIG_0(self, argc, argv);
37661   }
37662 
37663 fail:
37664   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_PL2PlusWeight'.\n"
37665     "  Possible C/C++ prototypes are:\n"
37666     "    Xapian::PL2PlusWeight::PL2PlusWeight(double,double)\n"
37667     "    Xapian::PL2PlusWeight::PL2PlusWeight()\n");
37668   return 0;
37669 }
37670 
37671 
_wrap_delete_PL2PlusWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37672 SWIGINTERN PyObject *_wrap_delete_PL2PlusWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37673   PyObject *resultobj = 0;
37674   Xapian::PL2PlusWeight *arg1 = (Xapian::PL2PlusWeight *) 0 ;
37675   void *argp1 = 0 ;
37676   int res1 = 0 ;
37677   PyObject *swig_obj[1] ;
37678 
37679   if (!args) SWIG_fail;
37680   swig_obj[0] = args;
37681   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PL2PlusWeight, SWIG_POINTER_DISOWN |  0 );
37682   if (!SWIG_IsOK(res1)) {
37683     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PL2PlusWeight" "', argument " "1"" of type '" "Xapian::PL2PlusWeight *""'");
37684   }
37685   arg1 = reinterpret_cast< Xapian::PL2PlusWeight * >(argp1);
37686   {
37687     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37688     delete arg1;
37689     SWIG_PYTHON_THREAD_END_ALLOW;
37690   }
37691   resultobj = SWIG_Py_Void();
37692   return resultobj;
37693 fail:
37694   return NULL;
37695 }
37696 
37697 
PL2PlusWeight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37698 SWIGINTERN PyObject *PL2PlusWeight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37699   PyObject *obj;
37700   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
37701   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__PL2PlusWeight, SWIG_NewClientData(obj));
37702   return SWIG_Py_Void();
37703 }
37704 
PL2PlusWeight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37705 SWIGINTERN PyObject *PL2PlusWeight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37706   return SWIG_Python_InitShadowInstance(args);
37707 }
37708 
_wrap_new_DPHWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37709 SWIGINTERN PyObject *_wrap_new_DPHWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37710   PyObject *resultobj = 0;
37711   Xapian::DPHWeight *result = 0 ;
37712 
37713   if (!SWIG_Python_UnpackTuple(args,"new_DPHWeight",0,0,0)) SWIG_fail;
37714   {
37715     try {
37716       {
37717         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37718         result = (Xapian::DPHWeight *)new Xapian::DPHWeight();
37719         SWIG_PYTHON_THREAD_END_ALLOW;
37720       }
37721     } catch (...) {
37722       Xapian::SetPythonException();
37723       SWIG_fail;
37724     }
37725   }
37726   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DPHWeight, SWIG_POINTER_NEW |  0 );
37727   return resultobj;
37728 fail:
37729   return NULL;
37730 }
37731 
37732 
_wrap_delete_DPHWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37733 SWIGINTERN PyObject *_wrap_delete_DPHWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37734   PyObject *resultobj = 0;
37735   Xapian::DPHWeight *arg1 = (Xapian::DPHWeight *) 0 ;
37736   void *argp1 = 0 ;
37737   int res1 = 0 ;
37738   PyObject *swig_obj[1] ;
37739 
37740   if (!args) SWIG_fail;
37741   swig_obj[0] = args;
37742   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DPHWeight, SWIG_POINTER_DISOWN |  0 );
37743   if (!SWIG_IsOK(res1)) {
37744     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DPHWeight" "', argument " "1"" of type '" "Xapian::DPHWeight *""'");
37745   }
37746   arg1 = reinterpret_cast< Xapian::DPHWeight * >(argp1);
37747   {
37748     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37749     delete arg1;
37750     SWIG_PYTHON_THREAD_END_ALLOW;
37751   }
37752   resultobj = SWIG_Py_Void();
37753   return resultobj;
37754 fail:
37755   return NULL;
37756 }
37757 
37758 
DPHWeight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37759 SWIGINTERN PyObject *DPHWeight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37760   PyObject *obj;
37761   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
37762   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DPHWeight, SWIG_NewClientData(obj));
37763   return SWIG_Py_Void();
37764 }
37765 
DPHWeight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)37766 SWIGINTERN PyObject *DPHWeight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37767   return SWIG_Python_InitShadowInstance(args);
37768 }
37769 
_wrap_new_LMWeight__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)37770 SWIGINTERN PyObject *_wrap_new_LMWeight__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
37771   PyObject *resultobj = 0;
37772   double arg1 ;
37773   Xapian::Weight::type_smoothing arg2 ;
37774   double arg3 ;
37775   double arg4 ;
37776   double val1 ;
37777   int ecode1 = 0 ;
37778   int val2 ;
37779   int ecode2 = 0 ;
37780   double val3 ;
37781   int ecode3 = 0 ;
37782   double val4 ;
37783   int ecode4 = 0 ;
37784   Xapian::LMWeight *result = 0 ;
37785 
37786   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
37787   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
37788   if (!SWIG_IsOK(ecode1)) {
37789     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LMWeight" "', argument " "1"" of type '" "double""'");
37790   }
37791   arg1 = static_cast< double >(val1);
37792   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
37793   if (!SWIG_IsOK(ecode2)) {
37794     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LMWeight" "', argument " "2"" of type '" "Xapian::Weight::type_smoothing""'");
37795   }
37796   arg2 = static_cast< Xapian::Weight::type_smoothing >(val2);
37797   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
37798   if (!SWIG_IsOK(ecode3)) {
37799     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LMWeight" "', argument " "3"" of type '" "double""'");
37800   }
37801   arg3 = static_cast< double >(val3);
37802   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
37803   if (!SWIG_IsOK(ecode4)) {
37804     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LMWeight" "', argument " "4"" of type '" "double""'");
37805   }
37806   arg4 = static_cast< double >(val4);
37807   {
37808     try {
37809       {
37810         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37811         result = (Xapian::LMWeight *)new Xapian::LMWeight(arg1,arg2,arg3,arg4);
37812         SWIG_PYTHON_THREAD_END_ALLOW;
37813       }
37814     } catch (...) {
37815       Xapian::SetPythonException();
37816       SWIG_fail;
37817     }
37818   }
37819   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LMWeight, SWIG_POINTER_NEW |  0 );
37820   return resultobj;
37821 fail:
37822   return NULL;
37823 }
37824 
37825 
_wrap_new_LMWeight__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)37826 SWIGINTERN PyObject *_wrap_new_LMWeight__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
37827   PyObject *resultobj = 0;
37828   double arg1 ;
37829   Xapian::Weight::type_smoothing arg2 ;
37830   double arg3 ;
37831   double val1 ;
37832   int ecode1 = 0 ;
37833   int val2 ;
37834   int ecode2 = 0 ;
37835   double val3 ;
37836   int ecode3 = 0 ;
37837   Xapian::LMWeight *result = 0 ;
37838 
37839   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
37840   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
37841   if (!SWIG_IsOK(ecode1)) {
37842     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LMWeight" "', argument " "1"" of type '" "double""'");
37843   }
37844   arg1 = static_cast< double >(val1);
37845   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
37846   if (!SWIG_IsOK(ecode2)) {
37847     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LMWeight" "', argument " "2"" of type '" "Xapian::Weight::type_smoothing""'");
37848   }
37849   arg2 = static_cast< Xapian::Weight::type_smoothing >(val2);
37850   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
37851   if (!SWIG_IsOK(ecode3)) {
37852     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LMWeight" "', argument " "3"" of type '" "double""'");
37853   }
37854   arg3 = static_cast< double >(val3);
37855   {
37856     try {
37857       {
37858         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37859         result = (Xapian::LMWeight *)new Xapian::LMWeight(arg1,arg2,arg3);
37860         SWIG_PYTHON_THREAD_END_ALLOW;
37861       }
37862     } catch (...) {
37863       Xapian::SetPythonException();
37864       SWIG_fail;
37865     }
37866   }
37867   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LMWeight, SWIG_POINTER_NEW |  0 );
37868   return resultobj;
37869 fail:
37870   return NULL;
37871 }
37872 
37873 
_wrap_new_LMWeight__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)37874 SWIGINTERN PyObject *_wrap_new_LMWeight__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
37875   PyObject *resultobj = 0;
37876   double arg1 ;
37877   Xapian::Weight::type_smoothing arg2 ;
37878   double val1 ;
37879   int ecode1 = 0 ;
37880   int val2 ;
37881   int ecode2 = 0 ;
37882   Xapian::LMWeight *result = 0 ;
37883 
37884   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
37885   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
37886   if (!SWIG_IsOK(ecode1)) {
37887     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LMWeight" "', argument " "1"" of type '" "double""'");
37888   }
37889   arg1 = static_cast< double >(val1);
37890   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
37891   if (!SWIG_IsOK(ecode2)) {
37892     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LMWeight" "', argument " "2"" of type '" "Xapian::Weight::type_smoothing""'");
37893   }
37894   arg2 = static_cast< Xapian::Weight::type_smoothing >(val2);
37895   {
37896     try {
37897       {
37898         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37899         result = (Xapian::LMWeight *)new Xapian::LMWeight(arg1,arg2);
37900         SWIG_PYTHON_THREAD_END_ALLOW;
37901       }
37902     } catch (...) {
37903       Xapian::SetPythonException();
37904       SWIG_fail;
37905     }
37906   }
37907   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LMWeight, SWIG_POINTER_NEW |  0 );
37908   return resultobj;
37909 fail:
37910   return NULL;
37911 }
37912 
37913 
_wrap_new_LMWeight__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)37914 SWIGINTERN PyObject *_wrap_new_LMWeight__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
37915   PyObject *resultobj = 0;
37916   double arg1 ;
37917   double val1 ;
37918   int ecode1 = 0 ;
37919   Xapian::LMWeight *result = 0 ;
37920 
37921   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
37922   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
37923   if (!SWIG_IsOK(ecode1)) {
37924     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LMWeight" "', argument " "1"" of type '" "double""'");
37925   }
37926   arg1 = static_cast< double >(val1);
37927   {
37928     try {
37929       {
37930         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37931         result = (Xapian::LMWeight *)new Xapian::LMWeight(arg1);
37932         SWIG_PYTHON_THREAD_END_ALLOW;
37933       }
37934     } catch (...) {
37935       Xapian::SetPythonException();
37936       SWIG_fail;
37937     }
37938   }
37939   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LMWeight, SWIG_POINTER_NEW |  0 );
37940   return resultobj;
37941 fail:
37942   return NULL;
37943 }
37944 
37945 
_wrap_new_LMWeight__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))37946 SWIGINTERN PyObject *_wrap_new_LMWeight__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
37947   PyObject *resultobj = 0;
37948   Xapian::LMWeight *result = 0 ;
37949 
37950   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
37951   {
37952     try {
37953       {
37954         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37955         result = (Xapian::LMWeight *)new Xapian::LMWeight();
37956         SWIG_PYTHON_THREAD_END_ALLOW;
37957       }
37958     } catch (...) {
37959       Xapian::SetPythonException();
37960       SWIG_fail;
37961     }
37962   }
37963   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LMWeight, SWIG_POINTER_NEW |  0 );
37964   return resultobj;
37965 fail:
37966   return NULL;
37967 }
37968 
37969 
_wrap_new_LMWeight(PyObject * self,PyObject * args)37970 SWIGINTERN PyObject *_wrap_new_LMWeight(PyObject *self, PyObject *args) {
37971   Py_ssize_t argc;
37972   PyObject *argv[5] = {
37973     0
37974   };
37975 
37976   if (!(argc = SWIG_Python_UnpackTuple(args,"new_LMWeight",0,4,argv))) SWIG_fail;
37977   --argc;
37978   if (argc == 0) {
37979     return _wrap_new_LMWeight__SWIG_4(self, argc, argv);
37980   }
37981   if (argc == 1) {
37982     return _wrap_new_LMWeight__SWIG_3(self, argc, argv);
37983   }
37984   if (argc == 2) {
37985     return _wrap_new_LMWeight__SWIG_2(self, argc, argv);
37986   }
37987   if (argc == 3) {
37988     return _wrap_new_LMWeight__SWIG_1(self, argc, argv);
37989   }
37990   if (argc == 4) {
37991     return _wrap_new_LMWeight__SWIG_0(self, argc, argv);
37992   }
37993 
37994 fail:
37995   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_LMWeight'.\n"
37996     "  Possible C/C++ prototypes are:\n"
37997     "    Xapian::LMWeight::LMWeight(double,Xapian::Weight::type_smoothing,double,double)\n"
37998     "    Xapian::LMWeight::LMWeight(double,Xapian::Weight::type_smoothing,double)\n"
37999     "    Xapian::LMWeight::LMWeight(double,Xapian::Weight::type_smoothing)\n"
38000     "    Xapian::LMWeight::LMWeight(double)\n"
38001     "    Xapian::LMWeight::LMWeight()\n");
38002   return 0;
38003 }
38004 
38005 
_wrap_delete_LMWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38006 SWIGINTERN PyObject *_wrap_delete_LMWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38007   PyObject *resultobj = 0;
38008   Xapian::LMWeight *arg1 = (Xapian::LMWeight *) 0 ;
38009   void *argp1 = 0 ;
38010   int res1 = 0 ;
38011   PyObject *swig_obj[1] ;
38012 
38013   if (!args) SWIG_fail;
38014   swig_obj[0] = args;
38015   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LMWeight, SWIG_POINTER_DISOWN |  0 );
38016   if (!SWIG_IsOK(res1)) {
38017     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LMWeight" "', argument " "1"" of type '" "Xapian::LMWeight *""'");
38018   }
38019   arg1 = reinterpret_cast< Xapian::LMWeight * >(argp1);
38020   {
38021     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38022     delete arg1;
38023     SWIG_PYTHON_THREAD_END_ALLOW;
38024   }
38025   resultobj = SWIG_Py_Void();
38026   return resultobj;
38027 fail:
38028   return NULL;
38029 }
38030 
38031 
LMWeight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38032 SWIGINTERN PyObject *LMWeight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38033   PyObject *obj;
38034   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
38035   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__LMWeight, SWIG_NewClientData(obj));
38036   return SWIG_Py_Void();
38037 }
38038 
LMWeight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38039 SWIGINTERN PyObject *LMWeight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38040   return SWIG_Python_InitShadowInstance(args);
38041 }
38042 
_wrap_CoordWeight_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38043 SWIGINTERN PyObject *_wrap_CoordWeight_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38044   PyObject *resultobj = 0;
38045   Xapian::CoordWeight *arg1 = (Xapian::CoordWeight *) 0 ;
38046   double arg2 ;
38047   void *argp1 = 0 ;
38048   int res1 = 0 ;
38049   double val2 ;
38050   int ecode2 = 0 ;
38051   PyObject *swig_obj[2] ;
38052 
38053   if (!SWIG_Python_UnpackTuple(args,"CoordWeight_init",2,2,swig_obj)) SWIG_fail;
38054   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__CoordWeight, 0 |  0 );
38055   if (!SWIG_IsOK(res1)) {
38056     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoordWeight_init" "', argument " "1"" of type '" "Xapian::CoordWeight *""'");
38057   }
38058   arg1 = reinterpret_cast< Xapian::CoordWeight * >(argp1);
38059   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
38060   if (!SWIG_IsOK(ecode2)) {
38061     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CoordWeight_init" "', argument " "2"" of type '" "double""'");
38062   }
38063   arg2 = static_cast< double >(val2);
38064   {
38065     try {
38066       {
38067         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38068         (arg1)->init(arg2);
38069         SWIG_PYTHON_THREAD_END_ALLOW;
38070       }
38071     } catch (...) {
38072       Xapian::SetPythonException();
38073       SWIG_fail;
38074     }
38075   }
38076   resultobj = SWIG_Py_Void();
38077   return resultobj;
38078 fail:
38079   return NULL;
38080 }
38081 
38082 
_wrap_new_CoordWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38083 SWIGINTERN PyObject *_wrap_new_CoordWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38084   PyObject *resultobj = 0;
38085   Xapian::CoordWeight *result = 0 ;
38086 
38087   if (!SWIG_Python_UnpackTuple(args,"new_CoordWeight",0,0,0)) SWIG_fail;
38088   {
38089     try {
38090       {
38091         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38092         result = (Xapian::CoordWeight *)new Xapian::CoordWeight();
38093         SWIG_PYTHON_THREAD_END_ALLOW;
38094       }
38095     } catch (...) {
38096       Xapian::SetPythonException();
38097       SWIG_fail;
38098     }
38099   }
38100   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__CoordWeight, SWIG_POINTER_NEW |  0 );
38101   return resultobj;
38102 fail:
38103   return NULL;
38104 }
38105 
38106 
_wrap_delete_CoordWeight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38107 SWIGINTERN PyObject *_wrap_delete_CoordWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38108   PyObject *resultobj = 0;
38109   Xapian::CoordWeight *arg1 = (Xapian::CoordWeight *) 0 ;
38110   void *argp1 = 0 ;
38111   int res1 = 0 ;
38112   PyObject *swig_obj[1] ;
38113 
38114   if (!args) SWIG_fail;
38115   swig_obj[0] = args;
38116   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__CoordWeight, SWIG_POINTER_DISOWN |  0 );
38117   if (!SWIG_IsOK(res1)) {
38118     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CoordWeight" "', argument " "1"" of type '" "Xapian::CoordWeight *""'");
38119   }
38120   arg1 = reinterpret_cast< Xapian::CoordWeight * >(argp1);
38121   {
38122     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38123     delete arg1;
38124     SWIG_PYTHON_THREAD_END_ALLOW;
38125   }
38126   resultobj = SWIG_Py_Void();
38127   return resultobj;
38128 fail:
38129   return NULL;
38130 }
38131 
38132 
CoordWeight_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38133 SWIGINTERN PyObject *CoordWeight_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38134   PyObject *obj;
38135   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
38136   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__CoordWeight, SWIG_NewClientData(obj));
38137   return SWIG_Py_Void();
38138 }
38139 
CoordWeight_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38140 SWIGINTERN PyObject *CoordWeight_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38141   return SWIG_Python_InitShadowInstance(args);
38142 }
38143 
_wrap_new_Compactor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38144 SWIGINTERN PyObject *_wrap_new_Compactor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38145   PyObject *resultobj = 0;
38146   PyObject *arg1 = (PyObject *) 0 ;
38147   PyObject *swig_obj[1] ;
38148   Xapian::Compactor *result = 0 ;
38149 
38150   if (!args) SWIG_fail;
38151   swig_obj[0] = args;
38152   arg1 = swig_obj[0];
38153   {
38154     try {
38155       {
38156         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38157         if ( arg1 != Py_None ) {
38158           /* subclassed */
38159           result = (Xapian::Compactor *)new SwigDirector_Compactor(arg1);
38160         } else {
38161           result = (Xapian::Compactor *)new Xapian::Compactor();
38162         }
38163 
38164         SWIG_PYTHON_THREAD_END_ALLOW;
38165       }
38166     } catch (...) {
38167       Xapian::SetPythonException();
38168       SWIG_fail;
38169     }
38170   }
38171   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Compactor, SWIG_POINTER_NEW |  0 );
38172   return resultobj;
38173 fail:
38174   return NULL;
38175 }
38176 
38177 
_wrap_delete_Compactor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38178 SWIGINTERN PyObject *_wrap_delete_Compactor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38179   PyObject *resultobj = 0;
38180   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38181   void *argp1 = 0 ;
38182   int res1 = 0 ;
38183   PyObject *swig_obj[1] ;
38184 
38185   if (!args) SWIG_fail;
38186   swig_obj[0] = args;
38187   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, SWIG_POINTER_DISOWN |  0 );
38188   if (!SWIG_IsOK(res1)) {
38189     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Compactor" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38190   }
38191   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38192   {
38193     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38194     delete arg1;
38195     SWIG_PYTHON_THREAD_END_ALLOW;
38196   }
38197   resultobj = SWIG_Py_Void();
38198   return resultobj;
38199 fail:
38200   return NULL;
38201 }
38202 
38203 
_wrap_Compactor_set_block_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38204 SWIGINTERN PyObject *_wrap_Compactor_set_block_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38205   PyObject *resultobj = 0;
38206   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38207   size_t arg2 ;
38208   void *argp1 = 0 ;
38209   int res1 = 0 ;
38210   size_t val2 ;
38211   int ecode2 = 0 ;
38212   PyObject *swig_obj[2] ;
38213 
38214   if (!SWIG_Python_UnpackTuple(args,"Compactor_set_block_size",2,2,swig_obj)) SWIG_fail;
38215   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38216   if (!SWIG_IsOK(res1)) {
38217     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_set_block_size" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38218   }
38219   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38220   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
38221   if (!SWIG_IsOK(ecode2)) {
38222     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Compactor_set_block_size" "', argument " "2"" of type '" "size_t""'");
38223   }
38224   arg2 = static_cast< size_t >(val2);
38225   {
38226     try {
38227       {
38228         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38229         (arg1)->set_block_size(arg2);
38230         SWIG_PYTHON_THREAD_END_ALLOW;
38231       }
38232     } catch (...) {
38233       Xapian::SetPythonException();
38234       SWIG_fail;
38235     }
38236   }
38237   resultobj = SWIG_Py_Void();
38238   return resultobj;
38239 fail:
38240   return NULL;
38241 }
38242 
38243 
_wrap_Compactor_set_renumber(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38244 SWIGINTERN PyObject *_wrap_Compactor_set_renumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38245   PyObject *resultobj = 0;
38246   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38247   bool arg2 ;
38248   void *argp1 = 0 ;
38249   int res1 = 0 ;
38250   bool val2 ;
38251   int ecode2 = 0 ;
38252   PyObject *swig_obj[2] ;
38253 
38254   if (!SWIG_Python_UnpackTuple(args,"Compactor_set_renumber",2,2,swig_obj)) SWIG_fail;
38255   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38256   if (!SWIG_IsOK(res1)) {
38257     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_set_renumber" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38258   }
38259   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38260   ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
38261   if (!SWIG_IsOK(ecode2)) {
38262     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Compactor_set_renumber" "', argument " "2"" of type '" "bool""'");
38263   }
38264   arg2 = static_cast< bool >(val2);
38265   {
38266     try {
38267       {
38268         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38269         (arg1)->set_renumber(arg2);
38270         SWIG_PYTHON_THREAD_END_ALLOW;
38271       }
38272     } catch (...) {
38273       Xapian::SetPythonException();
38274       SWIG_fail;
38275     }
38276   }
38277   resultobj = SWIG_Py_Void();
38278   return resultobj;
38279 fail:
38280   return NULL;
38281 }
38282 
38283 
_wrap_Compactor_set_multipass(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38284 SWIGINTERN PyObject *_wrap_Compactor_set_multipass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38285   PyObject *resultobj = 0;
38286   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38287   bool arg2 ;
38288   void *argp1 = 0 ;
38289   int res1 = 0 ;
38290   bool val2 ;
38291   int ecode2 = 0 ;
38292   PyObject *swig_obj[2] ;
38293 
38294   if (!SWIG_Python_UnpackTuple(args,"Compactor_set_multipass",2,2,swig_obj)) SWIG_fail;
38295   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38296   if (!SWIG_IsOK(res1)) {
38297     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_set_multipass" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38298   }
38299   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38300   ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
38301   if (!SWIG_IsOK(ecode2)) {
38302     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Compactor_set_multipass" "', argument " "2"" of type '" "bool""'");
38303   }
38304   arg2 = static_cast< bool >(val2);
38305   {
38306     try {
38307       {
38308         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38309         (arg1)->set_multipass(arg2);
38310         SWIG_PYTHON_THREAD_END_ALLOW;
38311       }
38312     } catch (...) {
38313       Xapian::SetPythonException();
38314       SWIG_fail;
38315     }
38316   }
38317   resultobj = SWIG_Py_Void();
38318   return resultobj;
38319 fail:
38320   return NULL;
38321 }
38322 
38323 
_wrap_Compactor_set_compaction_level(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38324 SWIGINTERN PyObject *_wrap_Compactor_set_compaction_level(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38325   PyObject *resultobj = 0;
38326   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38327   Xapian::Compactor::compaction_level arg2 ;
38328   void *argp1 = 0 ;
38329   int res1 = 0 ;
38330   int val2 ;
38331   int ecode2 = 0 ;
38332   PyObject *swig_obj[2] ;
38333 
38334   if (!SWIG_Python_UnpackTuple(args,"Compactor_set_compaction_level",2,2,swig_obj)) SWIG_fail;
38335   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38336   if (!SWIG_IsOK(res1)) {
38337     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_set_compaction_level" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38338   }
38339   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38340   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
38341   if (!SWIG_IsOK(ecode2)) {
38342     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Compactor_set_compaction_level" "', argument " "2"" of type '" "Xapian::Compactor::compaction_level""'");
38343   }
38344   arg2 = static_cast< Xapian::Compactor::compaction_level >(val2);
38345   {
38346     try {
38347       {
38348         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38349         (arg1)->set_compaction_level(arg2);
38350         SWIG_PYTHON_THREAD_END_ALLOW;
38351       }
38352     } catch (...) {
38353       Xapian::SetPythonException();
38354       SWIG_fail;
38355     }
38356   }
38357   resultobj = SWIG_Py_Void();
38358   return resultobj;
38359 fail:
38360   return NULL;
38361 }
38362 
38363 
_wrap_Compactor_set_destdir(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38364 SWIGINTERN PyObject *_wrap_Compactor_set_destdir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38365   PyObject *resultobj = 0;
38366   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38367   std::string *arg2 = 0 ;
38368   void *argp1 = 0 ;
38369   int res1 = 0 ;
38370   int res2 = SWIG_OLDOBJ ;
38371   PyObject *swig_obj[2] ;
38372 
38373   if (!SWIG_Python_UnpackTuple(args,"Compactor_set_destdir",2,2,swig_obj)) SWIG_fail;
38374   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38375   if (!SWIG_IsOK(res1)) {
38376     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_set_destdir" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38377   }
38378   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38379   {
38380     std::string *ptr = (std::string *)0;
38381     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
38382     if (!SWIG_IsOK(res2)) {
38383       if (res2 == INT_MIN) SWIG_fail;
38384       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Compactor_set_destdir" "', argument " "2"" of type '" "std::string const &""'");
38385     }
38386     if (!ptr) {
38387       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Compactor_set_destdir" "', argument " "2"" of type '" "std::string const &""'");
38388     }
38389     arg2 = ptr;
38390   }
38391   {
38392     try {
38393       {
38394         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38395         (arg1)->set_destdir((std::string const &)*arg2);
38396         SWIG_PYTHON_THREAD_END_ALLOW;
38397       }
38398     } catch (...) {
38399       Xapian::SetPythonException();
38400       SWIG_fail;
38401     }
38402   }
38403   resultobj = SWIG_Py_Void();
38404   if (SWIG_IsNewObj(res2)) delete arg2;
38405   return resultobj;
38406 fail:
38407   if (SWIG_IsNewObj(res2)) delete arg2;
38408   return NULL;
38409 }
38410 
38411 
_wrap_Compactor_add_source(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38412 SWIGINTERN PyObject *_wrap_Compactor_add_source(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38413   PyObject *resultobj = 0;
38414   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38415   std::string *arg2 = 0 ;
38416   void *argp1 = 0 ;
38417   int res1 = 0 ;
38418   int res2 = SWIG_OLDOBJ ;
38419   PyObject *swig_obj[2] ;
38420 
38421   if (!SWIG_Python_UnpackTuple(args,"Compactor_add_source",2,2,swig_obj)) SWIG_fail;
38422   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38423   if (!SWIG_IsOK(res1)) {
38424     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_add_source" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38425   }
38426   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38427   {
38428     std::string *ptr = (std::string *)0;
38429     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
38430     if (!SWIG_IsOK(res2)) {
38431       if (res2 == INT_MIN) SWIG_fail;
38432       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Compactor_add_source" "', argument " "2"" of type '" "std::string const &""'");
38433     }
38434     if (!ptr) {
38435       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Compactor_add_source" "', argument " "2"" of type '" "std::string const &""'");
38436     }
38437     arg2 = ptr;
38438   }
38439   {
38440     try {
38441       {
38442         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38443         (arg1)->add_source((std::string const &)*arg2);
38444         SWIG_PYTHON_THREAD_END_ALLOW;
38445       }
38446     } catch (...) {
38447       Xapian::SetPythonException();
38448       SWIG_fail;
38449     }
38450   }
38451   resultobj = SWIG_Py_Void();
38452   if (SWIG_IsNewObj(res2)) delete arg2;
38453   return resultobj;
38454 fail:
38455   if (SWIG_IsNewObj(res2)) delete arg2;
38456   return NULL;
38457 }
38458 
38459 
_wrap_Compactor_compact(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38460 SWIGINTERN PyObject *_wrap_Compactor_compact(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38461   PyObject *resultobj = 0;
38462   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38463   void *argp1 = 0 ;
38464   int res1 = 0 ;
38465   PyObject *swig_obj[1] ;
38466 
38467   if (!args) SWIG_fail;
38468   swig_obj[0] = args;
38469   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38470   if (!SWIG_IsOK(res1)) {
38471     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_compact" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38472   }
38473   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38474   {
38475     try {
38476       {
38477         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38478         (arg1)->compact();
38479         SWIG_PYTHON_THREAD_END_ALLOW;
38480       }
38481     } catch (...) {
38482       Xapian::SetPythonException();
38483       SWIG_fail;
38484     }
38485   }
38486   resultobj = SWIG_Py_Void();
38487   return resultobj;
38488 fail:
38489   return NULL;
38490 }
38491 
38492 
_wrap_Compactor_set_status(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38493 SWIGINTERN PyObject *_wrap_Compactor_set_status(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38494   PyObject *resultobj = 0;
38495   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38496   std::string *arg2 = 0 ;
38497   std::string *arg3 = 0 ;
38498   void *argp1 = 0 ;
38499   int res1 = 0 ;
38500   int res2 = SWIG_OLDOBJ ;
38501   int res3 = SWIG_OLDOBJ ;
38502   PyObject *swig_obj[3] ;
38503   Swig::Director *director = 0;
38504   bool upcall = false;
38505 
38506   if (!SWIG_Python_UnpackTuple(args,"Compactor_set_status",3,3,swig_obj)) SWIG_fail;
38507   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38508   if (!SWIG_IsOK(res1)) {
38509     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_set_status" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38510   }
38511   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38512   {
38513     std::string *ptr = (std::string *)0;
38514     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
38515     if (!SWIG_IsOK(res2)) {
38516       if (res2 == INT_MIN) SWIG_fail;
38517       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Compactor_set_status" "', argument " "2"" of type '" "std::string const &""'");
38518     }
38519     if (!ptr) {
38520       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Compactor_set_status" "', argument " "2"" of type '" "std::string const &""'");
38521     }
38522     arg2 = ptr;
38523   }
38524   {
38525     std::string *ptr = (std::string *)0;
38526     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
38527     if (!SWIG_IsOK(res3)) {
38528       if (res3 == INT_MIN) SWIG_fail;
38529       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Compactor_set_status" "', argument " "3"" of type '" "std::string const &""'");
38530     }
38531     if (!ptr) {
38532       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Compactor_set_status" "', argument " "3"" of type '" "std::string const &""'");
38533     }
38534     arg3 = ptr;
38535   }
38536   director = SWIG_DIRECTOR_CAST(arg1);
38537   upcall = (director && (director->swig_get_self()==swig_obj[0]));
38538   try {
38539     {
38540       try {
38541         if (upcall) {
38542           (arg1)->Xapian::Compactor::set_status((std::string const &)*arg2,(std::string const &)*arg3);
38543         } else {
38544           (arg1)->set_status((std::string const &)*arg2,(std::string const &)*arg3);
38545         }
38546       } catch (...) {
38547         Xapian::SetPythonException();
38548         SWIG_fail;
38549       }
38550     }
38551   } catch (Swig::DirectorException&) {
38552     SWIG_fail;
38553   }
38554   resultobj = SWIG_Py_Void();
38555   if (SWIG_IsNewObj(res2)) delete arg2;
38556   if (SWIG_IsNewObj(res3)) delete arg3;
38557   return resultobj;
38558 fail:
38559   if (SWIG_IsNewObj(res2)) delete arg2;
38560   if (SWIG_IsNewObj(res3)) delete arg3;
38561   return NULL;
38562 }
38563 
38564 
_wrap_Compactor_resolve_duplicate_metadata(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38565 SWIGINTERN PyObject *_wrap_Compactor_resolve_duplicate_metadata(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38566   PyObject *resultobj = 0;
38567   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38568   std::string *arg2 = 0 ;
38569   size_t arg3 ;
38570   std::string *arg4 ;
38571   void *argp1 = 0 ;
38572   int res1 = 0 ;
38573   int res2 = SWIG_OLDOBJ ;
38574   size_t val3 ;
38575   int ecode3 = 0 ;
38576   void *argp4 = 0 ;
38577   int res4 = 0 ;
38578   PyObject *swig_obj[4] ;
38579   Swig::Director *director = 0;
38580   bool upcall = false;
38581   std::string result;
38582 
38583   if (!SWIG_Python_UnpackTuple(args,"Compactor_resolve_duplicate_metadata",4,4,swig_obj)) SWIG_fail;
38584   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38585   if (!SWIG_IsOK(res1)) {
38586     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38587   }
38588   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38589   {
38590     std::string *ptr = (std::string *)0;
38591     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
38592     if (!SWIG_IsOK(res2)) {
38593       if (res2 == INT_MIN) SWIG_fail;
38594       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "2"" of type '" "std::string const &""'");
38595     }
38596     if (!ptr) {
38597       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "2"" of type '" "std::string const &""'");
38598     }
38599     arg2 = ptr;
38600   }
38601   ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
38602   if (!SWIG_IsOK(ecode3)) {
38603     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "3"" of type '" "size_t""'");
38604   }
38605   arg3 = static_cast< size_t >(val3);
38606   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_std__string, 0 |  0 );
38607   if (!SWIG_IsOK(res4)) {
38608     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Compactor_resolve_duplicate_metadata" "', argument " "4"" of type '" "std::string const []""'");
38609   }
38610   arg4 = reinterpret_cast< std::string * >(argp4);
38611   director = SWIG_DIRECTOR_CAST(arg1);
38612   upcall = (director && (director->swig_get_self()==swig_obj[0]));
38613   try {
38614     {
38615       try {
38616         if (upcall) {
38617           result = (arg1)->Xapian::Compactor::resolve_duplicate_metadata((std::string const &)*arg2,arg3,(std::string const (*))arg4);
38618         } else {
38619           result = (arg1)->resolve_duplicate_metadata((std::string const &)*arg2,arg3,(std::string const (*))arg4);
38620         }
38621       } catch (...) {
38622         Xapian::SetPythonException();
38623         SWIG_fail;
38624       }
38625     }
38626   } catch (Swig::DirectorException&) {
38627     SWIG_fail;
38628   }
38629 
38630   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
38631 
38632   if (SWIG_IsNewObj(res2)) delete arg2;
38633   return resultobj;
38634 fail:
38635   if (SWIG_IsNewObj(res2)) delete arg2;
38636   return NULL;
38637 }
38638 
38639 
_wrap_disown_Compactor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38640 SWIGINTERN PyObject *_wrap_disown_Compactor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38641   PyObject *resultobj = 0;
38642   Xapian::Compactor *arg1 = (Xapian::Compactor *) 0 ;
38643   void *argp1 = 0 ;
38644   int res1 = 0 ;
38645   PyObject *swig_obj[1] ;
38646 
38647   if (!args) SWIG_fail;
38648   swig_obj[0] = args;
38649   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Compactor, 0 |  0 );
38650   if (!SWIG_IsOK(res1)) {
38651     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_Compactor" "', argument " "1"" of type '" "Xapian::Compactor *""'");
38652   }
38653   arg1 = reinterpret_cast< Xapian::Compactor * >(argp1);
38654   {
38655     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38656     {
38657       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
38658       if (director) director->swig_disown();
38659     }
38660 
38661     SWIG_PYTHON_THREAD_END_ALLOW;
38662   }
38663   resultobj = SWIG_Py_Void();
38664   return resultobj;
38665 fail:
38666   return NULL;
38667 }
38668 
38669 
Compactor_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38670 SWIGINTERN PyObject *Compactor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38671   PyObject *obj;
38672   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
38673   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Compactor, SWIG_NewClientData(obj));
38674   return SWIG_Py_Void();
38675 }
38676 
Compactor_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38677 SWIGINTERN PyObject *Compactor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38678   return SWIG_Python_InitShadowInstance(args);
38679 }
38680 
_wrap_new_PostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38681 SWIGINTERN PyObject *_wrap_new_PostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38682   PyObject *resultobj = 0;
38683   PyObject *arg1 = (PyObject *) 0 ;
38684   PyObject *swig_obj[1] ;
38685   Xapian::PostingSource *result = 0 ;
38686 
38687   if (!args) SWIG_fail;
38688   swig_obj[0] = args;
38689   arg1 = swig_obj[0];
38690   {
38691     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38692     if ( arg1 != Py_None ) {
38693       /* subclassed */
38694       result = (Xapian::PostingSource *)new SwigDirector_PostingSource(arg1);
38695     } else {
38696       SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
38697       SWIG_fail;
38698     }
38699 
38700     SWIG_PYTHON_THREAD_END_ALLOW;
38701   }
38702   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PostingSource, SWIG_POINTER_NEW |  0 );
38703   return resultobj;
38704 fail:
38705   return NULL;
38706 }
38707 
38708 
_wrap_delete_PostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38709 SWIGINTERN PyObject *_wrap_delete_PostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38710   PyObject *resultobj = 0;
38711   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38712   void *argp1 = 0 ;
38713   int res1 = 0 ;
38714   PyObject *swig_obj[1] ;
38715 
38716   if (!args) SWIG_fail;
38717   swig_obj[0] = args;
38718   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, SWIG_POINTER_DISOWN |  0 );
38719   if (!SWIG_IsOK(res1)) {
38720     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PostingSource" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
38721   }
38722   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38723   {
38724     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38725     delete arg1;
38726     SWIG_PYTHON_THREAD_END_ALLOW;
38727   }
38728   resultobj = SWIG_Py_Void();
38729   return resultobj;
38730 fail:
38731   return NULL;
38732 }
38733 
38734 
_wrap_PostingSource_get_termfreq_min(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38735 SWIGINTERN PyObject *_wrap_PostingSource_get_termfreq_min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38736   PyObject *resultobj = 0;
38737   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38738   void *argp1 = 0 ;
38739   int res1 = 0 ;
38740   PyObject *swig_obj[1] ;
38741   Swig::Director *director = 0;
38742   bool upcall = false;
38743   Xapian::doccount result;
38744 
38745   if (!args) SWIG_fail;
38746   swig_obj[0] = args;
38747   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
38748   if (!SWIG_IsOK(res1)) {
38749     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_get_termfreq_min" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
38750   }
38751   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38752   director = SWIG_DIRECTOR_CAST(arg1);
38753   upcall = (director && (director->swig_get_self()==swig_obj[0]));
38754   try {
38755     {
38756       try {
38757         if (upcall) {
38758           Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::get_termfreq_min");
38759         } else {
38760           result = (Xapian::doccount)((Xapian::PostingSource const *)arg1)->get_termfreq_min();
38761         }
38762       } catch (...) {
38763         Xapian::SetPythonException();
38764         SWIG_fail;
38765       }
38766     }
38767   } catch (Swig::DirectorException&) {
38768     SWIG_fail;
38769   }
38770   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
38771   return resultobj;
38772 fail:
38773   return NULL;
38774 }
38775 
38776 
_wrap_PostingSource_get_termfreq_est(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38777 SWIGINTERN PyObject *_wrap_PostingSource_get_termfreq_est(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38778   PyObject *resultobj = 0;
38779   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38780   void *argp1 = 0 ;
38781   int res1 = 0 ;
38782   PyObject *swig_obj[1] ;
38783   Swig::Director *director = 0;
38784   bool upcall = false;
38785   Xapian::doccount result;
38786 
38787   if (!args) SWIG_fail;
38788   swig_obj[0] = args;
38789   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
38790   if (!SWIG_IsOK(res1)) {
38791     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_get_termfreq_est" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
38792   }
38793   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38794   director = SWIG_DIRECTOR_CAST(arg1);
38795   upcall = (director && (director->swig_get_self()==swig_obj[0]));
38796   try {
38797     {
38798       try {
38799         if (upcall) {
38800           Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::get_termfreq_est");
38801         } else {
38802           result = (Xapian::doccount)((Xapian::PostingSource const *)arg1)->get_termfreq_est();
38803         }
38804       } catch (...) {
38805         Xapian::SetPythonException();
38806         SWIG_fail;
38807       }
38808     }
38809   } catch (Swig::DirectorException&) {
38810     SWIG_fail;
38811   }
38812   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
38813   return resultobj;
38814 fail:
38815   return NULL;
38816 }
38817 
38818 
_wrap_PostingSource_get_termfreq_max(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38819 SWIGINTERN PyObject *_wrap_PostingSource_get_termfreq_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38820   PyObject *resultobj = 0;
38821   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38822   void *argp1 = 0 ;
38823   int res1 = 0 ;
38824   PyObject *swig_obj[1] ;
38825   Swig::Director *director = 0;
38826   bool upcall = false;
38827   Xapian::doccount result;
38828 
38829   if (!args) SWIG_fail;
38830   swig_obj[0] = args;
38831   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
38832   if (!SWIG_IsOK(res1)) {
38833     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_get_termfreq_max" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
38834   }
38835   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38836   director = SWIG_DIRECTOR_CAST(arg1);
38837   upcall = (director && (director->swig_get_self()==swig_obj[0]));
38838   try {
38839     {
38840       try {
38841         if (upcall) {
38842           Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::get_termfreq_max");
38843         } else {
38844           result = (Xapian::doccount)((Xapian::PostingSource const *)arg1)->get_termfreq_max();
38845         }
38846       } catch (...) {
38847         Xapian::SetPythonException();
38848         SWIG_fail;
38849       }
38850     }
38851   } catch (Swig::DirectorException&) {
38852     SWIG_fail;
38853   }
38854   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
38855   return resultobj;
38856 fail:
38857   return NULL;
38858 }
38859 
38860 
_wrap_PostingSource_set_maxweight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38861 SWIGINTERN PyObject *_wrap_PostingSource_set_maxweight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38862   PyObject *resultobj = 0;
38863   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38864   double arg2 ;
38865   void *argp1 = 0 ;
38866   int res1 = 0 ;
38867   double val2 ;
38868   int ecode2 = 0 ;
38869   PyObject *swig_obj[2] ;
38870 
38871   if (!SWIG_Python_UnpackTuple(args,"PostingSource_set_maxweight",2,2,swig_obj)) SWIG_fail;
38872   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
38873   if (!SWIG_IsOK(res1)) {
38874     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_set_maxweight" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
38875   }
38876   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38877   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
38878   if (!SWIG_IsOK(ecode2)) {
38879     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PostingSource_set_maxweight" "', argument " "2"" of type '" "double""'");
38880   }
38881   arg2 = static_cast< double >(val2);
38882   {
38883     try {
38884       {
38885         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38886         (arg1)->set_maxweight(arg2);
38887         SWIG_PYTHON_THREAD_END_ALLOW;
38888       }
38889     } catch (...) {
38890       Xapian::SetPythonException();
38891       SWIG_fail;
38892     }
38893   }
38894   resultobj = SWIG_Py_Void();
38895   return resultobj;
38896 fail:
38897   return NULL;
38898 }
38899 
38900 
_wrap_PostingSource_get_maxweight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38901 SWIGINTERN PyObject *_wrap_PostingSource_get_maxweight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38902   PyObject *resultobj = 0;
38903   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38904   void *argp1 = 0 ;
38905   int res1 = 0 ;
38906   PyObject *swig_obj[1] ;
38907   double result;
38908 
38909   if (!args) SWIG_fail;
38910   swig_obj[0] = args;
38911   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
38912   if (!SWIG_IsOK(res1)) {
38913     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_get_maxweight" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
38914   }
38915   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38916   {
38917     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
38918     result = (double)((Xapian::PostingSource const *)arg1)->get_maxweight();
38919     SWIG_PYTHON_THREAD_END_ALLOW;
38920   }
38921   resultobj = SWIG_From_double(static_cast< double >(result));
38922   return resultobj;
38923 fail:
38924   return NULL;
38925 }
38926 
38927 
_wrap_PostingSource_get_weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38928 SWIGINTERN PyObject *_wrap_PostingSource_get_weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38929   PyObject *resultobj = 0;
38930   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38931   void *argp1 = 0 ;
38932   int res1 = 0 ;
38933   PyObject *swig_obj[1] ;
38934   Swig::Director *director = 0;
38935   bool upcall = false;
38936   double result;
38937 
38938   if (!args) SWIG_fail;
38939   swig_obj[0] = args;
38940   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
38941   if (!SWIG_IsOK(res1)) {
38942     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_get_weight" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
38943   }
38944   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38945   director = SWIG_DIRECTOR_CAST(arg1);
38946   upcall = (director && (director->swig_get_self()==swig_obj[0]));
38947   try {
38948     {
38949       try {
38950         if (upcall) {
38951           result = (double)((Xapian::PostingSource const *)arg1)->Xapian::PostingSource::get_weight();
38952         } else {
38953           result = (double)((Xapian::PostingSource const *)arg1)->get_weight();
38954         }
38955       } catch (...) {
38956         Xapian::SetPythonException();
38957         SWIG_fail;
38958       }
38959     }
38960   } catch (Swig::DirectorException&) {
38961     SWIG_fail;
38962   }
38963   resultobj = SWIG_From_double(static_cast< double >(result));
38964   return resultobj;
38965 fail:
38966   return NULL;
38967 }
38968 
38969 
_wrap_PostingSource_get_docid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)38970 SWIGINTERN PyObject *_wrap_PostingSource_get_docid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38971   PyObject *resultobj = 0;
38972   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
38973   void *argp1 = 0 ;
38974   int res1 = 0 ;
38975   PyObject *swig_obj[1] ;
38976   Swig::Director *director = 0;
38977   bool upcall = false;
38978   Xapian::docid result;
38979 
38980   if (!args) SWIG_fail;
38981   swig_obj[0] = args;
38982   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
38983   if (!SWIG_IsOK(res1)) {
38984     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_get_docid" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
38985   }
38986   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
38987   director = SWIG_DIRECTOR_CAST(arg1);
38988   upcall = (director && (director->swig_get_self()==swig_obj[0]));
38989   try {
38990     {
38991       try {
38992         if (upcall) {
38993           Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::get_docid");
38994         } else {
38995           result = (Xapian::docid)((Xapian::PostingSource const *)arg1)->get_docid();
38996         }
38997       } catch (...) {
38998         Xapian::SetPythonException();
38999         SWIG_fail;
39000       }
39001     }
39002   } catch (Swig::DirectorException&) {
39003     SWIG_fail;
39004   }
39005   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
39006   return resultobj;
39007 fail:
39008   return NULL;
39009 }
39010 
39011 
_wrap_PostingSource___next__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39012 SWIGINTERN PyObject *_wrap_PostingSource___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39013   PyObject *resultobj = 0;
39014   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39015   double arg2 ;
39016   void *argp1 = 0 ;
39017   int res1 = 0 ;
39018   double val2 ;
39019   int ecode2 = 0 ;
39020   PyObject *swig_obj[2] ;
39021   Swig::Director *director = 0;
39022   bool upcall = false;
39023 
39024   if (!SWIG_Python_UnpackTuple(args,"PostingSource___next__",2,2,swig_obj)) SWIG_fail;
39025   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
39026   if (!SWIG_IsOK(res1)) {
39027     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource___next__" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
39028   }
39029   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39030   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
39031   if (!SWIG_IsOK(ecode2)) {
39032     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PostingSource___next__" "', argument " "2"" of type '" "double""'");
39033   }
39034   arg2 = static_cast< double >(val2);
39035   director = SWIG_DIRECTOR_CAST(arg1);
39036   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39037   try {
39038     {
39039       try {
39040         if (upcall) {
39041           Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::next");
39042         } else {
39043           (arg1)->next(arg2);
39044         }
39045       } catch (...) {
39046         Xapian::SetPythonException();
39047         SWIG_fail;
39048       }
39049     }
39050   } catch (Swig::DirectorException&) {
39051     SWIG_fail;
39052   }
39053   resultobj = SWIG_Py_Void();
39054   return resultobj;
39055 fail:
39056   return NULL;
39057 }
39058 
39059 
_wrap_PostingSource_skip_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39060 SWIGINTERN PyObject *_wrap_PostingSource_skip_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39061   PyObject *resultobj = 0;
39062   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39063   Xapian::docid arg2 ;
39064   double arg3 ;
39065   void *argp1 = 0 ;
39066   int res1 = 0 ;
39067   unsigned int val2 ;
39068   int ecode2 = 0 ;
39069   double val3 ;
39070   int ecode3 = 0 ;
39071   PyObject *swig_obj[3] ;
39072   Swig::Director *director = 0;
39073   bool upcall = false;
39074 
39075   if (!SWIG_Python_UnpackTuple(args,"PostingSource_skip_to",3,3,swig_obj)) SWIG_fail;
39076   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
39077   if (!SWIG_IsOK(res1)) {
39078     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_skip_to" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
39079   }
39080   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39081   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
39082   if (!SWIG_IsOK(ecode2)) {
39083     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PostingSource_skip_to" "', argument " "2"" of type '" "Xapian::docid""'");
39084   }
39085   arg2 = static_cast< Xapian::docid >(val2);
39086   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
39087   if (!SWIG_IsOK(ecode3)) {
39088     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PostingSource_skip_to" "', argument " "3"" of type '" "double""'");
39089   }
39090   arg3 = static_cast< double >(val3);
39091   director = SWIG_DIRECTOR_CAST(arg1);
39092   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39093   try {
39094     {
39095       try {
39096         if (upcall) {
39097           (arg1)->Xapian::PostingSource::skip_to(arg2,arg3);
39098         } else {
39099           (arg1)->skip_to(arg2,arg3);
39100         }
39101       } catch (...) {
39102         Xapian::SetPythonException();
39103         SWIG_fail;
39104       }
39105     }
39106   } catch (Swig::DirectorException&) {
39107     SWIG_fail;
39108   }
39109   resultobj = SWIG_Py_Void();
39110   return resultobj;
39111 fail:
39112   return NULL;
39113 }
39114 
39115 
_wrap_PostingSource_check(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39116 SWIGINTERN PyObject *_wrap_PostingSource_check(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39117   PyObject *resultobj = 0;
39118   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39119   Xapian::docid arg2 ;
39120   double arg3 ;
39121   void *argp1 = 0 ;
39122   int res1 = 0 ;
39123   unsigned int val2 ;
39124   int ecode2 = 0 ;
39125   double val3 ;
39126   int ecode3 = 0 ;
39127   PyObject *swig_obj[3] ;
39128   Swig::Director *director = 0;
39129   bool upcall = false;
39130   bool result;
39131 
39132   if (!SWIG_Python_UnpackTuple(args,"PostingSource_check",3,3,swig_obj)) SWIG_fail;
39133   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
39134   if (!SWIG_IsOK(res1)) {
39135     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_check" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
39136   }
39137   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39138   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
39139   if (!SWIG_IsOK(ecode2)) {
39140     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PostingSource_check" "', argument " "2"" of type '" "Xapian::docid""'");
39141   }
39142   arg2 = static_cast< Xapian::docid >(val2);
39143   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
39144   if (!SWIG_IsOK(ecode3)) {
39145     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PostingSource_check" "', argument " "3"" of type '" "double""'");
39146   }
39147   arg3 = static_cast< double >(val3);
39148   director = SWIG_DIRECTOR_CAST(arg1);
39149   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39150   try {
39151     {
39152       try {
39153         if (upcall) {
39154           result = (bool)(arg1)->Xapian::PostingSource::check(arg2,arg3);
39155         } else {
39156           result = (bool)(arg1)->check(arg2,arg3);
39157         }
39158       } catch (...) {
39159         Xapian::SetPythonException();
39160         SWIG_fail;
39161       }
39162     }
39163   } catch (Swig::DirectorException&) {
39164     SWIG_fail;
39165   }
39166   resultobj = SWIG_From_bool(static_cast< bool >(result));
39167   return resultobj;
39168 fail:
39169   return NULL;
39170 }
39171 
39172 
_wrap_PostingSource_at_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39173 SWIGINTERN PyObject *_wrap_PostingSource_at_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39174   PyObject *resultobj = 0;
39175   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39176   void *argp1 = 0 ;
39177   int res1 = 0 ;
39178   PyObject *swig_obj[1] ;
39179   Swig::Director *director = 0;
39180   bool upcall = false;
39181   bool result;
39182 
39183   if (!args) SWIG_fail;
39184   swig_obj[0] = args;
39185   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
39186   if (!SWIG_IsOK(res1)) {
39187     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_at_end" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
39188   }
39189   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39190   director = SWIG_DIRECTOR_CAST(arg1);
39191   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39192   try {
39193     {
39194       try {
39195         if (upcall) {
39196           Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::at_end");
39197         } else {
39198           result = (bool)((Xapian::PostingSource const *)arg1)->at_end();
39199         }
39200       } catch (...) {
39201         Xapian::SetPythonException();
39202         SWIG_fail;
39203       }
39204     }
39205   } catch (Swig::DirectorException&) {
39206     SWIG_fail;
39207   }
39208   resultobj = SWIG_From_bool(static_cast< bool >(result));
39209   return resultobj;
39210 fail:
39211   return NULL;
39212 }
39213 
39214 
_wrap_PostingSource_name(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39215 SWIGINTERN PyObject *_wrap_PostingSource_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39216   PyObject *resultobj = 0;
39217   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39218   void *argp1 = 0 ;
39219   int res1 = 0 ;
39220   PyObject *swig_obj[1] ;
39221   Swig::Director *director = 0;
39222   bool upcall = false;
39223   std::string result;
39224 
39225   if (!args) SWIG_fail;
39226   swig_obj[0] = args;
39227   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
39228   if (!SWIG_IsOK(res1)) {
39229     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_name" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
39230   }
39231   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39232   director = SWIG_DIRECTOR_CAST(arg1);
39233   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39234   try {
39235     {
39236       try {
39237         if (upcall) {
39238           result = ((Xapian::PostingSource const *)arg1)->Xapian::PostingSource::name();
39239         } else {
39240           result = ((Xapian::PostingSource const *)arg1)->name();
39241         }
39242       } catch (...) {
39243         Xapian::SetPythonException();
39244         SWIG_fail;
39245       }
39246     }
39247   } catch (Swig::DirectorException&) {
39248     SWIG_fail;
39249   }
39250 
39251   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
39252 
39253   return resultobj;
39254 fail:
39255   return NULL;
39256 }
39257 
39258 
_wrap_PostingSource_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39259 SWIGINTERN PyObject *_wrap_PostingSource_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39260   PyObject *resultobj = 0;
39261   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39262   Xapian::Database *arg2 = 0 ;
39263   void *argp1 = 0 ;
39264   int res1 = 0 ;
39265   void *argp2 = 0 ;
39266   int res2 = 0 ;
39267   PyObject *swig_obj[2] ;
39268   Swig::Director *director = 0;
39269   bool upcall = false;
39270 
39271   if (!SWIG_Python_UnpackTuple(args,"PostingSource_init",2,2,swig_obj)) SWIG_fail;
39272   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
39273   if (!SWIG_IsOK(res1)) {
39274     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_init" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
39275   }
39276   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39277   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Database,  0  | 0);
39278   if (!SWIG_IsOK(res2)) {
39279     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
39280   }
39281   if (!argp2) {
39282     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
39283   }
39284   arg2 = reinterpret_cast< Xapian::Database * >(argp2);
39285   director = SWIG_DIRECTOR_CAST(arg1);
39286   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39287   try {
39288     {
39289       try {
39290         if (upcall) {
39291           Swig::DirectorPureVirtualException::raise("Xapian::PostingSource::init");
39292         } else {
39293           (arg1)->init((Xapian::Database const &)*arg2);
39294         }
39295       } catch (...) {
39296         Xapian::SetPythonException();
39297         SWIG_fail;
39298       }
39299     }
39300   } catch (Swig::DirectorException&) {
39301     SWIG_fail;
39302   }
39303   resultobj = SWIG_Py_Void();
39304   return resultobj;
39305 fail:
39306   return NULL;
39307 }
39308 
39309 
_wrap_PostingSource___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39310 SWIGINTERN PyObject *_wrap_PostingSource___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39311   PyObject *resultobj = 0;
39312   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39313   void *argp1 = 0 ;
39314   int res1 = 0 ;
39315   PyObject *swig_obj[1] ;
39316   Swig::Director *director = 0;
39317   bool upcall = false;
39318   std::string result;
39319 
39320   if (!args) SWIG_fail;
39321   swig_obj[0] = args;
39322   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
39323   if (!SWIG_IsOK(res1)) {
39324     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource___str__" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
39325   }
39326   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39327   director = SWIG_DIRECTOR_CAST(arg1);
39328   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39329   try {
39330     {
39331       try {
39332         if (upcall) {
39333           result = ((Xapian::PostingSource const *)arg1)->Xapian::PostingSource::get_description();
39334         } else {
39335           result = ((Xapian::PostingSource const *)arg1)->get_description();
39336         }
39337       } catch (...) {
39338         Xapian::SetPythonException();
39339         SWIG_fail;
39340       }
39341     }
39342   } catch (Swig::DirectorException&) {
39343     SWIG_fail;
39344   }
39345   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
39346   return resultobj;
39347 fail:
39348   return NULL;
39349 }
39350 
39351 
_wrap_PostingSource_release(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39352 SWIGINTERN PyObject *_wrap_PostingSource_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39353   PyObject *resultobj = 0;
39354   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39355   void *argp1 = 0 ;
39356   int res1 = 0 ;
39357   PyObject *swig_obj[1] ;
39358   Swig::Director *director = 0;
39359   Xapian::PostingSource *result = 0 ;
39360 
39361   if (!args) SWIG_fail;
39362   swig_obj[0] = args;
39363   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
39364   if (!SWIG_IsOK(res1)) {
39365     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostingSource_release" "', argument " "1"" of type '" "Xapian::PostingSource const *""'");
39366   }
39367   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39368   {
39369     try {
39370       {
39371         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
39372         result = (Xapian::PostingSource *)((Xapian::PostingSource const *)arg1)->release();
39373         SWIG_PYTHON_THREAD_END_ALLOW;
39374       }
39375     } catch (...) {
39376       Xapian::SetPythonException();
39377       SWIG_fail;
39378     }
39379   }
39380   director = SWIG_DIRECTOR_CAST(result);
39381   if (director) {
39382     resultobj = director->swig_get_self();
39383     Py_INCREF(resultobj);
39384   } else {
39385     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
39386   }
39387   return resultobj;
39388 fail:
39389   return NULL;
39390 }
39391 
39392 
_wrap_disown_PostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39393 SWIGINTERN PyObject *_wrap_disown_PostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39394   PyObject *resultobj = 0;
39395   Xapian::PostingSource *arg1 = (Xapian::PostingSource *) 0 ;
39396   void *argp1 = 0 ;
39397   int res1 = 0 ;
39398   PyObject *swig_obj[1] ;
39399 
39400   if (!args) SWIG_fail;
39401   swig_obj[0] = args;
39402   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__PostingSource, 0 |  0 );
39403   if (!SWIG_IsOK(res1)) {
39404     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_PostingSource" "', argument " "1"" of type '" "Xapian::PostingSource *""'");
39405   }
39406   arg1 = reinterpret_cast< Xapian::PostingSource * >(argp1);
39407   {
39408     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
39409     {
39410       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
39411       if (director) director->swig_disown();
39412     }
39413 
39414     SWIG_PYTHON_THREAD_END_ALLOW;
39415   }
39416   resultobj = SWIG_Py_Void();
39417   return resultobj;
39418 fail:
39419   return NULL;
39420 }
39421 
39422 
PostingSource_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39423 SWIGINTERN PyObject *PostingSource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39424   PyObject *obj;
39425   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
39426   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__PostingSource, SWIG_NewClientData(obj));
39427   return SWIG_Py_Void();
39428 }
39429 
PostingSource_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39430 SWIGINTERN PyObject *PostingSource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39431   return SWIG_Python_InitShadowInstance(args);
39432 }
39433 
_wrap_new_ValuePostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39434 SWIGINTERN PyObject *_wrap_new_ValuePostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39435   PyObject *resultobj = 0;
39436   PyObject *arg1 = (PyObject *) 0 ;
39437   Xapian::valueno arg2 ;
39438   unsigned int val2 ;
39439   int ecode2 = 0 ;
39440   PyObject *swig_obj[2] ;
39441   Xapian::ValuePostingSource *result = 0 ;
39442 
39443   if (!SWIG_Python_UnpackTuple(args,"new_ValuePostingSource",2,2,swig_obj)) SWIG_fail;
39444   arg1 = swig_obj[0];
39445   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
39446   if (!SWIG_IsOK(ecode2)) {
39447     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ValuePostingSource" "', argument " "2"" of type '" "Xapian::valueno""'");
39448   }
39449   arg2 = static_cast< Xapian::valueno >(val2);
39450   {
39451     try {
39452       {
39453         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
39454         if ( arg1 != Py_None ) {
39455           /* subclassed */
39456           result = (Xapian::ValuePostingSource *)new SwigDirector_ValuePostingSource(arg1,arg2);
39457         } else {
39458           result = (Xapian::ValuePostingSource *)new Xapian::ValuePostingSource(arg2);
39459         }
39460 
39461         SWIG_PYTHON_THREAD_END_ALLOW;
39462       }
39463     } catch (...) {
39464       Xapian::SetPythonException();
39465       SWIG_fail;
39466     }
39467   }
39468   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValuePostingSource, SWIG_POINTER_NEW |  0 );
39469   return resultobj;
39470 fail:
39471   return NULL;
39472 }
39473 
39474 
_wrap_ValuePostingSource_get_termfreq_min(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39475 SWIGINTERN PyObject *_wrap_ValuePostingSource_get_termfreq_min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39476   PyObject *resultobj = 0;
39477   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39478   void *argp1 = 0 ;
39479   int res1 = 0 ;
39480   PyObject *swig_obj[1] ;
39481   Swig::Director *director = 0;
39482   bool upcall = false;
39483   Xapian::doccount result;
39484 
39485   if (!args) SWIG_fail;
39486   swig_obj[0] = args;
39487   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39488   if (!SWIG_IsOK(res1)) {
39489     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_termfreq_min" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
39490   }
39491   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39492   director = SWIG_DIRECTOR_CAST(arg1);
39493   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39494   try {
39495     {
39496       try {
39497         if (upcall) {
39498           result = (Xapian::doccount)((Xapian::ValuePostingSource const *)arg1)->Xapian::ValuePostingSource::get_termfreq_min();
39499         } else {
39500           result = (Xapian::doccount)((Xapian::ValuePostingSource const *)arg1)->get_termfreq_min();
39501         }
39502       } catch (...) {
39503         Xapian::SetPythonException();
39504         SWIG_fail;
39505       }
39506     }
39507   } catch (Swig::DirectorException&) {
39508     SWIG_fail;
39509   }
39510   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
39511   return resultobj;
39512 fail:
39513   return NULL;
39514 }
39515 
39516 
_wrap_ValuePostingSource_get_termfreq_est(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39517 SWIGINTERN PyObject *_wrap_ValuePostingSource_get_termfreq_est(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39518   PyObject *resultobj = 0;
39519   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39520   void *argp1 = 0 ;
39521   int res1 = 0 ;
39522   PyObject *swig_obj[1] ;
39523   Swig::Director *director = 0;
39524   bool upcall = false;
39525   Xapian::doccount result;
39526 
39527   if (!args) SWIG_fail;
39528   swig_obj[0] = args;
39529   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39530   if (!SWIG_IsOK(res1)) {
39531     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_termfreq_est" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
39532   }
39533   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39534   director = SWIG_DIRECTOR_CAST(arg1);
39535   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39536   try {
39537     {
39538       try {
39539         if (upcall) {
39540           result = (Xapian::doccount)((Xapian::ValuePostingSource const *)arg1)->Xapian::ValuePostingSource::get_termfreq_est();
39541         } else {
39542           result = (Xapian::doccount)((Xapian::ValuePostingSource const *)arg1)->get_termfreq_est();
39543         }
39544       } catch (...) {
39545         Xapian::SetPythonException();
39546         SWIG_fail;
39547       }
39548     }
39549   } catch (Swig::DirectorException&) {
39550     SWIG_fail;
39551   }
39552   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
39553   return resultobj;
39554 fail:
39555   return NULL;
39556 }
39557 
39558 
_wrap_ValuePostingSource_get_termfreq_max(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39559 SWIGINTERN PyObject *_wrap_ValuePostingSource_get_termfreq_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39560   PyObject *resultobj = 0;
39561   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39562   void *argp1 = 0 ;
39563   int res1 = 0 ;
39564   PyObject *swig_obj[1] ;
39565   Swig::Director *director = 0;
39566   bool upcall = false;
39567   Xapian::doccount result;
39568 
39569   if (!args) SWIG_fail;
39570   swig_obj[0] = args;
39571   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39572   if (!SWIG_IsOK(res1)) {
39573     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_termfreq_max" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
39574   }
39575   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39576   director = SWIG_DIRECTOR_CAST(arg1);
39577   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39578   try {
39579     {
39580       try {
39581         if (upcall) {
39582           result = (Xapian::doccount)((Xapian::ValuePostingSource const *)arg1)->Xapian::ValuePostingSource::get_termfreq_max();
39583         } else {
39584           result = (Xapian::doccount)((Xapian::ValuePostingSource const *)arg1)->get_termfreq_max();
39585         }
39586       } catch (...) {
39587         Xapian::SetPythonException();
39588         SWIG_fail;
39589       }
39590     }
39591   } catch (Swig::DirectorException&) {
39592     SWIG_fail;
39593   }
39594   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
39595   return resultobj;
39596 fail:
39597   return NULL;
39598 }
39599 
39600 
_wrap_ValuePostingSource___next__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39601 SWIGINTERN PyObject *_wrap_ValuePostingSource___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39602   PyObject *resultobj = 0;
39603   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39604   double arg2 ;
39605   void *argp1 = 0 ;
39606   int res1 = 0 ;
39607   double val2 ;
39608   int ecode2 = 0 ;
39609   PyObject *swig_obj[2] ;
39610   Swig::Director *director = 0;
39611   bool upcall = false;
39612 
39613   if (!SWIG_Python_UnpackTuple(args,"ValuePostingSource___next__",2,2,swig_obj)) SWIG_fail;
39614   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39615   if (!SWIG_IsOK(res1)) {
39616     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource___next__" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
39617   }
39618   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39619   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
39620   if (!SWIG_IsOK(ecode2)) {
39621     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValuePostingSource___next__" "', argument " "2"" of type '" "double""'");
39622   }
39623   arg2 = static_cast< double >(val2);
39624   director = SWIG_DIRECTOR_CAST(arg1);
39625   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39626   try {
39627     {
39628       try {
39629         if (upcall) {
39630           (arg1)->Xapian::ValuePostingSource::next(arg2);
39631         } else {
39632           (arg1)->next(arg2);
39633         }
39634       } catch (...) {
39635         Xapian::SetPythonException();
39636         SWIG_fail;
39637       }
39638     }
39639   } catch (Swig::DirectorException&) {
39640     SWIG_fail;
39641   }
39642   resultobj = SWIG_Py_Void();
39643   return resultobj;
39644 fail:
39645   return NULL;
39646 }
39647 
39648 
_wrap_ValuePostingSource_skip_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39649 SWIGINTERN PyObject *_wrap_ValuePostingSource_skip_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39650   PyObject *resultobj = 0;
39651   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39652   Xapian::docid arg2 ;
39653   double arg3 ;
39654   void *argp1 = 0 ;
39655   int res1 = 0 ;
39656   unsigned int val2 ;
39657   int ecode2 = 0 ;
39658   double val3 ;
39659   int ecode3 = 0 ;
39660   PyObject *swig_obj[3] ;
39661   Swig::Director *director = 0;
39662   bool upcall = false;
39663 
39664   if (!SWIG_Python_UnpackTuple(args,"ValuePostingSource_skip_to",3,3,swig_obj)) SWIG_fail;
39665   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39666   if (!SWIG_IsOK(res1)) {
39667     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_skip_to" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
39668   }
39669   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39670   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
39671   if (!SWIG_IsOK(ecode2)) {
39672     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValuePostingSource_skip_to" "', argument " "2"" of type '" "Xapian::docid""'");
39673   }
39674   arg2 = static_cast< Xapian::docid >(val2);
39675   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
39676   if (!SWIG_IsOK(ecode3)) {
39677     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ValuePostingSource_skip_to" "', argument " "3"" of type '" "double""'");
39678   }
39679   arg3 = static_cast< double >(val3);
39680   director = SWIG_DIRECTOR_CAST(arg1);
39681   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39682   try {
39683     {
39684       try {
39685         if (upcall) {
39686           (arg1)->Xapian::ValuePostingSource::skip_to(arg2,arg3);
39687         } else {
39688           (arg1)->skip_to(arg2,arg3);
39689         }
39690       } catch (...) {
39691         Xapian::SetPythonException();
39692         SWIG_fail;
39693       }
39694     }
39695   } catch (Swig::DirectorException&) {
39696     SWIG_fail;
39697   }
39698   resultobj = SWIG_Py_Void();
39699   return resultobj;
39700 fail:
39701   return NULL;
39702 }
39703 
39704 
_wrap_ValuePostingSource_check(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39705 SWIGINTERN PyObject *_wrap_ValuePostingSource_check(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39706   PyObject *resultobj = 0;
39707   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39708   Xapian::docid arg2 ;
39709   double arg3 ;
39710   void *argp1 = 0 ;
39711   int res1 = 0 ;
39712   unsigned int val2 ;
39713   int ecode2 = 0 ;
39714   double val3 ;
39715   int ecode3 = 0 ;
39716   PyObject *swig_obj[3] ;
39717   Swig::Director *director = 0;
39718   bool upcall = false;
39719   bool result;
39720 
39721   if (!SWIG_Python_UnpackTuple(args,"ValuePostingSource_check",3,3,swig_obj)) SWIG_fail;
39722   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39723   if (!SWIG_IsOK(res1)) {
39724     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_check" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
39725   }
39726   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39727   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
39728   if (!SWIG_IsOK(ecode2)) {
39729     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValuePostingSource_check" "', argument " "2"" of type '" "Xapian::docid""'");
39730   }
39731   arg2 = static_cast< Xapian::docid >(val2);
39732   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
39733   if (!SWIG_IsOK(ecode3)) {
39734     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ValuePostingSource_check" "', argument " "3"" of type '" "double""'");
39735   }
39736   arg3 = static_cast< double >(val3);
39737   director = SWIG_DIRECTOR_CAST(arg1);
39738   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39739   try {
39740     {
39741       try {
39742         if (upcall) {
39743           result = (bool)(arg1)->Xapian::ValuePostingSource::check(arg2,arg3);
39744         } else {
39745           result = (bool)(arg1)->check(arg2,arg3);
39746         }
39747       } catch (...) {
39748         Xapian::SetPythonException();
39749         SWIG_fail;
39750       }
39751     }
39752   } catch (Swig::DirectorException&) {
39753     SWIG_fail;
39754   }
39755   resultobj = SWIG_From_bool(static_cast< bool >(result));
39756   return resultobj;
39757 fail:
39758   return NULL;
39759 }
39760 
39761 
_wrap_ValuePostingSource_at_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39762 SWIGINTERN PyObject *_wrap_ValuePostingSource_at_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39763   PyObject *resultobj = 0;
39764   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39765   void *argp1 = 0 ;
39766   int res1 = 0 ;
39767   PyObject *swig_obj[1] ;
39768   Swig::Director *director = 0;
39769   bool upcall = false;
39770   bool result;
39771 
39772   if (!args) SWIG_fail;
39773   swig_obj[0] = args;
39774   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39775   if (!SWIG_IsOK(res1)) {
39776     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_at_end" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
39777   }
39778   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39779   director = SWIG_DIRECTOR_CAST(arg1);
39780   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39781   try {
39782     {
39783       try {
39784         if (upcall) {
39785           result = (bool)((Xapian::ValuePostingSource const *)arg1)->Xapian::ValuePostingSource::at_end();
39786         } else {
39787           result = (bool)((Xapian::ValuePostingSource const *)arg1)->at_end();
39788         }
39789       } catch (...) {
39790         Xapian::SetPythonException();
39791         SWIG_fail;
39792       }
39793     }
39794   } catch (Swig::DirectorException&) {
39795     SWIG_fail;
39796   }
39797   resultobj = SWIG_From_bool(static_cast< bool >(result));
39798   return resultobj;
39799 fail:
39800   return NULL;
39801 }
39802 
39803 
_wrap_ValuePostingSource_get_docid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39804 SWIGINTERN PyObject *_wrap_ValuePostingSource_get_docid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39805   PyObject *resultobj = 0;
39806   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39807   void *argp1 = 0 ;
39808   int res1 = 0 ;
39809   PyObject *swig_obj[1] ;
39810   Swig::Director *director = 0;
39811   bool upcall = false;
39812   Xapian::docid result;
39813 
39814   if (!args) SWIG_fail;
39815   swig_obj[0] = args;
39816   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39817   if (!SWIG_IsOK(res1)) {
39818     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_docid" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
39819   }
39820   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39821   director = SWIG_DIRECTOR_CAST(arg1);
39822   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39823   try {
39824     {
39825       try {
39826         if (upcall) {
39827           result = (Xapian::docid)((Xapian::ValuePostingSource const *)arg1)->Xapian::ValuePostingSource::get_docid();
39828         } else {
39829           result = (Xapian::docid)((Xapian::ValuePostingSource const *)arg1)->get_docid();
39830         }
39831       } catch (...) {
39832         Xapian::SetPythonException();
39833         SWIG_fail;
39834       }
39835     }
39836   } catch (Swig::DirectorException&) {
39837     SWIG_fail;
39838   }
39839   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
39840   return resultobj;
39841 fail:
39842   return NULL;
39843 }
39844 
39845 
_wrap_ValuePostingSource_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39846 SWIGINTERN PyObject *_wrap_ValuePostingSource_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39847   PyObject *resultobj = 0;
39848   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39849   Xapian::Database *arg2 = 0 ;
39850   void *argp1 = 0 ;
39851   int res1 = 0 ;
39852   void *argp2 = 0 ;
39853   int res2 = 0 ;
39854   PyObject *swig_obj[2] ;
39855   Swig::Director *director = 0;
39856   bool upcall = false;
39857 
39858   if (!SWIG_Python_UnpackTuple(args,"ValuePostingSource_init",2,2,swig_obj)) SWIG_fail;
39859   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39860   if (!SWIG_IsOK(res1)) {
39861     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_init" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
39862   }
39863   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39864   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Database,  0  | 0);
39865   if (!SWIG_IsOK(res2)) {
39866     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValuePostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
39867   }
39868   if (!argp2) {
39869     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValuePostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
39870   }
39871   arg2 = reinterpret_cast< Xapian::Database * >(argp2);
39872   director = SWIG_DIRECTOR_CAST(arg1);
39873   upcall = (director && (director->swig_get_self()==swig_obj[0]));
39874   try {
39875     {
39876       try {
39877         if (upcall) {
39878           (arg1)->Xapian::ValuePostingSource::init((Xapian::Database const &)*arg2);
39879         } else {
39880           (arg1)->init((Xapian::Database const &)*arg2);
39881         }
39882       } catch (...) {
39883         Xapian::SetPythonException();
39884         SWIG_fail;
39885       }
39886     }
39887   } catch (Swig::DirectorException&) {
39888     SWIG_fail;
39889   }
39890   resultobj = SWIG_Py_Void();
39891   return resultobj;
39892 fail:
39893   return NULL;
39894 }
39895 
39896 
_wrap_ValuePostingSource_get_database(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39897 SWIGINTERN PyObject *_wrap_ValuePostingSource_get_database(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39898   PyObject *resultobj = 0;
39899   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39900   void *argp1 = 0 ;
39901   int res1 = 0 ;
39902   PyObject *swig_obj[1] ;
39903   Xapian::Database result;
39904 
39905   if (!args) SWIG_fail;
39906   swig_obj[0] = args;
39907   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39908   if (!SWIG_IsOK(res1)) {
39909     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_database" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
39910   }
39911   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39912   {
39913     try {
39914       {
39915         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
39916         result = ((Xapian::ValuePostingSource const *)arg1)->get_database();
39917         SWIG_PYTHON_THREAD_END_ALLOW;
39918       }
39919     } catch (...) {
39920       Xapian::SetPythonException();
39921       SWIG_fail;
39922     }
39923   }
39924   resultobj = SWIG_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN |  0 );
39925   return resultobj;
39926 fail:
39927   return NULL;
39928 }
39929 
39930 
_wrap_ValuePostingSource_get_slot(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39931 SWIGINTERN PyObject *_wrap_ValuePostingSource_get_slot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39932   PyObject *resultobj = 0;
39933   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39934   void *argp1 = 0 ;
39935   int res1 = 0 ;
39936   PyObject *swig_obj[1] ;
39937   Xapian::valueno result;
39938 
39939   if (!args) SWIG_fail;
39940   swig_obj[0] = args;
39941   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39942   if (!SWIG_IsOK(res1)) {
39943     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_slot" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
39944   }
39945   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39946   {
39947     try {
39948       {
39949         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
39950         result = (Xapian::valueno)((Xapian::ValuePostingSource const *)arg1)->get_slot();
39951         SWIG_PYTHON_THREAD_END_ALLOW;
39952       }
39953     } catch (...) {
39954       Xapian::SetPythonException();
39955       SWIG_fail;
39956     }
39957   }
39958   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
39959   return resultobj;
39960 fail:
39961   return NULL;
39962 }
39963 
39964 
_wrap_ValuePostingSource_get_value(PyObject * SWIGUNUSEDPARM (self),PyObject * args)39965 SWIGINTERN PyObject *_wrap_ValuePostingSource_get_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39966   PyObject *resultobj = 0;
39967   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
39968   void *argp1 = 0 ;
39969   int res1 = 0 ;
39970   PyObject *swig_obj[1] ;
39971   std::string result;
39972 
39973   if (!args) SWIG_fail;
39974   swig_obj[0] = args;
39975   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
39976   if (!SWIG_IsOK(res1)) {
39977     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_value" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
39978   }
39979   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
39980   {
39981     try {
39982       {
39983         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
39984         result = ((Xapian::ValuePostingSource const *)arg1)->get_value();
39985         SWIG_PYTHON_THREAD_END_ALLOW;
39986       }
39987     } catch (...) {
39988       Xapian::SetPythonException();
39989       SWIG_fail;
39990     }
39991   }
39992 
39993   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
39994 
39995   return resultobj;
39996 fail:
39997   return NULL;
39998 }
39999 
40000 
_wrap_ValuePostingSource_done(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40001 SWIGINTERN PyObject *_wrap_ValuePostingSource_done(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40002   PyObject *resultobj = 0;
40003   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
40004   void *argp1 = 0 ;
40005   int res1 = 0 ;
40006   PyObject *swig_obj[1] ;
40007 
40008   if (!args) SWIG_fail;
40009   swig_obj[0] = args;
40010   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
40011   if (!SWIG_IsOK(res1)) {
40012     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_done" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
40013   }
40014   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
40015   {
40016     try {
40017       {
40018         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40019         (arg1)->done();
40020         SWIG_PYTHON_THREAD_END_ALLOW;
40021       }
40022     } catch (...) {
40023       Xapian::SetPythonException();
40024       SWIG_fail;
40025     }
40026   }
40027   resultobj = SWIG_Py_Void();
40028   return resultobj;
40029 fail:
40030   return NULL;
40031 }
40032 
40033 
_wrap_ValuePostingSource_get_started(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40034 SWIGINTERN PyObject *_wrap_ValuePostingSource_get_started(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40035   PyObject *resultobj = 0;
40036   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
40037   void *argp1 = 0 ;
40038   int res1 = 0 ;
40039   PyObject *swig_obj[1] ;
40040   bool result;
40041 
40042   if (!args) SWIG_fail;
40043   swig_obj[0] = args;
40044   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
40045   if (!SWIG_IsOK(res1)) {
40046     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_get_started" "', argument " "1"" of type '" "Xapian::ValuePostingSource const *""'");
40047   }
40048   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
40049   {
40050     try {
40051       {
40052         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40053         result = (bool)((Xapian::ValuePostingSource const *)arg1)->get_started();
40054         SWIG_PYTHON_THREAD_END_ALLOW;
40055       }
40056     } catch (...) {
40057       Xapian::SetPythonException();
40058       SWIG_fail;
40059     }
40060   }
40061   resultobj = SWIG_From_bool(static_cast< bool >(result));
40062   return resultobj;
40063 fail:
40064   return NULL;
40065 }
40066 
40067 
_wrap_ValuePostingSource_set_termfreq_min(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40068 SWIGINTERN PyObject *_wrap_ValuePostingSource_set_termfreq_min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40069   PyObject *resultobj = 0;
40070   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
40071   Xapian::doccount arg2 ;
40072   void *argp1 = 0 ;
40073   int res1 = 0 ;
40074   unsigned int val2 ;
40075   int ecode2 = 0 ;
40076   PyObject *swig_obj[2] ;
40077 
40078   if (!SWIG_Python_UnpackTuple(args,"ValuePostingSource_set_termfreq_min",2,2,swig_obj)) SWIG_fail;
40079   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
40080   if (!SWIG_IsOK(res1)) {
40081     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_set_termfreq_min" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
40082   }
40083   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
40084   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
40085   if (!SWIG_IsOK(ecode2)) {
40086     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValuePostingSource_set_termfreq_min" "', argument " "2"" of type '" "Xapian::doccount""'");
40087   }
40088   arg2 = static_cast< Xapian::doccount >(val2);
40089   {
40090     try {
40091       {
40092         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40093         (arg1)->set_termfreq_min(arg2);
40094         SWIG_PYTHON_THREAD_END_ALLOW;
40095       }
40096     } catch (...) {
40097       Xapian::SetPythonException();
40098       SWIG_fail;
40099     }
40100   }
40101   resultobj = SWIG_Py_Void();
40102   return resultobj;
40103 fail:
40104   return NULL;
40105 }
40106 
40107 
_wrap_ValuePostingSource_set_termfreq_est(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40108 SWIGINTERN PyObject *_wrap_ValuePostingSource_set_termfreq_est(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40109   PyObject *resultobj = 0;
40110   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
40111   Xapian::doccount arg2 ;
40112   void *argp1 = 0 ;
40113   int res1 = 0 ;
40114   unsigned int val2 ;
40115   int ecode2 = 0 ;
40116   PyObject *swig_obj[2] ;
40117 
40118   if (!SWIG_Python_UnpackTuple(args,"ValuePostingSource_set_termfreq_est",2,2,swig_obj)) SWIG_fail;
40119   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
40120   if (!SWIG_IsOK(res1)) {
40121     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_set_termfreq_est" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
40122   }
40123   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
40124   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
40125   if (!SWIG_IsOK(ecode2)) {
40126     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValuePostingSource_set_termfreq_est" "', argument " "2"" of type '" "Xapian::doccount""'");
40127   }
40128   arg2 = static_cast< Xapian::doccount >(val2);
40129   {
40130     try {
40131       {
40132         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40133         (arg1)->set_termfreq_est(arg2);
40134         SWIG_PYTHON_THREAD_END_ALLOW;
40135       }
40136     } catch (...) {
40137       Xapian::SetPythonException();
40138       SWIG_fail;
40139     }
40140   }
40141   resultobj = SWIG_Py_Void();
40142   return resultobj;
40143 fail:
40144   return NULL;
40145 }
40146 
40147 
_wrap_ValuePostingSource_set_termfreq_max(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40148 SWIGINTERN PyObject *_wrap_ValuePostingSource_set_termfreq_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40149   PyObject *resultobj = 0;
40150   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
40151   Xapian::doccount arg2 ;
40152   void *argp1 = 0 ;
40153   int res1 = 0 ;
40154   unsigned int val2 ;
40155   int ecode2 = 0 ;
40156   PyObject *swig_obj[2] ;
40157 
40158   if (!SWIG_Python_UnpackTuple(args,"ValuePostingSource_set_termfreq_max",2,2,swig_obj)) SWIG_fail;
40159   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
40160   if (!SWIG_IsOK(res1)) {
40161     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValuePostingSource_set_termfreq_max" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
40162   }
40163   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
40164   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
40165   if (!SWIG_IsOK(ecode2)) {
40166     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValuePostingSource_set_termfreq_max" "', argument " "2"" of type '" "Xapian::doccount""'");
40167   }
40168   arg2 = static_cast< Xapian::doccount >(val2);
40169   {
40170     try {
40171       {
40172         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40173         (arg1)->set_termfreq_max(arg2);
40174         SWIG_PYTHON_THREAD_END_ALLOW;
40175       }
40176     } catch (...) {
40177       Xapian::SetPythonException();
40178       SWIG_fail;
40179     }
40180   }
40181   resultobj = SWIG_Py_Void();
40182   return resultobj;
40183 fail:
40184   return NULL;
40185 }
40186 
40187 
_wrap_delete_ValuePostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40188 SWIGINTERN PyObject *_wrap_delete_ValuePostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40189   PyObject *resultobj = 0;
40190   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
40191   void *argp1 = 0 ;
40192   int res1 = 0 ;
40193   PyObject *swig_obj[1] ;
40194 
40195   if (!args) SWIG_fail;
40196   swig_obj[0] = args;
40197   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, SWIG_POINTER_DISOWN |  0 );
40198   if (!SWIG_IsOK(res1)) {
40199     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ValuePostingSource" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
40200   }
40201   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
40202   {
40203     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40204     delete arg1;
40205     SWIG_PYTHON_THREAD_END_ALLOW;
40206   }
40207   resultobj = SWIG_Py_Void();
40208   return resultobj;
40209 fail:
40210   return NULL;
40211 }
40212 
40213 
_wrap_disown_ValuePostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40214 SWIGINTERN PyObject *_wrap_disown_ValuePostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40215   PyObject *resultobj = 0;
40216   Xapian::ValuePostingSource *arg1 = (Xapian::ValuePostingSource *) 0 ;
40217   void *argp1 = 0 ;
40218   int res1 = 0 ;
40219   PyObject *swig_obj[1] ;
40220 
40221   if (!args) SWIG_fail;
40222   swig_obj[0] = args;
40223   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValuePostingSource, 0 |  0 );
40224   if (!SWIG_IsOK(res1)) {
40225     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_ValuePostingSource" "', argument " "1"" of type '" "Xapian::ValuePostingSource *""'");
40226   }
40227   arg1 = reinterpret_cast< Xapian::ValuePostingSource * >(argp1);
40228   {
40229     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40230     {
40231       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
40232       if (director) director->swig_disown();
40233     }
40234 
40235     SWIG_PYTHON_THREAD_END_ALLOW;
40236   }
40237   resultobj = SWIG_Py_Void();
40238   return resultobj;
40239 fail:
40240   return NULL;
40241 }
40242 
40243 
ValuePostingSource_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40244 SWIGINTERN PyObject *ValuePostingSource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40245   PyObject *obj;
40246   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
40247   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ValuePostingSource, SWIG_NewClientData(obj));
40248   return SWIG_Py_Void();
40249 }
40250 
ValuePostingSource_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40251 SWIGINTERN PyObject *ValuePostingSource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40252   return SWIG_Python_InitShadowInstance(args);
40253 }
40254 
_wrap_new_ValueWeightPostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40255 SWIGINTERN PyObject *_wrap_new_ValueWeightPostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40256   PyObject *resultobj = 0;
40257   PyObject *arg1 = (PyObject *) 0 ;
40258   Xapian::valueno arg2 ;
40259   unsigned int val2 ;
40260   int ecode2 = 0 ;
40261   PyObject *swig_obj[2] ;
40262   Xapian::ValueWeightPostingSource *result = 0 ;
40263 
40264   if (!SWIG_Python_UnpackTuple(args,"new_ValueWeightPostingSource",2,2,swig_obj)) SWIG_fail;
40265   arg1 = swig_obj[0];
40266   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
40267   if (!SWIG_IsOK(ecode2)) {
40268     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ValueWeightPostingSource" "', argument " "2"" of type '" "Xapian::valueno""'");
40269   }
40270   arg2 = static_cast< Xapian::valueno >(val2);
40271   {
40272     try {
40273       {
40274         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40275         if ( arg1 != Py_None ) {
40276           /* subclassed */
40277           result = (Xapian::ValueWeightPostingSource *)new SwigDirector_ValueWeightPostingSource(arg1,arg2);
40278         } else {
40279           result = (Xapian::ValueWeightPostingSource *)new Xapian::ValueWeightPostingSource(arg2);
40280         }
40281 
40282         SWIG_PYTHON_THREAD_END_ALLOW;
40283       }
40284     } catch (...) {
40285       Xapian::SetPythonException();
40286       SWIG_fail;
40287     }
40288   }
40289   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueWeightPostingSource, SWIG_POINTER_NEW |  0 );
40290   return resultobj;
40291 fail:
40292   return NULL;
40293 }
40294 
40295 
_wrap_ValueWeightPostingSource_get_weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40296 SWIGINTERN PyObject *_wrap_ValueWeightPostingSource_get_weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40297   PyObject *resultobj = 0;
40298   Xapian::ValueWeightPostingSource *arg1 = (Xapian::ValueWeightPostingSource *) 0 ;
40299   void *argp1 = 0 ;
40300   int res1 = 0 ;
40301   PyObject *swig_obj[1] ;
40302   Swig::Director *director = 0;
40303   bool upcall = false;
40304   double result;
40305 
40306   if (!args) SWIG_fail;
40307   swig_obj[0] = args;
40308   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueWeightPostingSource, 0 |  0 );
40309   if (!SWIG_IsOK(res1)) {
40310     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueWeightPostingSource_get_weight" "', argument " "1"" of type '" "Xapian::ValueWeightPostingSource const *""'");
40311   }
40312   arg1 = reinterpret_cast< Xapian::ValueWeightPostingSource * >(argp1);
40313   director = SWIG_DIRECTOR_CAST(arg1);
40314   upcall = (director && (director->swig_get_self()==swig_obj[0]));
40315   try {
40316     {
40317       try {
40318         if (upcall) {
40319           result = (double)((Xapian::ValueWeightPostingSource const *)arg1)->Xapian::ValueWeightPostingSource::get_weight();
40320         } else {
40321           result = (double)((Xapian::ValueWeightPostingSource const *)arg1)->get_weight();
40322         }
40323       } catch (...) {
40324         Xapian::SetPythonException();
40325         SWIG_fail;
40326       }
40327     }
40328   } catch (Swig::DirectorException&) {
40329     SWIG_fail;
40330   }
40331   resultobj = SWIG_From_double(static_cast< double >(result));
40332   return resultobj;
40333 fail:
40334   return NULL;
40335 }
40336 
40337 
_wrap_ValueWeightPostingSource_name(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40338 SWIGINTERN PyObject *_wrap_ValueWeightPostingSource_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40339   PyObject *resultobj = 0;
40340   Xapian::ValueWeightPostingSource *arg1 = (Xapian::ValueWeightPostingSource *) 0 ;
40341   void *argp1 = 0 ;
40342   int res1 = 0 ;
40343   PyObject *swig_obj[1] ;
40344   Swig::Director *director = 0;
40345   bool upcall = false;
40346   std::string result;
40347 
40348   if (!args) SWIG_fail;
40349   swig_obj[0] = args;
40350   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueWeightPostingSource, 0 |  0 );
40351   if (!SWIG_IsOK(res1)) {
40352     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueWeightPostingSource_name" "', argument " "1"" of type '" "Xapian::ValueWeightPostingSource const *""'");
40353   }
40354   arg1 = reinterpret_cast< Xapian::ValueWeightPostingSource * >(argp1);
40355   director = SWIG_DIRECTOR_CAST(arg1);
40356   upcall = (director && (director->swig_get_self()==swig_obj[0]));
40357   try {
40358     {
40359       try {
40360         if (upcall) {
40361           result = ((Xapian::ValueWeightPostingSource const *)arg1)->Xapian::ValueWeightPostingSource::name();
40362         } else {
40363           result = ((Xapian::ValueWeightPostingSource const *)arg1)->name();
40364         }
40365       } catch (...) {
40366         Xapian::SetPythonException();
40367         SWIG_fail;
40368       }
40369     }
40370   } catch (Swig::DirectorException&) {
40371     SWIG_fail;
40372   }
40373 
40374   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
40375 
40376   return resultobj;
40377 fail:
40378   return NULL;
40379 }
40380 
40381 
_wrap_ValueWeightPostingSource_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40382 SWIGINTERN PyObject *_wrap_ValueWeightPostingSource_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40383   PyObject *resultobj = 0;
40384   Xapian::ValueWeightPostingSource *arg1 = (Xapian::ValueWeightPostingSource *) 0 ;
40385   Xapian::Database *arg2 = 0 ;
40386   void *argp1 = 0 ;
40387   int res1 = 0 ;
40388   void *argp2 = 0 ;
40389   int res2 = 0 ;
40390   PyObject *swig_obj[2] ;
40391   Swig::Director *director = 0;
40392   bool upcall = false;
40393 
40394   if (!SWIG_Python_UnpackTuple(args,"ValueWeightPostingSource_init",2,2,swig_obj)) SWIG_fail;
40395   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueWeightPostingSource, 0 |  0 );
40396   if (!SWIG_IsOK(res1)) {
40397     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueWeightPostingSource_init" "', argument " "1"" of type '" "Xapian::ValueWeightPostingSource *""'");
40398   }
40399   arg1 = reinterpret_cast< Xapian::ValueWeightPostingSource * >(argp1);
40400   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Database,  0  | 0);
40401   if (!SWIG_IsOK(res2)) {
40402     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValueWeightPostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
40403   }
40404   if (!argp2) {
40405     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValueWeightPostingSource_init" "', argument " "2"" of type '" "Xapian::Database const &""'");
40406   }
40407   arg2 = reinterpret_cast< Xapian::Database * >(argp2);
40408   director = SWIG_DIRECTOR_CAST(arg1);
40409   upcall = (director && (director->swig_get_self()==swig_obj[0]));
40410   try {
40411     {
40412       try {
40413         if (upcall) {
40414           (arg1)->Xapian::ValueWeightPostingSource::init((Xapian::Database const &)*arg2);
40415         } else {
40416           (arg1)->init((Xapian::Database const &)*arg2);
40417         }
40418       } catch (...) {
40419         Xapian::SetPythonException();
40420         SWIG_fail;
40421       }
40422     }
40423   } catch (Swig::DirectorException&) {
40424     SWIG_fail;
40425   }
40426   resultobj = SWIG_Py_Void();
40427   return resultobj;
40428 fail:
40429   return NULL;
40430 }
40431 
40432 
_wrap_ValueWeightPostingSource___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40433 SWIGINTERN PyObject *_wrap_ValueWeightPostingSource___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40434   PyObject *resultobj = 0;
40435   Xapian::ValueWeightPostingSource *arg1 = (Xapian::ValueWeightPostingSource *) 0 ;
40436   void *argp1 = 0 ;
40437   int res1 = 0 ;
40438   PyObject *swig_obj[1] ;
40439   Swig::Director *director = 0;
40440   bool upcall = false;
40441   std::string result;
40442 
40443   if (!args) SWIG_fail;
40444   swig_obj[0] = args;
40445   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueWeightPostingSource, 0 |  0 );
40446   if (!SWIG_IsOK(res1)) {
40447     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueWeightPostingSource___str__" "', argument " "1"" of type '" "Xapian::ValueWeightPostingSource const *""'");
40448   }
40449   arg1 = reinterpret_cast< Xapian::ValueWeightPostingSource * >(argp1);
40450   director = SWIG_DIRECTOR_CAST(arg1);
40451   upcall = (director && (director->swig_get_self()==swig_obj[0]));
40452   try {
40453     {
40454       try {
40455         if (upcall) {
40456           result = ((Xapian::ValueWeightPostingSource const *)arg1)->Xapian::ValueWeightPostingSource::get_description();
40457         } else {
40458           result = ((Xapian::ValueWeightPostingSource const *)arg1)->get_description();
40459         }
40460       } catch (...) {
40461         Xapian::SetPythonException();
40462         SWIG_fail;
40463       }
40464     }
40465   } catch (Swig::DirectorException&) {
40466     SWIG_fail;
40467   }
40468   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
40469   return resultobj;
40470 fail:
40471   return NULL;
40472 }
40473 
40474 
_wrap_delete_ValueWeightPostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40475 SWIGINTERN PyObject *_wrap_delete_ValueWeightPostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40476   PyObject *resultobj = 0;
40477   Xapian::ValueWeightPostingSource *arg1 = (Xapian::ValueWeightPostingSource *) 0 ;
40478   void *argp1 = 0 ;
40479   int res1 = 0 ;
40480   PyObject *swig_obj[1] ;
40481 
40482   if (!args) SWIG_fail;
40483   swig_obj[0] = args;
40484   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueWeightPostingSource, SWIG_POINTER_DISOWN |  0 );
40485   if (!SWIG_IsOK(res1)) {
40486     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::ValueWeightPostingSource *""'");
40487   }
40488   arg1 = reinterpret_cast< Xapian::ValueWeightPostingSource * >(argp1);
40489   {
40490     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40491     delete arg1;
40492     SWIG_PYTHON_THREAD_END_ALLOW;
40493   }
40494   resultobj = SWIG_Py_Void();
40495   return resultobj;
40496 fail:
40497   return NULL;
40498 }
40499 
40500 
_wrap_disown_ValueWeightPostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40501 SWIGINTERN PyObject *_wrap_disown_ValueWeightPostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40502   PyObject *resultobj = 0;
40503   Xapian::ValueWeightPostingSource *arg1 = (Xapian::ValueWeightPostingSource *) 0 ;
40504   void *argp1 = 0 ;
40505   int res1 = 0 ;
40506   PyObject *swig_obj[1] ;
40507 
40508   if (!args) SWIG_fail;
40509   swig_obj[0] = args;
40510   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueWeightPostingSource, 0 |  0 );
40511   if (!SWIG_IsOK(res1)) {
40512     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_ValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::ValueWeightPostingSource *""'");
40513   }
40514   arg1 = reinterpret_cast< Xapian::ValueWeightPostingSource * >(argp1);
40515   {
40516     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40517     {
40518       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
40519       if (director) director->swig_disown();
40520     }
40521 
40522     SWIG_PYTHON_THREAD_END_ALLOW;
40523   }
40524   resultobj = SWIG_Py_Void();
40525   return resultobj;
40526 fail:
40527   return NULL;
40528 }
40529 
40530 
ValueWeightPostingSource_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40531 SWIGINTERN PyObject *ValueWeightPostingSource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40532   PyObject *obj;
40533   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
40534   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ValueWeightPostingSource, SWIG_NewClientData(obj));
40535   return SWIG_Py_Void();
40536 }
40537 
ValueWeightPostingSource_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40538 SWIGINTERN PyObject *ValueWeightPostingSource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40539   return SWIG_Python_InitShadowInstance(args);
40540 }
40541 
_wrap_new_DecreasingValueWeightPostingSource__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)40542 SWIGINTERN PyObject *_wrap_new_DecreasingValueWeightPostingSource__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
40543   PyObject *resultobj = 0;
40544   Xapian::valueno arg1 ;
40545   Xapian::docid arg2 ;
40546   Xapian::docid arg3 ;
40547   unsigned int val1 ;
40548   int ecode1 = 0 ;
40549   unsigned int val2 ;
40550   int ecode2 = 0 ;
40551   unsigned int val3 ;
40552   int ecode3 = 0 ;
40553   Xapian::DecreasingValueWeightPostingSource *result = 0 ;
40554 
40555   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
40556   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
40557   if (!SWIG_IsOK(ecode1)) {
40558     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
40559   }
40560   arg1 = static_cast< Xapian::valueno >(val1);
40561   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
40562   if (!SWIG_IsOK(ecode2)) {
40563     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "2"" of type '" "Xapian::docid""'");
40564   }
40565   arg2 = static_cast< Xapian::docid >(val2);
40566   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
40567   if (!SWIG_IsOK(ecode3)) {
40568     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "3"" of type '" "Xapian::docid""'");
40569   }
40570   arg3 = static_cast< Xapian::docid >(val3);
40571   {
40572     try {
40573       {
40574         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40575         result = (Xapian::DecreasingValueWeightPostingSource *)new Xapian::DecreasingValueWeightPostingSource(arg1,arg2,arg3);
40576         SWIG_PYTHON_THREAD_END_ALLOW;
40577       }
40578     } catch (...) {
40579       Xapian::SetPythonException();
40580       SWIG_fail;
40581     }
40582   }
40583   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource, SWIG_POINTER_NEW |  0 );
40584   return resultobj;
40585 fail:
40586   return NULL;
40587 }
40588 
40589 
_wrap_new_DecreasingValueWeightPostingSource__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)40590 SWIGINTERN PyObject *_wrap_new_DecreasingValueWeightPostingSource__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
40591   PyObject *resultobj = 0;
40592   Xapian::valueno arg1 ;
40593   Xapian::docid arg2 ;
40594   unsigned int val1 ;
40595   int ecode1 = 0 ;
40596   unsigned int val2 ;
40597   int ecode2 = 0 ;
40598   Xapian::DecreasingValueWeightPostingSource *result = 0 ;
40599 
40600   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
40601   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
40602   if (!SWIG_IsOK(ecode1)) {
40603     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
40604   }
40605   arg1 = static_cast< Xapian::valueno >(val1);
40606   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
40607   if (!SWIG_IsOK(ecode2)) {
40608     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "2"" of type '" "Xapian::docid""'");
40609   }
40610   arg2 = static_cast< Xapian::docid >(val2);
40611   {
40612     try {
40613       {
40614         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40615         result = (Xapian::DecreasingValueWeightPostingSource *)new Xapian::DecreasingValueWeightPostingSource(arg1,arg2);
40616         SWIG_PYTHON_THREAD_END_ALLOW;
40617       }
40618     } catch (...) {
40619       Xapian::SetPythonException();
40620       SWIG_fail;
40621     }
40622   }
40623   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource, SWIG_POINTER_NEW |  0 );
40624   return resultobj;
40625 fail:
40626   return NULL;
40627 }
40628 
40629 
_wrap_new_DecreasingValueWeightPostingSource__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)40630 SWIGINTERN PyObject *_wrap_new_DecreasingValueWeightPostingSource__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
40631   PyObject *resultobj = 0;
40632   Xapian::valueno arg1 ;
40633   unsigned int val1 ;
40634   int ecode1 = 0 ;
40635   Xapian::DecreasingValueWeightPostingSource *result = 0 ;
40636 
40637   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
40638   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
40639   if (!SWIG_IsOK(ecode1)) {
40640     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DecreasingValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
40641   }
40642   arg1 = static_cast< Xapian::valueno >(val1);
40643   {
40644     try {
40645       {
40646         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40647         result = (Xapian::DecreasingValueWeightPostingSource *)new Xapian::DecreasingValueWeightPostingSource(arg1);
40648         SWIG_PYTHON_THREAD_END_ALLOW;
40649       }
40650     } catch (...) {
40651       Xapian::SetPythonException();
40652       SWIG_fail;
40653     }
40654   }
40655   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource, SWIG_POINTER_NEW |  0 );
40656   return resultobj;
40657 fail:
40658   return NULL;
40659 }
40660 
40661 
_wrap_new_DecreasingValueWeightPostingSource(PyObject * self,PyObject * args)40662 SWIGINTERN PyObject *_wrap_new_DecreasingValueWeightPostingSource(PyObject *self, PyObject *args) {
40663   Py_ssize_t argc;
40664   PyObject *argv[4] = {
40665     0
40666   };
40667 
40668   if (!(argc = SWIG_Python_UnpackTuple(args,"new_DecreasingValueWeightPostingSource",0,3,argv))) SWIG_fail;
40669   --argc;
40670   if (argc == 1) {
40671     return _wrap_new_DecreasingValueWeightPostingSource__SWIG_2(self, argc, argv);
40672   }
40673   if (argc == 2) {
40674     return _wrap_new_DecreasingValueWeightPostingSource__SWIG_1(self, argc, argv);
40675   }
40676   if (argc == 3) {
40677     return _wrap_new_DecreasingValueWeightPostingSource__SWIG_0(self, argc, argv);
40678   }
40679 
40680 fail:
40681   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DecreasingValueWeightPostingSource'.\n"
40682     "  Possible C/C++ prototypes are:\n"
40683     "    Xapian::DecreasingValueWeightPostingSource::DecreasingValueWeightPostingSource(Xapian::valueno,Xapian::docid,Xapian::docid)\n"
40684     "    Xapian::DecreasingValueWeightPostingSource::DecreasingValueWeightPostingSource(Xapian::valueno,Xapian::docid)\n"
40685     "    Xapian::DecreasingValueWeightPostingSource::DecreasingValueWeightPostingSource(Xapian::valueno)\n");
40686   return 0;
40687 }
40688 
40689 
_wrap_delete_DecreasingValueWeightPostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40690 SWIGINTERN PyObject *_wrap_delete_DecreasingValueWeightPostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40691   PyObject *resultobj = 0;
40692   Xapian::DecreasingValueWeightPostingSource *arg1 = (Xapian::DecreasingValueWeightPostingSource *) 0 ;
40693   void *argp1 = 0 ;
40694   int res1 = 0 ;
40695   PyObject *swig_obj[1] ;
40696 
40697   if (!args) SWIG_fail;
40698   swig_obj[0] = args;
40699   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource, SWIG_POINTER_DISOWN |  0 );
40700   if (!SWIG_IsOK(res1)) {
40701     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DecreasingValueWeightPostingSource" "', argument " "1"" of type '" "Xapian::DecreasingValueWeightPostingSource *""'");
40702   }
40703   arg1 = reinterpret_cast< Xapian::DecreasingValueWeightPostingSource * >(argp1);
40704   {
40705     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40706     delete arg1;
40707     SWIG_PYTHON_THREAD_END_ALLOW;
40708   }
40709   resultobj = SWIG_Py_Void();
40710   return resultobj;
40711 fail:
40712   return NULL;
40713 }
40714 
40715 
DecreasingValueWeightPostingSource_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40716 SWIGINTERN PyObject *DecreasingValueWeightPostingSource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40717   PyObject *obj;
40718   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
40719   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__DecreasingValueWeightPostingSource, SWIG_NewClientData(obj));
40720   return SWIG_Py_Void();
40721 }
40722 
DecreasingValueWeightPostingSource_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40723 SWIGINTERN PyObject *DecreasingValueWeightPostingSource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40724   return SWIG_Python_InitShadowInstance(args);
40725 }
40726 
_wrap_new_ValueMapPostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40727 SWIGINTERN PyObject *_wrap_new_ValueMapPostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40728   PyObject *resultobj = 0;
40729   Xapian::valueno arg1 ;
40730   unsigned int val1 ;
40731   int ecode1 = 0 ;
40732   PyObject *swig_obj[1] ;
40733   Xapian::ValueMapPostingSource *result = 0 ;
40734 
40735   if (!args) SWIG_fail;
40736   swig_obj[0] = args;
40737   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
40738   if (!SWIG_IsOK(ecode1)) {
40739     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ValueMapPostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
40740   }
40741   arg1 = static_cast< Xapian::valueno >(val1);
40742   {
40743     try {
40744       {
40745         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40746         result = (Xapian::ValueMapPostingSource *)new Xapian::ValueMapPostingSource(arg1);
40747         SWIG_PYTHON_THREAD_END_ALLOW;
40748       }
40749     } catch (...) {
40750       Xapian::SetPythonException();
40751       SWIG_fail;
40752     }
40753   }
40754   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueMapPostingSource, SWIG_POINTER_NEW |  0 );
40755   return resultobj;
40756 fail:
40757   return NULL;
40758 }
40759 
40760 
_wrap_ValueMapPostingSource_add_mapping(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40761 SWIGINTERN PyObject *_wrap_ValueMapPostingSource_add_mapping(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40762   PyObject *resultobj = 0;
40763   Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
40764   std::string *arg2 = 0 ;
40765   double arg3 ;
40766   void *argp1 = 0 ;
40767   int res1 = 0 ;
40768   int res2 = SWIG_OLDOBJ ;
40769   double val3 ;
40770   int ecode3 = 0 ;
40771   PyObject *swig_obj[3] ;
40772 
40773   if (!SWIG_Python_UnpackTuple(args,"ValueMapPostingSource_add_mapping",3,3,swig_obj)) SWIG_fail;
40774   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueMapPostingSource, 0 |  0 );
40775   if (!SWIG_IsOK(res1)) {
40776     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueMapPostingSource_add_mapping" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource *""'");
40777   }
40778   arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
40779   {
40780     std::string *ptr = (std::string *)0;
40781     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
40782     if (!SWIG_IsOK(res2)) {
40783       if (res2 == INT_MIN) SWIG_fail;
40784       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ValueMapPostingSource_add_mapping" "', argument " "2"" of type '" "std::string const &""'");
40785     }
40786     if (!ptr) {
40787       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ValueMapPostingSource_add_mapping" "', argument " "2"" of type '" "std::string const &""'");
40788     }
40789     arg2 = ptr;
40790   }
40791   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
40792   if (!SWIG_IsOK(ecode3)) {
40793     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ValueMapPostingSource_add_mapping" "', argument " "3"" of type '" "double""'");
40794   }
40795   arg3 = static_cast< double >(val3);
40796   {
40797     try {
40798       {
40799         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40800         (arg1)->add_mapping((std::string const &)*arg2,arg3);
40801         SWIG_PYTHON_THREAD_END_ALLOW;
40802       }
40803     } catch (...) {
40804       Xapian::SetPythonException();
40805       SWIG_fail;
40806     }
40807   }
40808   resultobj = SWIG_Py_Void();
40809   if (SWIG_IsNewObj(res2)) delete arg2;
40810   return resultobj;
40811 fail:
40812   if (SWIG_IsNewObj(res2)) delete arg2;
40813   return NULL;
40814 }
40815 
40816 
_wrap_ValueMapPostingSource_clear_mappings(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40817 SWIGINTERN PyObject *_wrap_ValueMapPostingSource_clear_mappings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40818   PyObject *resultobj = 0;
40819   Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
40820   void *argp1 = 0 ;
40821   int res1 = 0 ;
40822   PyObject *swig_obj[1] ;
40823 
40824   if (!args) SWIG_fail;
40825   swig_obj[0] = args;
40826   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueMapPostingSource, 0 |  0 );
40827   if (!SWIG_IsOK(res1)) {
40828     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueMapPostingSource_clear_mappings" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource *""'");
40829   }
40830   arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
40831   {
40832     try {
40833       {
40834         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40835         (arg1)->clear_mappings();
40836         SWIG_PYTHON_THREAD_END_ALLOW;
40837       }
40838     } catch (...) {
40839       Xapian::SetPythonException();
40840       SWIG_fail;
40841     }
40842   }
40843   resultobj = SWIG_Py_Void();
40844   return resultobj;
40845 fail:
40846   return NULL;
40847 }
40848 
40849 
_wrap_ValueMapPostingSource_set_default_weight(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40850 SWIGINTERN PyObject *_wrap_ValueMapPostingSource_set_default_weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40851   PyObject *resultobj = 0;
40852   Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
40853   double arg2 ;
40854   void *argp1 = 0 ;
40855   int res1 = 0 ;
40856   double val2 ;
40857   int ecode2 = 0 ;
40858   PyObject *swig_obj[2] ;
40859 
40860   if (!SWIG_Python_UnpackTuple(args,"ValueMapPostingSource_set_default_weight",2,2,swig_obj)) SWIG_fail;
40861   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueMapPostingSource, 0 |  0 );
40862   if (!SWIG_IsOK(res1)) {
40863     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueMapPostingSource_set_default_weight" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource *""'");
40864   }
40865   arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
40866   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
40867   if (!SWIG_IsOK(ecode2)) {
40868     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValueMapPostingSource_set_default_weight" "', argument " "2"" of type '" "double""'");
40869   }
40870   arg2 = static_cast< double >(val2);
40871   {
40872     try {
40873       {
40874         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40875         (arg1)->set_default_weight(arg2);
40876         SWIG_PYTHON_THREAD_END_ALLOW;
40877       }
40878     } catch (...) {
40879       Xapian::SetPythonException();
40880       SWIG_fail;
40881     }
40882   }
40883   resultobj = SWIG_Py_Void();
40884   return resultobj;
40885 fail:
40886   return NULL;
40887 }
40888 
40889 
_wrap_delete_ValueMapPostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40890 SWIGINTERN PyObject *_wrap_delete_ValueMapPostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40891   PyObject *resultobj = 0;
40892   Xapian::ValueMapPostingSource *arg1 = (Xapian::ValueMapPostingSource *) 0 ;
40893   void *argp1 = 0 ;
40894   int res1 = 0 ;
40895   PyObject *swig_obj[1] ;
40896 
40897   if (!args) SWIG_fail;
40898   swig_obj[0] = args;
40899   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueMapPostingSource, SWIG_POINTER_DISOWN |  0 );
40900   if (!SWIG_IsOK(res1)) {
40901     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ValueMapPostingSource" "', argument " "1"" of type '" "Xapian::ValueMapPostingSource *""'");
40902   }
40903   arg1 = reinterpret_cast< Xapian::ValueMapPostingSource * >(argp1);
40904   {
40905     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40906     delete arg1;
40907     SWIG_PYTHON_THREAD_END_ALLOW;
40908   }
40909   resultobj = SWIG_Py_Void();
40910   return resultobj;
40911 fail:
40912   return NULL;
40913 }
40914 
40915 
ValueMapPostingSource_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40916 SWIGINTERN PyObject *ValueMapPostingSource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40917   PyObject *obj;
40918   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
40919   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ValueMapPostingSource, SWIG_NewClientData(obj));
40920   return SWIG_Py_Void();
40921 }
40922 
ValueMapPostingSource_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40923 SWIGINTERN PyObject *ValueMapPostingSource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40924   return SWIG_Python_InitShadowInstance(args);
40925 }
40926 
_wrap_new_FixedWeightPostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40927 SWIGINTERN PyObject *_wrap_new_FixedWeightPostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40928   PyObject *resultobj = 0;
40929   double arg1 ;
40930   double val1 ;
40931   int ecode1 = 0 ;
40932   PyObject *swig_obj[1] ;
40933   Xapian::FixedWeightPostingSource *result = 0 ;
40934 
40935   if (!args) SWIG_fail;
40936   swig_obj[0] = args;
40937   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
40938   if (!SWIG_IsOK(ecode1)) {
40939     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedWeightPostingSource" "', argument " "1"" of type '" "double""'");
40940   }
40941   arg1 = static_cast< double >(val1);
40942   {
40943     try {
40944       {
40945         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40946         result = (Xapian::FixedWeightPostingSource *)new Xapian::FixedWeightPostingSource(arg1);
40947         SWIG_PYTHON_THREAD_END_ALLOW;
40948       }
40949     } catch (...) {
40950       Xapian::SetPythonException();
40951       SWIG_fail;
40952     }
40953   }
40954   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__FixedWeightPostingSource, SWIG_POINTER_NEW |  0 );
40955   return resultobj;
40956 fail:
40957   return NULL;
40958 }
40959 
40960 
_wrap_delete_FixedWeightPostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40961 SWIGINTERN PyObject *_wrap_delete_FixedWeightPostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40962   PyObject *resultobj = 0;
40963   Xapian::FixedWeightPostingSource *arg1 = (Xapian::FixedWeightPostingSource *) 0 ;
40964   void *argp1 = 0 ;
40965   int res1 = 0 ;
40966   PyObject *swig_obj[1] ;
40967 
40968   if (!args) SWIG_fail;
40969   swig_obj[0] = args;
40970   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__FixedWeightPostingSource, SWIG_POINTER_DISOWN |  0 );
40971   if (!SWIG_IsOK(res1)) {
40972     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FixedWeightPostingSource" "', argument " "1"" of type '" "Xapian::FixedWeightPostingSource *""'");
40973   }
40974   arg1 = reinterpret_cast< Xapian::FixedWeightPostingSource * >(argp1);
40975   {
40976     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40977     delete arg1;
40978     SWIG_PYTHON_THREAD_END_ALLOW;
40979   }
40980   resultobj = SWIG_Py_Void();
40981   return resultobj;
40982 fail:
40983   return NULL;
40984 }
40985 
40986 
FixedWeightPostingSource_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40987 SWIGINTERN PyObject *FixedWeightPostingSource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40988   PyObject *obj;
40989   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
40990   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__FixedWeightPostingSource, SWIG_NewClientData(obj));
40991   return SWIG_Py_Void();
40992 }
40993 
FixedWeightPostingSource_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40994 SWIGINTERN PyObject *FixedWeightPostingSource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40995   return SWIG_Python_InitShadowInstance(args);
40996 }
40997 
_wrap_new_MatchSpy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)40998 SWIGINTERN PyObject *_wrap_new_MatchSpy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40999   PyObject *resultobj = 0;
41000   PyObject *arg1 = (PyObject *) 0 ;
41001   PyObject *swig_obj[1] ;
41002   Xapian::MatchSpy *result = 0 ;
41003 
41004   if (!args) SWIG_fail;
41005   swig_obj[0] = args;
41006   arg1 = swig_obj[0];
41007   {
41008     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41009     if ( arg1 != Py_None ) {
41010       /* subclassed */
41011       result = (Xapian::MatchSpy *)new SwigDirector_MatchSpy(arg1);
41012     } else {
41013       SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
41014       SWIG_fail;
41015     }
41016 
41017     SWIG_PYTHON_THREAD_END_ALLOW;
41018   }
41019   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MatchSpy, SWIG_POINTER_NEW |  0 );
41020   return resultobj;
41021 fail:
41022   return NULL;
41023 }
41024 
41025 
_wrap_delete_MatchSpy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41026 SWIGINTERN PyObject *_wrap_delete_MatchSpy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41027   PyObject *resultobj = 0;
41028   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
41029   void *argp1 = 0 ;
41030   int res1 = 0 ;
41031   PyObject *swig_obj[1] ;
41032 
41033   if (!args) SWIG_fail;
41034   swig_obj[0] = args;
41035   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchSpy, SWIG_POINTER_DISOWN |  0 );
41036   if (!SWIG_IsOK(res1)) {
41037     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MatchSpy" "', argument " "1"" of type '" "Xapian::MatchSpy *""'");
41038   }
41039   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
41040   {
41041     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41042     delete arg1;
41043     SWIG_PYTHON_THREAD_END_ALLOW;
41044   }
41045   resultobj = SWIG_Py_Void();
41046   return resultobj;
41047 fail:
41048   return NULL;
41049 }
41050 
41051 
_wrap_MatchSpy___call__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41052 SWIGINTERN PyObject *_wrap_MatchSpy___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41053   PyObject *resultobj = 0;
41054   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
41055   Xapian::Document *arg2 = 0 ;
41056   double arg3 ;
41057   void *argp1 = 0 ;
41058   int res1 = 0 ;
41059   void *argp2 = 0 ;
41060   int res2 = 0 ;
41061   double val3 ;
41062   int ecode3 = 0 ;
41063   PyObject *swig_obj[3] ;
41064   Swig::Director *director = 0;
41065   bool upcall = false;
41066 
41067   if (!SWIG_Python_UnpackTuple(args,"MatchSpy___call__",3,3,swig_obj)) SWIG_fail;
41068   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
41069   if (!SWIG_IsOK(res1)) {
41070     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatchSpy___call__" "', argument " "1"" of type '" "Xapian::MatchSpy *""'");
41071   }
41072   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
41073   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Document,  0  | 0);
41074   if (!SWIG_IsOK(res2)) {
41075     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MatchSpy___call__" "', argument " "2"" of type '" "Xapian::Document const &""'");
41076   }
41077   if (!argp2) {
41078     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MatchSpy___call__" "', argument " "2"" of type '" "Xapian::Document const &""'");
41079   }
41080   arg2 = reinterpret_cast< Xapian::Document * >(argp2);
41081   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
41082   if (!SWIG_IsOK(ecode3)) {
41083     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MatchSpy___call__" "', argument " "3"" of type '" "double""'");
41084   }
41085   arg3 = static_cast< double >(val3);
41086   director = SWIG_DIRECTOR_CAST(arg1);
41087   upcall = (director && (director->swig_get_self()==swig_obj[0]));
41088   try {
41089     {
41090       try {
41091         if (upcall) {
41092           Swig::DirectorPureVirtualException::raise("Xapian::MatchSpy::operator ()");
41093         } else {
41094           (arg1)->operator ()((Xapian::Document const &)*arg2,arg3);
41095         }
41096       } catch (...) {
41097         Xapian::SetPythonException();
41098         SWIG_fail;
41099       }
41100     }
41101   } catch (Swig::DirectorException&) {
41102     SWIG_fail;
41103   }
41104   resultobj = SWIG_Py_Void();
41105   return resultobj;
41106 fail:
41107   return NULL;
41108 }
41109 
41110 
_wrap_MatchSpy_name(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41111 SWIGINTERN PyObject *_wrap_MatchSpy_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41112   PyObject *resultobj = 0;
41113   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
41114   void *argp1 = 0 ;
41115   int res1 = 0 ;
41116   PyObject *swig_obj[1] ;
41117   Swig::Director *director = 0;
41118   bool upcall = false;
41119   std::string result;
41120 
41121   if (!args) SWIG_fail;
41122   swig_obj[0] = args;
41123   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
41124   if (!SWIG_IsOK(res1)) {
41125     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatchSpy_name" "', argument " "1"" of type '" "Xapian::MatchSpy const *""'");
41126   }
41127   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
41128   director = SWIG_DIRECTOR_CAST(arg1);
41129   upcall = (director && (director->swig_get_self()==swig_obj[0]));
41130   try {
41131     {
41132       try {
41133         if (upcall) {
41134           result = ((Xapian::MatchSpy const *)arg1)->Xapian::MatchSpy::name();
41135         } else {
41136           result = ((Xapian::MatchSpy const *)arg1)->name();
41137         }
41138       } catch (...) {
41139         Xapian::SetPythonException();
41140         SWIG_fail;
41141       }
41142     }
41143   } catch (Swig::DirectorException&) {
41144     SWIG_fail;
41145   }
41146 
41147   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
41148 
41149   return resultobj;
41150 fail:
41151   return NULL;
41152 }
41153 
41154 
_wrap_MatchSpy_merge_results(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41155 SWIGINTERN PyObject *_wrap_MatchSpy_merge_results(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41156   PyObject *resultobj = 0;
41157   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
41158   std::string *arg2 = 0 ;
41159   void *argp1 = 0 ;
41160   int res1 = 0 ;
41161   std::string bytes2 ;
41162   PyObject *swig_obj[2] ;
41163   Swig::Director *director = 0;
41164   bool upcall = false;
41165 
41166   if (!SWIG_Python_UnpackTuple(args,"MatchSpy_merge_results",2,2,swig_obj)) SWIG_fail;
41167   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
41168   if (!SWIG_IsOK(res1)) {
41169     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatchSpy_merge_results" "', argument " "1"" of type '" "Xapian::MatchSpy *""'");
41170   }
41171   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
41172   {
41173     char * p;
41174     Py_ssize_t len;
41175     if (PyBytes_AsStringAndSize(swig_obj[1], &p, &len) < 0) SWIG_fail;
41176     bytes2.assign(p, len);
41177     arg2 = &bytes2;
41178   }
41179   director = SWIG_DIRECTOR_CAST(arg1);
41180   upcall = (director && (director->swig_get_self()==swig_obj[0]));
41181   try {
41182     {
41183       try {
41184         if (upcall) {
41185           (arg1)->Xapian::MatchSpy::merge_results((std::string const &)*arg2);
41186         } else {
41187           (arg1)->merge_results((std::string const &)*arg2);
41188         }
41189       } catch (...) {
41190         Xapian::SetPythonException();
41191         SWIG_fail;
41192       }
41193     }
41194   } catch (Swig::DirectorException&) {
41195     SWIG_fail;
41196   }
41197   resultobj = SWIG_Py_Void();
41198   return resultobj;
41199 fail:
41200   return NULL;
41201 }
41202 
41203 
_wrap_MatchSpy___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41204 SWIGINTERN PyObject *_wrap_MatchSpy___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41205   PyObject *resultobj = 0;
41206   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
41207   void *argp1 = 0 ;
41208   int res1 = 0 ;
41209   PyObject *swig_obj[1] ;
41210   Swig::Director *director = 0;
41211   bool upcall = false;
41212   std::string result;
41213 
41214   if (!args) SWIG_fail;
41215   swig_obj[0] = args;
41216   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
41217   if (!SWIG_IsOK(res1)) {
41218     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatchSpy___str__" "', argument " "1"" of type '" "Xapian::MatchSpy const *""'");
41219   }
41220   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
41221   director = SWIG_DIRECTOR_CAST(arg1);
41222   upcall = (director && (director->swig_get_self()==swig_obj[0]));
41223   try {
41224     {
41225       try {
41226         if (upcall) {
41227           result = ((Xapian::MatchSpy const *)arg1)->Xapian::MatchSpy::get_description();
41228         } else {
41229           result = ((Xapian::MatchSpy const *)arg1)->get_description();
41230         }
41231       } catch (...) {
41232         Xapian::SetPythonException();
41233         SWIG_fail;
41234       }
41235     }
41236   } catch (Swig::DirectorException&) {
41237     SWIG_fail;
41238   }
41239   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
41240   return resultobj;
41241 fail:
41242   return NULL;
41243 }
41244 
41245 
_wrap_MatchSpy_release(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41246 SWIGINTERN PyObject *_wrap_MatchSpy_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41247   PyObject *resultobj = 0;
41248   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
41249   void *argp1 = 0 ;
41250   int res1 = 0 ;
41251   PyObject *swig_obj[1] ;
41252   Swig::Director *director = 0;
41253   Xapian::MatchSpy *result = 0 ;
41254 
41255   if (!args) SWIG_fail;
41256   swig_obj[0] = args;
41257   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
41258   if (!SWIG_IsOK(res1)) {
41259     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatchSpy_release" "', argument " "1"" of type '" "Xapian::MatchSpy const *""'");
41260   }
41261   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
41262   {
41263     try {
41264       {
41265         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41266         result = (Xapian::MatchSpy *)((Xapian::MatchSpy const *)arg1)->release();
41267         SWIG_PYTHON_THREAD_END_ALLOW;
41268       }
41269     } catch (...) {
41270       Xapian::SetPythonException();
41271       SWIG_fail;
41272     }
41273   }
41274   director = SWIG_DIRECTOR_CAST(result);
41275   if (director) {
41276     resultobj = director->swig_get_self();
41277     Py_INCREF(resultobj);
41278   } else {
41279     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
41280   }
41281   return resultobj;
41282 fail:
41283   return NULL;
41284 }
41285 
41286 
_wrap_disown_MatchSpy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41287 SWIGINTERN PyObject *_wrap_disown_MatchSpy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41288   PyObject *resultobj = 0;
41289   Xapian::MatchSpy *arg1 = (Xapian::MatchSpy *) 0 ;
41290   void *argp1 = 0 ;
41291   int res1 = 0 ;
41292   PyObject *swig_obj[1] ;
41293 
41294   if (!args) SWIG_fail;
41295   swig_obj[0] = args;
41296   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__MatchSpy, 0 |  0 );
41297   if (!SWIG_IsOK(res1)) {
41298     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_MatchSpy" "', argument " "1"" of type '" "Xapian::MatchSpy *""'");
41299   }
41300   arg1 = reinterpret_cast< Xapian::MatchSpy * >(argp1);
41301   {
41302     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41303     {
41304       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
41305       if (director) director->swig_disown();
41306     }
41307 
41308     SWIG_PYTHON_THREAD_END_ALLOW;
41309   }
41310   resultobj = SWIG_Py_Void();
41311   return resultobj;
41312 fail:
41313   return NULL;
41314 }
41315 
41316 
MatchSpy_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41317 SWIGINTERN PyObject *MatchSpy_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41318   PyObject *obj;
41319   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
41320   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__MatchSpy, SWIG_NewClientData(obj));
41321   return SWIG_Py_Void();
41322 }
41323 
MatchSpy_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41324 SWIGINTERN PyObject *MatchSpy_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41325   return SWIG_Python_InitShadowInstance(args);
41326 }
41327 
_wrap_new_ValueCountMatchSpy__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))41328 SWIGINTERN PyObject *_wrap_new_ValueCountMatchSpy__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
41329   PyObject *resultobj = 0;
41330   Xapian::ValueCountMatchSpy *result = 0 ;
41331 
41332   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
41333   {
41334     try {
41335       {
41336         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41337         result = (Xapian::ValueCountMatchSpy *)new Xapian::ValueCountMatchSpy();
41338         SWIG_PYTHON_THREAD_END_ALLOW;
41339       }
41340     } catch (...) {
41341       Xapian::SetPythonException();
41342       SWIG_fail;
41343     }
41344   }
41345   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueCountMatchSpy, SWIG_POINTER_NEW |  0 );
41346   return resultobj;
41347 fail:
41348   return NULL;
41349 }
41350 
41351 
_wrap_new_ValueCountMatchSpy__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)41352 SWIGINTERN PyObject *_wrap_new_ValueCountMatchSpy__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
41353   PyObject *resultobj = 0;
41354   Xapian::valueno arg1 ;
41355   unsigned int val1 ;
41356   int ecode1 = 0 ;
41357   Xapian::ValueCountMatchSpy *result = 0 ;
41358 
41359   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
41360   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
41361   if (!SWIG_IsOK(ecode1)) {
41362     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ValueCountMatchSpy" "', argument " "1"" of type '" "Xapian::valueno""'");
41363   }
41364   arg1 = static_cast< Xapian::valueno >(val1);
41365   {
41366     try {
41367       {
41368         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41369         result = (Xapian::ValueCountMatchSpy *)new Xapian::ValueCountMatchSpy(arg1);
41370         SWIG_PYTHON_THREAD_END_ALLOW;
41371       }
41372     } catch (...) {
41373       Xapian::SetPythonException();
41374       SWIG_fail;
41375     }
41376   }
41377   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__ValueCountMatchSpy, SWIG_POINTER_NEW |  0 );
41378   return resultobj;
41379 fail:
41380   return NULL;
41381 }
41382 
41383 
_wrap_new_ValueCountMatchSpy(PyObject * self,PyObject * args)41384 SWIGINTERN PyObject *_wrap_new_ValueCountMatchSpy(PyObject *self, PyObject *args) {
41385   Py_ssize_t argc;
41386   PyObject *argv[2] = {
41387     0
41388   };
41389 
41390   if (!(argc = SWIG_Python_UnpackTuple(args,"new_ValueCountMatchSpy",0,1,argv))) SWIG_fail;
41391   --argc;
41392   if (argc == 0) {
41393     return _wrap_new_ValueCountMatchSpy__SWIG_0(self, argc, argv);
41394   }
41395   if (argc == 1) {
41396     return _wrap_new_ValueCountMatchSpy__SWIG_1(self, argc, argv);
41397   }
41398 
41399 fail:
41400   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ValueCountMatchSpy'.\n"
41401     "  Possible C/C++ prototypes are:\n"
41402     "    Xapian::ValueCountMatchSpy::ValueCountMatchSpy()\n"
41403     "    Xapian::ValueCountMatchSpy::ValueCountMatchSpy(Xapian::valueno)\n");
41404   return 0;
41405 }
41406 
41407 
_wrap_ValueCountMatchSpy_get_total(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41408 SWIGINTERN PyObject *_wrap_ValueCountMatchSpy_get_total(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41409   PyObject *resultobj = 0;
41410   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
41411   void *argp1 = 0 ;
41412   int res1 = 0 ;
41413   PyObject *swig_obj[1] ;
41414   size_t result;
41415 
41416   if (!args) SWIG_fail;
41417   swig_obj[0] = args;
41418   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, 0 |  0 );
41419   if (!SWIG_IsOK(res1)) {
41420     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueCountMatchSpy_get_total" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'");
41421   }
41422   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
41423   {
41424     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41425     result = ((Xapian::ValueCountMatchSpy const *)arg1)->get_total();
41426     SWIG_PYTHON_THREAD_END_ALLOW;
41427   }
41428   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
41429   return resultobj;
41430 fail:
41431   return NULL;
41432 }
41433 
41434 
_wrap_ValueCountMatchSpy_values_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41435 SWIGINTERN PyObject *_wrap_ValueCountMatchSpy_values_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41436   PyObject *resultobj = 0;
41437   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
41438   void *argp1 = 0 ;
41439   int res1 = 0 ;
41440   PyObject *swig_obj[1] ;
41441   Xapian::TermIterator result;
41442 
41443   if (!args) SWIG_fail;
41444   swig_obj[0] = args;
41445   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, 0 |  0 );
41446   if (!SWIG_IsOK(res1)) {
41447     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueCountMatchSpy_values_begin" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'");
41448   }
41449   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
41450   {
41451     try {
41452       {
41453         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41454         result = ((Xapian::ValueCountMatchSpy const *)arg1)->values_begin();
41455         SWIG_PYTHON_THREAD_END_ALLOW;
41456       }
41457     } catch (...) {
41458       Xapian::SetPythonException();
41459       SWIG_fail;
41460     }
41461   }
41462   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
41463   return resultobj;
41464 fail:
41465   return NULL;
41466 }
41467 
41468 
_wrap_ValueCountMatchSpy_values_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41469 SWIGINTERN PyObject *_wrap_ValueCountMatchSpy_values_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41470   PyObject *resultobj = 0;
41471   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
41472   void *argp1 = 0 ;
41473   int res1 = 0 ;
41474   PyObject *swig_obj[1] ;
41475   Xapian::TermIterator result;
41476 
41477   if (!args) SWIG_fail;
41478   swig_obj[0] = args;
41479   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, 0 |  0 );
41480   if (!SWIG_IsOK(res1)) {
41481     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueCountMatchSpy_values_end" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'");
41482   }
41483   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
41484   {
41485     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41486     result = ((Xapian::ValueCountMatchSpy const *)arg1)->values_end();
41487     SWIG_PYTHON_THREAD_END_ALLOW;
41488   }
41489   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
41490   return resultobj;
41491 fail:
41492   return NULL;
41493 }
41494 
41495 
_wrap_ValueCountMatchSpy_top_values_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41496 SWIGINTERN PyObject *_wrap_ValueCountMatchSpy_top_values_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41497   PyObject *resultobj = 0;
41498   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
41499   size_t arg2 ;
41500   void *argp1 = 0 ;
41501   int res1 = 0 ;
41502   size_t val2 ;
41503   int ecode2 = 0 ;
41504   PyObject *swig_obj[2] ;
41505   Xapian::TermIterator result;
41506 
41507   if (!SWIG_Python_UnpackTuple(args,"ValueCountMatchSpy_top_values_begin",2,2,swig_obj)) SWIG_fail;
41508   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, 0 |  0 );
41509   if (!SWIG_IsOK(res1)) {
41510     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueCountMatchSpy_top_values_begin" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'");
41511   }
41512   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
41513   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
41514   if (!SWIG_IsOK(ecode2)) {
41515     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValueCountMatchSpy_top_values_begin" "', argument " "2"" of type '" "size_t""'");
41516   }
41517   arg2 = static_cast< size_t >(val2);
41518   {
41519     try {
41520       {
41521         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41522         result = ((Xapian::ValueCountMatchSpy const *)arg1)->top_values_begin(arg2);
41523         SWIG_PYTHON_THREAD_END_ALLOW;
41524       }
41525     } catch (...) {
41526       Xapian::SetPythonException();
41527       SWIG_fail;
41528     }
41529   }
41530   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
41531   return resultobj;
41532 fail:
41533   return NULL;
41534 }
41535 
41536 
_wrap_ValueCountMatchSpy_top_values_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41537 SWIGINTERN PyObject *_wrap_ValueCountMatchSpy_top_values_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41538   PyObject *resultobj = 0;
41539   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
41540   size_t arg2 ;
41541   void *argp1 = 0 ;
41542   int res1 = 0 ;
41543   size_t val2 ;
41544   int ecode2 = 0 ;
41545   PyObject *swig_obj[2] ;
41546   Xapian::TermIterator result;
41547 
41548   if (!SWIG_Python_UnpackTuple(args,"ValueCountMatchSpy_top_values_end",2,2,swig_obj)) SWIG_fail;
41549   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, 0 |  0 );
41550   if (!SWIG_IsOK(res1)) {
41551     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ValueCountMatchSpy_top_values_end" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy const *""'");
41552   }
41553   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
41554   ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
41555   if (!SWIG_IsOK(ecode2)) {
41556     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ValueCountMatchSpy_top_values_end" "', argument " "2"" of type '" "size_t""'");
41557   }
41558   arg2 = static_cast< size_t >(val2);
41559   {
41560     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41561     result = ((Xapian::ValueCountMatchSpy const *)arg1)->top_values_end(arg2);
41562     SWIG_PYTHON_THREAD_END_ALLOW;
41563   }
41564   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
41565   return resultobj;
41566 fail:
41567   return NULL;
41568 }
41569 
41570 
_wrap_delete_ValueCountMatchSpy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41571 SWIGINTERN PyObject *_wrap_delete_ValueCountMatchSpy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41572   PyObject *resultobj = 0;
41573   Xapian::ValueCountMatchSpy *arg1 = (Xapian::ValueCountMatchSpy *) 0 ;
41574   void *argp1 = 0 ;
41575   int res1 = 0 ;
41576   PyObject *swig_obj[1] ;
41577 
41578   if (!args) SWIG_fail;
41579   swig_obj[0] = args;
41580   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__ValueCountMatchSpy, SWIG_POINTER_DISOWN |  0 );
41581   if (!SWIG_IsOK(res1)) {
41582     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ValueCountMatchSpy" "', argument " "1"" of type '" "Xapian::ValueCountMatchSpy *""'");
41583   }
41584   arg1 = reinterpret_cast< Xapian::ValueCountMatchSpy * >(argp1);
41585   {
41586     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41587     delete arg1;
41588     SWIG_PYTHON_THREAD_END_ALLOW;
41589   }
41590   resultobj = SWIG_Py_Void();
41591   return resultobj;
41592 fail:
41593   return NULL;
41594 }
41595 
41596 
ValueCountMatchSpy_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41597 SWIGINTERN PyObject *ValueCountMatchSpy_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41598   PyObject *obj;
41599   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
41600   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__ValueCountMatchSpy, SWIG_NewClientData(obj));
41601   return SWIG_Py_Void();
41602 }
41603 
ValueCountMatchSpy_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41604 SWIGINTERN PyObject *ValueCountMatchSpy_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41605   return SWIG_Python_InitShadowInstance(args);
41606 }
41607 
_wrap_miles_to_metres(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41608 SWIGINTERN PyObject *_wrap_miles_to_metres(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41609   PyObject *resultobj = 0;
41610   double arg1 ;
41611   double val1 ;
41612   int ecode1 = 0 ;
41613   PyObject *swig_obj[1] ;
41614   double result;
41615 
41616   if (!args) SWIG_fail;
41617   swig_obj[0] = args;
41618   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
41619   if (!SWIG_IsOK(ecode1)) {
41620     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "miles_to_metres" "', argument " "1"" of type '" "double""'");
41621   }
41622   arg1 = static_cast< double >(val1);
41623   {
41624     try {
41625       {
41626         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41627         result = (double)Xapian::miles_to_metres(arg1);
41628         SWIG_PYTHON_THREAD_END_ALLOW;
41629       }
41630     } catch (...) {
41631       Xapian::SetPythonException();
41632       SWIG_fail;
41633     }
41634   }
41635   resultobj = SWIG_From_double(static_cast< double >(result));
41636   return resultobj;
41637 fail:
41638   return NULL;
41639 }
41640 
41641 
_wrap_metres_to_miles(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41642 SWIGINTERN PyObject *_wrap_metres_to_miles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41643   PyObject *resultobj = 0;
41644   double arg1 ;
41645   double val1 ;
41646   int ecode1 = 0 ;
41647   PyObject *swig_obj[1] ;
41648   double result;
41649 
41650   if (!args) SWIG_fail;
41651   swig_obj[0] = args;
41652   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
41653   if (!SWIG_IsOK(ecode1)) {
41654     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "metres_to_miles" "', argument " "1"" of type '" "double""'");
41655   }
41656   arg1 = static_cast< double >(val1);
41657   {
41658     try {
41659       {
41660         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41661         result = (double)Xapian::metres_to_miles(arg1);
41662         SWIG_PYTHON_THREAD_END_ALLOW;
41663       }
41664     } catch (...) {
41665       Xapian::SetPythonException();
41666       SWIG_fail;
41667     }
41668   }
41669   resultobj = SWIG_From_double(static_cast< double >(result));
41670   return resultobj;
41671 fail:
41672   return NULL;
41673 }
41674 
41675 
_wrap_LatLongCoord_latitude_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41676 SWIGINTERN PyObject *_wrap_LatLongCoord_latitude_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41677   PyObject *resultobj = 0;
41678   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
41679   double arg2 ;
41680   void *argp1 = 0 ;
41681   int res1 = 0 ;
41682   double val2 ;
41683   int ecode2 = 0 ;
41684   PyObject *swig_obj[2] ;
41685 
41686   if (!SWIG_Python_UnpackTuple(args,"LatLongCoord_latitude_set",2,2,swig_obj)) SWIG_fail;
41687   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
41688   if (!SWIG_IsOK(res1)) {
41689     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord_latitude_set" "', argument " "1"" of type '" "Xapian::LatLongCoord *""'");
41690   }
41691   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
41692   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
41693   if (!SWIG_IsOK(ecode2)) {
41694     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LatLongCoord_latitude_set" "', argument " "2"" of type '" "double""'");
41695   }
41696   arg2 = static_cast< double >(val2);
41697   {
41698     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41699     if (arg1) (arg1)->latitude = arg2;
41700     SWIG_PYTHON_THREAD_END_ALLOW;
41701   }
41702   resultobj = SWIG_Py_Void();
41703   return resultobj;
41704 fail:
41705   return NULL;
41706 }
41707 
41708 
_wrap_LatLongCoord_latitude_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41709 SWIGINTERN PyObject *_wrap_LatLongCoord_latitude_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41710   PyObject *resultobj = 0;
41711   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
41712   void *argp1 = 0 ;
41713   int res1 = 0 ;
41714   PyObject *swig_obj[1] ;
41715   double result;
41716 
41717   if (!args) SWIG_fail;
41718   swig_obj[0] = args;
41719   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
41720   if (!SWIG_IsOK(res1)) {
41721     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord_latitude_get" "', argument " "1"" of type '" "Xapian::LatLongCoord *""'");
41722   }
41723   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
41724   {
41725     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41726     result = (double) ((arg1)->latitude);
41727     SWIG_PYTHON_THREAD_END_ALLOW;
41728   }
41729   resultobj = SWIG_From_double(static_cast< double >(result));
41730   return resultobj;
41731 fail:
41732   return NULL;
41733 }
41734 
41735 
_wrap_LatLongCoord_longitude_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41736 SWIGINTERN PyObject *_wrap_LatLongCoord_longitude_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41737   PyObject *resultobj = 0;
41738   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
41739   double arg2 ;
41740   void *argp1 = 0 ;
41741   int res1 = 0 ;
41742   double val2 ;
41743   int ecode2 = 0 ;
41744   PyObject *swig_obj[2] ;
41745 
41746   if (!SWIG_Python_UnpackTuple(args,"LatLongCoord_longitude_set",2,2,swig_obj)) SWIG_fail;
41747   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
41748   if (!SWIG_IsOK(res1)) {
41749     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord_longitude_set" "', argument " "1"" of type '" "Xapian::LatLongCoord *""'");
41750   }
41751   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
41752   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
41753   if (!SWIG_IsOK(ecode2)) {
41754     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LatLongCoord_longitude_set" "', argument " "2"" of type '" "double""'");
41755   }
41756   arg2 = static_cast< double >(val2);
41757   {
41758     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41759     if (arg1) (arg1)->longitude = arg2;
41760     SWIG_PYTHON_THREAD_END_ALLOW;
41761   }
41762   resultobj = SWIG_Py_Void();
41763   return resultobj;
41764 fail:
41765   return NULL;
41766 }
41767 
41768 
_wrap_LatLongCoord_longitude_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41769 SWIGINTERN PyObject *_wrap_LatLongCoord_longitude_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41770   PyObject *resultobj = 0;
41771   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
41772   void *argp1 = 0 ;
41773   int res1 = 0 ;
41774   PyObject *swig_obj[1] ;
41775   double result;
41776 
41777   if (!args) SWIG_fail;
41778   swig_obj[0] = args;
41779   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
41780   if (!SWIG_IsOK(res1)) {
41781     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord_longitude_get" "', argument " "1"" of type '" "Xapian::LatLongCoord *""'");
41782   }
41783   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
41784   {
41785     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41786     result = (double) ((arg1)->longitude);
41787     SWIG_PYTHON_THREAD_END_ALLOW;
41788   }
41789   resultobj = SWIG_From_double(static_cast< double >(result));
41790   return resultobj;
41791 fail:
41792   return NULL;
41793 }
41794 
41795 
_wrap_new_LatLongCoord__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))41796 SWIGINTERN PyObject *_wrap_new_LatLongCoord__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
41797   PyObject *resultobj = 0;
41798   Xapian::LatLongCoord *result = 0 ;
41799 
41800   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
41801   {
41802     try {
41803       {
41804         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41805         result = (Xapian::LatLongCoord *)new Xapian::LatLongCoord();
41806         SWIG_PYTHON_THREAD_END_ALLOW;
41807       }
41808     } catch (...) {
41809       Xapian::SetPythonException();
41810       SWIG_fail;
41811     }
41812   }
41813   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongCoord, SWIG_POINTER_NEW |  0 );
41814   return resultobj;
41815 fail:
41816   return NULL;
41817 }
41818 
41819 
_wrap_new_LatLongCoord__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)41820 SWIGINTERN PyObject *_wrap_new_LatLongCoord__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
41821   PyObject *resultobj = 0;
41822   double arg1 ;
41823   double arg2 ;
41824   double val1 ;
41825   int ecode1 = 0 ;
41826   double val2 ;
41827   int ecode2 = 0 ;
41828   Xapian::LatLongCoord *result = 0 ;
41829 
41830   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
41831   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
41832   if (!SWIG_IsOK(ecode1)) {
41833     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongCoord" "', argument " "1"" of type '" "double""'");
41834   }
41835   arg1 = static_cast< double >(val1);
41836   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
41837   if (!SWIG_IsOK(ecode2)) {
41838     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LatLongCoord" "', argument " "2"" of type '" "double""'");
41839   }
41840   arg2 = static_cast< double >(val2);
41841   {
41842     try {
41843       {
41844         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41845         result = (Xapian::LatLongCoord *)new Xapian::LatLongCoord(arg1,arg2);
41846         SWIG_PYTHON_THREAD_END_ALLOW;
41847       }
41848     } catch (...) {
41849       Xapian::SetPythonException();
41850       SWIG_fail;
41851     }
41852   }
41853   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongCoord, SWIG_POINTER_NEW |  0 );
41854   return resultobj;
41855 fail:
41856   return NULL;
41857 }
41858 
41859 
_wrap_new_LatLongCoord(PyObject * self,PyObject * args)41860 SWIGINTERN PyObject *_wrap_new_LatLongCoord(PyObject *self, PyObject *args) {
41861   Py_ssize_t argc;
41862   PyObject *argv[3] = {
41863     0
41864   };
41865 
41866   if (!(argc = SWIG_Python_UnpackTuple(args,"new_LatLongCoord",0,2,argv))) SWIG_fail;
41867   --argc;
41868   if (argc == 0) {
41869     return _wrap_new_LatLongCoord__SWIG_0(self, argc, argv);
41870   }
41871   if (argc == 2) {
41872     return _wrap_new_LatLongCoord__SWIG_1(self, argc, argv);
41873   }
41874 
41875 fail:
41876   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_LatLongCoord'.\n"
41877     "  Possible C/C++ prototypes are:\n"
41878     "    Xapian::LatLongCoord::LatLongCoord()\n"
41879     "    Xapian::LatLongCoord::LatLongCoord(double,double)\n");
41880   return 0;
41881 }
41882 
41883 
_wrap_LatLongCoord_unserialise(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41884 SWIGINTERN PyObject *_wrap_LatLongCoord_unserialise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41885   PyObject *resultobj = 0;
41886   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
41887   std::string *arg2 = 0 ;
41888   void *argp1 = 0 ;
41889   int res1 = 0 ;
41890   std::string bytes2 ;
41891   PyObject *swig_obj[2] ;
41892 
41893   if (!SWIG_Python_UnpackTuple(args,"LatLongCoord_unserialise",2,2,swig_obj)) SWIG_fail;
41894   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
41895   if (!SWIG_IsOK(res1)) {
41896     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord_unserialise" "', argument " "1"" of type '" "Xapian::LatLongCoord *""'");
41897   }
41898   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
41899   {
41900     char * p;
41901     Py_ssize_t len;
41902     if (PyBytes_AsStringAndSize(swig_obj[1], &p, &len) < 0) SWIG_fail;
41903     bytes2.assign(p, len);
41904     arg2 = &bytes2;
41905   }
41906   {
41907     try {
41908       {
41909         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41910         (arg1)->unserialise((std::string const &)*arg2);
41911         SWIG_PYTHON_THREAD_END_ALLOW;
41912       }
41913     } catch (...) {
41914       Xapian::SetPythonException();
41915       SWIG_fail;
41916     }
41917   }
41918   resultobj = SWIG_Py_Void();
41919   return resultobj;
41920 fail:
41921   return NULL;
41922 }
41923 
41924 
_wrap_LatLongCoord_serialise(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41925 SWIGINTERN PyObject *_wrap_LatLongCoord_serialise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41926   PyObject *resultobj = 0;
41927   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
41928   void *argp1 = 0 ;
41929   int res1 = 0 ;
41930   PyObject *swig_obj[1] ;
41931   std::string result;
41932 
41933   if (!args) SWIG_fail;
41934   swig_obj[0] = args;
41935   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
41936   if (!SWIG_IsOK(res1)) {
41937     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord_serialise" "', argument " "1"" of type '" "Xapian::LatLongCoord const *""'");
41938   }
41939   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
41940   {
41941     try {
41942       {
41943         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41944         result = ((Xapian::LatLongCoord const *)arg1)->serialise();
41945         SWIG_PYTHON_THREAD_END_ALLOW;
41946       }
41947     } catch (...) {
41948       Xapian::SetPythonException();
41949       SWIG_fail;
41950     }
41951   }
41952 
41953   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
41954 
41955   return resultobj;
41956 fail:
41957   return NULL;
41958 }
41959 
41960 
_wrap_LatLongCoord___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41961 SWIGINTERN PyObject *_wrap_LatLongCoord___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41962   PyObject *resultobj = 0;
41963   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
41964   void *argp1 = 0 ;
41965   int res1 = 0 ;
41966   PyObject *swig_obj[1] ;
41967   std::string result;
41968 
41969   if (!args) SWIG_fail;
41970   swig_obj[0] = args;
41971   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, 0 |  0 );
41972   if (!SWIG_IsOK(res1)) {
41973     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoord___str__" "', argument " "1"" of type '" "Xapian::LatLongCoord const *""'");
41974   }
41975   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
41976   {
41977     try {
41978       {
41979         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
41980         result = ((Xapian::LatLongCoord const *)arg1)->get_description();
41981         SWIG_PYTHON_THREAD_END_ALLOW;
41982       }
41983     } catch (...) {
41984       Xapian::SetPythonException();
41985       SWIG_fail;
41986     }
41987   }
41988   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
41989   return resultobj;
41990 fail:
41991   return NULL;
41992 }
41993 
41994 
_wrap_delete_LatLongCoord(PyObject * SWIGUNUSEDPARM (self),PyObject * args)41995 SWIGINTERN PyObject *_wrap_delete_LatLongCoord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41996   PyObject *resultobj = 0;
41997   Xapian::LatLongCoord *arg1 = (Xapian::LatLongCoord *) 0 ;
41998   void *argp1 = 0 ;
41999   int res1 = 0 ;
42000   PyObject *swig_obj[1] ;
42001 
42002   if (!args) SWIG_fail;
42003   swig_obj[0] = args;
42004   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoord, SWIG_POINTER_DISOWN |  0 );
42005   if (!SWIG_IsOK(res1)) {
42006     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LatLongCoord" "', argument " "1"" of type '" "Xapian::LatLongCoord *""'");
42007   }
42008   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
42009   {
42010     try {
42011       {
42012         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42013         delete arg1;
42014         SWIG_PYTHON_THREAD_END_ALLOW;
42015       }
42016     } catch (...) {
42017       Xapian::SetPythonException();
42018       SWIG_fail;
42019     }
42020   }
42021   resultobj = SWIG_Py_Void();
42022   return resultobj;
42023 fail:
42024   return NULL;
42025 }
42026 
42027 
LatLongCoord_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42028 SWIGINTERN PyObject *LatLongCoord_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42029   PyObject *obj;
42030   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
42031   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__LatLongCoord, SWIG_NewClientData(obj));
42032   return SWIG_Py_Void();
42033 }
42034 
LatLongCoord_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42035 SWIGINTERN PyObject *LatLongCoord_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42036   return SWIG_Python_InitShadowInstance(args);
42037 }
42038 
_wrap_new_LatLongCoordsIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42039 SWIGINTERN PyObject *_wrap_new_LatLongCoordsIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42040   PyObject *resultobj = 0;
42041   Xapian::LatLongCoordsIterator *result = 0 ;
42042 
42043   if (!SWIG_Python_UnpackTuple(args,"new_LatLongCoordsIterator",0,0,0)) SWIG_fail;
42044   {
42045     try {
42046       {
42047         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42048         result = (Xapian::LatLongCoordsIterator *)new Xapian::LatLongCoordsIterator();
42049         SWIG_PYTHON_THREAD_END_ALLOW;
42050       }
42051     } catch (...) {
42052       Xapian::SetPythonException();
42053       SWIG_fail;
42054     }
42055   }
42056   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongCoordsIterator, SWIG_POINTER_NEW |  0 );
42057   return resultobj;
42058 fail:
42059   return NULL;
42060 }
42061 
42062 
_wrap_LatLongCoordsIterator___eq__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42063 SWIGINTERN PyObject *_wrap_LatLongCoordsIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42064   PyObject *resultobj = 0;
42065   Xapian::LatLongCoordsIterator *arg1 = (Xapian::LatLongCoordsIterator *) 0 ;
42066   Xapian::LatLongCoordsIterator *arg2 = 0 ;
42067   void *argp1 = 0 ;
42068   int res1 = 0 ;
42069   void *argp2 = 0 ;
42070   int res2 = 0 ;
42071   PyObject *swig_obj[2] ;
42072   bool result;
42073 
42074   if (!SWIG_Python_UnpackTuple(args,"LatLongCoordsIterator___eq__",2,2,swig_obj)) SWIG_fail;
42075   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoordsIterator, 0 |  0 );
42076   if (!SWIG_IsOK(res1)) {
42077     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoordsIterator___eq__" "', argument " "1"" of type '" "Xapian::LatLongCoordsIterator const *""'");
42078   }
42079   arg1 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp1);
42080   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoordsIterator,  0  | 0);
42081   if (!SWIG_IsOK(res2)) {
42082     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongCoordsIterator___eq__" "', argument " "2"" of type '" "Xapian::LatLongCoordsIterator const &""'");
42083   }
42084   if (!argp2) {
42085     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongCoordsIterator___eq__" "', argument " "2"" of type '" "Xapian::LatLongCoordsIterator const &""'");
42086   }
42087   arg2 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp2);
42088   {
42089     try {
42090       {
42091         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42092         result = (bool)((Xapian::LatLongCoordsIterator const *)arg1)->operator ==((Xapian::LatLongCoordsIterator const &)*arg2);
42093         SWIG_PYTHON_THREAD_END_ALLOW;
42094       }
42095     } catch (...) {
42096       Xapian::SetPythonException();
42097       SWIG_fail;
42098     }
42099   }
42100   resultobj = SWIG_From_bool(static_cast< bool >(result));
42101   return resultobj;
42102 fail:
42103   return NULL;
42104 }
42105 
42106 
_wrap_LatLongCoordsIterator_equals(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42107 SWIGINTERN PyObject *_wrap_LatLongCoordsIterator_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42108   PyObject *resultobj = 0;
42109   Xapian::LatLongCoordsIterator *arg1 = (Xapian::LatLongCoordsIterator *) 0 ;
42110   Xapian::LatLongCoordsIterator *arg2 = 0 ;
42111   void *argp1 = 0 ;
42112   int res1 = 0 ;
42113   void *argp2 = 0 ;
42114   int res2 = 0 ;
42115   PyObject *swig_obj[2] ;
42116   bool result;
42117 
42118   if (!SWIG_Python_UnpackTuple(args,"LatLongCoordsIterator_equals",2,2,swig_obj)) SWIG_fail;
42119   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoordsIterator, 0 |  0 );
42120   if (!SWIG_IsOK(res1)) {
42121     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoordsIterator_equals" "', argument " "1"" of type '" "Xapian::LatLongCoordsIterator const *""'");
42122   }
42123   arg1 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp1);
42124   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoordsIterator,  0  | 0);
42125   if (!SWIG_IsOK(res2)) {
42126     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongCoordsIterator_equals" "', argument " "2"" of type '" "Xapian::LatLongCoordsIterator const &""'");
42127   }
42128   if (!argp2) {
42129     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongCoordsIterator_equals" "', argument " "2"" of type '" "Xapian::LatLongCoordsIterator const &""'");
42130   }
42131   arg2 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp2);
42132   {
42133     try {
42134       {
42135         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42136         result = (bool)Xapian_LatLongCoordsIterator_equals((Xapian::LatLongCoordsIterator const *)arg1,(Xapian::LatLongCoordsIterator const &)*arg2);
42137         SWIG_PYTHON_THREAD_END_ALLOW;
42138       }
42139     } catch (...) {
42140       Xapian::SetPythonException();
42141       SWIG_fail;
42142     }
42143   }
42144   resultobj = SWIG_From_bool(static_cast< bool >(result));
42145   return resultobj;
42146 fail:
42147   return NULL;
42148 }
42149 
42150 
_wrap_LatLongCoordsIterator_get_coord(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42151 SWIGINTERN PyObject *_wrap_LatLongCoordsIterator_get_coord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42152   PyObject *resultobj = 0;
42153   Xapian::LatLongCoordsIterator *arg1 = (Xapian::LatLongCoordsIterator *) 0 ;
42154   void *argp1 = 0 ;
42155   int res1 = 0 ;
42156   PyObject *swig_obj[1] ;
42157   Xapian::LatLongCoord result;
42158 
42159   if (!args) SWIG_fail;
42160   swig_obj[0] = args;
42161   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoordsIterator, 0 |  0 );
42162   if (!SWIG_IsOK(res1)) {
42163     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoordsIterator_get_coord" "', argument " "1"" of type '" "Xapian::LatLongCoordsIterator const *""'");
42164   }
42165   arg1 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp1);
42166   {
42167     try {
42168       {
42169         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42170         result = Xapian_LatLongCoordsIterator_get_coord((Xapian::LatLongCoordsIterator const *)arg1);
42171         SWIG_PYTHON_THREAD_END_ALLOW;
42172       }
42173     } catch (...) {
42174       Xapian::SetPythonException();
42175       SWIG_fail;
42176     }
42177   }
42178   resultobj = SWIG_NewPointerObj((new Xapian::LatLongCoord(static_cast< const Xapian::LatLongCoord& >(result))), SWIGTYPE_p_Xapian__LatLongCoord, SWIG_POINTER_OWN |  0 );
42179   return resultobj;
42180 fail:
42181   return NULL;
42182 }
42183 
42184 
_wrap_LatLongCoordsIterator___next__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42185 SWIGINTERN PyObject *_wrap_LatLongCoordsIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42186   PyObject *resultobj = 0;
42187   Xapian::LatLongCoordsIterator *arg1 = (Xapian::LatLongCoordsIterator *) 0 ;
42188   void *argp1 = 0 ;
42189   int res1 = 0 ;
42190   PyObject *swig_obj[1] ;
42191 
42192   if (!args) SWIG_fail;
42193   swig_obj[0] = args;
42194   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoordsIterator, 0 |  0 );
42195   if (!SWIG_IsOK(res1)) {
42196     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoordsIterator___next__" "', argument " "1"" of type '" "Xapian::LatLongCoordsIterator *""'");
42197   }
42198   arg1 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp1);
42199   {
42200     try {
42201       {
42202         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42203         Xapian_LatLongCoordsIterator_next(arg1);
42204         SWIG_PYTHON_THREAD_END_ALLOW;
42205       }
42206     } catch (...) {
42207       Xapian::SetPythonException();
42208       SWIG_fail;
42209     }
42210   }
42211   resultobj = SWIG_Py_Void();
42212   return resultobj;
42213 fail:
42214   return NULL;
42215 }
42216 
42217 
_wrap_delete_LatLongCoordsIterator(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42218 SWIGINTERN PyObject *_wrap_delete_LatLongCoordsIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42219   PyObject *resultobj = 0;
42220   Xapian::LatLongCoordsIterator *arg1 = (Xapian::LatLongCoordsIterator *) 0 ;
42221   void *argp1 = 0 ;
42222   int res1 = 0 ;
42223   PyObject *swig_obj[1] ;
42224 
42225   if (!args) SWIG_fail;
42226   swig_obj[0] = args;
42227   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoordsIterator, SWIG_POINTER_DISOWN |  0 );
42228   if (!SWIG_IsOK(res1)) {
42229     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LatLongCoordsIterator" "', argument " "1"" of type '" "Xapian::LatLongCoordsIterator *""'");
42230   }
42231   arg1 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp1);
42232   {
42233     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42234     delete arg1;
42235     SWIG_PYTHON_THREAD_END_ALLOW;
42236   }
42237   resultobj = SWIG_Py_Void();
42238   return resultobj;
42239 fail:
42240   return NULL;
42241 }
42242 
42243 
LatLongCoordsIterator_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42244 SWIGINTERN PyObject *LatLongCoordsIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42245   PyObject *obj;
42246   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
42247   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__LatLongCoordsIterator, SWIG_NewClientData(obj));
42248   return SWIG_Py_Void();
42249 }
42250 
LatLongCoordsIterator_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42251 SWIGINTERN PyObject *LatLongCoordsIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42252   return SWIG_Python_InitShadowInstance(args);
42253 }
42254 
_wrap_LatLongCoords_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42255 SWIGINTERN PyObject *_wrap_LatLongCoords_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42256   PyObject *resultobj = 0;
42257   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
42258   void *argp1 = 0 ;
42259   int res1 = 0 ;
42260   PyObject *swig_obj[1] ;
42261   Xapian::LatLongCoordsIterator result;
42262 
42263   if (!args) SWIG_fail;
42264   swig_obj[0] = args;
42265   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
42266   if (!SWIG_IsOK(res1)) {
42267     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_begin" "', argument " "1"" of type '" "Xapian::LatLongCoords const *""'");
42268   }
42269   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
42270   {
42271     try {
42272       {
42273         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42274         result = ((Xapian::LatLongCoords const *)arg1)->begin();
42275         SWIG_PYTHON_THREAD_END_ALLOW;
42276       }
42277     } catch (...) {
42278       Xapian::SetPythonException();
42279       SWIG_fail;
42280     }
42281   }
42282   resultobj = SWIG_NewPointerObj((new Xapian::LatLongCoordsIterator(static_cast< const Xapian::LatLongCoordsIterator& >(result))), SWIGTYPE_p_Xapian__LatLongCoordsIterator, SWIG_POINTER_OWN |  0 );
42283   return resultobj;
42284 fail:
42285   return NULL;
42286 }
42287 
42288 
_wrap_LatLongCoords_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42289 SWIGINTERN PyObject *_wrap_LatLongCoords_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42290   PyObject *resultobj = 0;
42291   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
42292   void *argp1 = 0 ;
42293   int res1 = 0 ;
42294   PyObject *swig_obj[1] ;
42295   Xapian::LatLongCoordsIterator result;
42296 
42297   if (!args) SWIG_fail;
42298   swig_obj[0] = args;
42299   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
42300   if (!SWIG_IsOK(res1)) {
42301     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_end" "', argument " "1"" of type '" "Xapian::LatLongCoords const *""'");
42302   }
42303   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
42304   {
42305     try {
42306       {
42307         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42308         result = ((Xapian::LatLongCoords const *)arg1)->end();
42309         SWIG_PYTHON_THREAD_END_ALLOW;
42310       }
42311     } catch (...) {
42312       Xapian::SetPythonException();
42313       SWIG_fail;
42314     }
42315   }
42316   resultobj = SWIG_NewPointerObj((new Xapian::LatLongCoordsIterator(static_cast< const Xapian::LatLongCoordsIterator& >(result))), SWIGTYPE_p_Xapian__LatLongCoordsIterator, SWIG_POINTER_OWN |  0 );
42317   return resultobj;
42318 fail:
42319   return NULL;
42320 }
42321 
42322 
_wrap_LatLongCoords_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42323 SWIGINTERN PyObject *_wrap_LatLongCoords_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42324   PyObject *resultobj = 0;
42325   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
42326   void *argp1 = 0 ;
42327   int res1 = 0 ;
42328   PyObject *swig_obj[1] ;
42329   size_t result;
42330 
42331   if (!args) SWIG_fail;
42332   swig_obj[0] = args;
42333   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
42334   if (!SWIG_IsOK(res1)) {
42335     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_size" "', argument " "1"" of type '" "Xapian::LatLongCoords const *""'");
42336   }
42337   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
42338   {
42339     try {
42340       {
42341         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42342         result = ((Xapian::LatLongCoords const *)arg1)->size();
42343         SWIG_PYTHON_THREAD_END_ALLOW;
42344       }
42345     } catch (...) {
42346       Xapian::SetPythonException();
42347       SWIG_fail;
42348     }
42349   }
42350   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
42351   return resultobj;
42352 fail:
42353   return NULL;
42354 }
42355 
42356 
_wrap_LatLongCoords_empty(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42357 SWIGINTERN PyObject *_wrap_LatLongCoords_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42358   PyObject *resultobj = 0;
42359   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
42360   void *argp1 = 0 ;
42361   int res1 = 0 ;
42362   PyObject *swig_obj[1] ;
42363   bool result;
42364 
42365   if (!args) SWIG_fail;
42366   swig_obj[0] = args;
42367   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
42368   if (!SWIG_IsOK(res1)) {
42369     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_empty" "', argument " "1"" of type '" "Xapian::LatLongCoords const *""'");
42370   }
42371   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
42372   {
42373     try {
42374       {
42375         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42376         result = (bool)((Xapian::LatLongCoords const *)arg1)->empty();
42377         SWIG_PYTHON_THREAD_END_ALLOW;
42378       }
42379     } catch (...) {
42380       Xapian::SetPythonException();
42381       SWIG_fail;
42382     }
42383   }
42384   resultobj = SWIG_From_bool(static_cast< bool >(result));
42385   return resultobj;
42386 fail:
42387   return NULL;
42388 }
42389 
42390 
_wrap_LatLongCoords_append(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42391 SWIGINTERN PyObject *_wrap_LatLongCoords_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42392   PyObject *resultobj = 0;
42393   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
42394   Xapian::LatLongCoord *arg2 = 0 ;
42395   void *argp1 = 0 ;
42396   int res1 = 0 ;
42397   void *argp2 = 0 ;
42398   int res2 = 0 ;
42399   PyObject *swig_obj[2] ;
42400 
42401   if (!SWIG_Python_UnpackTuple(args,"LatLongCoords_append",2,2,swig_obj)) SWIG_fail;
42402   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
42403   if (!SWIG_IsOK(res1)) {
42404     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_append" "', argument " "1"" of type '" "Xapian::LatLongCoords *""'");
42405   }
42406   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
42407   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoord,  0  | 0);
42408   if (!SWIG_IsOK(res2)) {
42409     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongCoords_append" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
42410   }
42411   if (!argp2) {
42412     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongCoords_append" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
42413   }
42414   arg2 = reinterpret_cast< Xapian::LatLongCoord * >(argp2);
42415   {
42416     try {
42417       {
42418         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42419         (arg1)->append((Xapian::LatLongCoord const &)*arg2);
42420         SWIG_PYTHON_THREAD_END_ALLOW;
42421       }
42422     } catch (...) {
42423       Xapian::SetPythonException();
42424       SWIG_fail;
42425     }
42426   }
42427   resultobj = SWIG_Py_Void();
42428   return resultobj;
42429 fail:
42430   return NULL;
42431 }
42432 
42433 
_wrap_new_LatLongCoords__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))42434 SWIGINTERN PyObject *_wrap_new_LatLongCoords__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
42435   PyObject *resultobj = 0;
42436   Xapian::LatLongCoords *result = 0 ;
42437 
42438   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
42439   {
42440     try {
42441       {
42442         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42443         result = (Xapian::LatLongCoords *)new Xapian::LatLongCoords();
42444         SWIG_PYTHON_THREAD_END_ALLOW;
42445       }
42446     } catch (...) {
42447       Xapian::SetPythonException();
42448       SWIG_fail;
42449     }
42450   }
42451   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongCoords, SWIG_POINTER_NEW |  0 );
42452   return resultobj;
42453 fail:
42454   return NULL;
42455 }
42456 
42457 
_wrap_new_LatLongCoords__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)42458 SWIGINTERN PyObject *_wrap_new_LatLongCoords__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
42459   PyObject *resultobj = 0;
42460   Xapian::LatLongCoord *arg1 = 0 ;
42461   void *argp1 = 0 ;
42462   int res1 = 0 ;
42463   Xapian::LatLongCoords *result = 0 ;
42464 
42465   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
42466   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__LatLongCoord,  0  | 0);
42467   if (!SWIG_IsOK(res1)) {
42468     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LatLongCoords" "', argument " "1"" of type '" "Xapian::LatLongCoord const &""'");
42469   }
42470   if (!argp1) {
42471     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongCoords" "', argument " "1"" of type '" "Xapian::LatLongCoord const &""'");
42472   }
42473   arg1 = reinterpret_cast< Xapian::LatLongCoord * >(argp1);
42474   {
42475     try {
42476       {
42477         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42478         result = (Xapian::LatLongCoords *)new Xapian::LatLongCoords((Xapian::LatLongCoord const &)*arg1);
42479         SWIG_PYTHON_THREAD_END_ALLOW;
42480       }
42481     } catch (...) {
42482       Xapian::SetPythonException();
42483       SWIG_fail;
42484     }
42485   }
42486   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongCoords, SWIG_POINTER_NEW |  0 );
42487   return resultobj;
42488 fail:
42489   return NULL;
42490 }
42491 
42492 
_wrap_new_LatLongCoords(PyObject * self,PyObject * args)42493 SWIGINTERN PyObject *_wrap_new_LatLongCoords(PyObject *self, PyObject *args) {
42494   Py_ssize_t argc;
42495   PyObject *argv[2] = {
42496     0
42497   };
42498 
42499   if (!(argc = SWIG_Python_UnpackTuple(args,"new_LatLongCoords",0,1,argv))) SWIG_fail;
42500   --argc;
42501   if (argc == 0) {
42502     return _wrap_new_LatLongCoords__SWIG_0(self, argc, argv);
42503   }
42504   if (argc == 1) {
42505     return _wrap_new_LatLongCoords__SWIG_1(self, argc, argv);
42506   }
42507 
42508 fail:
42509   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_LatLongCoords'.\n"
42510     "  Possible C/C++ prototypes are:\n"
42511     "    Xapian::LatLongCoords::LatLongCoords()\n"
42512     "    Xapian::LatLongCoords::LatLongCoords(Xapian::LatLongCoord const &)\n");
42513   return 0;
42514 }
42515 
42516 
_wrap_LatLongCoords_unserialise(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42517 SWIGINTERN PyObject *_wrap_LatLongCoords_unserialise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42518   PyObject *resultobj = 0;
42519   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
42520   std::string *arg2 = 0 ;
42521   void *argp1 = 0 ;
42522   int res1 = 0 ;
42523   std::string bytes2 ;
42524   PyObject *swig_obj[2] ;
42525 
42526   if (!SWIG_Python_UnpackTuple(args,"LatLongCoords_unserialise",2,2,swig_obj)) SWIG_fail;
42527   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
42528   if (!SWIG_IsOK(res1)) {
42529     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_unserialise" "', argument " "1"" of type '" "Xapian::LatLongCoords *""'");
42530   }
42531   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
42532   {
42533     char * p;
42534     Py_ssize_t len;
42535     if (PyBytes_AsStringAndSize(swig_obj[1], &p, &len) < 0) SWIG_fail;
42536     bytes2.assign(p, len);
42537     arg2 = &bytes2;
42538   }
42539   {
42540     try {
42541       {
42542         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42543         (arg1)->unserialise((std::string const &)*arg2);
42544         SWIG_PYTHON_THREAD_END_ALLOW;
42545       }
42546     } catch (...) {
42547       Xapian::SetPythonException();
42548       SWIG_fail;
42549     }
42550   }
42551   resultobj = SWIG_Py_Void();
42552   return resultobj;
42553 fail:
42554   return NULL;
42555 }
42556 
42557 
_wrap_LatLongCoords_serialise(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42558 SWIGINTERN PyObject *_wrap_LatLongCoords_serialise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42559   PyObject *resultobj = 0;
42560   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
42561   void *argp1 = 0 ;
42562   int res1 = 0 ;
42563   PyObject *swig_obj[1] ;
42564   std::string result;
42565 
42566   if (!args) SWIG_fail;
42567   swig_obj[0] = args;
42568   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
42569   if (!SWIG_IsOK(res1)) {
42570     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords_serialise" "', argument " "1"" of type '" "Xapian::LatLongCoords const *""'");
42571   }
42572   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
42573   {
42574     try {
42575       {
42576         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42577         result = ((Xapian::LatLongCoords const *)arg1)->serialise();
42578         SWIG_PYTHON_THREAD_END_ALLOW;
42579       }
42580     } catch (...) {
42581       Xapian::SetPythonException();
42582       SWIG_fail;
42583     }
42584   }
42585 
42586   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
42587 
42588   return resultobj;
42589 fail:
42590   return NULL;
42591 }
42592 
42593 
_wrap_LatLongCoords___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42594 SWIGINTERN PyObject *_wrap_LatLongCoords___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42595   PyObject *resultobj = 0;
42596   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
42597   void *argp1 = 0 ;
42598   int res1 = 0 ;
42599   PyObject *swig_obj[1] ;
42600   std::string result;
42601 
42602   if (!args) SWIG_fail;
42603   swig_obj[0] = args;
42604   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, 0 |  0 );
42605   if (!SWIG_IsOK(res1)) {
42606     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongCoords___str__" "', argument " "1"" of type '" "Xapian::LatLongCoords const *""'");
42607   }
42608   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
42609   {
42610     try {
42611       {
42612         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42613         result = ((Xapian::LatLongCoords const *)arg1)->get_description();
42614         SWIG_PYTHON_THREAD_END_ALLOW;
42615       }
42616     } catch (...) {
42617       Xapian::SetPythonException();
42618       SWIG_fail;
42619     }
42620   }
42621   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
42622   return resultobj;
42623 fail:
42624   return NULL;
42625 }
42626 
42627 
_wrap_delete_LatLongCoords(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42628 SWIGINTERN PyObject *_wrap_delete_LatLongCoords(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42629   PyObject *resultobj = 0;
42630   Xapian::LatLongCoords *arg1 = (Xapian::LatLongCoords *) 0 ;
42631   void *argp1 = 0 ;
42632   int res1 = 0 ;
42633   PyObject *swig_obj[1] ;
42634 
42635   if (!args) SWIG_fail;
42636   swig_obj[0] = args;
42637   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongCoords, SWIG_POINTER_DISOWN |  0 );
42638   if (!SWIG_IsOK(res1)) {
42639     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LatLongCoords" "', argument " "1"" of type '" "Xapian::LatLongCoords *""'");
42640   }
42641   arg1 = reinterpret_cast< Xapian::LatLongCoords * >(argp1);
42642   {
42643     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42644     delete arg1;
42645     SWIG_PYTHON_THREAD_END_ALLOW;
42646   }
42647   resultobj = SWIG_Py_Void();
42648   return resultobj;
42649 fail:
42650   return NULL;
42651 }
42652 
42653 
LatLongCoords_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42654 SWIGINTERN PyObject *LatLongCoords_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42655   PyObject *obj;
42656   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
42657   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__LatLongCoords, SWIG_NewClientData(obj));
42658   return SWIG_Py_Void();
42659 }
42660 
LatLongCoords_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42661 SWIGINTERN PyObject *LatLongCoords_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42662   return SWIG_Python_InitShadowInstance(args);
42663 }
42664 
_wrap___ne____SWIG_6(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)42665 SWIGINTERN PyObject *_wrap___ne____SWIG_6(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
42666   PyObject *resultobj = 0;
42667   Xapian::LatLongCoordsIterator *arg1 = 0 ;
42668   Xapian::LatLongCoordsIterator *arg2 = 0 ;
42669   void *argp1 = 0 ;
42670   int res1 = 0 ;
42671   void *argp2 = 0 ;
42672   int res2 = 0 ;
42673   bool result;
42674 
42675   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
42676   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Xapian__LatLongCoordsIterator,  0  | 0);
42677   if (!SWIG_IsOK(res1)) {
42678     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::LatLongCoordsIterator const &""'");
42679   }
42680   if (!argp1) {
42681     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "1"" of type '" "Xapian::LatLongCoordsIterator const &""'");
42682   }
42683   arg1 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp1);
42684   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoordsIterator,  0  | 0);
42685   if (!SWIG_IsOK(res2)) {
42686     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::LatLongCoordsIterator const &""'");
42687   }
42688   if (!argp2) {
42689     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ne__" "', argument " "2"" of type '" "Xapian::LatLongCoordsIterator const &""'");
42690   }
42691   arg2 = reinterpret_cast< Xapian::LatLongCoordsIterator * >(argp2);
42692   {
42693     try {
42694       {
42695         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42696         result = (bool)Xapian::operator !=((Xapian::LatLongCoordsIterator const &)*arg1,(Xapian::LatLongCoordsIterator const &)*arg2);
42697         SWIG_PYTHON_THREAD_END_ALLOW;
42698       }
42699     } catch (...) {
42700       Xapian::SetPythonException();
42701       SWIG_fail;
42702     }
42703   }
42704   resultobj = SWIG_From_bool(static_cast< bool >(result));
42705   return resultobj;
42706 fail:
42707   return NULL;
42708 }
42709 
42710 
_wrap___ne__(PyObject * self,PyObject * args)42711 SWIGINTERN PyObject *_wrap___ne__(PyObject *self, PyObject *args) {
42712   Py_ssize_t argc;
42713   PyObject *argv[3] = {
42714     0
42715   };
42716 
42717   if (!(argc = SWIG_Python_UnpackTuple(args,"__ne__",0,2,argv))) SWIG_fail;
42718   --argc;
42719   if (argc == 2) {
42720     int _v = 0;
42721     {
42722       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__PositionIterator, 0);
42723       _v = SWIG_CheckState(res);
42724     }
42725     if (!_v) goto check_1;
42726     {
42727       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__PositionIterator, 0);
42728       _v = SWIG_CheckState(res);
42729     }
42730     if (!_v) goto check_1;
42731     return _wrap___ne____SWIG_0(self, argc, argv);
42732   }
42733 check_1:
42734 
42735   if (argc == 2) {
42736     int _v = 0;
42737     {
42738       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__PostingIterator, 0);
42739       _v = SWIG_CheckState(res);
42740     }
42741     if (!_v) goto check_2;
42742     {
42743       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__PostingIterator, 0);
42744       _v = SWIG_CheckState(res);
42745     }
42746     if (!_v) goto check_2;
42747     return _wrap___ne____SWIG_1(self, argc, argv);
42748   }
42749 check_2:
42750 
42751   if (argc == 2) {
42752     int _v = 0;
42753     {
42754       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__TermIterator, 0);
42755       _v = SWIG_CheckState(res);
42756     }
42757     if (!_v) goto check_3;
42758     {
42759       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__TermIterator, 0);
42760       _v = SWIG_CheckState(res);
42761     }
42762     if (!_v) goto check_3;
42763     return _wrap___ne____SWIG_2(self, argc, argv);
42764   }
42765 check_3:
42766 
42767   if (argc == 2) {
42768     int _v = 0;
42769     {
42770       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__ValueIterator, 0);
42771       _v = SWIG_CheckState(res);
42772     }
42773     if (!_v) goto check_4;
42774     {
42775       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__ValueIterator, 0);
42776       _v = SWIG_CheckState(res);
42777     }
42778     if (!_v) goto check_4;
42779     return _wrap___ne____SWIG_3(self, argc, argv);
42780   }
42781 check_4:
42782 
42783   if (argc == 2) {
42784     int _v = 0;
42785     {
42786       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
42787       _v = SWIG_CheckState(res);
42788     }
42789     if (!_v) goto check_5;
42790     {
42791       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__MSetIterator, 0);
42792       _v = SWIG_CheckState(res);
42793     }
42794     if (!_v) goto check_5;
42795     return _wrap___ne____SWIG_4(self, argc, argv);
42796   }
42797 check_5:
42798 
42799   if (argc == 2) {
42800     int _v = 0;
42801     {
42802       int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Xapian__ESetIterator, 0);
42803       _v = SWIG_CheckState(res);
42804     }
42805     if (!_v) goto check_6;
42806     {
42807       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__ESetIterator, 0);
42808       _v = SWIG_CheckState(res);
42809     }
42810     if (!_v) goto check_6;
42811     return _wrap___ne____SWIG_5(self, argc, argv);
42812   }
42813 check_6:
42814 
42815   if (argc == 2) {
42816     return _wrap___ne____SWIG_6(self, argc, argv);
42817   }
42818 
42819 fail:
42820   Py_INCREF(Py_NotImplemented);
42821   return Py_NotImplemented;
42822 }
42823 
42824 
_wrap_delete_LatLongMetric(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42825 SWIGINTERN PyObject *_wrap_delete_LatLongMetric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42826   PyObject *resultobj = 0;
42827   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
42828   void *argp1 = 0 ;
42829   int res1 = 0 ;
42830   PyObject *swig_obj[1] ;
42831 
42832   if (!args) SWIG_fail;
42833   swig_obj[0] = args;
42834   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, SWIG_POINTER_DISOWN |  0 );
42835   if (!SWIG_IsOK(res1)) {
42836     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LatLongMetric" "', argument " "1"" of type '" "Xapian::LatLongMetric *""'");
42837   }
42838   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
42839   {
42840     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42841     delete arg1;
42842     SWIG_PYTHON_THREAD_END_ALLOW;
42843   }
42844   resultobj = SWIG_Py_Void();
42845   return resultobj;
42846 fail:
42847   return NULL;
42848 }
42849 
42850 
_wrap_LatLongMetric_pointwise_distance(PyObject * SWIGUNUSEDPARM (self),PyObject * args)42851 SWIGINTERN PyObject *_wrap_LatLongMetric_pointwise_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42852   PyObject *resultobj = 0;
42853   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
42854   Xapian::LatLongCoord *arg2 = 0 ;
42855   Xapian::LatLongCoord *arg3 = 0 ;
42856   void *argp1 = 0 ;
42857   int res1 = 0 ;
42858   void *argp2 = 0 ;
42859   int res2 = 0 ;
42860   void *argp3 = 0 ;
42861   int res3 = 0 ;
42862   PyObject *swig_obj[3] ;
42863   Swig::Director *director = 0;
42864   bool upcall = false;
42865   double result;
42866 
42867   if (!SWIG_Python_UnpackTuple(args,"LatLongMetric_pointwise_distance",3,3,swig_obj)) SWIG_fail;
42868   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, 0 |  0 );
42869   if (!SWIG_IsOK(res1)) {
42870     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongMetric_pointwise_distance" "', argument " "1"" of type '" "Xapian::LatLongMetric const *""'");
42871   }
42872   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
42873   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoord,  0  | 0);
42874   if (!SWIG_IsOK(res2)) {
42875     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongMetric_pointwise_distance" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
42876   }
42877   if (!argp2) {
42878     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric_pointwise_distance" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
42879   }
42880   arg2 = reinterpret_cast< Xapian::LatLongCoord * >(argp2);
42881   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongCoord,  0  | 0);
42882   if (!SWIG_IsOK(res3)) {
42883     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LatLongMetric_pointwise_distance" "', argument " "3"" of type '" "Xapian::LatLongCoord const &""'");
42884   }
42885   if (!argp3) {
42886     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric_pointwise_distance" "', argument " "3"" of type '" "Xapian::LatLongCoord const &""'");
42887   }
42888   arg3 = reinterpret_cast< Xapian::LatLongCoord * >(argp3);
42889   director = SWIG_DIRECTOR_CAST(arg1);
42890   upcall = (director && (director->swig_get_self()==swig_obj[0]));
42891   try {
42892     {
42893       try {
42894         if (upcall) {
42895           Swig::DirectorPureVirtualException::raise("Xapian::LatLongMetric::pointwise_distance");
42896         } else {
42897           result = (double)((Xapian::LatLongMetric const *)arg1)->pointwise_distance((Xapian::LatLongCoord const &)*arg2,(Xapian::LatLongCoord const &)*arg3);
42898         }
42899       } catch (...) {
42900         Xapian::SetPythonException();
42901         SWIG_fail;
42902       }
42903     }
42904   } catch (Swig::DirectorException&) {
42905     SWIG_fail;
42906   }
42907   resultobj = SWIG_From_double(static_cast< double >(result));
42908   return resultobj;
42909 fail:
42910   return NULL;
42911 }
42912 
42913 
_wrap_LatLongMetric___call____SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)42914 SWIGINTERN PyObject *_wrap_LatLongMetric___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
42915   PyObject *resultobj = 0;
42916   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
42917   Xapian::LatLongCoords *arg2 = 0 ;
42918   Xapian::LatLongCoords *arg3 = 0 ;
42919   void *argp1 = 0 ;
42920   int res1 = 0 ;
42921   void *argp2 = 0 ;
42922   int res2 = 0 ;
42923   void *argp3 = 0 ;
42924   int res3 = 0 ;
42925   double result;
42926 
42927   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
42928   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, 0 |  0 );
42929   if (!SWIG_IsOK(res1)) {
42930     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongMetric___call__" "', argument " "1"" of type '" "Xapian::LatLongMetric const *""'");
42931   }
42932   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
42933   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
42934   if (!SWIG_IsOK(res2)) {
42935     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongMetric___call__" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
42936   }
42937   if (!argp2) {
42938     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric___call__" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
42939   }
42940   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
42941   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
42942   if (!SWIG_IsOK(res3)) {
42943     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LatLongMetric___call__" "', argument " "3"" of type '" "Xapian::LatLongCoords const &""'");
42944   }
42945   if (!argp3) {
42946     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric___call__" "', argument " "3"" of type '" "Xapian::LatLongCoords const &""'");
42947   }
42948   arg3 = reinterpret_cast< Xapian::LatLongCoords * >(argp3);
42949   {
42950     try {
42951       {
42952         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
42953         result = (double)((Xapian::LatLongMetric const *)arg1)->operator ()((Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongCoords const &)*arg3);
42954         SWIG_PYTHON_THREAD_END_ALLOW;
42955       }
42956     } catch (...) {
42957       Xapian::SetPythonException();
42958       SWIG_fail;
42959     }
42960   }
42961   resultobj = SWIG_From_double(static_cast< double >(result));
42962   return resultobj;
42963 fail:
42964   return NULL;
42965 }
42966 
42967 
_wrap_LatLongMetric___call____SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)42968 SWIGINTERN PyObject *_wrap_LatLongMetric___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
42969   PyObject *resultobj = 0;
42970   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
42971   Xapian::LatLongCoords *arg2 = 0 ;
42972   std::string *arg3 = 0 ;
42973   void *argp1 = 0 ;
42974   int res1 = 0 ;
42975   void *argp2 = 0 ;
42976   int res2 = 0 ;
42977   int res3 = SWIG_OLDOBJ ;
42978   double result;
42979 
42980   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
42981   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, 0 |  0 );
42982   if (!SWIG_IsOK(res1)) {
42983     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongMetric___call__" "', argument " "1"" of type '" "Xapian::LatLongMetric const *""'");
42984   }
42985   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
42986   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
42987   if (!SWIG_IsOK(res2)) {
42988     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongMetric___call__" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
42989   }
42990   if (!argp2) {
42991     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric___call__" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
42992   }
42993   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
42994   {
42995     std::string *ptr = (std::string *)0;
42996     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
42997     if (!SWIG_IsOK(res3)) {
42998       if (res3 == INT_MIN) SWIG_fail;
42999       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LatLongMetric___call__" "', argument " "3"" of type '" "std::string const &""'");
43000     }
43001     if (!ptr) {
43002       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric___call__" "', argument " "3"" of type '" "std::string const &""'");
43003     }
43004     arg3 = ptr;
43005   }
43006   {
43007     try {
43008       {
43009         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43010         result = (double)((Xapian::LatLongMetric const *)arg1)->operator ()((Xapian::LatLongCoords const &)*arg2,(std::string const &)*arg3);
43011         SWIG_PYTHON_THREAD_END_ALLOW;
43012       }
43013     } catch (...) {
43014       Xapian::SetPythonException();
43015       SWIG_fail;
43016     }
43017   }
43018   resultobj = SWIG_From_double(static_cast< double >(result));
43019   if (SWIG_IsNewObj(res3)) delete arg3;
43020   return resultobj;
43021 fail:
43022   if (SWIG_IsNewObj(res3)) delete arg3;
43023   return NULL;
43024 }
43025 
43026 
_wrap_LatLongMetric___call____SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43027 SWIGINTERN PyObject *_wrap_LatLongMetric___call____SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43028   PyObject *resultobj = 0;
43029   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
43030   Xapian::LatLongCoords *arg2 = 0 ;
43031   char *arg3 = (char *) 0 ;
43032   size_t arg4 ;
43033   void *argp1 = 0 ;
43034   int res1 = 0 ;
43035   void *argp2 = 0 ;
43036   int res2 = 0 ;
43037   int res3 ;
43038   char *buf3 = 0 ;
43039   int alloc3 = 0 ;
43040   size_t val4 ;
43041   int ecode4 = 0 ;
43042   double result;
43043 
43044   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
43045   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, 0 |  0 );
43046   if (!SWIG_IsOK(res1)) {
43047     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongMetric___call__" "', argument " "1"" of type '" "Xapian::LatLongMetric const *""'");
43048   }
43049   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
43050   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43051   if (!SWIG_IsOK(res2)) {
43052     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LatLongMetric___call__" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43053   }
43054   if (!argp2) {
43055     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LatLongMetric___call__" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43056   }
43057   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43058   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
43059   if (!SWIG_IsOK(res3)) {
43060     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LatLongMetric___call__" "', argument " "3"" of type '" "char const *""'");
43061   }
43062   arg3 = reinterpret_cast< char * >(buf3);
43063   ecode4 = SWIG_AsVal_size_t(swig_obj[3], &val4);
43064   if (!SWIG_IsOK(ecode4)) {
43065     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "LatLongMetric___call__" "', argument " "4"" of type '" "size_t""'");
43066   }
43067   arg4 = static_cast< size_t >(val4);
43068   {
43069     try {
43070       {
43071         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43072         result = (double)((Xapian::LatLongMetric const *)arg1)->operator ()((Xapian::LatLongCoords const &)*arg2,(char const *)arg3,arg4);
43073         SWIG_PYTHON_THREAD_END_ALLOW;
43074       }
43075     } catch (...) {
43076       Xapian::SetPythonException();
43077       SWIG_fail;
43078     }
43079   }
43080   resultobj = SWIG_From_double(static_cast< double >(result));
43081   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
43082   return resultobj;
43083 fail:
43084   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
43085   return NULL;
43086 }
43087 
43088 
_wrap_LatLongMetric___call__(PyObject * self,PyObject * args)43089 SWIGINTERN PyObject *_wrap_LatLongMetric___call__(PyObject *self, PyObject *args) {
43090   Py_ssize_t argc;
43091   PyObject *argv[5] = {
43092     0
43093   };
43094 
43095   if (!(argc = SWIG_Python_UnpackTuple(args,"LatLongMetric___call__",0,4,argv))) SWIG_fail;
43096   --argc;
43097   if (argc == 3) {
43098     int _v = 0;
43099     {
43100       int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Xapian__LatLongCoords, 0);
43101       _v = SWIG_CheckState(res);
43102     }
43103     if (!_v) goto check_1;
43104     return _wrap_LatLongMetric___call____SWIG_0(self, argc, argv);
43105   }
43106 check_1:
43107 
43108   if (argc == 3) {
43109     return _wrap_LatLongMetric___call____SWIG_1(self, argc, argv);
43110   }
43111   if (argc == 4) {
43112     return _wrap_LatLongMetric___call____SWIG_2(self, argc, argv);
43113   }
43114 
43115 fail:
43116   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'LatLongMetric___call__'.\n"
43117     "  Possible C/C++ prototypes are:\n"
43118     "    Xapian::LatLongMetric::operator ()(Xapian::LatLongCoords const &,Xapian::LatLongCoords const &) const\n"
43119     "    Xapian::LatLongMetric::operator ()(Xapian::LatLongCoords const &,std::string const &) const\n"
43120     "    Xapian::LatLongMetric::operator ()(Xapian::LatLongCoords const &,char const *,size_t) const\n");
43121   return 0;
43122 }
43123 
43124 
_wrap_LatLongMetric_name(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43125 SWIGINTERN PyObject *_wrap_LatLongMetric_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43126   PyObject *resultobj = 0;
43127   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
43128   void *argp1 = 0 ;
43129   int res1 = 0 ;
43130   PyObject *swig_obj[1] ;
43131   Swig::Director *director = 0;
43132   bool upcall = false;
43133   std::string result;
43134 
43135   if (!args) SWIG_fail;
43136   swig_obj[0] = args;
43137   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, 0 |  0 );
43138   if (!SWIG_IsOK(res1)) {
43139     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LatLongMetric_name" "', argument " "1"" of type '" "Xapian::LatLongMetric const *""'");
43140   }
43141   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
43142   director = SWIG_DIRECTOR_CAST(arg1);
43143   upcall = (director && (director->swig_get_self()==swig_obj[0]));
43144   try {
43145     {
43146       try {
43147         if (upcall) {
43148           Swig::DirectorPureVirtualException::raise("Xapian::LatLongMetric::name");
43149         } else {
43150           result = ((Xapian::LatLongMetric const *)arg1)->name();
43151         }
43152       } catch (...) {
43153         Xapian::SetPythonException();
43154         SWIG_fail;
43155       }
43156     }
43157   } catch (Swig::DirectorException&) {
43158     SWIG_fail;
43159   }
43160 
43161   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
43162 
43163   return resultobj;
43164 fail:
43165   return NULL;
43166 }
43167 
43168 
_wrap_new_LatLongMetric(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43169 SWIGINTERN PyObject *_wrap_new_LatLongMetric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43170   PyObject *resultobj = 0;
43171   PyObject *arg1 = (PyObject *) 0 ;
43172   PyObject *swig_obj[1] ;
43173   Xapian::LatLongMetric *result = 0 ;
43174 
43175   if (!args) SWIG_fail;
43176   swig_obj[0] = args;
43177   arg1 = swig_obj[0];
43178   {
43179     try {
43180       {
43181         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43182         if ( arg1 != Py_None ) {
43183           /* subclassed */
43184           result = (Xapian::LatLongMetric *)new SwigDirector_LatLongMetric(arg1);
43185         } else {
43186           SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor");
43187           SWIG_fail;
43188         }
43189 
43190         SWIG_PYTHON_THREAD_END_ALLOW;
43191       }
43192     } catch (...) {
43193       Xapian::SetPythonException();
43194       SWIG_fail;
43195     }
43196   }
43197   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongMetric, SWIG_POINTER_NEW |  0 );
43198   return resultobj;
43199 fail:
43200   return NULL;
43201 }
43202 
43203 
_wrap_disown_LatLongMetric(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43204 SWIGINTERN PyObject *_wrap_disown_LatLongMetric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43205   PyObject *resultobj = 0;
43206   Xapian::LatLongMetric *arg1 = (Xapian::LatLongMetric *) 0 ;
43207   void *argp1 = 0 ;
43208   int res1 = 0 ;
43209   PyObject *swig_obj[1] ;
43210 
43211   if (!args) SWIG_fail;
43212   swig_obj[0] = args;
43213   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongMetric, 0 |  0 );
43214   if (!SWIG_IsOK(res1)) {
43215     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_LatLongMetric" "', argument " "1"" of type '" "Xapian::LatLongMetric *""'");
43216   }
43217   arg1 = reinterpret_cast< Xapian::LatLongMetric * >(argp1);
43218   {
43219     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43220     {
43221       Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
43222       if (director) director->swig_disown();
43223     }
43224 
43225     SWIG_PYTHON_THREAD_END_ALLOW;
43226   }
43227   resultobj = SWIG_Py_Void();
43228   return resultobj;
43229 fail:
43230   return NULL;
43231 }
43232 
43233 
LatLongMetric_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43234 SWIGINTERN PyObject *LatLongMetric_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43235   PyObject *obj;
43236   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
43237   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__LatLongMetric, SWIG_NewClientData(obj));
43238   return SWIG_Py_Void();
43239 }
43240 
LatLongMetric_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43241 SWIGINTERN PyObject *LatLongMetric_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43242   return SWIG_Python_InitShadowInstance(args);
43243 }
43244 
_wrap_new_GreatCircleMetric__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))43245 SWIGINTERN PyObject *_wrap_new_GreatCircleMetric__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
43246   PyObject *resultobj = 0;
43247   Xapian::GreatCircleMetric *result = 0 ;
43248 
43249   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
43250   {
43251     try {
43252       {
43253         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43254         result = (Xapian::GreatCircleMetric *)new Xapian::GreatCircleMetric();
43255         SWIG_PYTHON_THREAD_END_ALLOW;
43256       }
43257     } catch (...) {
43258       Xapian::SetPythonException();
43259       SWIG_fail;
43260     }
43261   }
43262   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__GreatCircleMetric, SWIG_POINTER_NEW |  0 );
43263   return resultobj;
43264 fail:
43265   return NULL;
43266 }
43267 
43268 
_wrap_new_GreatCircleMetric__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43269 SWIGINTERN PyObject *_wrap_new_GreatCircleMetric__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43270   PyObject *resultobj = 0;
43271   double arg1 ;
43272   double val1 ;
43273   int ecode1 = 0 ;
43274   Xapian::GreatCircleMetric *result = 0 ;
43275 
43276   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
43277   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
43278   if (!SWIG_IsOK(ecode1)) {
43279     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GreatCircleMetric" "', argument " "1"" of type '" "double""'");
43280   }
43281   arg1 = static_cast< double >(val1);
43282   {
43283     try {
43284       {
43285         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43286         result = (Xapian::GreatCircleMetric *)new Xapian::GreatCircleMetric(arg1);
43287         SWIG_PYTHON_THREAD_END_ALLOW;
43288       }
43289     } catch (...) {
43290       Xapian::SetPythonException();
43291       SWIG_fail;
43292     }
43293   }
43294   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__GreatCircleMetric, SWIG_POINTER_NEW |  0 );
43295   return resultobj;
43296 fail:
43297   return NULL;
43298 }
43299 
43300 
_wrap_new_GreatCircleMetric(PyObject * self,PyObject * args)43301 SWIGINTERN PyObject *_wrap_new_GreatCircleMetric(PyObject *self, PyObject *args) {
43302   Py_ssize_t argc;
43303   PyObject *argv[2] = {
43304     0
43305   };
43306 
43307   if (!(argc = SWIG_Python_UnpackTuple(args,"new_GreatCircleMetric",0,1,argv))) SWIG_fail;
43308   --argc;
43309   if (argc == 0) {
43310     return _wrap_new_GreatCircleMetric__SWIG_0(self, argc, argv);
43311   }
43312   if (argc == 1) {
43313     return _wrap_new_GreatCircleMetric__SWIG_1(self, argc, argv);
43314   }
43315 
43316 fail:
43317   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GreatCircleMetric'.\n"
43318     "  Possible C/C++ prototypes are:\n"
43319     "    Xapian::GreatCircleMetric::GreatCircleMetric()\n"
43320     "    Xapian::GreatCircleMetric::GreatCircleMetric(double)\n");
43321   return 0;
43322 }
43323 
43324 
_wrap_delete_GreatCircleMetric(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43325 SWIGINTERN PyObject *_wrap_delete_GreatCircleMetric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43326   PyObject *resultobj = 0;
43327   Xapian::GreatCircleMetric *arg1 = (Xapian::GreatCircleMetric *) 0 ;
43328   void *argp1 = 0 ;
43329   int res1 = 0 ;
43330   PyObject *swig_obj[1] ;
43331 
43332   if (!args) SWIG_fail;
43333   swig_obj[0] = args;
43334   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__GreatCircleMetric, SWIG_POINTER_DISOWN |  0 );
43335   if (!SWIG_IsOK(res1)) {
43336     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GreatCircleMetric" "', argument " "1"" of type '" "Xapian::GreatCircleMetric *""'");
43337   }
43338   arg1 = reinterpret_cast< Xapian::GreatCircleMetric * >(argp1);
43339   {
43340     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43341     delete arg1;
43342     SWIG_PYTHON_THREAD_END_ALLOW;
43343   }
43344   resultobj = SWIG_Py_Void();
43345   return resultobj;
43346 fail:
43347   return NULL;
43348 }
43349 
43350 
GreatCircleMetric_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43351 SWIGINTERN PyObject *GreatCircleMetric_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43352   PyObject *obj;
43353   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
43354   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__GreatCircleMetric, SWIG_NewClientData(obj));
43355   return SWIG_Py_Void();
43356 }
43357 
GreatCircleMetric_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43358 SWIGINTERN PyObject *GreatCircleMetric_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43359   return SWIG_Python_InitShadowInstance(args);
43360 }
43361 
_wrap_new_LatLongDistancePostingSource__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43362 SWIGINTERN PyObject *_wrap_new_LatLongDistancePostingSource__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43363   PyObject *resultobj = 0;
43364   Xapian::valueno arg1 ;
43365   Xapian::LatLongCoords *arg2 = 0 ;
43366   Xapian::LatLongMetric *arg3 = 0 ;
43367   double arg4 ;
43368   double arg5 ;
43369   double arg6 ;
43370   unsigned int val1 ;
43371   int ecode1 = 0 ;
43372   void *argp2 = 0 ;
43373   int res2 = 0 ;
43374   void *argp3 = 0 ;
43375   int res3 = 0 ;
43376   double val4 ;
43377   int ecode4 = 0 ;
43378   double val5 ;
43379   int ecode5 = 0 ;
43380   double val6 ;
43381   int ecode6 = 0 ;
43382   Xapian::LatLongDistancePostingSource *result = 0 ;
43383 
43384   if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
43385   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43386   if (!SWIG_IsOK(ecode1)) {
43387     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
43388   }
43389   arg1 = static_cast< Xapian::valueno >(val1);
43390   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43391   if (!SWIG_IsOK(res2)) {
43392     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43393   }
43394   if (!argp2) {
43395     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43396   }
43397   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43398   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0  | 0);
43399   if (!SWIG_IsOK(res3)) {
43400     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43401   }
43402   if (!argp3) {
43403     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43404   }
43405   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
43406   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
43407   if (!SWIG_IsOK(ecode4)) {
43408     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistancePostingSource" "', argument " "4"" of type '" "double""'");
43409   }
43410   arg4 = static_cast< double >(val4);
43411   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
43412   if (!SWIG_IsOK(ecode5)) {
43413     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_LatLongDistancePostingSource" "', argument " "5"" of type '" "double""'");
43414   }
43415   arg5 = static_cast< double >(val5);
43416   ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
43417   if (!SWIG_IsOK(ecode6)) {
43418     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_LatLongDistancePostingSource" "', argument " "6"" of type '" "double""'");
43419   }
43420   arg6 = static_cast< double >(val6);
43421   {
43422     try {
43423       {
43424         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43425         result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongMetric const &)*arg3,arg4,arg5,arg6);
43426         SWIG_PYTHON_THREAD_END_ALLOW;
43427       }
43428     } catch (...) {
43429       Xapian::SetPythonException();
43430       SWIG_fail;
43431     }
43432   }
43433   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_POINTER_NEW |  0 );
43434   return resultobj;
43435 fail:
43436   return NULL;
43437 }
43438 
43439 
_wrap_new_LatLongDistancePostingSource__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43440 SWIGINTERN PyObject *_wrap_new_LatLongDistancePostingSource__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43441   PyObject *resultobj = 0;
43442   Xapian::valueno arg1 ;
43443   Xapian::LatLongCoords *arg2 = 0 ;
43444   Xapian::LatLongMetric *arg3 = 0 ;
43445   double arg4 ;
43446   double arg5 ;
43447   unsigned int val1 ;
43448   int ecode1 = 0 ;
43449   void *argp2 = 0 ;
43450   int res2 = 0 ;
43451   void *argp3 = 0 ;
43452   int res3 = 0 ;
43453   double val4 ;
43454   int ecode4 = 0 ;
43455   double val5 ;
43456   int ecode5 = 0 ;
43457   Xapian::LatLongDistancePostingSource *result = 0 ;
43458 
43459   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
43460   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43461   if (!SWIG_IsOK(ecode1)) {
43462     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
43463   }
43464   arg1 = static_cast< Xapian::valueno >(val1);
43465   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43466   if (!SWIG_IsOK(res2)) {
43467     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43468   }
43469   if (!argp2) {
43470     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43471   }
43472   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43473   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0  | 0);
43474   if (!SWIG_IsOK(res3)) {
43475     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43476   }
43477   if (!argp3) {
43478     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43479   }
43480   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
43481   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
43482   if (!SWIG_IsOK(ecode4)) {
43483     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistancePostingSource" "', argument " "4"" of type '" "double""'");
43484   }
43485   arg4 = static_cast< double >(val4);
43486   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
43487   if (!SWIG_IsOK(ecode5)) {
43488     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_LatLongDistancePostingSource" "', argument " "5"" of type '" "double""'");
43489   }
43490   arg5 = static_cast< double >(val5);
43491   {
43492     try {
43493       {
43494         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43495         result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongMetric const &)*arg3,arg4,arg5);
43496         SWIG_PYTHON_THREAD_END_ALLOW;
43497       }
43498     } catch (...) {
43499       Xapian::SetPythonException();
43500       SWIG_fail;
43501     }
43502   }
43503   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_POINTER_NEW |  0 );
43504   return resultobj;
43505 fail:
43506   return NULL;
43507 }
43508 
43509 
_wrap_new_LatLongDistancePostingSource__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43510 SWIGINTERN PyObject *_wrap_new_LatLongDistancePostingSource__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43511   PyObject *resultobj = 0;
43512   Xapian::valueno arg1 ;
43513   Xapian::LatLongCoords *arg2 = 0 ;
43514   Xapian::LatLongMetric *arg3 = 0 ;
43515   double arg4 ;
43516   unsigned int val1 ;
43517   int ecode1 = 0 ;
43518   void *argp2 = 0 ;
43519   int res2 = 0 ;
43520   void *argp3 = 0 ;
43521   int res3 = 0 ;
43522   double val4 ;
43523   int ecode4 = 0 ;
43524   Xapian::LatLongDistancePostingSource *result = 0 ;
43525 
43526   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
43527   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43528   if (!SWIG_IsOK(ecode1)) {
43529     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
43530   }
43531   arg1 = static_cast< Xapian::valueno >(val1);
43532   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43533   if (!SWIG_IsOK(res2)) {
43534     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43535   }
43536   if (!argp2) {
43537     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43538   }
43539   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43540   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0  | 0);
43541   if (!SWIG_IsOK(res3)) {
43542     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43543   }
43544   if (!argp3) {
43545     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43546   }
43547   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
43548   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
43549   if (!SWIG_IsOK(ecode4)) {
43550     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistancePostingSource" "', argument " "4"" of type '" "double""'");
43551   }
43552   arg4 = static_cast< double >(val4);
43553   {
43554     try {
43555       {
43556         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43557         result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongMetric const &)*arg3,arg4);
43558         SWIG_PYTHON_THREAD_END_ALLOW;
43559       }
43560     } catch (...) {
43561       Xapian::SetPythonException();
43562       SWIG_fail;
43563     }
43564   }
43565   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_POINTER_NEW |  0 );
43566   return resultobj;
43567 fail:
43568   return NULL;
43569 }
43570 
43571 
_wrap_new_LatLongDistancePostingSource__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43572 SWIGINTERN PyObject *_wrap_new_LatLongDistancePostingSource__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43573   PyObject *resultobj = 0;
43574   Xapian::valueno arg1 ;
43575   Xapian::LatLongCoords *arg2 = 0 ;
43576   Xapian::LatLongMetric *arg3 = 0 ;
43577   unsigned int val1 ;
43578   int ecode1 = 0 ;
43579   void *argp2 = 0 ;
43580   int res2 = 0 ;
43581   void *argp3 = 0 ;
43582   int res3 = 0 ;
43583   Xapian::LatLongDistancePostingSource *result = 0 ;
43584 
43585   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
43586   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43587   if (!SWIG_IsOK(ecode1)) {
43588     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
43589   }
43590   arg1 = static_cast< Xapian::valueno >(val1);
43591   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43592   if (!SWIG_IsOK(res2)) {
43593     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43594   }
43595   if (!argp2) {
43596     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43597   }
43598   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43599   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0  | 0);
43600   if (!SWIG_IsOK(res3)) {
43601     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43602   }
43603   if (!argp3) {
43604     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43605   }
43606   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
43607   {
43608     try {
43609       {
43610         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43611         result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongMetric const &)*arg3);
43612         SWIG_PYTHON_THREAD_END_ALLOW;
43613       }
43614     } catch (...) {
43615       Xapian::SetPythonException();
43616       SWIG_fail;
43617     }
43618   }
43619   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_POINTER_NEW |  0 );
43620   return resultobj;
43621 fail:
43622   return NULL;
43623 }
43624 
43625 
_wrap_new_LatLongDistancePostingSource__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43626 SWIGINTERN PyObject *_wrap_new_LatLongDistancePostingSource__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43627   PyObject *resultobj = 0;
43628   Xapian::valueno arg1 ;
43629   Xapian::LatLongCoords *arg2 = 0 ;
43630   double arg3 ;
43631   double arg4 ;
43632   double arg5 ;
43633   unsigned int val1 ;
43634   int ecode1 = 0 ;
43635   void *argp2 = 0 ;
43636   int res2 = 0 ;
43637   double val3 ;
43638   int ecode3 = 0 ;
43639   double val4 ;
43640   int ecode4 = 0 ;
43641   double val5 ;
43642   int ecode5 = 0 ;
43643   Xapian::LatLongDistancePostingSource *result = 0 ;
43644 
43645   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
43646   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43647   if (!SWIG_IsOK(ecode1)) {
43648     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
43649   }
43650   arg1 = static_cast< Xapian::valueno >(val1);
43651   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43652   if (!SWIG_IsOK(res2)) {
43653     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43654   }
43655   if (!argp2) {
43656     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43657   }
43658   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43659   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
43660   if (!SWIG_IsOK(ecode3)) {
43661     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "double""'");
43662   }
43663   arg3 = static_cast< double >(val3);
43664   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
43665   if (!SWIG_IsOK(ecode4)) {
43666     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistancePostingSource" "', argument " "4"" of type '" "double""'");
43667   }
43668   arg4 = static_cast< double >(val4);
43669   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
43670   if (!SWIG_IsOK(ecode5)) {
43671     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_LatLongDistancePostingSource" "', argument " "5"" of type '" "double""'");
43672   }
43673   arg5 = static_cast< double >(val5);
43674   {
43675     try {
43676       {
43677         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43678         result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,arg3,arg4,arg5);
43679         SWIG_PYTHON_THREAD_END_ALLOW;
43680       }
43681     } catch (...) {
43682       Xapian::SetPythonException();
43683       SWIG_fail;
43684     }
43685   }
43686   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_POINTER_NEW |  0 );
43687   return resultobj;
43688 fail:
43689   return NULL;
43690 }
43691 
43692 
_wrap_new_LatLongDistancePostingSource__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43693 SWIGINTERN PyObject *_wrap_new_LatLongDistancePostingSource__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43694   PyObject *resultobj = 0;
43695   Xapian::valueno arg1 ;
43696   Xapian::LatLongCoords *arg2 = 0 ;
43697   double arg3 ;
43698   double arg4 ;
43699   unsigned int val1 ;
43700   int ecode1 = 0 ;
43701   void *argp2 = 0 ;
43702   int res2 = 0 ;
43703   double val3 ;
43704   int ecode3 = 0 ;
43705   double val4 ;
43706   int ecode4 = 0 ;
43707   Xapian::LatLongDistancePostingSource *result = 0 ;
43708 
43709   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
43710   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43711   if (!SWIG_IsOK(ecode1)) {
43712     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
43713   }
43714   arg1 = static_cast< Xapian::valueno >(val1);
43715   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43716   if (!SWIG_IsOK(res2)) {
43717     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43718   }
43719   if (!argp2) {
43720     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43721   }
43722   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43723   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
43724   if (!SWIG_IsOK(ecode3)) {
43725     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "double""'");
43726   }
43727   arg3 = static_cast< double >(val3);
43728   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
43729   if (!SWIG_IsOK(ecode4)) {
43730     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistancePostingSource" "', argument " "4"" of type '" "double""'");
43731   }
43732   arg4 = static_cast< double >(val4);
43733   {
43734     try {
43735       {
43736         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43737         result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,arg3,arg4);
43738         SWIG_PYTHON_THREAD_END_ALLOW;
43739       }
43740     } catch (...) {
43741       Xapian::SetPythonException();
43742       SWIG_fail;
43743     }
43744   }
43745   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_POINTER_NEW |  0 );
43746   return resultobj;
43747 fail:
43748   return NULL;
43749 }
43750 
43751 
_wrap_new_LatLongDistancePostingSource__SWIG_6(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43752 SWIGINTERN PyObject *_wrap_new_LatLongDistancePostingSource__SWIG_6(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43753   PyObject *resultobj = 0;
43754   Xapian::valueno arg1 ;
43755   Xapian::LatLongCoords *arg2 = 0 ;
43756   double arg3 ;
43757   unsigned int val1 ;
43758   int ecode1 = 0 ;
43759   void *argp2 = 0 ;
43760   int res2 = 0 ;
43761   double val3 ;
43762   int ecode3 = 0 ;
43763   Xapian::LatLongDistancePostingSource *result = 0 ;
43764 
43765   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
43766   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43767   if (!SWIG_IsOK(ecode1)) {
43768     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
43769   }
43770   arg1 = static_cast< Xapian::valueno >(val1);
43771   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43772   if (!SWIG_IsOK(res2)) {
43773     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43774   }
43775   if (!argp2) {
43776     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43777   }
43778   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43779   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
43780   if (!SWIG_IsOK(ecode3)) {
43781     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LatLongDistancePostingSource" "', argument " "3"" of type '" "double""'");
43782   }
43783   arg3 = static_cast< double >(val3);
43784   {
43785     try {
43786       {
43787         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43788         result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2,arg3);
43789         SWIG_PYTHON_THREAD_END_ALLOW;
43790       }
43791     } catch (...) {
43792       Xapian::SetPythonException();
43793       SWIG_fail;
43794     }
43795   }
43796   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_POINTER_NEW |  0 );
43797   return resultobj;
43798 fail:
43799   return NULL;
43800 }
43801 
43802 
_wrap_new_LatLongDistancePostingSource__SWIG_7(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43803 SWIGINTERN PyObject *_wrap_new_LatLongDistancePostingSource__SWIG_7(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43804   PyObject *resultobj = 0;
43805   Xapian::valueno arg1 ;
43806   Xapian::LatLongCoords *arg2 = 0 ;
43807   unsigned int val1 ;
43808   int ecode1 = 0 ;
43809   void *argp2 = 0 ;
43810   int res2 = 0 ;
43811   Xapian::LatLongDistancePostingSource *result = 0 ;
43812 
43813   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
43814   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43815   if (!SWIG_IsOK(ecode1)) {
43816     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::valueno""'");
43817   }
43818   arg1 = static_cast< Xapian::valueno >(val1);
43819   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43820   if (!SWIG_IsOK(res2)) {
43821     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43822   }
43823   if (!argp2) {
43824     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistancePostingSource" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43825   }
43826   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43827   {
43828     try {
43829       {
43830         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43831         result = (Xapian::LatLongDistancePostingSource *)new Xapian::LatLongDistancePostingSource(arg1,(Xapian::LatLongCoords const &)*arg2);
43832         SWIG_PYTHON_THREAD_END_ALLOW;
43833       }
43834     } catch (...) {
43835       Xapian::SetPythonException();
43836       SWIG_fail;
43837     }
43838   }
43839   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_POINTER_NEW |  0 );
43840   return resultobj;
43841 fail:
43842   return NULL;
43843 }
43844 
43845 
_wrap_new_LatLongDistancePostingSource(PyObject * self,PyObject * args)43846 SWIGINTERN PyObject *_wrap_new_LatLongDistancePostingSource(PyObject *self, PyObject *args) {
43847   Py_ssize_t argc;
43848   PyObject *argv[7] = {
43849     0
43850   };
43851 
43852   if (!(argc = SWIG_Python_UnpackTuple(args,"new_LatLongDistancePostingSource",0,6,argv))) SWIG_fail;
43853   --argc;
43854   if (argc == 2) {
43855     return _wrap_new_LatLongDistancePostingSource__SWIG_7(self, argc, argv);
43856   }
43857   if (argc == 3) {
43858     int _v = 0;
43859     {
43860       int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Xapian__LatLongMetric, 0);
43861       _v = SWIG_CheckState(res);
43862     }
43863     if (!_v) goto check_2;
43864     return _wrap_new_LatLongDistancePostingSource__SWIG_3(self, argc, argv);
43865   }
43866 check_2:
43867 
43868   if (argc == 3) {
43869     return _wrap_new_LatLongDistancePostingSource__SWIG_6(self, argc, argv);
43870   }
43871   if (argc == 4) {
43872     int _v = 0;
43873     {
43874       int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Xapian__LatLongMetric, 0);
43875       _v = SWIG_CheckState(res);
43876     }
43877     if (!_v) goto check_4;
43878     return _wrap_new_LatLongDistancePostingSource__SWIG_2(self, argc, argv);
43879   }
43880 check_4:
43881 
43882   if (argc == 4) {
43883     return _wrap_new_LatLongDistancePostingSource__SWIG_5(self, argc, argv);
43884   }
43885   if (argc == 5) {
43886     int _v = 0;
43887     {
43888       int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Xapian__LatLongMetric, 0);
43889       _v = SWIG_CheckState(res);
43890     }
43891     if (!_v) goto check_6;
43892     return _wrap_new_LatLongDistancePostingSource__SWIG_1(self, argc, argv);
43893   }
43894 check_6:
43895 
43896   if (argc == 5) {
43897     return _wrap_new_LatLongDistancePostingSource__SWIG_4(self, argc, argv);
43898   }
43899   if (argc == 6) {
43900     return _wrap_new_LatLongDistancePostingSource__SWIG_0(self, argc, argv);
43901   }
43902 
43903 fail:
43904   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_LatLongDistancePostingSource'.\n"
43905     "  Possible C/C++ prototypes are:\n"
43906     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,Xapian::LatLongMetric const &,double,double,double)\n"
43907     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,Xapian::LatLongMetric const &,double,double)\n"
43908     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,Xapian::LatLongMetric const &,double)\n"
43909     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,Xapian::LatLongMetric const &)\n"
43910     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,double,double,double)\n"
43911     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,double,double)\n"
43912     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &,double)\n"
43913     "    Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno,Xapian::LatLongCoords const &)\n");
43914   return 0;
43915 }
43916 
43917 
_wrap_delete_LatLongDistancePostingSource(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43918 SWIGINTERN PyObject *_wrap_delete_LatLongDistancePostingSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43919   PyObject *resultobj = 0;
43920   Xapian::LatLongDistancePostingSource *arg1 = (Xapian::LatLongDistancePostingSource *) 0 ;
43921   void *argp1 = 0 ;
43922   int res1 = 0 ;
43923   PyObject *swig_obj[1] ;
43924 
43925   if (!args) SWIG_fail;
43926   swig_obj[0] = args;
43927   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_POINTER_DISOWN |  0 );
43928   if (!SWIG_IsOK(res1)) {
43929     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LatLongDistancePostingSource" "', argument " "1"" of type '" "Xapian::LatLongDistancePostingSource *""'");
43930   }
43931   arg1 = reinterpret_cast< Xapian::LatLongDistancePostingSource * >(argp1);
43932   {
43933     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
43934     delete arg1;
43935     SWIG_PYTHON_THREAD_END_ALLOW;
43936   }
43937   resultobj = SWIG_Py_Void();
43938   return resultobj;
43939 fail:
43940   return NULL;
43941 }
43942 
43943 
LatLongDistancePostingSource_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43944 SWIGINTERN PyObject *LatLongDistancePostingSource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43945   PyObject *obj;
43946   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
43947   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__LatLongDistancePostingSource, SWIG_NewClientData(obj));
43948   return SWIG_Py_Void();
43949 }
43950 
LatLongDistancePostingSource_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)43951 SWIGINTERN PyObject *LatLongDistancePostingSource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43952   return SWIG_Python_InitShadowInstance(args);
43953 }
43954 
_wrap_new_LatLongDistanceKeyMaker__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)43955 SWIGINTERN PyObject *_wrap_new_LatLongDistanceKeyMaker__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
43956   PyObject *resultobj = 0;
43957   Xapian::valueno arg1 ;
43958   Xapian::LatLongCoords *arg2 = 0 ;
43959   Xapian::LatLongMetric *arg3 = 0 ;
43960   double arg4 ;
43961   unsigned int val1 ;
43962   int ecode1 = 0 ;
43963   void *argp2 = 0 ;
43964   int res2 = 0 ;
43965   void *argp3 = 0 ;
43966   int res3 = 0 ;
43967   double val4 ;
43968   int ecode4 = 0 ;
43969   Xapian::LatLongDistanceKeyMaker *result = 0 ;
43970 
43971   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
43972   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
43973   if (!SWIG_IsOK(ecode1)) {
43974     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::valueno""'");
43975   }
43976   arg1 = static_cast< Xapian::valueno >(val1);
43977   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
43978   if (!SWIG_IsOK(res2)) {
43979     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43980   }
43981   if (!argp2) {
43982     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
43983   }
43984   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
43985   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0  | 0);
43986   if (!SWIG_IsOK(res3)) {
43987     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43988   }
43989   if (!argp3) {
43990     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
43991   }
43992   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
43993   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
43994   if (!SWIG_IsOK(ecode4)) {
43995     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "4"" of type '" "double""'");
43996   }
43997   arg4 = static_cast< double >(val4);
43998   {
43999     try {
44000       {
44001         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44002         result = (Xapian::LatLongDistanceKeyMaker *)new Xapian::LatLongDistanceKeyMaker(arg1,(Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongMetric const &)*arg3,arg4);
44003         SWIG_PYTHON_THREAD_END_ALLOW;
44004       }
44005     } catch (...) {
44006       Xapian::SetPythonException();
44007       SWIG_fail;
44008     }
44009   }
44010   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker, SWIG_POINTER_NEW |  0 );
44011   return resultobj;
44012 fail:
44013   return NULL;
44014 }
44015 
44016 
_wrap_new_LatLongDistanceKeyMaker__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)44017 SWIGINTERN PyObject *_wrap_new_LatLongDistanceKeyMaker__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
44018   PyObject *resultobj = 0;
44019   Xapian::valueno arg1 ;
44020   Xapian::LatLongCoords *arg2 = 0 ;
44021   Xapian::LatLongMetric *arg3 = 0 ;
44022   unsigned int val1 ;
44023   int ecode1 = 0 ;
44024   void *argp2 = 0 ;
44025   int res2 = 0 ;
44026   void *argp3 = 0 ;
44027   int res3 = 0 ;
44028   Xapian::LatLongDistanceKeyMaker *result = 0 ;
44029 
44030   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
44031   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
44032   if (!SWIG_IsOK(ecode1)) {
44033     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::valueno""'");
44034   }
44035   arg1 = static_cast< Xapian::valueno >(val1);
44036   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
44037   if (!SWIG_IsOK(res2)) {
44038     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
44039   }
44040   if (!argp2) {
44041     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
44042   }
44043   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
44044   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0  | 0);
44045   if (!SWIG_IsOK(res3)) {
44046     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
44047   }
44048   if (!argp3) {
44049     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
44050   }
44051   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
44052   {
44053     try {
44054       {
44055         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44056         result = (Xapian::LatLongDistanceKeyMaker *)new Xapian::LatLongDistanceKeyMaker(arg1,(Xapian::LatLongCoords const &)*arg2,(Xapian::LatLongMetric const &)*arg3);
44057         SWIG_PYTHON_THREAD_END_ALLOW;
44058       }
44059     } catch (...) {
44060       Xapian::SetPythonException();
44061       SWIG_fail;
44062     }
44063   }
44064   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker, SWIG_POINTER_NEW |  0 );
44065   return resultobj;
44066 fail:
44067   return NULL;
44068 }
44069 
44070 
_wrap_new_LatLongDistanceKeyMaker__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)44071 SWIGINTERN PyObject *_wrap_new_LatLongDistanceKeyMaker__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
44072   PyObject *resultobj = 0;
44073   Xapian::valueno arg1 ;
44074   Xapian::LatLongCoords *arg2 = 0 ;
44075   unsigned int val1 ;
44076   int ecode1 = 0 ;
44077   void *argp2 = 0 ;
44078   int res2 = 0 ;
44079   Xapian::LatLongDistanceKeyMaker *result = 0 ;
44080 
44081   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
44082   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
44083   if (!SWIG_IsOK(ecode1)) {
44084     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::valueno""'");
44085   }
44086   arg1 = static_cast< Xapian::valueno >(val1);
44087   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoords,  0  | 0);
44088   if (!SWIG_IsOK(res2)) {
44089     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
44090   }
44091   if (!argp2) {
44092     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoords const &""'");
44093   }
44094   arg2 = reinterpret_cast< Xapian::LatLongCoords * >(argp2);
44095   {
44096     try {
44097       {
44098         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44099         result = (Xapian::LatLongDistanceKeyMaker *)new Xapian::LatLongDistanceKeyMaker(arg1,(Xapian::LatLongCoords const &)*arg2);
44100         SWIG_PYTHON_THREAD_END_ALLOW;
44101       }
44102     } catch (...) {
44103       Xapian::SetPythonException();
44104       SWIG_fail;
44105     }
44106   }
44107   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker, SWIG_POINTER_NEW |  0 );
44108   return resultobj;
44109 fail:
44110   return NULL;
44111 }
44112 
44113 
_wrap_new_LatLongDistanceKeyMaker__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)44114 SWIGINTERN PyObject *_wrap_new_LatLongDistanceKeyMaker__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
44115   PyObject *resultobj = 0;
44116   Xapian::valueno arg1 ;
44117   Xapian::LatLongCoord *arg2 = 0 ;
44118   Xapian::LatLongMetric *arg3 = 0 ;
44119   double arg4 ;
44120   unsigned int val1 ;
44121   int ecode1 = 0 ;
44122   void *argp2 = 0 ;
44123   int res2 = 0 ;
44124   void *argp3 = 0 ;
44125   int res3 = 0 ;
44126   double val4 ;
44127   int ecode4 = 0 ;
44128   Xapian::LatLongDistanceKeyMaker *result = 0 ;
44129 
44130   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
44131   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
44132   if (!SWIG_IsOK(ecode1)) {
44133     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::valueno""'");
44134   }
44135   arg1 = static_cast< Xapian::valueno >(val1);
44136   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoord,  0  | 0);
44137   if (!SWIG_IsOK(res2)) {
44138     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
44139   }
44140   if (!argp2) {
44141     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
44142   }
44143   arg2 = reinterpret_cast< Xapian::LatLongCoord * >(argp2);
44144   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0  | 0);
44145   if (!SWIG_IsOK(res3)) {
44146     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
44147   }
44148   if (!argp3) {
44149     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
44150   }
44151   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
44152   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
44153   if (!SWIG_IsOK(ecode4)) {
44154     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "4"" of type '" "double""'");
44155   }
44156   arg4 = static_cast< double >(val4);
44157   {
44158     try {
44159       {
44160         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44161         result = (Xapian::LatLongDistanceKeyMaker *)new Xapian::LatLongDistanceKeyMaker(arg1,(Xapian::LatLongCoord const &)*arg2,(Xapian::LatLongMetric const &)*arg3,arg4);
44162         SWIG_PYTHON_THREAD_END_ALLOW;
44163       }
44164     } catch (...) {
44165       Xapian::SetPythonException();
44166       SWIG_fail;
44167     }
44168   }
44169   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker, SWIG_POINTER_NEW |  0 );
44170   return resultobj;
44171 fail:
44172   return NULL;
44173 }
44174 
44175 
_wrap_new_LatLongDistanceKeyMaker__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)44176 SWIGINTERN PyObject *_wrap_new_LatLongDistanceKeyMaker__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
44177   PyObject *resultobj = 0;
44178   Xapian::valueno arg1 ;
44179   Xapian::LatLongCoord *arg2 = 0 ;
44180   Xapian::LatLongMetric *arg3 = 0 ;
44181   unsigned int val1 ;
44182   int ecode1 = 0 ;
44183   void *argp2 = 0 ;
44184   int res2 = 0 ;
44185   void *argp3 = 0 ;
44186   int res3 = 0 ;
44187   Xapian::LatLongDistanceKeyMaker *result = 0 ;
44188 
44189   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
44190   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
44191   if (!SWIG_IsOK(ecode1)) {
44192     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::valueno""'");
44193   }
44194   arg1 = static_cast< Xapian::valueno >(val1);
44195   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoord,  0  | 0);
44196   if (!SWIG_IsOK(res2)) {
44197     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
44198   }
44199   if (!argp2) {
44200     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
44201   }
44202   arg2 = reinterpret_cast< Xapian::LatLongCoord * >(argp2);
44203   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__LatLongMetric,  0  | 0);
44204   if (!SWIG_IsOK(res3)) {
44205     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
44206   }
44207   if (!argp3) {
44208     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "3"" of type '" "Xapian::LatLongMetric const &""'");
44209   }
44210   arg3 = reinterpret_cast< Xapian::LatLongMetric * >(argp3);
44211   {
44212     try {
44213       {
44214         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44215         result = (Xapian::LatLongDistanceKeyMaker *)new Xapian::LatLongDistanceKeyMaker(arg1,(Xapian::LatLongCoord const &)*arg2,(Xapian::LatLongMetric const &)*arg3);
44216         SWIG_PYTHON_THREAD_END_ALLOW;
44217       }
44218     } catch (...) {
44219       Xapian::SetPythonException();
44220       SWIG_fail;
44221     }
44222   }
44223   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker, SWIG_POINTER_NEW |  0 );
44224   return resultobj;
44225 fail:
44226   return NULL;
44227 }
44228 
44229 
_wrap_new_LatLongDistanceKeyMaker__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)44230 SWIGINTERN PyObject *_wrap_new_LatLongDistanceKeyMaker__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
44231   PyObject *resultobj = 0;
44232   Xapian::valueno arg1 ;
44233   Xapian::LatLongCoord *arg2 = 0 ;
44234   unsigned int val1 ;
44235   int ecode1 = 0 ;
44236   void *argp2 = 0 ;
44237   int res2 = 0 ;
44238   Xapian::LatLongDistanceKeyMaker *result = 0 ;
44239 
44240   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
44241   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
44242   if (!SWIG_IsOK(ecode1)) {
44243     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::valueno""'");
44244   }
44245   arg1 = static_cast< Xapian::valueno >(val1);
44246   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__LatLongCoord,  0  | 0);
44247   if (!SWIG_IsOK(res2)) {
44248     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
44249   }
44250   if (!argp2) {
44251     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LatLongDistanceKeyMaker" "', argument " "2"" of type '" "Xapian::LatLongCoord const &""'");
44252   }
44253   arg2 = reinterpret_cast< Xapian::LatLongCoord * >(argp2);
44254   {
44255     try {
44256       {
44257         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44258         result = (Xapian::LatLongDistanceKeyMaker *)new Xapian::LatLongDistanceKeyMaker(arg1,(Xapian::LatLongCoord const &)*arg2);
44259         SWIG_PYTHON_THREAD_END_ALLOW;
44260       }
44261     } catch (...) {
44262       Xapian::SetPythonException();
44263       SWIG_fail;
44264     }
44265   }
44266   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker, SWIG_POINTER_NEW |  0 );
44267   return resultobj;
44268 fail:
44269   return NULL;
44270 }
44271 
44272 
_wrap_new_LatLongDistanceKeyMaker(PyObject * self,PyObject * args)44273 SWIGINTERN PyObject *_wrap_new_LatLongDistanceKeyMaker(PyObject *self, PyObject *args) {
44274   Py_ssize_t argc;
44275   PyObject *argv[5] = {
44276     0
44277   };
44278 
44279   if (!(argc = SWIG_Python_UnpackTuple(args,"new_LatLongDistanceKeyMaker",0,4,argv))) SWIG_fail;
44280   --argc;
44281   if (argc == 2) {
44282     int _v = 0;
44283     {
44284       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__LatLongCoords, 0);
44285       _v = SWIG_CheckState(res);
44286     }
44287     if (!_v) goto check_1;
44288     return _wrap_new_LatLongDistanceKeyMaker__SWIG_2(self, argc, argv);
44289   }
44290 check_1:
44291 
44292   if (argc == 2) {
44293     return _wrap_new_LatLongDistanceKeyMaker__SWIG_5(self, argc, argv);
44294   }
44295   if (argc == 3) {
44296     int _v = 0;
44297     {
44298       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__LatLongCoord, 0);
44299       _v = SWIG_CheckState(res);
44300     }
44301     if (!_v) goto check_3;
44302     return _wrap_new_LatLongDistanceKeyMaker__SWIG_4(self, argc, argv);
44303   }
44304 check_3:
44305 
44306   if (argc == 3) {
44307     return _wrap_new_LatLongDistanceKeyMaker__SWIG_1(self, argc, argv);
44308   }
44309   if (argc == 4) {
44310     int _v = 0;
44311     {
44312       int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Xapian__LatLongCoords, 0);
44313       _v = SWIG_CheckState(res);
44314     }
44315     if (!_v) goto check_5;
44316     return _wrap_new_LatLongDistanceKeyMaker__SWIG_0(self, argc, argv);
44317   }
44318 check_5:
44319 
44320   if (argc == 4) {
44321     return _wrap_new_LatLongDistanceKeyMaker__SWIG_3(self, argc, argv);
44322   }
44323 
44324 fail:
44325   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_LatLongDistanceKeyMaker'.\n"
44326     "  Possible C/C++ prototypes are:\n"
44327     "    Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno,Xapian::LatLongCoords const &,Xapian::LatLongMetric const &,double)\n"
44328     "    Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno,Xapian::LatLongCoords const &,Xapian::LatLongMetric const &)\n"
44329     "    Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno,Xapian::LatLongCoords const &)\n"
44330     "    Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno,Xapian::LatLongCoord const &,Xapian::LatLongMetric const &,double)\n"
44331     "    Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno,Xapian::LatLongCoord const &,Xapian::LatLongMetric const &)\n"
44332     "    Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno,Xapian::LatLongCoord const &)\n");
44333   return 0;
44334 }
44335 
44336 
_wrap_delete_LatLongDistanceKeyMaker(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44337 SWIGINTERN PyObject *_wrap_delete_LatLongDistanceKeyMaker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44338   PyObject *resultobj = 0;
44339   Xapian::LatLongDistanceKeyMaker *arg1 = (Xapian::LatLongDistanceKeyMaker *) 0 ;
44340   void *argp1 = 0 ;
44341   int res1 = 0 ;
44342   PyObject *swig_obj[1] ;
44343 
44344   if (!args) SWIG_fail;
44345   swig_obj[0] = args;
44346   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker, SWIG_POINTER_DISOWN |  0 );
44347   if (!SWIG_IsOK(res1)) {
44348     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LatLongDistanceKeyMaker" "', argument " "1"" of type '" "Xapian::LatLongDistanceKeyMaker *""'");
44349   }
44350   arg1 = reinterpret_cast< Xapian::LatLongDistanceKeyMaker * >(argp1);
44351   {
44352     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44353     delete arg1;
44354     SWIG_PYTHON_THREAD_END_ALLOW;
44355   }
44356   resultobj = SWIG_Py_Void();
44357   return resultobj;
44358 fail:
44359   return NULL;
44360 }
44361 
44362 
LatLongDistanceKeyMaker_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44363 SWIGINTERN PyObject *LatLongDistanceKeyMaker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44364   PyObject *obj;
44365   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
44366   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__LatLongDistanceKeyMaker, SWIG_NewClientData(obj));
44367   return SWIG_Py_Void();
44368 }
44369 
LatLongDistanceKeyMaker_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44370 SWIGINTERN PyObject *LatLongDistanceKeyMaker_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44371   return SWIG_Python_InitShadowInstance(args);
44372 }
44373 
_wrap_Database_add_database(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44374 SWIGINTERN PyObject *_wrap_Database_add_database(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44375   PyObject *resultobj = 0;
44376   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44377   Xapian::Database *arg2 = 0 ;
44378   void *argp1 = 0 ;
44379   int res1 = 0 ;
44380   void *argp2 = 0 ;
44381   int res2 = 0 ;
44382   PyObject *swig_obj[2] ;
44383 
44384   if (!SWIG_Python_UnpackTuple(args,"Database_add_database",2,2,swig_obj)) SWIG_fail;
44385   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44386   if (!SWIG_IsOK(res1)) {
44387     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_add_database" "', argument " "1"" of type '" "Xapian::Database *""'");
44388   }
44389   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44390   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Database,  0  | 0);
44391   if (!SWIG_IsOK(res2)) {
44392     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_add_database" "', argument " "2"" of type '" "Xapian::Database const &""'");
44393   }
44394   if (!argp2) {
44395     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_add_database" "', argument " "2"" of type '" "Xapian::Database const &""'");
44396   }
44397   arg2 = reinterpret_cast< Xapian::Database * >(argp2);
44398   {
44399     try {
44400       {
44401         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44402         (arg1)->add_database((Xapian::Database const &)*arg2);
44403         SWIG_PYTHON_THREAD_END_ALLOW;
44404       }
44405     } catch (...) {
44406       Xapian::SetPythonException();
44407       SWIG_fail;
44408     }
44409   }
44410   resultobj = SWIG_Py_Void();
44411   return resultobj;
44412 fail:
44413   return NULL;
44414 }
44415 
44416 
_wrap_Database_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44417 SWIGINTERN PyObject *_wrap_Database_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44418   PyObject *resultobj = 0;
44419   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44420   void *argp1 = 0 ;
44421   int res1 = 0 ;
44422   PyObject *swig_obj[1] ;
44423   size_t result;
44424 
44425   if (!args) SWIG_fail;
44426   swig_obj[0] = args;
44427   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44428   if (!SWIG_IsOK(res1)) {
44429     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_size" "', argument " "1"" of type '" "Xapian::Database const *""'");
44430   }
44431   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44432   {
44433     try {
44434       {
44435         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44436         result = ((Xapian::Database const *)arg1)->size();
44437         SWIG_PYTHON_THREAD_END_ALLOW;
44438       }
44439     } catch (...) {
44440       Xapian::SetPythonException();
44441       SWIG_fail;
44442     }
44443   }
44444   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
44445   return resultobj;
44446 fail:
44447   return NULL;
44448 }
44449 
44450 
_wrap_new_Database__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))44451 SWIGINTERN PyObject *_wrap_new_Database__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
44452   PyObject *resultobj = 0;
44453   Xapian::Database *result = 0 ;
44454 
44455   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
44456   {
44457     try {
44458       {
44459         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44460         result = (Xapian::Database *)new Xapian::Database();
44461         SWIG_PYTHON_THREAD_END_ALLOW;
44462       }
44463     } catch (...) {
44464       Xapian::SetPythonException();
44465       SWIG_fail;
44466     }
44467   }
44468   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_NEW |  0 );
44469   return resultobj;
44470 fail:
44471   return NULL;
44472 }
44473 
44474 
_wrap_new_Database__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)44475 SWIGINTERN PyObject *_wrap_new_Database__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
44476   PyObject *resultobj = 0;
44477   std::string *arg1 = 0 ;
44478   int arg2 ;
44479   int res1 = SWIG_OLDOBJ ;
44480   int val2 ;
44481   int ecode2 = 0 ;
44482   Xapian::Database *result = 0 ;
44483 
44484   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
44485   {
44486     std::string *ptr = (std::string *)0;
44487     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
44488     if (!SWIG_IsOK(res1)) {
44489       if (res1 == INT_MIN) SWIG_fail;
44490       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Database" "', argument " "1"" of type '" "std::string const &""'");
44491     }
44492     if (!ptr) {
44493       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Database" "', argument " "1"" of type '" "std::string const &""'");
44494     }
44495     arg1 = ptr;
44496   }
44497   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
44498   if (!SWIG_IsOK(ecode2)) {
44499     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Database" "', argument " "2"" of type '" "int""'");
44500   }
44501   arg2 = static_cast< int >(val2);
44502   {
44503     try {
44504       {
44505         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44506         result = (Xapian::Database *)new Xapian::Database((std::string const &)*arg1,arg2);
44507         SWIG_PYTHON_THREAD_END_ALLOW;
44508       }
44509     } catch (...) {
44510       Xapian::SetPythonException();
44511       SWIG_fail;
44512     }
44513   }
44514   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_NEW |  0 );
44515   if (SWIG_IsNewObj(res1)) delete arg1;
44516   return resultobj;
44517 fail:
44518   if (SWIG_IsNewObj(res1)) delete arg1;
44519   return NULL;
44520 }
44521 
44522 
_wrap_new_Database__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)44523 SWIGINTERN PyObject *_wrap_new_Database__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
44524   PyObject *resultobj = 0;
44525   std::string *arg1 = 0 ;
44526   int res1 = SWIG_OLDOBJ ;
44527   Xapian::Database *result = 0 ;
44528 
44529   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
44530   {
44531     std::string *ptr = (std::string *)0;
44532     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
44533     if (!SWIG_IsOK(res1)) {
44534       if (res1 == INT_MIN) SWIG_fail;
44535       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Database" "', argument " "1"" of type '" "std::string const &""'");
44536     }
44537     if (!ptr) {
44538       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Database" "', argument " "1"" of type '" "std::string const &""'");
44539     }
44540     arg1 = ptr;
44541   }
44542   {
44543     try {
44544       {
44545         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44546         result = (Xapian::Database *)new Xapian::Database((std::string const &)*arg1);
44547         SWIG_PYTHON_THREAD_END_ALLOW;
44548       }
44549     } catch (...) {
44550       Xapian::SetPythonException();
44551       SWIG_fail;
44552     }
44553   }
44554   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_NEW |  0 );
44555   if (SWIG_IsNewObj(res1)) delete arg1;
44556   return resultobj;
44557 fail:
44558   if (SWIG_IsNewObj(res1)) delete arg1;
44559   return NULL;
44560 }
44561 
44562 
_wrap_new_Database__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)44563 SWIGINTERN PyObject *_wrap_new_Database__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
44564   PyObject *resultobj = 0;
44565   int arg1 ;
44566   int arg2 ;
44567   int val1 ;
44568   int ecode1 = 0 ;
44569   int val2 ;
44570   int ecode2 = 0 ;
44571   Xapian::Database *result = 0 ;
44572 
44573   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
44574   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
44575   if (!SWIG_IsOK(ecode1)) {
44576     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Database" "', argument " "1"" of type '" "int""'");
44577   }
44578   arg1 = static_cast< int >(val1);
44579   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
44580   if (!SWIG_IsOK(ecode2)) {
44581     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Database" "', argument " "2"" of type '" "int""'");
44582   }
44583   arg2 = static_cast< int >(val2);
44584   {
44585     try {
44586       {
44587         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44588         result = (Xapian::Database *)new Xapian::Database(arg1,arg2);
44589         SWIG_PYTHON_THREAD_END_ALLOW;
44590       }
44591     } catch (...) {
44592       Xapian::SetPythonException();
44593       SWIG_fail;
44594     }
44595   }
44596   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_NEW |  0 );
44597   return resultobj;
44598 fail:
44599   return NULL;
44600 }
44601 
44602 
_wrap_new_Database__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)44603 SWIGINTERN PyObject *_wrap_new_Database__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
44604   PyObject *resultobj = 0;
44605   int arg1 ;
44606   int val1 ;
44607   int ecode1 = 0 ;
44608   Xapian::Database *result = 0 ;
44609 
44610   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
44611   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
44612   if (!SWIG_IsOK(ecode1)) {
44613     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Database" "', argument " "1"" of type '" "int""'");
44614   }
44615   arg1 = static_cast< int >(val1);
44616   {
44617     try {
44618       {
44619         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44620         result = (Xapian::Database *)new Xapian::Database(arg1);
44621         SWIG_PYTHON_THREAD_END_ALLOW;
44622       }
44623     } catch (...) {
44624       Xapian::SetPythonException();
44625       SWIG_fail;
44626     }
44627   }
44628   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_NEW |  0 );
44629   return resultobj;
44630 fail:
44631   return NULL;
44632 }
44633 
44634 
_wrap_new_Database(PyObject * self,PyObject * args)44635 SWIGINTERN PyObject *_wrap_new_Database(PyObject *self, PyObject *args) {
44636   Py_ssize_t argc;
44637   PyObject *argv[3] = {
44638     0
44639   };
44640 
44641   if (!(argc = SWIG_Python_UnpackTuple(args,"new_Database",0,2,argv))) SWIG_fail;
44642   --argc;
44643   if (argc == 0) {
44644     return _wrap_new_Database__SWIG_0(self, argc, argv);
44645   }
44646   if (argc == 1) {
44647     int _v = 0;
44648     {
44649       {
44650         int res = SWIG_AsVal_int(argv[0], NULL);
44651         _v = SWIG_CheckState(res);
44652       }
44653     }
44654     if (!_v) goto check_2;
44655     return _wrap_new_Database__SWIG_4(self, argc, argv);
44656   }
44657 check_2:
44658 
44659   if (argc == 1) {
44660     return _wrap_new_Database__SWIG_2(self, argc, argv);
44661   }
44662   if (argc == 2) {
44663     int _v = 0;
44664     {
44665       {
44666         int res = SWIG_AsVal_int(argv[0], NULL);
44667         _v = SWIG_CheckState(res);
44668       }
44669     }
44670     if (!_v) goto check_4;
44671     return _wrap_new_Database__SWIG_3(self, argc, argv);
44672   }
44673 check_4:
44674 
44675   if (argc == 2) {
44676     return _wrap_new_Database__SWIG_1(self, argc, argv);
44677   }
44678 
44679 fail:
44680   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Database'.\n"
44681     "  Possible C/C++ prototypes are:\n"
44682     "    Xapian::Database::Database()\n"
44683     "    Xapian::Database::Database(std::string const &,int)\n"
44684     "    Xapian::Database::Database(std::string const &)\n"
44685     "    Xapian::Database::Database(int,int)\n"
44686     "    Xapian::Database::Database(int)\n");
44687   return 0;
44688 }
44689 
44690 
_wrap_delete_Database(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44691 SWIGINTERN PyObject *_wrap_delete_Database(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44692   PyObject *resultobj = 0;
44693   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44694   void *argp1 = 0 ;
44695   int res1 = 0 ;
44696   PyObject *swig_obj[1] ;
44697 
44698   if (!args) SWIG_fail;
44699   swig_obj[0] = args;
44700   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, SWIG_POINTER_DISOWN |  0 );
44701   if (!SWIG_IsOK(res1)) {
44702     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Database" "', argument " "1"" of type '" "Xapian::Database *""'");
44703   }
44704   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44705   {
44706     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44707     delete arg1;
44708     SWIG_PYTHON_THREAD_END_ALLOW;
44709   }
44710   resultobj = SWIG_Py_Void();
44711   return resultobj;
44712 fail:
44713   return NULL;
44714 }
44715 
44716 
_wrap_Database_reopen(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44717 SWIGINTERN PyObject *_wrap_Database_reopen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44718   PyObject *resultobj = 0;
44719   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44720   void *argp1 = 0 ;
44721   int res1 = 0 ;
44722   PyObject *swig_obj[1] ;
44723   bool result;
44724 
44725   if (!args) SWIG_fail;
44726   swig_obj[0] = args;
44727   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44728   if (!SWIG_IsOK(res1)) {
44729     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_reopen" "', argument " "1"" of type '" "Xapian::Database *""'");
44730   }
44731   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44732   {
44733     try {
44734       {
44735         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44736         result = (bool)(arg1)->reopen();
44737         SWIG_PYTHON_THREAD_END_ALLOW;
44738       }
44739     } catch (...) {
44740       Xapian::SetPythonException();
44741       SWIG_fail;
44742     }
44743   }
44744   resultobj = SWIG_From_bool(static_cast< bool >(result));
44745   return resultobj;
44746 fail:
44747   return NULL;
44748 }
44749 
44750 
_wrap_Database_close(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44751 SWIGINTERN PyObject *_wrap_Database_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44752   PyObject *resultobj = 0;
44753   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44754   void *argp1 = 0 ;
44755   int res1 = 0 ;
44756   PyObject *swig_obj[1] ;
44757 
44758   if (!args) SWIG_fail;
44759   swig_obj[0] = args;
44760   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44761   if (!SWIG_IsOK(res1)) {
44762     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_close" "', argument " "1"" of type '" "Xapian::Database *""'");
44763   }
44764   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44765   {
44766     try {
44767       {
44768         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44769         (arg1)->close();
44770         SWIG_PYTHON_THREAD_END_ALLOW;
44771       }
44772     } catch (...) {
44773       Xapian::SetPythonException();
44774       SWIG_fail;
44775     }
44776   }
44777   resultobj = SWIG_Py_Void();
44778   return resultobj;
44779 fail:
44780   return NULL;
44781 }
44782 
44783 
_wrap_Database___str__(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44784 SWIGINTERN PyObject *_wrap_Database___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44785   PyObject *resultobj = 0;
44786   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44787   void *argp1 = 0 ;
44788   int res1 = 0 ;
44789   PyObject *swig_obj[1] ;
44790   std::string result;
44791 
44792   if (!args) SWIG_fail;
44793   swig_obj[0] = args;
44794   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44795   if (!SWIG_IsOK(res1)) {
44796     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database___str__" "', argument " "1"" of type '" "Xapian::Database const *""'");
44797   }
44798   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44799   {
44800     try {
44801       {
44802         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44803         result = ((Xapian::Database const *)arg1)->get_description();
44804         SWIG_PYTHON_THREAD_END_ALLOW;
44805       }
44806     } catch (...) {
44807       Xapian::SetPythonException();
44808       SWIG_fail;
44809     }
44810   }
44811   resultobj = SWIG_From_std_string(static_cast< std::string >(result));
44812   return resultobj;
44813 fail:
44814   return NULL;
44815 }
44816 
44817 
_wrap_Database__postlist_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44818 SWIGINTERN PyObject *_wrap_Database__postlist_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44819   PyObject *resultobj = 0;
44820   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44821   std::string *arg2 = 0 ;
44822   void *argp1 = 0 ;
44823   int res1 = 0 ;
44824   int res2 = SWIG_OLDOBJ ;
44825   PyObject *swig_obj[2] ;
44826   Xapian::PostingIterator result;
44827 
44828   if (!SWIG_Python_UnpackTuple(args,"Database__postlist_begin",2,2,swig_obj)) SWIG_fail;
44829   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44830   if (!SWIG_IsOK(res1)) {
44831     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__postlist_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
44832   }
44833   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44834   {
44835     std::string *ptr = (std::string *)0;
44836     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
44837     if (!SWIG_IsOK(res2)) {
44838       if (res2 == INT_MIN) SWIG_fail;
44839       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__postlist_begin" "', argument " "2"" of type '" "std::string const &""'");
44840     }
44841     if (!ptr) {
44842       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__postlist_begin" "', argument " "2"" of type '" "std::string const &""'");
44843     }
44844     arg2 = ptr;
44845   }
44846   {
44847     try {
44848       {
44849         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44850         result = ((Xapian::Database const *)arg1)->postlist_begin((std::string const &)*arg2);
44851         SWIG_PYTHON_THREAD_END_ALLOW;
44852       }
44853     } catch (...) {
44854       Xapian::SetPythonException();
44855       SWIG_fail;
44856     }
44857   }
44858   resultobj = SWIG_NewPointerObj((new Xapian::PostingIterator(static_cast< const Xapian::PostingIterator& >(result))), SWIGTYPE_p_Xapian__PostingIterator, SWIG_POINTER_OWN |  0 );
44859   if (SWIG_IsNewObj(res2)) delete arg2;
44860   return resultobj;
44861 fail:
44862   if (SWIG_IsNewObj(res2)) delete arg2;
44863   return NULL;
44864 }
44865 
44866 
_wrap_Database__postlist_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44867 SWIGINTERN PyObject *_wrap_Database__postlist_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44868   PyObject *resultobj = 0;
44869   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44870   std::string *arg2 = 0 ;
44871   void *argp1 = 0 ;
44872   int res1 = 0 ;
44873   int res2 = SWIG_OLDOBJ ;
44874   PyObject *swig_obj[2] ;
44875   Xapian::PostingIterator result;
44876 
44877   if (!SWIG_Python_UnpackTuple(args,"Database__postlist_end",2,2,swig_obj)) SWIG_fail;
44878   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44879   if (!SWIG_IsOK(res1)) {
44880     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__postlist_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
44881   }
44882   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44883   {
44884     std::string *ptr = (std::string *)0;
44885     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
44886     if (!SWIG_IsOK(res2)) {
44887       if (res2 == INT_MIN) SWIG_fail;
44888       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__postlist_end" "', argument " "2"" of type '" "std::string const &""'");
44889     }
44890     if (!ptr) {
44891       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__postlist_end" "', argument " "2"" of type '" "std::string const &""'");
44892     }
44893     arg2 = ptr;
44894   }
44895   {
44896     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44897     result = ((Xapian::Database const *)arg1)->postlist_end((std::string const &)*arg2);
44898     SWIG_PYTHON_THREAD_END_ALLOW;
44899   }
44900   resultobj = SWIG_NewPointerObj((new Xapian::PostingIterator(static_cast< const Xapian::PostingIterator& >(result))), SWIGTYPE_p_Xapian__PostingIterator, SWIG_POINTER_OWN |  0 );
44901   if (SWIG_IsNewObj(res2)) delete arg2;
44902   return resultobj;
44903 fail:
44904   if (SWIG_IsNewObj(res2)) delete arg2;
44905   return NULL;
44906 }
44907 
44908 
_wrap_Database__termlist_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44909 SWIGINTERN PyObject *_wrap_Database__termlist_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44910   PyObject *resultobj = 0;
44911   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44912   Xapian::docid arg2 ;
44913   void *argp1 = 0 ;
44914   int res1 = 0 ;
44915   unsigned int val2 ;
44916   int ecode2 = 0 ;
44917   PyObject *swig_obj[2] ;
44918   Xapian::TermIterator result;
44919 
44920   if (!SWIG_Python_UnpackTuple(args,"Database__termlist_begin",2,2,swig_obj)) SWIG_fail;
44921   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44922   if (!SWIG_IsOK(res1)) {
44923     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__termlist_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
44924   }
44925   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44926   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
44927   if (!SWIG_IsOK(ecode2)) {
44928     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database__termlist_begin" "', argument " "2"" of type '" "Xapian::docid""'");
44929   }
44930   arg2 = static_cast< Xapian::docid >(val2);
44931   {
44932     try {
44933       {
44934         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44935         result = ((Xapian::Database const *)arg1)->termlist_begin(arg2);
44936         SWIG_PYTHON_THREAD_END_ALLOW;
44937       }
44938     } catch (...) {
44939       Xapian::SetPythonException();
44940       SWIG_fail;
44941     }
44942   }
44943   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
44944   return resultobj;
44945 fail:
44946   return NULL;
44947 }
44948 
44949 
_wrap_Database__termlist_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44950 SWIGINTERN PyObject *_wrap_Database__termlist_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44951   PyObject *resultobj = 0;
44952   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44953   Xapian::docid arg2 ;
44954   void *argp1 = 0 ;
44955   int res1 = 0 ;
44956   unsigned int val2 ;
44957   int ecode2 = 0 ;
44958   PyObject *swig_obj[2] ;
44959   Xapian::TermIterator result;
44960 
44961   if (!SWIG_Python_UnpackTuple(args,"Database__termlist_end",2,2,swig_obj)) SWIG_fail;
44962   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44963   if (!SWIG_IsOK(res1)) {
44964     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__termlist_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
44965   }
44966   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44967   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
44968   if (!SWIG_IsOK(ecode2)) {
44969     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database__termlist_end" "', argument " "2"" of type '" "Xapian::docid""'");
44970   }
44971   arg2 = static_cast< Xapian::docid >(val2);
44972   {
44973     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
44974     result = ((Xapian::Database const *)arg1)->termlist_end(arg2);
44975     SWIG_PYTHON_THREAD_END_ALLOW;
44976   }
44977   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
44978   return resultobj;
44979 fail:
44980   return NULL;
44981 }
44982 
44983 
_wrap_Database_has_positions(PyObject * SWIGUNUSEDPARM (self),PyObject * args)44984 SWIGINTERN PyObject *_wrap_Database_has_positions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44985   PyObject *resultobj = 0;
44986   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
44987   void *argp1 = 0 ;
44988   int res1 = 0 ;
44989   PyObject *swig_obj[1] ;
44990   bool result;
44991 
44992   if (!args) SWIG_fail;
44993   swig_obj[0] = args;
44994   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
44995   if (!SWIG_IsOK(res1)) {
44996     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_has_positions" "', argument " "1"" of type '" "Xapian::Database const *""'");
44997   }
44998   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
44999   {
45000     try {
45001       {
45002         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45003         result = (bool)((Xapian::Database const *)arg1)->has_positions();
45004         SWIG_PYTHON_THREAD_END_ALLOW;
45005       }
45006     } catch (...) {
45007       Xapian::SetPythonException();
45008       SWIG_fail;
45009     }
45010   }
45011   resultobj = SWIG_From_bool(static_cast< bool >(result));
45012   return resultobj;
45013 fail:
45014   return NULL;
45015 }
45016 
45017 
_wrap_Database__positionlist_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45018 SWIGINTERN PyObject *_wrap_Database__positionlist_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45019   PyObject *resultobj = 0;
45020   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45021   Xapian::docid arg2 ;
45022   std::string *arg3 = 0 ;
45023   void *argp1 = 0 ;
45024   int res1 = 0 ;
45025   unsigned int val2 ;
45026   int ecode2 = 0 ;
45027   int res3 = SWIG_OLDOBJ ;
45028   PyObject *swig_obj[3] ;
45029   Xapian::PositionIterator result;
45030 
45031   if (!SWIG_Python_UnpackTuple(args,"Database__positionlist_begin",3,3,swig_obj)) SWIG_fail;
45032   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45033   if (!SWIG_IsOK(res1)) {
45034     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__positionlist_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
45035   }
45036   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45037   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45038   if (!SWIG_IsOK(ecode2)) {
45039     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database__positionlist_begin" "', argument " "2"" of type '" "Xapian::docid""'");
45040   }
45041   arg2 = static_cast< Xapian::docid >(val2);
45042   {
45043     std::string *ptr = (std::string *)0;
45044     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
45045     if (!SWIG_IsOK(res3)) {
45046       if (res3 == INT_MIN) SWIG_fail;
45047       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Database__positionlist_begin" "', argument " "3"" of type '" "std::string const &""'");
45048     }
45049     if (!ptr) {
45050       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__positionlist_begin" "', argument " "3"" of type '" "std::string const &""'");
45051     }
45052     arg3 = ptr;
45053   }
45054   {
45055     try {
45056       {
45057         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45058         result = ((Xapian::Database const *)arg1)->positionlist_begin(arg2,(std::string const &)*arg3);
45059         SWIG_PYTHON_THREAD_END_ALLOW;
45060       }
45061     } catch (...) {
45062       Xapian::SetPythonException();
45063       SWIG_fail;
45064     }
45065   }
45066   resultobj = SWIG_NewPointerObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_OWN |  0 );
45067   if (SWIG_IsNewObj(res3)) delete arg3;
45068   return resultobj;
45069 fail:
45070   if (SWIG_IsNewObj(res3)) delete arg3;
45071   return NULL;
45072 }
45073 
45074 
_wrap_Database__positionlist_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45075 SWIGINTERN PyObject *_wrap_Database__positionlist_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45076   PyObject *resultobj = 0;
45077   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45078   Xapian::docid arg2 ;
45079   std::string *arg3 = 0 ;
45080   void *argp1 = 0 ;
45081   int res1 = 0 ;
45082   unsigned int val2 ;
45083   int ecode2 = 0 ;
45084   int res3 = SWIG_OLDOBJ ;
45085   PyObject *swig_obj[3] ;
45086   Xapian::PositionIterator result;
45087 
45088   if (!SWIG_Python_UnpackTuple(args,"Database__positionlist_end",3,3,swig_obj)) SWIG_fail;
45089   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45090   if (!SWIG_IsOK(res1)) {
45091     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__positionlist_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
45092   }
45093   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45094   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45095   if (!SWIG_IsOK(ecode2)) {
45096     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database__positionlist_end" "', argument " "2"" of type '" "Xapian::docid""'");
45097   }
45098   arg2 = static_cast< Xapian::docid >(val2);
45099   {
45100     std::string *ptr = (std::string *)0;
45101     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
45102     if (!SWIG_IsOK(res3)) {
45103       if (res3 == INT_MIN) SWIG_fail;
45104       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Database__positionlist_end" "', argument " "3"" of type '" "std::string const &""'");
45105     }
45106     if (!ptr) {
45107       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__positionlist_end" "', argument " "3"" of type '" "std::string const &""'");
45108     }
45109     arg3 = ptr;
45110   }
45111   {
45112     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45113     result = ((Xapian::Database const *)arg1)->positionlist_end(arg2,(std::string const &)*arg3);
45114     SWIG_PYTHON_THREAD_END_ALLOW;
45115   }
45116   resultobj = SWIG_NewPointerObj((new Xapian::PositionIterator(static_cast< const Xapian::PositionIterator& >(result))), SWIGTYPE_p_Xapian__PositionIterator, SWIG_POINTER_OWN |  0 );
45117   if (SWIG_IsNewObj(res3)) delete arg3;
45118   return resultobj;
45119 fail:
45120   if (SWIG_IsNewObj(res3)) delete arg3;
45121   return NULL;
45122 }
45123 
45124 
_wrap_Database__allterms_begin__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)45125 SWIGINTERN PyObject *_wrap_Database__allterms_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
45126   PyObject *resultobj = 0;
45127   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45128   std::string *arg2 = 0 ;
45129   void *argp1 = 0 ;
45130   int res1 = 0 ;
45131   int res2 = SWIG_OLDOBJ ;
45132   Xapian::TermIterator result;
45133 
45134   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
45135   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45136   if (!SWIG_IsOK(res1)) {
45137     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__allterms_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
45138   }
45139   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45140   {
45141     std::string *ptr = (std::string *)0;
45142     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
45143     if (!SWIG_IsOK(res2)) {
45144       if (res2 == INT_MIN) SWIG_fail;
45145       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__allterms_begin" "', argument " "2"" of type '" "std::string const &""'");
45146     }
45147     if (!ptr) {
45148       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__allterms_begin" "', argument " "2"" of type '" "std::string const &""'");
45149     }
45150     arg2 = ptr;
45151   }
45152   {
45153     try {
45154       {
45155         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45156         result = ((Xapian::Database const *)arg1)->allterms_begin((std::string const &)*arg2);
45157         SWIG_PYTHON_THREAD_END_ALLOW;
45158       }
45159     } catch (...) {
45160       Xapian::SetPythonException();
45161       SWIG_fail;
45162     }
45163   }
45164   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
45165   if (SWIG_IsNewObj(res2)) delete arg2;
45166   return resultobj;
45167 fail:
45168   if (SWIG_IsNewObj(res2)) delete arg2;
45169   return NULL;
45170 }
45171 
45172 
_wrap_Database__allterms_begin__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)45173 SWIGINTERN PyObject *_wrap_Database__allterms_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
45174   PyObject *resultobj = 0;
45175   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45176   void *argp1 = 0 ;
45177   int res1 = 0 ;
45178   Xapian::TermIterator result;
45179 
45180   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
45181   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45182   if (!SWIG_IsOK(res1)) {
45183     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__allterms_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
45184   }
45185   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45186   {
45187     try {
45188       {
45189         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45190         result = ((Xapian::Database const *)arg1)->allterms_begin();
45191         SWIG_PYTHON_THREAD_END_ALLOW;
45192       }
45193     } catch (...) {
45194       Xapian::SetPythonException();
45195       SWIG_fail;
45196     }
45197   }
45198   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
45199   return resultobj;
45200 fail:
45201   return NULL;
45202 }
45203 
45204 
_wrap_Database__allterms_begin(PyObject * self,PyObject * args)45205 SWIGINTERN PyObject *_wrap_Database__allterms_begin(PyObject *self, PyObject *args) {
45206   Py_ssize_t argc;
45207   PyObject *argv[3] = {
45208     0
45209   };
45210 
45211   if (!(argc = SWIG_Python_UnpackTuple(args,"Database__allterms_begin",0,2,argv))) SWIG_fail;
45212   --argc;
45213   if (argc == 1) {
45214     return _wrap_Database__allterms_begin__SWIG_1(self, argc, argv);
45215   }
45216   if (argc == 2) {
45217     return _wrap_Database__allterms_begin__SWIG_0(self, argc, argv);
45218   }
45219 
45220 fail:
45221   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database__allterms_begin'.\n"
45222     "  Possible C/C++ prototypes are:\n"
45223     "    Xapian::Database::allterms_begin(std::string const &) const\n"
45224     "    Xapian::Database::allterms_begin() const\n");
45225   return 0;
45226 }
45227 
45228 
_wrap_Database__allterms_end__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)45229 SWIGINTERN PyObject *_wrap_Database__allterms_end__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
45230   PyObject *resultobj = 0;
45231   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45232   std::string *arg2 = 0 ;
45233   void *argp1 = 0 ;
45234   int res1 = 0 ;
45235   int res2 = SWIG_OLDOBJ ;
45236   Xapian::TermIterator result;
45237 
45238   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
45239   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45240   if (!SWIG_IsOK(res1)) {
45241     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__allterms_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
45242   }
45243   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45244   {
45245     std::string *ptr = (std::string *)0;
45246     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
45247     if (!SWIG_IsOK(res2)) {
45248       if (res2 == INT_MIN) SWIG_fail;
45249       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__allterms_end" "', argument " "2"" of type '" "std::string const &""'");
45250     }
45251     if (!ptr) {
45252       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__allterms_end" "', argument " "2"" of type '" "std::string const &""'");
45253     }
45254     arg2 = ptr;
45255   }
45256   {
45257     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45258     result = ((Xapian::Database const *)arg1)->allterms_end((std::string const &)*arg2);
45259     SWIG_PYTHON_THREAD_END_ALLOW;
45260   }
45261   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
45262   if (SWIG_IsNewObj(res2)) delete arg2;
45263   return resultobj;
45264 fail:
45265   if (SWIG_IsNewObj(res2)) delete arg2;
45266   return NULL;
45267 }
45268 
45269 
_wrap_Database__allterms_end__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)45270 SWIGINTERN PyObject *_wrap_Database__allterms_end__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
45271   PyObject *resultobj = 0;
45272   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45273   void *argp1 = 0 ;
45274   int res1 = 0 ;
45275   Xapian::TermIterator result;
45276 
45277   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
45278   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45279   if (!SWIG_IsOK(res1)) {
45280     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__allterms_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
45281   }
45282   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45283   {
45284     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45285     result = ((Xapian::Database const *)arg1)->allterms_end();
45286     SWIG_PYTHON_THREAD_END_ALLOW;
45287   }
45288   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
45289   return resultobj;
45290 fail:
45291   return NULL;
45292 }
45293 
45294 
_wrap_Database__allterms_end(PyObject * self,PyObject * args)45295 SWIGINTERN PyObject *_wrap_Database__allterms_end(PyObject *self, PyObject *args) {
45296   Py_ssize_t argc;
45297   PyObject *argv[3] = {
45298     0
45299   };
45300 
45301   if (!(argc = SWIG_Python_UnpackTuple(args,"Database__allterms_end",0,2,argv))) SWIG_fail;
45302   --argc;
45303   if (argc == 1) {
45304     return _wrap_Database__allterms_end__SWIG_1(self, argc, argv);
45305   }
45306   if (argc == 2) {
45307     return _wrap_Database__allterms_end__SWIG_0(self, argc, argv);
45308   }
45309 
45310 fail:
45311   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database__allterms_end'.\n"
45312     "  Possible C/C++ prototypes are:\n"
45313     "    Xapian::Database::allterms_end(std::string const &) const\n"
45314     "    Xapian::Database::allterms_end() const\n");
45315   return 0;
45316 }
45317 
45318 
_wrap_Database_get_doccount(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45319 SWIGINTERN PyObject *_wrap_Database_get_doccount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45320   PyObject *resultobj = 0;
45321   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45322   void *argp1 = 0 ;
45323   int res1 = 0 ;
45324   PyObject *swig_obj[1] ;
45325   Xapian::doccount result;
45326 
45327   if (!args) SWIG_fail;
45328   swig_obj[0] = args;
45329   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45330   if (!SWIG_IsOK(res1)) {
45331     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_doccount" "', argument " "1"" of type '" "Xapian::Database const *""'");
45332   }
45333   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45334   {
45335     try {
45336       {
45337         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45338         result = (Xapian::doccount)((Xapian::Database const *)arg1)->get_doccount();
45339         SWIG_PYTHON_THREAD_END_ALLOW;
45340       }
45341     } catch (...) {
45342       Xapian::SetPythonException();
45343       SWIG_fail;
45344     }
45345   }
45346   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45347   return resultobj;
45348 fail:
45349   return NULL;
45350 }
45351 
45352 
_wrap_Database_get_lastdocid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45353 SWIGINTERN PyObject *_wrap_Database_get_lastdocid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45354   PyObject *resultobj = 0;
45355   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45356   void *argp1 = 0 ;
45357   int res1 = 0 ;
45358   PyObject *swig_obj[1] ;
45359   Xapian::docid result;
45360 
45361   if (!args) SWIG_fail;
45362   swig_obj[0] = args;
45363   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45364   if (!SWIG_IsOK(res1)) {
45365     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_lastdocid" "', argument " "1"" of type '" "Xapian::Database const *""'");
45366   }
45367   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45368   {
45369     try {
45370       {
45371         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45372         result = (Xapian::docid)((Xapian::Database const *)arg1)->get_lastdocid();
45373         SWIG_PYTHON_THREAD_END_ALLOW;
45374       }
45375     } catch (...) {
45376       Xapian::SetPythonException();
45377       SWIG_fail;
45378     }
45379   }
45380   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45381   return resultobj;
45382 fail:
45383   return NULL;
45384 }
45385 
45386 
_wrap_Database_get_avlength(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45387 SWIGINTERN PyObject *_wrap_Database_get_avlength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45388   PyObject *resultobj = 0;
45389   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45390   void *argp1 = 0 ;
45391   int res1 = 0 ;
45392   PyObject *swig_obj[1] ;
45393   Xapian::doclength result;
45394 
45395   if (!args) SWIG_fail;
45396   swig_obj[0] = args;
45397   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45398   if (!SWIG_IsOK(res1)) {
45399     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_avlength" "', argument " "1"" of type '" "Xapian::Database const *""'");
45400   }
45401   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45402   {
45403     try {
45404       {
45405         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45406         result = (Xapian::doclength)((Xapian::Database const *)arg1)->get_avlength();
45407         SWIG_PYTHON_THREAD_END_ALLOW;
45408       }
45409     } catch (...) {
45410       Xapian::SetPythonException();
45411       SWIG_fail;
45412     }
45413   }
45414   resultobj = SWIG_From_double(static_cast< double >(result));
45415   return resultobj;
45416 fail:
45417   return NULL;
45418 }
45419 
45420 
_wrap_Database_get_average_length(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45421 SWIGINTERN PyObject *_wrap_Database_get_average_length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45422   PyObject *resultobj = 0;
45423   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45424   void *argp1 = 0 ;
45425   int res1 = 0 ;
45426   PyObject *swig_obj[1] ;
45427   double result;
45428 
45429   if (!args) SWIG_fail;
45430   swig_obj[0] = args;
45431   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45432   if (!SWIG_IsOK(res1)) {
45433     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_average_length" "', argument " "1"" of type '" "Xapian::Database const *""'");
45434   }
45435   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45436   {
45437     try {
45438       {
45439         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45440         result = (double)((Xapian::Database const *)arg1)->get_average_length();
45441         SWIG_PYTHON_THREAD_END_ALLOW;
45442       }
45443     } catch (...) {
45444       Xapian::SetPythonException();
45445       SWIG_fail;
45446     }
45447   }
45448   resultobj = SWIG_From_double(static_cast< double >(result));
45449   return resultobj;
45450 fail:
45451   return NULL;
45452 }
45453 
45454 
_wrap_Database_get_total_length(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45455 SWIGINTERN PyObject *_wrap_Database_get_total_length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45456   PyObject *resultobj = 0;
45457   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45458   void *argp1 = 0 ;
45459   int res1 = 0 ;
45460   PyObject *swig_obj[1] ;
45461   Xapian::totallength result;
45462 
45463   if (!args) SWIG_fail;
45464   swig_obj[0] = args;
45465   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45466   if (!SWIG_IsOK(res1)) {
45467     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_total_length" "', argument " "1"" of type '" "Xapian::Database const *""'");
45468   }
45469   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45470   {
45471     try {
45472       {
45473         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45474         result = (Xapian::totallength)((Xapian::Database const *)arg1)->get_total_length();
45475         SWIG_PYTHON_THREAD_END_ALLOW;
45476       }
45477     } catch (...) {
45478       Xapian::SetPythonException();
45479       SWIG_fail;
45480     }
45481   }
45482   resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
45483   return resultobj;
45484 fail:
45485   return NULL;
45486 }
45487 
45488 
_wrap_Database_get_termfreq(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45489 SWIGINTERN PyObject *_wrap_Database_get_termfreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45490   PyObject *resultobj = 0;
45491   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45492   std::string *arg2 = 0 ;
45493   void *argp1 = 0 ;
45494   int res1 = 0 ;
45495   int res2 = SWIG_OLDOBJ ;
45496   PyObject *swig_obj[2] ;
45497   Xapian::doccount result;
45498 
45499   if (!SWIG_Python_UnpackTuple(args,"Database_get_termfreq",2,2,swig_obj)) SWIG_fail;
45500   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45501   if (!SWIG_IsOK(res1)) {
45502     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_termfreq" "', argument " "1"" of type '" "Xapian::Database const *""'");
45503   }
45504   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45505   {
45506     std::string *ptr = (std::string *)0;
45507     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
45508     if (!SWIG_IsOK(res2)) {
45509       if (res2 == INT_MIN) SWIG_fail;
45510       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_get_termfreq" "', argument " "2"" of type '" "std::string const &""'");
45511     }
45512     if (!ptr) {
45513       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_get_termfreq" "', argument " "2"" of type '" "std::string const &""'");
45514     }
45515     arg2 = ptr;
45516   }
45517   {
45518     try {
45519       {
45520         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45521         result = (Xapian::doccount)((Xapian::Database const *)arg1)->get_termfreq((std::string const &)*arg2);
45522         SWIG_PYTHON_THREAD_END_ALLOW;
45523       }
45524     } catch (...) {
45525       Xapian::SetPythonException();
45526       SWIG_fail;
45527     }
45528   }
45529   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45530   if (SWIG_IsNewObj(res2)) delete arg2;
45531   return resultobj;
45532 fail:
45533   if (SWIG_IsNewObj(res2)) delete arg2;
45534   return NULL;
45535 }
45536 
45537 
_wrap_Database_term_exists(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45538 SWIGINTERN PyObject *_wrap_Database_term_exists(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45539   PyObject *resultobj = 0;
45540   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45541   std::string *arg2 = 0 ;
45542   void *argp1 = 0 ;
45543   int res1 = 0 ;
45544   int res2 = SWIG_OLDOBJ ;
45545   PyObject *swig_obj[2] ;
45546   bool result;
45547 
45548   if (!SWIG_Python_UnpackTuple(args,"Database_term_exists",2,2,swig_obj)) SWIG_fail;
45549   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45550   if (!SWIG_IsOK(res1)) {
45551     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_term_exists" "', argument " "1"" of type '" "Xapian::Database const *""'");
45552   }
45553   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45554   {
45555     std::string *ptr = (std::string *)0;
45556     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
45557     if (!SWIG_IsOK(res2)) {
45558       if (res2 == INT_MIN) SWIG_fail;
45559       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_term_exists" "', argument " "2"" of type '" "std::string const &""'");
45560     }
45561     if (!ptr) {
45562       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_term_exists" "', argument " "2"" of type '" "std::string const &""'");
45563     }
45564     arg2 = ptr;
45565   }
45566   {
45567     try {
45568       {
45569         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45570         result = (bool)((Xapian::Database const *)arg1)->term_exists((std::string const &)*arg2);
45571         SWIG_PYTHON_THREAD_END_ALLOW;
45572       }
45573     } catch (...) {
45574       Xapian::SetPythonException();
45575       SWIG_fail;
45576     }
45577   }
45578   resultobj = SWIG_From_bool(static_cast< bool >(result));
45579   if (SWIG_IsNewObj(res2)) delete arg2;
45580   return resultobj;
45581 fail:
45582   if (SWIG_IsNewObj(res2)) delete arg2;
45583   return NULL;
45584 }
45585 
45586 
_wrap_Database_get_collection_freq(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45587 SWIGINTERN PyObject *_wrap_Database_get_collection_freq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45588   PyObject *resultobj = 0;
45589   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45590   std::string *arg2 = 0 ;
45591   void *argp1 = 0 ;
45592   int res1 = 0 ;
45593   int res2 = SWIG_OLDOBJ ;
45594   PyObject *swig_obj[2] ;
45595   Xapian::termcount result;
45596 
45597   if (!SWIG_Python_UnpackTuple(args,"Database_get_collection_freq",2,2,swig_obj)) SWIG_fail;
45598   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45599   if (!SWIG_IsOK(res1)) {
45600     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_collection_freq" "', argument " "1"" of type '" "Xapian::Database const *""'");
45601   }
45602   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45603   {
45604     std::string *ptr = (std::string *)0;
45605     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
45606     if (!SWIG_IsOK(res2)) {
45607       if (res2 == INT_MIN) SWIG_fail;
45608       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_get_collection_freq" "', argument " "2"" of type '" "std::string const &""'");
45609     }
45610     if (!ptr) {
45611       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_get_collection_freq" "', argument " "2"" of type '" "std::string const &""'");
45612     }
45613     arg2 = ptr;
45614   }
45615   {
45616     try {
45617       {
45618         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45619         result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_collection_freq((std::string const &)*arg2);
45620         SWIG_PYTHON_THREAD_END_ALLOW;
45621       }
45622     } catch (...) {
45623       Xapian::SetPythonException();
45624       SWIG_fail;
45625     }
45626   }
45627   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45628   if (SWIG_IsNewObj(res2)) delete arg2;
45629   return resultobj;
45630 fail:
45631   if (SWIG_IsNewObj(res2)) delete arg2;
45632   return NULL;
45633 }
45634 
45635 
_wrap_Database_get_value_freq(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45636 SWIGINTERN PyObject *_wrap_Database_get_value_freq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45637   PyObject *resultobj = 0;
45638   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45639   Xapian::valueno arg2 ;
45640   void *argp1 = 0 ;
45641   int res1 = 0 ;
45642   unsigned int val2 ;
45643   int ecode2 = 0 ;
45644   PyObject *swig_obj[2] ;
45645   Xapian::doccount result;
45646 
45647   if (!SWIG_Python_UnpackTuple(args,"Database_get_value_freq",2,2,swig_obj)) SWIG_fail;
45648   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45649   if (!SWIG_IsOK(res1)) {
45650     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_value_freq" "', argument " "1"" of type '" "Xapian::Database const *""'");
45651   }
45652   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45653   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45654   if (!SWIG_IsOK(ecode2)) {
45655     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_value_freq" "', argument " "2"" of type '" "Xapian::valueno""'");
45656   }
45657   arg2 = static_cast< Xapian::valueno >(val2);
45658   {
45659     try {
45660       {
45661         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45662         result = (Xapian::doccount)((Xapian::Database const *)arg1)->get_value_freq(arg2);
45663         SWIG_PYTHON_THREAD_END_ALLOW;
45664       }
45665     } catch (...) {
45666       Xapian::SetPythonException();
45667       SWIG_fail;
45668     }
45669   }
45670   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45671   return resultobj;
45672 fail:
45673   return NULL;
45674 }
45675 
45676 
_wrap_Database_get_value_lower_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45677 SWIGINTERN PyObject *_wrap_Database_get_value_lower_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45678   PyObject *resultobj = 0;
45679   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45680   Xapian::valueno arg2 ;
45681   void *argp1 = 0 ;
45682   int res1 = 0 ;
45683   unsigned int val2 ;
45684   int ecode2 = 0 ;
45685   PyObject *swig_obj[2] ;
45686   std::string result;
45687 
45688   if (!SWIG_Python_UnpackTuple(args,"Database_get_value_lower_bound",2,2,swig_obj)) SWIG_fail;
45689   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45690   if (!SWIG_IsOK(res1)) {
45691     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_value_lower_bound" "', argument " "1"" of type '" "Xapian::Database const *""'");
45692   }
45693   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45694   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45695   if (!SWIG_IsOK(ecode2)) {
45696     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_value_lower_bound" "', argument " "2"" of type '" "Xapian::valueno""'");
45697   }
45698   arg2 = static_cast< Xapian::valueno >(val2);
45699   {
45700     try {
45701       {
45702         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45703         result = ((Xapian::Database const *)arg1)->get_value_lower_bound(arg2);
45704         SWIG_PYTHON_THREAD_END_ALLOW;
45705       }
45706     } catch (...) {
45707       Xapian::SetPythonException();
45708       SWIG_fail;
45709     }
45710   }
45711 
45712   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
45713 
45714   return resultobj;
45715 fail:
45716   return NULL;
45717 }
45718 
45719 
_wrap_Database_get_value_upper_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45720 SWIGINTERN PyObject *_wrap_Database_get_value_upper_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45721   PyObject *resultobj = 0;
45722   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45723   Xapian::valueno arg2 ;
45724   void *argp1 = 0 ;
45725   int res1 = 0 ;
45726   unsigned int val2 ;
45727   int ecode2 = 0 ;
45728   PyObject *swig_obj[2] ;
45729   std::string result;
45730 
45731   if (!SWIG_Python_UnpackTuple(args,"Database_get_value_upper_bound",2,2,swig_obj)) SWIG_fail;
45732   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45733   if (!SWIG_IsOK(res1)) {
45734     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_value_upper_bound" "', argument " "1"" of type '" "Xapian::Database const *""'");
45735   }
45736   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45737   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45738   if (!SWIG_IsOK(ecode2)) {
45739     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_value_upper_bound" "', argument " "2"" of type '" "Xapian::valueno""'");
45740   }
45741   arg2 = static_cast< Xapian::valueno >(val2);
45742   {
45743     try {
45744       {
45745         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45746         result = ((Xapian::Database const *)arg1)->get_value_upper_bound(arg2);
45747         SWIG_PYTHON_THREAD_END_ALLOW;
45748       }
45749     } catch (...) {
45750       Xapian::SetPythonException();
45751       SWIG_fail;
45752     }
45753   }
45754 
45755   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
45756 
45757   return resultobj;
45758 fail:
45759   return NULL;
45760 }
45761 
45762 
_wrap_Database_get_doclength_lower_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45763 SWIGINTERN PyObject *_wrap_Database_get_doclength_lower_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45764   PyObject *resultobj = 0;
45765   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45766   void *argp1 = 0 ;
45767   int res1 = 0 ;
45768   PyObject *swig_obj[1] ;
45769   Xapian::termcount result;
45770 
45771   if (!args) SWIG_fail;
45772   swig_obj[0] = args;
45773   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45774   if (!SWIG_IsOK(res1)) {
45775     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_doclength_lower_bound" "', argument " "1"" of type '" "Xapian::Database const *""'");
45776   }
45777   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45778   {
45779     try {
45780       {
45781         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45782         result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_doclength_lower_bound();
45783         SWIG_PYTHON_THREAD_END_ALLOW;
45784       }
45785     } catch (...) {
45786       Xapian::SetPythonException();
45787       SWIG_fail;
45788     }
45789   }
45790   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45791   return resultobj;
45792 fail:
45793   return NULL;
45794 }
45795 
45796 
_wrap_Database_get_doclength_upper_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45797 SWIGINTERN PyObject *_wrap_Database_get_doclength_upper_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45798   PyObject *resultobj = 0;
45799   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45800   void *argp1 = 0 ;
45801   int res1 = 0 ;
45802   PyObject *swig_obj[1] ;
45803   Xapian::termcount result;
45804 
45805   if (!args) SWIG_fail;
45806   swig_obj[0] = args;
45807   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45808   if (!SWIG_IsOK(res1)) {
45809     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_doclength_upper_bound" "', argument " "1"" of type '" "Xapian::Database const *""'");
45810   }
45811   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45812   {
45813     try {
45814       {
45815         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45816         result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_doclength_upper_bound();
45817         SWIG_PYTHON_THREAD_END_ALLOW;
45818       }
45819     } catch (...) {
45820       Xapian::SetPythonException();
45821       SWIG_fail;
45822     }
45823   }
45824   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45825   return resultobj;
45826 fail:
45827   return NULL;
45828 }
45829 
45830 
_wrap_Database_get_wdf_upper_bound(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45831 SWIGINTERN PyObject *_wrap_Database_get_wdf_upper_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45832   PyObject *resultobj = 0;
45833   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45834   std::string *arg2 = 0 ;
45835   void *argp1 = 0 ;
45836   int res1 = 0 ;
45837   int res2 = SWIG_OLDOBJ ;
45838   PyObject *swig_obj[2] ;
45839   Xapian::termcount result;
45840 
45841   if (!SWIG_Python_UnpackTuple(args,"Database_get_wdf_upper_bound",2,2,swig_obj)) SWIG_fail;
45842   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45843   if (!SWIG_IsOK(res1)) {
45844     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_wdf_upper_bound" "', argument " "1"" of type '" "Xapian::Database const *""'");
45845   }
45846   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45847   {
45848     std::string *ptr = (std::string *)0;
45849     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
45850     if (!SWIG_IsOK(res2)) {
45851       if (res2 == INT_MIN) SWIG_fail;
45852       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_get_wdf_upper_bound" "', argument " "2"" of type '" "std::string const &""'");
45853     }
45854     if (!ptr) {
45855       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_get_wdf_upper_bound" "', argument " "2"" of type '" "std::string const &""'");
45856     }
45857     arg2 = ptr;
45858   }
45859   {
45860     try {
45861       {
45862         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45863         result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_wdf_upper_bound((std::string const &)*arg2);
45864         SWIG_PYTHON_THREAD_END_ALLOW;
45865       }
45866     } catch (...) {
45867       Xapian::SetPythonException();
45868       SWIG_fail;
45869     }
45870   }
45871   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45872   if (SWIG_IsNewObj(res2)) delete arg2;
45873   return resultobj;
45874 fail:
45875   if (SWIG_IsNewObj(res2)) delete arg2;
45876   return NULL;
45877 }
45878 
45879 
_wrap_Database_valuestream_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45880 SWIGINTERN PyObject *_wrap_Database_valuestream_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45881   PyObject *resultobj = 0;
45882   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45883   Xapian::valueno arg2 ;
45884   void *argp1 = 0 ;
45885   int res1 = 0 ;
45886   unsigned int val2 ;
45887   int ecode2 = 0 ;
45888   PyObject *swig_obj[2] ;
45889   Xapian::ValueIterator result;
45890 
45891   if (!SWIG_Python_UnpackTuple(args,"Database_valuestream_begin",2,2,swig_obj)) SWIG_fail;
45892   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45893   if (!SWIG_IsOK(res1)) {
45894     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_valuestream_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
45895   }
45896   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45897   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45898   if (!SWIG_IsOK(ecode2)) {
45899     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_valuestream_begin" "', argument " "2"" of type '" "Xapian::valueno""'");
45900   }
45901   arg2 = static_cast< Xapian::valueno >(val2);
45902   {
45903     try {
45904       {
45905         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45906         result = ((Xapian::Database const *)arg1)->valuestream_begin(arg2);
45907         SWIG_PYTHON_THREAD_END_ALLOW;
45908       }
45909     } catch (...) {
45910       Xapian::SetPythonException();
45911       SWIG_fail;
45912     }
45913   }
45914   resultobj = SWIG_NewPointerObj((new Xapian::ValueIterator(static_cast< const Xapian::ValueIterator& >(result))), SWIGTYPE_p_Xapian__ValueIterator, SWIG_POINTER_OWN |  0 );
45915   return resultobj;
45916 fail:
45917   return NULL;
45918 }
45919 
45920 
_wrap_Database_valuestream_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45921 SWIGINTERN PyObject *_wrap_Database_valuestream_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45922   PyObject *resultobj = 0;
45923   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45924   Xapian::valueno arg2 ;
45925   void *argp1 = 0 ;
45926   int res1 = 0 ;
45927   unsigned int val2 ;
45928   int ecode2 = 0 ;
45929   PyObject *swig_obj[2] ;
45930   Xapian::ValueIterator result;
45931 
45932   if (!SWIG_Python_UnpackTuple(args,"Database_valuestream_end",2,2,swig_obj)) SWIG_fail;
45933   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45934   if (!SWIG_IsOK(res1)) {
45935     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_valuestream_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
45936   }
45937   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45938   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45939   if (!SWIG_IsOK(ecode2)) {
45940     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_valuestream_end" "', argument " "2"" of type '" "Xapian::valueno""'");
45941   }
45942   arg2 = static_cast< Xapian::valueno >(val2);
45943   {
45944     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45945     result = ((Xapian::Database const *)arg1)->valuestream_end(arg2);
45946     SWIG_PYTHON_THREAD_END_ALLOW;
45947   }
45948   resultobj = SWIG_NewPointerObj((new Xapian::ValueIterator(static_cast< const Xapian::ValueIterator& >(result))), SWIGTYPE_p_Xapian__ValueIterator, SWIG_POINTER_OWN |  0 );
45949   return resultobj;
45950 fail:
45951   return NULL;
45952 }
45953 
45954 
_wrap_Database_get_doclength(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45955 SWIGINTERN PyObject *_wrap_Database_get_doclength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45956   PyObject *resultobj = 0;
45957   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45958   Xapian::docid arg2 ;
45959   void *argp1 = 0 ;
45960   int res1 = 0 ;
45961   unsigned int val2 ;
45962   int ecode2 = 0 ;
45963   PyObject *swig_obj[2] ;
45964   Xapian::termcount result;
45965 
45966   if (!SWIG_Python_UnpackTuple(args,"Database_get_doclength",2,2,swig_obj)) SWIG_fail;
45967   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
45968   if (!SWIG_IsOK(res1)) {
45969     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_doclength" "', argument " "1"" of type '" "Xapian::Database const *""'");
45970   }
45971   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
45972   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
45973   if (!SWIG_IsOK(ecode2)) {
45974     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_doclength" "', argument " "2"" of type '" "Xapian::docid""'");
45975   }
45976   arg2 = static_cast< Xapian::docid >(val2);
45977   {
45978     try {
45979       {
45980         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
45981         result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_doclength(arg2);
45982         SWIG_PYTHON_THREAD_END_ALLOW;
45983       }
45984     } catch (...) {
45985       Xapian::SetPythonException();
45986       SWIG_fail;
45987     }
45988   }
45989   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45990   return resultobj;
45991 fail:
45992   return NULL;
45993 }
45994 
45995 
_wrap_Database_get_unique_terms(PyObject * SWIGUNUSEDPARM (self),PyObject * args)45996 SWIGINTERN PyObject *_wrap_Database_get_unique_terms(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45997   PyObject *resultobj = 0;
45998   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
45999   Xapian::docid arg2 ;
46000   void *argp1 = 0 ;
46001   int res1 = 0 ;
46002   unsigned int val2 ;
46003   int ecode2 = 0 ;
46004   PyObject *swig_obj[2] ;
46005   Xapian::termcount result;
46006 
46007   if (!SWIG_Python_UnpackTuple(args,"Database_get_unique_terms",2,2,swig_obj)) SWIG_fail;
46008   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46009   if (!SWIG_IsOK(res1)) {
46010     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_unique_terms" "', argument " "1"" of type '" "Xapian::Database const *""'");
46011   }
46012   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46013   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
46014   if (!SWIG_IsOK(ecode2)) {
46015     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_unique_terms" "', argument " "2"" of type '" "Xapian::docid""'");
46016   }
46017   arg2 = static_cast< Xapian::docid >(val2);
46018   {
46019     try {
46020       {
46021         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46022         result = (Xapian::termcount)((Xapian::Database const *)arg1)->get_unique_terms(arg2);
46023         SWIG_PYTHON_THREAD_END_ALLOW;
46024       }
46025     } catch (...) {
46026       Xapian::SetPythonException();
46027       SWIG_fail;
46028     }
46029   }
46030   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
46031   return resultobj;
46032 fail:
46033   return NULL;
46034 }
46035 
46036 
_wrap_Database_keep_alive(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46037 SWIGINTERN PyObject *_wrap_Database_keep_alive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46038   PyObject *resultobj = 0;
46039   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46040   void *argp1 = 0 ;
46041   int res1 = 0 ;
46042   PyObject *swig_obj[1] ;
46043 
46044   if (!args) SWIG_fail;
46045   swig_obj[0] = args;
46046   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46047   if (!SWIG_IsOK(res1)) {
46048     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_keep_alive" "', argument " "1"" of type '" "Xapian::Database *""'");
46049   }
46050   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46051   {
46052     try {
46053       {
46054         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46055         (arg1)->keep_alive();
46056         SWIG_PYTHON_THREAD_END_ALLOW;
46057       }
46058     } catch (...) {
46059       Xapian::SetPythonException();
46060       SWIG_fail;
46061     }
46062   }
46063   resultobj = SWIG_Py_Void();
46064   return resultobj;
46065 fail:
46066   return NULL;
46067 }
46068 
46069 
_wrap_Database_get_document__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46070 SWIGINTERN PyObject *_wrap_Database_get_document__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46071   PyObject *resultobj = 0;
46072   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46073   Xapian::docid arg2 ;
46074   void *argp1 = 0 ;
46075   int res1 = 0 ;
46076   unsigned int val2 ;
46077   int ecode2 = 0 ;
46078   Xapian::Document result;
46079 
46080   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
46081   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46082   if (!SWIG_IsOK(res1)) {
46083     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_document" "', argument " "1"" of type '" "Xapian::Database const *""'");
46084   }
46085   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46086   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
46087   if (!SWIG_IsOK(ecode2)) {
46088     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_document" "', argument " "2"" of type '" "Xapian::docid""'");
46089   }
46090   arg2 = static_cast< Xapian::docid >(val2);
46091   {
46092     try {
46093       {
46094         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46095         result = ((Xapian::Database const *)arg1)->get_document(arg2);
46096         SWIG_PYTHON_THREAD_END_ALLOW;
46097       }
46098     } catch (...) {
46099       Xapian::SetPythonException();
46100       SWIG_fail;
46101     }
46102   }
46103   resultobj = SWIG_NewPointerObj((new Xapian::Document(static_cast< const Xapian::Document& >(result))), SWIGTYPE_p_Xapian__Document, SWIG_POINTER_OWN |  0 );
46104   return resultobj;
46105 fail:
46106   return NULL;
46107 }
46108 
46109 
_wrap_Database_get_document__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46110 SWIGINTERN PyObject *_wrap_Database_get_document__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46111   PyObject *resultobj = 0;
46112   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46113   Xapian::docid arg2 ;
46114   unsigned int arg3 ;
46115   void *argp1 = 0 ;
46116   int res1 = 0 ;
46117   unsigned int val2 ;
46118   int ecode2 = 0 ;
46119   unsigned int val3 ;
46120   int ecode3 = 0 ;
46121   Xapian::Document result;
46122 
46123   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
46124   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46125   if (!SWIG_IsOK(res1)) {
46126     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_document" "', argument " "1"" of type '" "Xapian::Database const *""'");
46127   }
46128   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46129   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
46130   if (!SWIG_IsOK(ecode2)) {
46131     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_get_document" "', argument " "2"" of type '" "Xapian::docid""'");
46132   }
46133   arg2 = static_cast< Xapian::docid >(val2);
46134   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
46135   if (!SWIG_IsOK(ecode3)) {
46136     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_get_document" "', argument " "3"" of type '" "unsigned int""'");
46137   }
46138   arg3 = static_cast< unsigned int >(val3);
46139   {
46140     try {
46141       {
46142         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46143         result = ((Xapian::Database const *)arg1)->get_document(arg2,arg3);
46144         SWIG_PYTHON_THREAD_END_ALLOW;
46145       }
46146     } catch (...) {
46147       Xapian::SetPythonException();
46148       SWIG_fail;
46149     }
46150   }
46151   resultobj = SWIG_NewPointerObj((new Xapian::Document(static_cast< const Xapian::Document& >(result))), SWIGTYPE_p_Xapian__Document, SWIG_POINTER_OWN |  0 );
46152   return resultobj;
46153 fail:
46154   return NULL;
46155 }
46156 
46157 
_wrap_Database_get_document(PyObject * self,PyObject * args)46158 SWIGINTERN PyObject *_wrap_Database_get_document(PyObject *self, PyObject *args) {
46159   Py_ssize_t argc;
46160   PyObject *argv[4] = {
46161     0
46162   };
46163 
46164   if (!(argc = SWIG_Python_UnpackTuple(args,"Database_get_document",0,3,argv))) SWIG_fail;
46165   --argc;
46166   if (argc == 2) {
46167     return _wrap_Database_get_document__SWIG_0(self, argc, argv);
46168   }
46169   if (argc == 3) {
46170     return _wrap_Database_get_document__SWIG_1(self, argc, argv);
46171   }
46172 
46173 fail:
46174   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database_get_document'.\n"
46175     "  Possible C/C++ prototypes are:\n"
46176     "    Xapian::Database::get_document(Xapian::docid) const\n"
46177     "    Xapian::Database::get_document(Xapian::docid,unsigned int) const\n");
46178   return 0;
46179 }
46180 
46181 
_wrap_Database_get_spelling_suggestion__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46182 SWIGINTERN PyObject *_wrap_Database_get_spelling_suggestion__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46183   PyObject *resultobj = 0;
46184   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46185   std::string *arg2 = 0 ;
46186   unsigned int arg3 ;
46187   void *argp1 = 0 ;
46188   int res1 = 0 ;
46189   int res2 = SWIG_OLDOBJ ;
46190   unsigned int val3 ;
46191   int ecode3 = 0 ;
46192   std::string result;
46193 
46194   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
46195   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46196   if (!SWIG_IsOK(res1)) {
46197     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_spelling_suggestion" "', argument " "1"" of type '" "Xapian::Database const *""'");
46198   }
46199   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46200   {
46201     std::string *ptr = (std::string *)0;
46202     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
46203     if (!SWIG_IsOK(res2)) {
46204       if (res2 == INT_MIN) SWIG_fail;
46205       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_get_spelling_suggestion" "', argument " "2"" of type '" "std::string const &""'");
46206     }
46207     if (!ptr) {
46208       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_get_spelling_suggestion" "', argument " "2"" of type '" "std::string const &""'");
46209     }
46210     arg2 = ptr;
46211   }
46212   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
46213   if (!SWIG_IsOK(ecode3)) {
46214     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_get_spelling_suggestion" "', argument " "3"" of type '" "unsigned int""'");
46215   }
46216   arg3 = static_cast< unsigned int >(val3);
46217   {
46218     try {
46219       {
46220         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46221         result = ((Xapian::Database const *)arg1)->get_spelling_suggestion((std::string const &)*arg2,arg3);
46222         SWIG_PYTHON_THREAD_END_ALLOW;
46223       }
46224     } catch (...) {
46225       Xapian::SetPythonException();
46226       SWIG_fail;
46227     }
46228   }
46229 
46230   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
46231 
46232   if (SWIG_IsNewObj(res2)) delete arg2;
46233   return resultobj;
46234 fail:
46235   if (SWIG_IsNewObj(res2)) delete arg2;
46236   return NULL;
46237 }
46238 
46239 
_wrap_Database_get_spelling_suggestion__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46240 SWIGINTERN PyObject *_wrap_Database_get_spelling_suggestion__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46241   PyObject *resultobj = 0;
46242   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46243   std::string *arg2 = 0 ;
46244   void *argp1 = 0 ;
46245   int res1 = 0 ;
46246   int res2 = SWIG_OLDOBJ ;
46247   std::string result;
46248 
46249   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
46250   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46251   if (!SWIG_IsOK(res1)) {
46252     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_spelling_suggestion" "', argument " "1"" of type '" "Xapian::Database const *""'");
46253   }
46254   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46255   {
46256     std::string *ptr = (std::string *)0;
46257     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
46258     if (!SWIG_IsOK(res2)) {
46259       if (res2 == INT_MIN) SWIG_fail;
46260       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_get_spelling_suggestion" "', argument " "2"" of type '" "std::string const &""'");
46261     }
46262     if (!ptr) {
46263       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_get_spelling_suggestion" "', argument " "2"" of type '" "std::string const &""'");
46264     }
46265     arg2 = ptr;
46266   }
46267   {
46268     try {
46269       {
46270         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46271         result = ((Xapian::Database const *)arg1)->get_spelling_suggestion((std::string const &)*arg2);
46272         SWIG_PYTHON_THREAD_END_ALLOW;
46273       }
46274     } catch (...) {
46275       Xapian::SetPythonException();
46276       SWIG_fail;
46277     }
46278   }
46279 
46280   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
46281 
46282   if (SWIG_IsNewObj(res2)) delete arg2;
46283   return resultobj;
46284 fail:
46285   if (SWIG_IsNewObj(res2)) delete arg2;
46286   return NULL;
46287 }
46288 
46289 
_wrap_Database_get_spelling_suggestion(PyObject * self,PyObject * args)46290 SWIGINTERN PyObject *_wrap_Database_get_spelling_suggestion(PyObject *self, PyObject *args) {
46291   Py_ssize_t argc;
46292   PyObject *argv[4] = {
46293     0
46294   };
46295 
46296   if (!(argc = SWIG_Python_UnpackTuple(args,"Database_get_spelling_suggestion",0,3,argv))) SWIG_fail;
46297   --argc;
46298   if (argc == 2) {
46299     return _wrap_Database_get_spelling_suggestion__SWIG_1(self, argc, argv);
46300   }
46301   if (argc == 3) {
46302     return _wrap_Database_get_spelling_suggestion__SWIG_0(self, argc, argv);
46303   }
46304 
46305 fail:
46306   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database_get_spelling_suggestion'.\n"
46307     "  Possible C/C++ prototypes are:\n"
46308     "    Xapian::Database::get_spelling_suggestion(std::string const &,unsigned int) const\n"
46309     "    Xapian::Database::get_spelling_suggestion(std::string const &) const\n");
46310   return 0;
46311 }
46312 
46313 
_wrap_Database__spellings_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46314 SWIGINTERN PyObject *_wrap_Database__spellings_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46315   PyObject *resultobj = 0;
46316   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46317   void *argp1 = 0 ;
46318   int res1 = 0 ;
46319   PyObject *swig_obj[1] ;
46320   Xapian::TermIterator result;
46321 
46322   if (!args) SWIG_fail;
46323   swig_obj[0] = args;
46324   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46325   if (!SWIG_IsOK(res1)) {
46326     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__spellings_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
46327   }
46328   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46329   {
46330     try {
46331       {
46332         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46333         result = ((Xapian::Database const *)arg1)->spellings_begin();
46334         SWIG_PYTHON_THREAD_END_ALLOW;
46335       }
46336     } catch (...) {
46337       Xapian::SetPythonException();
46338       SWIG_fail;
46339     }
46340   }
46341   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46342   return resultobj;
46343 fail:
46344   return NULL;
46345 }
46346 
46347 
_wrap_Database__spellings_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46348 SWIGINTERN PyObject *_wrap_Database__spellings_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46349   PyObject *resultobj = 0;
46350   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46351   void *argp1 = 0 ;
46352   int res1 = 0 ;
46353   PyObject *swig_obj[1] ;
46354   Xapian::TermIterator result;
46355 
46356   if (!args) SWIG_fail;
46357   swig_obj[0] = args;
46358   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46359   if (!SWIG_IsOK(res1)) {
46360     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__spellings_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
46361   }
46362   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46363   {
46364     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46365     result = ((Xapian::Database const *)arg1)->spellings_end();
46366     SWIG_PYTHON_THREAD_END_ALLOW;
46367   }
46368   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46369   return resultobj;
46370 fail:
46371   return NULL;
46372 }
46373 
46374 
_wrap_Database__synonyms_begin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46375 SWIGINTERN PyObject *_wrap_Database__synonyms_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46376   PyObject *resultobj = 0;
46377   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46378   std::string *arg2 = 0 ;
46379   void *argp1 = 0 ;
46380   int res1 = 0 ;
46381   int res2 = SWIG_OLDOBJ ;
46382   PyObject *swig_obj[2] ;
46383   Xapian::TermIterator result;
46384 
46385   if (!SWIG_Python_UnpackTuple(args,"Database__synonyms_begin",2,2,swig_obj)) SWIG_fail;
46386   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46387   if (!SWIG_IsOK(res1)) {
46388     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__synonyms_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
46389   }
46390   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46391   {
46392     std::string *ptr = (std::string *)0;
46393     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
46394     if (!SWIG_IsOK(res2)) {
46395       if (res2 == INT_MIN) SWIG_fail;
46396       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__synonyms_begin" "', argument " "2"" of type '" "std::string const &""'");
46397     }
46398     if (!ptr) {
46399       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__synonyms_begin" "', argument " "2"" of type '" "std::string const &""'");
46400     }
46401     arg2 = ptr;
46402   }
46403   {
46404     try {
46405       {
46406         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46407         result = ((Xapian::Database const *)arg1)->synonyms_begin((std::string const &)*arg2);
46408         SWIG_PYTHON_THREAD_END_ALLOW;
46409       }
46410     } catch (...) {
46411       Xapian::SetPythonException();
46412       SWIG_fail;
46413     }
46414   }
46415   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46416   if (SWIG_IsNewObj(res2)) delete arg2;
46417   return resultobj;
46418 fail:
46419   if (SWIG_IsNewObj(res2)) delete arg2;
46420   return NULL;
46421 }
46422 
46423 
_wrap_Database__synonyms_end(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46424 SWIGINTERN PyObject *_wrap_Database__synonyms_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46425   PyObject *resultobj = 0;
46426   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46427   std::string *arg2 = 0 ;
46428   void *argp1 = 0 ;
46429   int res1 = 0 ;
46430   int res2 = SWIG_OLDOBJ ;
46431   PyObject *swig_obj[2] ;
46432   Xapian::TermIterator result;
46433 
46434   if (!SWIG_Python_UnpackTuple(args,"Database__synonyms_end",2,2,swig_obj)) SWIG_fail;
46435   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46436   if (!SWIG_IsOK(res1)) {
46437     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__synonyms_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
46438   }
46439   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46440   {
46441     std::string *ptr = (std::string *)0;
46442     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
46443     if (!SWIG_IsOK(res2)) {
46444       if (res2 == INT_MIN) SWIG_fail;
46445       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__synonyms_end" "', argument " "2"" of type '" "std::string const &""'");
46446     }
46447     if (!ptr) {
46448       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__synonyms_end" "', argument " "2"" of type '" "std::string const &""'");
46449     }
46450     arg2 = ptr;
46451   }
46452   {
46453     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46454     result = ((Xapian::Database const *)arg1)->synonyms_end((std::string const &)*arg2);
46455     SWIG_PYTHON_THREAD_END_ALLOW;
46456   }
46457   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46458   if (SWIG_IsNewObj(res2)) delete arg2;
46459   return resultobj;
46460 fail:
46461   if (SWIG_IsNewObj(res2)) delete arg2;
46462   return NULL;
46463 }
46464 
46465 
_wrap_Database__synonym_keys_begin__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46466 SWIGINTERN PyObject *_wrap_Database__synonym_keys_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46467   PyObject *resultobj = 0;
46468   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46469   std::string *arg2 = 0 ;
46470   void *argp1 = 0 ;
46471   int res1 = 0 ;
46472   int res2 = SWIG_OLDOBJ ;
46473   Xapian::TermIterator result;
46474 
46475   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
46476   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46477   if (!SWIG_IsOK(res1)) {
46478     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__synonym_keys_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
46479   }
46480   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46481   {
46482     std::string *ptr = (std::string *)0;
46483     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
46484     if (!SWIG_IsOK(res2)) {
46485       if (res2 == INT_MIN) SWIG_fail;
46486       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__synonym_keys_begin" "', argument " "2"" of type '" "std::string const &""'");
46487     }
46488     if (!ptr) {
46489       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__synonym_keys_begin" "', argument " "2"" of type '" "std::string const &""'");
46490     }
46491     arg2 = ptr;
46492   }
46493   {
46494     try {
46495       {
46496         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46497         result = ((Xapian::Database const *)arg1)->synonym_keys_begin((std::string const &)*arg2);
46498         SWIG_PYTHON_THREAD_END_ALLOW;
46499       }
46500     } catch (...) {
46501       Xapian::SetPythonException();
46502       SWIG_fail;
46503     }
46504   }
46505   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46506   if (SWIG_IsNewObj(res2)) delete arg2;
46507   return resultobj;
46508 fail:
46509   if (SWIG_IsNewObj(res2)) delete arg2;
46510   return NULL;
46511 }
46512 
46513 
_wrap_Database__synonym_keys_begin__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46514 SWIGINTERN PyObject *_wrap_Database__synonym_keys_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46515   PyObject *resultobj = 0;
46516   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46517   void *argp1 = 0 ;
46518   int res1 = 0 ;
46519   Xapian::TermIterator result;
46520 
46521   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
46522   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46523   if (!SWIG_IsOK(res1)) {
46524     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__synonym_keys_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
46525   }
46526   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46527   {
46528     try {
46529       {
46530         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46531         result = ((Xapian::Database const *)arg1)->synonym_keys_begin();
46532         SWIG_PYTHON_THREAD_END_ALLOW;
46533       }
46534     } catch (...) {
46535       Xapian::SetPythonException();
46536       SWIG_fail;
46537     }
46538   }
46539   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46540   return resultobj;
46541 fail:
46542   return NULL;
46543 }
46544 
46545 
_wrap_Database__synonym_keys_begin(PyObject * self,PyObject * args)46546 SWIGINTERN PyObject *_wrap_Database__synonym_keys_begin(PyObject *self, PyObject *args) {
46547   Py_ssize_t argc;
46548   PyObject *argv[3] = {
46549     0
46550   };
46551 
46552   if (!(argc = SWIG_Python_UnpackTuple(args,"Database__synonym_keys_begin",0,2,argv))) SWIG_fail;
46553   --argc;
46554   if (argc == 1) {
46555     return _wrap_Database__synonym_keys_begin__SWIG_1(self, argc, argv);
46556   }
46557   if (argc == 2) {
46558     return _wrap_Database__synonym_keys_begin__SWIG_0(self, argc, argv);
46559   }
46560 
46561 fail:
46562   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database__synonym_keys_begin'.\n"
46563     "  Possible C/C++ prototypes are:\n"
46564     "    Xapian::Database::synonym_keys_begin(std::string const &) const\n"
46565     "    Xapian::Database::synonym_keys_begin() const\n");
46566   return 0;
46567 }
46568 
46569 
_wrap_Database__synonym_keys_end__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46570 SWIGINTERN PyObject *_wrap_Database__synonym_keys_end__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46571   PyObject *resultobj = 0;
46572   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46573   std::string *arg2 = 0 ;
46574   void *argp1 = 0 ;
46575   int res1 = 0 ;
46576   int res2 = SWIG_OLDOBJ ;
46577   Xapian::TermIterator result;
46578 
46579   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
46580   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46581   if (!SWIG_IsOK(res1)) {
46582     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__synonym_keys_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
46583   }
46584   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46585   {
46586     std::string *ptr = (std::string *)0;
46587     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
46588     if (!SWIG_IsOK(res2)) {
46589       if (res2 == INT_MIN) SWIG_fail;
46590       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__synonym_keys_end" "', argument " "2"" of type '" "std::string const &""'");
46591     }
46592     if (!ptr) {
46593       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__synonym_keys_end" "', argument " "2"" of type '" "std::string const &""'");
46594     }
46595     arg2 = ptr;
46596   }
46597   {
46598     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46599     result = ((Xapian::Database const *)arg1)->synonym_keys_end((std::string const &)*arg2);
46600     SWIG_PYTHON_THREAD_END_ALLOW;
46601   }
46602   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46603   if (SWIG_IsNewObj(res2)) delete arg2;
46604   return resultobj;
46605 fail:
46606   if (SWIG_IsNewObj(res2)) delete arg2;
46607   return NULL;
46608 }
46609 
46610 
_wrap_Database__synonym_keys_end__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46611 SWIGINTERN PyObject *_wrap_Database__synonym_keys_end__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46612   PyObject *resultobj = 0;
46613   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46614   void *argp1 = 0 ;
46615   int res1 = 0 ;
46616   Xapian::TermIterator result;
46617 
46618   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
46619   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46620   if (!SWIG_IsOK(res1)) {
46621     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__synonym_keys_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
46622   }
46623   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46624   {
46625     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46626     result = ((Xapian::Database const *)arg1)->synonym_keys_end();
46627     SWIG_PYTHON_THREAD_END_ALLOW;
46628   }
46629   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46630   return resultobj;
46631 fail:
46632   return NULL;
46633 }
46634 
46635 
_wrap_Database__synonym_keys_end(PyObject * self,PyObject * args)46636 SWIGINTERN PyObject *_wrap_Database__synonym_keys_end(PyObject *self, PyObject *args) {
46637   Py_ssize_t argc;
46638   PyObject *argv[3] = {
46639     0
46640   };
46641 
46642   if (!(argc = SWIG_Python_UnpackTuple(args,"Database__synonym_keys_end",0,2,argv))) SWIG_fail;
46643   --argc;
46644   if (argc == 1) {
46645     return _wrap_Database__synonym_keys_end__SWIG_1(self, argc, argv);
46646   }
46647   if (argc == 2) {
46648     return _wrap_Database__synonym_keys_end__SWIG_0(self, argc, argv);
46649   }
46650 
46651 fail:
46652   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database__synonym_keys_end'.\n"
46653     "  Possible C/C++ prototypes are:\n"
46654     "    Xapian::Database::synonym_keys_end(std::string const &) const\n"
46655     "    Xapian::Database::synonym_keys_end() const\n");
46656   return 0;
46657 }
46658 
46659 
_wrap_Database_get_metadata(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46660 SWIGINTERN PyObject *_wrap_Database_get_metadata(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46661   PyObject *resultobj = 0;
46662   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46663   std::string *arg2 = 0 ;
46664   void *argp1 = 0 ;
46665   int res1 = 0 ;
46666   int res2 = SWIG_OLDOBJ ;
46667   PyObject *swig_obj[2] ;
46668   std::string result;
46669 
46670   if (!SWIG_Python_UnpackTuple(args,"Database_get_metadata",2,2,swig_obj)) SWIG_fail;
46671   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46672   if (!SWIG_IsOK(res1)) {
46673     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_metadata" "', argument " "1"" of type '" "Xapian::Database const *""'");
46674   }
46675   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46676   {
46677     std::string *ptr = (std::string *)0;
46678     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
46679     if (!SWIG_IsOK(res2)) {
46680       if (res2 == INT_MIN) SWIG_fail;
46681       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_get_metadata" "', argument " "2"" of type '" "std::string const &""'");
46682     }
46683     if (!ptr) {
46684       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_get_metadata" "', argument " "2"" of type '" "std::string const &""'");
46685     }
46686     arg2 = ptr;
46687   }
46688   {
46689     try {
46690       {
46691         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46692         result = ((Xapian::Database const *)arg1)->get_metadata((std::string const &)*arg2);
46693         SWIG_PYTHON_THREAD_END_ALLOW;
46694       }
46695     } catch (...) {
46696       Xapian::SetPythonException();
46697       SWIG_fail;
46698     }
46699   }
46700 
46701   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
46702 
46703   if (SWIG_IsNewObj(res2)) delete arg2;
46704   return resultobj;
46705 fail:
46706   if (SWIG_IsNewObj(res2)) delete arg2;
46707   return NULL;
46708 }
46709 
46710 
_wrap_Database__metadata_keys_begin__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46711 SWIGINTERN PyObject *_wrap_Database__metadata_keys_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46712   PyObject *resultobj = 0;
46713   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46714   std::string *arg2 = 0 ;
46715   void *argp1 = 0 ;
46716   int res1 = 0 ;
46717   int res2 = SWIG_OLDOBJ ;
46718   Xapian::TermIterator result;
46719 
46720   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
46721   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46722   if (!SWIG_IsOK(res1)) {
46723     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__metadata_keys_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
46724   }
46725   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46726   {
46727     std::string *ptr = (std::string *)0;
46728     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
46729     if (!SWIG_IsOK(res2)) {
46730       if (res2 == INT_MIN) SWIG_fail;
46731       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__metadata_keys_begin" "', argument " "2"" of type '" "std::string const &""'");
46732     }
46733     if (!ptr) {
46734       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__metadata_keys_begin" "', argument " "2"" of type '" "std::string const &""'");
46735     }
46736     arg2 = ptr;
46737   }
46738   {
46739     try {
46740       {
46741         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46742         result = ((Xapian::Database const *)arg1)->metadata_keys_begin((std::string const &)*arg2);
46743         SWIG_PYTHON_THREAD_END_ALLOW;
46744       }
46745     } catch (...) {
46746       Xapian::SetPythonException();
46747       SWIG_fail;
46748     }
46749   }
46750   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46751   if (SWIG_IsNewObj(res2)) delete arg2;
46752   return resultobj;
46753 fail:
46754   if (SWIG_IsNewObj(res2)) delete arg2;
46755   return NULL;
46756 }
46757 
46758 
_wrap_Database__metadata_keys_begin__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46759 SWIGINTERN PyObject *_wrap_Database__metadata_keys_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46760   PyObject *resultobj = 0;
46761   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46762   void *argp1 = 0 ;
46763   int res1 = 0 ;
46764   Xapian::TermIterator result;
46765 
46766   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
46767   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46768   if (!SWIG_IsOK(res1)) {
46769     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__metadata_keys_begin" "', argument " "1"" of type '" "Xapian::Database const *""'");
46770   }
46771   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46772   {
46773     try {
46774       {
46775         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46776         result = ((Xapian::Database const *)arg1)->metadata_keys_begin();
46777         SWIG_PYTHON_THREAD_END_ALLOW;
46778       }
46779     } catch (...) {
46780       Xapian::SetPythonException();
46781       SWIG_fail;
46782     }
46783   }
46784   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46785   return resultobj;
46786 fail:
46787   return NULL;
46788 }
46789 
46790 
_wrap_Database__metadata_keys_begin(PyObject * self,PyObject * args)46791 SWIGINTERN PyObject *_wrap_Database__metadata_keys_begin(PyObject *self, PyObject *args) {
46792   Py_ssize_t argc;
46793   PyObject *argv[3] = {
46794     0
46795   };
46796 
46797   if (!(argc = SWIG_Python_UnpackTuple(args,"Database__metadata_keys_begin",0,2,argv))) SWIG_fail;
46798   --argc;
46799   if (argc == 1) {
46800     return _wrap_Database__metadata_keys_begin__SWIG_1(self, argc, argv);
46801   }
46802   if (argc == 2) {
46803     return _wrap_Database__metadata_keys_begin__SWIG_0(self, argc, argv);
46804   }
46805 
46806 fail:
46807   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database__metadata_keys_begin'.\n"
46808     "  Possible C/C++ prototypes are:\n"
46809     "    Xapian::Database::metadata_keys_begin(std::string const &) const\n"
46810     "    Xapian::Database::metadata_keys_begin() const\n");
46811   return 0;
46812 }
46813 
46814 
_wrap_Database__metadata_keys_end__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46815 SWIGINTERN PyObject *_wrap_Database__metadata_keys_end__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46816   PyObject *resultobj = 0;
46817   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46818   std::string *arg2 = 0 ;
46819   void *argp1 = 0 ;
46820   int res1 = 0 ;
46821   int res2 = SWIG_OLDOBJ ;
46822   Xapian::TermIterator result;
46823 
46824   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
46825   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46826   if (!SWIG_IsOK(res1)) {
46827     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__metadata_keys_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
46828   }
46829   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46830   {
46831     std::string *ptr = (std::string *)0;
46832     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
46833     if (!SWIG_IsOK(res2)) {
46834       if (res2 == INT_MIN) SWIG_fail;
46835       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database__metadata_keys_end" "', argument " "2"" of type '" "std::string const &""'");
46836     }
46837     if (!ptr) {
46838       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database__metadata_keys_end" "', argument " "2"" of type '" "std::string const &""'");
46839     }
46840     arg2 = ptr;
46841   }
46842   {
46843     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46844     result = ((Xapian::Database const *)arg1)->metadata_keys_end((std::string const &)*arg2);
46845     SWIG_PYTHON_THREAD_END_ALLOW;
46846   }
46847   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46848   if (SWIG_IsNewObj(res2)) delete arg2;
46849   return resultobj;
46850 fail:
46851   if (SWIG_IsNewObj(res2)) delete arg2;
46852   return NULL;
46853 }
46854 
46855 
_wrap_Database__metadata_keys_end__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)46856 SWIGINTERN PyObject *_wrap_Database__metadata_keys_end__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
46857   PyObject *resultobj = 0;
46858   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46859   void *argp1 = 0 ;
46860   int res1 = 0 ;
46861   Xapian::TermIterator result;
46862 
46863   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
46864   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46865   if (!SWIG_IsOK(res1)) {
46866     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database__metadata_keys_end" "', argument " "1"" of type '" "Xapian::Database const *""'");
46867   }
46868   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46869   {
46870     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46871     result = ((Xapian::Database const *)arg1)->metadata_keys_end();
46872     SWIG_PYTHON_THREAD_END_ALLOW;
46873   }
46874   resultobj = SWIG_NewPointerObj((new Xapian::TermIterator(static_cast< const Xapian::TermIterator& >(result))), SWIGTYPE_p_Xapian__TermIterator, SWIG_POINTER_OWN |  0 );
46875   return resultobj;
46876 fail:
46877   return NULL;
46878 }
46879 
46880 
_wrap_Database__metadata_keys_end(PyObject * self,PyObject * args)46881 SWIGINTERN PyObject *_wrap_Database__metadata_keys_end(PyObject *self, PyObject *args) {
46882   Py_ssize_t argc;
46883   PyObject *argv[3] = {
46884     0
46885   };
46886 
46887   if (!(argc = SWIG_Python_UnpackTuple(args,"Database__metadata_keys_end",0,2,argv))) SWIG_fail;
46888   --argc;
46889   if (argc == 1) {
46890     return _wrap_Database__metadata_keys_end__SWIG_1(self, argc, argv);
46891   }
46892   if (argc == 2) {
46893     return _wrap_Database__metadata_keys_end__SWIG_0(self, argc, argv);
46894   }
46895 
46896 fail:
46897   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database__metadata_keys_end'.\n"
46898     "  Possible C/C++ prototypes are:\n"
46899     "    Xapian::Database::metadata_keys_end(std::string const &) const\n"
46900     "    Xapian::Database::metadata_keys_end() const\n");
46901   return 0;
46902 }
46903 
46904 
_wrap_Database_get_uuid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46905 SWIGINTERN PyObject *_wrap_Database_get_uuid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46906   PyObject *resultobj = 0;
46907   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46908   void *argp1 = 0 ;
46909   int res1 = 0 ;
46910   PyObject *swig_obj[1] ;
46911   std::string result;
46912 
46913   if (!args) SWIG_fail;
46914   swig_obj[0] = args;
46915   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46916   if (!SWIG_IsOK(res1)) {
46917     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_uuid" "', argument " "1"" of type '" "Xapian::Database const *""'");
46918   }
46919   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46920   {
46921     try {
46922       {
46923         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46924         result = ((Xapian::Database const *)arg1)->get_uuid();
46925         SWIG_PYTHON_THREAD_END_ALLOW;
46926       }
46927     } catch (...) {
46928       Xapian::SetPythonException();
46929       SWIG_fail;
46930     }
46931   }
46932 
46933   resultobj = PyBytes_FromStringAndSize((&result)->data(), (&result)->size());
46934 
46935   return resultobj;
46936 fail:
46937   return NULL;
46938 }
46939 
46940 
_wrap_Database_locked(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46941 SWIGINTERN PyObject *_wrap_Database_locked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46942   PyObject *resultobj = 0;
46943   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46944   void *argp1 = 0 ;
46945   int res1 = 0 ;
46946   PyObject *swig_obj[1] ;
46947   bool result;
46948 
46949   if (!args) SWIG_fail;
46950   swig_obj[0] = args;
46951   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46952   if (!SWIG_IsOK(res1)) {
46953     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_locked" "', argument " "1"" of type '" "Xapian::Database const *""'");
46954   }
46955   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46956   {
46957     try {
46958       {
46959         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46960         result = (bool)((Xapian::Database const *)arg1)->locked();
46961         SWIG_PYTHON_THREAD_END_ALLOW;
46962       }
46963     } catch (...) {
46964       Xapian::SetPythonException();
46965       SWIG_fail;
46966     }
46967   }
46968   resultobj = SWIG_From_bool(static_cast< bool >(result));
46969   return resultobj;
46970 fail:
46971   return NULL;
46972 }
46973 
46974 
_wrap_Database_get_revision(PyObject * SWIGUNUSEDPARM (self),PyObject * args)46975 SWIGINTERN PyObject *_wrap_Database_get_revision(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46976   PyObject *resultobj = 0;
46977   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
46978   void *argp1 = 0 ;
46979   int res1 = 0 ;
46980   PyObject *swig_obj[1] ;
46981   Xapian::rev result;
46982 
46983   if (!args) SWIG_fail;
46984   swig_obj[0] = args;
46985   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
46986   if (!SWIG_IsOK(res1)) {
46987     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_get_revision" "', argument " "1"" of type '" "Xapian::Database const *""'");
46988   }
46989   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
46990   {
46991     try {
46992       {
46993         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
46994         result = (Xapian::rev)((Xapian::Database const *)arg1)->get_revision();
46995         SWIG_PYTHON_THREAD_END_ALLOW;
46996       }
46997     } catch (...) {
46998       Xapian::SetPythonException();
46999       SWIG_fail;
47000     }
47001   }
47002   resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
47003   return resultobj;
47004 fail:
47005   return NULL;
47006 }
47007 
47008 
_wrap_Database_check__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47009 SWIGINTERN PyObject *_wrap_Database_check__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47010   PyObject *resultobj = 0;
47011   std::string *arg1 = 0 ;
47012   int arg2 ;
47013   int res1 = SWIG_OLDOBJ ;
47014   int val2 ;
47015   int ecode2 = 0 ;
47016   size_t result;
47017 
47018   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
47019   {
47020     std::string *ptr = (std::string *)0;
47021     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
47022     if (!SWIG_IsOK(res1)) {
47023       if (res1 == INT_MIN) SWIG_fail;
47024       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_check" "', argument " "1"" of type '" "std::string const &""'");
47025     }
47026     if (!ptr) {
47027       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_check" "', argument " "1"" of type '" "std::string const &""'");
47028     }
47029     arg1 = ptr;
47030   }
47031   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
47032   if (!SWIG_IsOK(ecode2)) {
47033     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_check" "', argument " "2"" of type '" "int""'");
47034   }
47035   arg2 = static_cast< int >(val2);
47036   {
47037     try {
47038       {
47039         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47040         result = Xapian::Database::check((std::string const &)*arg1,arg2);
47041         SWIG_PYTHON_THREAD_END_ALLOW;
47042       }
47043     } catch (...) {
47044       Xapian::SetPythonException();
47045       SWIG_fail;
47046     }
47047   }
47048   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
47049   if (SWIG_IsNewObj(res1)) delete arg1;
47050   return resultobj;
47051 fail:
47052   if (SWIG_IsNewObj(res1)) delete arg1;
47053   return NULL;
47054 }
47055 
47056 
_wrap_Database_check__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47057 SWIGINTERN PyObject *_wrap_Database_check__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47058   PyObject *resultobj = 0;
47059   std::string *arg1 = 0 ;
47060   int res1 = SWIG_OLDOBJ ;
47061   size_t result;
47062 
47063   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
47064   {
47065     std::string *ptr = (std::string *)0;
47066     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
47067     if (!SWIG_IsOK(res1)) {
47068       if (res1 == INT_MIN) SWIG_fail;
47069       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_check" "', argument " "1"" of type '" "std::string const &""'");
47070     }
47071     if (!ptr) {
47072       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_check" "', argument " "1"" of type '" "std::string const &""'");
47073     }
47074     arg1 = ptr;
47075   }
47076   {
47077     try {
47078       {
47079         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47080         result = Xapian::Database::check((std::string const &)*arg1);
47081         SWIG_PYTHON_THREAD_END_ALLOW;
47082       }
47083     } catch (...) {
47084       Xapian::SetPythonException();
47085       SWIG_fail;
47086     }
47087   }
47088   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
47089   if (SWIG_IsNewObj(res1)) delete arg1;
47090   return resultobj;
47091 fail:
47092   if (SWIG_IsNewObj(res1)) delete arg1;
47093   return NULL;
47094 }
47095 
47096 
_wrap_Database_check__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47097 SWIGINTERN PyObject *_wrap_Database_check__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47098   PyObject *resultobj = 0;
47099   int arg1 ;
47100   int arg2 ;
47101   int val1 ;
47102   int ecode1 = 0 ;
47103   int val2 ;
47104   int ecode2 = 0 ;
47105   size_t result;
47106 
47107   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
47108   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
47109   if (!SWIG_IsOK(ecode1)) {
47110     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Database_check" "', argument " "1"" of type '" "int""'");
47111   }
47112   arg1 = static_cast< int >(val1);
47113   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
47114   if (!SWIG_IsOK(ecode2)) {
47115     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_check" "', argument " "2"" of type '" "int""'");
47116   }
47117   arg2 = static_cast< int >(val2);
47118   {
47119     try {
47120       {
47121         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47122         result = Xapian::Database::check(arg1,arg2);
47123         SWIG_PYTHON_THREAD_END_ALLOW;
47124       }
47125     } catch (...) {
47126       Xapian::SetPythonException();
47127       SWIG_fail;
47128     }
47129   }
47130   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
47131   return resultobj;
47132 fail:
47133   return NULL;
47134 }
47135 
47136 
_wrap_Database_check__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47137 SWIGINTERN PyObject *_wrap_Database_check__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47138   PyObject *resultobj = 0;
47139   int arg1 ;
47140   int val1 ;
47141   int ecode1 = 0 ;
47142   size_t result;
47143 
47144   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
47145   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
47146   if (!SWIG_IsOK(ecode1)) {
47147     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Database_check" "', argument " "1"" of type '" "int""'");
47148   }
47149   arg1 = static_cast< int >(val1);
47150   {
47151     try {
47152       {
47153         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47154         result = Xapian::Database::check(arg1);
47155         SWIG_PYTHON_THREAD_END_ALLOW;
47156       }
47157     } catch (...) {
47158       Xapian::SetPythonException();
47159       SWIG_fail;
47160     }
47161   }
47162   resultobj = SWIG_From_size_t(static_cast< size_t >(result));
47163   return resultobj;
47164 fail:
47165   return NULL;
47166 }
47167 
47168 
_wrap_Database_check(PyObject * self,PyObject * args)47169 SWIGINTERN PyObject *_wrap_Database_check(PyObject *self, PyObject *args) {
47170   Py_ssize_t argc;
47171   PyObject *argv[3] = {
47172     0
47173   };
47174 
47175   if (!(argc = SWIG_Python_UnpackTuple(args,"Database_check",0,2,argv))) SWIG_fail;
47176   --argc;
47177   if (argc == 1) {
47178     int _v = 0;
47179     {
47180       {
47181         int res = SWIG_AsVal_int(argv[0], NULL);
47182         _v = SWIG_CheckState(res);
47183       }
47184     }
47185     if (!_v) goto check_1;
47186     return _wrap_Database_check__SWIG_3(self, argc, argv);
47187   }
47188 check_1:
47189 
47190   if (argc == 1) {
47191     return _wrap_Database_check__SWIG_1(self, argc, argv);
47192   }
47193   if (argc == 2) {
47194     int _v = 0;
47195     {
47196       {
47197         int res = SWIG_AsVal_int(argv[0], NULL);
47198         _v = SWIG_CheckState(res);
47199       }
47200     }
47201     if (!_v) goto check_3;
47202     return _wrap_Database_check__SWIG_2(self, argc, argv);
47203   }
47204 check_3:
47205 
47206   if (argc == 2) {
47207     return _wrap_Database_check__SWIG_0(self, argc, argv);
47208   }
47209 
47210 fail:
47211   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database_check'.\n"
47212     "  Possible C/C++ prototypes are:\n"
47213     "    Xapian::Database::check(std::string const &,int)\n"
47214     "    Xapian::Database::check(std::string const &)\n"
47215     "    Xapian::Database::check(int,int)\n"
47216     "    Xapian::Database::check(int)\n");
47217   return 0;
47218 }
47219 
47220 
_wrap_Database_compact__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47221 SWIGINTERN PyObject *_wrap_Database_compact__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47222   PyObject *resultobj = 0;
47223   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
47224   std::string *arg2 = 0 ;
47225   unsigned int arg3 ;
47226   int arg4 ;
47227   void *argp1 = 0 ;
47228   int res1 = 0 ;
47229   int res2 = SWIG_OLDOBJ ;
47230   unsigned int val3 ;
47231   int ecode3 = 0 ;
47232   int val4 ;
47233   int ecode4 = 0 ;
47234 
47235   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
47236   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
47237   if (!SWIG_IsOK(res1)) {
47238     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
47239   }
47240   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
47241   {
47242     std::string *ptr = (std::string *)0;
47243     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
47244     if (!SWIG_IsOK(res2)) {
47245       if (res2 == INT_MIN) SWIG_fail;
47246       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
47247     }
47248     if (!ptr) {
47249       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
47250     }
47251     arg2 = ptr;
47252   }
47253   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
47254   if (!SWIG_IsOK(ecode3)) {
47255     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_compact" "', argument " "3"" of type '" "unsigned int""'");
47256   }
47257   arg3 = static_cast< unsigned int >(val3);
47258   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
47259   if (!SWIG_IsOK(ecode4)) {
47260     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Database_compact" "', argument " "4"" of type '" "int""'");
47261   }
47262   arg4 = static_cast< int >(val4);
47263   {
47264     try {
47265       {
47266         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47267         (arg1)->compact((std::string const &)*arg2,arg3,arg4);
47268         SWIG_PYTHON_THREAD_END_ALLOW;
47269       }
47270     } catch (...) {
47271       Xapian::SetPythonException();
47272       SWIG_fail;
47273     }
47274   }
47275   resultobj = SWIG_Py_Void();
47276   if (SWIG_IsNewObj(res2)) delete arg2;
47277   return resultobj;
47278 fail:
47279   if (SWIG_IsNewObj(res2)) delete arg2;
47280   return NULL;
47281 }
47282 
47283 
_wrap_Database_compact__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47284 SWIGINTERN PyObject *_wrap_Database_compact__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47285   PyObject *resultobj = 0;
47286   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
47287   std::string *arg2 = 0 ;
47288   unsigned int arg3 ;
47289   void *argp1 = 0 ;
47290   int res1 = 0 ;
47291   int res2 = SWIG_OLDOBJ ;
47292   unsigned int val3 ;
47293   int ecode3 = 0 ;
47294 
47295   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
47296   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
47297   if (!SWIG_IsOK(res1)) {
47298     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
47299   }
47300   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
47301   {
47302     std::string *ptr = (std::string *)0;
47303     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
47304     if (!SWIG_IsOK(res2)) {
47305       if (res2 == INT_MIN) SWIG_fail;
47306       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
47307     }
47308     if (!ptr) {
47309       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
47310     }
47311     arg2 = ptr;
47312   }
47313   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
47314   if (!SWIG_IsOK(ecode3)) {
47315     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_compact" "', argument " "3"" of type '" "unsigned int""'");
47316   }
47317   arg3 = static_cast< unsigned int >(val3);
47318   {
47319     try {
47320       {
47321         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47322         (arg1)->compact((std::string const &)*arg2,arg3);
47323         SWIG_PYTHON_THREAD_END_ALLOW;
47324       }
47325     } catch (...) {
47326       Xapian::SetPythonException();
47327       SWIG_fail;
47328     }
47329   }
47330   resultobj = SWIG_Py_Void();
47331   if (SWIG_IsNewObj(res2)) delete arg2;
47332   return resultobj;
47333 fail:
47334   if (SWIG_IsNewObj(res2)) delete arg2;
47335   return NULL;
47336 }
47337 
47338 
_wrap_Database_compact__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47339 SWIGINTERN PyObject *_wrap_Database_compact__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47340   PyObject *resultobj = 0;
47341   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
47342   std::string *arg2 = 0 ;
47343   void *argp1 = 0 ;
47344   int res1 = 0 ;
47345   int res2 = SWIG_OLDOBJ ;
47346 
47347   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
47348   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
47349   if (!SWIG_IsOK(res1)) {
47350     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
47351   }
47352   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
47353   {
47354     std::string *ptr = (std::string *)0;
47355     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
47356     if (!SWIG_IsOK(res2)) {
47357       if (res2 == INT_MIN) SWIG_fail;
47358       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
47359     }
47360     if (!ptr) {
47361       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
47362     }
47363     arg2 = ptr;
47364   }
47365   {
47366     try {
47367       {
47368         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47369         (arg1)->compact((std::string const &)*arg2);
47370         SWIG_PYTHON_THREAD_END_ALLOW;
47371       }
47372     } catch (...) {
47373       Xapian::SetPythonException();
47374       SWIG_fail;
47375     }
47376   }
47377   resultobj = SWIG_Py_Void();
47378   if (SWIG_IsNewObj(res2)) delete arg2;
47379   return resultobj;
47380 fail:
47381   if (SWIG_IsNewObj(res2)) delete arg2;
47382   return NULL;
47383 }
47384 
47385 
_wrap_Database_compact__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47386 SWIGINTERN PyObject *_wrap_Database_compact__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47387   PyObject *resultobj = 0;
47388   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
47389   int arg2 ;
47390   unsigned int arg3 ;
47391   int arg4 ;
47392   void *argp1 = 0 ;
47393   int res1 = 0 ;
47394   int val2 ;
47395   int ecode2 = 0 ;
47396   unsigned int val3 ;
47397   int ecode3 = 0 ;
47398   int val4 ;
47399   int ecode4 = 0 ;
47400 
47401   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
47402   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
47403   if (!SWIG_IsOK(res1)) {
47404     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
47405   }
47406   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
47407   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
47408   if (!SWIG_IsOK(ecode2)) {
47409     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_compact" "', argument " "2"" of type '" "int""'");
47410   }
47411   arg2 = static_cast< int >(val2);
47412   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
47413   if (!SWIG_IsOK(ecode3)) {
47414     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_compact" "', argument " "3"" of type '" "unsigned int""'");
47415   }
47416   arg3 = static_cast< unsigned int >(val3);
47417   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
47418   if (!SWIG_IsOK(ecode4)) {
47419     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Database_compact" "', argument " "4"" of type '" "int""'");
47420   }
47421   arg4 = static_cast< int >(val4);
47422   {
47423     try {
47424       {
47425         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47426         (arg1)->compact(arg2,arg3,arg4);
47427         SWIG_PYTHON_THREAD_END_ALLOW;
47428       }
47429     } catch (...) {
47430       Xapian::SetPythonException();
47431       SWIG_fail;
47432     }
47433   }
47434   resultobj = SWIG_Py_Void();
47435   return resultobj;
47436 fail:
47437   return NULL;
47438 }
47439 
47440 
_wrap_Database_compact__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47441 SWIGINTERN PyObject *_wrap_Database_compact__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47442   PyObject *resultobj = 0;
47443   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
47444   int arg2 ;
47445   unsigned int arg3 ;
47446   void *argp1 = 0 ;
47447   int res1 = 0 ;
47448   int val2 ;
47449   int ecode2 = 0 ;
47450   unsigned int val3 ;
47451   int ecode3 = 0 ;
47452 
47453   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
47454   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
47455   if (!SWIG_IsOK(res1)) {
47456     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
47457   }
47458   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
47459   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
47460   if (!SWIG_IsOK(ecode2)) {
47461     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_compact" "', argument " "2"" of type '" "int""'");
47462   }
47463   arg2 = static_cast< int >(val2);
47464   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
47465   if (!SWIG_IsOK(ecode3)) {
47466     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_compact" "', argument " "3"" of type '" "unsigned int""'");
47467   }
47468   arg3 = static_cast< unsigned int >(val3);
47469   {
47470     try {
47471       {
47472         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47473         (arg1)->compact(arg2,arg3);
47474         SWIG_PYTHON_THREAD_END_ALLOW;
47475       }
47476     } catch (...) {
47477       Xapian::SetPythonException();
47478       SWIG_fail;
47479     }
47480   }
47481   resultobj = SWIG_Py_Void();
47482   return resultobj;
47483 fail:
47484   return NULL;
47485 }
47486 
47487 
_wrap_Database_compact__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47488 SWIGINTERN PyObject *_wrap_Database_compact__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47489   PyObject *resultobj = 0;
47490   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
47491   int arg2 ;
47492   void *argp1 = 0 ;
47493   int res1 = 0 ;
47494   int val2 ;
47495   int ecode2 = 0 ;
47496 
47497   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
47498   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
47499   if (!SWIG_IsOK(res1)) {
47500     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
47501   }
47502   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
47503   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
47504   if (!SWIG_IsOK(ecode2)) {
47505     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_compact" "', argument " "2"" of type '" "int""'");
47506   }
47507   arg2 = static_cast< int >(val2);
47508   {
47509     try {
47510       {
47511         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47512         (arg1)->compact(arg2);
47513         SWIG_PYTHON_THREAD_END_ALLOW;
47514       }
47515     } catch (...) {
47516       Xapian::SetPythonException();
47517       SWIG_fail;
47518     }
47519   }
47520   resultobj = SWIG_Py_Void();
47521   return resultobj;
47522 fail:
47523   return NULL;
47524 }
47525 
47526 
_wrap_Database_compact__SWIG_6(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47527 SWIGINTERN PyObject *_wrap_Database_compact__SWIG_6(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47528   PyObject *resultobj = 0;
47529   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
47530   std::string *arg2 = 0 ;
47531   unsigned int arg3 ;
47532   int arg4 ;
47533   Xapian::Compactor *arg5 = 0 ;
47534   void *argp1 = 0 ;
47535   int res1 = 0 ;
47536   int res2 = SWIG_OLDOBJ ;
47537   unsigned int val3 ;
47538   int ecode3 = 0 ;
47539   int val4 ;
47540   int ecode4 = 0 ;
47541   void *argp5 = 0 ;
47542   int res5 = 0 ;
47543 
47544   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
47545   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
47546   if (!SWIG_IsOK(res1)) {
47547     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
47548   }
47549   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
47550   {
47551     std::string *ptr = (std::string *)0;
47552     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
47553     if (!SWIG_IsOK(res2)) {
47554       if (res2 == INT_MIN) SWIG_fail;
47555       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
47556     }
47557     if (!ptr) {
47558       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_compact" "', argument " "2"" of type '" "std::string const &""'");
47559     }
47560     arg2 = ptr;
47561   }
47562   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
47563   if (!SWIG_IsOK(ecode3)) {
47564     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_compact" "', argument " "3"" of type '" "unsigned int""'");
47565   }
47566   arg3 = static_cast< unsigned int >(val3);
47567   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
47568   if (!SWIG_IsOK(ecode4)) {
47569     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Database_compact" "', argument " "4"" of type '" "int""'");
47570   }
47571   arg4 = static_cast< int >(val4);
47572   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Xapian__Compactor,  0 );
47573   if (!SWIG_IsOK(res5)) {
47574     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Database_compact" "', argument " "5"" of type '" "Xapian::Compactor &""'");
47575   }
47576   if (!argp5) {
47577     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_compact" "', argument " "5"" of type '" "Xapian::Compactor &""'");
47578   }
47579   arg5 = reinterpret_cast< Xapian::Compactor * >(argp5);
47580   {
47581     try {
47582       {
47583         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47584         (arg1)->compact((std::string const &)*arg2,arg3,arg4,*arg5);
47585         SWIG_PYTHON_THREAD_END_ALLOW;
47586       }
47587     } catch (...) {
47588       Xapian::SetPythonException();
47589       SWIG_fail;
47590     }
47591   }
47592   resultobj = SWIG_Py_Void();
47593   if (SWIG_IsNewObj(res2)) delete arg2;
47594   return resultobj;
47595 fail:
47596   if (SWIG_IsNewObj(res2)) delete arg2;
47597   return NULL;
47598 }
47599 
47600 
_wrap_Database_compact__SWIG_7(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47601 SWIGINTERN PyObject *_wrap_Database_compact__SWIG_7(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47602   PyObject *resultobj = 0;
47603   Xapian::Database *arg1 = (Xapian::Database *) 0 ;
47604   int arg2 ;
47605   unsigned int arg3 ;
47606   int arg4 ;
47607   Xapian::Compactor *arg5 = 0 ;
47608   void *argp1 = 0 ;
47609   int res1 = 0 ;
47610   int val2 ;
47611   int ecode2 = 0 ;
47612   unsigned int val3 ;
47613   int ecode3 = 0 ;
47614   int val4 ;
47615   int ecode4 = 0 ;
47616   void *argp5 = 0 ;
47617   int res5 = 0 ;
47618 
47619   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
47620   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__Database, 0 |  0 );
47621   if (!SWIG_IsOK(res1)) {
47622     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Database_compact" "', argument " "1"" of type '" "Xapian::Database *""'");
47623   }
47624   arg1 = reinterpret_cast< Xapian::Database * >(argp1);
47625   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
47626   if (!SWIG_IsOK(ecode2)) {
47627     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Database_compact" "', argument " "2"" of type '" "int""'");
47628   }
47629   arg2 = static_cast< int >(val2);
47630   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
47631   if (!SWIG_IsOK(ecode3)) {
47632     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Database_compact" "', argument " "3"" of type '" "unsigned int""'");
47633   }
47634   arg3 = static_cast< unsigned int >(val3);
47635   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
47636   if (!SWIG_IsOK(ecode4)) {
47637     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Database_compact" "', argument " "4"" of type '" "int""'");
47638   }
47639   arg4 = static_cast< int >(val4);
47640   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Xapian__Compactor,  0 );
47641   if (!SWIG_IsOK(res5)) {
47642     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Database_compact" "', argument " "5"" of type '" "Xapian::Compactor &""'");
47643   }
47644   if (!argp5) {
47645     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Database_compact" "', argument " "5"" of type '" "Xapian::Compactor &""'");
47646   }
47647   arg5 = reinterpret_cast< Xapian::Compactor * >(argp5);
47648   {
47649     try {
47650       {
47651         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47652         (arg1)->compact(arg2,arg3,arg4,*arg5);
47653         SWIG_PYTHON_THREAD_END_ALLOW;
47654       }
47655     } catch (...) {
47656       Xapian::SetPythonException();
47657       SWIG_fail;
47658     }
47659   }
47660   resultobj = SWIG_Py_Void();
47661   return resultobj;
47662 fail:
47663   return NULL;
47664 }
47665 
47666 
_wrap_Database_compact(PyObject * self,PyObject * args)47667 SWIGINTERN PyObject *_wrap_Database_compact(PyObject *self, PyObject *args) {
47668   Py_ssize_t argc;
47669   PyObject *argv[6] = {
47670     0
47671   };
47672 
47673   if (!(argc = SWIG_Python_UnpackTuple(args,"Database_compact",0,5,argv))) SWIG_fail;
47674   --argc;
47675   if (argc == 2) {
47676     int _v = 0;
47677     {
47678       {
47679         int res = SWIG_AsVal_int(argv[1], NULL);
47680         _v = SWIG_CheckState(res);
47681       }
47682     }
47683     if (!_v) goto check_1;
47684     return _wrap_Database_compact__SWIG_5(self, argc, argv);
47685   }
47686 check_1:
47687 
47688   if (argc == 2) {
47689     return _wrap_Database_compact__SWIG_2(self, argc, argv);
47690   }
47691   if (argc == 3) {
47692     int _v = 0;
47693     {
47694       {
47695         int res = SWIG_AsVal_int(argv[1], NULL);
47696         _v = SWIG_CheckState(res);
47697       }
47698     }
47699     if (!_v) goto check_3;
47700     return _wrap_Database_compact__SWIG_4(self, argc, argv);
47701   }
47702 check_3:
47703 
47704   if (argc == 3) {
47705     return _wrap_Database_compact__SWIG_1(self, argc, argv);
47706   }
47707   if (argc == 4) {
47708     int _v = 0;
47709     {
47710       {
47711         int res = SWIG_AsVal_int(argv[1], NULL);
47712         _v = SWIG_CheckState(res);
47713       }
47714     }
47715     if (!_v) goto check_5;
47716     return _wrap_Database_compact__SWIG_3(self, argc, argv);
47717   }
47718 check_5:
47719 
47720   if (argc == 4) {
47721     return _wrap_Database_compact__SWIG_0(self, argc, argv);
47722   }
47723   if (argc == 5) {
47724     int _v = 0;
47725     {
47726       {
47727         int res = SWIG_AsVal_int(argv[1], NULL);
47728         _v = SWIG_CheckState(res);
47729       }
47730     }
47731     if (!_v) goto check_7;
47732     return _wrap_Database_compact__SWIG_7(self, argc, argv);
47733   }
47734 check_7:
47735 
47736   if (argc == 5) {
47737     return _wrap_Database_compact__SWIG_6(self, argc, argv);
47738   }
47739 
47740 fail:
47741   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Database_compact'.\n"
47742     "  Possible C/C++ prototypes are:\n"
47743     "    Xapian::Database::compact(std::string const &,unsigned int,int)\n"
47744     "    Xapian::Database::compact(std::string const &,unsigned int)\n"
47745     "    Xapian::Database::compact(std::string const &)\n"
47746     "    Xapian::Database::compact(int,unsigned int,int)\n"
47747     "    Xapian::Database::compact(int,unsigned int)\n"
47748     "    Xapian::Database::compact(int)\n"
47749     "    Xapian::Database::compact(std::string const &,unsigned int,int,Xapian::Compactor &)\n"
47750     "    Xapian::Database::compact(int,unsigned int,int,Xapian::Compactor &)\n");
47751   return 0;
47752 }
47753 
47754 
Database_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47755 SWIGINTERN PyObject *Database_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47756   PyObject *obj;
47757   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
47758   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__Database, SWIG_NewClientData(obj));
47759   return SWIG_Py_Void();
47760 }
47761 
Database_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47762 SWIGINTERN PyObject *Database_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47763   return SWIG_Python_InitShadowInstance(args);
47764 }
47765 
_wrap_delete_WritableDatabase(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47766 SWIGINTERN PyObject *_wrap_delete_WritableDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47767   PyObject *resultobj = 0;
47768   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
47769   void *argp1 = 0 ;
47770   int res1 = 0 ;
47771   PyObject *swig_obj[1] ;
47772 
47773   if (!args) SWIG_fail;
47774   swig_obj[0] = args;
47775   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_DISOWN |  0 );
47776   if (!SWIG_IsOK(res1)) {
47777     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_WritableDatabase" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
47778   }
47779   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
47780   {
47781     SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47782     delete arg1;
47783     SWIG_PYTHON_THREAD_END_ALLOW;
47784   }
47785   resultobj = SWIG_Py_Void();
47786   return resultobj;
47787 fail:
47788   return NULL;
47789 }
47790 
47791 
_wrap_new_WritableDatabase__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** SWIGUNUSEDPARM (swig_obj))47792 SWIGINTERN PyObject *_wrap_new_WritableDatabase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
47793   PyObject *resultobj = 0;
47794   Xapian::WritableDatabase *result = 0 ;
47795 
47796   if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
47797   {
47798     try {
47799       {
47800         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47801         result = (Xapian::WritableDatabase *)new Xapian::WritableDatabase();
47802         SWIG_PYTHON_THREAD_END_ALLOW;
47803       }
47804     } catch (...) {
47805       Xapian::SetPythonException();
47806       SWIG_fail;
47807     }
47808   }
47809   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_NEW |  0 );
47810   return resultobj;
47811 fail:
47812   return NULL;
47813 }
47814 
47815 
_wrap_new_WritableDatabase__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47816 SWIGINTERN PyObject *_wrap_new_WritableDatabase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47817   PyObject *resultobj = 0;
47818   std::string *arg1 = 0 ;
47819   int arg2 ;
47820   int arg3 ;
47821   int res1 = SWIG_OLDOBJ ;
47822   int val2 ;
47823   int ecode2 = 0 ;
47824   int val3 ;
47825   int ecode3 = 0 ;
47826   Xapian::WritableDatabase *result = 0 ;
47827 
47828   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
47829   {
47830     std::string *ptr = (std::string *)0;
47831     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
47832     if (!SWIG_IsOK(res1)) {
47833       if (res1 == INT_MIN) SWIG_fail;
47834       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'");
47835     }
47836     if (!ptr) {
47837       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'");
47838     }
47839     arg1 = ptr;
47840   }
47841   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
47842   if (!SWIG_IsOK(ecode2)) {
47843     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_WritableDatabase" "', argument " "2"" of type '" "int""'");
47844   }
47845   arg2 = static_cast< int >(val2);
47846   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
47847   if (!SWIG_IsOK(ecode3)) {
47848     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_WritableDatabase" "', argument " "3"" of type '" "int""'");
47849   }
47850   arg3 = static_cast< int >(val3);
47851   {
47852     try {
47853       {
47854         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47855         result = (Xapian::WritableDatabase *)new Xapian::WritableDatabase((std::string const &)*arg1,arg2,arg3);
47856         SWIG_PYTHON_THREAD_END_ALLOW;
47857       }
47858     } catch (...) {
47859       Xapian::SetPythonException();
47860       SWIG_fail;
47861     }
47862   }
47863   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_NEW |  0 );
47864   if (SWIG_IsNewObj(res1)) delete arg1;
47865   return resultobj;
47866 fail:
47867   if (SWIG_IsNewObj(res1)) delete arg1;
47868   return NULL;
47869 }
47870 
47871 
_wrap_new_WritableDatabase__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47872 SWIGINTERN PyObject *_wrap_new_WritableDatabase__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47873   PyObject *resultobj = 0;
47874   std::string *arg1 = 0 ;
47875   int arg2 ;
47876   int res1 = SWIG_OLDOBJ ;
47877   int val2 ;
47878   int ecode2 = 0 ;
47879   Xapian::WritableDatabase *result = 0 ;
47880 
47881   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
47882   {
47883     std::string *ptr = (std::string *)0;
47884     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
47885     if (!SWIG_IsOK(res1)) {
47886       if (res1 == INT_MIN) SWIG_fail;
47887       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'");
47888     }
47889     if (!ptr) {
47890       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'");
47891     }
47892     arg1 = ptr;
47893   }
47894   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
47895   if (!SWIG_IsOK(ecode2)) {
47896     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_WritableDatabase" "', argument " "2"" of type '" "int""'");
47897   }
47898   arg2 = static_cast< int >(val2);
47899   {
47900     try {
47901       {
47902         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47903         result = (Xapian::WritableDatabase *)new Xapian::WritableDatabase((std::string const &)*arg1,arg2);
47904         SWIG_PYTHON_THREAD_END_ALLOW;
47905       }
47906     } catch (...) {
47907       Xapian::SetPythonException();
47908       SWIG_fail;
47909     }
47910   }
47911   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_NEW |  0 );
47912   if (SWIG_IsNewObj(res1)) delete arg1;
47913   return resultobj;
47914 fail:
47915   if (SWIG_IsNewObj(res1)) delete arg1;
47916   return NULL;
47917 }
47918 
47919 
_wrap_new_WritableDatabase__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)47920 SWIGINTERN PyObject *_wrap_new_WritableDatabase__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
47921   PyObject *resultobj = 0;
47922   std::string *arg1 = 0 ;
47923   int res1 = SWIG_OLDOBJ ;
47924   Xapian::WritableDatabase *result = 0 ;
47925 
47926   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
47927   {
47928     std::string *ptr = (std::string *)0;
47929     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
47930     if (!SWIG_IsOK(res1)) {
47931       if (res1 == INT_MIN) SWIG_fail;
47932       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'");
47933     }
47934     if (!ptr) {
47935       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WritableDatabase" "', argument " "1"" of type '" "std::string const &""'");
47936     }
47937     arg1 = ptr;
47938   }
47939   {
47940     try {
47941       {
47942         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
47943         result = (Xapian::WritableDatabase *)new Xapian::WritableDatabase((std::string const &)*arg1);
47944         SWIG_PYTHON_THREAD_END_ALLOW;
47945       }
47946     } catch (...) {
47947       Xapian::SetPythonException();
47948       SWIG_fail;
47949     }
47950   }
47951   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_NEW |  0 );
47952   if (SWIG_IsNewObj(res1)) delete arg1;
47953   return resultobj;
47954 fail:
47955   if (SWIG_IsNewObj(res1)) delete arg1;
47956   return NULL;
47957 }
47958 
47959 
_wrap_new_WritableDatabase(PyObject * self,PyObject * args)47960 SWIGINTERN PyObject *_wrap_new_WritableDatabase(PyObject *self, PyObject *args) {
47961   Py_ssize_t argc;
47962   PyObject *argv[4] = {
47963     0
47964   };
47965 
47966   if (!(argc = SWIG_Python_UnpackTuple(args,"new_WritableDatabase",0,3,argv))) SWIG_fail;
47967   --argc;
47968   if (argc == 0) {
47969     return _wrap_new_WritableDatabase__SWIG_0(self, argc, argv);
47970   }
47971   if (argc == 1) {
47972     return _wrap_new_WritableDatabase__SWIG_3(self, argc, argv);
47973   }
47974   if (argc == 2) {
47975     return _wrap_new_WritableDatabase__SWIG_2(self, argc, argv);
47976   }
47977   if (argc == 3) {
47978     return _wrap_new_WritableDatabase__SWIG_1(self, argc, argv);
47979   }
47980 
47981 fail:
47982   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_WritableDatabase'.\n"
47983     "  Possible C/C++ prototypes are:\n"
47984     "    Xapian::WritableDatabase::WritableDatabase()\n"
47985     "    Xapian::WritableDatabase::WritableDatabase(std::string const &,int,int)\n"
47986     "    Xapian::WritableDatabase::WritableDatabase(std::string const &,int)\n"
47987     "    Xapian::WritableDatabase::WritableDatabase(std::string const &)\n");
47988   return 0;
47989 }
47990 
47991 
_wrap_WritableDatabase_commit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)47992 SWIGINTERN PyObject *_wrap_WritableDatabase_commit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47993   PyObject *resultobj = 0;
47994   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
47995   void *argp1 = 0 ;
47996   int res1 = 0 ;
47997   PyObject *swig_obj[1] ;
47998 
47999   if (!args) SWIG_fail;
48000   swig_obj[0] = args;
48001   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48002   if (!SWIG_IsOK(res1)) {
48003     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_commit" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
48004   }
48005   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48006   {
48007     try {
48008       {
48009         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48010         (arg1)->commit();
48011         SWIG_PYTHON_THREAD_END_ALLOW;
48012       }
48013     } catch (...) {
48014       Xapian::SetPythonException();
48015       SWIG_fail;
48016     }
48017   }
48018   resultobj = SWIG_Py_Void();
48019   return resultobj;
48020 fail:
48021   return NULL;
48022 }
48023 
48024 
_wrap_WritableDatabase_flush(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48025 SWIGINTERN PyObject *_wrap_WritableDatabase_flush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48026   PyObject *resultobj = 0;
48027   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48028   void *argp1 = 0 ;
48029   int res1 = 0 ;
48030   PyObject *swig_obj[1] ;
48031 
48032   if (!args) SWIG_fail;
48033   swig_obj[0] = args;
48034   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48035   if (!SWIG_IsOK(res1)) {
48036     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_flush" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
48037   }
48038   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48039   {
48040     try {
48041       {
48042         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48043         (arg1)->flush();
48044         SWIG_PYTHON_THREAD_END_ALLOW;
48045       }
48046     } catch (...) {
48047       Xapian::SetPythonException();
48048       SWIG_fail;
48049     }
48050   }
48051   resultobj = SWIG_Py_Void();
48052   return resultobj;
48053 fail:
48054   return NULL;
48055 }
48056 
48057 
_wrap_WritableDatabase_begin_transaction__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48058 SWIGINTERN PyObject *_wrap_WritableDatabase_begin_transaction__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48059   PyObject *resultobj = 0;
48060   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48061   bool arg2 ;
48062   void *argp1 = 0 ;
48063   int res1 = 0 ;
48064   bool val2 ;
48065   int ecode2 = 0 ;
48066 
48067   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
48068   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48069   if (!SWIG_IsOK(res1)) {
48070     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_begin_transaction" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
48071   }
48072   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48073   ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
48074   if (!SWIG_IsOK(ecode2)) {
48075     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "WritableDatabase_begin_transaction" "', argument " "2"" of type '" "bool""'");
48076   }
48077   arg2 = static_cast< bool >(val2);
48078   {
48079     try {
48080       {
48081         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48082         (arg1)->begin_transaction(arg2);
48083         SWIG_PYTHON_THREAD_END_ALLOW;
48084       }
48085     } catch (...) {
48086       Xapian::SetPythonException();
48087       SWIG_fail;
48088     }
48089   }
48090   resultobj = SWIG_Py_Void();
48091   return resultobj;
48092 fail:
48093   return NULL;
48094 }
48095 
48096 
_wrap_WritableDatabase_begin_transaction__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48097 SWIGINTERN PyObject *_wrap_WritableDatabase_begin_transaction__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48098   PyObject *resultobj = 0;
48099   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48100   void *argp1 = 0 ;
48101   int res1 = 0 ;
48102 
48103   if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
48104   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48105   if (!SWIG_IsOK(res1)) {
48106     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_begin_transaction" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
48107   }
48108   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48109   {
48110     try {
48111       {
48112         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48113         (arg1)->begin_transaction();
48114         SWIG_PYTHON_THREAD_END_ALLOW;
48115       }
48116     } catch (...) {
48117       Xapian::SetPythonException();
48118       SWIG_fail;
48119     }
48120   }
48121   resultobj = SWIG_Py_Void();
48122   return resultobj;
48123 fail:
48124   return NULL;
48125 }
48126 
48127 
_wrap_WritableDatabase_begin_transaction(PyObject * self,PyObject * args)48128 SWIGINTERN PyObject *_wrap_WritableDatabase_begin_transaction(PyObject *self, PyObject *args) {
48129   Py_ssize_t argc;
48130   PyObject *argv[3] = {
48131     0
48132   };
48133 
48134   if (!(argc = SWIG_Python_UnpackTuple(args,"WritableDatabase_begin_transaction",0,2,argv))) SWIG_fail;
48135   --argc;
48136   if (argc == 1) {
48137     return _wrap_WritableDatabase_begin_transaction__SWIG_1(self, argc, argv);
48138   }
48139   if (argc == 2) {
48140     return _wrap_WritableDatabase_begin_transaction__SWIG_0(self, argc, argv);
48141   }
48142 
48143 fail:
48144   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'WritableDatabase_begin_transaction'.\n"
48145     "  Possible C/C++ prototypes are:\n"
48146     "    Xapian::WritableDatabase::begin_transaction(bool)\n"
48147     "    Xapian::WritableDatabase::begin_transaction()\n");
48148   return 0;
48149 }
48150 
48151 
_wrap_WritableDatabase_commit_transaction(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48152 SWIGINTERN PyObject *_wrap_WritableDatabase_commit_transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48153   PyObject *resultobj = 0;
48154   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48155   void *argp1 = 0 ;
48156   int res1 = 0 ;
48157   PyObject *swig_obj[1] ;
48158 
48159   if (!args) SWIG_fail;
48160   swig_obj[0] = args;
48161   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48162   if (!SWIG_IsOK(res1)) {
48163     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_commit_transaction" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
48164   }
48165   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48166   {
48167     try {
48168       {
48169         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48170         (arg1)->commit_transaction();
48171         SWIG_PYTHON_THREAD_END_ALLOW;
48172       }
48173     } catch (...) {
48174       Xapian::SetPythonException();
48175       SWIG_fail;
48176     }
48177   }
48178   resultobj = SWIG_Py_Void();
48179   return resultobj;
48180 fail:
48181   return NULL;
48182 }
48183 
48184 
_wrap_WritableDatabase_cancel_transaction(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48185 SWIGINTERN PyObject *_wrap_WritableDatabase_cancel_transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48186   PyObject *resultobj = 0;
48187   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48188   void *argp1 = 0 ;
48189   int res1 = 0 ;
48190   PyObject *swig_obj[1] ;
48191 
48192   if (!args) SWIG_fail;
48193   swig_obj[0] = args;
48194   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48195   if (!SWIG_IsOK(res1)) {
48196     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_cancel_transaction" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
48197   }
48198   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48199   {
48200     try {
48201       {
48202         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48203         (arg1)->cancel_transaction();
48204         SWIG_PYTHON_THREAD_END_ALLOW;
48205       }
48206     } catch (...) {
48207       Xapian::SetPythonException();
48208       SWIG_fail;
48209     }
48210   }
48211   resultobj = SWIG_Py_Void();
48212   return resultobj;
48213 fail:
48214   return NULL;
48215 }
48216 
48217 
_wrap_WritableDatabase_add_document(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48218 SWIGINTERN PyObject *_wrap_WritableDatabase_add_document(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48219   PyObject *resultobj = 0;
48220   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48221   Xapian::Document *arg2 = 0 ;
48222   void *argp1 = 0 ;
48223   int res1 = 0 ;
48224   void *argp2 = 0 ;
48225   int res2 = 0 ;
48226   PyObject *swig_obj[2] ;
48227   Xapian::docid result;
48228 
48229   if (!SWIG_Python_UnpackTuple(args,"WritableDatabase_add_document",2,2,swig_obj)) SWIG_fail;
48230   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48231   if (!SWIG_IsOK(res1)) {
48232     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_add_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
48233   }
48234   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48235   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Xapian__Document,  0  | 0);
48236   if (!SWIG_IsOK(res2)) {
48237     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_add_document" "', argument " "2"" of type '" "Xapian::Document const &""'");
48238   }
48239   if (!argp2) {
48240     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_add_document" "', argument " "2"" of type '" "Xapian::Document const &""'");
48241   }
48242   arg2 = reinterpret_cast< Xapian::Document * >(argp2);
48243   {
48244     try {
48245       {
48246         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48247         result = (Xapian::docid)(arg1)->add_document((Xapian::Document const &)*arg2);
48248         SWIG_PYTHON_THREAD_END_ALLOW;
48249       }
48250     } catch (...) {
48251       Xapian::SetPythonException();
48252       SWIG_fail;
48253     }
48254   }
48255   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
48256   return resultobj;
48257 fail:
48258   return NULL;
48259 }
48260 
48261 
_wrap_WritableDatabase_delete_document__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48262 SWIGINTERN PyObject *_wrap_WritableDatabase_delete_document__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48263   PyObject *resultobj = 0;
48264   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48265   Xapian::docid arg2 ;
48266   void *argp1 = 0 ;
48267   int res1 = 0 ;
48268   unsigned int val2 ;
48269   int ecode2 = 0 ;
48270 
48271   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
48272   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48273   if (!SWIG_IsOK(res1)) {
48274     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_delete_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
48275   }
48276   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48277   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
48278   if (!SWIG_IsOK(ecode2)) {
48279     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "WritableDatabase_delete_document" "', argument " "2"" of type '" "Xapian::docid""'");
48280   }
48281   arg2 = static_cast< Xapian::docid >(val2);
48282   {
48283     try {
48284       {
48285         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48286         (arg1)->delete_document(arg2);
48287         SWIG_PYTHON_THREAD_END_ALLOW;
48288       }
48289     } catch (...) {
48290       Xapian::SetPythonException();
48291       SWIG_fail;
48292     }
48293   }
48294   resultobj = SWIG_Py_Void();
48295   return resultobj;
48296 fail:
48297   return NULL;
48298 }
48299 
48300 
_wrap_WritableDatabase_delete_document__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48301 SWIGINTERN PyObject *_wrap_WritableDatabase_delete_document__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48302   PyObject *resultobj = 0;
48303   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48304   std::string *arg2 = 0 ;
48305   void *argp1 = 0 ;
48306   int res1 = 0 ;
48307   int res2 = SWIG_OLDOBJ ;
48308 
48309   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
48310   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48311   if (!SWIG_IsOK(res1)) {
48312     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_delete_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
48313   }
48314   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48315   {
48316     std::string *ptr = (std::string *)0;
48317     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48318     if (!SWIG_IsOK(res2)) {
48319       if (res2 == INT_MIN) SWIG_fail;
48320       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_delete_document" "', argument " "2"" of type '" "std::string const &""'");
48321     }
48322     if (!ptr) {
48323       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_delete_document" "', argument " "2"" of type '" "std::string const &""'");
48324     }
48325     arg2 = ptr;
48326   }
48327   {
48328     try {
48329       {
48330         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48331         (arg1)->delete_document((std::string const &)*arg2);
48332         SWIG_PYTHON_THREAD_END_ALLOW;
48333       }
48334     } catch (...) {
48335       Xapian::SetPythonException();
48336       SWIG_fail;
48337     }
48338   }
48339   resultobj = SWIG_Py_Void();
48340   if (SWIG_IsNewObj(res2)) delete arg2;
48341   return resultobj;
48342 fail:
48343   if (SWIG_IsNewObj(res2)) delete arg2;
48344   return NULL;
48345 }
48346 
48347 
_wrap_WritableDatabase_delete_document(PyObject * self,PyObject * args)48348 SWIGINTERN PyObject *_wrap_WritableDatabase_delete_document(PyObject *self, PyObject *args) {
48349   Py_ssize_t argc;
48350   PyObject *argv[3] = {
48351     0
48352   };
48353 
48354   if (!(argc = SWIG_Python_UnpackTuple(args,"WritableDatabase_delete_document",0,2,argv))) SWIG_fail;
48355   --argc;
48356   if (argc == 2) {
48357     int _v = 0;
48358     {
48359       {
48360         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
48361         _v = SWIG_CheckState(res);
48362       }
48363     }
48364     if (!_v) goto check_1;
48365     return _wrap_WritableDatabase_delete_document__SWIG_0(self, argc, argv);
48366   }
48367 check_1:
48368 
48369   if (argc == 2) {
48370     return _wrap_WritableDatabase_delete_document__SWIG_1(self, argc, argv);
48371   }
48372 
48373 fail:
48374   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'WritableDatabase_delete_document'.\n"
48375     "  Possible C/C++ prototypes are:\n"
48376     "    Xapian::WritableDatabase::delete_document(Xapian::docid)\n"
48377     "    Xapian::WritableDatabase::delete_document(std::string const &)\n");
48378   return 0;
48379 }
48380 
48381 
_wrap_WritableDatabase_replace_document__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48382 SWIGINTERN PyObject *_wrap_WritableDatabase_replace_document__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48383   PyObject *resultobj = 0;
48384   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48385   Xapian::docid arg2 ;
48386   Xapian::Document *arg3 = 0 ;
48387   void *argp1 = 0 ;
48388   int res1 = 0 ;
48389   unsigned int val2 ;
48390   int ecode2 = 0 ;
48391   void *argp3 = 0 ;
48392   int res3 = 0 ;
48393 
48394   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
48395   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48396   if (!SWIG_IsOK(res1)) {
48397     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_replace_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
48398   }
48399   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48400   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
48401   if (!SWIG_IsOK(ecode2)) {
48402     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "WritableDatabase_replace_document" "', argument " "2"" of type '" "Xapian::docid""'");
48403   }
48404   arg2 = static_cast< Xapian::docid >(val2);
48405   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__Document,  0  | 0);
48406   if (!SWIG_IsOK(res3)) {
48407     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "WritableDatabase_replace_document" "', argument " "3"" of type '" "Xapian::Document const &""'");
48408   }
48409   if (!argp3) {
48410     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_replace_document" "', argument " "3"" of type '" "Xapian::Document const &""'");
48411   }
48412   arg3 = reinterpret_cast< Xapian::Document * >(argp3);
48413   {
48414     try {
48415       {
48416         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48417         (arg1)->replace_document(arg2,(Xapian::Document const &)*arg3);
48418         SWIG_PYTHON_THREAD_END_ALLOW;
48419       }
48420     } catch (...) {
48421       Xapian::SetPythonException();
48422       SWIG_fail;
48423     }
48424   }
48425   resultobj = SWIG_Py_Void();
48426   return resultobj;
48427 fail:
48428   return NULL;
48429 }
48430 
48431 
_wrap_WritableDatabase_replace_document__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48432 SWIGINTERN PyObject *_wrap_WritableDatabase_replace_document__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48433   PyObject *resultobj = 0;
48434   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48435   std::string *arg2 = 0 ;
48436   Xapian::Document *arg3 = 0 ;
48437   void *argp1 = 0 ;
48438   int res1 = 0 ;
48439   int res2 = SWIG_OLDOBJ ;
48440   void *argp3 = 0 ;
48441   int res3 = 0 ;
48442   Xapian::docid result;
48443 
48444   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
48445   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48446   if (!SWIG_IsOK(res1)) {
48447     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_replace_document" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
48448   }
48449   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48450   {
48451     std::string *ptr = (std::string *)0;
48452     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48453     if (!SWIG_IsOK(res2)) {
48454       if (res2 == INT_MIN) SWIG_fail;
48455       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_replace_document" "', argument " "2"" of type '" "std::string const &""'");
48456     }
48457     if (!ptr) {
48458       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_replace_document" "', argument " "2"" of type '" "std::string const &""'");
48459     }
48460     arg2 = ptr;
48461   }
48462   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Xapian__Document,  0  | 0);
48463   if (!SWIG_IsOK(res3)) {
48464     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "WritableDatabase_replace_document" "', argument " "3"" of type '" "Xapian::Document const &""'");
48465   }
48466   if (!argp3) {
48467     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_replace_document" "', argument " "3"" of type '" "Xapian::Document const &""'");
48468   }
48469   arg3 = reinterpret_cast< Xapian::Document * >(argp3);
48470   {
48471     try {
48472       {
48473         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48474         result = (Xapian::docid)(arg1)->replace_document((std::string const &)*arg2,(Xapian::Document const &)*arg3);
48475         SWIG_PYTHON_THREAD_END_ALLOW;
48476       }
48477     } catch (...) {
48478       Xapian::SetPythonException();
48479       SWIG_fail;
48480     }
48481   }
48482   resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
48483   if (SWIG_IsNewObj(res2)) delete arg2;
48484   return resultobj;
48485 fail:
48486   if (SWIG_IsNewObj(res2)) delete arg2;
48487   return NULL;
48488 }
48489 
48490 
_wrap_WritableDatabase_replace_document(PyObject * self,PyObject * args)48491 SWIGINTERN PyObject *_wrap_WritableDatabase_replace_document(PyObject *self, PyObject *args) {
48492   Py_ssize_t argc;
48493   PyObject *argv[4] = {
48494     0
48495   };
48496 
48497   if (!(argc = SWIG_Python_UnpackTuple(args,"WritableDatabase_replace_document",0,3,argv))) SWIG_fail;
48498   --argc;
48499   if (argc == 3) {
48500     int _v = 0;
48501     {
48502       {
48503         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
48504         _v = SWIG_CheckState(res);
48505       }
48506     }
48507     if (!_v) goto check_1;
48508     return _wrap_WritableDatabase_replace_document__SWIG_0(self, argc, argv);
48509   }
48510 check_1:
48511 
48512   if (argc == 3) {
48513     return _wrap_WritableDatabase_replace_document__SWIG_1(self, argc, argv);
48514   }
48515 
48516 fail:
48517   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'WritableDatabase_replace_document'.\n"
48518     "  Possible C/C++ prototypes are:\n"
48519     "    Xapian::WritableDatabase::replace_document(Xapian::docid,Xapian::Document const &)\n"
48520     "    Xapian::WritableDatabase::replace_document(std::string const &,Xapian::Document const &)\n");
48521   return 0;
48522 }
48523 
48524 
_wrap_WritableDatabase_add_spelling__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48525 SWIGINTERN PyObject *_wrap_WritableDatabase_add_spelling__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48526   PyObject *resultobj = 0;
48527   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48528   std::string *arg2 = 0 ;
48529   Xapian::termcount arg3 ;
48530   void *argp1 = 0 ;
48531   int res1 = 0 ;
48532   int res2 = SWIG_OLDOBJ ;
48533   unsigned int val3 ;
48534   int ecode3 = 0 ;
48535 
48536   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
48537   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48538   if (!SWIG_IsOK(res1)) {
48539     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_add_spelling" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
48540   }
48541   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48542   {
48543     std::string *ptr = (std::string *)0;
48544     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48545     if (!SWIG_IsOK(res2)) {
48546       if (res2 == INT_MIN) SWIG_fail;
48547       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_add_spelling" "', argument " "2"" of type '" "std::string const &""'");
48548     }
48549     if (!ptr) {
48550       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_add_spelling" "', argument " "2"" of type '" "std::string const &""'");
48551     }
48552     arg2 = ptr;
48553   }
48554   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
48555   if (!SWIG_IsOK(ecode3)) {
48556     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "WritableDatabase_add_spelling" "', argument " "3"" of type '" "Xapian::termcount""'");
48557   }
48558   arg3 = static_cast< Xapian::termcount >(val3);
48559   {
48560     try {
48561       {
48562         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48563         ((Xapian::WritableDatabase const *)arg1)->add_spelling((std::string const &)*arg2,arg3);
48564         SWIG_PYTHON_THREAD_END_ALLOW;
48565       }
48566     } catch (...) {
48567       Xapian::SetPythonException();
48568       SWIG_fail;
48569     }
48570   }
48571   resultobj = SWIG_Py_Void();
48572   if (SWIG_IsNewObj(res2)) delete arg2;
48573   return resultobj;
48574 fail:
48575   if (SWIG_IsNewObj(res2)) delete arg2;
48576   return NULL;
48577 }
48578 
48579 
_wrap_WritableDatabase_add_spelling__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48580 SWIGINTERN PyObject *_wrap_WritableDatabase_add_spelling__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48581   PyObject *resultobj = 0;
48582   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48583   std::string *arg2 = 0 ;
48584   void *argp1 = 0 ;
48585   int res1 = 0 ;
48586   int res2 = SWIG_OLDOBJ ;
48587 
48588   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
48589   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48590   if (!SWIG_IsOK(res1)) {
48591     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_add_spelling" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
48592   }
48593   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48594   {
48595     std::string *ptr = (std::string *)0;
48596     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48597     if (!SWIG_IsOK(res2)) {
48598       if (res2 == INT_MIN) SWIG_fail;
48599       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_add_spelling" "', argument " "2"" of type '" "std::string const &""'");
48600     }
48601     if (!ptr) {
48602       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_add_spelling" "', argument " "2"" of type '" "std::string const &""'");
48603     }
48604     arg2 = ptr;
48605   }
48606   {
48607     try {
48608       {
48609         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48610         ((Xapian::WritableDatabase const *)arg1)->add_spelling((std::string const &)*arg2);
48611         SWIG_PYTHON_THREAD_END_ALLOW;
48612       }
48613     } catch (...) {
48614       Xapian::SetPythonException();
48615       SWIG_fail;
48616     }
48617   }
48618   resultobj = SWIG_Py_Void();
48619   if (SWIG_IsNewObj(res2)) delete arg2;
48620   return resultobj;
48621 fail:
48622   if (SWIG_IsNewObj(res2)) delete arg2;
48623   return NULL;
48624 }
48625 
48626 
_wrap_WritableDatabase_add_spelling(PyObject * self,PyObject * args)48627 SWIGINTERN PyObject *_wrap_WritableDatabase_add_spelling(PyObject *self, PyObject *args) {
48628   Py_ssize_t argc;
48629   PyObject *argv[4] = {
48630     0
48631   };
48632 
48633   if (!(argc = SWIG_Python_UnpackTuple(args,"WritableDatabase_add_spelling",0,3,argv))) SWIG_fail;
48634   --argc;
48635   if (argc == 2) {
48636     return _wrap_WritableDatabase_add_spelling__SWIG_1(self, argc, argv);
48637   }
48638   if (argc == 3) {
48639     return _wrap_WritableDatabase_add_spelling__SWIG_0(self, argc, argv);
48640   }
48641 
48642 fail:
48643   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'WritableDatabase_add_spelling'.\n"
48644     "  Possible C/C++ prototypes are:\n"
48645     "    Xapian::WritableDatabase::add_spelling(std::string const &,Xapian::termcount) const\n"
48646     "    Xapian::WritableDatabase::add_spelling(std::string const &) const\n");
48647   return 0;
48648 }
48649 
48650 
_wrap_WritableDatabase_remove_spelling__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48651 SWIGINTERN PyObject *_wrap_WritableDatabase_remove_spelling__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48652   PyObject *resultobj = 0;
48653   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48654   std::string *arg2 = 0 ;
48655   Xapian::termcount arg3 ;
48656   void *argp1 = 0 ;
48657   int res1 = 0 ;
48658   int res2 = SWIG_OLDOBJ ;
48659   unsigned int val3 ;
48660   int ecode3 = 0 ;
48661 
48662   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
48663   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48664   if (!SWIG_IsOK(res1)) {
48665     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_remove_spelling" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
48666   }
48667   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48668   {
48669     std::string *ptr = (std::string *)0;
48670     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48671     if (!SWIG_IsOK(res2)) {
48672       if (res2 == INT_MIN) SWIG_fail;
48673       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_remove_spelling" "', argument " "2"" of type '" "std::string const &""'");
48674     }
48675     if (!ptr) {
48676       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_remove_spelling" "', argument " "2"" of type '" "std::string const &""'");
48677     }
48678     arg2 = ptr;
48679   }
48680   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
48681   if (!SWIG_IsOK(ecode3)) {
48682     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "WritableDatabase_remove_spelling" "', argument " "3"" of type '" "Xapian::termcount""'");
48683   }
48684   arg3 = static_cast< Xapian::termcount >(val3);
48685   {
48686     try {
48687       {
48688         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48689         ((Xapian::WritableDatabase const *)arg1)->remove_spelling((std::string const &)*arg2,arg3);
48690         SWIG_PYTHON_THREAD_END_ALLOW;
48691       }
48692     } catch (...) {
48693       Xapian::SetPythonException();
48694       SWIG_fail;
48695     }
48696   }
48697   resultobj = SWIG_Py_Void();
48698   if (SWIG_IsNewObj(res2)) delete arg2;
48699   return resultobj;
48700 fail:
48701   if (SWIG_IsNewObj(res2)) delete arg2;
48702   return NULL;
48703 }
48704 
48705 
_wrap_WritableDatabase_remove_spelling__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)48706 SWIGINTERN PyObject *_wrap_WritableDatabase_remove_spelling__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
48707   PyObject *resultobj = 0;
48708   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48709   std::string *arg2 = 0 ;
48710   void *argp1 = 0 ;
48711   int res1 = 0 ;
48712   int res2 = SWIG_OLDOBJ ;
48713 
48714   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
48715   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48716   if (!SWIG_IsOK(res1)) {
48717     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_remove_spelling" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
48718   }
48719   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48720   {
48721     std::string *ptr = (std::string *)0;
48722     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48723     if (!SWIG_IsOK(res2)) {
48724       if (res2 == INT_MIN) SWIG_fail;
48725       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_remove_spelling" "', argument " "2"" of type '" "std::string const &""'");
48726     }
48727     if (!ptr) {
48728       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_remove_spelling" "', argument " "2"" of type '" "std::string const &""'");
48729     }
48730     arg2 = ptr;
48731   }
48732   {
48733     try {
48734       {
48735         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48736         ((Xapian::WritableDatabase const *)arg1)->remove_spelling((std::string const &)*arg2);
48737         SWIG_PYTHON_THREAD_END_ALLOW;
48738       }
48739     } catch (...) {
48740       Xapian::SetPythonException();
48741       SWIG_fail;
48742     }
48743   }
48744   resultobj = SWIG_Py_Void();
48745   if (SWIG_IsNewObj(res2)) delete arg2;
48746   return resultobj;
48747 fail:
48748   if (SWIG_IsNewObj(res2)) delete arg2;
48749   return NULL;
48750 }
48751 
48752 
_wrap_WritableDatabase_remove_spelling(PyObject * self,PyObject * args)48753 SWIGINTERN PyObject *_wrap_WritableDatabase_remove_spelling(PyObject *self, PyObject *args) {
48754   Py_ssize_t argc;
48755   PyObject *argv[4] = {
48756     0
48757   };
48758 
48759   if (!(argc = SWIG_Python_UnpackTuple(args,"WritableDatabase_remove_spelling",0,3,argv))) SWIG_fail;
48760   --argc;
48761   if (argc == 2) {
48762     return _wrap_WritableDatabase_remove_spelling__SWIG_1(self, argc, argv);
48763   }
48764   if (argc == 3) {
48765     return _wrap_WritableDatabase_remove_spelling__SWIG_0(self, argc, argv);
48766   }
48767 
48768 fail:
48769   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'WritableDatabase_remove_spelling'.\n"
48770     "  Possible C/C++ prototypes are:\n"
48771     "    Xapian::WritableDatabase::remove_spelling(std::string const &,Xapian::termcount) const\n"
48772     "    Xapian::WritableDatabase::remove_spelling(std::string const &) const\n");
48773   return 0;
48774 }
48775 
48776 
_wrap_WritableDatabase_add_synonym(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48777 SWIGINTERN PyObject *_wrap_WritableDatabase_add_synonym(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48778   PyObject *resultobj = 0;
48779   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48780   std::string *arg2 = 0 ;
48781   std::string *arg3 = 0 ;
48782   void *argp1 = 0 ;
48783   int res1 = 0 ;
48784   int res2 = SWIG_OLDOBJ ;
48785   int res3 = SWIG_OLDOBJ ;
48786   PyObject *swig_obj[3] ;
48787 
48788   if (!SWIG_Python_UnpackTuple(args,"WritableDatabase_add_synonym",3,3,swig_obj)) SWIG_fail;
48789   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48790   if (!SWIG_IsOK(res1)) {
48791     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_add_synonym" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
48792   }
48793   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48794   {
48795     std::string *ptr = (std::string *)0;
48796     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48797     if (!SWIG_IsOK(res2)) {
48798       if (res2 == INT_MIN) SWIG_fail;
48799       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_add_synonym" "', argument " "2"" of type '" "std::string const &""'");
48800     }
48801     if (!ptr) {
48802       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_add_synonym" "', argument " "2"" of type '" "std::string const &""'");
48803     }
48804     arg2 = ptr;
48805   }
48806   {
48807     std::string *ptr = (std::string *)0;
48808     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
48809     if (!SWIG_IsOK(res3)) {
48810       if (res3 == INT_MIN) SWIG_fail;
48811       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "WritableDatabase_add_synonym" "', argument " "3"" of type '" "std::string const &""'");
48812     }
48813     if (!ptr) {
48814       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_add_synonym" "', argument " "3"" of type '" "std::string const &""'");
48815     }
48816     arg3 = ptr;
48817   }
48818   {
48819     try {
48820       {
48821         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48822         ((Xapian::WritableDatabase const *)arg1)->add_synonym((std::string const &)*arg2,(std::string const &)*arg3);
48823         SWIG_PYTHON_THREAD_END_ALLOW;
48824       }
48825     } catch (...) {
48826       Xapian::SetPythonException();
48827       SWIG_fail;
48828     }
48829   }
48830   resultobj = SWIG_Py_Void();
48831   if (SWIG_IsNewObj(res2)) delete arg2;
48832   if (SWIG_IsNewObj(res3)) delete arg3;
48833   return resultobj;
48834 fail:
48835   if (SWIG_IsNewObj(res2)) delete arg2;
48836   if (SWIG_IsNewObj(res3)) delete arg3;
48837   return NULL;
48838 }
48839 
48840 
_wrap_WritableDatabase_remove_synonym(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48841 SWIGINTERN PyObject *_wrap_WritableDatabase_remove_synonym(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48842   PyObject *resultobj = 0;
48843   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48844   std::string *arg2 = 0 ;
48845   std::string *arg3 = 0 ;
48846   void *argp1 = 0 ;
48847   int res1 = 0 ;
48848   int res2 = SWIG_OLDOBJ ;
48849   int res3 = SWIG_OLDOBJ ;
48850   PyObject *swig_obj[3] ;
48851 
48852   if (!SWIG_Python_UnpackTuple(args,"WritableDatabase_remove_synonym",3,3,swig_obj)) SWIG_fail;
48853   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48854   if (!SWIG_IsOK(res1)) {
48855     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_remove_synonym" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
48856   }
48857   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48858   {
48859     std::string *ptr = (std::string *)0;
48860     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48861     if (!SWIG_IsOK(res2)) {
48862       if (res2 == INT_MIN) SWIG_fail;
48863       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_remove_synonym" "', argument " "2"" of type '" "std::string const &""'");
48864     }
48865     if (!ptr) {
48866       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_remove_synonym" "', argument " "2"" of type '" "std::string const &""'");
48867     }
48868     arg2 = ptr;
48869   }
48870   {
48871     std::string *ptr = (std::string *)0;
48872     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
48873     if (!SWIG_IsOK(res3)) {
48874       if (res3 == INT_MIN) SWIG_fail;
48875       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "WritableDatabase_remove_synonym" "', argument " "3"" of type '" "std::string const &""'");
48876     }
48877     if (!ptr) {
48878       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_remove_synonym" "', argument " "3"" of type '" "std::string const &""'");
48879     }
48880     arg3 = ptr;
48881   }
48882   {
48883     try {
48884       {
48885         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48886         ((Xapian::WritableDatabase const *)arg1)->remove_synonym((std::string const &)*arg2,(std::string const &)*arg3);
48887         SWIG_PYTHON_THREAD_END_ALLOW;
48888       }
48889     } catch (...) {
48890       Xapian::SetPythonException();
48891       SWIG_fail;
48892     }
48893   }
48894   resultobj = SWIG_Py_Void();
48895   if (SWIG_IsNewObj(res2)) delete arg2;
48896   if (SWIG_IsNewObj(res3)) delete arg3;
48897   return resultobj;
48898 fail:
48899   if (SWIG_IsNewObj(res2)) delete arg2;
48900   if (SWIG_IsNewObj(res3)) delete arg3;
48901   return NULL;
48902 }
48903 
48904 
_wrap_WritableDatabase_clear_synonyms(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48905 SWIGINTERN PyObject *_wrap_WritableDatabase_clear_synonyms(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48906   PyObject *resultobj = 0;
48907   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48908   std::string *arg2 = 0 ;
48909   void *argp1 = 0 ;
48910   int res1 = 0 ;
48911   int res2 = SWIG_OLDOBJ ;
48912   PyObject *swig_obj[2] ;
48913 
48914   if (!SWIG_Python_UnpackTuple(args,"WritableDatabase_clear_synonyms",2,2,swig_obj)) SWIG_fail;
48915   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48916   if (!SWIG_IsOK(res1)) {
48917     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_clear_synonyms" "', argument " "1"" of type '" "Xapian::WritableDatabase const *""'");
48918   }
48919   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48920   {
48921     std::string *ptr = (std::string *)0;
48922     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48923     if (!SWIG_IsOK(res2)) {
48924       if (res2 == INT_MIN) SWIG_fail;
48925       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_clear_synonyms" "', argument " "2"" of type '" "std::string const &""'");
48926     }
48927     if (!ptr) {
48928       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_clear_synonyms" "', argument " "2"" of type '" "std::string const &""'");
48929     }
48930     arg2 = ptr;
48931   }
48932   {
48933     try {
48934       {
48935         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48936         ((Xapian::WritableDatabase const *)arg1)->clear_synonyms((std::string const &)*arg2);
48937         SWIG_PYTHON_THREAD_END_ALLOW;
48938       }
48939     } catch (...) {
48940       Xapian::SetPythonException();
48941       SWIG_fail;
48942     }
48943   }
48944   resultobj = SWIG_Py_Void();
48945   if (SWIG_IsNewObj(res2)) delete arg2;
48946   return resultobj;
48947 fail:
48948   if (SWIG_IsNewObj(res2)) delete arg2;
48949   return NULL;
48950 }
48951 
48952 
_wrap_WritableDatabase_set_metadata(PyObject * SWIGUNUSEDPARM (self),PyObject * args)48953 SWIGINTERN PyObject *_wrap_WritableDatabase_set_metadata(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48954   PyObject *resultobj = 0;
48955   Xapian::WritableDatabase *arg1 = (Xapian::WritableDatabase *) 0 ;
48956   std::string *arg2 = 0 ;
48957   std::string *arg3 = 0 ;
48958   void *argp1 = 0 ;
48959   int res1 = 0 ;
48960   int res2 = SWIG_OLDOBJ ;
48961   int res3 = SWIG_OLDOBJ ;
48962   PyObject *swig_obj[3] ;
48963 
48964   if (!SWIG_Python_UnpackTuple(args,"WritableDatabase_set_metadata",3,3,swig_obj)) SWIG_fail;
48965   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Xapian__WritableDatabase, 0 |  0 );
48966   if (!SWIG_IsOK(res1)) {
48967     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WritableDatabase_set_metadata" "', argument " "1"" of type '" "Xapian::WritableDatabase *""'");
48968   }
48969   arg1 = reinterpret_cast< Xapian::WritableDatabase * >(argp1);
48970   {
48971     std::string *ptr = (std::string *)0;
48972     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
48973     if (!SWIG_IsOK(res2)) {
48974       if (res2 == INT_MIN) SWIG_fail;
48975       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WritableDatabase_set_metadata" "', argument " "2"" of type '" "std::string const &""'");
48976     }
48977     if (!ptr) {
48978       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_set_metadata" "', argument " "2"" of type '" "std::string const &""'");
48979     }
48980     arg2 = ptr;
48981   }
48982   {
48983     std::string *ptr = (std::string *)0;
48984     res3 = XapianSWIG_anystring_as_ptr(swig_obj[2], &ptr);
48985     if (!SWIG_IsOK(res3)) {
48986       if (res3 == INT_MIN) SWIG_fail;
48987       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "WritableDatabase_set_metadata" "', argument " "3"" of type '" "std::string const &""'");
48988     }
48989     if (!ptr) {
48990       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WritableDatabase_set_metadata" "', argument " "3"" of type '" "std::string const &""'");
48991     }
48992     arg3 = ptr;
48993   }
48994   {
48995     try {
48996       {
48997         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
48998         (arg1)->set_metadata((std::string const &)*arg2,(std::string const &)*arg3);
48999         SWIG_PYTHON_THREAD_END_ALLOW;
49000       }
49001     } catch (...) {
49002       Xapian::SetPythonException();
49003       SWIG_fail;
49004     }
49005   }
49006   resultobj = SWIG_Py_Void();
49007   if (SWIG_IsNewObj(res2)) delete arg2;
49008   if (SWIG_IsNewObj(res3)) delete arg3;
49009   return resultobj;
49010 fail:
49011   if (SWIG_IsNewObj(res2)) delete arg2;
49012   if (SWIG_IsNewObj(res3)) delete arg3;
49013   return NULL;
49014 }
49015 
49016 
WritableDatabase_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)49017 SWIGINTERN PyObject *WritableDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49018   PyObject *obj;
49019   if (!SWIG_Python_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
49020   SWIG_TypeNewClientData(SWIGTYPE_p_Xapian__WritableDatabase, SWIG_NewClientData(obj));
49021   return SWIG_Py_Void();
49022 }
49023 
WritableDatabase_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)49024 SWIGINTERN PyObject *WritableDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49025   return SWIG_Python_InitShadowInstance(args);
49026 }
49027 
_wrap_remote_open__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49028 SWIGINTERN PyObject *_wrap_remote_open__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49029   PyObject *resultobj = 0;
49030   std::string *arg1 = 0 ;
49031   unsigned int arg2 ;
49032   useconds_t arg3 ;
49033   useconds_t arg4 ;
49034   int res1 = SWIG_OLDOBJ ;
49035   unsigned int val2 ;
49036   int ecode2 = 0 ;
49037   unsigned int val3 ;
49038   int ecode3 = 0 ;
49039   unsigned int val4 ;
49040   int ecode4 = 0 ;
49041   Xapian::Database result;
49042 
49043   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
49044   {
49045     std::string *ptr = (std::string *)0;
49046     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49047     if (!SWIG_IsOK(res1)) {
49048       if (res1 == INT_MIN) SWIG_fail;
49049       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49050     }
49051     if (!ptr) {
49052       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49053     }
49054     arg1 = ptr;
49055   }
49056   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
49057   if (!SWIG_IsOK(ecode2)) {
49058     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open" "', argument " "2"" of type '" "unsigned int""'");
49059   }
49060   arg2 = static_cast< unsigned int >(val2);
49061   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
49062   if (!SWIG_IsOK(ecode3)) {
49063     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open" "', argument " "3"" of type '" "useconds_t""'");
49064   }
49065   arg3 = static_cast< useconds_t >(val3);
49066   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
49067   if (!SWIG_IsOK(ecode4)) {
49068     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "remote_open" "', argument " "4"" of type '" "useconds_t""'");
49069   }
49070   arg4 = static_cast< useconds_t >(val4);
49071   {
49072     try {
49073       {
49074         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49075         result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3,arg4);
49076         SWIG_PYTHON_THREAD_END_ALLOW;
49077       }
49078     } catch (...) {
49079       Xapian::SetPythonException();
49080       SWIG_fail;
49081     }
49082   }
49083   resultobj = SWIG_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN |  0 );
49084   if (SWIG_IsNewObj(res1)) delete arg1;
49085   return resultobj;
49086 fail:
49087   if (SWIG_IsNewObj(res1)) delete arg1;
49088   return NULL;
49089 }
49090 
49091 
_wrap_remote_open__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49092 SWIGINTERN PyObject *_wrap_remote_open__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49093   PyObject *resultobj = 0;
49094   std::string *arg1 = 0 ;
49095   unsigned int arg2 ;
49096   useconds_t arg3 ;
49097   int res1 = SWIG_OLDOBJ ;
49098   unsigned int val2 ;
49099   int ecode2 = 0 ;
49100   unsigned int val3 ;
49101   int ecode3 = 0 ;
49102   Xapian::Database result;
49103 
49104   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
49105   {
49106     std::string *ptr = (std::string *)0;
49107     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49108     if (!SWIG_IsOK(res1)) {
49109       if (res1 == INT_MIN) SWIG_fail;
49110       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49111     }
49112     if (!ptr) {
49113       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49114     }
49115     arg1 = ptr;
49116   }
49117   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
49118   if (!SWIG_IsOK(ecode2)) {
49119     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open" "', argument " "2"" of type '" "unsigned int""'");
49120   }
49121   arg2 = static_cast< unsigned int >(val2);
49122   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
49123   if (!SWIG_IsOK(ecode3)) {
49124     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open" "', argument " "3"" of type '" "useconds_t""'");
49125   }
49126   arg3 = static_cast< useconds_t >(val3);
49127   {
49128     try {
49129       {
49130         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49131         result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3);
49132         SWIG_PYTHON_THREAD_END_ALLOW;
49133       }
49134     } catch (...) {
49135       Xapian::SetPythonException();
49136       SWIG_fail;
49137     }
49138   }
49139   resultobj = SWIG_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN |  0 );
49140   if (SWIG_IsNewObj(res1)) delete arg1;
49141   return resultobj;
49142 fail:
49143   if (SWIG_IsNewObj(res1)) delete arg1;
49144   return NULL;
49145 }
49146 
49147 
_wrap_remote_open__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49148 SWIGINTERN PyObject *_wrap_remote_open__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49149   PyObject *resultobj = 0;
49150   std::string *arg1 = 0 ;
49151   unsigned int arg2 ;
49152   int res1 = SWIG_OLDOBJ ;
49153   unsigned int val2 ;
49154   int ecode2 = 0 ;
49155   Xapian::Database result;
49156 
49157   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
49158   {
49159     std::string *ptr = (std::string *)0;
49160     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49161     if (!SWIG_IsOK(res1)) {
49162       if (res1 == INT_MIN) SWIG_fail;
49163       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49164     }
49165     if (!ptr) {
49166       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49167     }
49168     arg1 = ptr;
49169   }
49170   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
49171   if (!SWIG_IsOK(ecode2)) {
49172     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open" "', argument " "2"" of type '" "unsigned int""'");
49173   }
49174   arg2 = static_cast< unsigned int >(val2);
49175   {
49176     try {
49177       {
49178         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49179         result = Xapian::Remote::open((std::string const &)*arg1,arg2);
49180         SWIG_PYTHON_THREAD_END_ALLOW;
49181       }
49182     } catch (...) {
49183       Xapian::SetPythonException();
49184       SWIG_fail;
49185     }
49186   }
49187   resultobj = SWIG_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN |  0 );
49188   if (SWIG_IsNewObj(res1)) delete arg1;
49189   return resultobj;
49190 fail:
49191   if (SWIG_IsNewObj(res1)) delete arg1;
49192   return NULL;
49193 }
49194 
49195 
_wrap_remote_open_writable__SWIG_0(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49196 SWIGINTERN PyObject *_wrap_remote_open_writable__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49197   PyObject *resultobj = 0;
49198   std::string *arg1 = 0 ;
49199   unsigned int arg2 ;
49200   useconds_t arg3 ;
49201   useconds_t arg4 ;
49202   int arg5 ;
49203   int res1 = SWIG_OLDOBJ ;
49204   unsigned int val2 ;
49205   int ecode2 = 0 ;
49206   unsigned int val3 ;
49207   int ecode3 = 0 ;
49208   unsigned int val4 ;
49209   int ecode4 = 0 ;
49210   int val5 ;
49211   int ecode5 = 0 ;
49212   Xapian::WritableDatabase result;
49213 
49214   if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
49215   {
49216     std::string *ptr = (std::string *)0;
49217     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49218     if (!SWIG_IsOK(res1)) {
49219       if (res1 == INT_MIN) SWIG_fail;
49220       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49221     }
49222     if (!ptr) {
49223       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49224     }
49225     arg1 = ptr;
49226   }
49227   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
49228   if (!SWIG_IsOK(ecode2)) {
49229     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "unsigned int""'");
49230   }
49231   arg2 = static_cast< unsigned int >(val2);
49232   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
49233   if (!SWIG_IsOK(ecode3)) {
49234     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open_writable" "', argument " "3"" of type '" "useconds_t""'");
49235   }
49236   arg3 = static_cast< useconds_t >(val3);
49237   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
49238   if (!SWIG_IsOK(ecode4)) {
49239     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "remote_open_writable" "', argument " "4"" of type '" "useconds_t""'");
49240   }
49241   arg4 = static_cast< useconds_t >(val4);
49242   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
49243   if (!SWIG_IsOK(ecode5)) {
49244     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "remote_open_writable" "', argument " "5"" of type '" "int""'");
49245   }
49246   arg5 = static_cast< int >(val5);
49247   {
49248     try {
49249       {
49250         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49251         result = Xapian::Remote::open_writable((std::string const &)*arg1,arg2,arg3,arg4,arg5);
49252         SWIG_PYTHON_THREAD_END_ALLOW;
49253       }
49254     } catch (...) {
49255       Xapian::SetPythonException();
49256       SWIG_fail;
49257     }
49258   }
49259   resultobj = SWIG_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN |  0 );
49260   if (SWIG_IsNewObj(res1)) delete arg1;
49261   return resultobj;
49262 fail:
49263   if (SWIG_IsNewObj(res1)) delete arg1;
49264   return NULL;
49265 }
49266 
49267 
_wrap_remote_open_writable__SWIG_1(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49268 SWIGINTERN PyObject *_wrap_remote_open_writable__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49269   PyObject *resultobj = 0;
49270   std::string *arg1 = 0 ;
49271   unsigned int arg2 ;
49272   useconds_t arg3 ;
49273   useconds_t arg4 ;
49274   int res1 = SWIG_OLDOBJ ;
49275   unsigned int val2 ;
49276   int ecode2 = 0 ;
49277   unsigned int val3 ;
49278   int ecode3 = 0 ;
49279   unsigned int val4 ;
49280   int ecode4 = 0 ;
49281   Xapian::WritableDatabase result;
49282 
49283   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
49284   {
49285     std::string *ptr = (std::string *)0;
49286     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49287     if (!SWIG_IsOK(res1)) {
49288       if (res1 == INT_MIN) SWIG_fail;
49289       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49290     }
49291     if (!ptr) {
49292       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49293     }
49294     arg1 = ptr;
49295   }
49296   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
49297   if (!SWIG_IsOK(ecode2)) {
49298     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "unsigned int""'");
49299   }
49300   arg2 = static_cast< unsigned int >(val2);
49301   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
49302   if (!SWIG_IsOK(ecode3)) {
49303     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open_writable" "', argument " "3"" of type '" "useconds_t""'");
49304   }
49305   arg3 = static_cast< useconds_t >(val3);
49306   ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
49307   if (!SWIG_IsOK(ecode4)) {
49308     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "remote_open_writable" "', argument " "4"" of type '" "useconds_t""'");
49309   }
49310   arg4 = static_cast< useconds_t >(val4);
49311   {
49312     try {
49313       {
49314         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49315         result = Xapian::Remote::open_writable((std::string const &)*arg1,arg2,arg3,arg4);
49316         SWIG_PYTHON_THREAD_END_ALLOW;
49317       }
49318     } catch (...) {
49319       Xapian::SetPythonException();
49320       SWIG_fail;
49321     }
49322   }
49323   resultobj = SWIG_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN |  0 );
49324   if (SWIG_IsNewObj(res1)) delete arg1;
49325   return resultobj;
49326 fail:
49327   if (SWIG_IsNewObj(res1)) delete arg1;
49328   return NULL;
49329 }
49330 
49331 
_wrap_remote_open_writable__SWIG_2(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49332 SWIGINTERN PyObject *_wrap_remote_open_writable__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49333   PyObject *resultobj = 0;
49334   std::string *arg1 = 0 ;
49335   unsigned int arg2 ;
49336   useconds_t arg3 ;
49337   int res1 = SWIG_OLDOBJ ;
49338   unsigned int val2 ;
49339   int ecode2 = 0 ;
49340   unsigned int val3 ;
49341   int ecode3 = 0 ;
49342   Xapian::WritableDatabase result;
49343 
49344   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
49345   {
49346     std::string *ptr = (std::string *)0;
49347     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49348     if (!SWIG_IsOK(res1)) {
49349       if (res1 == INT_MIN) SWIG_fail;
49350       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49351     }
49352     if (!ptr) {
49353       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49354     }
49355     arg1 = ptr;
49356   }
49357   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
49358   if (!SWIG_IsOK(ecode2)) {
49359     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "unsigned int""'");
49360   }
49361   arg2 = static_cast< unsigned int >(val2);
49362   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
49363   if (!SWIG_IsOK(ecode3)) {
49364     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open_writable" "', argument " "3"" of type '" "useconds_t""'");
49365   }
49366   arg3 = static_cast< useconds_t >(val3);
49367   {
49368     try {
49369       {
49370         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49371         result = Xapian::Remote::open_writable((std::string const &)*arg1,arg2,arg3);
49372         SWIG_PYTHON_THREAD_END_ALLOW;
49373       }
49374     } catch (...) {
49375       Xapian::SetPythonException();
49376       SWIG_fail;
49377     }
49378   }
49379   resultobj = SWIG_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN |  0 );
49380   if (SWIG_IsNewObj(res1)) delete arg1;
49381   return resultobj;
49382 fail:
49383   if (SWIG_IsNewObj(res1)) delete arg1;
49384   return NULL;
49385 }
49386 
49387 
_wrap_remote_open_writable__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49388 SWIGINTERN PyObject *_wrap_remote_open_writable__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49389   PyObject *resultobj = 0;
49390   std::string *arg1 = 0 ;
49391   unsigned int arg2 ;
49392   int res1 = SWIG_OLDOBJ ;
49393   unsigned int val2 ;
49394   int ecode2 = 0 ;
49395   Xapian::WritableDatabase result;
49396 
49397   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
49398   {
49399     std::string *ptr = (std::string *)0;
49400     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49401     if (!SWIG_IsOK(res1)) {
49402       if (res1 == INT_MIN) SWIG_fail;
49403       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49404     }
49405     if (!ptr) {
49406       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49407     }
49408     arg1 = ptr;
49409   }
49410   ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
49411   if (!SWIG_IsOK(ecode2)) {
49412     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "unsigned int""'");
49413   }
49414   arg2 = static_cast< unsigned int >(val2);
49415   {
49416     try {
49417       {
49418         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49419         result = Xapian::Remote::open_writable((std::string const &)*arg1,arg2);
49420         SWIG_PYTHON_THREAD_END_ALLOW;
49421       }
49422     } catch (...) {
49423       Xapian::SetPythonException();
49424       SWIG_fail;
49425     }
49426   }
49427   resultobj = SWIG_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN |  0 );
49428   if (SWIG_IsNewObj(res1)) delete arg1;
49429   return resultobj;
49430 fail:
49431   if (SWIG_IsNewObj(res1)) delete arg1;
49432   return NULL;
49433 }
49434 
49435 
_wrap_remote_open__SWIG_3(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49436 SWIGINTERN PyObject *_wrap_remote_open__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49437   PyObject *resultobj = 0;
49438   std::string *arg1 = 0 ;
49439   std::string *arg2 = 0 ;
49440   useconds_t arg3 ;
49441   int res1 = SWIG_OLDOBJ ;
49442   int res2 = SWIG_OLDOBJ ;
49443   unsigned int val3 ;
49444   int ecode3 = 0 ;
49445   Xapian::Database result;
49446 
49447   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
49448   {
49449     std::string *ptr = (std::string *)0;
49450     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49451     if (!SWIG_IsOK(res1)) {
49452       if (res1 == INT_MIN) SWIG_fail;
49453       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49454     }
49455     if (!ptr) {
49456       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49457     }
49458     arg1 = ptr;
49459   }
49460   {
49461     std::string *ptr = (std::string *)0;
49462     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
49463     if (!SWIG_IsOK(res2)) {
49464       if (res2 == INT_MIN) SWIG_fail;
49465       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "remote_open" "', argument " "2"" of type '" "std::string const &""'");
49466     }
49467     if (!ptr) {
49468       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "2"" of type '" "std::string const &""'");
49469     }
49470     arg2 = ptr;
49471   }
49472   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
49473   if (!SWIG_IsOK(ecode3)) {
49474     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open" "', argument " "3"" of type '" "useconds_t""'");
49475   }
49476   arg3 = static_cast< useconds_t >(val3);
49477   {
49478     try {
49479       {
49480         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49481         result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2,arg3);
49482         SWIG_PYTHON_THREAD_END_ALLOW;
49483       }
49484     } catch (...) {
49485       Xapian::SetPythonException();
49486       SWIG_fail;
49487     }
49488   }
49489   resultobj = SWIG_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN |  0 );
49490   if (SWIG_IsNewObj(res1)) delete arg1;
49491   if (SWIG_IsNewObj(res2)) delete arg2;
49492   return resultobj;
49493 fail:
49494   if (SWIG_IsNewObj(res1)) delete arg1;
49495   if (SWIG_IsNewObj(res2)) delete arg2;
49496   return NULL;
49497 }
49498 
49499 
_wrap_remote_open__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49500 SWIGINTERN PyObject *_wrap_remote_open__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49501   PyObject *resultobj = 0;
49502   std::string *arg1 = 0 ;
49503   std::string *arg2 = 0 ;
49504   int res1 = SWIG_OLDOBJ ;
49505   int res2 = SWIG_OLDOBJ ;
49506   Xapian::Database result;
49507 
49508   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
49509   {
49510     std::string *ptr = (std::string *)0;
49511     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49512     if (!SWIG_IsOK(res1)) {
49513       if (res1 == INT_MIN) SWIG_fail;
49514       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49515     }
49516     if (!ptr) {
49517       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "1"" of type '" "std::string const &""'");
49518     }
49519     arg1 = ptr;
49520   }
49521   {
49522     std::string *ptr = (std::string *)0;
49523     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
49524     if (!SWIG_IsOK(res2)) {
49525       if (res2 == INT_MIN) SWIG_fail;
49526       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "remote_open" "', argument " "2"" of type '" "std::string const &""'");
49527     }
49528     if (!ptr) {
49529       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open" "', argument " "2"" of type '" "std::string const &""'");
49530     }
49531     arg2 = ptr;
49532   }
49533   {
49534     try {
49535       {
49536         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49537         result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2);
49538         SWIG_PYTHON_THREAD_END_ALLOW;
49539       }
49540     } catch (...) {
49541       Xapian::SetPythonException();
49542       SWIG_fail;
49543     }
49544   }
49545   resultobj = SWIG_NewPointerObj((new Xapian::Database(static_cast< const Xapian::Database& >(result))), SWIGTYPE_p_Xapian__Database, SWIG_POINTER_OWN |  0 );
49546   if (SWIG_IsNewObj(res1)) delete arg1;
49547   if (SWIG_IsNewObj(res2)) delete arg2;
49548   return resultobj;
49549 fail:
49550   if (SWIG_IsNewObj(res1)) delete arg1;
49551   if (SWIG_IsNewObj(res2)) delete arg2;
49552   return NULL;
49553 }
49554 
49555 
_wrap_remote_open(PyObject * self,PyObject * args)49556 SWIGINTERN PyObject *_wrap_remote_open(PyObject *self, PyObject *args) {
49557   Py_ssize_t argc;
49558   PyObject *argv[5] = {
49559     0
49560   };
49561 
49562   if (!(argc = SWIG_Python_UnpackTuple(args,"remote_open",0,4,argv))) SWIG_fail;
49563   --argc;
49564   if (argc == 2) {
49565     int _v = 0;
49566     {
49567       {
49568         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
49569         _v = SWIG_CheckState(res);
49570       }
49571     }
49572     if (!_v) goto check_1;
49573     return _wrap_remote_open__SWIG_2(self, argc, argv);
49574   }
49575 check_1:
49576 
49577   if (argc == 2) {
49578     return _wrap_remote_open__SWIG_4(self, argc, argv);
49579   }
49580   if (argc == 3) {
49581     int _v = 0;
49582     {
49583       {
49584         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
49585         _v = SWIG_CheckState(res);
49586       }
49587     }
49588     if (!_v) goto check_3;
49589     return _wrap_remote_open__SWIG_1(self, argc, argv);
49590   }
49591 check_3:
49592 
49593   if (argc == 3) {
49594     return _wrap_remote_open__SWIG_3(self, argc, argv);
49595   }
49596   if (argc == 4) {
49597     return _wrap_remote_open__SWIG_0(self, argc, argv);
49598   }
49599 
49600 fail:
49601   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'remote_open'.\n"
49602     "  Possible C/C++ prototypes are:\n"
49603     "    Xapian::Remote::open(std::string const &,unsigned int,useconds_t,useconds_t)\n"
49604     "    Xapian::Remote::open(std::string const &,unsigned int,useconds_t)\n"
49605     "    Xapian::Remote::open(std::string const &,unsigned int)\n"
49606     "    Xapian::Remote::open(std::string const &,std::string const &,useconds_t)\n"
49607     "    Xapian::Remote::open(std::string const &,std::string const &)\n");
49608   return 0;
49609 }
49610 
49611 
_wrap_remote_open_writable__SWIG_4(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49612 SWIGINTERN PyObject *_wrap_remote_open_writable__SWIG_4(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49613   PyObject *resultobj = 0;
49614   std::string *arg1 = 0 ;
49615   std::string *arg2 = 0 ;
49616   useconds_t arg3 ;
49617   int arg4 ;
49618   int res1 = SWIG_OLDOBJ ;
49619   int res2 = SWIG_OLDOBJ ;
49620   unsigned int val3 ;
49621   int ecode3 = 0 ;
49622   int val4 ;
49623   int ecode4 = 0 ;
49624   Xapian::WritableDatabase result;
49625 
49626   if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
49627   {
49628     std::string *ptr = (std::string *)0;
49629     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49630     if (!SWIG_IsOK(res1)) {
49631       if (res1 == INT_MIN) SWIG_fail;
49632       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49633     }
49634     if (!ptr) {
49635       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49636     }
49637     arg1 = ptr;
49638   }
49639   {
49640     std::string *ptr = (std::string *)0;
49641     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
49642     if (!SWIG_IsOK(res2)) {
49643       if (res2 == INT_MIN) SWIG_fail;
49644       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'");
49645     }
49646     if (!ptr) {
49647       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'");
49648     }
49649     arg2 = ptr;
49650   }
49651   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
49652   if (!SWIG_IsOK(ecode3)) {
49653     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open_writable" "', argument " "3"" of type '" "useconds_t""'");
49654   }
49655   arg3 = static_cast< useconds_t >(val3);
49656   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
49657   if (!SWIG_IsOK(ecode4)) {
49658     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "remote_open_writable" "', argument " "4"" of type '" "int""'");
49659   }
49660   arg4 = static_cast< int >(val4);
49661   {
49662     try {
49663       {
49664         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49665         result = Xapian::Remote::open_writable((std::string const &)*arg1,(std::string const &)*arg2,arg3,arg4);
49666         SWIG_PYTHON_THREAD_END_ALLOW;
49667       }
49668     } catch (...) {
49669       Xapian::SetPythonException();
49670       SWIG_fail;
49671     }
49672   }
49673   resultobj = SWIG_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN |  0 );
49674   if (SWIG_IsNewObj(res1)) delete arg1;
49675   if (SWIG_IsNewObj(res2)) delete arg2;
49676   return resultobj;
49677 fail:
49678   if (SWIG_IsNewObj(res1)) delete arg1;
49679   if (SWIG_IsNewObj(res2)) delete arg2;
49680   return NULL;
49681 }
49682 
49683 
_wrap_remote_open_writable__SWIG_5(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49684 SWIGINTERN PyObject *_wrap_remote_open_writable__SWIG_5(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49685   PyObject *resultobj = 0;
49686   std::string *arg1 = 0 ;
49687   std::string *arg2 = 0 ;
49688   useconds_t arg3 ;
49689   int res1 = SWIG_OLDOBJ ;
49690   int res2 = SWIG_OLDOBJ ;
49691   unsigned int val3 ;
49692   int ecode3 = 0 ;
49693   Xapian::WritableDatabase result;
49694 
49695   if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
49696   {
49697     std::string *ptr = (std::string *)0;
49698     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49699     if (!SWIG_IsOK(res1)) {
49700       if (res1 == INT_MIN) SWIG_fail;
49701       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49702     }
49703     if (!ptr) {
49704       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49705     }
49706     arg1 = ptr;
49707   }
49708   {
49709     std::string *ptr = (std::string *)0;
49710     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
49711     if (!SWIG_IsOK(res2)) {
49712       if (res2 == INT_MIN) SWIG_fail;
49713       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'");
49714     }
49715     if (!ptr) {
49716       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'");
49717     }
49718     arg2 = ptr;
49719   }
49720   ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
49721   if (!SWIG_IsOK(ecode3)) {
49722     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "remote_open_writable" "', argument " "3"" of type '" "useconds_t""'");
49723   }
49724   arg3 = static_cast< useconds_t >(val3);
49725   {
49726     try {
49727       {
49728         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49729         result = Xapian::Remote::open_writable((std::string const &)*arg1,(std::string const &)*arg2,arg3);
49730         SWIG_PYTHON_THREAD_END_ALLOW;
49731       }
49732     } catch (...) {
49733       Xapian::SetPythonException();
49734       SWIG_fail;
49735     }
49736   }
49737   resultobj = SWIG_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN |  0 );
49738   if (SWIG_IsNewObj(res1)) delete arg1;
49739   if (SWIG_IsNewObj(res2)) delete arg2;
49740   return resultobj;
49741 fail:
49742   if (SWIG_IsNewObj(res1)) delete arg1;
49743   if (SWIG_IsNewObj(res2)) delete arg2;
49744   return NULL;
49745 }
49746 
49747 
_wrap_remote_open_writable__SWIG_6(PyObject * SWIGUNUSEDPARM (self),int nobjs,PyObject ** swig_obj)49748 SWIGINTERN PyObject *_wrap_remote_open_writable__SWIG_6(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
49749   PyObject *resultobj = 0;
49750   std::string *arg1 = 0 ;
49751   std::string *arg2 = 0 ;
49752   int res1 = SWIG_OLDOBJ ;
49753   int res2 = SWIG_OLDOBJ ;
49754   Xapian::WritableDatabase result;
49755 
49756   if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
49757   {
49758     std::string *ptr = (std::string *)0;
49759     res1 = XapianSWIG_anystring_as_ptr(swig_obj[0], &ptr);
49760     if (!SWIG_IsOK(res1)) {
49761       if (res1 == INT_MIN) SWIG_fail;
49762       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49763     }
49764     if (!ptr) {
49765       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "1"" of type '" "std::string const &""'");
49766     }
49767     arg1 = ptr;
49768   }
49769   {
49770     std::string *ptr = (std::string *)0;
49771     res2 = XapianSWIG_anystring_as_ptr(swig_obj[1], &ptr);
49772     if (!SWIG_IsOK(res2)) {
49773       if (res2 == INT_MIN) SWIG_fail;
49774       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'");
49775     }
49776     if (!ptr) {
49777       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "remote_open_writable" "', argument " "2"" of type '" "std::string const &""'");
49778     }
49779     arg2 = ptr;
49780   }
49781   {
49782     try {
49783       {
49784         SWIG_PYTHON_THREAD_BEGIN_ALLOW;
49785         result = Xapian::Remote::open_writable((std::string const &)*arg1,(std::string const &)*arg2);
49786         SWIG_PYTHON_THREAD_END_ALLOW;
49787       }
49788     } catch (...) {
49789       Xapian::SetPythonException();
49790       SWIG_fail;
49791     }
49792   }
49793   resultobj = SWIG_NewPointerObj((new Xapian::WritableDatabase(static_cast< const Xapian::WritableDatabase& >(result))), SWIGTYPE_p_Xapian__WritableDatabase, SWIG_POINTER_OWN |  0 );
49794   if (SWIG_IsNewObj(res1)) delete arg1;
49795   if (SWIG_IsNewObj(res2)) delete arg2;
49796   return resultobj;
49797 fail:
49798   if (SWIG_IsNewObj(res1)) delete arg1;
49799   if (SWIG_IsNewObj(res2)) delete arg2;
49800   return NULL;
49801 }
49802 
49803 
_wrap_remote_open_writable(PyObject * self,PyObject * args)49804 SWIGINTERN PyObject *_wrap_remote_open_writable(PyObject *self, PyObject *args) {
49805   Py_ssize_t argc;
49806   PyObject *argv[6] = {
49807     0
49808   };
49809 
49810   if (!(argc = SWIG_Python_UnpackTuple(args,"remote_open_writable",0,5,argv))) SWIG_fail;
49811   --argc;
49812   if (argc == 2) {
49813     int _v = 0;
49814     {
49815       {
49816         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
49817         _v = SWIG_CheckState(res);
49818       }
49819     }
49820     if (!_v) goto check_1;
49821     return _wrap_remote_open_writable__SWIG_3(self, argc, argv);
49822   }
49823 check_1:
49824 
49825   if (argc == 2) {
49826     return _wrap_remote_open_writable__SWIG_6(self, argc, argv);
49827   }
49828   if (argc == 3) {
49829     int _v = 0;
49830     {
49831       {
49832         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
49833         _v = SWIG_CheckState(res);
49834       }
49835     }
49836     if (!_v) goto check_3;
49837     return _wrap_remote_open_writable__SWIG_2(self, argc, argv);
49838   }
49839 check_3:
49840 
49841   if (argc == 3) {
49842     return _wrap_remote_open_writable__SWIG_5(self, argc, argv);
49843   }
49844   if (argc == 4) {
49845     int _v = 0;
49846     {
49847       {
49848         int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
49849         _v = SWIG_CheckState(res);
49850       }
49851     }
49852     if (!_v) goto check_5;
49853     {
49854       {
49855         int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
49856         _v = SWIG_CheckState(res);
49857       }
49858     }
49859     if (!_v) goto check_5;
49860     return _wrap_remote_open_writable__SWIG_1(self, argc, argv);
49861   }
49862 check_5:
49863 
49864   if (argc == 4) {
49865     return _wrap_remote_open_writable__SWIG_4(self, argc, argv);
49866   }
49867   if (argc == 5) {
49868     return _wrap_remote_open_writable__SWIG_0(self, argc, argv);
49869   }
49870 
49871 fail:
49872   SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'remote_open_writable'.\n"
49873     "  Possible C/C++ prototypes are:\n"
49874     "    Xapian::Remote::open_writable(std::string const &,unsigned int,useconds_t,useconds_t,int)\n"
49875     "    Xapian::Remote::open_writable(std::string const &,unsigned int,useconds_t,useconds_t)\n"
49876     "    Xapian::Remote::open_writable(std::string const &,unsigned int,useconds_t)\n"
49877     "    Xapian::Remote::open_writable(std::string const &,unsigned int)\n"
49878     "    Xapian::Remote::open_writable(std::string const &,std::string const &,useconds_t,int)\n"
49879     "    Xapian::Remote::open_writable(std::string const &,std::string const &,useconds_t)\n"
49880     "    Xapian::Remote::open_writable(std::string const &,std::string const &)\n");
49881   return 0;
49882 }
49883 
49884 
49885 static PyMethodDef SwigMethods[] = {
49886 	 { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL},
49887 	 { (char *)"delete_SwigPyIterator", (PyCFunction)_wrap_delete_SwigPyIterator, METH_O, NULL},
49888 	 { (char *)"SwigPyIterator_value", (PyCFunction)_wrap_SwigPyIterator_value, METH_O, NULL},
49889 	 { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS, NULL},
49890 	 { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS, NULL},
49891 	 { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS, NULL},
49892 	 { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS, NULL},
49893 	 { (char *)"SwigPyIterator_copy", (PyCFunction)_wrap_SwigPyIterator_copy, METH_O, NULL},
49894 	 { (char *)"SwigPyIterator_next", (PyCFunction)_wrap_SwigPyIterator_next, METH_O, NULL},
49895 	 { (char *)"SwigPyIterator___next__", (PyCFunction)_wrap_SwigPyIterator___next__, METH_O, NULL},
49896 	 { (char *)"SwigPyIterator_previous", (PyCFunction)_wrap_SwigPyIterator_previous, METH_O, NULL},
49897 	 { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS, NULL},
49898 	 { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS, NULL},
49899 	 { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS, NULL},
49900 	 { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS, NULL},
49901 	 { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS, NULL},
49902 	 { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS, NULL},
49903 	 { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS, NULL},
49904 	 { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS, NULL},
49905 	 { (char *)"Error_get_type", (PyCFunction)_wrap_Error_get_type, METH_O, (char *)"\n"
49906 		"\n"
49907 		"\n"
49908 		"The type of this error (e.g. \"DocNotFoundError\".)\n"
49909 		"\n"
49910 		"const char* Xapian::Error::get_type() const \n"
49911 		""},
49912 	 { (char *)"Error_get_msg", (PyCFunction)_wrap_Error_get_msg, METH_O, (char *)"\n"
49913 		"\n"
49914 		"\n"
49915 		"Message giving details of the error, intended for human consumption.\n"
49916 		"\n"
49917 		"const std::string& Xapian::Error::get_msg() const \n"
49918 		""},
49919 	 { (char *)"Error_get_context", (PyCFunction)_wrap_Error_get_context, METH_O, (char *)"\n"
49920 		"\n"
49921 		"\n"
49922 		"Optional context information.\n"
49923 		"\n"
49924 		"const std::string& Xapian::Error::get_context() const\n"
49925 		"\n"
49926 		"This context is intended for use by Xapian::ErrorHandler (for example\n"
49927 		"so it can know which remote server is unreliable and report the\n"
49928 		"problem and remove that server from those being searched). But it's\n"
49929 		"typically a plain-text string, and so also fit for human consumption.\n"
49930 		"\n"
49931 		""},
49932 	 { (char *)"Error_get_error_string", (PyCFunction)_wrap_Error_get_error_string, METH_O, (char *)"\n"
49933 		"\n"
49934 		"\n"
49935 		"Returns any system error string associated with this exception.\n"
49936 		"\n"
49937 		"const char* Xapian::Error::get_error_string() const\n"
49938 		"\n"
49939 		"The system error string may come from errno, h_errno (on UNIX), or\n"
49940 		"GetLastError() (on MS Windows). If there is no associated system error\n"
49941 		"string, NULL is returned. \n"
49942 		""},
49943 	 { (char *)"Error___str__", (PyCFunction)_wrap_Error___str__, METH_O, NULL},
49944 	 { (char *)"delete_Error", (PyCFunction)_wrap_delete_Error, METH_O, NULL},
49945 	 { (char *)"Error_swigregister", Error_swigregister, METH_VARARGS, NULL},
49946 	 { (char *)"delete_LogicError", (PyCFunction)_wrap_delete_LogicError, METH_O, NULL},
49947 	 { (char *)"LogicError_swigregister", LogicError_swigregister, METH_VARARGS, NULL},
49948 	 { (char *)"delete_RuntimeError", (PyCFunction)_wrap_delete_RuntimeError, METH_O, NULL},
49949 	 { (char *)"RuntimeError_swigregister", RuntimeError_swigregister, METH_VARARGS, NULL},
49950 	 { (char *)"new_AssertionError", _wrap_new_AssertionError, METH_VARARGS, (char *)"\n"
49951 		"\n"
49952 		"\n"
49953 		"Construct from message and errno value.\n"
49954 		"\n"
49955 		"Xapian::AssertionError::AssertionError(const std::string &msg_, int\n"
49956 		"errno_)\n"
49957 		"\n"
49958 		"Parameters:\n"
49959 		"-----------\n"
49960 		"\n"
49961 		"msg_:  Message giving details of the error, intended for human\n"
49962 		"consumption.\n"
49963 		"\n"
49964 		"errno_:  Optional errno value associated with this error. \n"
49965 		""},
49966 	 { (char *)"delete_AssertionError", (PyCFunction)_wrap_delete_AssertionError, METH_O, NULL},
49967 	 { (char *)"AssertionError_swigregister", AssertionError_swigregister, METH_VARARGS, NULL},
49968 	 { (char *)"AssertionError_swiginit", AssertionError_swiginit, METH_VARARGS, NULL},
49969 	 { (char *)"new_InvalidArgumentError", _wrap_new_InvalidArgumentError, METH_VARARGS, (char *)"\n"
49970 		"\n"
49971 		"\n"
49972 		"Construct from message and errno value.\n"
49973 		"\n"
49974 		"Xapian::InvalidArgumentError::InvalidArgumentError(const std::string\n"
49975 		"&msg_, int errno_)\n"
49976 		"\n"
49977 		"Parameters:\n"
49978 		"-----------\n"
49979 		"\n"
49980 		"msg_:  Message giving details of the error, intended for human\n"
49981 		"consumption.\n"
49982 		"\n"
49983 		"errno_:  Optional errno value associated with this error. \n"
49984 		""},
49985 	 { (char *)"delete_InvalidArgumentError", (PyCFunction)_wrap_delete_InvalidArgumentError, METH_O, NULL},
49986 	 { (char *)"InvalidArgumentError_swigregister", InvalidArgumentError_swigregister, METH_VARARGS, NULL},
49987 	 { (char *)"InvalidArgumentError_swiginit", InvalidArgumentError_swiginit, METH_VARARGS, NULL},
49988 	 { (char *)"new_InvalidOperationError", _wrap_new_InvalidOperationError, METH_VARARGS, (char *)"\n"
49989 		"\n"
49990 		"\n"
49991 		"Construct from message and errno value.\n"
49992 		"\n"
49993 		"Xapian::InvalidOperationError::InvalidOperationError(const std::string\n"
49994 		"&msg_, int errno_)\n"
49995 		"\n"
49996 		"Parameters:\n"
49997 		"-----------\n"
49998 		"\n"
49999 		"msg_:  Message giving details of the error, intended for human\n"
50000 		"consumption.\n"
50001 		"\n"
50002 		"errno_:  Optional errno value associated with this error. \n"
50003 		""},
50004 	 { (char *)"delete_InvalidOperationError", (PyCFunction)_wrap_delete_InvalidOperationError, METH_O, NULL},
50005 	 { (char *)"InvalidOperationError_swigregister", InvalidOperationError_swigregister, METH_VARARGS, NULL},
50006 	 { (char *)"InvalidOperationError_swiginit", InvalidOperationError_swiginit, METH_VARARGS, NULL},
50007 	 { (char *)"new_UnimplementedError", _wrap_new_UnimplementedError, METH_VARARGS, (char *)"\n"
50008 		"\n"
50009 		"\n"
50010 		"Construct from message and errno value.\n"
50011 		"\n"
50012 		"Xapian::UnimplementedError::UnimplementedError(const std::string\n"
50013 		"&msg_, int errno_)\n"
50014 		"\n"
50015 		"Parameters:\n"
50016 		"-----------\n"
50017 		"\n"
50018 		"msg_:  Message giving details of the error, intended for human\n"
50019 		"consumption.\n"
50020 		"\n"
50021 		"errno_:  Optional errno value associated with this error. \n"
50022 		""},
50023 	 { (char *)"delete_UnimplementedError", (PyCFunction)_wrap_delete_UnimplementedError, METH_O, NULL},
50024 	 { (char *)"UnimplementedError_swigregister", UnimplementedError_swigregister, METH_VARARGS, NULL},
50025 	 { (char *)"UnimplementedError_swiginit", UnimplementedError_swiginit, METH_VARARGS, NULL},
50026 	 { (char *)"new_DatabaseError", _wrap_new_DatabaseError, METH_VARARGS, (char *)"\n"
50027 		"\n"
50028 		"\n"
50029 		"Construct from message and errno value.\n"
50030 		"\n"
50031 		"Xapian::DatabaseError::DatabaseError(const std::string &msg_, int\n"
50032 		"errno_)\n"
50033 		"\n"
50034 		"Parameters:\n"
50035 		"-----------\n"
50036 		"\n"
50037 		"msg_:  Message giving details of the error, intended for human\n"
50038 		"consumption.\n"
50039 		"\n"
50040 		"errno_:  Optional errno value associated with this error. \n"
50041 		""},
50042 	 { (char *)"delete_DatabaseError", (PyCFunction)_wrap_delete_DatabaseError, METH_O, NULL},
50043 	 { (char *)"DatabaseError_swigregister", DatabaseError_swigregister, METH_VARARGS, NULL},
50044 	 { (char *)"DatabaseError_swiginit", DatabaseError_swiginit, METH_VARARGS, NULL},
50045 	 { (char *)"new_DatabaseCorruptError", _wrap_new_DatabaseCorruptError, METH_VARARGS, (char *)"\n"
50046 		"\n"
50047 		"\n"
50048 		"Construct from message and errno value.\n"
50049 		"\n"
50050 		"Xapian::DatabaseCorruptError::DatabaseCorruptError(const std::string\n"
50051 		"&msg_, int errno_)\n"
50052 		"\n"
50053 		"Parameters:\n"
50054 		"-----------\n"
50055 		"\n"
50056 		"msg_:  Message giving details of the error, intended for human\n"
50057 		"consumption.\n"
50058 		"\n"
50059 		"errno_:  Optional errno value associated with this error. \n"
50060 		""},
50061 	 { (char *)"delete_DatabaseCorruptError", (PyCFunction)_wrap_delete_DatabaseCorruptError, METH_O, NULL},
50062 	 { (char *)"DatabaseCorruptError_swigregister", DatabaseCorruptError_swigregister, METH_VARARGS, NULL},
50063 	 { (char *)"DatabaseCorruptError_swiginit", DatabaseCorruptError_swiginit, METH_VARARGS, NULL},
50064 	 { (char *)"new_DatabaseCreateError", _wrap_new_DatabaseCreateError, METH_VARARGS, (char *)"\n"
50065 		"\n"
50066 		"\n"
50067 		"Construct from message and errno value.\n"
50068 		"\n"
50069 		"Xapian::DatabaseCreateError::DatabaseCreateError(const std::string\n"
50070 		"&msg_, int errno_)\n"
50071 		"\n"
50072 		"Parameters:\n"
50073 		"-----------\n"
50074 		"\n"
50075 		"msg_:  Message giving details of the error, intended for human\n"
50076 		"consumption.\n"
50077 		"\n"
50078 		"errno_:  Optional errno value associated with this error. \n"
50079 		""},
50080 	 { (char *)"delete_DatabaseCreateError", (PyCFunction)_wrap_delete_DatabaseCreateError, METH_O, NULL},
50081 	 { (char *)"DatabaseCreateError_swigregister", DatabaseCreateError_swigregister, METH_VARARGS, NULL},
50082 	 { (char *)"DatabaseCreateError_swiginit", DatabaseCreateError_swiginit, METH_VARARGS, NULL},
50083 	 { (char *)"new_DatabaseLockError", _wrap_new_DatabaseLockError, METH_VARARGS, (char *)"\n"
50084 		"\n"
50085 		"\n"
50086 		"Construct from message and errno value.\n"
50087 		"\n"
50088 		"Xapian::DatabaseLockError::DatabaseLockError(const std::string &msg_,\n"
50089 		"int errno_)\n"
50090 		"\n"
50091 		"Parameters:\n"
50092 		"-----------\n"
50093 		"\n"
50094 		"msg_:  Message giving details of the error, intended for human\n"
50095 		"consumption.\n"
50096 		"\n"
50097 		"errno_:  Optional errno value associated with this error. \n"
50098 		""},
50099 	 { (char *)"delete_DatabaseLockError", (PyCFunction)_wrap_delete_DatabaseLockError, METH_O, NULL},
50100 	 { (char *)"DatabaseLockError_swigregister", DatabaseLockError_swigregister, METH_VARARGS, NULL},
50101 	 { (char *)"DatabaseLockError_swiginit", DatabaseLockError_swiginit, METH_VARARGS, NULL},
50102 	 { (char *)"new_DatabaseModifiedError", _wrap_new_DatabaseModifiedError, METH_VARARGS, (char *)"\n"
50103 		"\n"
50104 		"\n"
50105 		"Construct from message and errno value.\n"
50106 		"\n"
50107 		"Xapian::DatabaseModifiedError::DatabaseModifiedError(const std::string\n"
50108 		"&msg_, int errno_)\n"
50109 		"\n"
50110 		"Parameters:\n"
50111 		"-----------\n"
50112 		"\n"
50113 		"msg_:  Message giving details of the error, intended for human\n"
50114 		"consumption.\n"
50115 		"\n"
50116 		"errno_:  Optional errno value associated with this error. \n"
50117 		""},
50118 	 { (char *)"delete_DatabaseModifiedError", (PyCFunction)_wrap_delete_DatabaseModifiedError, METH_O, NULL},
50119 	 { (char *)"DatabaseModifiedError_swigregister", DatabaseModifiedError_swigregister, METH_VARARGS, NULL},
50120 	 { (char *)"DatabaseModifiedError_swiginit", DatabaseModifiedError_swiginit, METH_VARARGS, NULL},
50121 	 { (char *)"new_DatabaseOpeningError", _wrap_new_DatabaseOpeningError, METH_VARARGS, (char *)"\n"
50122 		"\n"
50123 		"\n"
50124 		"Construct from message and errno value.\n"
50125 		"\n"
50126 		"Xapian::DatabaseOpeningError::DatabaseOpeningError(const std::string\n"
50127 		"&msg_, int errno_)\n"
50128 		"\n"
50129 		"Parameters:\n"
50130 		"-----------\n"
50131 		"\n"
50132 		"msg_:  Message giving details of the error, intended for human\n"
50133 		"consumption.\n"
50134 		"\n"
50135 		"errno_:  Optional errno value associated with this error. \n"
50136 		""},
50137 	 { (char *)"delete_DatabaseOpeningError", (PyCFunction)_wrap_delete_DatabaseOpeningError, METH_O, NULL},
50138 	 { (char *)"DatabaseOpeningError_swigregister", DatabaseOpeningError_swigregister, METH_VARARGS, NULL},
50139 	 { (char *)"DatabaseOpeningError_swiginit", DatabaseOpeningError_swiginit, METH_VARARGS, NULL},
50140 	 { (char *)"new_DatabaseVersionError", _wrap_new_DatabaseVersionError, METH_VARARGS, (char *)"\n"
50141 		"\n"
50142 		"\n"
50143 		"Construct from message and errno value.\n"
50144 		"\n"
50145 		"Xapian::DatabaseVersionError::DatabaseVersionError(const std::string\n"
50146 		"&msg_, int errno_)\n"
50147 		"\n"
50148 		"Parameters:\n"
50149 		"-----------\n"
50150 		"\n"
50151 		"msg_:  Message giving details of the error, intended for human\n"
50152 		"consumption.\n"
50153 		"\n"
50154 		"errno_:  Optional errno value associated with this error. \n"
50155 		""},
50156 	 { (char *)"delete_DatabaseVersionError", (PyCFunction)_wrap_delete_DatabaseVersionError, METH_O, NULL},
50157 	 { (char *)"DatabaseVersionError_swigregister", DatabaseVersionError_swigregister, METH_VARARGS, NULL},
50158 	 { (char *)"DatabaseVersionError_swiginit", DatabaseVersionError_swiginit, METH_VARARGS, NULL},
50159 	 { (char *)"new_DocNotFoundError", _wrap_new_DocNotFoundError, METH_VARARGS, (char *)"\n"
50160 		"\n"
50161 		"\n"
50162 		"Construct from message and errno value.\n"
50163 		"\n"
50164 		"Xapian::DocNotFoundError::DocNotFoundError(const std::string &msg_,\n"
50165 		"int errno_)\n"
50166 		"\n"
50167 		"Parameters:\n"
50168 		"-----------\n"
50169 		"\n"
50170 		"msg_:  Message giving details of the error, intended for human\n"
50171 		"consumption.\n"
50172 		"\n"
50173 		"errno_:  Optional errno value associated with this error. \n"
50174 		""},
50175 	 { (char *)"delete_DocNotFoundError", (PyCFunction)_wrap_delete_DocNotFoundError, METH_O, NULL},
50176 	 { (char *)"DocNotFoundError_swigregister", DocNotFoundError_swigregister, METH_VARARGS, NULL},
50177 	 { (char *)"DocNotFoundError_swiginit", DocNotFoundError_swiginit, METH_VARARGS, NULL},
50178 	 { (char *)"new_FeatureUnavailableError", _wrap_new_FeatureUnavailableError, METH_VARARGS, (char *)"\n"
50179 		"\n"
50180 		"\n"
50181 		"Construct from message and errno value.\n"
50182 		"\n"
50183 		"Xapian::FeatureUnavailableError::FeatureUnavailableError(const\n"
50184 		"std::string &msg_, int errno_)\n"
50185 		"\n"
50186 		"Parameters:\n"
50187 		"-----------\n"
50188 		"\n"
50189 		"msg_:  Message giving details of the error, intended for human\n"
50190 		"consumption.\n"
50191 		"\n"
50192 		"errno_:  Optional errno value associated with this error. \n"
50193 		""},
50194 	 { (char *)"delete_FeatureUnavailableError", (PyCFunction)_wrap_delete_FeatureUnavailableError, METH_O, NULL},
50195 	 { (char *)"FeatureUnavailableError_swigregister", FeatureUnavailableError_swigregister, METH_VARARGS, NULL},
50196 	 { (char *)"FeatureUnavailableError_swiginit", FeatureUnavailableError_swiginit, METH_VARARGS, NULL},
50197 	 { (char *)"new_InternalError", _wrap_new_InternalError, METH_VARARGS, (char *)"\n"
50198 		"\n"
50199 		"\n"
50200 		"Construct from message and errno value.\n"
50201 		"\n"
50202 		"Xapian::InternalError::InternalError(const std::string &msg_, int\n"
50203 		"errno_)\n"
50204 		"\n"
50205 		"Parameters:\n"
50206 		"-----------\n"
50207 		"\n"
50208 		"msg_:  Message giving details of the error, intended for human\n"
50209 		"consumption.\n"
50210 		"\n"
50211 		"errno_:  Optional errno value associated with this error. \n"
50212 		""},
50213 	 { (char *)"delete_InternalError", (PyCFunction)_wrap_delete_InternalError, METH_O, NULL},
50214 	 { (char *)"InternalError_swigregister", InternalError_swigregister, METH_VARARGS, NULL},
50215 	 { (char *)"InternalError_swiginit", InternalError_swiginit, METH_VARARGS, NULL},
50216 	 { (char *)"new_NetworkError", _wrap_new_NetworkError, METH_VARARGS, (char *)"\n"
50217 		"\n"
50218 		"\n"
50219 		"Construct from message and errno value.\n"
50220 		"\n"
50221 		"Xapian::NetworkError::NetworkError(const std::string &msg_, int\n"
50222 		"errno_)\n"
50223 		"\n"
50224 		"Parameters:\n"
50225 		"-----------\n"
50226 		"\n"
50227 		"msg_:  Message giving details of the error, intended for human\n"
50228 		"consumption.\n"
50229 		"\n"
50230 		"errno_:  Optional errno value associated with this error. \n"
50231 		""},
50232 	 { (char *)"delete_NetworkError", (PyCFunction)_wrap_delete_NetworkError, METH_O, NULL},
50233 	 { (char *)"NetworkError_swigregister", NetworkError_swigregister, METH_VARARGS, NULL},
50234 	 { (char *)"NetworkError_swiginit", NetworkError_swiginit, METH_VARARGS, NULL},
50235 	 { (char *)"new_NetworkTimeoutError", _wrap_new_NetworkTimeoutError, METH_VARARGS, (char *)"\n"
50236 		"\n"
50237 		"\n"
50238 		"Construct from message and errno value.\n"
50239 		"\n"
50240 		"Xapian::NetworkTimeoutError::NetworkTimeoutError(const std::string\n"
50241 		"&msg_, int errno_)\n"
50242 		"\n"
50243 		"Parameters:\n"
50244 		"-----------\n"
50245 		"\n"
50246 		"msg_:  Message giving details of the error, intended for human\n"
50247 		"consumption.\n"
50248 		"\n"
50249 		"errno_:  Optional errno value associated with this error. \n"
50250 		""},
50251 	 { (char *)"delete_NetworkTimeoutError", (PyCFunction)_wrap_delete_NetworkTimeoutError, METH_O, NULL},
50252 	 { (char *)"NetworkTimeoutError_swigregister", NetworkTimeoutError_swigregister, METH_VARARGS, NULL},
50253 	 { (char *)"NetworkTimeoutError_swiginit", NetworkTimeoutError_swiginit, METH_VARARGS, NULL},
50254 	 { (char *)"new_QueryParserError", _wrap_new_QueryParserError, METH_VARARGS, (char *)"\n"
50255 		"\n"
50256 		"\n"
50257 		"Construct from message and errno value.\n"
50258 		"\n"
50259 		"Xapian::QueryParserError::QueryParserError(const std::string &msg_,\n"
50260 		"int errno_)\n"
50261 		"\n"
50262 		"Parameters:\n"
50263 		"-----------\n"
50264 		"\n"
50265 		"msg_:  Message giving details of the error, intended for human\n"
50266 		"consumption.\n"
50267 		"\n"
50268 		"errno_:  Optional errno value associated with this error. \n"
50269 		""},
50270 	 { (char *)"delete_QueryParserError", (PyCFunction)_wrap_delete_QueryParserError, METH_O, NULL},
50271 	 { (char *)"QueryParserError_swigregister", QueryParserError_swigregister, METH_VARARGS, NULL},
50272 	 { (char *)"QueryParserError_swiginit", QueryParserError_swiginit, METH_VARARGS, NULL},
50273 	 { (char *)"new_SerialisationError", _wrap_new_SerialisationError, METH_VARARGS, (char *)"\n"
50274 		"\n"
50275 		"\n"
50276 		"Construct from message and errno value.\n"
50277 		"\n"
50278 		"Xapian::SerialisationError::SerialisationError(const std::string\n"
50279 		"&msg_, int errno_)\n"
50280 		"\n"
50281 		"Parameters:\n"
50282 		"-----------\n"
50283 		"\n"
50284 		"msg_:  Message giving details of the error, intended for human\n"
50285 		"consumption.\n"
50286 		"\n"
50287 		"errno_:  Optional errno value associated with this error. \n"
50288 		""},
50289 	 { (char *)"delete_SerialisationError", (PyCFunction)_wrap_delete_SerialisationError, METH_O, NULL},
50290 	 { (char *)"SerialisationError_swigregister", SerialisationError_swigregister, METH_VARARGS, NULL},
50291 	 { (char *)"SerialisationError_swiginit", SerialisationError_swiginit, METH_VARARGS, NULL},
50292 	 { (char *)"new_RangeError", _wrap_new_RangeError, METH_VARARGS, (char *)"\n"
50293 		"\n"
50294 		"\n"
50295 		"Construct from message and errno value.\n"
50296 		"\n"
50297 		"Xapian::RangeError::RangeError(const std::string &msg_, int errno_)\n"
50298 		"\n"
50299 		"Parameters:\n"
50300 		"-----------\n"
50301 		"\n"
50302 		"msg_:  Message giving details of the error, intended for human\n"
50303 		"consumption.\n"
50304 		"\n"
50305 		"errno_:  Optional errno value associated with this error. \n"
50306 		""},
50307 	 { (char *)"delete_RangeError", (PyCFunction)_wrap_delete_RangeError, METH_O, NULL},
50308 	 { (char *)"RangeError_swigregister", RangeError_swigregister, METH_VARARGS, NULL},
50309 	 { (char *)"RangeError_swiginit", RangeError_swiginit, METH_VARARGS, NULL},
50310 	 { (char *)"new_WildcardError", _wrap_new_WildcardError, METH_VARARGS, (char *)"\n"
50311 		"\n"
50312 		"\n"
50313 		"Construct from message and errno value.\n"
50314 		"\n"
50315 		"Xapian::WildcardError::WildcardError(const std::string &msg_, int\n"
50316 		"errno_)\n"
50317 		"\n"
50318 		"Parameters:\n"
50319 		"-----------\n"
50320 		"\n"
50321 		"msg_:  Message giving details of the error, intended for human\n"
50322 		"consumption.\n"
50323 		"\n"
50324 		"errno_:  Optional errno value associated with this error. \n"
50325 		""},
50326 	 { (char *)"delete_WildcardError", (PyCFunction)_wrap_delete_WildcardError, METH_O, NULL},
50327 	 { (char *)"WildcardError_swigregister", WildcardError_swigregister, METH_VARARGS, NULL},
50328 	 { (char *)"WildcardError_swiginit", WildcardError_swiginit, METH_VARARGS, NULL},
50329 	 { (char *)"new_DatabaseNotFoundError", _wrap_new_DatabaseNotFoundError, METH_VARARGS, (char *)"\n"
50330 		"\n"
50331 		"\n"
50332 		"Construct from message and errno value.\n"
50333 		"\n"
50334 		"Xapian::DatabaseNotFoundError::DatabaseNotFoundError(const std::string\n"
50335 		"&msg_, int errno_)\n"
50336 		"\n"
50337 		"Parameters:\n"
50338 		"-----------\n"
50339 		"\n"
50340 		"msg_:  Message giving details of the error, intended for human\n"
50341 		"consumption.\n"
50342 		"\n"
50343 		"errno_:  Optional errno value associated with this error. \n"
50344 		""},
50345 	 { (char *)"delete_DatabaseNotFoundError", (PyCFunction)_wrap_delete_DatabaseNotFoundError, METH_O, NULL},
50346 	 { (char *)"DatabaseNotFoundError_swigregister", DatabaseNotFoundError_swigregister, METH_VARARGS, NULL},
50347 	 { (char *)"DatabaseNotFoundError_swiginit", DatabaseNotFoundError_swiginit, METH_VARARGS, NULL},
50348 	 { (char *)"new_DatabaseClosedError", _wrap_new_DatabaseClosedError, METH_VARARGS, (char *)"\n"
50349 		"\n"
50350 		"\n"
50351 		"Construct from message and errno value.\n"
50352 		"\n"
50353 		"Xapian::DatabaseClosedError::DatabaseClosedError(const std::string\n"
50354 		"&msg_, int errno_)\n"
50355 		"\n"
50356 		"Parameters:\n"
50357 		"-----------\n"
50358 		"\n"
50359 		"msg_:  Message giving details of the error, intended for human\n"
50360 		"consumption.\n"
50361 		"\n"
50362 		"errno_:  Optional errno value associated with this error. \n"
50363 		""},
50364 	 { (char *)"delete_DatabaseClosedError", (PyCFunction)_wrap_delete_DatabaseClosedError, METH_O, NULL},
50365 	 { (char *)"DatabaseClosedError_swigregister", DatabaseClosedError_swigregister, METH_VARARGS, NULL},
50366 	 { (char *)"DatabaseClosedError_swiginit", DatabaseClosedError_swiginit, METH_VARARGS, NULL},
50367 	 { (char *)"version_string", (PyCFunction)_wrap_version_string, METH_NOARGS, NULL},
50368 	 { (char *)"major_version", (PyCFunction)_wrap_major_version, METH_NOARGS, NULL},
50369 	 { (char *)"minor_version", (PyCFunction)_wrap_minor_version, METH_NOARGS, NULL},
50370 	 { (char *)"revision", (PyCFunction)_wrap_revision, METH_NOARGS, NULL},
50371 	 { (char *)"new__PositionIterator", (PyCFunction)_wrap_new__PositionIterator, METH_NOARGS, (char *)"\n"
50372 		"\n"
50373 		"\n"
50374 		"Default constructor.\n"
50375 		"\n"
50376 		"Xapian::PositionIterator::PositionIterator()\n"
50377 		"\n"
50378 		"Creates an uninitialised iterator, which can't be used before being\n"
50379 		"assigned to, but is sometimes syntactically convenient. \n"
50380 		""},
50381 	 { (char *)"delete__PositionIterator", (PyCFunction)_wrap_delete__PositionIterator, METH_O, (char *)"\n"
50382 		"\n"
50383 		"\n"
50384 		"Destructor.\n"
50385 		"\n"
50386 		"Xapian::PositionIterator::~PositionIterator() \n"
50387 		""},
50388 	 { (char *)"_PositionIterator_skip_to", _wrap__PositionIterator_skip_to, METH_VARARGS, (char *)"\n"
50389 		"\n"
50390 		"\n"
50391 		"Advance the iterator to term position termpos.\n"
50392 		"\n"
50393 		"void Xapian::PositionIterator::skip_to(Xapian::termpos termpos)\n"
50394 		"\n"
50395 		"Parameters:\n"
50396 		"-----------\n"
50397 		"\n"
50398 		"termpos:  The position to advance to. If this position isn't in the\n"
50399 		"stream being iterated, then the iterator is moved to the next term\n"
50400 		"position after it which is. \n"
50401 		""},
50402 	 { (char *)"_PositionIterator___str__", (PyCFunction)_wrap__PositionIterator___str__, METH_O, (char *)"\n"
50403 		"\n"
50404 		"\n"
50405 		"Return a string describing this object.\n"
50406 		"\n"
50407 		"std::string Xapian::PositionIterator::get_description() const \n"
50408 		""},
50409 	 { (char *)"_PositionIterator___eq__", _wrap__PositionIterator___eq__, METH_VARARGS, NULL},
50410 	 { (char *)"_PositionIterator___ne__", _wrap__PositionIterator___ne__, METH_VARARGS, NULL},
50411 	 { (char *)"_PositionIterator_equals", _wrap__PositionIterator_equals, METH_VARARGS, NULL},
50412 	 { (char *)"_PositionIterator_get_termpos", (PyCFunction)_wrap__PositionIterator_get_termpos, METH_O, NULL},
50413 	 { (char *)"_PositionIterator___next__", (PyCFunction)_wrap__PositionIterator___next__, METH_O, NULL},
50414 	 { (char *)"_PositionIterator_swigregister", _PositionIterator_swigregister, METH_VARARGS, NULL},
50415 	 { (char *)"_PositionIterator_swiginit", _PositionIterator_swiginit, METH_VARARGS, NULL},
50416 	 { (char *)"new__PostingIterator", (PyCFunction)_wrap_new__PostingIterator, METH_NOARGS, (char *)"\n"
50417 		"\n"
50418 		"\n"
50419 		"Default constructor.\n"
50420 		"\n"
50421 		"Xapian::PostingIterator::PostingIterator()\n"
50422 		"\n"
50423 		"Creates an uninitialised iterator, which can't be used before being\n"
50424 		"assigned to, but is sometimes syntactically convenient. \n"
50425 		""},
50426 	 { (char *)"delete__PostingIterator", (PyCFunction)_wrap_delete__PostingIterator, METH_O, (char *)"\n"
50427 		"\n"
50428 		"\n"
50429 		"Destructor.\n"
50430 		"\n"
50431 		"Xapian::PostingIterator::~PostingIterator() \n"
50432 		""},
50433 	 { (char *)"_PostingIterator_get_wdf", (PyCFunction)_wrap__PostingIterator_get_wdf, METH_O, (char *)"\n"
50434 		"\n"
50435 		"\n"
50436 		"Return the wdf for the document at the current position.\n"
50437 		"\n"
50438 		"Xapian::termcount Xapian::PostingIterator::get_wdf() const \n"
50439 		""},
50440 	 { (char *)"_PostingIterator_get_doclength", (PyCFunction)_wrap__PostingIterator_get_doclength, METH_O, (char *)"\n"
50441 		"\n"
50442 		"\n"
50443 		"Return the length of the document at the current position.\n"
50444 		"\n"
50445 		"Xapian::termcount Xapian::PostingIterator::get_doclength() const \n"
50446 		""},
50447 	 { (char *)"_PostingIterator_get_unique_terms", (PyCFunction)_wrap__PostingIterator_get_unique_terms, METH_O, (char *)"\n"
50448 		"\n"
50449 		"\n"
50450 		"Return the number of unique terms in the current document.\n"
50451 		"\n"
50452 		"Xapian::termcount Xapian::PostingIterator::get_unique_terms() const \n"
50453 		""},
50454 	 { (char *)"_PostingIterator__positionlist_begin", (PyCFunction)_wrap__PostingIterator__positionlist_begin, METH_O, (char *)"\n"
50455 		"\n"
50456 		"\n"
50457 		"Return a PositionIterator for the current document.\n"
50458 		"\n"
50459 		"PositionIterator Xapian::PostingIterator::positionlist_begin() const\n"
50460 		"\n"
50461 		""},
50462 	 { (char *)"_PostingIterator__positionlist_end", (PyCFunction)_wrap__PostingIterator__positionlist_end, METH_O, (char *)"\n"
50463 		"\n"
50464 		"\n"
50465 		"Return an end PositionIterator for the current document.\n"
50466 		"\n"
50467 		"PositionIterator Xapian::PostingIterator::positionlist_end() const \n"
50468 		""},
50469 	 { (char *)"_PostingIterator_skip_to", _wrap__PostingIterator_skip_to, METH_VARARGS, (char *)"\n"
50470 		"\n"
50471 		"\n"
50472 		"Advance the iterator to document did.\n"
50473 		"\n"
50474 		"void Xapian::PostingIterator::skip_to(Xapian::docid did)\n"
50475 		"\n"
50476 		"Parameters:\n"
50477 		"-----------\n"
50478 		"\n"
50479 		"did:  The document id to advance to. If this document id isn't in the\n"
50480 		"stream being iterated, then the iterator is moved to the next document\n"
50481 		"id after it which is. \n"
50482 		""},
50483 	 { (char *)"_PostingIterator___str__", (PyCFunction)_wrap__PostingIterator___str__, METH_O, (char *)"\n"
50484 		"\n"
50485 		"\n"
50486 		"Return a string describing this object.\n"
50487 		"\n"
50488 		"std::string Xapian::PostingIterator::get_description() const \n"
50489 		""},
50490 	 { (char *)"_PostingIterator___eq__", _wrap__PostingIterator___eq__, METH_VARARGS, NULL},
50491 	 { (char *)"_PostingIterator___ne__", _wrap__PostingIterator___ne__, METH_VARARGS, NULL},
50492 	 { (char *)"_PostingIterator_equals", _wrap__PostingIterator_equals, METH_VARARGS, NULL},
50493 	 { (char *)"_PostingIterator_get_docid", (PyCFunction)_wrap__PostingIterator_get_docid, METH_O, NULL},
50494 	 { (char *)"_PostingIterator___next__", (PyCFunction)_wrap__PostingIterator___next__, METH_O, NULL},
50495 	 { (char *)"_PostingIterator_swigregister", _PostingIterator_swigregister, METH_VARARGS, NULL},
50496 	 { (char *)"_PostingIterator_swiginit", _PostingIterator_swiginit, METH_VARARGS, NULL},
50497 	 { (char *)"new__TermIterator", (PyCFunction)_wrap_new__TermIterator, METH_NOARGS, (char *)"\n"
50498 		"\n"
50499 		"\n"
50500 		"Default constructor.\n"
50501 		"\n"
50502 		"Xapian::TermIterator::TermIterator()\n"
50503 		"\n"
50504 		"Creates an uninitialised iterator, which can't be used before being\n"
50505 		"assigned to, but is sometimes syntactically convenient. \n"
50506 		""},
50507 	 { (char *)"delete__TermIterator", (PyCFunction)_wrap_delete__TermIterator, METH_O, (char *)"\n"
50508 		"\n"
50509 		"\n"
50510 		"Destructor.\n"
50511 		"\n"
50512 		"Xapian::TermIterator::~TermIterator() \n"
50513 		""},
50514 	 { (char *)"_TermIterator_get_wdf", (PyCFunction)_wrap__TermIterator_get_wdf, METH_O, (char *)"\n"
50515 		"\n"
50516 		"\n"
50517 		"Return the wdf for the term at the current position.\n"
50518 		"\n"
50519 		"Xapian::termcount Xapian::TermIterator::get_wdf() const \n"
50520 		""},
50521 	 { (char *)"_TermIterator_get_termfreq", (PyCFunction)_wrap__TermIterator_get_termfreq, METH_O, (char *)"\n"
50522 		"\n"
50523 		"\n"
50524 		"Return the term frequency for the term at the current position.\n"
50525 		"\n"
50526 		"Xapian::doccount Xapian::TermIterator::get_termfreq() const \n"
50527 		""},
50528 	 { (char *)"_TermIterator_positionlist_count", (PyCFunction)_wrap__TermIterator_positionlist_count, METH_O, (char *)"\n"
50529 		"\n"
50530 		"\n"
50531 		"Return the length of the position list for the current position.\n"
50532 		"\n"
50533 		"Xapian::termcount Xapian::TermIterator::positionlist_count() const \n"
50534 		""},
50535 	 { (char *)"_TermIterator__positionlist_begin", (PyCFunction)_wrap__TermIterator__positionlist_begin, METH_O, (char *)"\n"
50536 		"\n"
50537 		"\n"
50538 		"Return a PositionIterator for the current term.\n"
50539 		"\n"
50540 		"PositionIterator Xapian::TermIterator::positionlist_begin() const \n"
50541 		""},
50542 	 { (char *)"_TermIterator__positionlist_end", (PyCFunction)_wrap__TermIterator__positionlist_end, METH_O, (char *)"\n"
50543 		"\n"
50544 		"\n"
50545 		"Return an end PositionIterator for the current term.\n"
50546 		"\n"
50547 		"PositionIterator Xapian::TermIterator::positionlist_end() const \n"
50548 		""},
50549 	 { (char *)"_TermIterator_skip_to", _wrap__TermIterator_skip_to, METH_VARARGS, (char *)"\n"
50550 		"\n"
50551 		"\n"
50552 		"Advance the iterator to term term.\n"
50553 		"\n"
50554 		"void Xapian::TermIterator::skip_to(const std::string &term)\n"
50555 		"\n"
50556 		"If the iteration is over an unsorted list of terms, then this method\n"
50557 		"will throw Xapian::InvalidOperationError.\n"
50558 		"\n"
50559 		"Parameters:\n"
50560 		"-----------\n"
50561 		"\n"
50562 		"term:  The term to advance to. If this term isn't in the stream being\n"
50563 		"iterated, then the iterator is moved to the next term after it which\n"
50564 		"is. \n"
50565 		""},
50566 	 { (char *)"_TermIterator___str__", (PyCFunction)_wrap__TermIterator___str__, METH_O, (char *)"\n"
50567 		"\n"
50568 		"\n"
50569 		"Return a string describing this object.\n"
50570 		"\n"
50571 		"std::string Xapian::TermIterator::get_description() const \n"
50572 		""},
50573 	 { (char *)"_TermIterator___eq__", _wrap__TermIterator___eq__, METH_VARARGS, NULL},
50574 	 { (char *)"_TermIterator___ne__", _wrap__TermIterator___ne__, METH_VARARGS, NULL},
50575 	 { (char *)"_TermIterator_equals", _wrap__TermIterator_equals, METH_VARARGS, NULL},
50576 	 { (char *)"_TermIterator_get_term", (PyCFunction)_wrap__TermIterator_get_term, METH_O, NULL},
50577 	 { (char *)"_TermIterator___next__", (PyCFunction)_wrap__TermIterator___next__, METH_O, NULL},
50578 	 { (char *)"_TermIterator_swigregister", _TermIterator_swigregister, METH_VARARGS, NULL},
50579 	 { (char *)"_TermIterator_swiginit", _TermIterator_swiginit, METH_VARARGS, NULL},
50580 	 { (char *)"new__ValueIterator", (PyCFunction)_wrap_new__ValueIterator, METH_NOARGS, (char *)"\n"
50581 		"\n"
50582 		"\n"
50583 		"Default constructor.\n"
50584 		"\n"
50585 		"Xapian::ValueIterator::ValueIterator()\n"
50586 		"\n"
50587 		"Creates an uninitialised iterator, which can't be used before being\n"
50588 		"assigned to, but is sometimes syntactically convenient. \n"
50589 		""},
50590 	 { (char *)"delete__ValueIterator", (PyCFunction)_wrap_delete__ValueIterator, METH_O, (char *)"\n"
50591 		"\n"
50592 		"\n"
50593 		"Destructor.\n"
50594 		"\n"
50595 		"Xapian::ValueIterator::~ValueIterator() \n"
50596 		""},
50597 	 { (char *)"_ValueIterator_get_docid", (PyCFunction)_wrap__ValueIterator_get_docid, METH_O, (char *)"\n"
50598 		"\n"
50599 		"\n"
50600 		"Return the docid at the current position.\n"
50601 		"\n"
50602 		"Xapian::docid Xapian::ValueIterator::get_docid() const\n"
50603 		"\n"
50604 		"If we're iterating over values of a document, this method will throw\n"
50605 		"Xapian::InvalidOperationError. \n"
50606 		""},
50607 	 { (char *)"_ValueIterator_get_valueno", (PyCFunction)_wrap__ValueIterator_get_valueno, METH_O, (char *)"\n"
50608 		"\n"
50609 		"\n"
50610 		"Return the value slot number for the current position.\n"
50611 		"\n"
50612 		"Xapian::valueno Xapian::ValueIterator::get_valueno() const\n"
50613 		"\n"
50614 		"If the iterator is over all values in a slot, this returns that slot's\n"
50615 		"number. If the iterator is over the values in a particular document,\n"
50616 		"it returns the number of each slot in turn. \n"
50617 		""},
50618 	 { (char *)"_ValueIterator_skip_to", _wrap__ValueIterator_skip_to, METH_VARARGS, (char *)"\n"
50619 		"\n"
50620 		"\n"
50621 		"Advance the iterator to document id or value slot docid_or_slot.\n"
50622 		"\n"
50623 		"void Xapian::ValueIterator::skip_to(Xapian::docid docid_or_slot)\n"
50624 		"\n"
50625 		"If this iterator is over values in a document, then this method\n"
50626 		"advances the iterator to value slot docid_or_slot, or the first slot\n"
50627 		"after it if there is no value in slot slot.\n"
50628 		"\n"
50629 		"If this iterator is over values in a particular slot, then this method\n"
50630 		"advances the iterator to document id docid_or_slot, or the first\n"
50631 		"document id after it if there is no value in the slot we're iterating\n"
50632 		"over for document docid_or_slot.\n"
50633 		"\n"
50634 		"Note: The \"two-faced\" nature of this method is due to how C++\n"
50635 		"overloading works. Xapian::docid and Xapian::valueno are both typedefs\n"
50636 		"for the same unsigned integer type, so overloading can't distinguish\n"
50637 		"them.\n"
50638 		"\n"
50639 		"Parameters:\n"
50640 		"-----------\n"
50641 		"\n"
50642 		"docid_or_slot:  The docid/slot to advance to. \n"
50643 		""},
50644 	 { (char *)"_ValueIterator_check", _wrap__ValueIterator_check, METH_VARARGS, (char *)"\n"
50645 		"\n"
50646 		"\n"
50647 		"Check if the specified docid occurs.\n"
50648 		"\n"
50649 		"bool Xapian::ValueIterator::check(Xapian::docid docid)\n"
50650 		"\n"
50651 		"The caller is required to ensure that the specified document id did\n"
50652 		"actually exists in the database.\n"
50653 		"\n"
50654 		"This method acts like skip_to() if that can be done at little extra\n"
50655 		"cost, in which case it then returns true. This is how chert and glass\n"
50656 		"databases behave because they store values in streams which allow for\n"
50657 		"an efficient implementation of skip_to().\n"
50658 		"\n"
50659 		"Otherwise it simply checks if a particular docid is present. If it is,\n"
50660 		"it returns true. If it isn't, it returns false, and leaves the\n"
50661 		"position unspecified (and hence the result of calling methods which\n"
50662 		"depend on the current position, such as get_docid(), are also\n"
50663 		"unspecified). In this state, next() will advance to the first matching\n"
50664 		"position after document did, and skip_to() will act as it would if the\n"
50665 		"position was the first matching position after document did.\n"
50666 		"\n"
50667 		"Currently the inmemory and remote backends behave in the latter way\n"
50668 		"because they don't support streamed values and so skip_to() must check\n"
50669 		"each document it skips over which is significantly slower.\n"
50670 		"\n"
50671 		"Parameters:\n"
50672 		"-----------\n"
50673 		"\n"
50674 		"docid:  The document id to check. \n"
50675 		""},
50676 	 { (char *)"_ValueIterator___str__", (PyCFunction)_wrap__ValueIterator___str__, METH_O, (char *)"\n"
50677 		"\n"
50678 		"\n"
50679 		"Return a string describing this object.\n"
50680 		"\n"
50681 		"std::string Xapian::ValueIterator::get_description() const \n"
50682 		""},
50683 	 { (char *)"_ValueIterator___eq__", _wrap__ValueIterator___eq__, METH_VARARGS, NULL},
50684 	 { (char *)"_ValueIterator___ne__", _wrap__ValueIterator___ne__, METH_VARARGS, NULL},
50685 	 { (char *)"_ValueIterator_equals", _wrap__ValueIterator_equals, METH_VARARGS, NULL},
50686 	 { (char *)"_ValueIterator_get_value", (PyCFunction)_wrap__ValueIterator_get_value, METH_O, NULL},
50687 	 { (char *)"_ValueIterator___next__", (PyCFunction)_wrap__ValueIterator___next__, METH_O, NULL},
50688 	 { (char *)"_ValueIterator_swigregister", _ValueIterator_swigregister, METH_VARARGS, NULL},
50689 	 { (char *)"_ValueIterator_swiginit", _ValueIterator_swiginit, METH_VARARGS, NULL},
50690 	 { (char *)"new_Document", (PyCFunction)_wrap_new_Document, METH_NOARGS, (char *)"\n"
50691 		"\n"
50692 		"\n"
50693 		"Make a new empty Document.\n"
50694 		"\n"
50695 		"Xapian::Document::Document() \n"
50696 		""},
50697 	 { (char *)"delete_Document", (PyCFunction)_wrap_delete_Document, METH_O, (char *)"\n"
50698 		"\n"
50699 		"\n"
50700 		"Destructor.\n"
50701 		"\n"
50702 		"Xapian::Document::~Document() \n"
50703 		""},
50704 	 { (char *)"Document_get_value", _wrap_Document_get_value, METH_VARARGS, (char *)"\n"
50705 		"\n"
50706 		"\n"
50707 		"Get value by number.\n"
50708 		"\n"
50709 		"std::string Xapian::Document::get_value(Xapian::valueno slot) const\n"
50710 		"\n"
50711 		"Returns an empty string if no value with the given number is present\n"
50712 		"in the document.\n"
50713 		"\n"
50714 		"Parameters:\n"
50715 		"-----------\n"
50716 		"\n"
50717 		"slot:  The number of the value. \n"
50718 		""},
50719 	 { (char *)"Document_add_value", _wrap_Document_add_value, METH_VARARGS, (char *)"\n"
50720 		"\n"
50721 		"\n"
50722 		"Add a new value.\n"
50723 		"\n"
50724 		"void Xapian::Document::add_value(Xapian::valueno slot, const\n"
50725 		"std::string &value)\n"
50726 		"\n"
50727 		"The new value will replace any existing value with the same number (or\n"
50728 		"if the new value is empty, it will remove any existing value with the\n"
50729 		"same number).\n"
50730 		"\n"
50731 		"Parameters:\n"
50732 		"-----------\n"
50733 		"\n"
50734 		"slot:  The value slot to add the value in.\n"
50735 		"\n"
50736 		"value:  The value to set. \n"
50737 		""},
50738 	 { (char *)"Document_remove_value", _wrap_Document_remove_value, METH_VARARGS, (char *)"\n"
50739 		"\n"
50740 		"\n"
50741 		"Remove any value with the given number.\n"
50742 		"\n"
50743 		"void Xapian::Document::remove_value(Xapian::valueno slot) \n"
50744 		""},
50745 	 { (char *)"Document_clear_values", (PyCFunction)_wrap_Document_clear_values, METH_O, (char *)"\n"
50746 		"\n"
50747 		"\n"
50748 		"Remove all values associated with the document.\n"
50749 		"\n"
50750 		"void Xapian::Document::clear_values() \n"
50751 		""},
50752 	 { (char *)"Document_get_data", (PyCFunction)_wrap_Document_get_data, METH_O, (char *)"\n"
50753 		"\n"
50754 		"\n"
50755 		"Get data stored in the document.\n"
50756 		"\n"
50757 		"std::string Xapian::Document::get_data() const\n"
50758 		"\n"
50759 		"This is potentially a relatively expensive operation, and shouldn't\n"
50760 		"normally be used during the match (e.g. in a PostingSource or match\n"
50761 		"decider functor. Put data for use by match deciders in a value\n"
50762 		"instead. \n"
50763 		""},
50764 	 { (char *)"Document_set_data", _wrap_Document_set_data, METH_VARARGS, (char *)"\n"
50765 		"\n"
50766 		"\n"
50767 		"Set data stored in the document.\n"
50768 		"\n"
50769 		"void Xapian::Document::set_data(const std::string &data)\n"
50770 		"\n"
50771 		"Xapian treats the data as an opaque blob. It may try to compress it,\n"
50772 		"but other than that it will just store it and return it when\n"
50773 		"requested.\n"
50774 		"\n"
50775 		"Parameters:\n"
50776 		"-----------\n"
50777 		"\n"
50778 		"data:  The data to store. \n"
50779 		""},
50780 	 { (char *)"Document_add_posting", _wrap_Document_add_posting, METH_VARARGS, (char *)"\n"
50781 		"\n"
50782 		"\n"
50783 		"Add an occurrence of a term at a particular position.\n"
50784 		"\n"
50785 		"void Xapian::Document::add_posting(const std::string &tname,\n"
50786 		"Xapian::termpos tpos, Xapian::termcount wdfinc=1)\n"
50787 		"\n"
50788 		"Multiple occurrences of the term at the same position are represented\n"
50789 		"only once in the positional information, but do increase the wdf.\n"
50790 		"\n"
50791 		"If the term is not already in the document, it will be added to it.\n"
50792 		"\n"
50793 		"Parameters:\n"
50794 		"-----------\n"
50795 		"\n"
50796 		"tname:  The name of the term.\n"
50797 		"\n"
50798 		"tpos:  The position of the term.\n"
50799 		"\n"
50800 		"wdfinc:  The increment that will be applied to the wdf for this term.\n"
50801 		"\n"
50802 		""},
50803 	 { (char *)"Document_add_term", _wrap_Document_add_term, METH_VARARGS, (char *)"\n"
50804 		"\n"
50805 		"\n"
50806 		"Add a term to the document, without positional information.\n"
50807 		"\n"
50808 		"void Xapian::Document::add_term(const std::string &tname,\n"
50809 		"Xapian::termcount wdfinc=1)\n"
50810 		"\n"
50811 		"Any existing positional information for the term will be left\n"
50812 		"unmodified.\n"
50813 		"\n"
50814 		"Parameters:\n"
50815 		"-----------\n"
50816 		"\n"
50817 		"tname:  The name of the term.\n"
50818 		"\n"
50819 		"wdfinc:  The increment that will be applied to the wdf for this term\n"
50820 		"(default: 1). \n"
50821 		""},
50822 	 { (char *)"Document_add_boolean_term", _wrap_Document_add_boolean_term, METH_VARARGS, (char *)"\n"
50823 		"\n"
50824 		"\n"
50825 		"Add a boolean filter term to the document.\n"
50826 		"\n"
50827 		"void Xapian::Document::add_boolean_term(const std::string &term)\n"
50828 		"\n"
50829 		"This method adds term to the document with wdf of 0 - this is\n"
50830 		"generally what you want for a term used for boolean filtering as the\n"
50831 		"wdf of such terms is ignored, and it doesn't make sense for them to\n"
50832 		"contribute to the document's length.\n"
50833 		"\n"
50834 		"If the specified term already indexes this document, this method has\n"
50835 		"no effect.\n"
50836 		"\n"
50837 		"It is exactly the same as add_term(term, 0).\n"
50838 		"\n"
50839 		"This method was added in Xapian 1.0.18.\n"
50840 		"\n"
50841 		"Parameters:\n"
50842 		"-----------\n"
50843 		"\n"
50844 		"term:  The term to add. \n"
50845 		""},
50846 	 { (char *)"Document_remove_posting", _wrap_Document_remove_posting, METH_VARARGS, (char *)"\n"
50847 		"\n"
50848 		"\n"
50849 		"Remove a posting of a term from the document.\n"
50850 		"\n"
50851 		"void Xapian::Document::remove_posting(const std::string &tname,\n"
50852 		"Xapian::termpos tpos, Xapian::termcount wdfdec=1)\n"
50853 		"\n"
50854 		"Note that the term will still index the document even if all\n"
50855 		"occurrences are removed. To remove a term from a document completely,\n"
50856 		"use remove_term().\n"
50857 		"\n"
50858 		"Parameters:\n"
50859 		"-----------\n"
50860 		"\n"
50861 		"tname:  The name of the term.\n"
50862 		"\n"
50863 		"tpos:  The position of the term.\n"
50864 		"\n"
50865 		"wdfdec:  The decrement that will be applied to the wdf when removing\n"
50866 		"this posting. The wdf will not go below the value of 0.\n"
50867 		"\n"
50868 		"Parameters:\n"
50869 		"-----------\n"
50870 		"\n"
50871 		"Xapian::InvalidArgumentError:  will be thrown if the term is not at\n"
50872 		"the position specified in the position list for this term in this\n"
50873 		"document.\n"
50874 		"\n"
50875 		"Xapian::InvalidArgumentError:  will be thrown if the term is not in\n"
50876 		"the document \n"
50877 		""},
50878 	 { (char *)"Document_remove_postings", _wrap_Document_remove_postings, METH_VARARGS, (char *)"\n"
50879 		"\n"
50880 		"\n"
50881 		"Remove a range of postings for a term.\n"
50882 		"\n"
50883 		"Xapian::termpos Xapian::Document::remove_postings(const std::string\n"
50884 		"&term, Xapian::termpos term_pos_first, Xapian::termpos term_pos_last,\n"
50885 		"Xapian::termcount wdf_dec=1)\n"
50886 		"\n"
50887 		"Any instances of the term at positions >= term_pos_first and <=\n"
50888 		"term_pos_last will be removed, and the wdf reduced by wdf_dec for each\n"
50889 		"instance removed (the wdf will not ever go below zero though).\n"
50890 		"\n"
50891 		"It's OK if the term doesn't occur in the range of positions specified\n"
50892 		"(unlike  remove_posting()). And if term_pos_first > term_pos_last,\n"
50893 		"this method does nothing.\n"
50894 		"\n"
50895 		"The number of postings removed.\n"
50896 		"\n"
50897 		"Parameters:\n"
50898 		"-----------\n"
50899 		"\n"
50900 		"Xapian::InvalidArgumentError:  will be thrown if the term is not in\n"
50901 		"the document\n"
50902 		"\n"
50903 		"Added in Xapian 1.4.8. \n"
50904 		""},
50905 	 { (char *)"Document_remove_term", _wrap_Document_remove_term, METH_VARARGS, (char *)"\n"
50906 		"\n"
50907 		"\n"
50908 		"Remove a term and all postings associated with it.\n"
50909 		"\n"
50910 		"void Xapian::Document::remove_term(const std::string &tname)\n"
50911 		"\n"
50912 		"Parameters:\n"
50913 		"-----------\n"
50914 		"\n"
50915 		"tname:  The name of the term.\n"
50916 		"\n"
50917 		"Parameters:\n"
50918 		"-----------\n"
50919 		"\n"
50920 		"Xapian::InvalidArgumentError:  will be thrown if the term is not in\n"
50921 		"the document \n"
50922 		""},
50923 	 { (char *)"Document_clear_terms", (PyCFunction)_wrap_Document_clear_terms, METH_O, (char *)"\n"
50924 		"\n"
50925 		"\n"
50926 		"Remove all terms (and postings) from the document.\n"
50927 		"\n"
50928 		"void Xapian::Document::clear_terms() \n"
50929 		""},
50930 	 { (char *)"Document_termlist_count", (PyCFunction)_wrap_Document_termlist_count, METH_O, (char *)"\n"
50931 		"\n"
50932 		"\n"
50933 		"The length of the termlist - i.e.\n"
50934 		"\n"
50935 		"Xapian::termcount Xapian::Document::termlist_count() const\n"
50936 		"\n"
50937 		"the number of different terms which index this document. \n"
50938 		""},
50939 	 { (char *)"Document__termlist_begin", (PyCFunction)_wrap_Document__termlist_begin, METH_O, (char *)"\n"
50940 		"\n"
50941 		"\n"
50942 		"Iterator for the terms in this document.\n"
50943 		"\n"
50944 		"TermIterator Xapian::Document::termlist_begin() const \n"
50945 		""},
50946 	 { (char *)"Document__termlist_end", (PyCFunction)_wrap_Document__termlist_end, METH_O, (char *)"\n"
50947 		"\n"
50948 		"\n"
50949 		"Equivalent end iterator for termlist_begin().\n"
50950 		"\n"
50951 		"TermIterator Xapian::Document::termlist_end() const \n"
50952 		""},
50953 	 { (char *)"Document_values_count", (PyCFunction)_wrap_Document_values_count, METH_O, (char *)"\n"
50954 		"\n"
50955 		"\n"
50956 		"Count the values in this document.\n"
50957 		"\n"
50958 		"Xapian::termcount Xapian::Document::values_count() const \n"
50959 		""},
50960 	 { (char *)"Document__values_begin", (PyCFunction)_wrap_Document__values_begin, METH_O, (char *)"\n"
50961 		"\n"
50962 		"\n"
50963 		"Iterator for the values in this document.\n"
50964 		"\n"
50965 		"ValueIterator Xapian::Document::values_begin() const \n"
50966 		""},
50967 	 { (char *)"Document__values_end", (PyCFunction)_wrap_Document__values_end, METH_O, (char *)"\n"
50968 		"\n"
50969 		"\n"
50970 		"Equivalent end iterator for values_begin().\n"
50971 		"\n"
50972 		"ValueIterator Xapian::Document::values_end() const \n"
50973 		""},
50974 	 { (char *)"Document_get_docid", (PyCFunction)_wrap_Document_get_docid, METH_O, (char *)"\n"
50975 		"\n"
50976 		"\n"
50977 		"Get the document id which is associated with this document (if any).\n"
50978 		"\n"
50979 		"docid Xapian::Document::get_docid() const\n"
50980 		"\n"
50981 		"NB If multiple databases are being searched together, then this will\n"
50982 		"be the document id in the individual database, not the merged\n"
50983 		"database!\n"
50984 		"\n"
50985 		"If this document came from a database, return the document id in that\n"
50986 		"database. Otherwise, return 0 (in Xapian 1.0.22/1.2.4 or later; prior\n"
50987 		"to this the returned value was uninitialised). \n"
50988 		""},
50989 	 { (char *)"Document_serialise", (PyCFunction)_wrap_Document_serialise, METH_O, (char *)"\n"
50990 		"\n"
50991 		"\n"
50992 		"Serialise document into a string.\n"
50993 		"\n"
50994 		"std::string Xapian::Document::serialise() const\n"
50995 		"\n"
50996 		"The document representation may change between Xapian releases: even\n"
50997 		"between minor versions. However, it is guaranteed not to change if the\n"
50998 		"remote database protocol has not changed between releases. \n"
50999 		""},
51000 	 { (char *)"Document_unserialise", (PyCFunction)_wrap_Document_unserialise, METH_O, NULL},
51001 	 { (char *)"Document___str__", (PyCFunction)_wrap_Document___str__, METH_O, (char *)"\n"
51002 		"\n"
51003 		"\n"
51004 		"Return a string describing this object.\n"
51005 		"\n"
51006 		"std::string Xapian::Document::get_description() const \n"
51007 		""},
51008 	 { (char *)"Document_swigregister", Document_swigregister, METH_VARARGS, NULL},
51009 	 { (char *)"Document_swiginit", Document_swiginit, METH_VARARGS, NULL},
51010 	 { (char *)"new_Registry", (PyCFunction)_wrap_new_Registry, METH_NOARGS, (char *)"\n"
51011 		"\n"
51012 		"\n"
51013 		"Default constructor.\n"
51014 		"\n"
51015 		"Xapian::Registry::Registry()\n"
51016 		"\n"
51017 		"The registry will contain all standard subclasses of user-subclassable\n"
51018 		"classes. \n"
51019 		""},
51020 	 { (char *)"delete_Registry", (PyCFunction)_wrap_delete_Registry, METH_O, (char *)"Xapian::Registry::~Registry() "},
51021 	 { (char *)"Registry_register_weighting_scheme", _wrap_Registry_register_weighting_scheme, METH_VARARGS, (char *)"\n"
51022 		"\n"
51023 		"\n"
51024 		"Register a weighting scheme.\n"
51025 		"\n"
51026 		"void Xapian::Registry::register_weighting_scheme(const Xapian::Weight\n"
51027 		"&wt)\n"
51028 		"\n"
51029 		"Parameters:\n"
51030 		"-----------\n"
51031 		"\n"
51032 		"wt:  The weighting scheme to register. \n"
51033 		""},
51034 	 { (char *)"Registry_get_weighting_scheme", _wrap_Registry_get_weighting_scheme, METH_VARARGS, (char *)"\n"
51035 		"\n"
51036 		"\n"
51037 		"Get the weighting scheme given a name.\n"
51038 		"\n"
51039 		"const Xapian::Weight* Xapian::Registry::get_weighting_scheme(const\n"
51040 		"std::string &name) const\n"
51041 		"\n"
51042 		"Parameters:\n"
51043 		"-----------\n"
51044 		"\n"
51045 		"name:  The name of the weighting scheme to find.\n"
51046 		"\n"
51047 		"An object with the requested name, or NULL if the weighting scheme\n"
51048 		"could not be found. The returned object is owned by the registry and\n"
51049 		"so must not be deleted by the caller. \n"
51050 		""},
51051 	 { (char *)"Registry_register_posting_source", _wrap_Registry_register_posting_source, METH_VARARGS, (char *)"\n"
51052 		"\n"
51053 		"\n"
51054 		"Register a user-defined posting source class.\n"
51055 		"\n"
51056 		"void Xapian::Registry::register_posting_source(const\n"
51057 		"Xapian::PostingSource &source)\n"
51058 		"\n"
51059 		"Parameters:\n"
51060 		"-----------\n"
51061 		"\n"
51062 		"source:  The posting source to register. \n"
51063 		""},
51064 	 { (char *)"Registry_get_posting_source", _wrap_Registry_get_posting_source, METH_VARARGS, (char *)"\n"
51065 		"\n"
51066 		"\n"
51067 		"Get a posting source given a name.\n"
51068 		"\n"
51069 		"const Xapian::PostingSource*\n"
51070 		"Xapian::Registry::get_posting_source(const std::string &name) const\n"
51071 		"\n"
51072 		"Parameters:\n"
51073 		"-----------\n"
51074 		"\n"
51075 		"name:  The name of the posting source to find.\n"
51076 		"\n"
51077 		"An object with the requested name, or NULL if the posting source could\n"
51078 		"not be found. The returned object is owned by the registry and so must\n"
51079 		"not be deleted by the caller. \n"
51080 		""},
51081 	 { (char *)"Registry_register_match_spy", _wrap_Registry_register_match_spy, METH_VARARGS, (char *)"\n"
51082 		"\n"
51083 		"\n"
51084 		"Register a user-defined match spy class.\n"
51085 		"\n"
51086 		"void Xapian::Registry::register_match_spy(const Xapian::MatchSpy &spy)\n"
51087 		"\n"
51088 		"Parameters:\n"
51089 		"-----------\n"
51090 		"\n"
51091 		"spy:  The match spy to register. \n"
51092 		""},
51093 	 { (char *)"Registry_get_match_spy", _wrap_Registry_get_match_spy, METH_VARARGS, (char *)"\n"
51094 		"\n"
51095 		"\n"
51096 		"Get a match spy given a name.\n"
51097 		"\n"
51098 		"const Xapian::MatchSpy* Xapian::Registry::get_match_spy(const\n"
51099 		"std::string &name) const\n"
51100 		"\n"
51101 		"Parameters:\n"
51102 		"-----------\n"
51103 		"\n"
51104 		"name:  The name of the match spy to find.\n"
51105 		"\n"
51106 		"An object with the requested name, or NULL if the match spy could not\n"
51107 		"be found. The returned object is owned by the registry and so must not\n"
51108 		"be deleted by the caller. \n"
51109 		""},
51110 	 { (char *)"Registry_register_lat_long_metric", _wrap_Registry_register_lat_long_metric, METH_VARARGS, (char *)"\n"
51111 		"\n"
51112 		"\n"
51113 		"Register a user-defined lat-long metric class.\n"
51114 		"\n"
51115 		"void Xapian::Registry::register_lat_long_metric(const\n"
51116 		"Xapian::LatLongMetric &metric) \n"
51117 		""},
51118 	 { (char *)"Registry_get_lat_long_metric", _wrap_Registry_get_lat_long_metric, METH_VARARGS, (char *)"\n"
51119 		"\n"
51120 		"\n"
51121 		"Get a lat-long metric given a name.\n"
51122 		"\n"
51123 		"const Xapian::LatLongMetric*\n"
51124 		"Xapian::Registry::get_lat_long_metric(const std::string &name) const\n"
51125 		"\n"
51126 		"The returned metric is owned by the registry object.\n"
51127 		"\n"
51128 		"Returns NULL if the metric could not be found. \n"
51129 		""},
51130 	 { (char *)"Registry_swigregister", Registry_swigregister, METH_VARARGS, NULL},
51131 	 { (char *)"Registry_swiginit", Registry_swiginit, METH_VARARGS, NULL},
51132 	 { (char *)"delete_Query", (PyCFunction)_wrap_delete_Query, METH_O, (char *)"\n"
51133 		"\n"
51134 		"\n"
51135 		"Destructor.\n"
51136 		"\n"
51137 		"Xapian::Query::~Query() \n"
51138 		""},
51139 	 { (char *)"Query__get_terms_begin", (PyCFunction)_wrap_Query__get_terms_begin, METH_O, (char *)"\n"
51140 		"\n"
51141 		"\n"
51142 		"Begin iterator for terms in the query object.\n"
51143 		"\n"
51144 		"const TermIterator Xapian::Query::get_terms_begin() const\n"
51145 		"\n"
51146 		"The iterator returns terms in ascending query position order, and will\n"
51147 		"return the same term in each unique position it occurs in. If you want\n"
51148 		"the terms in sorted order and without duplicates, see\n"
51149 		"get_unique_terms_begin(). \n"
51150 		""},
51151 	 { (char *)"Query__get_terms_end", (PyCFunction)_wrap_Query__get_terms_end, METH_O, (char *)"\n"
51152 		"\n"
51153 		"\n"
51154 		"End iterator for terms in the query object.\n"
51155 		"\n"
51156 		"const TermIterator Xapian::Query::get_terms_end() const \n"
51157 		""},
51158 	 { (char *)"Query_get_unique_terms_begin", (PyCFunction)_wrap_Query_get_unique_terms_begin, METH_O, (char *)"\n"
51159 		"\n"
51160 		"\n"
51161 		"Begin iterator for unique terms in the query object.\n"
51162 		"\n"
51163 		"const TermIterator Xapian::Query::get_unique_terms_begin() const\n"
51164 		"\n"
51165 		"Terms are sorted and terms with the same name removed from the list.\n"
51166 		"\n"
51167 		"If you want the terms in ascending query position order, see\n"
51168 		"get_terms_begin(). \n"
51169 		""},
51170 	 { (char *)"Query_get_unique_terms_end", (PyCFunction)_wrap_Query_get_unique_terms_end, METH_O, (char *)"\n"
51171 		"\n"
51172 		"\n"
51173 		"End iterator for unique terms in the query object.\n"
51174 		"\n"
51175 		"const TermIterator Xapian::Query::get_unique_terms_end() const \n"
51176 		""},
51177 	 { (char *)"Query_get_length", (PyCFunction)_wrap_Query_get_length, METH_O, (char *)"\n"
51178 		"\n"
51179 		"\n"
51180 		"Return the length of this query object.\n"
51181 		"\n"
51182 		"Xapian::termcount Xapian::Query::get_length() const \n"
51183 		""},
51184 	 { (char *)"Query_empty", (PyCFunction)_wrap_Query_empty, METH_O, (char *)"\n"
51185 		"\n"
51186 		"\n"
51187 		"Check if this query is Xapian::Query::MatchNothing.\n"
51188 		"\n"
51189 		"bool Xapian::Query::empty() const \n"
51190 		""},
51191 	 { (char *)"Query_serialise", (PyCFunction)_wrap_Query_serialise, METH_O, (char *)"\n"
51192 		"\n"
51193 		"\n"
51194 		"Serialise this object into a string.\n"
51195 		"\n"
51196 		"std::string Xapian::Query::serialise() const \n"
51197 		""},
51198 	 { (char *)"Query_unserialise", _wrap_Query_unserialise, METH_VARARGS, NULL},
51199 	 { (char *)"Query_get_type", (PyCFunction)_wrap_Query_get_type, METH_O, (char *)"\n"
51200 		"\n"
51201 		"\n"
51202 		"Get the type of the top level of the query.\n"
51203 		"\n"
51204 		"op Xapian::Query::get_type() const \n"
51205 		""},
51206 	 { (char *)"Query_get_num_subqueries", (PyCFunction)_wrap_Query_get_num_subqueries, METH_O, (char *)"\n"
51207 		"\n"
51208 		"\n"
51209 		"Get the number of subqueries of the top level query.\n"
51210 		"\n"
51211 		"size_t Xapian::Query::get_num_subqueries() const \n"
51212 		""},
51213 	 { (char *)"Query_get_subquery", _wrap_Query_get_subquery, METH_VARARGS, (char *)"\n"
51214 		"\n"
51215 		"\n"
51216 		"Read a top level subquery.\n"
51217 		"\n"
51218 		"const Query Xapian::Query::get_subquery(size_t n) const\n"
51219 		"\n"
51220 		"Parameters:\n"
51221 		"-----------\n"
51222 		"\n"
51223 		"n:  Return the n-th subquery (starting from 0) - only valid when 0 <=\n"
51224 		"n < get_num_subqueries(). \n"
51225 		""},
51226 	 { (char *)"Query___str__", (PyCFunction)_wrap_Query___str__, METH_O, (char *)"\n"
51227 		"\n"
51228 		"\n"
51229 		"Return a string describing this object.\n"
51230 		"\n"
51231 		"std::string Xapian::Query::get_description() const \n"
51232 		""},
51233 	 { (char *)"new_Query", _wrap_new_Query, METH_VARARGS, (char *)"\n"
51234 		"\n"
51235 		"\n"
51236 		"Construct with just an operator.\n"
51237 		"\n"
51238 		"Xapian::Query::Query(Query::op op_)\n"
51239 		"\n"
51240 		"Parameters:\n"
51241 		"-----------\n"
51242 		"\n"
51243 		"op_:  The operator to use - currently only OP_INVALID is useful. \n"
51244 		""},
51245 	 { (char *)"Query_swigregister", Query_swigregister, METH_VARARGS, NULL},
51246 	 { (char *)"Query_swiginit", Query_swiginit, METH_VARARGS, NULL},
51247 	 { (char *)"new_StemImplementation", (PyCFunction)_wrap_new_StemImplementation, METH_O, (char *)"\n"
51248 		"\n"
51249 		"\n"
51250 		"Default constructor.\n"
51251 		"\n"
51252 		"Xapian::StemImplementation::StemImplementation() \n"
51253 		""},
51254 	 { (char *)"delete_StemImplementation", (PyCFunction)_wrap_delete_StemImplementation, METH_O, (char *)"\n"
51255 		"\n"
51256 		"\n"
51257 		"Virtual destructor.\n"
51258 		"\n"
51259 		"virtual Xapian::StemImplementation::~StemImplementation() \n"
51260 		""},
51261 	 { (char *)"StemImplementation___call__", _wrap_StemImplementation___call__, METH_VARARGS, NULL},
51262 	 { (char *)"StemImplementation___str__", (PyCFunction)_wrap_StemImplementation___str__, METH_O, (char *)"\n"
51263 		"\n"
51264 		"\n"
51265 		"Return a string describing this object.\n"
51266 		"\n"
51267 		"virtual std::string Xapian::StemImplementation::get_description()\n"
51268 		"const =0 \n"
51269 		""},
51270 	 { (char *)"disown_StemImplementation", (PyCFunction)_wrap_disown_StemImplementation, METH_O, NULL},
51271 	 { (char *)"StemImplementation_swigregister", StemImplementation_swigregister, METH_VARARGS, NULL},
51272 	 { (char *)"StemImplementation_swiginit", StemImplementation_swiginit, METH_VARARGS, NULL},
51273 	 { (char *)"new_Stem", _wrap_new_Stem, METH_VARARGS, (char *)"\n"
51274 		"\n"
51275 		"\n"
51276 		"Construct a Xapian::Stem object with a user-provided stemming\n"
51277 		"algorithm.\n"
51278 		"\n"
51279 		"Xapian::Stem::Stem(StemImplementation *p)\n"
51280 		"\n"
51281 		"You can subclass Xapian::StemImplementation to implement your own\n"
51282 		"stemming algorithm (or to wrap a third-party algorithm) and then wrap\n"
51283 		"your implementation in a Xapian::Stem object to pass to the Xapian\n"
51284 		"API.\n"
51285 		"\n"
51286 		"Parameters:\n"
51287 		"-----------\n"
51288 		"\n"
51289 		"p:  The user-subclassed StemImplementation object. This is reference\n"
51290 		"counted, and so will be automatically deleted by the Xapian::Stem\n"
51291 		"wrapper when no longer required. \n"
51292 		""},
51293 	 { (char *)"delete_Stem", (PyCFunction)_wrap_delete_Stem, METH_O, (char *)"\n"
51294 		"\n"
51295 		"\n"
51296 		"Destructor.\n"
51297 		"\n"
51298 		"Xapian::Stem::~Stem() \n"
51299 		""},
51300 	 { (char *)"Stem___call__", _wrap_Stem___call__, METH_VARARGS, NULL},
51301 	 { (char *)"Stem_is_none", (PyCFunction)_wrap_Stem_is_none, METH_O, (char *)"\n"
51302 		"\n"
51303 		"\n"
51304 		"Return true if this is a no-op stemmer.\n"
51305 		"\n"
51306 		"bool Xapian::Stem::is_none() const \n"
51307 		""},
51308 	 { (char *)"Stem___str__", (PyCFunction)_wrap_Stem___str__, METH_O, (char *)"\n"
51309 		"\n"
51310 		"\n"
51311 		"Return a string describing this object.\n"
51312 		"\n"
51313 		"std::string Xapian::Stem::get_description() const \n"
51314 		""},
51315 	 { (char *)"Stem_get_available_languages", (PyCFunction)_wrap_Stem_get_available_languages, METH_NOARGS, NULL},
51316 	 { (char *)"Stem_swigregister", Stem_swigregister, METH_VARARGS, NULL},
51317 	 { (char *)"Stem_swiginit", Stem_swiginit, METH_VARARGS, NULL},
51318 	 { (char *)"new_TermGenerator", (PyCFunction)_wrap_new_TermGenerator, METH_NOARGS, (char *)"\n"
51319 		"\n"
51320 		"\n"
51321 		"Default constructor.\n"
51322 		"\n"
51323 		"Xapian::TermGenerator::TermGenerator() \n"
51324 		""},
51325 	 { (char *)"delete_TermGenerator", (PyCFunction)_wrap_delete_TermGenerator, METH_O, (char *)"\n"
51326 		"\n"
51327 		"\n"
51328 		"Destructor.\n"
51329 		"\n"
51330 		"Xapian::TermGenerator::~TermGenerator() \n"
51331 		""},
51332 	 { (char *)"TermGenerator_set_stemmer", _wrap_TermGenerator_set_stemmer, METH_VARARGS, (char *)"\n"
51333 		"\n"
51334 		"\n"
51335 		"Set the Xapian::Stem object to be used for generating stemmed terms.\n"
51336 		"\n"
51337 		"void Xapian::TermGenerator::set_stemmer(const Xapian::Stem &stemmer)\n"
51338 		"\n"
51339 		""},
51340 	 { (char *)"TermGenerator_set_stopper", _wrap_TermGenerator_set_stopper, METH_VARARGS, (char *)"\n"
51341 		"\n"
51342 		"\n"
51343 		"Set the Xapian::Stopper object to be used for identifying stopwords.\n"
51344 		"\n"
51345 		"void Xapian::TermGenerator::set_stopper(const Xapian::Stopper\n"
51346 		"*stop=NULL)\n"
51347 		"\n"
51348 		"Stemmed forms of stopwords aren't indexed, but unstemmed forms still\n"
51349 		"are so that searches for phrases including stop words still work.\n"
51350 		"\n"
51351 		"Parameters:\n"
51352 		"-----------\n"
51353 		"\n"
51354 		"stop:  The Stopper object to set (default NULL, which means no\n"
51355 		"stopwords). \n"
51356 		""},
51357 	 { (char *)"TermGenerator_set_document", _wrap_TermGenerator_set_document, METH_VARARGS, (char *)"\n"
51358 		"\n"
51359 		"\n"
51360 		"Set the current document.\n"
51361 		"\n"
51362 		"void Xapian::TermGenerator::set_document(const Xapian::Document &doc)\n"
51363 		"\n"
51364 		""},
51365 	 { (char *)"TermGenerator_get_document", (PyCFunction)_wrap_TermGenerator_get_document, METH_O, (char *)"\n"
51366 		"\n"
51367 		"\n"
51368 		"Get the current document.\n"
51369 		"\n"
51370 		"const Xapian::Document& Xapian::TermGenerator::get_document() const \n"
51371 		""},
51372 	 { (char *)"TermGenerator_set_database", _wrap_TermGenerator_set_database, METH_VARARGS, (char *)"\n"
51373 		"\n"
51374 		"\n"
51375 		"Set the database to index spelling data to.\n"
51376 		"\n"
51377 		"void Xapian::TermGenerator::set_database(const\n"
51378 		"Xapian::WritableDatabase &db) \n"
51379 		""},
51380 	 { (char *)"TermGenerator_set_flags", _wrap_TermGenerator_set_flags, METH_VARARGS, (char *)"\n"
51381 		"\n"
51382 		"\n"
51383 		"Set flags.\n"
51384 		"\n"
51385 		"flags Xapian::TermGenerator::set_flags(flags toggle, flags\n"
51386 		"mask=flags(0))\n"
51387 		"\n"
51388 		"The new value of flags is: (flags & mask) ^ toggle\n"
51389 		"\n"
51390 		"To just set the flags, pass the new flags in toggle and the default\n"
51391 		"value for mask.\n"
51392 		"\n"
51393 		"Parameters:\n"
51394 		"-----------\n"
51395 		"\n"
51396 		"toggle:  Flags to XOR.\n"
51397 		"\n"
51398 		"mask:  Flags to AND with first.\n"
51399 		"\n"
51400 		"The old flags setting. \n"
51401 		""},
51402 	 { (char *)"TermGenerator_set_stemming_strategy", _wrap_TermGenerator_set_stemming_strategy, METH_VARARGS, (char *)"\n"
51403 		"\n"
51404 		"\n"
51405 		"Set the stemming strategy.\n"
51406 		"\n"
51407 		"void Xapian::TermGenerator::set_stemming_strategy(stem_strategy\n"
51408 		"strategy)\n"
51409 		"\n"
51410 		"This method controls how the stemming algorithm is applied. It was new\n"
51411 		"in Xapian 1.3.1.\n"
51412 		"\n"
51413 		"Parameters:\n"
51414 		"-----------\n"
51415 		"\n"
51416 		"strategy:  The strategy to use - possible values are: STEM_NONE: Don't\n"
51417 		"perform any stemming - only unstemmed terms are generated.\n"
51418 		"\n"
51419 		"STEM_SOME: Generate both stemmed (with a \"Z\" prefix) and unstemmed\n"
51420 		"terms. No positional information is stored for unstemmed terms. This\n"
51421 		"is the default strategy.\n"
51422 		"\n"
51423 		"STEM_SOME_FULL_POS: Like STEM_SOME but positional information is\n"
51424 		"stored for both stemmed and unstemmed terms. Added in Xapian 1.4.8.\n"
51425 		"\n"
51426 		"STEM_ALL: Generate only stemmed terms (but without a \"Z\" prefix).\n"
51427 		"\n"
51428 		"STEM_ALL_Z: Generate only stemmed terms (with a \"Z\" prefix). \n"
51429 		""},
51430 	 { (char *)"TermGenerator_set_stopper_strategy", _wrap_TermGenerator_set_stopper_strategy, METH_VARARGS, (char *)"\n"
51431 		"\n"
51432 		"\n"
51433 		"Set the stopper strategy.\n"
51434 		"\n"
51435 		"void Xapian::TermGenerator::set_stopper_strategy(stop_strategy\n"
51436 		"strategy)\n"
51437 		"\n"
51438 		"The method controls how the stopper is used. It was added in Xapian\n"
51439 		"1.4.1.\n"
51440 		"\n"
51441 		"You need to also call  set_stopper() for this to have any effect.\n"
51442 		"\n"
51443 		"Parameters:\n"
51444 		"-----------\n"
51445 		"\n"
51446 		"strategy:  The strategy to use - possible values are: STOP_NONE: Don't\n"
51447 		"use the stopper.\n"
51448 		"\n"
51449 		"STOP_ALL: If a word is identified as a stop word, skip it completely.\n"
51450 		"\n"
51451 		"STOP_STEMMED: If a word is identified as a stop word, index its\n"
51452 		"unstemmed form but skip the stem. Unstemmed forms are indexed with\n"
51453 		"positional information by default, so this allows searches for phrases\n"
51454 		"containing stopwords to be supported. (This is the default mode). \n"
51455 		""},
51456 	 { (char *)"TermGenerator_set_max_word_length", _wrap_TermGenerator_set_max_word_length, METH_VARARGS, (char *)"\n"
51457 		"\n"
51458 		"\n"
51459 		"Set the maximum length word to index.\n"
51460 		"\n"
51461 		"void Xapian::TermGenerator::set_max_word_length(unsigned\n"
51462 		"max_word_length)\n"
51463 		"\n"
51464 		"The limit is on the length of a word prior to stemming and prior to\n"
51465 		"adding any term prefix.\n"
51466 		"\n"
51467 		"The backends mostly impose a limit on the length of terms (often of\n"
51468 		"about 240 bytes), but it's generally useful to have a lower limit to\n"
51469 		"help prevent the index being bloated by useless junk terms from trying\n"
51470 		"to indexing things like binary data, uuencoded data, ASCII art, etc.\n"
51471 		"\n"
51472 		"This method was new in Xapian 1.3.1.\n"
51473 		"\n"
51474 		"Parameters:\n"
51475 		"-----------\n"
51476 		"\n"
51477 		"max_word_length:  The maximum length word to index, in bytes in UTF-8\n"
51478 		"representation. Default is 64. \n"
51479 		""},
51480 	 { (char *)"TermGenerator_index_text", _wrap_TermGenerator_index_text, METH_VARARGS, (char *)"\n"
51481 		"\n"
51482 		"\n"
51483 		"Index some text in a std::string.\n"
51484 		"\n"
51485 		"void Xapian::TermGenerator::index_text(const std::string &text,\n"
51486 		"Xapian::termcount wdf_inc=1, const std::string &prefix=std::string())\n"
51487 		"\n"
51488 		"Parameters:\n"
51489 		"-----------\n"
51490 		"\n"
51491 		"text:  The text to index.\n"
51492 		"\n"
51493 		"wdf_inc:  The wdf increment (default 1).\n"
51494 		"\n"
51495 		"prefix:  The term prefix to use (default is no prefix). \n"
51496 		""},
51497 	 { (char *)"TermGenerator_index_text_without_positions", _wrap_TermGenerator_index_text_without_positions, METH_VARARGS, (char *)"\n"
51498 		"\n"
51499 		"\n"
51500 		"Index some text in a std::string without positional information.\n"
51501 		"\n"
51502 		"void Xapian::TermGenerator::index_text_without_positions(const\n"
51503 		"std::string &text, Xapian::termcount wdf_inc=1, const std::string\n"
51504 		"&prefix=std::string())\n"
51505 		"\n"
51506 		"Just like index_text, but no positional information is generated. This\n"
51507 		"means that the database will be significantly smaller, but that phrase\n"
51508 		"searching and NEAR won't be supported.\n"
51509 		"\n"
51510 		"Parameters:\n"
51511 		"-----------\n"
51512 		"\n"
51513 		"text:  The text to index.\n"
51514 		"\n"
51515 		"wdf_inc:  The wdf increment (default 1).\n"
51516 		"\n"
51517 		"prefix:  The term prefix to use (default is no prefix). \n"
51518 		""},
51519 	 { (char *)"TermGenerator_increase_termpos", _wrap_TermGenerator_increase_termpos, METH_VARARGS, (char *)"\n"
51520 		"\n"
51521 		"\n"
51522 		"Increase the term position used by index_text.\n"
51523 		"\n"
51524 		"void Xapian::TermGenerator::increase_termpos(Xapian::termpos\n"
51525 		"delta=100)\n"
51526 		"\n"
51527 		"This can be used between indexing text from different fields or other\n"
51528 		"places to prevent phrase searches from spanning between them (e.g.\n"
51529 		"between the title and body text, or between two chapters in a book).\n"
51530 		"\n"
51531 		"Parameters:\n"
51532 		"-----------\n"
51533 		"\n"
51534 		"delta:  Amount to increase the term position by (default: 100). \n"
51535 		""},
51536 	 { (char *)"TermGenerator_get_termpos", (PyCFunction)_wrap_TermGenerator_get_termpos, METH_O, (char *)"\n"
51537 		"\n"
51538 		"\n"
51539 		"Get the current term position.\n"
51540 		"\n"
51541 		"Xapian::termpos Xapian::TermGenerator::get_termpos() const \n"
51542 		""},
51543 	 { (char *)"TermGenerator_set_termpos", _wrap_TermGenerator_set_termpos, METH_VARARGS, (char *)"\n"
51544 		"\n"
51545 		"\n"
51546 		"Set the current term position.\n"
51547 		"\n"
51548 		"void Xapian::TermGenerator::set_termpos(Xapian::termpos termpos)\n"
51549 		"\n"
51550 		"Parameters:\n"
51551 		"-----------\n"
51552 		"\n"
51553 		"termpos:  The new term position to set. \n"
51554 		""},
51555 	 { (char *)"TermGenerator___str__", (PyCFunction)_wrap_TermGenerator___str__, METH_O, (char *)"\n"
51556 		"\n"
51557 		"\n"
51558 		"Return a string describing this object.\n"
51559 		"\n"
51560 		"std::string Xapian::TermGenerator::get_description() const \n"
51561 		""},
51562 	 { (char *)"TermGenerator_swigregister", TermGenerator_swigregister, METH_VARARGS, NULL},
51563 	 { (char *)"TermGenerator_swiginit", TermGenerator_swiginit, METH_VARARGS, NULL},
51564 	 { (char *)"new_MSet", (PyCFunction)_wrap_new_MSet, METH_NOARGS, (char *)"\n"
51565 		"\n"
51566 		"\n"
51567 		"Default constructor.\n"
51568 		"\n"
51569 		"Xapian::MSet::MSet()\n"
51570 		"\n"
51571 		"Creates an empty MSet, mostly useful as a placeholder. \n"
51572 		""},
51573 	 { (char *)"delete_MSet", (PyCFunction)_wrap_delete_MSet, METH_O, (char *)"\n"
51574 		"\n"
51575 		"\n"
51576 		"Destructor.\n"
51577 		"\n"
51578 		"Xapian::MSet::~MSet() \n"
51579 		""},
51580 	 { (char *)"MSet_convert_to_percent", _wrap_MSet_convert_to_percent, METH_VARARGS, (char *)"\n"
51581 		"\n"
51582 		"\n"
51583 		"Convert the weight of the current iterator position to a percentage.\n"
51584 		"\n"
51585 		"int Xapian::MSet::convert_to_percent(const MSetIterator &it) const\n"
51586 		"\n"
51587 		"The matching document with the highest weight will get 100% if it\n"
51588 		"matches all the weighted query terms, and proportionally less if it\n"
51589 		"only matches some, and other weights are scaled by the same factor.\n"
51590 		"\n"
51591 		"Documents with a non-zero score will always score at least 1%.\n"
51592 		"\n"
51593 		"Note that these generally aren't percentages of anything meaningful\n"
51594 		"(unless you use a custom weighting formula where they are!) \n"
51595 		""},
51596 	 { (char *)"MSet_get_termfreq", _wrap_MSet_get_termfreq, METH_VARARGS, (char *)"\n"
51597 		"\n"
51598 		"\n"
51599 		"Get the termfreq of a term.\n"
51600 		"\n"
51601 		"Xapian::doccount Xapian::MSet::get_termfreq(const std::string &term)\n"
51602 		"const\n"
51603 		"\n"
51604 		"The number of documents which term occurs in. This considers all\n"
51605 		"documents in the database being searched, so gives the same answer as\n"
51606 		"db.get_termfreq(term) (but is more efficient for query terms as it\n"
51607 		"returns a value cached during the search.) \n"
51608 		""},
51609 	 { (char *)"MSet_get_termweight", _wrap_MSet_get_termweight, METH_VARARGS, (char *)"\n"
51610 		"\n"
51611 		"\n"
51612 		"Get the term weight of a term.\n"
51613 		"\n"
51614 		"double Xapian::MSet::get_termweight(const std::string &term) const\n"
51615 		"\n"
51616 		"The maximum weight that term could have contributed to a document. \n"
51617 		""},
51618 	 { (char *)"MSet_get_firstitem", (PyCFunction)_wrap_MSet_get_firstitem, METH_O, (char *)"\n"
51619 		"\n"
51620 		"\n"
51621 		"Rank of first item in this MSet.\n"
51622 		"\n"
51623 		"Xapian::doccount Xapian::MSet::get_firstitem() const\n"
51624 		"\n"
51625 		"This is the parameter first passed to Xapian::Enquire::get_mset(). \n"
51626 		""},
51627 	 { (char *)"MSet_get_matches_lower_bound", (PyCFunction)_wrap_MSet_get_matches_lower_bound, METH_O, (char *)"\n"
51628 		"\n"
51629 		"\n"
51630 		"Lower bound on the total number of matching documents.\n"
51631 		"\n"
51632 		"Xapian::doccount Xapian::MSet::get_matches_lower_bound() const \n"
51633 		""},
51634 	 { (char *)"MSet_get_matches_estimated", (PyCFunction)_wrap_MSet_get_matches_estimated, METH_O, (char *)"\n"
51635 		"\n"
51636 		"\n"
51637 		"Estimate of the total number of matching documents.\n"
51638 		"\n"
51639 		"Xapian::doccount Xapian::MSet::get_matches_estimated() const \n"
51640 		""},
51641 	 { (char *)"MSet_get_matches_upper_bound", (PyCFunction)_wrap_MSet_get_matches_upper_bound, METH_O, (char *)"\n"
51642 		"\n"
51643 		"\n"
51644 		"Upper bound on the total number of matching documents.\n"
51645 		"\n"
51646 		"Xapian::doccount Xapian::MSet::get_matches_upper_bound() const \n"
51647 		""},
51648 	 { (char *)"MSet_get_uncollapsed_matches_lower_bound", (PyCFunction)_wrap_MSet_get_uncollapsed_matches_lower_bound, METH_O, (char *)"\n"
51649 		"\n"
51650 		"\n"
51651 		"Lower bound on the total number of matching documents before\n"
51652 		"collapsing.\n"
51653 		"\n"
51654 		"Xapian::doccount Xapian::MSet::get_uncollapsed_matches_lower_bound()\n"
51655 		"const\n"
51656 		"\n"
51657 		"Conceptually the same as get_matches_lower_bound() for the same query\n"
51658 		"without any collapse part (though the actual value may differ). \n"
51659 		""},
51660 	 { (char *)"MSet_get_uncollapsed_matches_estimated", (PyCFunction)_wrap_MSet_get_uncollapsed_matches_estimated, METH_O, (char *)"\n"
51661 		"\n"
51662 		"\n"
51663 		"Estimate of the total number of matching documents before collapsing.\n"
51664 		"\n"
51665 		"Xapian::doccount Xapian::MSet::get_uncollapsed_matches_estimated()\n"
51666 		"const\n"
51667 		"\n"
51668 		"Conceptually the same as get_matches_estimated() for the same query\n"
51669 		"without any collapse part (though the actual value may differ). \n"
51670 		""},
51671 	 { (char *)"MSet_get_uncollapsed_matches_upper_bound", (PyCFunction)_wrap_MSet_get_uncollapsed_matches_upper_bound, METH_O, (char *)"\n"
51672 		"\n"
51673 		"\n"
51674 		"Upper bound on the total number of matching documents before\n"
51675 		"collapsing.\n"
51676 		"\n"
51677 		"Xapian::doccount Xapian::MSet::get_uncollapsed_matches_upper_bound()\n"
51678 		"const\n"
51679 		"\n"
51680 		"Conceptually the same as get_matches_upper_bound() for the same query\n"
51681 		"without any collapse part (though the actual value may differ). \n"
51682 		""},
51683 	 { (char *)"MSet_get_max_attained", (PyCFunction)_wrap_MSet_get_max_attained, METH_O, (char *)"\n"
51684 		"\n"
51685 		"\n"
51686 		"The maximum weight attained by any document.\n"
51687 		"\n"
51688 		"double Xapian::MSet::get_max_attained() const \n"
51689 		""},
51690 	 { (char *)"MSet_get_max_possible", (PyCFunction)_wrap_MSet_get_max_possible, METH_O, (char *)"\n"
51691 		"\n"
51692 		"\n"
51693 		"The maximum possible weight any document could achieve.\n"
51694 		"\n"
51695 		"double Xapian::MSet::get_max_possible() const \n"
51696 		""},
51697 	 { (char *)"MSet_snippet", _wrap_MSet_snippet, METH_VARARGS, (char *)"\n"
51698 		"\n"
51699 		"\n"
51700 		"Generate a snippet.\n"
51701 		"\n"
51702 		"std::string Xapian::MSet::snippet(const std::string &text, size_t\n"
51703 		"length=500, const Xapian::Stem &stemmer=Xapian::Stem(), unsigned\n"
51704 		"flags=SNIPPET_BACKGROUND_MODEL|SNIPPET_EXHAUSTIVE, const std::string\n"
51705 		"&hi_start=\"<b>\", const std::string &hi_end=\"</b>\", const\n"
51706 		"std::string &omit=\"...\") const\n"
51707 		"\n"
51708 		"This method selects a continuous run of words from text, based mainly\n"
51709 		"on where the query matches (currently terms, exact phrases and\n"
51710 		"wildcards are taken into account). If flag SNIPPET_BACKGROUND_MODEL is\n"
51711 		"used (which it is by default) then the selection algorithm also\n"
51712 		"considers the non-query terms in the text with the aim of showing a\n"
51713 		"context which provides more useful information.\n"
51714 		"\n"
51715 		"The size of the text selected can be controlled by the length\n"
51716 		"parameter, which specifies a number of bytes of text to aim to select.\n"
51717 		"However slightly more text may be selected. Also the size of any\n"
51718 		"escaping, highlighting or omission markers is not considered.\n"
51719 		"\n"
51720 		"The returned text is escaped to make it suitable for use in HTML\n"
51721 		"(though beware that in upstream releases 1.4.5 and earlier this\n"
51722 		"escaping was sometimes incomplete), and matches with the query will be\n"
51723 		"highlighted using hi_start and hi_end.\n"
51724 		"\n"
51725 		"If the snippet seems to start or end mid-sentence, then omit is\n"
51726 		"prepended or append (respectively) to indicate this.\n"
51727 		"\n"
51728 		"The same stemming algorithm which was used to build the query should\n"
51729 		"be specified in stemmer.\n"
51730 		"\n"
51731 		"And flags contains flags controlling behaviour.\n"
51732 		"\n"
51733 		"Added in 1.3.5. \n"
51734 		""},
51735 	 { (char *)"MSet_fetch", _wrap_MSet_fetch, METH_VARARGS, (char *)"\n"
51736 		"\n"
51737 		"\n"
51738 		"Prefetch hint the whole MSet.\n"
51739 		"\n"
51740 		"void Xapian::MSet::fetch() const\n"
51741 		"\n"
51742 		"For a remote database, this may start a pipelined fetch of the\n"
51743 		"requested documents from the remote server.\n"
51744 		"\n"
51745 		"For a disk-based database, this may send prefetch hints to the\n"
51746 		"operating system such that the disk blocks the requested documents are\n"
51747 		"stored in are more likely to be in the cache when we come to actually\n"
51748 		"read them. \n"
51749 		""},
51750 	 { (char *)"MSet_size", (PyCFunction)_wrap_MSet_size, METH_O, (char *)"\n"
51751 		"\n"
51752 		"\n"
51753 		"Return number of items in this MSet object.\n"
51754 		"\n"
51755 		"Xapian::doccount Xapian::MSet::size() const \n"
51756 		""},
51757 	 { (char *)"MSet_empty", (PyCFunction)_wrap_MSet_empty, METH_O, (char *)"\n"
51758 		"\n"
51759 		"\n"
51760 		"Return true if this MSet object is empty.\n"
51761 		"\n"
51762 		"bool Xapian::MSet::empty() const \n"
51763 		""},
51764 	 { (char *)"MSet__begin", (PyCFunction)_wrap_MSet__begin, METH_O, (char *)"\n"
51765 		"\n"
51766 		"\n"
51767 		"Return iterator pointing to the first item in this MSet.\n"
51768 		"\n"
51769 		"MSetIterator Xapian::MSet::begin() const \n"
51770 		""},
51771 	 { (char *)"MSet__end", (PyCFunction)_wrap_MSet__end, METH_O, (char *)"\n"
51772 		"\n"
51773 		"\n"
51774 		"Return iterator pointing to just after the last item in this MSet.\n"
51775 		"\n"
51776 		"MSetIterator Xapian::MSet::end() const \n"
51777 		""},
51778 	 { (char *)"MSet_back", (PyCFunction)_wrap_MSet_back, METH_O, (char *)"\n"
51779 		"\n"
51780 		"\n"
51781 		"Return iterator pointing to the last object in this MSet.\n"
51782 		"\n"
51783 		"MSetIterator Xapian::MSet::back() const \n"
51784 		""},
51785 	 { (char *)"MSet___str__", (PyCFunction)_wrap_MSet___str__, METH_O, (char *)"\n"
51786 		"\n"
51787 		"\n"
51788 		"Return a string describing this object.\n"
51789 		"\n"
51790 		"std::string Xapian::MSet::get_description() const \n"
51791 		""},
51792 	 { (char *)"MSet_get_docid", _wrap_MSet_get_docid, METH_VARARGS, NULL},
51793 	 { (char *)"MSet_get_document", _wrap_MSet_get_document, METH_VARARGS, NULL},
51794 	 { (char *)"MSet__get_hit_internal", _wrap_MSet__get_hit_internal, METH_VARARGS, (char *)"\n"
51795 		"Get an item from the MSet.\n"
51796 		"\n"
51797 		"The supplied index is relative to the start of the MSet, not the absolute rank\n"
51798 		"of the item. \n"
51799 		""},
51800 	 { (char *)"MSet_get_document_percentage", _wrap_MSet_get_document_percentage, METH_VARARGS, NULL},
51801 	 { (char *)"MSet_swigregister", MSet_swigregister, METH_VARARGS, NULL},
51802 	 { (char *)"MSet_swiginit", MSet_swiginit, METH_VARARGS, NULL},
51803 	 { (char *)"_MSetIterator_mset_set", _wrap__MSetIterator_mset_set, METH_VARARGS, NULL},
51804 	 { (char *)"_MSetIterator_mset_get", (PyCFunction)_wrap__MSetIterator_mset_get, METH_O, NULL},
51805 	 { (char *)"_MSetIterator_off_from_end_set", _wrap__MSetIterator_off_from_end_set, METH_VARARGS, NULL},
51806 	 { (char *)"_MSetIterator_off_from_end_get", (PyCFunction)_wrap__MSetIterator_off_from_end_get, METH_O, NULL},
51807 	 { (char *)"new__MSetIterator", (PyCFunction)_wrap_new__MSetIterator, METH_NOARGS, (char *)"\n"
51808 		"\n"
51809 		"\n"
51810 		"Create an unpositioned MSetIterator.\n"
51811 		"\n"
51812 		"Xapian::MSetIterator::MSetIterator() \n"
51813 		""},
51814 	 { (char *)"_MSetIterator_get_rank", (PyCFunction)_wrap__MSetIterator_get_rank, METH_O, (char *)"\n"
51815 		"\n"
51816 		"\n"
51817 		"Return the MSet rank for the current position.\n"
51818 		"\n"
51819 		"Xapian::doccount Xapian::MSetIterator::get_rank() const\n"
51820 		"\n"
51821 		"The rank of mset[0] is mset.get_firstitem(). \n"
51822 		""},
51823 	 { (char *)"_MSetIterator_get_document", (PyCFunction)_wrap__MSetIterator_get_document, METH_O, (char *)"\n"
51824 		"\n"
51825 		"\n"
51826 		"Get the Document object for the current position.\n"
51827 		"\n"
51828 		"Xapian::Document Xapian::MSetIterator::get_document() const \n"
51829 		""},
51830 	 { (char *)"_MSetIterator_get_weight", (PyCFunction)_wrap__MSetIterator_get_weight, METH_O, (char *)"\n"
51831 		"\n"
51832 		"\n"
51833 		"Get the weight for the current position.\n"
51834 		"\n"
51835 		"double Xapian::MSetIterator::get_weight() const \n"
51836 		""},
51837 	 { (char *)"_MSetIterator_get_collapse_key", (PyCFunction)_wrap__MSetIterator_get_collapse_key, METH_O, (char *)"\n"
51838 		"\n"
51839 		"\n"
51840 		"Return the collapse key for the current position.\n"
51841 		"\n"
51842 		"std::string Xapian::MSetIterator::get_collapse_key() const\n"
51843 		"\n"
51844 		"If collapsing isn't in use, an empty string will be returned. \n"
51845 		""},
51846 	 { (char *)"_MSetIterator_get_collapse_count", (PyCFunction)_wrap__MSetIterator_get_collapse_count, METH_O, (char *)"\n"
51847 		"\n"
51848 		"\n"
51849 		"Return a count of the number of collapses done onto the current key.\n"
51850 		"\n"
51851 		"Xapian::doccount Xapian::MSetIterator::get_collapse_count() const\n"
51852 		"\n"
51853 		"This starts at 0, and is incremented each time an item is eliminated\n"
51854 		"because its key is the same as that of the current item (as returned\n"
51855 		"by get_collapse_key()).\n"
51856 		"\n"
51857 		"Note that this is NOT necessarily one less than the total number of\n"
51858 		"matching documents with this collapse key due to various optimisations\n"
51859 		"implemented in the matcher - for example, it can skip documents\n"
51860 		"completely if it can prove their weight wouldn't be enough to make the\n"
51861 		"result set.\n"
51862 		"\n"
51863 		"You can say is that if get_collapse_count() > 0 then there are >=\n"
51864 		"get_collapse_count() other documents with the current collapse key.\n"
51865 		"But if get_collapse_count() == 0 then there may or may not be other\n"
51866 		"such documents. \n"
51867 		""},
51868 	 { (char *)"_MSetIterator_get_sort_key", (PyCFunction)_wrap__MSetIterator_get_sort_key, METH_O, (char *)"\n"
51869 		"\n"
51870 		"\n"
51871 		"Return the sort key for the current position.\n"
51872 		"\n"
51873 		"std::string Xapian::MSetIterator::get_sort_key() const\n"
51874 		"\n"
51875 		"If sorting didn't use a key then an empty string will be returned.\n"
51876 		"\n"
51877 		"Added in Xapian 1.4.6. \n"
51878 		""},
51879 	 { (char *)"_MSetIterator_get_percent", (PyCFunction)_wrap__MSetIterator_get_percent, METH_O, (char *)"\n"
51880 		"\n"
51881 		"\n"
51882 		"Convert the weight of the current iterator position to a percentage.\n"
51883 		"\n"
51884 		"int Xapian::MSetIterator::get_percent() const\n"
51885 		"\n"
51886 		"The matching document with the highest weight will get 100% if it\n"
51887 		"matches all the weighted query terms, and proportionally less if it\n"
51888 		"only matches some, and other weights are scaled by the same factor.\n"
51889 		"\n"
51890 		"Documents with a non-zero score will always score at least 1%.\n"
51891 		"\n"
51892 		"Note that these generally aren't percentages of anything meaningful\n"
51893 		"(unless you use a custom weighting formula where they are!) \n"
51894 		""},
51895 	 { (char *)"_MSetIterator___str__", (PyCFunction)_wrap__MSetIterator___str__, METH_O, (char *)"\n"
51896 		"\n"
51897 		"\n"
51898 		"Return a string describing this object.\n"
51899 		"\n"
51900 		"std::string Xapian::MSetIterator::get_description() const \n"
51901 		""},
51902 	 { (char *)"_MSetIterator___eq__", _wrap__MSetIterator___eq__, METH_VARARGS, NULL},
51903 	 { (char *)"_MSetIterator___ne__", _wrap__MSetIterator___ne__, METH_VARARGS, NULL},
51904 	 { (char *)"_MSetIterator_equals", _wrap__MSetIterator_equals, METH_VARARGS, NULL},
51905 	 { (char *)"_MSetIterator_get_docid", (PyCFunction)_wrap__MSetIterator_get_docid, METH_O, NULL},
51906 	 { (char *)"_MSetIterator___next__", (PyCFunction)_wrap__MSetIterator___next__, METH_O, NULL},
51907 	 { (char *)"_MSetIterator_prev", (PyCFunction)_wrap__MSetIterator_prev, METH_O, NULL},
51908 	 { (char *)"delete__MSetIterator", (PyCFunction)_wrap_delete__MSetIterator, METH_O, NULL},
51909 	 { (char *)"_MSetIterator_swigregister", _MSetIterator_swigregister, METH_VARARGS, NULL},
51910 	 { (char *)"_MSetIterator_swiginit", _MSetIterator_swiginit, METH_VARARGS, NULL},
51911 	 { (char *)"new_ESet", (PyCFunction)_wrap_new_ESet, METH_NOARGS, (char *)"\n"
51912 		"\n"
51913 		"\n"
51914 		"Default constructor.\n"
51915 		"\n"
51916 		"Xapian::ESet::ESet()\n"
51917 		"\n"
51918 		"Creates an empty ESet, mostly useful as a placeholder. \n"
51919 		""},
51920 	 { (char *)"delete_ESet", (PyCFunction)_wrap_delete_ESet, METH_O, (char *)"\n"
51921 		"\n"
51922 		"\n"
51923 		"Destructor.\n"
51924 		"\n"
51925 		"Xapian::ESet::~ESet() \n"
51926 		""},
51927 	 { (char *)"ESet_size", (PyCFunction)_wrap_ESet_size, METH_O, (char *)"\n"
51928 		"\n"
51929 		"\n"
51930 		"Return number of items in this ESet object.\n"
51931 		"\n"
51932 		"Xapian::doccount Xapian::ESet::size() const \n"
51933 		""},
51934 	 { (char *)"ESet_empty", (PyCFunction)_wrap_ESet_empty, METH_O, (char *)"\n"
51935 		"\n"
51936 		"\n"
51937 		"Return true if this ESet object is empty.\n"
51938 		"\n"
51939 		"bool Xapian::ESet::empty() const \n"
51940 		""},
51941 	 { (char *)"ESet_get_ebound", (PyCFunction)_wrap_ESet_get_ebound, METH_O, (char *)"\n"
51942 		"\n"
51943 		"\n"
51944 		"Return a bound on the full size of this ESet object.\n"
51945 		"\n"
51946 		"Xapian::termcount Xapian::ESet::get_ebound() const\n"
51947 		"\n"
51948 		"This is a bound on size() if get_eset() had been called with maxitems\n"
51949 		"set high enough that all results were returned. \n"
51950 		""},
51951 	 { (char *)"ESet__begin", (PyCFunction)_wrap_ESet__begin, METH_O, (char *)"\n"
51952 		"\n"
51953 		"\n"
51954 		"Return iterator pointing to the first item in this ESet.\n"
51955 		"\n"
51956 		"ESetIterator Xapian::ESet::begin() const \n"
51957 		""},
51958 	 { (char *)"ESet__end", (PyCFunction)_wrap_ESet__end, METH_O, (char *)"\n"
51959 		"\n"
51960 		"\n"
51961 		"Return iterator pointing to just after the last item in this ESet.\n"
51962 		"\n"
51963 		"ESetIterator Xapian::ESet::end() const \n"
51964 		""},
51965 	 { (char *)"ESet_back", (PyCFunction)_wrap_ESet_back, METH_O, (char *)"\n"
51966 		"\n"
51967 		"\n"
51968 		"Return iterator pointing to the last object in this ESet.\n"
51969 		"\n"
51970 		"ESetIterator Xapian::ESet::back() const \n"
51971 		""},
51972 	 { (char *)"ESet___str__", (PyCFunction)_wrap_ESet___str__, METH_O, (char *)"\n"
51973 		"\n"
51974 		"\n"
51975 		"Return a string describing this object.\n"
51976 		"\n"
51977 		"std::string Xapian::ESet::get_description() const \n"
51978 		""},
51979 	 { (char *)"ESet_swigregister", ESet_swigregister, METH_VARARGS, NULL},
51980 	 { (char *)"ESet_swiginit", ESet_swiginit, METH_VARARGS, NULL},
51981 	 { (char *)"_ESetIterator_eset_set", _wrap__ESetIterator_eset_set, METH_VARARGS, NULL},
51982 	 { (char *)"_ESetIterator_eset_get", (PyCFunction)_wrap__ESetIterator_eset_get, METH_O, NULL},
51983 	 { (char *)"_ESetIterator_off_from_end_set", _wrap__ESetIterator_off_from_end_set, METH_VARARGS, NULL},
51984 	 { (char *)"_ESetIterator_off_from_end_get", (PyCFunction)_wrap__ESetIterator_off_from_end_get, METH_O, NULL},
51985 	 { (char *)"new__ESetIterator", (PyCFunction)_wrap_new__ESetIterator, METH_NOARGS, (char *)"\n"
51986 		"\n"
51987 		"\n"
51988 		"Create an unpositioned ESetIterator.\n"
51989 		"\n"
51990 		"Xapian::ESetIterator::ESetIterator() \n"
51991 		""},
51992 	 { (char *)"_ESetIterator_get_weight", (PyCFunction)_wrap__ESetIterator_get_weight, METH_O, (char *)"\n"
51993 		"\n"
51994 		"\n"
51995 		"Get the weight for the current position.\n"
51996 		"\n"
51997 		"double Xapian::ESetIterator::get_weight() const \n"
51998 		""},
51999 	 { (char *)"_ESetIterator___str__", (PyCFunction)_wrap__ESetIterator___str__, METH_O, (char *)"\n"
52000 		"\n"
52001 		"\n"
52002 		"Return a string describing this object.\n"
52003 		"\n"
52004 		"std::string Xapian::ESetIterator::get_description() const \n"
52005 		""},
52006 	 { (char *)"_ESetIterator___eq__", _wrap__ESetIterator___eq__, METH_VARARGS, NULL},
52007 	 { (char *)"_ESetIterator___ne__", _wrap__ESetIterator___ne__, METH_VARARGS, NULL},
52008 	 { (char *)"_ESetIterator_equals", _wrap__ESetIterator_equals, METH_VARARGS, NULL},
52009 	 { (char *)"_ESetIterator_get_term", (PyCFunction)_wrap__ESetIterator_get_term, METH_O, NULL},
52010 	 { (char *)"_ESetIterator___next__", (PyCFunction)_wrap__ESetIterator___next__, METH_O, NULL},
52011 	 { (char *)"_ESetIterator_prev", (PyCFunction)_wrap__ESetIterator_prev, METH_O, NULL},
52012 	 { (char *)"delete__ESetIterator", (PyCFunction)_wrap_delete__ESetIterator, METH_O, NULL},
52013 	 { (char *)"_ESetIterator_swigregister", _ESetIterator_swigregister, METH_VARARGS, NULL},
52014 	 { (char *)"_ESetIterator_swiginit", _ESetIterator_swiginit, METH_VARARGS, NULL},
52015 	 { (char *)"__eq__", _wrap___eq__, METH_VARARGS, NULL},
52016 	 { (char *)"__lt__", _wrap___lt__, METH_VARARGS, NULL},
52017 	 { (char *)"__gt__", _wrap___gt__, METH_VARARGS, NULL},
52018 	 { (char *)"__ge__", _wrap___ge__, METH_VARARGS, NULL},
52019 	 { (char *)"__le__", _wrap___le__, METH_VARARGS, NULL},
52020 	 { (char *)"__add__", _wrap___add__, METH_VARARGS, NULL},
52021 	 { (char *)"new_RSet", (PyCFunction)_wrap_new_RSet, METH_NOARGS, (char *)"\n"
52022 		"\n"
52023 		"\n"
52024 		"Default constructor.\n"
52025 		"\n"
52026 		"Xapian::RSet::RSet() \n"
52027 		""},
52028 	 { (char *)"delete_RSet", (PyCFunction)_wrap_delete_RSet, METH_O, (char *)"\n"
52029 		"\n"
52030 		"\n"
52031 		"Destructor.\n"
52032 		"\n"
52033 		"Xapian::RSet::~RSet() \n"
52034 		""},
52035 	 { (char *)"RSet_size", (PyCFunction)_wrap_RSet_size, METH_O, (char *)"\n"
52036 		"\n"
52037 		"\n"
52038 		"The number of documents in this R-Set.\n"
52039 		"\n"
52040 		"Xapian::doccount Xapian::RSet::size() const \n"
52041 		""},
52042 	 { (char *)"RSet_empty", (PyCFunction)_wrap_RSet_empty, METH_O, (char *)"\n"
52043 		"\n"
52044 		"\n"
52045 		"Test if this R-Set is empty.\n"
52046 		"\n"
52047 		"bool Xapian::RSet::empty() const \n"
52048 		""},
52049 	 { (char *)"RSet_add_document", _wrap_RSet_add_document, METH_VARARGS, (char *)"\n"
52050 		"\n"
52051 		"\n"
52052 		"Add a document to the relevance set.\n"
52053 		"\n"
52054 		"void Xapian::RSet::add_document(const Xapian::MSetIterator &i) \n"
52055 		""},
52056 	 { (char *)"RSet_remove_document", _wrap_RSet_remove_document, METH_VARARGS, (char *)"\n"
52057 		"\n"
52058 		"\n"
52059 		"Remove a document from the relevance set.\n"
52060 		"\n"
52061 		"void Xapian::RSet::remove_document(const Xapian::MSetIterator &i) \n"
52062 		""},
52063 	 { (char *)"RSet_contains", _wrap_RSet_contains, METH_VARARGS, (char *)"\n"
52064 		"\n"
52065 		"\n"
52066 		"Test if a given document in the relevance set.\n"
52067 		"\n"
52068 		"bool Xapian::RSet::contains(const Xapian::MSetIterator &i) const \n"
52069 		""},
52070 	 { (char *)"RSet___str__", (PyCFunction)_wrap_RSet___str__, METH_O, (char *)"\n"
52071 		"\n"
52072 		"\n"
52073 		"Return a string describing this object.\n"
52074 		"\n"
52075 		"std::string Xapian::RSet::get_description() const \n"
52076 		""},
52077 	 { (char *)"RSet_swigregister", RSet_swigregister, METH_VARARGS, NULL},
52078 	 { (char *)"RSet_swiginit", RSet_swiginit, METH_VARARGS, NULL},
52079 	 { (char *)"new_MatchDecider", (PyCFunction)_wrap_new_MatchDecider, METH_O, (char *)"\n"
52080 		"\n"
52081 		"\n"
52082 		"Default constructor.\n"
52083 		"\n"
52084 		"Xapian::MatchDecider::MatchDecider() \n"
52085 		""},
52086 	 { (char *)"MatchDecider___call__", _wrap_MatchDecider___call__, METH_VARARGS, NULL},
52087 	 { (char *)"delete_MatchDecider", (PyCFunction)_wrap_delete_MatchDecider, METH_O, (char *)"\n"
52088 		"\n"
52089 		"\n"
52090 		"Destructor.\n"
52091 		"\n"
52092 		"virtual Xapian::MatchDecider::~MatchDecider() \n"
52093 		""},
52094 	 { (char *)"disown_MatchDecider", (PyCFunction)_wrap_disown_MatchDecider, METH_O, NULL},
52095 	 { (char *)"MatchDecider_swigregister", MatchDecider_swigregister, METH_VARARGS, NULL},
52096 	 { (char *)"MatchDecider_swiginit", MatchDecider_swiginit, METH_VARARGS, NULL},
52097 	 { (char *)"new_Enquire", (PyCFunction)_wrap_new_Enquire, METH_O, (char *)"\n"
52098 		"\n"
52099 		"\n"
52100 		"Create a Xapian::Enquire object.\n"
52101 		"\n"
52102 		"Xapian::Enquire::Enquire(const Database &database, ErrorHandler\n"
52103 		"*errorhandler_)\n"
52104 		"\n"
52105 		"This specification cannot be changed once the Xapian::Enquire is\n"
52106 		"opened: you must create a new Xapian::Enquire object to access a\n"
52107 		"different database, or set of databases.\n"
52108 		"\n"
52109 		"The database supplied must have been initialised (ie, must not be the\n"
52110 		"result of calling the Database::Database() constructor). If you need\n"
52111 		"to handle a situation where you have no databases gracefully, a\n"
52112 		"database created with DB_BACKEND_INMEMORY can be passed here to\n"
52113 		"provide a completely empty database.\n"
52114 		"\n"
52115 		"Parameters:\n"
52116 		"-----------\n"
52117 		"\n"
52118 		"database:  Specification of the database or databases to use.\n"
52119 		"\n"
52120 		"errorhandler_:  This parameter is deprecated (since Xapian 1.3.1), and\n"
52121 		"as of 1.3.5 it's ignored completely.\n"
52122 		"\n"
52123 		"Parameters:\n"
52124 		"-----------\n"
52125 		"\n"
52126 		"Xapian::InvalidArgumentError:  will be thrown if an empty Database\n"
52127 		"object is supplied. \n"
52128 		""},
52129 	 { (char *)"delete_Enquire", (PyCFunction)_wrap_delete_Enquire, METH_O, (char *)"\n"
52130 		"\n"
52131 		"\n"
52132 		"Close the Xapian::Enquire object.\n"
52133 		"\n"
52134 		"Xapian::Enquire::~Enquire() \n"
52135 		""},
52136 	 { (char *)"Enquire_set_query", _wrap_Enquire_set_query, METH_VARARGS, (char *)"\n"
52137 		"\n"
52138 		"\n"
52139 		"Set the query to run.\n"
52140 		"\n"
52141 		"void Xapian::Enquire::set_query(const Xapian::Query &query,\n"
52142 		"Xapian::termcount qlen=0)\n"
52143 		"\n"
52144 		"Parameters:\n"
52145 		"-----------\n"
52146 		"\n"
52147 		"query:  the new query to run.\n"
52148 		"\n"
52149 		"qlen:  the query length to use in weight calculations - by default the\n"
52150 		"sum of the wqf of all terms is used. \n"
52151 		""},
52152 	 { (char *)"Enquire_get_query", (PyCFunction)_wrap_Enquire_get_query, METH_O, (char *)"\n"
52153 		"\n"
52154 		"\n"
52155 		"Get the current query.\n"
52156 		"\n"
52157 		"const Xapian::Query& Xapian::Enquire::get_query() const\n"
52158 		"\n"
52159 		"If called before set_query(), this will return a default initialised\n"
52160 		"Query object. \n"
52161 		""},
52162 	 { (char *)"Enquire_add_matchspy", _wrap_Enquire_add_matchspy, METH_VARARGS, (char *)"\n"
52163 		"\n"
52164 		"\n"
52165 		"Add a matchspy.\n"
52166 		"\n"
52167 		"void Xapian::Enquire::add_matchspy(MatchSpy *spy)\n"
52168 		"\n"
52169 		"This matchspy will be called with some of the documents which match\n"
52170 		"the query, during the match process. Exactly which of the matching\n"
52171 		"documents are passed to it depends on exactly when certain\n"
52172 		"optimisations occur during the match process, but it can be controlled\n"
52173 		"to some extent by setting the checkatleast parameter to  get_mset().\n"
52174 		"\n"
52175 		"In particular, if there are enough matching documents, at least the\n"
52176 		"number specified by checkatleast will be passed to the matchspy. This\n"
52177 		"means that you can force the matchspy to be shown all matching\n"
52178 		"documents by setting checkatleast to the number of documents in the\n"
52179 		"database.\n"
52180 		"\n"
52181 		"Parameters:\n"
52182 		"-----------\n"
52183 		"\n"
52184 		"spy:  The MatchSpy subclass to add. The caller must ensure that this\n"
52185 		"remains valid while the Enquire object remains active, or until\n"
52186 		"clear_matchspies() is called. \n"
52187 		""},
52188 	 { (char *)"Enquire_clear_matchspies", (PyCFunction)_wrap_Enquire_clear_matchspies, METH_O, (char *)"\n"
52189 		"\n"
52190 		"\n"
52191 		"Remove all the matchspies.\n"
52192 		"\n"
52193 		"void Xapian::Enquire::clear_matchspies() \n"
52194 		""},
52195 	 { (char *)"Enquire_set_weighting_scheme", _wrap_Enquire_set_weighting_scheme, METH_VARARGS, (char *)"\n"
52196 		"\n"
52197 		"\n"
52198 		"Set the weighting scheme to use for queries.\n"
52199 		"\n"
52200 		"void Xapian::Enquire::set_weighting_scheme(const Weight &weight_)\n"
52201 		"\n"
52202 		"Parameters:\n"
52203 		"-----------\n"
52204 		"\n"
52205 		"weight_:  the new weighting scheme. If no weighting scheme is\n"
52206 		"specified, the default is BM25 with the default parameters. \n"
52207 		""},
52208 	 { (char *)"Enquire_set_expansion_scheme", _wrap_Enquire_set_expansion_scheme, METH_VARARGS, (char *)"\n"
52209 		"\n"
52210 		"\n"
52211 		"Set the weighting scheme to use for expansion.\n"
52212 		"\n"
52213 		"void Xapian::Enquire::set_expansion_scheme(const std::string\n"
52214 		"&eweightname_, double expand_k_=1.0) const\n"
52215 		"\n"
52216 		"If you don't call this method, the default is as if you'd used:\n"
52217 		"\n"
52218 		"get_expansion_scheme(\"trad\");\n"
52219 		"\n"
52220 		"Parameters:\n"
52221 		"-----------\n"
52222 		"\n"
52223 		"eweightname_:  A string in lowercase specifying the name of the scheme\n"
52224 		"to be used. The following schemes are currently available: \"bo1\" :\n"
52225 		"The Bo1 scheme for query expansion. \"trad\" : The TradWeight scheme\n"
52226 		"for query expansion.\n"
52227 		"\n"
52228 		"expand_k_:  The parameter required for TradWeight query expansion. A\n"
52229 		"default value of 1.0 is used if none is specified. \n"
52230 		""},
52231 	 { (char *)"Enquire_set_collapse_key", _wrap_Enquire_set_collapse_key, METH_VARARGS, (char *)"\n"
52232 		"\n"
52233 		"\n"
52234 		"Set the collapse key to use for queries.\n"
52235 		"\n"
52236 		"void Xapian::Enquire::set_collapse_key(Xapian::valueno collapse_key,\n"
52237 		"Xapian::doccount collapse_max=1)\n"
52238 		"\n"
52239 		"Parameters:\n"
52240 		"-----------\n"
52241 		"\n"
52242 		"collapse_key:  value number to collapse on - at most one MSet entry\n"
52243 		"with each particular value will be returned (default is\n"
52244 		"Xapian::BAD_VALUENO which means no collapsing).\n"
52245 		"\n"
52246 		"collapse_max:  Max number of items with the same key to leave after\n"
52247 		"collapsing (default 1).\n"
52248 		"\n"
52249 		"The MSet returned by get_mset() will have only the \"best\" (at most)\n"
52250 		"collapse_max entries with each particular value of collapse_key\n"
52251 		"(\"best\" being highest ranked - i.e. highest weight or highest\n"
52252 		"sorting key).\n"
52253 		"\n"
52254 		"An example use might be to create a value for each document containing\n"
52255 		"an MD5 hash of the document contents. Then duplicate documents from\n"
52256 		"different sources can be eliminated at search time by collapsing with\n"
52257 		"collapse_max = 1 (it's better to eliminate duplicates at index time,\n"
52258 		"but this may not be always be possible - for example the search may be\n"
52259 		"over more than one Xapian database).\n"
52260 		"\n"
52261 		"Another use is to group matches in a particular category (e.g. you\n"
52262 		"might collapse a mailing list search on the Subject: so that there's\n"
52263 		"only one result per discussion thread). In this case you can use\n"
52264 		"get_collapse_count() to give the user some idea how many other results\n"
52265 		"there are. And if you index the Subject: as a boolean term as well as\n"
52266 		"putting it in a value, you can offer a link to a non-collapsed search\n"
52267 		"restricted to that thread using a boolean filter. \n"
52268 		""},
52269 	 { (char *)"Enquire_set_docid_order", _wrap_Enquire_set_docid_order, METH_VARARGS, (char *)"\n"
52270 		"\n"
52271 		"\n"
52272 		"Set sort order for document IDs.\n"
52273 		"\n"
52274 		"void Xapian::Enquire::set_docid_order(docid_order order)\n"
52275 		"\n"
52276 		"This order only has an effect on documents which would otherwise have\n"
52277 		"equal rank. When ordering by relevance without a sort key, this means\n"
52278 		"documents with equal weight. For a boolean match with no sort key,\n"
52279 		"this means all documents. And if a sort key is used, this means\n"
52280 		"documents with the same sort key (and also equal weight if ordering on\n"
52281 		"relevance before or after the sort key).\n"
52282 		"\n"
52283 		"Parameters:\n"
52284 		"-----------\n"
52285 		"\n"
52286 		"order:  This can be:  Xapian::Enquire::ASCENDING docids sort in\n"
52287 		"ascending order (default)\n"
52288 		"\n"
52289 		"Xapian::Enquire::DESCENDING docids sort in descending order\n"
52290 		"\n"
52291 		"Xapian::Enquire::DONT_CARE docids sort in whatever order is most\n"
52292 		"efficient for the backend\n"
52293 		"\n"
52294 		"Note: If you add documents in strict date order, then a boolean search\n"
52295 		"- i.e. set_weighting_scheme(Xapian::BoolWeight()) - with\n"
52296 		"set_docid_order(Xapian::Enquire::DESCENDING) is an efficient way to\n"
52297 		"perform \"sort by date, newest first\", and with\n"
52298 		"set_docid_order(Xapian::Enquire::ASCENDING) a very efficient way to\n"
52299 		"perform \"sort by date, oldest first\". \n"
52300 		""},
52301 	 { (char *)"Enquire_set_cutoff", _wrap_Enquire_set_cutoff, METH_VARARGS, (char *)"\n"
52302 		"\n"
52303 		"\n"
52304 		"Set the percentage and/or weight cutoffs.\n"
52305 		"\n"
52306 		"void Xapian::Enquire::set_cutoff(int percent_cutoff, double\n"
52307 		"weight_cutoff=0)\n"
52308 		"\n"
52309 		"Parameters:\n"
52310 		"-----------\n"
52311 		"\n"
52312 		"percent_cutoff:  Minimum percentage score for returned documents. If a\n"
52313 		"document has a lower percentage score than this, it will not appear in\n"
52314 		"the MSet. If your intention is to return only matches which contain\n"
52315 		"all the terms in the query, then it's more efficient to use\n"
52316 		"Xapian::Query::OP_AND instead of Xapian::Query::OP_OR in the query\n"
52317 		"than to use set_cutoff(100). (default 0 => no percentage cut-off).\n"
52318 		"\n"
52319 		"weight_cutoff:  Minimum weight for a document to be returned. If a\n"
52320 		"document has a lower score that this, it will not appear in the MSet.\n"
52321 		"It is usually only possible to choose an appropriate weight for cutoff\n"
52322 		"based on the results of a previous run of the same query; this is thus\n"
52323 		"mainly useful for alerting operations. The other potential use is with\n"
52324 		"a user specified weighting scheme. (default 0 => no weight cut-off).\n"
52325 		"\n"
52326 		""},
52327 	 { (char *)"Enquire_set_sort_by_relevance", (PyCFunction)_wrap_Enquire_set_sort_by_relevance, METH_O, (char *)"\n"
52328 		"\n"
52329 		"\n"
52330 		"Set the sorting to be by relevance only.\n"
52331 		"\n"
52332 		"void Xapian::Enquire::set_sort_by_relevance()\n"
52333 		"\n"
52334 		"This is the default. \n"
52335 		""},
52336 	 { (char *)"Enquire_set_sort_by_value", _wrap_Enquire_set_sort_by_value, METH_VARARGS, (char *)"\n"
52337 		"\n"
52338 		"\n"
52339 		"Set the sorting to be by value only.\n"
52340 		"\n"
52341 		"void Xapian::Enquire::set_sort_by_value(Xapian::valueno sort_key, bool\n"
52342 		"reverse)\n"
52343 		"\n"
52344 		"Note that sorting by values uses a string comparison, so to use this\n"
52345 		"to sort by a numeric value you'll need to store the numeric values in\n"
52346 		"a manner which sorts appropriately. For example, you could use\n"
52347 		"Xapian::sortable_serialise() (which works for floating point numbers\n"
52348 		"as well as integers), or store numbers padded with leading zeros or\n"
52349 		"spaces, or with the number of digits prepended.\n"
52350 		"\n"
52351 		"Parameters:\n"
52352 		"-----------\n"
52353 		"\n"
52354 		"sort_key:  value number to sort on.\n"
52355 		"\n"
52356 		"reverse:  If true, reverses the sort order. \n"
52357 		""},
52358 	 { (char *)"Enquire_set_sort_by_key", _wrap_Enquire_set_sort_by_key, METH_VARARGS, (char *)"\n"
52359 		"\n"
52360 		"\n"
52361 		"Set the sorting to be by key generated from values only.\n"
52362 		"\n"
52363 		"void Xapian::Enquire::set_sort_by_key(Xapian::KeyMaker *sorter, bool\n"
52364 		"reverse)\n"
52365 		"\n"
52366 		"Parameters:\n"
52367 		"-----------\n"
52368 		"\n"
52369 		"sorter:  The functor to use for generating keys.\n"
52370 		"\n"
52371 		"reverse:  If true, reverses the sort order. \n"
52372 		""},
52373 	 { (char *)"Enquire_set_sort_by_value_then_relevance", _wrap_Enquire_set_sort_by_value_then_relevance, METH_VARARGS, (char *)"\n"
52374 		"\n"
52375 		"\n"
52376 		"Set the sorting to be by value, then by relevance for documents with\n"
52377 		"the same value.\n"
52378 		"\n"
52379 		"void Xapian::Enquire::set_sort_by_value_then_relevance(Xapian::valueno\n"
52380 		"sort_key, bool reverse)\n"
52381 		"\n"
52382 		"Note that sorting by values uses a string comparison, so to use this\n"
52383 		"to sort by a numeric value you'll need to store the numeric values in\n"
52384 		"a manner which sorts appropriately. For example, you could use\n"
52385 		"Xapian::sortable_serialise() (which works for floating point numbers\n"
52386 		"as well as integers), or store numbers padded with leading zeros or\n"
52387 		"spaces, or with the number of digits prepended.\n"
52388 		"\n"
52389 		"Parameters:\n"
52390 		"-----------\n"
52391 		"\n"
52392 		"sort_key:  value number to sort on.\n"
52393 		"\n"
52394 		"reverse:  If true, reverses the sort order. \n"
52395 		""},
52396 	 { (char *)"Enquire_set_sort_by_key_then_relevance", _wrap_Enquire_set_sort_by_key_then_relevance, METH_VARARGS, (char *)"\n"
52397 		"\n"
52398 		"\n"
52399 		"Set the sorting to be by keys generated from values, then by relevance\n"
52400 		"for documents with identical keys.\n"
52401 		"\n"
52402 		"void Xapian::Enquire::set_sort_by_key_then_relevance(Xapian::KeyMaker\n"
52403 		"*sorter, bool reverse)\n"
52404 		"\n"
52405 		"Parameters:\n"
52406 		"-----------\n"
52407 		"\n"
52408 		"sorter:  The functor to use for generating keys.\n"
52409 		"\n"
52410 		"reverse:  If true, reverses the sort order. \n"
52411 		""},
52412 	 { (char *)"Enquire_set_sort_by_relevance_then_value", _wrap_Enquire_set_sort_by_relevance_then_value, METH_VARARGS, (char *)"\n"
52413 		"\n"
52414 		"\n"
52415 		"Set the sorting to be by relevance then value.\n"
52416 		"\n"
52417 		"void Xapian::Enquire::set_sort_by_relevance_then_value(Xapian::valueno\n"
52418 		"sort_key, bool reverse)\n"
52419 		"\n"
52420 		"Note that sorting by values uses a string comparison, so to use this\n"
52421 		"to sort by a numeric value you'll need to store the numeric values in\n"
52422 		"a manner which sorts appropriately. For example, you could use\n"
52423 		"Xapian::sortable_serialise() (which works for floating point numbers\n"
52424 		"as well as integers), or store numbers padded with leading zeros or\n"
52425 		"spaces, or with the number of digits prepended.\n"
52426 		"\n"
52427 		"Note that with the default BM25 weighting scheme parameters, non-\n"
52428 		"identical documents will rarely have the same weight, so this setting\n"
52429 		"will give very similar results to set_sort_by_relevance(). It becomes\n"
52430 		"more useful with particular BM25 parameter settings (e.g.\n"
52431 		"BM25Weight(1,0,1,0,0)) or custom weighting schemes.\n"
52432 		"\n"
52433 		"Parameters:\n"
52434 		"-----------\n"
52435 		"\n"
52436 		"sort_key:  value number to sort on.\n"
52437 		"\n"
52438 		"reverse:  If true, reverses the sort order of sort_key. Beware that in\n"
52439 		"1.2.16 and earlier, the sense of this parameter was incorrectly\n"
52440 		"inverted and inconsistent with the other set_sort_by_... methods. This\n"
52441 		"was fixed in 1.2.17, so make that version a minimum requirement if\n"
52442 		"this detail matters to your application. \n"
52443 		""},
52444 	 { (char *)"Enquire_set_sort_by_relevance_then_key", _wrap_Enquire_set_sort_by_relevance_then_key, METH_VARARGS, (char *)"\n"
52445 		"\n"
52446 		"\n"
52447 		"Set the sorting to be by relevance, then by keys generated from\n"
52448 		"values.\n"
52449 		"\n"
52450 		"void Xapian::Enquire::set_sort_by_relevance_then_key(Xapian::KeyMaker\n"
52451 		"*sorter, bool reverse)\n"
52452 		"\n"
52453 		"Note that with the default BM25 weighting scheme parameters, non-\n"
52454 		"identical documents will rarely have the same weight, so this setting\n"
52455 		"will give very similar results to set_sort_by_relevance(). It becomes\n"
52456 		"more useful with particular BM25 parameter settings (e.g.\n"
52457 		"BM25Weight(1,0,1,0,0)) or custom weighting schemes.\n"
52458 		"\n"
52459 		"Parameters:\n"
52460 		"-----------\n"
52461 		"\n"
52462 		"sorter:  The functor to use for generating keys.\n"
52463 		"\n"
52464 		"reverse:  If true, reverses the sort order of the generated keys.\n"
52465 		"Beware that in 1.2.16 and earlier, the sense of this parameter was\n"
52466 		"incorrectly inverted and inconsistent with the other set_sort_by_...\n"
52467 		"methods. This was fixed in 1.2.17, so make that version a minimum\n"
52468 		"requirement if this detail matters to your application. \n"
52469 		""},
52470 	 { (char *)"Enquire_set_time_limit", _wrap_Enquire_set_time_limit, METH_VARARGS, (char *)"\n"
52471 		"\n"
52472 		"\n"
52473 		"Set a time limit for the match.\n"
52474 		"\n"
52475 		"void Xapian::Enquire::set_time_limit(double time_limit)\n"
52476 		"\n"
52477 		"Matches with check_at_least set high can take a long time in some\n"
52478 		"cases. You can set a time limit on this, after which check_at_least\n"
52479 		"will be turned off.\n"
52480 		"\n"
52481 		"Parameters:\n"
52482 		"-----------\n"
52483 		"\n"
52484 		"time_limit:  time in seconds after which to disable check_at_least\n"
52485 		"(default: 0.0 which means no time limit)\n"
52486 		"\n"
52487 		"Limitations:\n"
52488 		"\n"
52489 		"This feature is currently supported on platforms which support POSIX\n"
52490 		"interval timers. Interaction with the remote backend when using\n"
52491 		"multiple databases may have bugs. There's not currently a way to force\n"
52492 		"the match to end after a certain time. \n"
52493 		""},
52494 	 { (char *)"Enquire_get_mset", _wrap_Enquire_get_mset, METH_VARARGS, (char *)"\n"
52495 		"\n"
52496 		"\n"
52497 		"Get (a portion of) the match set for the current query.\n"
52498 		"\n"
52499 		"MSet Xapian::Enquire::get_mset(Xapian::doccount first,\n"
52500 		"Xapian::doccount maxitems, const RSet *omrset, const MatchDecider\n"
52501 		"*mdecider=0) const\n"
52502 		"\n"
52503 		"Parameters:\n"
52504 		"-----------\n"
52505 		"\n"
52506 		"first:  the first item in the result set to return. A value of zero\n"
52507 		"corresponds to the first item returned being that with the highest\n"
52508 		"score. A value of 10 corresponds to the first 10 items being ignored,\n"
52509 		"and the returned items starting at the eleventh.\n"
52510 		"\n"
52511 		"maxitems:  the maximum number of items to return. If you want all\n"
52512 		"matches, then you can pass the result of calling get_doccount() on the\n"
52513 		"Database object (though if you are doing this so you can filter\n"
52514 		"results, you are likely to get much better performance by using\n"
52515 		"Xapian's match-time filtering features instead). You can pass 0 for\n"
52516 		"maxitems which will give you an empty MSet with valid statistics (such\n"
52517 		"as get_matches_estimated()) calculated without looking at any\n"
52518 		"postings, which is very quick, but means the estimates may be more\n"
52519 		"approximate and the bounds may be much looser.\n"
52520 		"\n"
52521 		"omrset:  the relevance set to use when performing the query.\n"
52522 		"\n"
52523 		"mdecider:  a decision functor to use to decide whether a given\n"
52524 		"document should be put in the MSet.\n"
52525 		"\n"
52526 		"A Xapian::MSet object containing the results of the query.\n"
52527 		"\n"
52528 		"Parameters:\n"
52529 		"-----------\n"
52530 		"\n"
52531 		"Xapian::InvalidArgumentError:  See class documentation. \n"
52532 		""},
52533 	 { (char *)"Enquire_get_eset", _wrap_Enquire_get_eset, METH_VARARGS, (char *)"\n"
52534 		"\n"
52535 		"\n"
52536 		"Get the expand set for the given rset.\n"
52537 		"\n"
52538 		"ESet Xapian::Enquire::get_eset(Xapian::termcount maxitems, const RSet\n"
52539 		"&rset, int flags, double k, const Xapian::ExpandDecider\n"
52540 		"*edecider=NULL, double min_wt=0.0) const\n"
52541 		"\n"
52542 		"Parameters:\n"
52543 		"-----------\n"
52544 		"\n"
52545 		"maxitems:  the maximum number of items to return.\n"
52546 		"\n"
52547 		"rset:  the relevance set to use when performing the expand operation.\n"
52548 		"\n"
52549 		"flags:  zero or more of these values |-ed together:\n"
52550 		"Xapian::Enquire::INCLUDE_QUERY_TERMS query terms may be returned from\n"
52551 		"expand\n"
52552 		"\n"
52553 		"Xapian::Enquire::USE_EXACT_TERMFREQ for multi dbs, calculate the exact\n"
52554 		"termfreq; otherwise an approximation is used which can greatly improve\n"
52555 		"efficiency, but still returns good results.\n"
52556 		"\n"
52557 		"k:  the parameter k in the query expansion algorithm (default is 1.0)\n"
52558 		"\n"
52559 		"edecider:  a decision functor to use to decide whether a given term\n"
52560 		"should be put in the ESet\n"
52561 		"\n"
52562 		"min_wt:  the minimum weight for included terms\n"
52563 		"\n"
52564 		"An ESet object containing the results of the expand.\n"
52565 		"\n"
52566 		"Parameters:\n"
52567 		"-----------\n"
52568 		"\n"
52569 		"Xapian::InvalidArgumentError:  See class documentation. \n"
52570 		""},
52571 	 { (char *)"Enquire__get_matching_terms_begin", _wrap_Enquire__get_matching_terms_begin, METH_VARARGS, (char *)"\n"
52572 		"\n"
52573 		"\n"
52574 		"Get terms which match a given document, by match set item.\n"
52575 		"\n"
52576 		"TermIterator Xapian::Enquire::get_matching_terms_begin(const\n"
52577 		"MSetIterator &it) const\n"
52578 		"\n"
52579 		"This method returns the terms in the current query which match the\n"
52580 		"given document.\n"
52581 		"\n"
52582 		"If the underlying database has suitable support, using this call\n"
52583 		"(rather than passing a Xapian::docid) will enable the system to ensure\n"
52584 		"that the correct data is returned, and that the document has not been\n"
52585 		"deleted or changed since the query was performed.\n"
52586 		"\n"
52587 		"Parameters:\n"
52588 		"-----------\n"
52589 		"\n"
52590 		"it:  The iterator for which to retrieve the matching terms.\n"
52591 		"\n"
52592 		"An iterator returning the terms which match the document. The terms\n"
52593 		"will be returned (as far as this makes any sense) in the same order as\n"
52594 		"the terms in the query. Terms will not occur more than once, even if\n"
52595 		"they do in the query.\n"
52596 		"\n"
52597 		"Parameters:\n"
52598 		"-----------\n"
52599 		"\n"
52600 		"Xapian::InvalidArgumentError:  See class documentation.\n"
52601 		"\n"
52602 		"Xapian::DocNotFoundError:  The document specified could not be found\n"
52603 		"in the database. \n"
52604 		""},
52605 	 { (char *)"Enquire__get_matching_terms_end", _wrap_Enquire__get_matching_terms_end, METH_VARARGS, (char *)"\n"
52606 		"\n"
52607 		"\n"
52608 		"End iterator corresponding to get_matching_terms_begin()\n"
52609 		"\n"
52610 		"TermIterator Xapian::Enquire::get_matching_terms_end(const\n"
52611 		"MSetIterator &) const \n"
52612 		""},
52613 	 { (char *)"Enquire___str__", (PyCFunction)_wrap_Enquire___str__, METH_O, (char *)"\n"
52614 		"\n"
52615 		"\n"
52616 		"Return a string describing this object.\n"
52617 		"\n"
52618 		"std::string Xapian::Enquire::get_description() const \n"
52619 		""},
52620 	 { (char *)"Enquire_swigregister", Enquire_swigregister, METH_VARARGS, NULL},
52621 	 { (char *)"Enquire_swiginit", Enquire_swiginit, METH_VARARGS, NULL},
52622 	 { (char *)"new_ExpandDecider", (PyCFunction)_wrap_new_ExpandDecider, METH_O, (char *)"\n"
52623 		"\n"
52624 		"\n"
52625 		"Default constructor.\n"
52626 		"\n"
52627 		"Xapian::ExpandDecider::ExpandDecider() \n"
52628 		""},
52629 	 { (char *)"ExpandDecider___call__", _wrap_ExpandDecider___call__, METH_VARARGS, NULL},
52630 	 { (char *)"delete_ExpandDecider", (PyCFunction)_wrap_delete_ExpandDecider, METH_O, (char *)"\n"
52631 		"\n"
52632 		"\n"
52633 		"Virtual destructor, because we have virtual methods.\n"
52634 		"\n"
52635 		"virtual Xapian::ExpandDecider::~ExpandDecider() \n"
52636 		""},
52637 	 { (char *)"ExpandDecider_release", (PyCFunction)_wrap_ExpandDecider_release, METH_O, (char *)"\n"
52638 		"\n"
52639 		"\n"
52640 		"Start reference counting this object.\n"
52641 		"\n"
52642 		"const ExpandDecider* Xapian::ExpandDecider::release() const\n"
52643 		"\n"
52644 		"You can hand ownership of a dynamically allocated ExpandDecider object\n"
52645 		"to Xapian by calling release() and then passing the object to a Xapian\n"
52646 		"method. Xapian will arrange to delete the object once it is no longer\n"
52647 		"required. \n"
52648 		""},
52649 	 { (char *)"disown_ExpandDecider", (PyCFunction)_wrap_disown_ExpandDecider, METH_O, NULL},
52650 	 { (char *)"ExpandDecider_swigregister", ExpandDecider_swigregister, METH_VARARGS, NULL},
52651 	 { (char *)"ExpandDecider_swiginit", ExpandDecider_swiginit, METH_VARARGS, NULL},
52652 	 { (char *)"new_ExpandDeciderAnd", _wrap_new_ExpandDeciderAnd, METH_VARARGS, (char *)"\n"
52653 		"\n"
52654 		"\n"
52655 		"Compatibility method.\n"
52656 		"\n"
52657 		"Xapian::ExpandDeciderAnd::ExpandDeciderAnd(const ExpandDecider\n"
52658 		"*first_, const ExpandDecider *second_)\n"
52659 		"\n"
52660 		"Parameters:\n"
52661 		"-----------\n"
52662 		"\n"
52663 		"first_:  First ExpandDecider object to test with.\n"
52664 		"\n"
52665 		"second_:   ExpandDecider object to test with if first_ accepts. \n"
52666 		""},
52667 	 { (char *)"delete_ExpandDeciderAnd", (PyCFunction)_wrap_delete_ExpandDeciderAnd, METH_O, NULL},
52668 	 { (char *)"ExpandDeciderAnd_swigregister", ExpandDeciderAnd_swigregister, METH_VARARGS, NULL},
52669 	 { (char *)"ExpandDeciderAnd_swiginit", ExpandDeciderAnd_swiginit, METH_VARARGS, NULL},
52670 	 { (char *)"new_ExpandDeciderFilterPrefix", (PyCFunction)_wrap_new_ExpandDeciderFilterPrefix, METH_O, (char *)"\n"
52671 		"\n"
52672 		"\n"
52673 		"The parameter specify the prefix of terms to be retained.\n"
52674 		"\n"
52675 		"Xapian::ExpandDeciderFilterPrefix::ExpandDeciderFilterPrefix(const\n"
52676 		"std::string &prefix_)\n"
52677 		"\n"
52678 		"Parameters:\n"
52679 		"-----------\n"
52680 		"\n"
52681 		"prefix_:  restrict terms to the particular prefix_ \n"
52682 		""},
52683 	 { (char *)"delete_ExpandDeciderFilterPrefix", (PyCFunction)_wrap_delete_ExpandDeciderFilterPrefix, METH_O, NULL},
52684 	 { (char *)"ExpandDeciderFilterPrefix_swigregister", ExpandDeciderFilterPrefix_swigregister, METH_VARARGS, NULL},
52685 	 { (char *)"ExpandDeciderFilterPrefix_swiginit", ExpandDeciderFilterPrefix_swiginit, METH_VARARGS, NULL},
52686 	 { (char *)"new_KeyMaker", (PyCFunction)_wrap_new_KeyMaker, METH_O, (char *)"\n"
52687 		"\n"
52688 		"\n"
52689 		"Default constructor.\n"
52690 		"\n"
52691 		"Xapian::KeyMaker::KeyMaker() \n"
52692 		""},
52693 	 { (char *)"KeyMaker___call__", _wrap_KeyMaker___call__, METH_VARARGS, NULL},
52694 	 { (char *)"delete_KeyMaker", (PyCFunction)_wrap_delete_KeyMaker, METH_O, (char *)"\n"
52695 		"\n"
52696 		"\n"
52697 		"Virtual destructor, because we have virtual methods.\n"
52698 		"\n"
52699 		"virtual Xapian::KeyMaker::~KeyMaker() \n"
52700 		""},
52701 	 { (char *)"KeyMaker_release", (PyCFunction)_wrap_KeyMaker_release, METH_O, (char *)"\n"
52702 		"\n"
52703 		"\n"
52704 		"Start reference counting this object.\n"
52705 		"\n"
52706 		"const KeyMaker* Xapian::KeyMaker::release() const\n"
52707 		"\n"
52708 		"You can hand ownership of a dynamically allocated KeyMaker object to\n"
52709 		"Xapian by calling release() and then passing the object to a Xapian\n"
52710 		"method. Xapian will arrange to delete the object once it is no longer\n"
52711 		"required. \n"
52712 		""},
52713 	 { (char *)"disown_KeyMaker", (PyCFunction)_wrap_disown_KeyMaker, METH_O, NULL},
52714 	 { (char *)"KeyMaker_swigregister", KeyMaker_swigregister, METH_VARARGS, NULL},
52715 	 { (char *)"KeyMaker_swiginit", KeyMaker_swiginit, METH_VARARGS, NULL},
52716 	 { (char *)"new_MultiValueKeyMaker", (PyCFunction)_wrap_new_MultiValueKeyMaker, METH_NOARGS, (char *)"\n"
52717 		"\n"
52718 		"\n"
52719 		"Construct a MultiValueKeyMaker from a pair of iterators.\n"
52720 		"\n"
52721 		"Xapian::MultiValueKeyMaker::MultiValueKeyMaker(Iterator begin,\n"
52722 		"Iterator end)\n"
52723 		"\n"
52724 		"The iterators must be a begin/end pair returning Xapian::valueno (or a\n"
52725 		"compatible type) when dereferenced. \n"
52726 		""},
52727 	 { (char *)"MultiValueKeyMaker_add_value", _wrap_MultiValueKeyMaker_add_value, METH_VARARGS, (char *)"\n"
52728 		"\n"
52729 		"\n"
52730 		"Add a value slot to the list to build a key from.\n"
52731 		"\n"
52732 		"void Xapian::MultiValueKeyMaker::add_value(Xapian::valueno slot, bool\n"
52733 		"reverse=false, const std::string &defvalue=std::string())\n"
52734 		"\n"
52735 		"Parameters:\n"
52736 		"-----------\n"
52737 		"\n"
52738 		"slot:  The value slot to add\n"
52739 		"\n"
52740 		"reverse:  Adjust values from this slot to reverse their sort order\n"
52741 		"(default: false)\n"
52742 		"\n"
52743 		"defvalue:  Value to use for documents which don't have a value set in\n"
52744 		"this slot (default: empty). This can be used to make such documents\n"
52745 		"sort after all others by passing get_value_upper_bound(slot) + \"x\"\n"
52746 		"this is guaranteed to be greater than any value in this slot. \n"
52747 		""},
52748 	 { (char *)"delete_MultiValueKeyMaker", (PyCFunction)_wrap_delete_MultiValueKeyMaker, METH_O, NULL},
52749 	 { (char *)"MultiValueKeyMaker_swigregister", MultiValueKeyMaker_swigregister, METH_VARARGS, NULL},
52750 	 { (char *)"MultiValueKeyMaker_swiginit", MultiValueKeyMaker_swiginit, METH_VARARGS, NULL},
52751 	 { (char *)"new_Stopper", (PyCFunction)_wrap_new_Stopper, METH_O, (char *)"\n"
52752 		"\n"
52753 		"\n"
52754 		"Default constructor.\n"
52755 		"\n"
52756 		"Xapian::Stopper::Stopper() \n"
52757 		""},
52758 	 { (char *)"Stopper___call__", _wrap_Stopper___call__, METH_VARARGS, NULL},
52759 	 { (char *)"delete_Stopper", (PyCFunction)_wrap_delete_Stopper, METH_O, (char *)"\n"
52760 		"\n"
52761 		"\n"
52762 		"Class has virtual methods, so provide a virtual destructor.\n"
52763 		"\n"
52764 		"virtual Xapian::Stopper::~Stopper() \n"
52765 		""},
52766 	 { (char *)"Stopper___str__", (PyCFunction)_wrap_Stopper___str__, METH_O, (char *)"\n"
52767 		"\n"
52768 		"\n"
52769 		"Return a string describing this object.\n"
52770 		"\n"
52771 		"virtual std::string Xapian::Stopper::get_description() const \n"
52772 		""},
52773 	 { (char *)"Stopper_release", (PyCFunction)_wrap_Stopper_release, METH_O, (char *)"\n"
52774 		"\n"
52775 		"\n"
52776 		"Start reference counting this object.\n"
52777 		"\n"
52778 		"const Stopper* Xapian::Stopper::release() const\n"
52779 		"\n"
52780 		"You can hand ownership of a dynamically allocated Stopper object to\n"
52781 		"Xapian by calling release() and then passing the object to a Xapian\n"
52782 		"method. Xapian will arrange to delete the object once it is no longer\n"
52783 		"required. \n"
52784 		""},
52785 	 { (char *)"disown_Stopper", (PyCFunction)_wrap_disown_Stopper, METH_O, NULL},
52786 	 { (char *)"Stopper_swigregister", Stopper_swigregister, METH_VARARGS, NULL},
52787 	 { (char *)"Stopper_swiginit", Stopper_swiginit, METH_VARARGS, NULL},
52788 	 { (char *)"SimpleStopper_add", _wrap_SimpleStopper_add, METH_VARARGS, (char *)"\n"
52789 		"\n"
52790 		"\n"
52791 		"Add a single stop word.\n"
52792 		"\n"
52793 		"void Xapian::SimpleStopper::add(const std::string &word) \n"
52794 		""},
52795 	 { (char *)"new_SimpleStopper", _wrap_new_SimpleStopper, METH_VARARGS, (char *)"\n"
52796 		"\n"
52797 		"\n"
52798 		"Initialise from a pair of iterators.\n"
52799 		"\n"
52800 		"Xapian::SimpleStopper::SimpleStopper(Iterator begin, Iterator end)\n"
52801 		"\n"
52802 		"Xapian includes stop list files for many languages. You can initialise\n"
52803 		"from a file like that: \n"
52804 		""},
52805 	 { (char *)"delete_SimpleStopper", (PyCFunction)_wrap_delete_SimpleStopper, METH_O, NULL},
52806 	 { (char *)"SimpleStopper_swigregister", SimpleStopper_swigregister, METH_VARARGS, NULL},
52807 	 { (char *)"SimpleStopper_swiginit", SimpleStopper_swiginit, METH_VARARGS, NULL},
52808 	 { (char *)"new_RangeProcessor", _wrap_new_RangeProcessor, METH_VARARGS, (char *)"\n"
52809 		"\n"
52810 		"\n"
52811 		"Constructor.\n"
52812 		"\n"
52813 		"Xapian::RangeProcessor::RangeProcessor(Xapian::valueno slot_, const\n"
52814 		"std::string &str_=std::string(), unsigned flags_=0)\n"
52815 		"\n"
52816 		"Parameters:\n"
52817 		"-----------\n"
52818 		"\n"
52819 		"slot_:  Which value slot to generate ranges over.\n"
52820 		"\n"
52821 		"str_:  A string to look for to recognise values as belonging to this\n"
52822 		"range (as a prefix by default, or as a suffix if flags\n"
52823 		"Xapian::RP_SUFFIX is specified).\n"
52824 		"\n"
52825 		"flags_:  Zero or more of the following flags, combined with bitwise-or\n"
52826 		"(| in C++): Xapian::RP_SUFFIX - require str_ as a suffix instead of a\n"
52827 		"prefix.\n"
52828 		"\n"
52829 		"Xapian::RP_REPEATED - optionally allow str_ on both ends of the range\n"
52830 		"- e.g. $1..$10 or 5m..50m. By default a prefix is only checked for on\n"
52831 		"the start (e.g. date:1/1/1980..31/12/1989), and a suffix only on the\n"
52832 		"end (e.g. 2..12kg). \n"
52833 		""},
52834 	 { (char *)"delete_RangeProcessor", (PyCFunction)_wrap_delete_RangeProcessor, METH_O, (char *)"\n"
52835 		"\n"
52836 		"\n"
52837 		"Destructor.\n"
52838 		"\n"
52839 		"virtual Xapian::RangeProcessor::~RangeProcessor() \n"
52840 		""},
52841 	 { (char *)"RangeProcessor_check_range", _wrap_RangeProcessor_check_range, METH_VARARGS, (char *)"\n"
52842 		"\n"
52843 		"\n"
52844 		"Check prefix/suffix on range.\n"
52845 		"\n"
52846 		"Xapian::Query Xapian::RangeProcessor::check_range(const std::string\n"
52847 		"&b, const std::string &e)\n"
52848 		"\n"
52849 		"If they match, remove the prefix/suffix and then call operator()() to\n"
52850 		"try to handle the range. \n"
52851 		""},
52852 	 { (char *)"RangeProcessor___call__", _wrap_RangeProcessor___call__, METH_VARARGS, NULL},
52853 	 { (char *)"RangeProcessor_release", (PyCFunction)_wrap_RangeProcessor_release, METH_O, (char *)"\n"
52854 		"\n"
52855 		"\n"
52856 		"Start reference counting this object.\n"
52857 		"\n"
52858 		"const RangeProcessor* Xapian::RangeProcessor::release() const\n"
52859 		"\n"
52860 		"You can hand ownership of a dynamically allocated RangeProcessor\n"
52861 		"object to Xapian by calling release() and then passing the object to a\n"
52862 		"Xapian method. Xapian will arrange to delete the object once it is no\n"
52863 		"longer required. \n"
52864 		""},
52865 	 { (char *)"disown_RangeProcessor", (PyCFunction)_wrap_disown_RangeProcessor, METH_O, NULL},
52866 	 { (char *)"RangeProcessor_swigregister", RangeProcessor_swigregister, METH_VARARGS, NULL},
52867 	 { (char *)"RangeProcessor_swiginit", RangeProcessor_swiginit, METH_VARARGS, NULL},
52868 	 { (char *)"new_DateRangeProcessor", _wrap_new_DateRangeProcessor, METH_VARARGS, (char *)"\n"
52869 		"\n"
52870 		"\n"
52871 		"Constructor.\n"
52872 		"\n"
52873 		"Xapian::DateRangeProcessor::DateRangeProcessor(Xapian::valueno slot_,\n"
52874 		"const std::string &str_, unsigned flags_=0, int epoch_year_=1970)\n"
52875 		"\n"
52876 		"Parameters:\n"
52877 		"-----------\n"
52878 		"\n"
52879 		"slot_:  The value slot number to query.\n"
52880 		"\n"
52881 		"str_:  A string to look for to recognise values as belonging to this\n"
52882 		"date range.\n"
52883 		"\n"
52884 		"flags_:  Zero or more of the following flags, combined with bitwise-\n"
52885 		"or: Xapian::RP_SUFFIX - require str_ as a suffix instead of a prefix.\n"
52886 		"\n"
52887 		"Xapian::RP_REPEATED - optionally allow str_ on both ends of the range\n"
52888 		"- e.g. $1..$10 or 5m..50m. By default a prefix is only checked for on\n"
52889 		"the start (e.g. date:1/1/1980..31/12/1989), and a suffix only on the\n"
52890 		"end (e.g. 2..12kg).\n"
52891 		"\n"
52892 		"Xapian::RP_DATE_PREFER_MDY - interpret ambiguous dates as\n"
52893 		"month/day/year rather than day/month/year.\n"
52894 		"\n"
52895 		"epoch_year_:  Year to use as the epoch for dates with 2 digit years\n"
52896 		"(default: 1970, so 1/1/69 is 2069 while 1/1/70 is 1970).\n"
52897 		"\n"
52898 		"The string supplied in str_ is used by operator() to decide whether\n"
52899 		"the pair of strings supplied to it constitute a valid range. If\n"
52900 		"prefix_ is true, the first value in a range must begin with str_ (and\n"
52901 		"the second value may optionally begin with str_); if prefix_ is false,\n"
52902 		"the second value in a range must end with str_ (and the first value\n"
52903 		"may optionally end with str_).\n"
52904 		"\n"
52905 		"If str_ is empty, the Xapian::RP_SUFFIX and Xapian::RP_REPEATED are\n"
52906 		"irrelevant, and no special strings are required at the start or end of\n"
52907 		"the strings defining the range.\n"
52908 		"\n"
52909 		"The remainder of both strings defining the endpoints must be valid\n"
52910 		"dates.\n"
52911 		"\n"
52912 		"For example, if str_ is \"created:\", Xapian::RP_SUFFIX is not\n"
52913 		"specified, and the range processor has been added to the queryparser,\n"
52914 		"the queryparser will accept \"created:1/1/2000..31/12/2001\". \n"
52915 		""},
52916 	 { (char *)"delete_DateRangeProcessor", (PyCFunction)_wrap_delete_DateRangeProcessor, METH_O, NULL},
52917 	 { (char *)"DateRangeProcessor_swigregister", DateRangeProcessor_swigregister, METH_VARARGS, NULL},
52918 	 { (char *)"DateRangeProcessor_swiginit", DateRangeProcessor_swiginit, METH_VARARGS, NULL},
52919 	 { (char *)"new_NumberRangeProcessor", _wrap_new_NumberRangeProcessor, METH_VARARGS, (char *)"\n"
52920 		"\n"
52921 		"\n"
52922 		"Constructor.\n"
52923 		"\n"
52924 		"Xapian::NumberRangeProcessor::NumberRangeProcessor(Xapian::valueno\n"
52925 		"slot_, const std::string &str_=std::string(), unsigned flags_=0)\n"
52926 		"\n"
52927 		"Parameters:\n"
52928 		"-----------\n"
52929 		"\n"
52930 		"slot_:  The value slot number to query.\n"
52931 		"\n"
52932 		"str_:  A string to look for to recognise values as belonging to this\n"
52933 		"numeric range.\n"
52934 		"\n"
52935 		"flags_:  Zero or more of the following flags, combined with bitwise-\n"
52936 		"or: Xapian::RP_SUFFIX - require str_ as a suffix instead of a prefix.\n"
52937 		"\n"
52938 		"Xapian::RP_REPEATED - optionally allow str_ on both ends of the range\n"
52939 		"- e.g. $1..$10 or 5m..50m. By default a prefix is only checked for on\n"
52940 		"the start (e.g. date:1/1/1980..31/12/1989), and a suffix only on the\n"
52941 		"end (e.g. 2..12kg).\n"
52942 		"\n"
52943 		"The string supplied in str_ is used by operator() to decide whether\n"
52944 		"the pair of strings supplied to it constitute a valid range. If\n"
52945 		"prefix_ is true, the first value in a range must begin with str_ (and\n"
52946 		"the second value may optionally begin with str_); if prefix_ is false,\n"
52947 		"the second value in a range must end with str_ (and the first value\n"
52948 		"may optionally end with str_).\n"
52949 		"\n"
52950 		"If str_ is empty, the setting of prefix_ is irrelevant, and no special\n"
52951 		"strings are required at the start or end of the strings defining the\n"
52952 		"range.\n"
52953 		"\n"
52954 		"The remainder of both strings defining the endpoints must be valid\n"
52955 		"floating point numbers. (FIXME: define format recognised).\n"
52956 		"\n"
52957 		"For example, if str_ is \"$\" and prefix_ is true, and the range\n"
52958 		"processor has been added to the queryparser, the queryparser will\n"
52959 		"accept \"$10..50\" or \"$10..$50\", but not \"10..50\" or \"10..$50\"\n"
52960 		"as valid ranges. If str_ is \"kg\" and prefix_ is false, the\n"
52961 		"queryparser will accept \"10..50kg\" or \"10kg..50kg\", but not\n"
52962 		"\"10..50\" or \"10kg..50\" as valid ranges. \n"
52963 		""},
52964 	 { (char *)"delete_NumberRangeProcessor", (PyCFunction)_wrap_delete_NumberRangeProcessor, METH_O, NULL},
52965 	 { (char *)"NumberRangeProcessor_swigregister", NumberRangeProcessor_swigregister, METH_VARARGS, NULL},
52966 	 { (char *)"NumberRangeProcessor_swiginit", NumberRangeProcessor_swiginit, METH_VARARGS, NULL},
52967 	 { (char *)"new_ValueRangeProcessor", (PyCFunction)_wrap_new_ValueRangeProcessor, METH_O, (char *)"\n"
52968 		"\n"
52969 		"\n"
52970 		"Default constructor.\n"
52971 		"\n"
52972 		"Xapian::ValueRangeProcessor::ValueRangeProcessor() \n"
52973 		""},
52974 	 { (char *)"delete_ValueRangeProcessor", (PyCFunction)_wrap_delete_ValueRangeProcessor, METH_O, (char *)"\n"
52975 		"\n"
52976 		"\n"
52977 		"Destructor.\n"
52978 		"\n"
52979 		"virtual Xapian::ValueRangeProcessor::~ValueRangeProcessor() \n"
52980 		""},
52981 	 { (char *)"ValueRangeProcessor___call__", _wrap_ValueRangeProcessor___call__, METH_VARARGS, NULL},
52982 	 { (char *)"ValueRangeProcessor_release", (PyCFunction)_wrap_ValueRangeProcessor_release, METH_O, (char *)"\n"
52983 		"\n"
52984 		"\n"
52985 		"Start reference counting this object.\n"
52986 		"\n"
52987 		"const ValueRangeProcessor* Xapian::ValueRangeProcessor::release()\n"
52988 		"const\n"
52989 		"\n"
52990 		"You can hand ownership of a dynamically allocated ValueRangeProcessor\n"
52991 		"object to Xapian by calling release() and then passing the object to a\n"
52992 		"Xapian method. Xapian will arrange to delete the object once it is no\n"
52993 		"longer required. \n"
52994 		""},
52995 	 { (char *)"disown_ValueRangeProcessor", (PyCFunction)_wrap_disown_ValueRangeProcessor, METH_O, NULL},
52996 	 { (char *)"ValueRangeProcessor_swigregister", ValueRangeProcessor_swigregister, METH_VARARGS, NULL},
52997 	 { (char *)"ValueRangeProcessor_swiginit", ValueRangeProcessor_swiginit, METH_VARARGS, NULL},
52998 	 { (char *)"new_StringValueRangeProcessor", _wrap_new_StringValueRangeProcessor, METH_VARARGS, (char *)"\n"
52999 		"\n"
53000 		"\n"
53001 		"Constructor.\n"
53002 		"\n"
53003 		"Xapian::StringValueRangeProcessor::StringValueRangeProcessor(Xapian::valueno\n"
53004 		"slot_, const std::string &str_, bool prefix_=true)\n"
53005 		"\n"
53006 		"Parameters:\n"
53007 		"-----------\n"
53008 		"\n"
53009 		"slot_:  The value number to return from operator().\n"
53010 		"\n"
53011 		"str_:  A string to look for to recognise values as belonging to this\n"
53012 		"range.\n"
53013 		"\n"
53014 		"prefix_:  Flag specifying whether to check for str_ as a prefix or a\n"
53015 		"suffix. \n"
53016 		""},
53017 	 { (char *)"delete_StringValueRangeProcessor", (PyCFunction)_wrap_delete_StringValueRangeProcessor, METH_O, NULL},
53018 	 { (char *)"StringValueRangeProcessor_swigregister", StringValueRangeProcessor_swigregister, METH_VARARGS, NULL},
53019 	 { (char *)"StringValueRangeProcessor_swiginit", StringValueRangeProcessor_swiginit, METH_VARARGS, NULL},
53020 	 { (char *)"new_DateValueRangeProcessor", _wrap_new_DateValueRangeProcessor, METH_VARARGS, (char *)"\n"
53021 		"\n"
53022 		"\n"
53023 		"Constructor.\n"
53024 		"\n"
53025 		"Xapian::DateValueRangeProcessor::DateValueRangeProcessor(Xapian::valueno\n"
53026 		"slot_, const char *str_, bool prefix_=true, bool prefer_mdy_=false,\n"
53027 		"int epoch_year_=1970)\n"
53028 		"\n"
53029 		"This is like the previous version, but with const char * instead of\n"
53030 		"std::string - we need this overload as otherwise\n"
53031 		"DateValueRangeProcessor(1, \"date:\") quietly interprets the second\n"
53032 		"argument as a boolean in preference to std::string. If you want to be\n"
53033 		"compatible with 1.2.12 and earlier, then explicitly convert to\n"
53034 		"std::string, i.e.: DateValueRangeProcessor(1, std::string(\"date:\"))\n"
53035 		"\n"
53036 		"Parameters:\n"
53037 		"-----------\n"
53038 		"\n"
53039 		"slot_:  The value number to return from operator().\n"
53040 		"\n"
53041 		"str_:  A string to look for to recognise values as belonging to this\n"
53042 		"date range.\n"
53043 		"\n"
53044 		"prefix_:  Whether to look for the string at the start or end of the\n"
53045 		"values. If true, the string is a prefix; if false, the string is a\n"
53046 		"suffix (default: true).\n"
53047 		"\n"
53048 		"prefer_mdy_:  Should ambiguous dates be interpreted as month/day/year\n"
53049 		"rather than day/month/year? (default: false)\n"
53050 		"\n"
53051 		"epoch_year_:  Year to use as the epoch for dates with 2 digit years\n"
53052 		"(default: 1970, so 1/1/69 is 2069 while 1/1/70 is 1970).\n"
53053 		"\n"
53054 		"The string supplied in str_ is used by operator() to decide whether\n"
53055 		"the pair of strings supplied to it constitute a valid range. If\n"
53056 		"prefix_ is true, the first value in a range must begin with str_ (and\n"
53057 		"the second value may optionally begin with str_); if prefix_ is false,\n"
53058 		"the second value in a range must end with str_ (and the first value\n"
53059 		"may optionally end with str_).\n"
53060 		"\n"
53061 		"If str_ is empty, the setting of prefix_ is irrelevant, and no special\n"
53062 		"strings are required at the start or end of the strings defining the\n"
53063 		"range.\n"
53064 		"\n"
53065 		"The remainder of both strings defining the endpoints must be valid\n"
53066 		"dates.\n"
53067 		"\n"
53068 		"For example, if str_ is \"created:\" and prefix_ is true, and the\n"
53069 		"range processor has been added to the queryparser, the queryparser\n"
53070 		"will accept \"created:1/1/2000..31/12/2001\". \n"
53071 		""},
53072 	 { (char *)"delete_DateValueRangeProcessor", (PyCFunction)_wrap_delete_DateValueRangeProcessor, METH_O, NULL},
53073 	 { (char *)"DateValueRangeProcessor_swigregister", DateValueRangeProcessor_swigregister, METH_VARARGS, NULL},
53074 	 { (char *)"DateValueRangeProcessor_swiginit", DateValueRangeProcessor_swiginit, METH_VARARGS, NULL},
53075 	 { (char *)"new_NumberValueRangeProcessor", _wrap_new_NumberValueRangeProcessor, METH_VARARGS, (char *)"\n"
53076 		"\n"
53077 		"\n"
53078 		"Constructor.\n"
53079 		"\n"
53080 		"Xapian::NumberValueRangeProcessor::NumberValueRangeProcessor(Xapian::valueno\n"
53081 		"slot_, const std::string &str_, bool prefix_=true)\n"
53082 		"\n"
53083 		"Parameters:\n"
53084 		"-----------\n"
53085 		"\n"
53086 		"slot_:  The value number to return from operator().\n"
53087 		"\n"
53088 		"str_:  A string to look for to recognise values as belonging to this\n"
53089 		"numeric range.\n"
53090 		"\n"
53091 		"prefix_:  Whether to look for the string at the start or end of the\n"
53092 		"values. If true, the string is a prefix; if false, the string is a\n"
53093 		"suffix (default: true).\n"
53094 		"\n"
53095 		"The string supplied in str_ is used by operator() to decide whether\n"
53096 		"the pair of strings supplied to it constitute a valid range. If\n"
53097 		"prefix_ is true, the first value in a range must begin with str_ (and\n"
53098 		"the second value may optionally begin with str_); if prefix_ is false,\n"
53099 		"the second value in a range must end with str_ (and the first value\n"
53100 		"may optionally end with str_).\n"
53101 		"\n"
53102 		"If str_ is empty, the setting of prefix_ is irrelevant, and no special\n"
53103 		"strings are required at the start or end of the strings defining the\n"
53104 		"range.\n"
53105 		"\n"
53106 		"The remainder of both strings defining the endpoints must be valid\n"
53107 		"floating point numbers. (FIXME: define format recognised).\n"
53108 		"\n"
53109 		"For example, if str_ is \"$\" and prefix_ is true, and the range\n"
53110 		"processor has been added to the queryparser, the queryparser will\n"
53111 		"accept \"$10..50\" or \"$10..$50\", but not \"10..50\" or \"10..$50\"\n"
53112 		"as valid ranges. If str_ is \"kg\" and prefix_ is false, the\n"
53113 		"queryparser will accept \"10..50kg\" or \"10kg..50kg\", but not\n"
53114 		"\"10..50\" or \"10kg..50\" as valid ranges. \n"
53115 		""},
53116 	 { (char *)"delete_NumberValueRangeProcessor", (PyCFunction)_wrap_delete_NumberValueRangeProcessor, METH_O, NULL},
53117 	 { (char *)"NumberValueRangeProcessor_swigregister", NumberValueRangeProcessor_swigregister, METH_VARARGS, NULL},
53118 	 { (char *)"NumberValueRangeProcessor_swiginit", NumberValueRangeProcessor_swiginit, METH_VARARGS, NULL},
53119 	 { (char *)"new_FieldProcessor", (PyCFunction)_wrap_new_FieldProcessor, METH_O, (char *)"\n"
53120 		"\n"
53121 		"\n"
53122 		"Default constructor.\n"
53123 		"\n"
53124 		"Xapian::FieldProcessor::FieldProcessor() \n"
53125 		""},
53126 	 { (char *)"delete_FieldProcessor", (PyCFunction)_wrap_delete_FieldProcessor, METH_O, (char *)"\n"
53127 		"\n"
53128 		"\n"
53129 		"Destructor.\n"
53130 		"\n"
53131 		"virtual Xapian::FieldProcessor::~FieldProcessor() \n"
53132 		""},
53133 	 { (char *)"FieldProcessor___call__", _wrap_FieldProcessor___call__, METH_VARARGS, NULL},
53134 	 { (char *)"FieldProcessor_release", (PyCFunction)_wrap_FieldProcessor_release, METH_O, (char *)"\n"
53135 		"\n"
53136 		"\n"
53137 		"Start reference counting this object.\n"
53138 		"\n"
53139 		"const FieldProcessor* Xapian::FieldProcessor::release() const\n"
53140 		"\n"
53141 		"You can hand ownership of a dynamically allocated FieldProcessor\n"
53142 		"object to Xapian by calling release() and then passing the object to a\n"
53143 		"Xapian method. Xapian will arrange to delete the object once it is no\n"
53144 		"longer required. \n"
53145 		""},
53146 	 { (char *)"disown_FieldProcessor", (PyCFunction)_wrap_disown_FieldProcessor, METH_O, NULL},
53147 	 { (char *)"FieldProcessor_swigregister", FieldProcessor_swigregister, METH_VARARGS, NULL},
53148 	 { (char *)"FieldProcessor_swiginit", FieldProcessor_swiginit, METH_VARARGS, NULL},
53149 	 { (char *)"new_QueryParser", (PyCFunction)_wrap_new_QueryParser, METH_NOARGS, (char *)"\n"
53150 		"\n"
53151 		"\n"
53152 		"Default constructor.\n"
53153 		"\n"
53154 		"Xapian::QueryParser::QueryParser() \n"
53155 		""},
53156 	 { (char *)"delete_QueryParser", (PyCFunction)_wrap_delete_QueryParser, METH_O, (char *)"\n"
53157 		"\n"
53158 		"\n"
53159 		"Destructor.\n"
53160 		"\n"
53161 		"Xapian::QueryParser::~QueryParser() \n"
53162 		""},
53163 	 { (char *)"QueryParser_set_stemmer", _wrap_QueryParser_set_stemmer, METH_VARARGS, (char *)"\n"
53164 		"\n"
53165 		"\n"
53166 		"Set the stemmer.\n"
53167 		"\n"
53168 		"void Xapian::QueryParser::set_stemmer(const Xapian::Stem &stemmer)\n"
53169 		"\n"
53170 		"This sets the stemming algorithm which will be used by the query\n"
53171 		"parser. The stemming algorithm will be used according to the stemming\n"
53172 		"strategy set by set_stemming_strategy(). As of 1.3.1, this defaults to\n"
53173 		"STEM_SOME, but in earlier versions the default was STEM_NONE. If you\n"
53174 		"want to work with older versions, you should explicitly set a stemming\n"
53175 		"strategy as well as setting a stemmer, otherwise your stemmer won't\n"
53176 		"actually be used.\n"
53177 		"\n"
53178 		"Parameters:\n"
53179 		"-----------\n"
53180 		"\n"
53181 		"stemmer:  The Xapian::Stem object to set. \n"
53182 		""},
53183 	 { (char *)"QueryParser_set_stemming_strategy", _wrap_QueryParser_set_stemming_strategy, METH_VARARGS, (char *)"\n"
53184 		"\n"
53185 		"\n"
53186 		"Set the stemming strategy.\n"
53187 		"\n"
53188 		"void Xapian::QueryParser::set_stemming_strategy(stem_strategy\n"
53189 		"strategy)\n"
53190 		"\n"
53191 		"This controls how the query parser will apply the stemming algorithm.\n"
53192 		"Note that the stemming algorithm is only applied to words in free-text\n"
53193 		"fields - boolean filter terms are never stemmed.\n"
53194 		"\n"
53195 		"Parameters:\n"
53196 		"-----------\n"
53197 		"\n"
53198 		"strategy:  The strategy to use - possible values are: STEM_NONE: Don't\n"
53199 		"perform any stemming. (default in Xapian <= 1.3.0)\n"
53200 		"\n"
53201 		"STEM_SOME: Stem all terms except for those which start with a capital\n"
53202 		"letter, or are followed by certain characters (currently: (/@<>=*[{\"\n"
53203 		"), or are used with operators which need positional information.\n"
53204 		"Stemmed terms are prefixed with 'Z'. (default in Xapian >= 1.3.1)\n"
53205 		"\n"
53206 		"STEM_SOME_FULL_POS: Like STEM_SOME but also stems terms used with\n"
53207 		"operators which need positional information. Added in Xapian 1.4.8.\n"
53208 		"\n"
53209 		"STEM_ALL: Stem all terms (note: no 'Z' prefix is added).\n"
53210 		"\n"
53211 		"STEM_ALL_Z: Stem all terms (note: 'Z' prefix is added). (new in Xapian\n"
53212 		"1.2.11 and 1.3.1) \n"
53213 		""},
53214 	 { (char *)"QueryParser_set_stopper", _wrap_QueryParser_set_stopper, METH_VARARGS, (char *)"\n"
53215 		"\n"
53216 		"\n"
53217 		"Set the stopper.\n"
53218 		"\n"
53219 		"void Xapian::QueryParser::set_stopper(const Stopper *stop=NULL)\n"
53220 		"\n"
53221 		"Parameters:\n"
53222 		"-----------\n"
53223 		"\n"
53224 		"stop:  The Stopper object to set (default NULL, which means no\n"
53225 		"stopwords). \n"
53226 		""},
53227 	 { (char *)"QueryParser_set_default_op", _wrap_QueryParser_set_default_op, METH_VARARGS, (char *)"\n"
53228 		"\n"
53229 		"\n"
53230 		"Set the default operator.\n"
53231 		"\n"
53232 		"void Xapian::QueryParser::set_default_op(Query::op default_op)\n"
53233 		"\n"
53234 		"Parameters:\n"
53235 		"-----------\n"
53236 		"\n"
53237 		"default_op:  The operator to use to combine non-filter query items\n"
53238 		"when no explicit operator is used.\n"
53239 		"\n"
53240 		"So for example, 'weather forecast' is parsed as if it were 'weather OR\n"
53241 		"forecast' by default.\n"
53242 		"\n"
53243 		"The most useful values for this are OP_OR (the default) and OP_AND.\n"
53244 		"OP_NEAR, OP_PHRASE, OP_ELITE_SET, OP_SYNONYM and OP_MAX are also\n"
53245 		"permitted. Passing other values will result in InvalidArgumentError\n"
53246 		"being thrown. \n"
53247 		""},
53248 	 { (char *)"QueryParser_get_default_op", (PyCFunction)_wrap_QueryParser_get_default_op, METH_O, (char *)"\n"
53249 		"\n"
53250 		"\n"
53251 		"Get the current default operator.\n"
53252 		"\n"
53253 		"Query::op Xapian::QueryParser::get_default_op() const \n"
53254 		""},
53255 	 { (char *)"QueryParser_set_database", _wrap_QueryParser_set_database, METH_VARARGS, (char *)"\n"
53256 		"\n"
53257 		"\n"
53258 		"Specify the database being searched.\n"
53259 		"\n"
53260 		"void Xapian::QueryParser::set_database(const Database &db)\n"
53261 		"\n"
53262 		"Parameters:\n"
53263 		"-----------\n"
53264 		"\n"
53265 		"db:  The database to use for spelling correction\n"
53266 		"(FLAG_SPELLING_CORRECTION), and synonyms (FLAG_SYNONYM,\n"
53267 		"FLAG_AUTO_SYNONYMS, and FLAG_AUTO_MULTIWORD_SYNONYMS). \n"
53268 		""},
53269 	 { (char *)"QueryParser_set_max_expansion", _wrap_QueryParser_set_max_expansion, METH_VARARGS, (char *)"\n"
53270 		"\n"
53271 		"\n"
53272 		"Specify the maximum expansion of a wildcard and/or partial term.\n"
53273 		"\n"
53274 		"void Xapian::QueryParser::set_max_expansion(Xapian::termcount\n"
53275 		"max_expansion, int max_type=Xapian::Query::WILDCARD_LIMIT_ERROR,\n"
53276 		"unsigned flags=FLAG_WILDCARD|FLAG_PARTIAL)\n"
53277 		"\n"
53278 		"Note: you must also set FLAG_WILDCARD and/or FLAG_PARTIAL in the flags\n"
53279 		"parameter to  parse_query() for this setting to have anything to\n"
53280 		"affect.\n"
53281 		"\n"
53282 		"If you don't call this method, the default settings are no limit on\n"
53283 		"wildcard expansion, and partial terms expanding to the most frequent\n"
53284 		"100 terms - i.e. as if you'd called:\n"
53285 		"\n"
53286 		"set_max_expansion(0); set_max_expansion(100,\n"
53287 		"Xapian::Query::WILDCARD_LIMIT_MOST_FREQUENT,\n"
53288 		"Xapian::QueryParser::FLAG_PARTIAL);\n"
53289 		"\n"
53290 		"Parameters:\n"
53291 		"-----------\n"
53292 		"\n"
53293 		"max_expansion:  The maximum number of terms each wildcard in the query\n"
53294 		"can expand to, or 0 for no limit (which is the default).\n"
53295 		"\n"
53296 		"max_type:    Xapian::Query::WILDCARD_LIMIT_ERROR,\n"
53297 		"Xapian::Query::WILDCARD_LIMIT_FIRST or\n"
53298 		"Xapian::Query::WILDCARD_LIMIT_MOST_FREQUENT (default:\n"
53299 		"Xapian::Query::WILDCARD_LIMIT_ERROR).\n"
53300 		"\n"
53301 		"flags:  What to set the limit for (default:\n"
53302 		"FLAG_WILDCARD|FLAG_PARTIAL, setting the limit for both wildcards and\n"
53303 		"partial terms).\n"
53304 		"\n"
53305 		"1.3.3 \n"
53306 		""},
53307 	 { (char *)"QueryParser_set_max_wildcard_expansion", _wrap_QueryParser_set_max_wildcard_expansion, METH_VARARGS, (char *)"\n"
53308 		"\n"
53309 		"\n"
53310 		"Specify the maximum expansion of a wildcard.\n"
53311 		"\n"
53312 		"void\n"
53313 		"Xapian::QueryParser::set_max_wildcard_expansion(Xapian::termcount)\n"
53314 		"\n"
53315 		"If any wildcard expands to more than max_expansion terms, an exception\n"
53316 		"will be thrown.\n"
53317 		"\n"
53318 		"This method is provided for API compatibility with Xapian 1.2.x and is\n"
53319 		"deprecated - replace it with:\n"
53320 		"\n"
53321 		"set_max_wildcard_expansion(max_expansion,\n"
53322 		"Xapian::Query::WILDCARD_LIMIT_ERROR,\n"
53323 		"Xapian::QueryParser::FLAG_WILDCARD); \n"
53324 		""},
53325 	 { (char *)"QueryParser_parse_query", _wrap_QueryParser_parse_query, METH_VARARGS, (char *)"\n"
53326 		"\n"
53327 		"\n"
53328 		"Parse a query.\n"
53329 		"\n"
53330 		"Query Xapian::QueryParser::parse_query(const std::string\n"
53331 		"&query_string, unsigned flags=FLAG_DEFAULT, const std::string\n"
53332 		"&default_prefix=std::string())\n"
53333 		"\n"
53334 		"Parameters:\n"
53335 		"-----------\n"
53336 		"\n"
53337 		"query_string:  A free-text query as entered by a user\n"
53338 		"\n"
53339 		"flags:  Zero or more QueryParser::feature_flag specifying what\n"
53340 		"features the QueryParser should support. Combine multiple values with\n"
53341 		"bitwise-or (|) (default FLAG_DEFAULT).\n"
53342 		"\n"
53343 		"default_prefix:  The default term prefix to use (default none). For\n"
53344 		"example, you can pass \"A\" when parsing an \"Author\" field.\n"
53345 		"\n"
53346 		"Parameters:\n"
53347 		"-----------\n"
53348 		"\n"
53349 		"If:  the query string can't be parsed, then Xapian::QueryParserError\n"
53350 		"is thrown. You can get an English error message to report to the user\n"
53351 		"by catching it and calling get_msg() on the caught exception. The\n"
53352 		"current possible values (in case you want to translate them) are:\n"
53353 		"\n"
53354 		"Unknown range operation\n"
53355 		"\n"
53356 		"parse error\n"
53357 		"\n"
53358 		"Syntax: <expression> AND <expression>\n"
53359 		"\n"
53360 		"Syntax: <expression> AND NOT <expression>\n"
53361 		"\n"
53362 		"Syntax: <expression> NOT <expression>\n"
53363 		"\n"
53364 		"Syntax: <expression> OR <expression>\n"
53365 		"\n"
53366 		"Syntax: <expression> XOR <expression> \n"
53367 		""},
53368 	 { (char *)"QueryParser_add_prefix", _wrap_QueryParser_add_prefix, METH_VARARGS, (char *)"\n"
53369 		"\n"
53370 		"\n"
53371 		"Register a FieldProcessor.\n"
53372 		"\n"
53373 		"void Xapian::QueryParser::add_prefix(const std::string &field,\n"
53374 		"Xapian::FieldProcessor *proc) \n"
53375 		""},
53376 	 { (char *)"QueryParser_add_boolean_prefix", _wrap_QueryParser_add_boolean_prefix, METH_VARARGS, (char *)"\n"
53377 		"\n"
53378 		"\n"
53379 		"Register a FieldProcessor for a boolean prefix.\n"
53380 		"\n"
53381 		"void Xapian::QueryParser::add_boolean_prefix(const std::string &field,\n"
53382 		"Xapian::FieldProcessor *proc, bool exclusive)\n"
53383 		"\n"
53384 		"This is an older version of this method - use the version with the\n"
53385 		"grouping parameter in preference to this one. \n"
53386 		""},
53387 	 { (char *)"QueryParser__stoplist_begin", (PyCFunction)_wrap_QueryParser__stoplist_begin, METH_O, (char *)"\n"
53388 		"\n"
53389 		"\n"
53390 		"Begin iterator over terms omitted from the query as stopwords.\n"
53391 		"\n"
53392 		"TermIterator Xapian::QueryParser::stoplist_begin() const \n"
53393 		""},
53394 	 { (char *)"QueryParser__stoplist_end", (PyCFunction)_wrap_QueryParser__stoplist_end, METH_O, (char *)"\n"
53395 		"\n"
53396 		"\n"
53397 		"End iterator over terms omitted from the query as stopwords.\n"
53398 		"\n"
53399 		"TermIterator Xapian::QueryParser::stoplist_end() const \n"
53400 		""},
53401 	 { (char *)"QueryParser__unstem_begin", _wrap_QueryParser__unstem_begin, METH_VARARGS, (char *)"\n"
53402 		"\n"
53403 		"\n"
53404 		"Begin iterator over unstemmed forms of the given stemmed query term.\n"
53405 		"\n"
53406 		"TermIterator Xapian::QueryParser::unstem_begin(const std::string\n"
53407 		"&term) const \n"
53408 		""},
53409 	 { (char *)"QueryParser__unstem_end", _wrap_QueryParser__unstem_end, METH_VARARGS, (char *)"\n"
53410 		"\n"
53411 		"\n"
53412 		"End iterator over unstemmed forms of the given stemmed query term.\n"
53413 		"\n"
53414 		"TermIterator Xapian::QueryParser::unstem_end(const std::string &)\n"
53415 		"const \n"
53416 		""},
53417 	 { (char *)"QueryParser_add_rangeprocessor", _wrap_QueryParser_add_rangeprocessor, METH_VARARGS, (char *)"\n"
53418 		"\n"
53419 		"\n"
53420 		"Register a RangeProcessor.\n"
53421 		"\n"
53422 		"void Xapian::QueryParser::add_rangeprocessor(Xapian::RangeProcessor\n"
53423 		"*range_proc, const std::string *grouping=NULL) \n"
53424 		""},
53425 	 { (char *)"QueryParser_add_valuerangeprocessor", _wrap_QueryParser_add_valuerangeprocessor, METH_VARARGS, (char *)"\n"
53426 		"\n"
53427 		"\n"
53428 		"Register a ValueRangeProcessor.\n"
53429 		"\n"
53430 		"void\n"
53431 		"Xapian::QueryParser::add_valuerangeprocessor(Xapian::ValueRangeProcessor\n"
53432 		"*vrproc)\n"
53433 		"\n"
53434 		"This method is provided for API compatibility with Xapian 1.2.x and is\n"
53435 		"deprecated - use  add_rangeprocessor() with a RangeProcessor instead.\n"
53436 		"\n"
53437 		"Compatibility shim. \n"
53438 		""},
53439 	 { (char *)"QueryParser_get_corrected_query_string", (PyCFunction)_wrap_QueryParser_get_corrected_query_string, METH_O, (char *)"\n"
53440 		"\n"
53441 		"\n"
53442 		"Get the spelling-corrected query string.\n"
53443 		"\n"
53444 		"std::string Xapian::QueryParser::get_corrected_query_string() const\n"
53445 		"\n"
53446 		"This will only be set if FLAG_SPELLING_CORRECTION is specified when\n"
53447 		"QueryParser::parse_query() was last called.\n"
53448 		"\n"
53449 		"If there were no corrections, an empty string is returned. \n"
53450 		""},
53451 	 { (char *)"QueryParser___str__", (PyCFunction)_wrap_QueryParser___str__, METH_O, (char *)"\n"
53452 		"\n"
53453 		"\n"
53454 		"Return a string describing this object.\n"
53455 		"\n"
53456 		"std::string Xapian::QueryParser::get_description() const \n"
53457 		""},
53458 	 { (char *)"QueryParser_swigregister", QueryParser_swigregister, METH_VARARGS, NULL},
53459 	 { (char *)"QueryParser_swiginit", QueryParser_swiginit, METH_VARARGS, NULL},
53460 	 { (char *)"sortable_serialise", (PyCFunction)_wrap_sortable_serialise, METH_O, NULL},
53461 	 { (char *)"sortable_unserialise", (PyCFunction)_wrap_sortable_unserialise, METH_O, NULL},
53462 	 { (char *)"new_ValueSetMatchDecider", _wrap_new_ValueSetMatchDecider, METH_VARARGS, (char *)"\n"
53463 		"\n"
53464 		"\n"
53465 		"Construct a ValueSetMatchDecider.\n"
53466 		"\n"
53467 		"Xapian::ValueSetMatchDecider::ValueSetMatchDecider(Xapian::valueno\n"
53468 		"slot, bool inclusive_)\n"
53469 		"\n"
53470 		"Parameters:\n"
53471 		"-----------\n"
53472 		"\n"
53473 		"slot:  The value slot number to look in.\n"
53474 		"\n"
53475 		"inclusive_:  If true, match decider accepts documents which have a\n"
53476 		"value in the specified slot which is a member of the test set; if\n"
53477 		"false, match decider accepts documents which do not have a value in\n"
53478 		"the specified slot. \n"
53479 		""},
53480 	 { (char *)"ValueSetMatchDecider_add_value", _wrap_ValueSetMatchDecider_add_value, METH_VARARGS, (char *)"\n"
53481 		"\n"
53482 		"\n"
53483 		"Add a value to the test set.\n"
53484 		"\n"
53485 		"void Xapian::ValueSetMatchDecider::add_value(const std::string &value)\n"
53486 		"\n"
53487 		"Parameters:\n"
53488 		"-----------\n"
53489 		"\n"
53490 		"value:  The value to add to the test set. \n"
53491 		""},
53492 	 { (char *)"ValueSetMatchDecider_remove_value", _wrap_ValueSetMatchDecider_remove_value, METH_VARARGS, (char *)"\n"
53493 		"\n"
53494 		"\n"
53495 		"Remove a value from the test set.\n"
53496 		"\n"
53497 		"void Xapian::ValueSetMatchDecider::remove_value(const std::string\n"
53498 		"&value)\n"
53499 		"\n"
53500 		"Parameters:\n"
53501 		"-----------\n"
53502 		"\n"
53503 		"value:  The value to remove from the test set. \n"
53504 		""},
53505 	 { (char *)"delete_ValueSetMatchDecider", (PyCFunction)_wrap_delete_ValueSetMatchDecider, METH_O, NULL},
53506 	 { (char *)"ValueSetMatchDecider_swigregister", ValueSetMatchDecider_swigregister, METH_VARARGS, NULL},
53507 	 { (char *)"ValueSetMatchDecider_swiginit", ValueSetMatchDecider_swiginit, METH_VARARGS, NULL},
53508 	 { (char *)"delete_Weight", (PyCFunction)_wrap_delete_Weight, METH_O, (char *)"\n"
53509 		"\n"
53510 		"\n"
53511 		"Virtual destructor, because we have virtual methods.\n"
53512 		"\n"
53513 		"virtual Xapian::Weight::~Weight() \n"
53514 		""},
53515 	 { (char *)"Weight_name", (PyCFunction)_wrap_Weight_name, METH_O, (char *)"\n"
53516 		"\n"
53517 		"\n"
53518 		"Return the name of this weighting scheme.\n"
53519 		"\n"
53520 		"virtual std::string Xapian::Weight::name() const\n"
53521 		"\n"
53522 		"This name is used by the remote backend. It is passed along with the\n"
53523 		"serialised parameters to the remote server so that it knows which\n"
53524 		"class to create.\n"
53525 		"\n"
53526 		"Return the full namespace-qualified name of your class here - if your\n"
53527 		"class is called FooWeight, return \"FooWeight\" from this method (\n"
53528 		"Xapian::BM25Weight returns \"Xapian::BM25Weight\" here).\n"
53529 		"\n"
53530 		"If you don't want to support the remote backend, you can use the\n"
53531 		"default implementation which simply returns an empty string. \n"
53532 		""},
53533 	 { (char *)"Weight_get_sumpart", _wrap_Weight_get_sumpart, METH_VARARGS, (char *)"\n"
53534 		"\n"
53535 		"\n"
53536 		"Calculate the weight contribution for this object's term to a\n"
53537 		"document.\n"
53538 		"\n"
53539 		"virtual double Xapian::Weight::get_sumpart(Xapian::termcount wdf,\n"
53540 		"Xapian::termcount doclen, Xapian::termcount uniqterms) const =0\n"
53541 		"\n"
53542 		"The parameters give information about the document which may be used\n"
53543 		"in the calculations:\n"
53544 		"\n"
53545 		"Parameters:\n"
53546 		"-----------\n"
53547 		"\n"
53548 		"wdf:  The within document frequency of the term in the document.\n"
53549 		"\n"
53550 		"doclen:  The document's length (unnormalised).\n"
53551 		"\n"
53552 		"uniqterms:  Number of unique terms in the document (used for absolute\n"
53553 		"smoothing). \n"
53554 		""},
53555 	 { (char *)"Weight_get_maxpart", (PyCFunction)_wrap_Weight_get_maxpart, METH_O, (char *)"\n"
53556 		"\n"
53557 		"\n"
53558 		"Return an upper bound on what get_sumpart() can return for any\n"
53559 		"document.\n"
53560 		"\n"
53561 		"virtual double Xapian::Weight::get_maxpart() const =0\n"
53562 		"\n"
53563 		"This information is used by the matcher to perform various\n"
53564 		"optimisations, so strive to make the bound as tight as possible. \n"
53565 		""},
53566 	 { (char *)"Weight_get_sumextra", _wrap_Weight_get_sumextra, METH_VARARGS, (char *)"\n"
53567 		"\n"
53568 		"\n"
53569 		"Calculate the term-independent weight component for a document.\n"
53570 		"\n"
53571 		"virtual double Xapian::Weight::get_sumextra(Xapian::termcount doclen,\n"
53572 		"Xapian::termcount uniqterms) const =0\n"
53573 		"\n"
53574 		"The parameter gives information about the document which may be used\n"
53575 		"in the calculations:\n"
53576 		"\n"
53577 		"Parameters:\n"
53578 		"-----------\n"
53579 		"\n"
53580 		"doclen:  The document's length (unnormalised).\n"
53581 		"\n"
53582 		"uniqterms:  The number of unique terms in the document. \n"
53583 		""},
53584 	 { (char *)"Weight_get_maxextra", (PyCFunction)_wrap_Weight_get_maxextra, METH_O, (char *)"\n"
53585 		"\n"
53586 		"\n"
53587 		"Return an upper bound on what get_sumextra() can return for any\n"
53588 		"document.\n"
53589 		"\n"
53590 		"virtual double Xapian::Weight::get_maxextra() const =0\n"
53591 		"\n"
53592 		"This information is used by the matcher to perform various\n"
53593 		"optimisations, so strive to make the bound as tight as possible. \n"
53594 		""},
53595 	 { (char *)"Weight_swigregister", Weight_swigregister, METH_VARARGS, NULL},
53596 	 { (char *)"new_BoolWeight", (PyCFunction)_wrap_new_BoolWeight, METH_NOARGS, (char *)"\n"
53597 		"\n"
53598 		"\n"
53599 		"Construct a BoolWeight.\n"
53600 		"\n"
53601 		"Xapian::BoolWeight::BoolWeight() \n"
53602 		""},
53603 	 { (char *)"delete_BoolWeight", (PyCFunction)_wrap_delete_BoolWeight, METH_O, NULL},
53604 	 { (char *)"BoolWeight_swigregister", BoolWeight_swigregister, METH_VARARGS, NULL},
53605 	 { (char *)"BoolWeight_swiginit", BoolWeight_swiginit, METH_VARARGS, NULL},
53606 	 { (char *)"new_TfIdfWeight", _wrap_new_TfIdfWeight, METH_VARARGS, (char *)"\n"
53607 		"\n"
53608 		"\n"
53609 		"Construct a TfIdfWeight using the default normalizations (\"ntn\").\n"
53610 		"\n"
53611 		"Xapian::TfIdfWeight::TfIdfWeight() \n"
53612 		""},
53613 	 { (char *)"delete_TfIdfWeight", (PyCFunction)_wrap_delete_TfIdfWeight, METH_O, NULL},
53614 	 { (char *)"TfIdfWeight_swigregister", TfIdfWeight_swigregister, METH_VARARGS, NULL},
53615 	 { (char *)"TfIdfWeight_swiginit", TfIdfWeight_swiginit, METH_VARARGS, NULL},
53616 	 { (char *)"new_BM25Weight", _wrap_new_BM25Weight, METH_VARARGS, (char *)"Xapian::BM25Weight::BM25Weight() "},
53617 	 { (char *)"delete_BM25Weight", (PyCFunction)_wrap_delete_BM25Weight, METH_O, NULL},
53618 	 { (char *)"BM25Weight_swigregister", BM25Weight_swigregister, METH_VARARGS, NULL},
53619 	 { (char *)"BM25Weight_swiginit", BM25Weight_swiginit, METH_VARARGS, NULL},
53620 	 { (char *)"new_BM25PlusWeight", _wrap_new_BM25PlusWeight, METH_VARARGS, (char *)"Xapian::BM25PlusWeight::BM25PlusWeight() "},
53621 	 { (char *)"delete_BM25PlusWeight", (PyCFunction)_wrap_delete_BM25PlusWeight, METH_O, NULL},
53622 	 { (char *)"BM25PlusWeight_swigregister", BM25PlusWeight_swigregister, METH_VARARGS, NULL},
53623 	 { (char *)"BM25PlusWeight_swiginit", BM25PlusWeight_swiginit, METH_VARARGS, NULL},
53624 	 { (char *)"new_TradWeight", _wrap_new_TradWeight, METH_VARARGS, (char *)"\n"
53625 		"\n"
53626 		"\n"
53627 		"Construct a TradWeight.\n"
53628 		"\n"
53629 		"Xapian::TradWeight::TradWeight(double k=1.0)\n"
53630 		"\n"
53631 		"Parameters:\n"
53632 		"-----------\n"
53633 		"\n"
53634 		"k:  A non-negative parameter controlling how influential within-\n"
53635 		"document- frequency (wdf) and document length are. k=0 means that wdf\n"
53636 		"and document length don't affect the weights. The larger k is, the\n"
53637 		"more they do. (default 1) \n"
53638 		""},
53639 	 { (char *)"delete_TradWeight", (PyCFunction)_wrap_delete_TradWeight, METH_O, NULL},
53640 	 { (char *)"TradWeight_swigregister", TradWeight_swigregister, METH_VARARGS, NULL},
53641 	 { (char *)"TradWeight_swiginit", TradWeight_swiginit, METH_VARARGS, NULL},
53642 	 { (char *)"new_InL2Weight", _wrap_new_InL2Weight, METH_VARARGS, (char *)"Xapian::InL2Weight::InL2Weight() "},
53643 	 { (char *)"delete_InL2Weight", (PyCFunction)_wrap_delete_InL2Weight, METH_O, NULL},
53644 	 { (char *)"InL2Weight_swigregister", InL2Weight_swigregister, METH_VARARGS, NULL},
53645 	 { (char *)"InL2Weight_swiginit", InL2Weight_swiginit, METH_VARARGS, NULL},
53646 	 { (char *)"new_IfB2Weight", _wrap_new_IfB2Weight, METH_VARARGS, (char *)"Xapian::IfB2Weight::IfB2Weight() "},
53647 	 { (char *)"delete_IfB2Weight", (PyCFunction)_wrap_delete_IfB2Weight, METH_O, NULL},
53648 	 { (char *)"IfB2Weight_swigregister", IfB2Weight_swigregister, METH_VARARGS, NULL},
53649 	 { (char *)"IfB2Weight_swiginit", IfB2Weight_swiginit, METH_VARARGS, NULL},
53650 	 { (char *)"new_IneB2Weight", _wrap_new_IneB2Weight, METH_VARARGS, (char *)"Xapian::IneB2Weight::IneB2Weight() "},
53651 	 { (char *)"delete_IneB2Weight", (PyCFunction)_wrap_delete_IneB2Weight, METH_O, NULL},
53652 	 { (char *)"IneB2Weight_swigregister", IneB2Weight_swigregister, METH_VARARGS, NULL},
53653 	 { (char *)"IneB2Weight_swiginit", IneB2Weight_swiginit, METH_VARARGS, NULL},
53654 	 { (char *)"new_BB2Weight", _wrap_new_BB2Weight, METH_VARARGS, (char *)"Xapian::BB2Weight::BB2Weight() "},
53655 	 { (char *)"delete_BB2Weight", (PyCFunction)_wrap_delete_BB2Weight, METH_O, NULL},
53656 	 { (char *)"BB2Weight_swigregister", BB2Weight_swigregister, METH_VARARGS, NULL},
53657 	 { (char *)"BB2Weight_swiginit", BB2Weight_swiginit, METH_VARARGS, NULL},
53658 	 { (char *)"new_DLHWeight", (PyCFunction)_wrap_new_DLHWeight, METH_NOARGS, (char *)"Xapian::DLHWeight::DLHWeight() "},
53659 	 { (char *)"delete_DLHWeight", (PyCFunction)_wrap_delete_DLHWeight, METH_O, NULL},
53660 	 { (char *)"DLHWeight_swigregister", DLHWeight_swigregister, METH_VARARGS, NULL},
53661 	 { (char *)"DLHWeight_swiginit", DLHWeight_swiginit, METH_VARARGS, NULL},
53662 	 { (char *)"new_PL2Weight", _wrap_new_PL2Weight, METH_VARARGS, (char *)"Xapian::PL2Weight::PL2Weight() "},
53663 	 { (char *)"delete_PL2Weight", (PyCFunction)_wrap_delete_PL2Weight, METH_O, NULL},
53664 	 { (char *)"PL2Weight_swigregister", PL2Weight_swigregister, METH_VARARGS, NULL},
53665 	 { (char *)"PL2Weight_swiginit", PL2Weight_swiginit, METH_VARARGS, NULL},
53666 	 { (char *)"new_PL2PlusWeight", _wrap_new_PL2PlusWeight, METH_VARARGS, (char *)"Xapian::PL2PlusWeight::PL2PlusWeight() "},
53667 	 { (char *)"delete_PL2PlusWeight", (PyCFunction)_wrap_delete_PL2PlusWeight, METH_O, NULL},
53668 	 { (char *)"PL2PlusWeight_swigregister", PL2PlusWeight_swigregister, METH_VARARGS, NULL},
53669 	 { (char *)"PL2PlusWeight_swiginit", PL2PlusWeight_swiginit, METH_VARARGS, NULL},
53670 	 { (char *)"new_DPHWeight", (PyCFunction)_wrap_new_DPHWeight, METH_NOARGS, (char *)"\n"
53671 		"\n"
53672 		"\n"
53673 		"Construct a DPHWeight.\n"
53674 		"\n"
53675 		"Xapian::DPHWeight::DPHWeight() \n"
53676 		""},
53677 	 { (char *)"delete_DPHWeight", (PyCFunction)_wrap_delete_DPHWeight, METH_O, NULL},
53678 	 { (char *)"DPHWeight_swigregister", DPHWeight_swigregister, METH_VARARGS, NULL},
53679 	 { (char *)"DPHWeight_swiginit", DPHWeight_swiginit, METH_VARARGS, NULL},
53680 	 { (char *)"new_LMWeight", _wrap_new_LMWeight, METH_VARARGS, (char *)"\n"
53681 		"\n"
53682 		"\n"
53683 		"Construct a LMWeight.\n"
53684 		"\n"
53685 		"Xapian::LMWeight::LMWeight(double param_log_=0.0, type_smoothing\n"
53686 		"select_smoothing_=TWO_STAGE_SMOOTHING, double param_smoothing1_=-1.0,\n"
53687 		"double param_smoothing2_=-1.0)\n"
53688 		"\n"
53689 		"Parameters:\n"
53690 		"-----------\n"
53691 		"\n"
53692 		"param_log_:  A non-negative parameter controlling how much to clamp\n"
53693 		"negative values returned by the log. The log is calculated by\n"
53694 		"multiplying the actual weight by param_log. If param_log is 0.0, then\n"
53695 		"the document length upper bound will be used (default: document length\n"
53696 		"upper bound)\n"
53697 		"\n"
53698 		"select_smoothing_:  A parameter of type enum type_smoothing. This\n"
53699 		"parameter controls which smoothing type to use. (default:\n"
53700 		"TWO_STAGE_SMOOTHING)\n"
53701 		"\n"
53702 		"param_smoothing1_:  A non-negative parameter for smoothing whose\n"
53703 		"meaning depends on select_smoothing_. In JELINEK_MERCER_SMOOTHING, it\n"
53704 		"plays the role of estimation and in DIRICHLET_SMOOTHING the role of\n"
53705 		"query modelling. (default JELINEK_MERCER, ABSOLUTE, TWOSTAGE(0.7),\n"
53706 		"DIRCHLET(2000))\n"
53707 		"\n"
53708 		"param_smoothing2_:  A non-negative parameter which is used with\n"
53709 		"TWO_STAGE_SMOOTHING as parameter for Dirichlet's smoothing (default:\n"
53710 		"2000) and as parameter delta to control the scale of the tf lower\n"
53711 		"bound in the DIRICHLET_PLUS_SMOOTHING (default 0.05). \n"
53712 		""},
53713 	 { (char *)"delete_LMWeight", (PyCFunction)_wrap_delete_LMWeight, METH_O, NULL},
53714 	 { (char *)"LMWeight_swigregister", LMWeight_swigregister, METH_VARARGS, NULL},
53715 	 { (char *)"LMWeight_swiginit", LMWeight_swiginit, METH_VARARGS, NULL},
53716 	 { (char *)"CoordWeight_init", _wrap_CoordWeight_init, METH_VARARGS, (char *)"\n"
53717 		"\n"
53718 		"\n"
53719 		"Allow the subclass to perform any initialisation it needs to.\n"
53720 		"\n"
53721 		"void Xapian::CoordWeight::init(double factor_)\n"
53722 		"\n"
53723 		"Parameters:\n"
53724 		"-----------\n"
53725 		"\n"
53726 		"factor:  Any scaling factor (e.g. from OP_SCALE_WEIGHT). If the Weight\n"
53727 		"object is for the term-independent weight supplied by\n"
53728 		"get_sumextra()/get_maxextra(), then init(0.0) is called (starting from\n"
53729 		"Xapian 1.2.11 and 1.3.1 - earlier versions failed to call init() for\n"
53730 		"such Weight objects). \n"
53731 		""},
53732 	 { (char *)"new_CoordWeight", (PyCFunction)_wrap_new_CoordWeight, METH_NOARGS, (char *)"\n"
53733 		"\n"
53734 		"\n"
53735 		"Construct a CoordWeight.\n"
53736 		"\n"
53737 		"Xapian::CoordWeight::CoordWeight() \n"
53738 		""},
53739 	 { (char *)"delete_CoordWeight", (PyCFunction)_wrap_delete_CoordWeight, METH_O, NULL},
53740 	 { (char *)"CoordWeight_swigregister", CoordWeight_swigregister, METH_VARARGS, NULL},
53741 	 { (char *)"CoordWeight_swiginit", CoordWeight_swiginit, METH_VARARGS, NULL},
53742 	 { (char *)"new_Compactor", (PyCFunction)_wrap_new_Compactor, METH_O, (char *)"Xapian::Compactor::Compactor() "},
53743 	 { (char *)"delete_Compactor", (PyCFunction)_wrap_delete_Compactor, METH_O, (char *)"\n"
53744 		"virtual\n"
53745 		"Xapian::Compactor::~Compactor() \n"
53746 		""},
53747 	 { (char *)"Compactor_set_block_size", _wrap_Compactor_set_block_size, METH_VARARGS, (char *)"\n"
53748 		"\n"
53749 		"\n"
53750 		"Set the block size to use for tables in the output database.\n"
53751 		"\n"
53752 		"void Xapian::Compactor::set_block_size(size_t block_size)\n"
53753 		"\n"
53754 		"Parameters:\n"
53755 		"-----------\n"
53756 		"\n"
53757 		"block_size:  The block size to use. Valid block sizes are currently\n"
53758 		"powers of two between 2048 and 65536, with the default being 8192, but\n"
53759 		"the valid sizes and default may change in the future. \n"
53760 		""},
53761 	 { (char *)"Compactor_set_renumber", _wrap_Compactor_set_renumber, METH_VARARGS, (char *)"\n"
53762 		"\n"
53763 		"\n"
53764 		"Set whether to preserve existing document id values.\n"
53765 		"\n"
53766 		"void Xapian::Compactor::set_renumber(bool renumber)\n"
53767 		"\n"
53768 		"Parameters:\n"
53769 		"-----------\n"
53770 		"\n"
53771 		"renumber:  The default is true, which means that document ids will be\n"
53772 		"renumbered - currently by applying the same offset to all the document\n"
53773 		"ids in a particular source database.\n"
53774 		"\n"
53775 		"If false, then the document ids must be unique over all source\n"
53776 		"databases. Currently the ranges of document ids in each source must\n"
53777 		"not overlap either, though this restriction may be removed in the\n"
53778 		"future. \n"
53779 		""},
53780 	 { (char *)"Compactor_set_multipass", _wrap_Compactor_set_multipass, METH_VARARGS, (char *)"\n"
53781 		"\n"
53782 		"\n"
53783 		"Set whether to merge postlists in multiple passes.\n"
53784 		"\n"
53785 		"void Xapian::Compactor::set_multipass(bool multipass)\n"
53786 		"\n"
53787 		"Parameters:\n"
53788 		"-----------\n"
53789 		"\n"
53790 		"multipass:  If true and merging more than 3 databases, merge the\n"
53791 		"postlists in multiple passes, which is generally faster but requires\n"
53792 		"more disk space for temporary files. By default we don't do this. \n"
53793 		""},
53794 	 { (char *)"Compactor_set_compaction_level", _wrap_Compactor_set_compaction_level, METH_VARARGS, (char *)"\n"
53795 		"\n"
53796 		"\n"
53797 		"Set the compaction level.\n"
53798 		"\n"
53799 		"void Xapian::Compactor::set_compaction_level(compaction_level\n"
53800 		"compaction)\n"
53801 		"\n"
53802 		"Parameters:\n"
53803 		"-----------\n"
53804 		"\n"
53805 		"compaction:  Available values are:  Xapian::Compactor::STANDARD -\n"
53806 		"Don't split items unnecessarily.\n"
53807 		"\n"
53808 		"Xapian::Compactor::FULL - Split items whenever it saves space (the\n"
53809 		"default).\n"
53810 		"\n"
53811 		"Xapian::Compactor::FULLER - Allow oversize items to save more space\n"
53812 		"(not recommended if you ever plan to update the compacted database).\n"
53813 		"\n"
53814 		""},
53815 	 { (char *)"Compactor_set_destdir", _wrap_Compactor_set_destdir, METH_VARARGS, (char *)"\n"
53816 		"\n"
53817 		"\n"
53818 		"Set where to write the output.\n"
53819 		"\n"
53820 		"void Xapian::Compactor::set_destdir(const std::string &destdir)\n"
53821 		"\n"
53822 		"Deprecated Use Database::compact(destdir[, compactor]) instead.\n"
53823 		"\n"
53824 		"Parameters:\n"
53825 		"-----------\n"
53826 		"\n"
53827 		"destdir:  Output path. This can be the same as an input if that input\n"
53828 		"is a stub database (in which case the database(s) listed in the stub\n"
53829 		"will be compacted to a new database and then the stub will be\n"
53830 		"atomically updated to point to this new database). \n"
53831 		""},
53832 	 { (char *)"Compactor_add_source", _wrap_Compactor_add_source, METH_VARARGS, (char *)"\n"
53833 		"\n"
53834 		"\n"
53835 		"Add a source database.\n"
53836 		"\n"
53837 		"void Xapian::Compactor::add_source(const std::string &srcdir)\n"
53838 		"\n"
53839 		"Deprecated Use Database::compact(destdir[, compactor]) instead.\n"
53840 		"\n"
53841 		"Parameters:\n"
53842 		"-----------\n"
53843 		"\n"
53844 		"srcdir:  The path to the source database to add. \n"
53845 		""},
53846 	 { (char *)"Compactor_compact", (PyCFunction)_wrap_Compactor_compact, METH_O, (char *)"\n"
53847 		"\n"
53848 		"\n"
53849 		"Perform the actual compaction/merging operation.\n"
53850 		"\n"
53851 		"void Xapian::Compactor::compact()\n"
53852 		"\n"
53853 		"Deprecated Use Database::compact(destdir[, compactor]) instead. \n"
53854 		""},
53855 	 { (char *)"Compactor_set_status", _wrap_Compactor_set_status, METH_VARARGS, (char *)"\n"
53856 		"\n"
53857 		"\n"
53858 		"Update progress.\n"
53859 		"\n"
53860 		"virtual void Xapian::Compactor::set_status(const std::string &table,\n"
53861 		"const std::string &status)\n"
53862 		"\n"
53863 		"Subclass this method if you want to get progress updates during\n"
53864 		"compaction. This is called for each table first with empty status, And\n"
53865 		"then one or more times with non-empty status.\n"
53866 		"\n"
53867 		"The default implementation does nothing.\n"
53868 		"\n"
53869 		"Parameters:\n"
53870 		"-----------\n"
53871 		"\n"
53872 		"table:  The table currently being compacted.\n"
53873 		"\n"
53874 		"status:  A status message. \n"
53875 		""},
53876 	 { (char *)"Compactor_resolve_duplicate_metadata", _wrap_Compactor_resolve_duplicate_metadata, METH_VARARGS, (char *)"\n"
53877 		"\n"
53878 		"\n"
53879 		"Resolve multiple user metadata entries with the same key.\n"
53880 		"\n"
53881 		"virtual std::string\n"
53882 		"Xapian::Compactor::resolve_duplicate_metadata(const std::string &key,\n"
53883 		"size_t num_tags, const std::string tags[])\n"
53884 		"\n"
53885 		"When merging, if the same user metadata key is set in more than one\n"
53886 		"input, then this method is called to allow this to be resolving in an\n"
53887 		"appropriate way.\n"
53888 		"\n"
53889 		"The default implementation just returns tags[0].\n"
53890 		"\n"
53891 		"For multipass this will currently get called multiple times for the\n"
53892 		"same key if there are duplicates to resolve in each pass, but this may\n"
53893 		"change in the future.\n"
53894 		"\n"
53895 		"Since 1.4.6, an implementation of this method can return an empty\n"
53896 		"string to indicate that the appropriate result is to not set a value\n"
53897 		"for this user metadata key in the output database. In older versions,\n"
53898 		"you should not return an empty string.\n"
53899 		"\n"
53900 		"Parameters:\n"
53901 		"-----------\n"
53902 		"\n"
53903 		"key:  The metadata key with duplicate entries.\n"
53904 		"\n"
53905 		"num_tags:  How many tags there are.\n"
53906 		"\n"
53907 		"tags:  An array of num_tags strings containing the tags to merge. \n"
53908 		""},
53909 	 { (char *)"disown_Compactor", (PyCFunction)_wrap_disown_Compactor, METH_O, NULL},
53910 	 { (char *)"Compactor_swigregister", Compactor_swigregister, METH_VARARGS, NULL},
53911 	 { (char *)"Compactor_swiginit", Compactor_swiginit, METH_VARARGS, NULL},
53912 	 { (char *)"new_PostingSource", (PyCFunction)_wrap_new_PostingSource, METH_O, (char *)"\n"
53913 		"\n"
53914 		"\n"
53915 		"Allow subclasses to be instantiated.\n"
53916 		"\n"
53917 		"Xapian::PostingSource::PostingSource() \n"
53918 		""},
53919 	 { (char *)"delete_PostingSource", (PyCFunction)_wrap_delete_PostingSource, METH_O, (char *)"\n"
53920 		"virtual\n"
53921 		"Xapian::PostingSource::~PostingSource() \n"
53922 		""},
53923 	 { (char *)"PostingSource_get_termfreq_min", (PyCFunction)_wrap_PostingSource_get_termfreq_min, METH_O, (char *)"\n"
53924 		"\n"
53925 		"\n"
53926 		"A lower bound on the number of documents this object can return.\n"
53927 		"\n"
53928 		"virtual Xapian::doccount Xapian::PostingSource::get_termfreq_min()\n"
53929 		"const =0\n"
53930 		"\n"
53931 		"Xapian will always call init() on a PostingSource before calling this\n"
53932 		"for the first time. \n"
53933 		""},
53934 	 { (char *)"PostingSource_get_termfreq_est", (PyCFunction)_wrap_PostingSource_get_termfreq_est, METH_O, (char *)"\n"
53935 		"\n"
53936 		"\n"
53937 		"An estimate of the number of documents this object can return.\n"
53938 		"\n"
53939 		"virtual Xapian::doccount Xapian::PostingSource::get_termfreq_est()\n"
53940 		"const =0\n"
53941 		"\n"
53942 		"It must always be true that:\n"
53943 		"\n"
53944 		"get_termfreq_min() <= get_termfreq_est() <= get_termfreq_max()\n"
53945 		"\n"
53946 		"Xapian will always call init() on a PostingSource before calling this\n"
53947 		"for the first time. \n"
53948 		""},
53949 	 { (char *)"PostingSource_get_termfreq_max", (PyCFunction)_wrap_PostingSource_get_termfreq_max, METH_O, (char *)"\n"
53950 		"\n"
53951 		"\n"
53952 		"An upper bound on the number of documents this object can return.\n"
53953 		"\n"
53954 		"virtual Xapian::doccount Xapian::PostingSource::get_termfreq_max()\n"
53955 		"const =0\n"
53956 		"\n"
53957 		"Xapian will always call init() on a PostingSource before calling this\n"
53958 		"for the first time. \n"
53959 		""},
53960 	 { (char *)"PostingSource_set_maxweight", _wrap_PostingSource_set_maxweight, METH_VARARGS, (char *)"\n"
53961 		"\n"
53962 		"\n"
53963 		"Specify an upper bound on what get_weight() will return from now on.\n"
53964 		"\n"
53965 		"void Xapian::PostingSource::set_maxweight(double max_weight)\n"
53966 		"\n"
53967 		"This upper bound is used by the matcher to perform various\n"
53968 		"optimisations, so if you can return a good bound, then matches will\n"
53969 		"generally run faster.\n"
53970 		"\n"
53971 		"This method should be called after calling init(), and may be called\n"
53972 		"during iteration if the upper bound drops. It is probably only useful\n"
53973 		"to call from subclasses (it was actually a \"protected\" method prior\n"
53974 		"to Xapian 1.3.4, but that makes it tricky to wrap for other\n"
53975 		"languages).\n"
53976 		"\n"
53977 		"It is valid for the posting source to have returned a higher value\n"
53978 		"from get_weight() earlier in the iteration, but the posting source\n"
53979 		"must not return a higher value from get_weight() than the currently\n"
53980 		"set upper bound, and the upper bound must not be increased (until\n"
53981 		"init() has been called).\n"
53982 		"\n"
53983 		"If you don't call this method, the upper bound will default to 0, for\n"
53984 		"convenience when implementing \"weight-less\" PostingSource\n"
53985 		"subclasses.\n"
53986 		"\n"
53987 		"Parameters:\n"
53988 		"-----------\n"
53989 		"\n"
53990 		"max_weight:  The upper bound to set. \n"
53991 		""},
53992 	 { (char *)"PostingSource_get_maxweight", (PyCFunction)_wrap_PostingSource_get_maxweight, METH_O, (char *)"\n"
53993 		"\n"
53994 		"\n"
53995 		"Return the currently set upper bound on what get_weight() can return.\n"
53996 		"\n"
53997 		"double Xapian::PostingSource::get_maxweight() const \n"
53998 		""},
53999 	 { (char *)"PostingSource_get_weight", (PyCFunction)_wrap_PostingSource_get_weight, METH_O, (char *)"\n"
54000 		"\n"
54001 		"\n"
54002 		"Return the weight contribution for the current document.\n"
54003 		"\n"
54004 		"virtual double Xapian::PostingSource::get_weight() const\n"
54005 		"\n"
54006 		"This default implementation always returns 0, for convenience when\n"
54007 		"implementing \"weight-less\" PostingSource subclasses.\n"
54008 		"\n"
54009 		"This method may assume that it will only be called when there is a\n"
54010 		"\"current document\". In detail: Xapian will always call init() on a\n"
54011 		"PostingSource before calling this for the first time. It will also\n"
54012 		"only call this if the PostingSource reports that it is pointing to a\n"
54013 		"valid document (ie, it will not call it before calling at least one of\n"
54014 		"next(), skip_to() or check(), and will ensure that the PostingSource\n"
54015 		"is not at the end by calling at_end()). \n"
54016 		""},
54017 	 { (char *)"PostingSource_get_docid", (PyCFunction)_wrap_PostingSource_get_docid, METH_O, (char *)"\n"
54018 		"\n"
54019 		"\n"
54020 		"Return the current docid.\n"
54021 		"\n"
54022 		"virtual Xapian::docid Xapian::PostingSource::get_docid() const =0\n"
54023 		"\n"
54024 		"This method may assume that it will only be called when there is a\n"
54025 		"\"current document\". See  get_weight() for details.\n"
54026 		"\n"
54027 		"Note: in the case of a multi-database search, the returned docid\n"
54028 		"should be in the single subdatabase relevant to this posting source.\n"
54029 		"See the  init() method for details. \n"
54030 		""},
54031 	 { (char *)"PostingSource___next__", _wrap_PostingSource___next__, METH_VARARGS, (char *)"\n"
54032 		"\n"
54033 		"\n"
54034 		"Advance the current position to the next matching document.\n"
54035 		"\n"
54036 		"virtual void Xapian::PostingSource::next(double min_wt)=0\n"
54037 		"\n"
54038 		"The PostingSource starts before the first entry in the list, so\n"
54039 		"next(), skip_to() or check() must be called before any methods which\n"
54040 		"need the context of the current position.\n"
54041 		"\n"
54042 		"Xapian will always call init() on a PostingSource before calling this\n"
54043 		"for the first time.\n"
54044 		"\n"
54045 		"Parameters:\n"
54046 		"-----------\n"
54047 		"\n"
54048 		"min_wt:  The minimum weight contribution that is needed (this is just\n"
54049 		"a hint which subclasses may ignore). \n"
54050 		""},
54051 	 { (char *)"PostingSource_skip_to", _wrap_PostingSource_skip_to, METH_VARARGS, (char *)"\n"
54052 		"\n"
54053 		"\n"
54054 		"Advance to the specified docid.\n"
54055 		"\n"
54056 		"virtual void Xapian::PostingSource::skip_to(Xapian::docid did, double\n"
54057 		"min_wt)\n"
54058 		"\n"
54059 		"If the specified docid isn't in the list, position ourselves on the\n"
54060 		"first document after it (or at_end() if no greater docids are\n"
54061 		"present).\n"
54062 		"\n"
54063 		"If the current position is already the specified docid, this method\n"
54064 		"will leave the position unmodified.\n"
54065 		"\n"
54066 		"If the specified docid is earlier than the current position, the\n"
54067 		"behaviour is unspecified. A sensible behaviour would be to leave the\n"
54068 		"current position unmodified, but it is also reasonable to move to the\n"
54069 		"specified docid.\n"
54070 		"\n"
54071 		"The default implementation calls next() repeatedly, which works but\n"
54072 		"skip_to() can often be implemented much more efficiently.\n"
54073 		"\n"
54074 		"Xapian will always call init() on a PostingSource before calling this\n"
54075 		"for the first time.\n"
54076 		"\n"
54077 		"Note: in the case of a multi-database search, the docid specified is\n"
54078 		"the docid in the single subdatabase relevant to this posting source.\n"
54079 		"See the  init() method for details.\n"
54080 		"\n"
54081 		"Parameters:\n"
54082 		"-----------\n"
54083 		"\n"
54084 		"did:  The document id to advance to.\n"
54085 		"\n"
54086 		"min_wt:  The minimum weight contribution that is needed (this is just\n"
54087 		"a hint which subclasses may ignore). \n"
54088 		""},
54089 	 { (char *)"PostingSource_check", _wrap_PostingSource_check, METH_VARARGS, (char *)"\n"
54090 		"\n"
54091 		"\n"
54092 		"Check if the specified docid occurs.\n"
54093 		"\n"
54094 		"virtual bool Xapian::PostingSource::check(Xapian::docid did, double\n"
54095 		"min_wt)\n"
54096 		"\n"
54097 		"The caller is required to ensure that the specified document id did\n"
54098 		"actually exists in the database. If it does, it must move to that\n"
54099 		"document id, and return true. If it does not, it may either:\n"
54100 		"\n"
54101 		"return true, having moved to a definite position (including\n"
54102 		"\"at_end\"), which must be the same position as skip_to() would have\n"
54103 		"moved to.\n"
54104 		"\n"
54105 		"or\n"
54106 		"\n"
54107 		"return false, having moved to an \"indeterminate\" position, such that\n"
54108 		"a subsequent call to next() or skip_to() will move to the next\n"
54109 		"matching position after did.\n"
54110 		"\n"
54111 		"Generally, this method should act like skip_to() and return true if\n"
54112 		"that can be done at little extra cost.\n"
54113 		"\n"
54114 		"Otherwise it should simply check if a particular docid is present,\n"
54115 		"returning true if it is, and false if it isn't.\n"
54116 		"\n"
54117 		"The default implementation calls skip_to() and always returns true.\n"
54118 		"\n"
54119 		"Xapian will always call init() on a PostingSource before calling this\n"
54120 		"for the first time.\n"
54121 		"\n"
54122 		"Note: in the case of a multi-database search, the docid specified is\n"
54123 		"the docid in the single subdatabase relevant to this posting source.\n"
54124 		"See the  init() method for details.\n"
54125 		"\n"
54126 		"Parameters:\n"
54127 		"-----------\n"
54128 		"\n"
54129 		"did:  The document id to check.\n"
54130 		"\n"
54131 		"min_wt:  The minimum weight contribution that is needed (this is just\n"
54132 		"a hint which subclasses may ignore). \n"
54133 		""},
54134 	 { (char *)"PostingSource_at_end", (PyCFunction)_wrap_PostingSource_at_end, METH_O, (char *)"\n"
54135 		"\n"
54136 		"\n"
54137 		"Return true if the current position is past the last entry in this\n"
54138 		"list.\n"
54139 		"\n"
54140 		"virtual bool Xapian::PostingSource::at_end() const =0\n"
54141 		"\n"
54142 		"At least one of  next(),  skip_to() or  check() will be called before\n"
54143 		"this method is first called. \n"
54144 		""},
54145 	 { (char *)"PostingSource_name", (PyCFunction)_wrap_PostingSource_name, METH_O, (char *)"\n"
54146 		"\n"
54147 		"\n"
54148 		"Name of the posting source class.\n"
54149 		"\n"
54150 		"virtual std::string Xapian::PostingSource::name() const\n"
54151 		"\n"
54152 		"This is used when serialising and unserialising posting sources; for\n"
54153 		"example, for performing remote searches.\n"
54154 		"\n"
54155 		"If the subclass is in a C++ namespace, the namespace should be\n"
54156 		"included in the name, using \"::\" as a separator. For example, for a\n"
54157 		"PostingSource subclass called \"FooPostingSource\" in the \"Xapian\"\n"
54158 		"namespace the result of this call should be\n"
54159 		"\"Xapian::FooPostingSource\".\n"
54160 		"\n"
54161 		"This should only be implemented if serialise() and unserialise() are\n"
54162 		"also implemented. The default implementation returns an empty string.\n"
54163 		"\n"
54164 		"If this returns an empty string, Xapian will assume that serialise()\n"
54165 		"and unserialise() are not implemented. \n"
54166 		""},
54167 	 { (char *)"PostingSource_init", _wrap_PostingSource_init, METH_VARARGS, (char *)"\n"
54168 		"\n"
54169 		"\n"
54170 		"Set this PostingSource to the start of the list of postings.\n"
54171 		"\n"
54172 		"virtual void Xapian::PostingSource::init(const Database &db)=0\n"
54173 		"\n"
54174 		"This is called automatically by the matcher prior to each query being\n"
54175 		"processed.\n"
54176 		"\n"
54177 		"If a PostingSource is used for multiple searches,  init() will\n"
54178 		"therefore be called multiple times, and must handle this by using the\n"
54179 		"database passed in the most recent call.\n"
54180 		"\n"
54181 		"Parameters:\n"
54182 		"-----------\n"
54183 		"\n"
54184 		"db:  The database which the PostingSource should iterate through.\n"
54185 		"\n"
54186 		"Note: in the case of a multi-database search, a separate PostingSource\n"
54187 		"will be used for each database (the separate PostingSources will be\n"
54188 		"obtained using  clone()), and each PostingSource will be passed one of\n"
54189 		"the sub-databases as the db parameter here. The db parameter will\n"
54190 		"therefore always refer to a single database. All docids passed to, or\n"
54191 		"returned from, the PostingSource refer to docids in that single\n"
54192 		"database, rather than in the multi- database. \n"
54193 		""},
54194 	 { (char *)"PostingSource___str__", (PyCFunction)_wrap_PostingSource___str__, METH_O, (char *)"\n"
54195 		"\n"
54196 		"\n"
54197 		"Return a string describing this object.\n"
54198 		"\n"
54199 		"virtual std::string Xapian::PostingSource::get_description() const\n"
54200 		"\n"
54201 		"This default implementation returns a generic answer. This default it\n"
54202 		"provided to avoid forcing those deriving their own PostingSource\n"
54203 		"subclass from having to implement this (they may not care what\n"
54204 		"get_description() gives for their subclass). \n"
54205 		""},
54206 	 { (char *)"PostingSource_release", (PyCFunction)_wrap_PostingSource_release, METH_O, (char *)"\n"
54207 		"\n"
54208 		"\n"
54209 		"Start reference counting this object.\n"
54210 		"\n"
54211 		"const PostingSource* Xapian::PostingSource::release() const\n"
54212 		"\n"
54213 		"You can hand ownership of a dynamically allocated PostingSource object\n"
54214 		"to Xapian by calling release() and then passing the object to a Xapian\n"
54215 		"method. Xapian will arrange to delete the object once it is no longer\n"
54216 		"required. \n"
54217 		""},
54218 	 { (char *)"disown_PostingSource", (PyCFunction)_wrap_disown_PostingSource, METH_O, NULL},
54219 	 { (char *)"PostingSource_swigregister", PostingSource_swigregister, METH_VARARGS, NULL},
54220 	 { (char *)"PostingSource_swiginit", PostingSource_swiginit, METH_VARARGS, NULL},
54221 	 { (char *)"new_ValuePostingSource", _wrap_new_ValuePostingSource, METH_VARARGS, (char *)"\n"
54222 		"\n"
54223 		"\n"
54224 		"Construct a ValuePostingSource.\n"
54225 		"\n"
54226 		"Xapian::ValuePostingSource::ValuePostingSource(Xapian::valueno slot_)\n"
54227 		"\n"
54228 		"Parameters:\n"
54229 		"-----------\n"
54230 		"\n"
54231 		"slot_:  The value slot to read values from. \n"
54232 		""},
54233 	 { (char *)"ValuePostingSource_get_termfreq_min", (PyCFunction)_wrap_ValuePostingSource_get_termfreq_min, METH_O, (char *)"\n"
54234 		"\n"
54235 		"\n"
54236 		"A lower bound on the number of documents this object can return.\n"
54237 		"\n"
54238 		"Xapian::doccount Xapian::ValuePostingSource::get_termfreq_min() const\n"
54239 		"\n"
54240 		"Xapian will always call init() on a PostingSource before calling this\n"
54241 		"for the first time. \n"
54242 		""},
54243 	 { (char *)"ValuePostingSource_get_termfreq_est", (PyCFunction)_wrap_ValuePostingSource_get_termfreq_est, METH_O, (char *)"\n"
54244 		"\n"
54245 		"\n"
54246 		"An estimate of the number of documents this object can return.\n"
54247 		"\n"
54248 		"Xapian::doccount Xapian::ValuePostingSource::get_termfreq_est() const\n"
54249 		"\n"
54250 		"It must always be true that:\n"
54251 		"\n"
54252 		"get_termfreq_min() <= get_termfreq_est() <= get_termfreq_max()\n"
54253 		"\n"
54254 		"Xapian will always call init() on a PostingSource before calling this\n"
54255 		"for the first time. \n"
54256 		""},
54257 	 { (char *)"ValuePostingSource_get_termfreq_max", (PyCFunction)_wrap_ValuePostingSource_get_termfreq_max, METH_O, (char *)"\n"
54258 		"\n"
54259 		"\n"
54260 		"An upper bound on the number of documents this object can return.\n"
54261 		"\n"
54262 		"Xapian::doccount Xapian::ValuePostingSource::get_termfreq_max() const\n"
54263 		"\n"
54264 		"Xapian will always call init() on a PostingSource before calling this\n"
54265 		"for the first time. \n"
54266 		""},
54267 	 { (char *)"ValuePostingSource___next__", _wrap_ValuePostingSource___next__, METH_VARARGS, (char *)"\n"
54268 		"\n"
54269 		"\n"
54270 		"Advance the current position to the next matching document.\n"
54271 		"\n"
54272 		"void Xapian::ValuePostingSource::next(double min_wt)\n"
54273 		"\n"
54274 		"The PostingSource starts before the first entry in the list, so\n"
54275 		"next(), skip_to() or check() must be called before any methods which\n"
54276 		"need the context of the current position.\n"
54277 		"\n"
54278 		"Xapian will always call init() on a PostingSource before calling this\n"
54279 		"for the first time.\n"
54280 		"\n"
54281 		"Parameters:\n"
54282 		"-----------\n"
54283 		"\n"
54284 		"min_wt:  The minimum weight contribution that is needed (this is just\n"
54285 		"a hint which subclasses may ignore). \n"
54286 		""},
54287 	 { (char *)"ValuePostingSource_skip_to", _wrap_ValuePostingSource_skip_to, METH_VARARGS, (char *)"\n"
54288 		"\n"
54289 		"\n"
54290 		"Advance to the specified docid.\n"
54291 		"\n"
54292 		"void Xapian::ValuePostingSource::skip_to(Xapian::docid min_docid,\n"
54293 		"double min_wt)\n"
54294 		"\n"
54295 		"If the specified docid isn't in the list, position ourselves on the\n"
54296 		"first document after it (or at_end() if no greater docids are\n"
54297 		"present).\n"
54298 		"\n"
54299 		"If the current position is already the specified docid, this method\n"
54300 		"will leave the position unmodified.\n"
54301 		"\n"
54302 		"If the specified docid is earlier than the current position, the\n"
54303 		"behaviour is unspecified. A sensible behaviour would be to leave the\n"
54304 		"current position unmodified, but it is also reasonable to move to the\n"
54305 		"specified docid.\n"
54306 		"\n"
54307 		"The default implementation calls next() repeatedly, which works but\n"
54308 		"skip_to() can often be implemented much more efficiently.\n"
54309 		"\n"
54310 		"Xapian will always call init() on a PostingSource before calling this\n"
54311 		"for the first time.\n"
54312 		"\n"
54313 		"Note: in the case of a multi-database search, the docid specified is\n"
54314 		"the docid in the single subdatabase relevant to this posting source.\n"
54315 		"See the  init() method for details.\n"
54316 		"\n"
54317 		"Parameters:\n"
54318 		"-----------\n"
54319 		"\n"
54320 		"did:  The document id to advance to.\n"
54321 		"\n"
54322 		"min_wt:  The minimum weight contribution that is needed (this is just\n"
54323 		"a hint which subclasses may ignore). \n"
54324 		""},
54325 	 { (char *)"ValuePostingSource_check", _wrap_ValuePostingSource_check, METH_VARARGS, (char *)"\n"
54326 		"\n"
54327 		"\n"
54328 		"Check if the specified docid occurs.\n"
54329 		"\n"
54330 		"bool Xapian::ValuePostingSource::check(Xapian::docid min_docid, double\n"
54331 		"min_wt)\n"
54332 		"\n"
54333 		"The caller is required to ensure that the specified document id did\n"
54334 		"actually exists in the database. If it does, it must move to that\n"
54335 		"document id, and return true. If it does not, it may either:\n"
54336 		"\n"
54337 		"return true, having moved to a definite position (including\n"
54338 		"\"at_end\"), which must be the same position as skip_to() would have\n"
54339 		"moved to.\n"
54340 		"\n"
54341 		"or\n"
54342 		"\n"
54343 		"return false, having moved to an \"indeterminate\" position, such that\n"
54344 		"a subsequent call to next() or skip_to() will move to the next\n"
54345 		"matching position after did.\n"
54346 		"\n"
54347 		"Generally, this method should act like skip_to() and return true if\n"
54348 		"that can be done at little extra cost.\n"
54349 		"\n"
54350 		"Otherwise it should simply check if a particular docid is present,\n"
54351 		"returning true if it is, and false if it isn't.\n"
54352 		"\n"
54353 		"The default implementation calls skip_to() and always returns true.\n"
54354 		"\n"
54355 		"Xapian will always call init() on a PostingSource before calling this\n"
54356 		"for the first time.\n"
54357 		"\n"
54358 		"Note: in the case of a multi-database search, the docid specified is\n"
54359 		"the docid in the single subdatabase relevant to this posting source.\n"
54360 		"See the  init() method for details.\n"
54361 		"\n"
54362 		"Parameters:\n"
54363 		"-----------\n"
54364 		"\n"
54365 		"did:  The document id to check.\n"
54366 		"\n"
54367 		"min_wt:  The minimum weight contribution that is needed (this is just\n"
54368 		"a hint which subclasses may ignore). \n"
54369 		""},
54370 	 { (char *)"ValuePostingSource_at_end", (PyCFunction)_wrap_ValuePostingSource_at_end, METH_O, (char *)"\n"
54371 		"\n"
54372 		"\n"
54373 		"Return true if the current position is past the last entry in this\n"
54374 		"list.\n"
54375 		"\n"
54376 		"bool Xapian::ValuePostingSource::at_end() const\n"
54377 		"\n"
54378 		"At least one of  next(),  skip_to() or  check() will be called before\n"
54379 		"this method is first called. \n"
54380 		""},
54381 	 { (char *)"ValuePostingSource_get_docid", (PyCFunction)_wrap_ValuePostingSource_get_docid, METH_O, (char *)"\n"
54382 		"\n"
54383 		"\n"
54384 		"Return the current docid.\n"
54385 		"\n"
54386 		"Xapian::docid Xapian::ValuePostingSource::get_docid() const\n"
54387 		"\n"
54388 		"This method may assume that it will only be called when there is a\n"
54389 		"\"current document\". See  get_weight() for details.\n"
54390 		"\n"
54391 		"Note: in the case of a multi-database search, the returned docid\n"
54392 		"should be in the single subdatabase relevant to this posting source.\n"
54393 		"See the  init() method for details. \n"
54394 		""},
54395 	 { (char *)"ValuePostingSource_init", _wrap_ValuePostingSource_init, METH_VARARGS, (char *)"\n"
54396 		"\n"
54397 		"\n"
54398 		"Set this PostingSource to the start of the list of postings.\n"
54399 		"\n"
54400 		"void Xapian::ValuePostingSource::init(const Database &db_)\n"
54401 		"\n"
54402 		"This is called automatically by the matcher prior to each query being\n"
54403 		"processed.\n"
54404 		"\n"
54405 		"If a PostingSource is used for multiple searches,  init() will\n"
54406 		"therefore be called multiple times, and must handle this by using the\n"
54407 		"database passed in the most recent call.\n"
54408 		"\n"
54409 		"Parameters:\n"
54410 		"-----------\n"
54411 		"\n"
54412 		"db:  The database which the PostingSource should iterate through.\n"
54413 		"\n"
54414 		"Note: in the case of a multi-database search, a separate PostingSource\n"
54415 		"will be used for each database (the separate PostingSources will be\n"
54416 		"obtained using  clone()), and each PostingSource will be passed one of\n"
54417 		"the sub-databases as the db parameter here. The db parameter will\n"
54418 		"therefore always refer to a single database. All docids passed to, or\n"
54419 		"returned from, the PostingSource refer to docids in that single\n"
54420 		"database, rather than in the multi- database. \n"
54421 		""},
54422 	 { (char *)"ValuePostingSource_get_database", (PyCFunction)_wrap_ValuePostingSource_get_database, METH_O, (char *)"\n"
54423 		"\n"
54424 		"\n"
54425 		"The database we're reading values from.\n"
54426 		"\n"
54427 		"Xapian::Database Xapian::ValuePostingSource::get_database() const\n"
54428 		"\n"
54429 		"Added in 1.2.23 and 1.3.5. \n"
54430 		""},
54431 	 { (char *)"ValuePostingSource_get_slot", (PyCFunction)_wrap_ValuePostingSource_get_slot, METH_O, (char *)"\n"
54432 		"\n"
54433 		"\n"
54434 		"The slot we're reading values from.\n"
54435 		"\n"
54436 		"Xapian::valueno Xapian::ValuePostingSource::get_slot() const\n"
54437 		"\n"
54438 		"Added in 1.2.23 and 1.3.5. \n"
54439 		""},
54440 	 { (char *)"ValuePostingSource_get_value", (PyCFunction)_wrap_ValuePostingSource_get_value, METH_O, (char *)"\n"
54441 		"\n"
54442 		"\n"
54443 		"Read current value.\n"
54444 		"\n"
54445 		"std::string Xapian::ValuePostingSource::get_value() const\n"
54446 		"\n"
54447 		"Added in 1.2.23 and 1.3.5. \n"
54448 		""},
54449 	 { (char *)"ValuePostingSource_done", (PyCFunction)_wrap_ValuePostingSource_done, METH_O, (char *)"\n"
54450 		"\n"
54451 		"\n"
54452 		"End the iteration.\n"
54453 		"\n"
54454 		"void Xapian::ValuePostingSource::done()\n"
54455 		"\n"
54456 		"Calls to at_end() will return true after calling this method.\n"
54457 		"\n"
54458 		"Added in 1.2.23 and 1.3.5. \n"
54459 		""},
54460 	 { (char *)"ValuePostingSource_get_started", (PyCFunction)_wrap_ValuePostingSource_get_started, METH_O, (char *)"\n"
54461 		"\n"
54462 		"\n"
54463 		"Flag indicating if we've started (true if we have).\n"
54464 		"\n"
54465 		"bool Xapian::ValuePostingSource::get_started() const\n"
54466 		"\n"
54467 		"Added in 1.2.23 and 1.3.5. \n"
54468 		""},
54469 	 { (char *)"ValuePostingSource_set_termfreq_min", _wrap_ValuePostingSource_set_termfreq_min, METH_VARARGS, (char *)"\n"
54470 		"\n"
54471 		"\n"
54472 		"Set a lower bound on the term frequency.\n"
54473 		"\n"
54474 		"void Xapian::ValuePostingSource::set_termfreq_min(Xapian::doccount\n"
54475 		"termfreq_min_)\n"
54476 		"\n"
54477 		"Subclasses should set this if they are overriding the next(),\n"
54478 		"skip_to() or check() methods to return fewer documents.\n"
54479 		"\n"
54480 		"Added in 1.2.23 and 1.3.5. \n"
54481 		""},
54482 	 { (char *)"ValuePostingSource_set_termfreq_est", _wrap_ValuePostingSource_set_termfreq_est, METH_VARARGS, (char *)"\n"
54483 		"\n"
54484 		"\n"
54485 		"An estimate of the term frequency.\n"
54486 		"\n"
54487 		"void Xapian::ValuePostingSource::set_termfreq_est(Xapian::doccount\n"
54488 		"termfreq_est_)\n"
54489 		"\n"
54490 		"Subclasses should set this if they are overriding the next(),\n"
54491 		"skip_to() or check() methods.\n"
54492 		"\n"
54493 		"Added in 1.2.23 and 1.3.5. \n"
54494 		""},
54495 	 { (char *)"ValuePostingSource_set_termfreq_max", _wrap_ValuePostingSource_set_termfreq_max, METH_VARARGS, (char *)"\n"
54496 		"\n"
54497 		"\n"
54498 		"An upper bound on the term frequency.\n"
54499 		"\n"
54500 		"void Xapian::ValuePostingSource::set_termfreq_max(Xapian::doccount\n"
54501 		"termfreq_max_)\n"
54502 		"\n"
54503 		"Subclasses should set this if they are overriding the next(),\n"
54504 		"skip_to() or check() methods.\n"
54505 		"\n"
54506 		"Added in 1.2.23 and 1.3.5. \n"
54507 		""},
54508 	 { (char *)"delete_ValuePostingSource", (PyCFunction)_wrap_delete_ValuePostingSource, METH_O, NULL},
54509 	 { (char *)"disown_ValuePostingSource", (PyCFunction)_wrap_disown_ValuePostingSource, METH_O, NULL},
54510 	 { (char *)"ValuePostingSource_swigregister", ValuePostingSource_swigregister, METH_VARARGS, NULL},
54511 	 { (char *)"ValuePostingSource_swiginit", ValuePostingSource_swiginit, METH_VARARGS, NULL},
54512 	 { (char *)"new_ValueWeightPostingSource", _wrap_new_ValueWeightPostingSource, METH_VARARGS, (char *)"\n"
54513 		"\n"
54514 		"\n"
54515 		"Construct a ValueWeightPostingSource.\n"
54516 		"\n"
54517 		"Xapian::ValueWeightPostingSource::ValueWeightPostingSource(Xapian::valueno\n"
54518 		"slot_)\n"
54519 		"\n"
54520 		"Parameters:\n"
54521 		"-----------\n"
54522 		"\n"
54523 		"slot_:  The value slot to read values from. \n"
54524 		""},
54525 	 { (char *)"ValueWeightPostingSource_get_weight", (PyCFunction)_wrap_ValueWeightPostingSource_get_weight, METH_O, (char *)"\n"
54526 		"\n"
54527 		"\n"
54528 		"Return the weight contribution for the current document.\n"
54529 		"\n"
54530 		"double Xapian::ValueWeightPostingSource::get_weight() const\n"
54531 		"\n"
54532 		"This default implementation always returns 0, for convenience when\n"
54533 		"implementing \"weight-less\" PostingSource subclasses.\n"
54534 		"\n"
54535 		"This method may assume that it will only be called when there is a\n"
54536 		"\"current document\". In detail: Xapian will always call init() on a\n"
54537 		"PostingSource before calling this for the first time. It will also\n"
54538 		"only call this if the PostingSource reports that it is pointing to a\n"
54539 		"valid document (ie, it will not call it before calling at least one of\n"
54540 		"next(), skip_to() or check(), and will ensure that the PostingSource\n"
54541 		"is not at the end by calling at_end()). \n"
54542 		""},
54543 	 { (char *)"ValueWeightPostingSource_name", (PyCFunction)_wrap_ValueWeightPostingSource_name, METH_O, (char *)"\n"
54544 		"\n"
54545 		"\n"
54546 		"Name of the posting source class.\n"
54547 		"\n"
54548 		"std::string Xapian::ValueWeightPostingSource::name() const\n"
54549 		"\n"
54550 		"This is used when serialising and unserialising posting sources; for\n"
54551 		"example, for performing remote searches.\n"
54552 		"\n"
54553 		"If the subclass is in a C++ namespace, the namespace should be\n"
54554 		"included in the name, using \"::\" as a separator. For example, for a\n"
54555 		"PostingSource subclass called \"FooPostingSource\" in the \"Xapian\"\n"
54556 		"namespace the result of this call should be\n"
54557 		"\"Xapian::FooPostingSource\".\n"
54558 		"\n"
54559 		"This should only be implemented if serialise() and unserialise() are\n"
54560 		"also implemented. The default implementation returns an empty string.\n"
54561 		"\n"
54562 		"If this returns an empty string, Xapian will assume that serialise()\n"
54563 		"and unserialise() are not implemented. \n"
54564 		""},
54565 	 { (char *)"ValueWeightPostingSource_init", _wrap_ValueWeightPostingSource_init, METH_VARARGS, (char *)"\n"
54566 		"\n"
54567 		"\n"
54568 		"Set this PostingSource to the start of the list of postings.\n"
54569 		"\n"
54570 		"void Xapian::ValueWeightPostingSource::init(const Database &db_)\n"
54571 		"\n"
54572 		"This is called automatically by the matcher prior to each query being\n"
54573 		"processed.\n"
54574 		"\n"
54575 		"If a PostingSource is used for multiple searches,  init() will\n"
54576 		"therefore be called multiple times, and must handle this by using the\n"
54577 		"database passed in the most recent call.\n"
54578 		"\n"
54579 		"Parameters:\n"
54580 		"-----------\n"
54581 		"\n"
54582 		"db:  The database which the PostingSource should iterate through.\n"
54583 		"\n"
54584 		"Note: in the case of a multi-database search, a separate PostingSource\n"
54585 		"will be used for each database (the separate PostingSources will be\n"
54586 		"obtained using  clone()), and each PostingSource will be passed one of\n"
54587 		"the sub-databases as the db parameter here. The db parameter will\n"
54588 		"therefore always refer to a single database. All docids passed to, or\n"
54589 		"returned from, the PostingSource refer to docids in that single\n"
54590 		"database, rather than in the multi- database. \n"
54591 		""},
54592 	 { (char *)"ValueWeightPostingSource___str__", (PyCFunction)_wrap_ValueWeightPostingSource___str__, METH_O, (char *)"\n"
54593 		"\n"
54594 		"\n"
54595 		"Return a string describing this object.\n"
54596 		"\n"
54597 		"std::string Xapian::ValueWeightPostingSource::get_description() const\n"
54598 		"\n"
54599 		"This default implementation returns a generic answer. This default it\n"
54600 		"provided to avoid forcing those deriving their own PostingSource\n"
54601 		"subclass from having to implement this (they may not care what\n"
54602 		"get_description() gives for their subclass). \n"
54603 		""},
54604 	 { (char *)"delete_ValueWeightPostingSource", (PyCFunction)_wrap_delete_ValueWeightPostingSource, METH_O, NULL},
54605 	 { (char *)"disown_ValueWeightPostingSource", (PyCFunction)_wrap_disown_ValueWeightPostingSource, METH_O, NULL},
54606 	 { (char *)"ValueWeightPostingSource_swigregister", ValueWeightPostingSource_swigregister, METH_VARARGS, NULL},
54607 	 { (char *)"ValueWeightPostingSource_swiginit", ValueWeightPostingSource_swiginit, METH_VARARGS, NULL},
54608 	 { (char *)"new_DecreasingValueWeightPostingSource", _wrap_new_DecreasingValueWeightPostingSource, METH_VARARGS, (char *)"\n"
54609 		"\n"
54610 		"\n"
54611 		"Construct a DecreasingValueWeightPostingSource.\n"
54612 		"\n"
54613 		"Xapian::DecreasingValueWeightPostingSource::DecreasingValueWeightPostingSource(Xapian::valueno\n"
54614 		"slot_, Xapian::docid range_start_=0, Xapian::docid range_end_=0)\n"
54615 		"\n"
54616 		"Parameters:\n"
54617 		"-----------\n"
54618 		"\n"
54619 		"slot_:  The value slot to read values from.\n"
54620 		"\n"
54621 		"range_start_:  Start of range of docids for which weights are known to\n"
54622 		"be decreasing (default: first docid)\n"
54623 		"\n"
54624 		"range_end_:  End of range of docids for which weights are known to be\n"
54625 		"decreasing (default: last docid) \n"
54626 		""},
54627 	 { (char *)"delete_DecreasingValueWeightPostingSource", (PyCFunction)_wrap_delete_DecreasingValueWeightPostingSource, METH_O, NULL},
54628 	 { (char *)"DecreasingValueWeightPostingSource_swigregister", DecreasingValueWeightPostingSource_swigregister, METH_VARARGS, NULL},
54629 	 { (char *)"DecreasingValueWeightPostingSource_swiginit", DecreasingValueWeightPostingSource_swiginit, METH_VARARGS, NULL},
54630 	 { (char *)"new_ValueMapPostingSource", (PyCFunction)_wrap_new_ValueMapPostingSource, METH_O, (char *)"\n"
54631 		"\n"
54632 		"\n"
54633 		"Construct a ValueMapPostingSource.\n"
54634 		"\n"
54635 		"Xapian::ValueMapPostingSource::ValueMapPostingSource(Xapian::valueno\n"
54636 		"slot_)\n"
54637 		"\n"
54638 		"Parameters:\n"
54639 		"-----------\n"
54640 		"\n"
54641 		"slot_:  The value slot to read values from. \n"
54642 		""},
54643 	 { (char *)"ValueMapPostingSource_add_mapping", _wrap_ValueMapPostingSource_add_mapping, METH_VARARGS, (char *)"\n"
54644 		"\n"
54645 		"\n"
54646 		"Add a mapping.\n"
54647 		"\n"
54648 		"void Xapian::ValueMapPostingSource::add_mapping(const std::string\n"
54649 		"&key, double wt)\n"
54650 		"\n"
54651 		"Parameters:\n"
54652 		"-----------\n"
54653 		"\n"
54654 		"key:  The key looked up from the value slot.\n"
54655 		"\n"
54656 		"wt:  The weight to give this key. \n"
54657 		""},
54658 	 { (char *)"ValueMapPostingSource_clear_mappings", (PyCFunction)_wrap_ValueMapPostingSource_clear_mappings, METH_O, (char *)"\n"
54659 		"\n"
54660 		"\n"
54661 		"Clear all mappings.\n"
54662 		"\n"
54663 		"void Xapian::ValueMapPostingSource::clear_mappings() \n"
54664 		""},
54665 	 { (char *)"ValueMapPostingSource_set_default_weight", _wrap_ValueMapPostingSource_set_default_weight, METH_VARARGS, (char *)"\n"
54666 		"\n"
54667 		"\n"
54668 		"Set a default weight for document values not in the map.\n"
54669 		"\n"
54670 		"void Xapian::ValueMapPostingSource::set_default_weight(double wt)\n"
54671 		"\n"
54672 		"Parameters:\n"
54673 		"-----------\n"
54674 		"\n"
54675 		"wt:  The weight to set as the default. \n"
54676 		""},
54677 	 { (char *)"delete_ValueMapPostingSource", (PyCFunction)_wrap_delete_ValueMapPostingSource, METH_O, NULL},
54678 	 { (char *)"ValueMapPostingSource_swigregister", ValueMapPostingSource_swigregister, METH_VARARGS, NULL},
54679 	 { (char *)"ValueMapPostingSource_swiginit", ValueMapPostingSource_swiginit, METH_VARARGS, NULL},
54680 	 { (char *)"new_FixedWeightPostingSource", (PyCFunction)_wrap_new_FixedWeightPostingSource, METH_O, (char *)"\n"
54681 		"\n"
54682 		"\n"
54683 		"Construct a FixedWeightPostingSource.\n"
54684 		"\n"
54685 		"Xapian::FixedWeightPostingSource::FixedWeightPostingSource(double wt)\n"
54686 		"\n"
54687 		"Parameters:\n"
54688 		"-----------\n"
54689 		"\n"
54690 		"wt:  The fixed weight to return. \n"
54691 		""},
54692 	 { (char *)"delete_FixedWeightPostingSource", (PyCFunction)_wrap_delete_FixedWeightPostingSource, METH_O, NULL},
54693 	 { (char *)"FixedWeightPostingSource_swigregister", FixedWeightPostingSource_swigregister, METH_VARARGS, NULL},
54694 	 { (char *)"FixedWeightPostingSource_swiginit", FixedWeightPostingSource_swiginit, METH_VARARGS, NULL},
54695 	 { (char *)"new_MatchSpy", (PyCFunction)_wrap_new_MatchSpy, METH_O, (char *)"\n"
54696 		"\n"
54697 		"\n"
54698 		"Default constructor, needed by subclass constructors.\n"
54699 		"\n"
54700 		"Xapian::MatchSpy::MatchSpy() \n"
54701 		""},
54702 	 { (char *)"delete_MatchSpy", (PyCFunction)_wrap_delete_MatchSpy, METH_O, (char *)"\n"
54703 		"\n"
54704 		"\n"
54705 		"Virtual destructor, because we have virtual methods.\n"
54706 		"\n"
54707 		"virtual Xapian::MatchSpy::~MatchSpy() \n"
54708 		""},
54709 	 { (char *)"MatchSpy___call__", _wrap_MatchSpy___call__, METH_VARARGS, NULL},
54710 	 { (char *)"MatchSpy_name", (PyCFunction)_wrap_MatchSpy_name, METH_O, (char *)"\n"
54711 		"\n"
54712 		"\n"
54713 		"Return the name of this match spy.\n"
54714 		"\n"
54715 		"virtual std::string Xapian::MatchSpy::name() const\n"
54716 		"\n"
54717 		"This name is used by the remote backend. It is passed with the\n"
54718 		"serialised parameters to the remote server so that it knows which\n"
54719 		"class to create.\n"
54720 		"\n"
54721 		"Return the full namespace-qualified name of your class here - if your\n"
54722 		"class is called MyApp::FooMatchSpy, return \"MyApp::FooMatchSpy\" from\n"
54723 		"this method.\n"
54724 		"\n"
54725 		"If you don't want to support the remote backend in your match spy, you\n"
54726 		"can use the default implementation which simply throws\n"
54727 		"Xapian::UnimplementedError. \n"
54728 		""},
54729 	 { (char *)"MatchSpy_merge_results", _wrap_MatchSpy_merge_results, METH_VARARGS, (char *)"\n"
54730 		"\n"
54731 		"\n"
54732 		"Unserialise some results, and merge them into this matchspy.\n"
54733 		"\n"
54734 		"virtual void Xapian::MatchSpy::merge_results(const std::string\n"
54735 		"&serialised)\n"
54736 		"\n"
54737 		"The order in which results are merged should not be significant, since\n"
54738 		"this order is not specified (and will vary depending on the speed of\n"
54739 		"the search in each sub-database).\n"
54740 		"\n"
54741 		"If you don't want to support the remote backend in your match spy, you\n"
54742 		"can use the default implementation which simply throws\n"
54743 		"Xapian::UnimplementedError.\n"
54744 		"\n"
54745 		"Parameters:\n"
54746 		"-----------\n"
54747 		"\n"
54748 		"serialised:  A string containing the serialised results. \n"
54749 		""},
54750 	 { (char *)"MatchSpy___str__", (PyCFunction)_wrap_MatchSpy___str__, METH_O, (char *)"\n"
54751 		"\n"
54752 		"\n"
54753 		"Return a string describing this object.\n"
54754 		"\n"
54755 		"virtual std::string Xapian::MatchSpy::get_description() const\n"
54756 		"\n"
54757 		"This default implementation returns a generic answer, to avoid forcing\n"
54758 		"those deriving their own MatchSpy subclasses from having to implement\n"
54759 		"this (they may not care what get_description() gives for their\n"
54760 		"subclass). \n"
54761 		""},
54762 	 { (char *)"MatchSpy_release", (PyCFunction)_wrap_MatchSpy_release, METH_O, (char *)"\n"
54763 		"\n"
54764 		"\n"
54765 		"Start reference counting this object.\n"
54766 		"\n"
54767 		"const MatchSpy* Xapian::MatchSpy::release() const\n"
54768 		"\n"
54769 		"You can hand ownership of a dynamically allocated MatchSpy object to\n"
54770 		"Xapian by calling release() and then passing the object to a Xapian\n"
54771 		"method. Xapian will arrange to delete the object once it is no longer\n"
54772 		"required. \n"
54773 		""},
54774 	 { (char *)"disown_MatchSpy", (PyCFunction)_wrap_disown_MatchSpy, METH_O, NULL},
54775 	 { (char *)"MatchSpy_swigregister", MatchSpy_swigregister, METH_VARARGS, NULL},
54776 	 { (char *)"MatchSpy_swiginit", MatchSpy_swiginit, METH_VARARGS, NULL},
54777 	 { (char *)"new_ValueCountMatchSpy", _wrap_new_ValueCountMatchSpy, METH_VARARGS, (char *)"\n"
54778 		"\n"
54779 		"\n"
54780 		"Construct a MatchSpy which counts the values in a particular slot.\n"
54781 		"\n"
54782 		"Xapian::ValueCountMatchSpy::ValueCountMatchSpy(Xapian::valueno slot_)\n"
54783 		"\n"
54784 		""},
54785 	 { (char *)"ValueCountMatchSpy_get_total", (PyCFunction)_wrap_ValueCountMatchSpy_get_total, METH_O, (char *)"\n"
54786 		"\n"
54787 		"\n"
54788 		"Return the total number of documents tallied.\n"
54789 		"\n"
54790 		"size_t Xapian::ValueCountMatchSpy::get_total() const \n"
54791 		""},
54792 	 { (char *)"ValueCountMatchSpy_values_begin", (PyCFunction)_wrap_ValueCountMatchSpy_values_begin, METH_O, (char *)"\n"
54793 		"\n"
54794 		"\n"
54795 		"Get an iterator over the values seen in the slot.\n"
54796 		"\n"
54797 		"TermIterator Xapian::ValueCountMatchSpy::values_begin() const\n"
54798 		"\n"
54799 		"Items will be returned in ascending alphabetical order.\n"
54800 		"\n"
54801 		"During the iteration, the frequency of the current value can be\n"
54802 		"obtained with the get_termfreq() method on the iterator. \n"
54803 		""},
54804 	 { (char *)"ValueCountMatchSpy_values_end", (PyCFunction)_wrap_ValueCountMatchSpy_values_end, METH_O, (char *)"\n"
54805 		"\n"
54806 		"\n"
54807 		"End iterator corresponding to values_begin()\n"
54808 		"\n"
54809 		"TermIterator Xapian::ValueCountMatchSpy::values_end() const \n"
54810 		""},
54811 	 { (char *)"ValueCountMatchSpy_top_values_begin", _wrap_ValueCountMatchSpy_top_values_begin, METH_VARARGS, (char *)"\n"
54812 		"\n"
54813 		"\n"
54814 		"Get an iterator over the most frequent values seen in the slot.\n"
54815 		"\n"
54816 		"TermIterator Xapian::ValueCountMatchSpy::top_values_begin(size_t\n"
54817 		"maxvalues) const\n"
54818 		"\n"
54819 		"Items will be returned in descending order of frequency. Values with\n"
54820 		"the same frequency will be returned in ascending alphabetical order.\n"
54821 		"\n"
54822 		"During the iteration, the frequency of the current value can be\n"
54823 		"obtained with the get_termfreq() method on the iterator.\n"
54824 		"\n"
54825 		"Parameters:\n"
54826 		"-----------\n"
54827 		"\n"
54828 		"maxvalues:  The maximum number of values to return. \n"
54829 		""},
54830 	 { (char *)"ValueCountMatchSpy_top_values_end", _wrap_ValueCountMatchSpy_top_values_end, METH_VARARGS, (char *)"\n"
54831 		"\n"
54832 		"\n"
54833 		"End iterator corresponding to top_values_begin()\n"
54834 		"\n"
54835 		"TermIterator Xapian::ValueCountMatchSpy::top_values_end(size_t) const\n"
54836 		"\n"
54837 		""},
54838 	 { (char *)"delete_ValueCountMatchSpy", (PyCFunction)_wrap_delete_ValueCountMatchSpy, METH_O, NULL},
54839 	 { (char *)"ValueCountMatchSpy_swigregister", ValueCountMatchSpy_swigregister, METH_VARARGS, NULL},
54840 	 { (char *)"ValueCountMatchSpy_swiginit", ValueCountMatchSpy_swiginit, METH_VARARGS, NULL},
54841 	 { (char *)"miles_to_metres", (PyCFunction)_wrap_miles_to_metres, METH_O, NULL},
54842 	 { (char *)"metres_to_miles", (PyCFunction)_wrap_metres_to_miles, METH_O, NULL},
54843 	 { (char *)"LatLongCoord_latitude_set", _wrap_LatLongCoord_latitude_set, METH_VARARGS, NULL},
54844 	 { (char *)"LatLongCoord_latitude_get", (PyCFunction)_wrap_LatLongCoord_latitude_get, METH_O, NULL},
54845 	 { (char *)"LatLongCoord_longitude_set", _wrap_LatLongCoord_longitude_set, METH_VARARGS, NULL},
54846 	 { (char *)"LatLongCoord_longitude_get", (PyCFunction)_wrap_LatLongCoord_longitude_get, METH_O, NULL},
54847 	 { (char *)"new_LatLongCoord", _wrap_new_LatLongCoord, METH_VARARGS, (char *)"\n"
54848 		"\n"
54849 		"\n"
54850 		"Construct a coordinate.\n"
54851 		"\n"
54852 		"Xapian::LatLongCoord::LatLongCoord(double latitude_, double\n"
54853 		"longitude_)\n"
54854 		"\n"
54855 		"If the supplied longitude is out of the standard range, it will be\n"
54856 		"normalised to the range 0 <= longitude < 360.\n"
54857 		"\n"
54858 		"If you want to avoid the checks (for example, you know that your\n"
54859 		"values are already in range), you can use the alternate constructor to\n"
54860 		"construct an uninitialised coordinate, and then set the latitude and\n"
54861 		"longitude directly.\n"
54862 		"\n"
54863 		"Parameters:\n"
54864 		"-----------\n"
54865 		"\n"
54866 		"InvalidArgumentError:  the supplied latitude is out of range. \n"
54867 		""},
54868 	 { (char *)"LatLongCoord_unserialise", _wrap_LatLongCoord_unserialise, METH_VARARGS, (char *)"\n"
54869 		"\n"
54870 		"\n"
54871 		"Unserialise a buffer and set this object to its coordinate.\n"
54872 		"\n"
54873 		"void Xapian::LatLongCoord::unserialise(const char **ptr, const char\n"
54874 		"*end)\n"
54875 		"\n"
54876 		"The buffer may contain further data after that for the coordinate.\n"
54877 		"\n"
54878 		"Parameters:\n"
54879 		"-----------\n"
54880 		"\n"
54881 		"ptr:  A pointer to the start of the string. This will be updated to\n"
54882 		"point to the end of the data representing the coordinate.\n"
54883 		"\n"
54884 		"end:  A pointer to the end of the string.\n"
54885 		"\n"
54886 		"Parameters:\n"
54887 		"-----------\n"
54888 		"\n"
54889 		"Xapian::SerialisationError:  if the string does not start with a valid\n"
54890 		"serialised latitude- longitude pair. \n"
54891 		""},
54892 	 { (char *)"LatLongCoord_serialise", (PyCFunction)_wrap_LatLongCoord_serialise, METH_O, (char *)"\n"
54893 		"\n"
54894 		"\n"
54895 		"Return a serialised representation of the coordinate.\n"
54896 		"\n"
54897 		"std::string Xapian::LatLongCoord::serialise() const \n"
54898 		""},
54899 	 { (char *)"LatLongCoord___str__", (PyCFunction)_wrap_LatLongCoord___str__, METH_O, (char *)"\n"
54900 		"\n"
54901 		"\n"
54902 		"Return a string describing this object.\n"
54903 		"\n"
54904 		"std::string Xapian::LatLongCoord::get_description() const \n"
54905 		""},
54906 	 { (char *)"delete_LatLongCoord", (PyCFunction)_wrap_delete_LatLongCoord, METH_O, NULL},
54907 	 { (char *)"LatLongCoord_swigregister", LatLongCoord_swigregister, METH_VARARGS, NULL},
54908 	 { (char *)"LatLongCoord_swiginit", LatLongCoord_swiginit, METH_VARARGS, NULL},
54909 	 { (char *)"new_LatLongCoordsIterator", (PyCFunction)_wrap_new_LatLongCoordsIterator, METH_NOARGS, (char *)"\n"
54910 		"\n"
54911 		"\n"
54912 		"Default constructor. Produces an uninitialised iterator.\n"
54913 		"\n"
54914 		"Xapian::LatLongCoordsIterator::LatLongCoordsIterator() \n"
54915 		""},
54916 	 { (char *)"LatLongCoordsIterator___eq__", _wrap_LatLongCoordsIterator___eq__, METH_VARARGS, NULL},
54917 	 { (char *)"LatLongCoordsIterator_equals", _wrap_LatLongCoordsIterator_equals, METH_VARARGS, NULL},
54918 	 { (char *)"LatLongCoordsIterator_get_coord", (PyCFunction)_wrap_LatLongCoordsIterator_get_coord, METH_O, NULL},
54919 	 { (char *)"LatLongCoordsIterator___next__", (PyCFunction)_wrap_LatLongCoordsIterator___next__, METH_O, NULL},
54920 	 { (char *)"delete_LatLongCoordsIterator", (PyCFunction)_wrap_delete_LatLongCoordsIterator, METH_O, NULL},
54921 	 { (char *)"LatLongCoordsIterator_swigregister", LatLongCoordsIterator_swigregister, METH_VARARGS, NULL},
54922 	 { (char *)"LatLongCoordsIterator_swiginit", LatLongCoordsIterator_swiginit, METH_VARARGS, NULL},
54923 	 { (char *)"LatLongCoords_begin", (PyCFunction)_wrap_LatLongCoords_begin, METH_O, (char *)"\n"
54924 		"\n"
54925 		"\n"
54926 		"Get a begin iterator for the coordinates.\n"
54927 		"\n"
54928 		"LatLongCoordsIterator Xapian::LatLongCoords::begin() const \n"
54929 		""},
54930 	 { (char *)"LatLongCoords_end", (PyCFunction)_wrap_LatLongCoords_end, METH_O, (char *)"\n"
54931 		"\n"
54932 		"\n"
54933 		"Get an end iterator for the coordinates.\n"
54934 		"\n"
54935 		"LatLongCoordsIterator Xapian::LatLongCoords::end() const \n"
54936 		""},
54937 	 { (char *)"LatLongCoords_size", (PyCFunction)_wrap_LatLongCoords_size, METH_O, (char *)"\n"
54938 		"\n"
54939 		"\n"
54940 		"Get the number of coordinates in the container.\n"
54941 		"\n"
54942 		"size_t Xapian::LatLongCoords::size() const \n"
54943 		""},
54944 	 { (char *)"LatLongCoords_empty", (PyCFunction)_wrap_LatLongCoords_empty, METH_O, (char *)"\n"
54945 		"\n"
54946 		"\n"
54947 		"Return true if and only if there are no coordinates in the container.\n"
54948 		"\n"
54949 		"bool Xapian::LatLongCoords::empty() const \n"
54950 		""},
54951 	 { (char *)"LatLongCoords_append", _wrap_LatLongCoords_append, METH_VARARGS, (char *)"\n"
54952 		"\n"
54953 		"\n"
54954 		"Append a coordinate to the end of the sequence.\n"
54955 		"\n"
54956 		"void Xapian::LatLongCoords::append(const LatLongCoord &coord) \n"
54957 		""},
54958 	 { (char *)"new_LatLongCoords", _wrap_new_LatLongCoords, METH_VARARGS, (char *)"\n"
54959 		"\n"
54960 		"\n"
54961 		"Construct a container holding one coordinate.\n"
54962 		"\n"
54963 		"Xapian::LatLongCoords::LatLongCoords(const LatLongCoord &coord) \n"
54964 		""},
54965 	 { (char *)"LatLongCoords_unserialise", _wrap_LatLongCoords_unserialise, METH_VARARGS, (char *)"\n"
54966 		"\n"
54967 		"\n"
54968 		"Unserialise a string and set this object to the coordinates in it.\n"
54969 		"\n"
54970 		"void Xapian::LatLongCoords::unserialise(const std::string &serialised)\n"
54971 		"\n"
54972 		"Parameters:\n"
54973 		"-----------\n"
54974 		"\n"
54975 		"serialised:  the string to unserialise the coordinates from.\n"
54976 		"\n"
54977 		"Parameters:\n"
54978 		"-----------\n"
54979 		"\n"
54980 		"Xapian::SerialisationError:  if the string does not contain a valid\n"
54981 		"serialised latitude-longitude pair, or contains junk at the end of it.\n"
54982 		"\n"
54983 		""},
54984 	 { (char *)"LatLongCoords_serialise", (PyCFunction)_wrap_LatLongCoords_serialise, METH_O, (char *)"\n"
54985 		"\n"
54986 		"\n"
54987 		"Return a serialised form of the coordinate list.\n"
54988 		"\n"
54989 		"std::string Xapian::LatLongCoords::serialise() const \n"
54990 		""},
54991 	 { (char *)"LatLongCoords___str__", (PyCFunction)_wrap_LatLongCoords___str__, METH_O, (char *)"\n"
54992 		"\n"
54993 		"\n"
54994 		"Return a string describing this object.\n"
54995 		"\n"
54996 		"std::string Xapian::LatLongCoords::get_description() const \n"
54997 		""},
54998 	 { (char *)"delete_LatLongCoords", (PyCFunction)_wrap_delete_LatLongCoords, METH_O, NULL},
54999 	 { (char *)"LatLongCoords_swigregister", LatLongCoords_swigregister, METH_VARARGS, NULL},
55000 	 { (char *)"LatLongCoords_swiginit", LatLongCoords_swiginit, METH_VARARGS, NULL},
55001 	 { (char *)"__ne__", _wrap___ne__, METH_VARARGS, NULL},
55002 	 { (char *)"delete_LatLongMetric", (PyCFunction)_wrap_delete_LatLongMetric, METH_O, (char *)"\n"
55003 		"\n"
55004 		"\n"
55005 		"Destructor.\n"
55006 		"\n"
55007 		"virtual Xapian::LatLongMetric::~LatLongMetric() \n"
55008 		""},
55009 	 { (char *)"LatLongMetric_pointwise_distance", _wrap_LatLongMetric_pointwise_distance, METH_VARARGS, (char *)"\n"
55010 		"\n"
55011 		"\n"
55012 		"Return the distance between two coordinates, in metres.\n"
55013 		"\n"
55014 		"virtual double Xapian::LatLongMetric::pointwise_distance(const\n"
55015 		"LatLongCoord &a, const LatLongCoord &b) const =0 \n"
55016 		""},
55017 	 { (char *)"LatLongMetric___call__", _wrap_LatLongMetric___call__, METH_VARARGS, NULL},
55018 	 { (char *)"LatLongMetric_name", (PyCFunction)_wrap_LatLongMetric_name, METH_O, (char *)"\n"
55019 		"\n"
55020 		"\n"
55021 		"Return the full name of the metric.\n"
55022 		"\n"
55023 		"virtual std::string Xapian::LatLongMetric::name() const =0\n"
55024 		"\n"
55025 		"This is used when serialising and unserialising metrics; for example,\n"
55026 		"for performing remote searches.\n"
55027 		"\n"
55028 		"If the subclass is in a C++ namespace, the namespace should be\n"
55029 		"included in the name, using \"::\" as a separator. For example, for a\n"
55030 		"LatLongMetric subclass called \"FooLatLongMetric\" in the \"Xapian\"\n"
55031 		"namespace the result of this call should be\n"
55032 		"\"Xapian::FooLatLongMetric\". \n"
55033 		""},
55034 	 { (char *)"new_LatLongMetric", (PyCFunction)_wrap_new_LatLongMetric, METH_O, NULL},
55035 	 { (char *)"disown_LatLongMetric", (PyCFunction)_wrap_disown_LatLongMetric, METH_O, NULL},
55036 	 { (char *)"LatLongMetric_swigregister", LatLongMetric_swigregister, METH_VARARGS, NULL},
55037 	 { (char *)"LatLongMetric_swiginit", LatLongMetric_swiginit, METH_VARARGS, NULL},
55038 	 { (char *)"new_GreatCircleMetric", _wrap_new_GreatCircleMetric, METH_VARARGS, (char *)"\n"
55039 		"\n"
55040 		"\n"
55041 		"Construct a GreatCircleMetric using a specified radius.\n"
55042 		"\n"
55043 		"Xapian::GreatCircleMetric::GreatCircleMetric(double radius_)\n"
55044 		"\n"
55045 		"This is useful for data sets in which the points are not on Earth (eg,\n"
55046 		"a database of features on Mars).\n"
55047 		"\n"
55048 		"Parameters:\n"
55049 		"-----------\n"
55050 		"\n"
55051 		"radius_:  The radius of the sphere to use, in metres. \n"
55052 		""},
55053 	 { (char *)"delete_GreatCircleMetric", (PyCFunction)_wrap_delete_GreatCircleMetric, METH_O, NULL},
55054 	 { (char *)"GreatCircleMetric_swigregister", GreatCircleMetric_swigregister, METH_VARARGS, NULL},
55055 	 { (char *)"GreatCircleMetric_swiginit", GreatCircleMetric_swiginit, METH_VARARGS, NULL},
55056 	 { (char *)"new_LatLongDistancePostingSource", _wrap_new_LatLongDistancePostingSource, METH_VARARGS, (char *)"\n"
55057 		"\n"
55058 		"\n"
55059 		"Construct a new posting source which returns only documents within\n"
55060 		"range of one of the central coordinates.\n"
55061 		"\n"
55062 		"Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource(Xapian::valueno\n"
55063 		"slot_, const LatLongCoords &centre_, double max_range_=0.0, double\n"
55064 		"k1_=1000.0, double k2_=1.0)\n"
55065 		"\n"
55066 		"Parameters:\n"
55067 		"-----------\n"
55068 		"\n"
55069 		"slot_:  The value slot to read values from.\n"
55070 		"\n"
55071 		"centre_:  The centre point to use for distance calculations.\n"
55072 		"\n"
55073 		"max_range_:  The maximum distance for documents which are returned.\n"
55074 		"\n"
55075 		"k1_:  The k1 constant to use in the weighting function.\n"
55076 		"\n"
55077 		"k2_:  The k2 constant to use in the weighting function.\n"
55078 		"\n"
55079 		"Xapian::GreatCircleMetric is used as the metric. \n"
55080 		""},
55081 	 { (char *)"delete_LatLongDistancePostingSource", (PyCFunction)_wrap_delete_LatLongDistancePostingSource, METH_O, (char *)"\n"
55082 		"Xapian::LatLongDistancePostingSource::~LatLongDistancePostingSource()\n"
55083 		"\n"
55084 		""},
55085 	 { (char *)"LatLongDistancePostingSource_swigregister", LatLongDistancePostingSource_swigregister, METH_VARARGS, NULL},
55086 	 { (char *)"LatLongDistancePostingSource_swiginit", LatLongDistancePostingSource_swiginit, METH_VARARGS, NULL},
55087 	 { (char *)"new_LatLongDistanceKeyMaker", _wrap_new_LatLongDistanceKeyMaker, METH_VARARGS, (char *)"\n"
55088 		"\n"
55089 		"\n"
55090 		"Construct a LatLongDistanceKeyMaker.\n"
55091 		"\n"
55092 		"Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker(Xapian::valueno\n"
55093 		"slot_, const LatLongCoord &centre_)\n"
55094 		"\n"
55095 		"Parameters:\n"
55096 		"-----------\n"
55097 		"\n"
55098 		"slot_:  Value slot to use.\n"
55099 		"\n"
55100 		"centre_:  Point to calculate distance from.\n"
55101 		"\n"
55102 		"Xapian::GreatCircleMetric is used as the metric.\n"
55103 		"\n"
55104 		"Documents where no value is set are assumed to be a large distance\n"
55105 		"away. \n"
55106 		""},
55107 	 { (char *)"delete_LatLongDistanceKeyMaker", (PyCFunction)_wrap_delete_LatLongDistanceKeyMaker, METH_O, (char *)"Xapian::LatLongDistanceKeyMaker::~LatLongDistanceKeyMaker() "},
55108 	 { (char *)"LatLongDistanceKeyMaker_swigregister", LatLongDistanceKeyMaker_swigregister, METH_VARARGS, NULL},
55109 	 { (char *)"LatLongDistanceKeyMaker_swiginit", LatLongDistanceKeyMaker_swiginit, METH_VARARGS, NULL},
55110 	 { (char *)"Database_add_database", _wrap_Database_add_database, METH_VARARGS, (char *)"\n"
55111 		"\n"
55112 		"\n"
55113 		"Add an existing database (or group of databases) to those accessed by\n"
55114 		"this object.\n"
55115 		"\n"
55116 		"void Xapian::Database::add_database(const Database &database)\n"
55117 		"\n"
55118 		"Parameters:\n"
55119 		"-----------\n"
55120 		"\n"
55121 		"database:  the database(s) to add. \n"
55122 		""},
55123 	 { (char *)"Database_size", (PyCFunction)_wrap_Database_size, METH_O, (char *)"\n"
55124 		"\n"
55125 		"\n"
55126 		"Return number of shards in this Database object.\n"
55127 		"\n"
55128 		"size_t Xapian::Database::size() const \n"
55129 		""},
55130 	 { (char *)"new_Database", _wrap_new_Database, METH_VARARGS, (char *)"\n"
55131 		"\n"
55132 		"\n"
55133 		"Copying is allowed.\n"
55134 		"\n"
55135 		"Xapian::Database::Database(const Database &other)\n"
55136 		"\n"
55137 		"The internals are reference counted, so copying is cheap.\n"
55138 		"\n"
55139 		"Parameters:\n"
55140 		"-----------\n"
55141 		"\n"
55142 		"other:  The object to copy. \n"
55143 		""},
55144 	 { (char *)"delete_Database", (PyCFunction)_wrap_delete_Database, METH_O, (char *)"\n"
55145 		"\n"
55146 		"\n"
55147 		"Destroy this handle on the database.\n"
55148 		"\n"
55149 		"virtual Xapian::Database::~Database()\n"
55150 		"\n"
55151 		"If there are no copies of this object remaining, the database(s) will\n"
55152 		"be closed. \n"
55153 		""},
55154 	 { (char *)"Database_reopen", (PyCFunction)_wrap_Database_reopen, METH_O, (char *)"\n"
55155 		"\n"
55156 		"\n"
55157 		"Re-open the database.\n"
55158 		"\n"
55159 		"bool Xapian::Database::reopen()\n"
55160 		"\n"
55161 		"This re-opens the database(s) to the latest available version(s). It\n"
55162 		"can be used either to make sure the latest results are returned, or to\n"
55163 		"recover from a Xapian::DatabaseModifiedError.\n"
55164 		"\n"
55165 		"Calling reopen() on a database which has been closed (with  close())\n"
55166 		"will always raise a Xapian::DatabaseError.\n"
55167 		"\n"
55168 		"true if the database might have been reopened (if false is returned,\n"
55169 		"the database definitely hasn't been reopened, which applications may\n"
55170 		"find useful when caching results, etc). In Xapian < 1.3.0, this method\n"
55171 		"did not return a value. \n"
55172 		""},
55173 	 { (char *)"Database_close", (PyCFunction)_wrap_Database_close, METH_O, (char *)"\n"
55174 		"\n"
55175 		"\n"
55176 		"Close the database.\n"
55177 		"\n"
55178 		"virtual void Xapian::Database::close()\n"
55179 		"\n"
55180 		"This closes the database and closes all its file handles.\n"
55181 		"\n"
55182 		"For a WritableDatabase, if a transaction is active it will be aborted,\n"
55183 		"while if no transaction is active commit() will be implicitly called.\n"
55184 		"Also the write lock is released.\n"
55185 		"\n"
55186 		"Closing a database cannot be undone - in particular, calling reopen()\n"
55187 		"after close() will not reopen it, but will instead throw a\n"
55188 		"Xapian::DatabaseError exception.\n"
55189 		"\n"
55190 		"Calling close() again on a database which has already been closed has\n"
55191 		"no effect (and doesn't raise an exception).\n"
55192 		"\n"
55193 		"After close() has been called, calls to other methods of the database,\n"
55194 		"and to methods of other objects associated with the database, will\n"
55195 		"either:\n"
55196 		"\n"
55197 		"behave exactly as they would have done if the database had not been\n"
55198 		"closed (this can only happen if all the required data is cached)\n"
55199 		"\n"
55200 		"raise a Xapian::DatabaseError exception indicating that the database\n"
55201 		"is closed.\n"
55202 		"\n"
55203 		"The reason for this behaviour is that otherwise we'd have to check\n"
55204 		"that the database is still open on every method call on every object\n"
55205 		"associated with a Database, when in many cases they are working on\n"
55206 		"data which has already been loaded and so they are able to just behave\n"
55207 		"correctly.\n"
55208 		"\n"
55209 		"This method was added in Xapian 1.1.0. \n"
55210 		""},
55211 	 { (char *)"Database___str__", (PyCFunction)_wrap_Database___str__, METH_O, (char *)"\n"
55212 		"\n"
55213 		"\n"
55214 		"Return a string describing this object.\n"
55215 		"\n"
55216 		"virtual std::string Xapian::Database::get_description() const \n"
55217 		""},
55218 	 { (char *)"Database__postlist_begin", _wrap_Database__postlist_begin, METH_VARARGS, (char *)"\n"
55219 		"\n"
55220 		"\n"
55221 		"An iterator pointing to the start of the postlist for a given term.\n"
55222 		"\n"
55223 		"PostingIterator Xapian::Database::postlist_begin(const std::string\n"
55224 		"&tname) const\n"
55225 		"\n"
55226 		"Parameters:\n"
55227 		"-----------\n"
55228 		"\n"
55229 		"tname:  The termname to iterate postings for. If the term name is the\n"
55230 		"empty string, the iterator returned will list all the documents in the\n"
55231 		"database. Such an iterator will always return a WDF value of 1, since\n"
55232 		"there is no obvious meaning for this quantity in this case. \n"
55233 		""},
55234 	 { (char *)"Database__postlist_end", _wrap_Database__postlist_end, METH_VARARGS, (char *)"\n"
55235 		"\n"
55236 		"\n"
55237 		"Corresponding end iterator to postlist_begin().\n"
55238 		"\n"
55239 		"PostingIterator Xapian::Database::postlist_end(const std::string &)\n"
55240 		"const \n"
55241 		""},
55242 	 { (char *)"Database__termlist_begin", _wrap_Database__termlist_begin, METH_VARARGS, (char *)"\n"
55243 		"\n"
55244 		"\n"
55245 		"An iterator pointing to the start of the termlist for a given\n"
55246 		"document.\n"
55247 		"\n"
55248 		"TermIterator Xapian::Database::termlist_begin(Xapian::docid did) const\n"
55249 		"\n"
55250 		"Parameters:\n"
55251 		"-----------\n"
55252 		"\n"
55253 		"did:  The document id of the document to iterate terms for. \n"
55254 		""},
55255 	 { (char *)"Database__termlist_end", _wrap_Database__termlist_end, METH_VARARGS, (char *)"\n"
55256 		"\n"
55257 		"\n"
55258 		"Corresponding end iterator to termlist_begin().\n"
55259 		"\n"
55260 		"TermIterator Xapian::Database::termlist_end(Xapian::docid) const \n"
55261 		""},
55262 	 { (char *)"Database_has_positions", (PyCFunction)_wrap_Database_has_positions, METH_O, (char *)"\n"
55263 		"\n"
55264 		"\n"
55265 		"Does this database have any positional information?\n"
55266 		"\n"
55267 		"bool Xapian::Database::has_positions() const \n"
55268 		""},
55269 	 { (char *)"Database__positionlist_begin", _wrap_Database__positionlist_begin, METH_VARARGS, (char *)"\n"
55270 		"\n"
55271 		"\n"
55272 		"An iterator pointing to the start of the position list for a given\n"
55273 		"term in a given document.\n"
55274 		"\n"
55275 		"PositionIterator Xapian::Database::positionlist_begin(Xapian::docid\n"
55276 		"did, const std::string &tname) const \n"
55277 		""},
55278 	 { (char *)"Database__positionlist_end", _wrap_Database__positionlist_end, METH_VARARGS, (char *)"\n"
55279 		"\n"
55280 		"\n"
55281 		"Corresponding end iterator to positionlist_begin().\n"
55282 		"\n"
55283 		"PositionIterator Xapian::Database::positionlist_end(Xapian::docid,\n"
55284 		"const std::string &) const \n"
55285 		""},
55286 	 { (char *)"Database__allterms_begin", _wrap_Database__allterms_begin, METH_VARARGS, (char *)"\n"
55287 		"\n"
55288 		"\n"
55289 		"An iterator which runs across all terms with a given prefix.\n"
55290 		"\n"
55291 		"TermIterator Xapian::Database::allterms_begin(const std::string\n"
55292 		"&prefix=std::string()) const\n"
55293 		"\n"
55294 		"Parameters:\n"
55295 		"-----------\n"
55296 		"\n"
55297 		"prefix:  The prefix to restrict the returned terms to (default:\n"
55298 		"iterate all terms) \n"
55299 		""},
55300 	 { (char *)"Database__allterms_end", _wrap_Database__allterms_end, METH_VARARGS, (char *)"\n"
55301 		"\n"
55302 		"\n"
55303 		"Corresponding end iterator to allterms_begin(prefix).\n"
55304 		"\n"
55305 		"TermIterator Xapian::Database::allterms_end(const std::string\n"
55306 		"&=std::string()) const \n"
55307 		""},
55308 	 { (char *)"Database_get_doccount", (PyCFunction)_wrap_Database_get_doccount, METH_O, (char *)"\n"
55309 		"\n"
55310 		"\n"
55311 		"Get the number of documents in the database.\n"
55312 		"\n"
55313 		"Xapian::doccount Xapian::Database::get_doccount() const \n"
55314 		""},
55315 	 { (char *)"Database_get_lastdocid", (PyCFunction)_wrap_Database_get_lastdocid, METH_O, (char *)"\n"
55316 		"\n"
55317 		"\n"
55318 		"Get the highest document id which has been used in the database.\n"
55319 		"\n"
55320 		"Xapian::docid Xapian::Database::get_lastdocid() const \n"
55321 		""},
55322 	 { (char *)"Database_get_avlength", (PyCFunction)_wrap_Database_get_avlength, METH_O, (char *)"\n"
55323 		"\n"
55324 		"\n"
55325 		"Get the average length of the documents in the database.\n"
55326 		"\n"
55327 		"Xapian::doclength Xapian::Database::get_avlength() const \n"
55328 		""},
55329 	 { (char *)"Database_get_average_length", (PyCFunction)_wrap_Database_get_average_length, METH_O, (char *)"\n"
55330 		"\n"
55331 		"\n"
55332 		"New name for get_avlength().\n"
55333 		"\n"
55334 		"double Xapian::Database::get_average_length() const\n"
55335 		"\n"
55336 		"Added for forward compatibility with the next release series.\n"
55337 		"\n"
55338 		"1.4.17. \n"
55339 		""},
55340 	 { (char *)"Database_get_total_length", (PyCFunction)_wrap_Database_get_total_length, METH_O, (char *)"\n"
55341 		"\n"
55342 		"\n"
55343 		"Get the total length of all the documents in the database.\n"
55344 		"\n"
55345 		"Xapian::totallength Xapian::Database::get_total_length() const\n"
55346 		"\n"
55347 		"Added in Xapian 1.4.5. \n"
55348 		""},
55349 	 { (char *)"Database_get_termfreq", _wrap_Database_get_termfreq, METH_VARARGS, (char *)"\n"
55350 		"\n"
55351 		"\n"
55352 		"Get the number of documents in the database indexed by a given term.\n"
55353 		"\n"
55354 		"Xapian::doccount Xapian::Database::get_termfreq(const std::string\n"
55355 		"&tname) const \n"
55356 		""},
55357 	 { (char *)"Database_term_exists", _wrap_Database_term_exists, METH_VARARGS, (char *)"\n"
55358 		"\n"
55359 		"\n"
55360 		"Check if a given term exists in the database.\n"
55361 		"\n"
55362 		"bool Xapian::Database::term_exists(const std::string &tname) const\n"
55363 		"\n"
55364 		"Parameters:\n"
55365 		"-----------\n"
55366 		"\n"
55367 		"tname:  The term to test the existence of.\n"
55368 		"\n"
55369 		"true if and only if the term exists in the database. This is the same\n"
55370 		"as (get_termfreq(tname) != 0), but will often be more efficient. \n"
55371 		""},
55372 	 { (char *)"Database_get_collection_freq", _wrap_Database_get_collection_freq, METH_VARARGS, (char *)"\n"
55373 		"\n"
55374 		"\n"
55375 		"Return the total number of occurrences of the given term.\n"
55376 		"\n"
55377 		"Xapian::termcount Xapian::Database::get_collection_freq(const\n"
55378 		"std::string &tname) const\n"
55379 		"\n"
55380 		"This is the sum of the number of occurrences of the term in each\n"
55381 		"document it indexes: i.e., the sum of the within document frequencies\n"
55382 		"of the term.\n"
55383 		"\n"
55384 		"Parameters:\n"
55385 		"-----------\n"
55386 		"\n"
55387 		"tname:  The term whose collection frequency is being requested. \n"
55388 		""},
55389 	 { (char *)"Database_get_value_freq", _wrap_Database_get_value_freq, METH_VARARGS, (char *)"\n"
55390 		"\n"
55391 		"\n"
55392 		"Return the frequency of a given value slot.\n"
55393 		"\n"
55394 		"Xapian::doccount Xapian::Database::get_value_freq(Xapian::valueno\n"
55395 		"slot) const\n"
55396 		"\n"
55397 		"This is the number of documents which have a (non-empty) value stored\n"
55398 		"in the slot.\n"
55399 		"\n"
55400 		"Parameters:\n"
55401 		"-----------\n"
55402 		"\n"
55403 		"slot:  The value slot to examine. \n"
55404 		""},
55405 	 { (char *)"Database_get_value_lower_bound", _wrap_Database_get_value_lower_bound, METH_VARARGS, (char *)"\n"
55406 		"\n"
55407 		"\n"
55408 		"Get a lower bound on the values stored in the given value slot.\n"
55409 		"\n"
55410 		"std::string Xapian::Database::get_value_lower_bound(Xapian::valueno\n"
55411 		"slot) const\n"
55412 		"\n"
55413 		"If there are no values stored in the given value slot, this will\n"
55414 		"return an empty string.\n"
55415 		"\n"
55416 		"Parameters:\n"
55417 		"-----------\n"
55418 		"\n"
55419 		"slot:  The value slot to examine. \n"
55420 		""},
55421 	 { (char *)"Database_get_value_upper_bound", _wrap_Database_get_value_upper_bound, METH_VARARGS, (char *)"\n"
55422 		"\n"
55423 		"\n"
55424 		"Get an upper bound on the values stored in the given value slot.\n"
55425 		"\n"
55426 		"std::string Xapian::Database::get_value_upper_bound(Xapian::valueno\n"
55427 		"slot) const\n"
55428 		"\n"
55429 		"If there are no values stored in the given value slot, this will\n"
55430 		"return an empty string.\n"
55431 		"\n"
55432 		"Parameters:\n"
55433 		"-----------\n"
55434 		"\n"
55435 		"slot:  The value slot to examine. \n"
55436 		""},
55437 	 { (char *)"Database_get_doclength_lower_bound", (PyCFunction)_wrap_Database_get_doclength_lower_bound, METH_O, (char *)"\n"
55438 		"\n"
55439 		"\n"
55440 		"Get a lower bound on the length of a document in this DB.\n"
55441 		"\n"
55442 		"Xapian::termcount Xapian::Database::get_doclength_lower_bound() const\n"
55443 		"\n"
55444 		"This bound does not include any zero-length documents. \n"
55445 		""},
55446 	 { (char *)"Database_get_doclength_upper_bound", (PyCFunction)_wrap_Database_get_doclength_upper_bound, METH_O, (char *)"\n"
55447 		"\n"
55448 		"\n"
55449 		"Get an upper bound on the length of a document in this DB.\n"
55450 		"\n"
55451 		"Xapian::termcount Xapian::Database::get_doclength_upper_bound() const\n"
55452 		"\n"
55453 		""},
55454 	 { (char *)"Database_get_wdf_upper_bound", _wrap_Database_get_wdf_upper_bound, METH_VARARGS, (char *)"\n"
55455 		"\n"
55456 		"\n"
55457 		"Get an upper bound on the wdf of term term.\n"
55458 		"\n"
55459 		"Xapian::termcount Xapian::Database::get_wdf_upper_bound(const\n"
55460 		"std::string &term) const \n"
55461 		""},
55462 	 { (char *)"Database_valuestream_begin", _wrap_Database_valuestream_begin, METH_VARARGS, (char *)"\n"
55463 		"\n"
55464 		"\n"
55465 		"Return an iterator over the value in slot slot for each document.\n"
55466 		"\n"
55467 		"ValueIterator Xapian::Database::valuestream_begin(Xapian::valueno\n"
55468 		"slot) const \n"
55469 		""},
55470 	 { (char *)"Database_valuestream_end", _wrap_Database_valuestream_end, METH_VARARGS, (char *)"\n"
55471 		"\n"
55472 		"\n"
55473 		"Return end iterator corresponding to valuestream_begin().\n"
55474 		"\n"
55475 		"ValueIterator Xapian::Database::valuestream_end(Xapian::valueno) const\n"
55476 		"\n"
55477 		""},
55478 	 { (char *)"Database_get_doclength", _wrap_Database_get_doclength, METH_VARARGS, (char *)"\n"
55479 		"\n"
55480 		"\n"
55481 		"Get the length of a document.\n"
55482 		"\n"
55483 		"Xapian::termcount Xapian::Database::get_doclength(Xapian::docid did)\n"
55484 		"const \n"
55485 		""},
55486 	 { (char *)"Database_get_unique_terms", _wrap_Database_get_unique_terms, METH_VARARGS, (char *)"\n"
55487 		"\n"
55488 		"\n"
55489 		"Get the number of unique terms in document.\n"
55490 		"\n"
55491 		"Xapian::termcount Xapian::Database::get_unique_terms(Xapian::docid\n"
55492 		"did) const \n"
55493 		""},
55494 	 { (char *)"Database_keep_alive", (PyCFunction)_wrap_Database_keep_alive, METH_O, (char *)"\n"
55495 		"\n"
55496 		"\n"
55497 		"Send a \"keep-alive\" to remote databases to stop them timing out.\n"
55498 		"\n"
55499 		"void Xapian::Database::keep_alive()\n"
55500 		"\n"
55501 		"Has no effect on non-remote databases. \n"
55502 		""},
55503 	 { (char *)"Database_get_document", _wrap_Database_get_document, METH_VARARGS, (char *)"\n"
55504 		"\n"
55505 		"\n"
55506 		"Get a document from the database, given its document id.\n"
55507 		"\n"
55508 		"Xapian::Document Xapian::Database::get_document(Xapian::docid did,\n"
55509 		"unsigned flags) const\n"
55510 		"\n"
55511 		"This method returns a Xapian::Document object which provides the\n"
55512 		"information about a document.\n"
55513 		"\n"
55514 		"Parameters:\n"
55515 		"-----------\n"
55516 		"\n"
55517 		"did:  The document id of the document to retrieve.\n"
55518 		"\n"
55519 		"flags:  Zero or more flags bitwise-or-ed together (currently only\n"
55520 		"Xapian::DOC_ASSUME_VALID is supported).\n"
55521 		"\n"
55522 		"A Xapian::Document object containing the document data\n"
55523 		"\n"
55524 		"Parameters:\n"
55525 		"-----------\n"
55526 		"\n"
55527 		"Xapian::DocNotFoundError:  The document specified could not be found\n"
55528 		"in the database.\n"
55529 		"\n"
55530 		"Xapian::InvalidArgumentError:  did was 0, which is not a valid\n"
55531 		"document id. \n"
55532 		""},
55533 	 { (char *)"Database_get_spelling_suggestion", _wrap_Database_get_spelling_suggestion, METH_VARARGS, (char *)"\n"
55534 		"\n"
55535 		"\n"
55536 		"Suggest a spelling correction.\n"
55537 		"\n"
55538 		"std::string Xapian::Database::get_spelling_suggestion(const\n"
55539 		"std::string &word, unsigned max_edit_distance=2) const\n"
55540 		"\n"
55541 		"Parameters:\n"
55542 		"-----------\n"
55543 		"\n"
55544 		"word:  The potentially misspelled word.\n"
55545 		"\n"
55546 		"max_edit_distance:  Only consider words which are at most\n"
55547 		"max_edit_distance edits from word. An edit is a character insertion,\n"
55548 		"deletion, or the transposition of two adjacent characters (default is\n"
55549 		"2). \n"
55550 		""},
55551 	 { (char *)"Database__spellings_begin", (PyCFunction)_wrap_Database__spellings_begin, METH_O, (char *)"\n"
55552 		"\n"
55553 		"\n"
55554 		"An iterator which returns all the spelling correction targets.\n"
55555 		"\n"
55556 		"Xapian::TermIterator Xapian::Database::spellings_begin() const\n"
55557 		"\n"
55558 		"This returns all the words which are considered as targets for the\n"
55559 		"spelling correction algorithm. The frequency of each word is available\n"
55560 		"as the term frequency of each entry in the returned iterator. \n"
55561 		""},
55562 	 { (char *)"Database__spellings_end", (PyCFunction)_wrap_Database__spellings_end, METH_O, (char *)"\n"
55563 		"\n"
55564 		"\n"
55565 		"Corresponding end iterator to spellings_begin().\n"
55566 		"\n"
55567 		"Xapian::TermIterator Xapian::Database::spellings_end() const \n"
55568 		""},
55569 	 { (char *)"Database__synonyms_begin", _wrap_Database__synonyms_begin, METH_VARARGS, (char *)"\n"
55570 		"\n"
55571 		"\n"
55572 		"An iterator which returns all the synonyms for a given term.\n"
55573 		"\n"
55574 		"Xapian::TermIterator Xapian::Database::synonyms_begin(const\n"
55575 		"std::string &term) const\n"
55576 		"\n"
55577 		"Parameters:\n"
55578 		"-----------\n"
55579 		"\n"
55580 		"term:  The term to return synonyms for. \n"
55581 		""},
55582 	 { (char *)"Database__synonyms_end", _wrap_Database__synonyms_end, METH_VARARGS, (char *)"\n"
55583 		"\n"
55584 		"\n"
55585 		"Corresponding end iterator to synonyms_begin(term).\n"
55586 		"\n"
55587 		"Xapian::TermIterator Xapian::Database::synonyms_end(const std::string\n"
55588 		"&) const \n"
55589 		""},
55590 	 { (char *)"Database__synonym_keys_begin", _wrap_Database__synonym_keys_begin, METH_VARARGS, (char *)"\n"
55591 		"\n"
55592 		"\n"
55593 		"An iterator which returns all terms which have synonyms.\n"
55594 		"\n"
55595 		"Xapian::TermIterator Xapian::Database::synonym_keys_begin(const\n"
55596 		"std::string &prefix=std::string()) const\n"
55597 		"\n"
55598 		"Parameters:\n"
55599 		"-----------\n"
55600 		"\n"
55601 		"prefix:  If non-empty, only terms with this prefix are returned. \n"
55602 		""},
55603 	 { (char *)"Database__synonym_keys_end", _wrap_Database__synonym_keys_end, METH_VARARGS, (char *)"\n"
55604 		"\n"
55605 		"\n"
55606 		"Corresponding end iterator to synonym_keys_begin(prefix).\n"
55607 		"\n"
55608 		"Xapian::TermIterator Xapian::Database::synonym_keys_end(const\n"
55609 		"std::string &=std::string()) const \n"
55610 		""},
55611 	 { (char *)"Database_get_metadata", _wrap_Database_get_metadata, METH_VARARGS, (char *)"\n"
55612 		"\n"
55613 		"\n"
55614 		"Get the user-specified metadata associated with a given key.\n"
55615 		"\n"
55616 		"std::string Xapian::Database::get_metadata(const std::string &key)\n"
55617 		"const\n"
55618 		"\n"
55619 		"User-specified metadata allows you to store arbitrary information in\n"
55620 		"the form of (key, value) pairs. See  WritableDatabase::set_metadata()\n"
55621 		"for more information.\n"
55622 		"\n"
55623 		"When invoked on a Xapian::Database object representing multiple\n"
55624 		"databases, currently only the metadata for the first is considered but\n"
55625 		"this behaviour may change in the future.\n"
55626 		"\n"
55627 		"If there is no piece of metadata associated with the specified key, an\n"
55628 		"empty string is returned (this applies even for backends which don't\n"
55629 		"support metadata).\n"
55630 		"\n"
55631 		"Empty keys are not valid, and specifying one will cause an exception.\n"
55632 		"\n"
55633 		"Parameters:\n"
55634 		"-----------\n"
55635 		"\n"
55636 		"key:  The key of the metadata item to access.\n"
55637 		"\n"
55638 		"The retrieved metadata item's value.\n"
55639 		"\n"
55640 		"Parameters:\n"
55641 		"-----------\n"
55642 		"\n"
55643 		"Xapian::InvalidArgumentError:  will be thrown if the key supplied is\n"
55644 		"empty. \n"
55645 		""},
55646 	 { (char *)"Database__metadata_keys_begin", _wrap_Database__metadata_keys_begin, METH_VARARGS, (char *)"\n"
55647 		"\n"
55648 		"\n"
55649 		"An iterator which returns all user-specified metadata keys.\n"
55650 		"\n"
55651 		"Xapian::TermIterator Xapian::Database::metadata_keys_begin(const\n"
55652 		"std::string &prefix=std::string()) const\n"
55653 		"\n"
55654 		"When invoked on a Xapian::Database object representing multiple\n"
55655 		"databases, currently only the metadata for the first is considered but\n"
55656 		"this behaviour may change in the future.\n"
55657 		"\n"
55658 		"If the backend doesn't support metadata, then this method returns an\n"
55659 		"iterator which compares equal to that returned by metadata_keys_end().\n"
55660 		"\n"
55661 		"Parameters:\n"
55662 		"-----------\n"
55663 		"\n"
55664 		"prefix:  If non-empty, only keys with this prefix are returned.\n"
55665 		"\n"
55666 		"Parameters:\n"
55667 		"-----------\n"
55668 		"\n"
55669 		"Xapian::UnimplementedError:  will be thrown if the backend implements\n"
55670 		"user-specified metadata, but doesn't implement iterating its keys\n"
55671 		"(currently this happens for the InMemory backend). \n"
55672 		""},
55673 	 { (char *)"Database__metadata_keys_end", _wrap_Database__metadata_keys_end, METH_VARARGS, (char *)"\n"
55674 		"\n"
55675 		"\n"
55676 		"Corresponding end iterator to metadata_keys_begin().\n"
55677 		"\n"
55678 		"Xapian::TermIterator Xapian::Database::metadata_keys_end(const\n"
55679 		"std::string &=std::string()) const \n"
55680 		""},
55681 	 { (char *)"Database_get_uuid", (PyCFunction)_wrap_Database_get_uuid, METH_O, (char *)"\n"
55682 		"\n"
55683 		"\n"
55684 		"Get a UUID for the database.\n"
55685 		"\n"
55686 		"std::string Xapian::Database::get_uuid() const\n"
55687 		"\n"
55688 		"The UUID will persist for the lifetime of the database.\n"
55689 		"\n"
55690 		"Replicas (eg, made with the replication protocol, or by copying all\n"
55691 		"the database files) will have the same UUID. However, copies (made\n"
55692 		"with copydatabase, or xapian-compact) will have different UUIDs.\n"
55693 		"\n"
55694 		"If the backend does not support UUIDs or this database has no\n"
55695 		"subdatabases, the UUID will be empty.\n"
55696 		"\n"
55697 		"If this database has multiple sub-databases, the UUID string will\n"
55698 		"contain the UUIDs of all the sub-databases. \n"
55699 		""},
55700 	 { (char *)"Database_locked", (PyCFunction)_wrap_Database_locked, METH_O, (char *)"\n"
55701 		"\n"
55702 		"\n"
55703 		"Test if this database is currently locked for writing.\n"
55704 		"\n"
55705 		"bool Xapian::Database::locked() const\n"
55706 		"\n"
55707 		"If the underlying object is actually a WritableDatabase, always\n"
55708 		"returns true.\n"
55709 		"\n"
55710 		"Otherwise tests if there's a writer holding the lock (or if we can't\n"
55711 		"test for a lock without taking it on the current platform, throw\n"
55712 		"Xapian::UnimplementedError). If there's an error while trying to test\n"
55713 		"the lock, throws Xapian::DatabaseLockError.\n"
55714 		"\n"
55715 		"For multi-databases, this tests each sub-database and returns true if\n"
55716 		"any of them are locked. \n"
55717 		""},
55718 	 { (char *)"Database_get_revision", (PyCFunction)_wrap_Database_get_revision, METH_O, (char *)"\n"
55719 		"\n"
55720 		"\n"
55721 		"Get the revision of the database.\n"
55722 		"\n"
55723 		"Xapian::rev Xapian::Database::get_revision() const\n"
55724 		"\n"
55725 		"The revision is an unsigned integer which increases with each commit.\n"
55726 		"\n"
55727 		"The database must have exactly one sub-database, which must be of type\n"
55728 		"chert or glass. Otherwise an exception will be thrown.\n"
55729 		"\n"
55730 		"Experimental - seehttps://xapian.org/docs/deprecation#experimental-\n"
55731 		"features \n"
55732 		""},
55733 	 { (char *)"Database_check", _wrap_Database_check, METH_VARARGS, NULL},
55734 	 { (char *)"Database_compact", _wrap_Database_compact, METH_VARARGS, (char *)"\n"
55735 		"\n"
55736 		"\n"
55737 		"Produce a compact version of this database.\n"
55738 		"\n"
55739 		"void Xapian::Database::compact(int fd, unsigned flags, int block_size,\n"
55740 		"Xapian::Compactor &compactor)\n"
55741 		"\n"
55742 		"New 1.3.4. Various methods of the Compactor class were deprecated in\n"
55743 		"1.3.4.\n"
55744 		"\n"
55745 		"The compactor functor allows handling progress output and specifying\n"
55746 		"how user metadata is merged.\n"
55747 		"\n"
55748 		"This variant writes a single-file database to the specified file\n"
55749 		"descriptor. Only the glass backend supports such databases, so this\n"
55750 		"form is only supported for this backend.\n"
55751 		"\n"
55752 		"Parameters:\n"
55753 		"-----------\n"
55754 		"\n"
55755 		"fd:  File descriptor to write the compact version to. The descriptor\n"
55756 		"needs to be readable and writable (open with O_RDWR) and seekable. The\n"
55757 		"current file offset is used, allowing compacting to a single file\n"
55758 		"database embedded within another file. Xapian takes ownership of the\n"
55759 		"file descriptor and will close it before returning.\n"
55760 		"\n"
55761 		"flags:  Any of the following combined using bitwise-or (| in C++):\n"
55762 		"Xapian::DBCOMPACT_NO_RENUMBER By default the document ids will be\n"
55763 		"renumbered the output - currently by applying the same offset to all\n"
55764 		"the document ids in a particular source database. If this flag is\n"
55765 		"specified, then this renumbering doesn't happen, but all the document\n"
55766 		"ids must be unique over all source databases. Currently the ranges of\n"
55767 		"document ids in each source must not overlap either, though this\n"
55768 		"restriction may be removed in the future.\n"
55769 		"\n"
55770 		"Xapian::DBCOMPACT_MULTIPASS If merging more than 3 databases, merge\n"
55771 		"the postlists in multiple passes, which is generally faster but\n"
55772 		"requires more disk space for temporary files.\n"
55773 		"\n"
55774 		"Xapian::DBCOMPACT_SINGLE_FILE Produce a single-file database (only\n"
55775 		"supported for glass currently) - this flag is implied in this form and\n"
55776 		"need not be specified explicitly.\n"
55777 		"\n"
55778 		"block_size:  This specifies the block size (in bytes) for to use for\n"
55779 		"the output. For glass, the block size must be a power of 2 between\n"
55780 		"2048 and 65536 (inclusive), and the default (also used if an invalid\n"
55781 		"value is passed) is 8192 bytes.\n"
55782 		"\n"
55783 		"compactor:  Functor \n"
55784 		""},
55785 	 { (char *)"Database_swigregister", Database_swigregister, METH_VARARGS, NULL},
55786 	 { (char *)"Database_swiginit", Database_swiginit, METH_VARARGS, NULL},
55787 	 { (char *)"delete_WritableDatabase", (PyCFunction)_wrap_delete_WritableDatabase, METH_O, (char *)"\n"
55788 		"\n"
55789 		"\n"
55790 		"Destroy this handle on the database.\n"
55791 		"\n"
55792 		"virtual Xapian::WritableDatabase::~WritableDatabase()\n"
55793 		"\n"
55794 		"If no other handles to this database remain, the database will be\n"
55795 		"closed.\n"
55796 		"\n"
55797 		"If a transaction is active cancel_transaction() will be implicitly\n"
55798 		"called; if no transaction is active commit() will be implicitly\n"
55799 		"called, but any exception will be swallowed (because throwing\n"
55800 		"exceptions in C++ destructors is problematic). If you aren't using\n"
55801 		"transactions and want to know about any failure to commit changes,\n"
55802 		"call commit() explicitly before the destructor gets called. \n"
55803 		""},
55804 	 { (char *)"new_WritableDatabase", _wrap_new_WritableDatabase, METH_VARARGS, (char *)"\n"
55805 		"\n"
55806 		"\n"
55807 		"Copying is allowed.\n"
55808 		"\n"
55809 		"Xapian::WritableDatabase::WritableDatabase(const WritableDatabase\n"
55810 		"&other)\n"
55811 		"\n"
55812 		"The internals are reference counted, so copying is cheap.\n"
55813 		"\n"
55814 		"Parameters:\n"
55815 		"-----------\n"
55816 		"\n"
55817 		"other:  The object to copy. \n"
55818 		""},
55819 	 { (char *)"WritableDatabase_commit", (PyCFunction)_wrap_WritableDatabase_commit, METH_O, (char *)"\n"
55820 		"\n"
55821 		"\n"
55822 		"Commit any pending modifications made to the database.\n"
55823 		"\n"
55824 		"void Xapian::WritableDatabase::commit()\n"
55825 		"\n"
55826 		"For efficiency reasons, when performing multiple updates to a database\n"
55827 		"it is best (indeed, almost essential) to make as many modifications as\n"
55828 		"memory will permit in a single pass through the database. To ensure\n"
55829 		"this, Xapian batches up modifications.\n"
55830 		"\n"
55831 		"This method may be called at any time to commit any pending\n"
55832 		"modifications to the database.\n"
55833 		"\n"
55834 		"If any of the modifications fail, an exception will be thrown and the\n"
55835 		"database will be left in a state in which each separate addition,\n"
55836 		"replacement or deletion operation has either been fully performed or\n"
55837 		"not performed at all: it is then up to the application to work out\n"
55838 		"which operations need to be repeated.\n"
55839 		"\n"
55840 		"It's not valid to call commit() within a transaction.\n"
55841 		"\n"
55842 		"Beware of calling commit() too frequently: this will make indexing\n"
55843 		"take much longer.\n"
55844 		"\n"
55845 		"Note that commit() need not be called explicitly: it will be called\n"
55846 		"automatically when the database is closed, or when a sufficient number\n"
55847 		"of modifications have been made. By default, this is every 10000\n"
55848 		"documents added, deleted, or modified. This value is rather\n"
55849 		"conservative, and if you have a machine with plenty of memory, you can\n"
55850 		"improve indexing throughput dramatically by setting\n"
55851 		"XAPIAN_FLUSH_THRESHOLD in the environment to a larger value.\n"
55852 		"\n"
55853 		"This method was new in Xapian 1.1.0 - in earlier versions it was\n"
55854 		"called flush().\n"
55855 		"\n"
55856 		"Parameters:\n"
55857 		"-----------\n"
55858 		"\n"
55859 		"Xapian::DatabaseError:  will be thrown if a problem occurs while\n"
55860 		"modifying the database.\n"
55861 		"\n"
55862 		"Xapian::DatabaseCorruptError:  will be thrown if the database is in a\n"
55863 		"corrupt state. \n"
55864 		""},
55865 	 { (char *)"WritableDatabase_flush", (PyCFunction)_wrap_WritableDatabase_flush, METH_O, (char *)"\n"
55866 		"\n"
55867 		"\n"
55868 		"Pre-1.1.0 name for commit().\n"
55869 		"\n"
55870 		"void Xapian::WritableDatabase::flush()\n"
55871 		"\n"
55872 		"Use commit() instead. \n"
55873 		""},
55874 	 { (char *)"WritableDatabase_begin_transaction", _wrap_WritableDatabase_begin_transaction, METH_VARARGS, (char *)"\n"
55875 		"\n"
55876 		"\n"
55877 		"Begin a transaction.\n"
55878 		"\n"
55879 		"void Xapian::WritableDatabase::begin_transaction(bool flushed=true)\n"
55880 		"\n"
55881 		"In Xapian a transaction is a group of modifications to the database\n"
55882 		"which are linked such that either all will be applied simultaneously\n"
55883 		"or none will be applied at all. Even in the case of a power failure,\n"
55884 		"this characteristic should be preserved (as long as the filesystem\n"
55885 		"isn't corrupted, etc).\n"
55886 		"\n"
55887 		"A transaction is started with begin_transaction() and can either be\n"
55888 		"committed by calling commit_transaction() or aborted by calling\n"
55889 		"cancel_transaction().\n"
55890 		"\n"
55891 		"By default, a transaction implicitly calls commit() before and after\n"
55892 		"so that the modifications stand and fall without affecting\n"
55893 		"modifications before or after.\n"
55894 		"\n"
55895 		"The downside of these implicit calls to commit() is that small\n"
55896 		"transactions can harm indexing performance in the same way that\n"
55897 		"explicitly calling commit() frequently can.\n"
55898 		"\n"
55899 		"If you're applying atomic groups of changes and only wish to ensure\n"
55900 		"that each group is either applied or not applied, then you can prevent\n"
55901 		"the automatic commit() before and after the transaction by starting\n"
55902 		"the transaction with begin_transaction(false). However, if\n"
55903 		"cancel_transaction is called (or if commit_transaction isn't called\n"
55904 		"before the WritableDatabase object is destroyed) then any changes\n"
55905 		"which were pending before the transaction began will also be\n"
55906 		"discarded.\n"
55907 		"\n"
55908 		"Transactions aren't currently supported by the InMemory backend.\n"
55909 		"\n"
55910 		"Parameters:\n"
55911 		"-----------\n"
55912 		"\n"
55913 		"flushed:  Is this a flushed transaction? By default transactions are\n"
55914 		"\"flushed\", which means that committing a transaction will ensure\n"
55915 		"those changes are permanently written to the database. By contrast,\n"
55916 		"unflushed transactions only ensure that changes within the transaction\n"
55917 		"are either all applied or all aren't.\n"
55918 		"\n"
55919 		"Parameters:\n"
55920 		"-----------\n"
55921 		"\n"
55922 		"Xapian::UnimplementedError:  will be thrown if transactions are not\n"
55923 		"available for this database type.\n"
55924 		"\n"
55925 		"Xapian::InvalidOperationError:  will be thrown if this is called at an\n"
55926 		"invalid time, such as when a transaction is already in progress. \n"
55927 		""},
55928 	 { (char *)"WritableDatabase_commit_transaction", (PyCFunction)_wrap_WritableDatabase_commit_transaction, METH_O, (char *)"\n"
55929 		"\n"
55930 		"\n"
55931 		"Complete the transaction currently in progress.\n"
55932 		"\n"
55933 		"void Xapian::WritableDatabase::commit_transaction()\n"
55934 		"\n"
55935 		"If this method completes successfully and this is a flushed\n"
55936 		"transaction, all the database modifications made during the\n"
55937 		"transaction will have been committed to the database.\n"
55938 		"\n"
55939 		"If an error occurs, an exception will be thrown, and none of the\n"
55940 		"modifications made to the database during the transaction will have\n"
55941 		"been applied to the database.\n"
55942 		"\n"
55943 		"In all cases the transaction will no longer be in progress.\n"
55944 		"\n"
55945 		"Parameters:\n"
55946 		"-----------\n"
55947 		"\n"
55948 		"Xapian::DatabaseError:  will be thrown if a problem occurs while\n"
55949 		"modifying the database.\n"
55950 		"\n"
55951 		"Xapian::DatabaseCorruptError:  will be thrown if the database is in a\n"
55952 		"corrupt state.\n"
55953 		"\n"
55954 		"Xapian::InvalidOperationError:  will be thrown if a transaction is not\n"
55955 		"currently in progress.\n"
55956 		"\n"
55957 		"Xapian::UnimplementedError:  will be thrown if transactions are not\n"
55958 		"available for this database type. \n"
55959 		""},
55960 	 { (char *)"WritableDatabase_cancel_transaction", (PyCFunction)_wrap_WritableDatabase_cancel_transaction, METH_O, (char *)"\n"
55961 		"\n"
55962 		"\n"
55963 		"Abort the transaction currently in progress, discarding the pending\n"
55964 		"modifications made to the database.\n"
55965 		"\n"
55966 		"void Xapian::WritableDatabase::cancel_transaction()\n"
55967 		"\n"
55968 		"If an error occurs in this method, an exception will be thrown, but\n"
55969 		"the transaction will be cancelled anyway.\n"
55970 		"\n"
55971 		"Parameters:\n"
55972 		"-----------\n"
55973 		"\n"
55974 		"Xapian::DatabaseError:  will be thrown if a problem occurs while\n"
55975 		"modifying the database.\n"
55976 		"\n"
55977 		"Xapian::DatabaseCorruptError:  will be thrown if the database is in a\n"
55978 		"corrupt state.\n"
55979 		"\n"
55980 		"Xapian::InvalidOperationError:  will be thrown if a transaction is not\n"
55981 		"currently in progress.\n"
55982 		"\n"
55983 		"Xapian::UnimplementedError:  will be thrown if transactions are not\n"
55984 		"available for this database type. \n"
55985 		""},
55986 	 { (char *)"WritableDatabase_add_document", _wrap_WritableDatabase_add_document, METH_VARARGS, (char *)"\n"
55987 		"\n"
55988 		"\n"
55989 		"Add a new document to the database.\n"
55990 		"\n"
55991 		"Xapian::docid Xapian::WritableDatabase::add_document(const\n"
55992 		"Xapian::Document &document)\n"
55993 		"\n"
55994 		"This method adds the specified document to the database, returning a\n"
55995 		"newly allocated document ID. Automatically allocated document IDs come\n"
55996 		"from a per-database monotonically increasing counter, so IDs from\n"
55997 		"deleted documents won't be reused.\n"
55998 		"\n"
55999 		"If you want to specify the document ID to be used, you should call\n"
56000 		"replace_document() instead.\n"
56001 		"\n"
56002 		"Note that changes to the database won't be immediately committed to\n"
56003 		"disk; see commit() for more details.\n"
56004 		"\n"
56005 		"As with all database modification operations, the effect is atomic:\n"
56006 		"the document will either be fully added, or the document fails to be\n"
56007 		"added and an exception is thrown (possibly at a later time when\n"
56008 		"commit() is called or the database is closed).\n"
56009 		"\n"
56010 		"Parameters:\n"
56011 		"-----------\n"
56012 		"\n"
56013 		"document:  The new document to be added.\n"
56014 		"\n"
56015 		"The document ID of the newly added document.\n"
56016 		"\n"
56017 		"Parameters:\n"
56018 		"-----------\n"
56019 		"\n"
56020 		"Xapian::DatabaseError:  will be thrown if a problem occurs while\n"
56021 		"writing to the database.\n"
56022 		"\n"
56023 		"Xapian::DatabaseCorruptError:  will be thrown if the database is in a\n"
56024 		"corrupt state. \n"
56025 		""},
56026 	 { (char *)"WritableDatabase_delete_document", _wrap_WritableDatabase_delete_document, METH_VARARGS, (char *)"\n"
56027 		"\n"
56028 		"\n"
56029 		"Delete any documents indexed by a term from the database.\n"
56030 		"\n"
56031 		"void Xapian::WritableDatabase::delete_document(const std::string\n"
56032 		"&unique_term)\n"
56033 		"\n"
56034 		"This method removes any documents indexed by the specified term from\n"
56035 		"the database.\n"
56036 		"\n"
56037 		"A major use is for convenience when UIDs from another system are\n"
56038 		"mapped to terms in Xapian, although this method has other uses (for\n"
56039 		"example, you could add a \"deletion date\" term to documents at index\n"
56040 		"time and use this method to delete all documents due for deletion on a\n"
56041 		"particular date).\n"
56042 		"\n"
56043 		"Parameters:\n"
56044 		"-----------\n"
56045 		"\n"
56046 		"unique_term:  The term to remove references to.\n"
56047 		"\n"
56048 		"Parameters:\n"
56049 		"-----------\n"
56050 		"\n"
56051 		"Xapian::DatabaseError:  will be thrown if a problem occurs while\n"
56052 		"writing to the database.\n"
56053 		"\n"
56054 		"Xapian::DatabaseCorruptError:  will be thrown if the database is in a\n"
56055 		"corrupt state. \n"
56056 		""},
56057 	 { (char *)"WritableDatabase_replace_document", _wrap_WritableDatabase_replace_document, METH_VARARGS, (char *)"\n"
56058 		"\n"
56059 		"\n"
56060 		"Replace any documents matching a term.\n"
56061 		"\n"
56062 		"Xapian::docid Xapian::WritableDatabase::replace_document(const\n"
56063 		"std::string &unique_term, const Xapian::Document &document)\n"
56064 		"\n"
56065 		"This method replaces any documents indexed by the specified term with\n"
56066 		"the specified document. If any documents are indexed by the term, the\n"
56067 		"lowest document ID will be used for the document, otherwise a new\n"
56068 		"document ID will be generated as for add_document.\n"
56069 		"\n"
56070 		"One common use is to allow UIDs from another system to easily be\n"
56071 		"mapped to terms in Xapian. Note that this method doesn't automatically\n"
56072 		"add unique_term as a term, so you'll need to call\n"
56073 		"document.add_term(unique_term) first when using replace_document() in\n"
56074 		"this way.\n"
56075 		"\n"
56076 		"Note that changes to the database won't be immediately committed to\n"
56077 		"disk; see commit() for more details.\n"
56078 		"\n"
56079 		"As with all database modification operations, the effect is atomic:\n"
56080 		"the document(s) will either be fully replaced, or the document(s) fail\n"
56081 		"to be replaced and an exception is thrown (possibly at a later time\n"
56082 		"when commit() is called or the database is closed).\n"
56083 		"\n"
56084 		"Parameters:\n"
56085 		"-----------\n"
56086 		"\n"
56087 		"unique_term:  The \"unique\" term.\n"
56088 		"\n"
56089 		"document:  The new document.\n"
56090 		"\n"
56091 		"The document ID that document was given.\n"
56092 		"\n"
56093 		"Parameters:\n"
56094 		"-----------\n"
56095 		"\n"
56096 		"Xapian::DatabaseError:  will be thrown if a problem occurs while\n"
56097 		"writing to the database.\n"
56098 		"\n"
56099 		"Xapian::DatabaseCorruptError:  will be thrown if the database is in a\n"
56100 		"corrupt state. \n"
56101 		""},
56102 	 { (char *)"WritableDatabase_add_spelling", _wrap_WritableDatabase_add_spelling, METH_VARARGS, (char *)"\n"
56103 		"\n"
56104 		"\n"
56105 		"Add a word to the spelling dictionary.\n"
56106 		"\n"
56107 		"void Xapian::WritableDatabase::add_spelling(const std::string &word,\n"
56108 		"Xapian::termcount freqinc=1) const\n"
56109 		"\n"
56110 		"If the word is already present, its frequency is increased.\n"
56111 		"\n"
56112 		"Parameters:\n"
56113 		"-----------\n"
56114 		"\n"
56115 		"word:  The word to add.\n"
56116 		"\n"
56117 		"freqinc:  How much to increase its frequency by (default 1). \n"
56118 		""},
56119 	 { (char *)"WritableDatabase_remove_spelling", _wrap_WritableDatabase_remove_spelling, METH_VARARGS, (char *)"\n"
56120 		"\n"
56121 		"\n"
56122 		"Remove a word from the spelling dictionary.\n"
56123 		"\n"
56124 		"void Xapian::WritableDatabase::remove_spelling(const std::string\n"
56125 		"&word, Xapian::termcount freqdec=1) const\n"
56126 		"\n"
56127 		"The word's frequency is decreased, and if would become zero or less\n"
56128 		"then the word is removed completely.\n"
56129 		"\n"
56130 		"Parameters:\n"
56131 		"-----------\n"
56132 		"\n"
56133 		"word:  The word to remove.\n"
56134 		"\n"
56135 		"freqdec:  How much to decrease its frequency by (default 1). \n"
56136 		""},
56137 	 { (char *)"WritableDatabase_add_synonym", _wrap_WritableDatabase_add_synonym, METH_VARARGS, (char *)"\n"
56138 		"\n"
56139 		"\n"
56140 		"Add a synonym for a term.\n"
56141 		"\n"
56142 		"void Xapian::WritableDatabase::add_synonym(const std::string &term,\n"
56143 		"const std::string &synonym) const\n"
56144 		"\n"
56145 		"Parameters:\n"
56146 		"-----------\n"
56147 		"\n"
56148 		"term:  The term to add a synonym for.\n"
56149 		"\n"
56150 		"synonym:  The synonym to add. If this is already a synonym for term,\n"
56151 		"then no action is taken. \n"
56152 		""},
56153 	 { (char *)"WritableDatabase_remove_synonym", _wrap_WritableDatabase_remove_synonym, METH_VARARGS, (char *)"\n"
56154 		"\n"
56155 		"\n"
56156 		"Remove a synonym for a term.\n"
56157 		"\n"
56158 		"void Xapian::WritableDatabase::remove_synonym(const std::string &term,\n"
56159 		"const std::string &synonym) const\n"
56160 		"\n"
56161 		"Parameters:\n"
56162 		"-----------\n"
56163 		"\n"
56164 		"term:  The term to remove a synonym for.\n"
56165 		"\n"
56166 		"synonym:  The synonym to remove. If this isn't currently a synonym for\n"
56167 		"term, then no action is taken. \n"
56168 		""},
56169 	 { (char *)"WritableDatabase_clear_synonyms", _wrap_WritableDatabase_clear_synonyms, METH_VARARGS, (char *)"\n"
56170 		"\n"
56171 		"\n"
56172 		"Remove all synonyms for a term.\n"
56173 		"\n"
56174 		"void Xapian::WritableDatabase::clear_synonyms(const std::string &term)\n"
56175 		"const\n"
56176 		"\n"
56177 		"Parameters:\n"
56178 		"-----------\n"
56179 		"\n"
56180 		"term:  The term to remove all synonyms for. If the term has no\n"
56181 		"synonyms, no action is taken. \n"
56182 		""},
56183 	 { (char *)"WritableDatabase_set_metadata", _wrap_WritableDatabase_set_metadata, METH_VARARGS, (char *)"\n"
56184 		"\n"
56185 		"\n"
56186 		"Set the user-specified metadata associated with a given key.\n"
56187 		"\n"
56188 		"void Xapian::WritableDatabase::set_metadata(const std::string &key,\n"
56189 		"const std::string &metadata)\n"
56190 		"\n"
56191 		"This method sets the metadata value associated with a given key. If\n"
56192 		"there is already a metadata value stored in the database with the same\n"
56193 		"key, the old value is replaced. If you want to delete an existing item\n"
56194 		"of metadata, just set its value to the empty string.\n"
56195 		"\n"
56196 		"User-specified metadata allows you to store arbitrary information in\n"
56197 		"the form of (key, value) pairs.\n"
56198 		"\n"
56199 		"There's no hard limit on the number of metadata items, or the size of\n"
56200 		"the metadata values. Metadata keys have a limited length, which depend\n"
56201 		"on the backend. We recommend limiting them to 200 bytes. Empty keys\n"
56202 		"are not valid, and specifying one will cause an exception.\n"
56203 		"\n"
56204 		"Metadata modifications are committed to disk in the same way as\n"
56205 		"modifications to the documents in the database are: i.e.,\n"
56206 		"modifications are atomic, and won't be committed to disk immediately\n"
56207 		"(see commit() for more details). This allows metadata to be used to\n"
56208 		"link databases with versioned external resources by storing the\n"
56209 		"appropriate version number in a metadata item.\n"
56210 		"\n"
56211 		"You can also use the metadata to store arbitrary extra information\n"
56212 		"associated with terms, documents, or postings by encoding the termname\n"
56213 		"and/or document id into the metadata key.\n"
56214 		"\n"
56215 		"Parameters:\n"
56216 		"-----------\n"
56217 		"\n"
56218 		"key:  The key of the metadata item to set.\n"
56219 		"\n"
56220 		"metadata:  The value of the metadata item to set.\n"
56221 		"\n"
56222 		"Parameters:\n"
56223 		"-----------\n"
56224 		"\n"
56225 		"Xapian::DatabaseError:  will be thrown if a problem occurs while\n"
56226 		"writing to the database.\n"
56227 		"\n"
56228 		"Xapian::DatabaseCorruptError:  will be thrown if the database is in a\n"
56229 		"corrupt state.\n"
56230 		"\n"
56231 		"Xapian::InvalidArgumentError:  will be thrown if the key supplied is\n"
56232 		"empty.\n"
56233 		"\n"
56234 		"Xapian::UnimplementedError:  will be thrown if the database backend in\n"
56235 		"use doesn't support user- specified metadata. \n"
56236 		""},
56237 	 { (char *)"WritableDatabase_swigregister", WritableDatabase_swigregister, METH_VARARGS, NULL},
56238 	 { (char *)"WritableDatabase_swiginit", WritableDatabase_swiginit, METH_VARARGS, NULL},
56239 	 { (char *)"remote_open", _wrap_remote_open, METH_VARARGS, (char *)"\n"
56240 		"\n"
56241 		"\n"
56242 		"Construct a Database object for read-only access to a remote database\n"
56243 		"accessed via a program.\n"
56244 		"\n"
56245 		"Database Xapian::Remote::open(const std::string &program, const\n"
56246 		"std::string &args, useconds_t timeout=10000)\n"
56247 		"\n"
56248 		"Access to the remote database is done by running an external program\n"
56249 		"and communicating with it on stdin/stdout.\n"
56250 		"\n"
56251 		"Parameters:\n"
56252 		"-----------\n"
56253 		"\n"
56254 		"program:  the external program to run.\n"
56255 		"\n"
56256 		"args:  space-separated list of arguments to pass to program.\n"
56257 		"\n"
56258 		"timeout:  timeout in milliseconds. If this timeout is exceeded for any\n"
56259 		"individual operation on the remote database then\n"
56260 		"Xapian::NetworkTimeoutError is thrown. A timeout of 0 means don't\n"
56261 		"timeout. (Default is 10000ms, which is 10 seconds). \n"
56262 		""},
56263 	 { (char *)"remote_open_writable", _wrap_remote_open_writable, METH_VARARGS, (char *)"\n"
56264 		"\n"
56265 		"\n"
56266 		"Construct a WritableDatabase object for update access to a remote\n"
56267 		"database accessed via a program.\n"
56268 		"\n"
56269 		"WritableDatabase Xapian::Remote::open_writable(const std::string\n"
56270 		"&program, const std::string &args, useconds_t timeout=0, int flags=0)\n"
56271 		"\n"
56272 		"Access to the remote database is done by running an external program\n"
56273 		"and communicating with it on stdin/stdout.\n"
56274 		"\n"
56275 		"Parameters:\n"
56276 		"-----------\n"
56277 		"\n"
56278 		"program:  the external program to run.\n"
56279 		"\n"
56280 		"args:  space-separated list of arguments to pass to program.\n"
56281 		"\n"
56282 		"timeout:  timeout in milliseconds. If this timeout is exceeded for any\n"
56283 		"individual operation on the remote database then\n"
56284 		"Xapian::NetworkTimeoutError is thrown. (Default is 0, which means\n"
56285 		"don't timeout).\n"
56286 		"\n"
56287 		"flags:   Xapian::DB_RETRY_LOCK or 0. \n"
56288 		""},
56289 	 { NULL, NULL, 0, NULL }
56290 };
56291 
56292 
56293 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
56294 
_p_Xapian__WritableDatabaseTo_p_Xapian__Database(void * x,int * SWIGUNUSEDPARM (newmemory))56295 static void *_p_Xapian__WritableDatabaseTo_p_Xapian__Database(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56296     return (void *)((Xapian::Database *)  ((Xapian::WritableDatabase *) x));
56297 }
_p_Xapian__GreatCircleMetricTo_p_Xapian__LatLongMetric(void * x,int * SWIGUNUSEDPARM (newmemory))56298 static void *_p_Xapian__GreatCircleMetricTo_p_Xapian__LatLongMetric(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56299     return (void *)((Xapian::LatLongMetric *)  ((Xapian::GreatCircleMetric *) x));
56300 }
_p_Xapian__ValueSetMatchDeciderTo_p_Xapian__MatchDecider(void * x,int * SWIGUNUSEDPARM (newmemory))56301 static void *_p_Xapian__ValueSetMatchDeciderTo_p_Xapian__MatchDecider(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56302     return (void *)((Xapian::MatchDecider *)  ((Xapian::ValueSetMatchDecider *) x));
56303 }
_p_Xapian__ExpandDeciderFilterPrefixTo_p_Xapian__ExpandDecider(void * x,int * SWIGUNUSEDPARM (newmemory))56304 static void *_p_Xapian__ExpandDeciderFilterPrefixTo_p_Xapian__ExpandDecider(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56305     return (void *)((Xapian::ExpandDecider *)  ((Xapian::ExpandDeciderFilterPrefix *) x));
56306 }
_p_Xapian__ExpandDeciderAndTo_p_Xapian__ExpandDecider(void * x,int * SWIGUNUSEDPARM (newmemory))56307 static void *_p_Xapian__ExpandDeciderAndTo_p_Xapian__ExpandDecider(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56308     return (void *)((Xapian::ExpandDecider *)  ((Xapian::ExpandDeciderAnd *) x));
56309 }
_p_Xapian__ExpandDeciderFilterTermsTo_p_Xapian__ExpandDecider(void * x,int * SWIGUNUSEDPARM (newmemory))56310 static void *_p_Xapian__ExpandDeciderFilterTermsTo_p_Xapian__ExpandDecider(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56311     return (void *)((Xapian::ExpandDecider *)  ((Xapian::ExpandDeciderFilterTerms *) x));
56312 }
_p_Xapian__NetworkTimeoutErrorTo_p_Xapian__NetworkError(void * x,int * SWIGUNUSEDPARM (newmemory))56313 static void *_p_Xapian__NetworkTimeoutErrorTo_p_Xapian__NetworkError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56314     return (void *)((Xapian::NetworkError *)  ((Xapian::NetworkTimeoutError *) x));
56315 }
_p_Xapian__MultiValueKeyMakerTo_p_Xapian__KeyMaker(void * x,int * SWIGUNUSEDPARM (newmemory))56316 static void *_p_Xapian__MultiValueKeyMakerTo_p_Xapian__KeyMaker(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56317     return (void *)((Xapian::KeyMaker *)  ((Xapian::MultiValueKeyMaker *) x));
56318 }
_p_Xapian__LatLongDistanceKeyMakerTo_p_Xapian__KeyMaker(void * x,int * SWIGUNUSEDPARM (newmemory))56319 static void *_p_Xapian__LatLongDistanceKeyMakerTo_p_Xapian__KeyMaker(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56320     return (void *)((Xapian::KeyMaker *)  ((Xapian::LatLongDistanceKeyMaker *) x));
56321 }
_p_Xapian__AssertionErrorTo_p_Xapian__LogicError(void * x,int * SWIGUNUSEDPARM (newmemory))56322 static void *_p_Xapian__AssertionErrorTo_p_Xapian__LogicError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56323     return (void *)((Xapian::LogicError *)  ((Xapian::AssertionError *) x));
56324 }
_p_Xapian__InvalidOperationErrorTo_p_Xapian__LogicError(void * x,int * SWIGUNUSEDPARM (newmemory))56325 static void *_p_Xapian__InvalidOperationErrorTo_p_Xapian__LogicError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56326     return (void *)((Xapian::LogicError *)  ((Xapian::InvalidOperationError *) x));
56327 }
_p_Xapian__UnimplementedErrorTo_p_Xapian__LogicError(void * x,int * SWIGUNUSEDPARM (newmemory))56328 static void *_p_Xapian__UnimplementedErrorTo_p_Xapian__LogicError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56329     return (void *)((Xapian::LogicError *)  ((Xapian::UnimplementedError *) x));
56330 }
_p_Xapian__InvalidArgumentErrorTo_p_Xapian__LogicError(void * x,int * SWIGUNUSEDPARM (newmemory))56331 static void *_p_Xapian__InvalidArgumentErrorTo_p_Xapian__LogicError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56332     return (void *)((Xapian::LogicError *)  ((Xapian::InvalidArgumentError *) x));
56333 }
_p_Xapian__ValuePostingSourceTo_p_Xapian__PostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56334 static void *_p_Xapian__ValuePostingSourceTo_p_Xapian__PostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56335     return (void *)((Xapian::PostingSource *)  ((Xapian::ValuePostingSource *) x));
56336 }
_p_Xapian__ValueWeightPostingSourceTo_p_Xapian__PostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56337 static void *_p_Xapian__ValueWeightPostingSourceTo_p_Xapian__PostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56338     return (void *)((Xapian::PostingSource *) (Xapian::ValuePostingSource *) ((Xapian::ValueWeightPostingSource *) x));
56339 }
_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__PostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56340 static void *_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__PostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56341     return (void *)((Xapian::PostingSource *) (Xapian::ValuePostingSource *)(Xapian::ValueWeightPostingSource *) ((Xapian::DecreasingValueWeightPostingSource *) x));
56342 }
_p_Xapian__ValueMapPostingSourceTo_p_Xapian__PostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56343 static void *_p_Xapian__ValueMapPostingSourceTo_p_Xapian__PostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56344     return (void *)((Xapian::PostingSource *) (Xapian::ValuePostingSource *) ((Xapian::ValueMapPostingSource *) x));
56345 }
_p_Xapian__FixedWeightPostingSourceTo_p_Xapian__PostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56346 static void *_p_Xapian__FixedWeightPostingSourceTo_p_Xapian__PostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56347     return (void *)((Xapian::PostingSource *)  ((Xapian::FixedWeightPostingSource *) x));
56348 }
_p_Xapian__LatLongDistancePostingSourceTo_p_Xapian__PostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56349 static void *_p_Xapian__LatLongDistancePostingSourceTo_p_Xapian__PostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56350     return (void *)((Xapian::PostingSource *) (Xapian::ValuePostingSource *) ((Xapian::LatLongDistancePostingSource *) x));
56351 }
_p_Xapian__ValueWeightPostingSourceTo_p_Xapian__ValuePostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56352 static void *_p_Xapian__ValueWeightPostingSourceTo_p_Xapian__ValuePostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56353     return (void *)((Xapian::ValuePostingSource *)  ((Xapian::ValueWeightPostingSource *) x));
56354 }
_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__ValuePostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56355 static void *_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__ValuePostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56356     return (void *)((Xapian::ValuePostingSource *) (Xapian::ValueWeightPostingSource *) ((Xapian::DecreasingValueWeightPostingSource *) x));
56357 }
_p_Xapian__ValueMapPostingSourceTo_p_Xapian__ValuePostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56358 static void *_p_Xapian__ValueMapPostingSourceTo_p_Xapian__ValuePostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56359     return (void *)((Xapian::ValuePostingSource *)  ((Xapian::ValueMapPostingSource *) x));
56360 }
_p_Xapian__LatLongDistancePostingSourceTo_p_Xapian__ValuePostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56361 static void *_p_Xapian__LatLongDistancePostingSourceTo_p_Xapian__ValuePostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56362     return (void *)((Xapian::ValuePostingSource *)  ((Xapian::LatLongDistancePostingSource *) x));
56363 }
_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__ValueWeightPostingSource(void * x,int * SWIGUNUSEDPARM (newmemory))56364 static void *_p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__ValueWeightPostingSource(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56365     return (void *)((Xapian::ValueWeightPostingSource *)  ((Xapian::DecreasingValueWeightPostingSource *) x));
56366 }
_p_Xapian__DPHWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56367 static void *_p_Xapian__DPHWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56368     return (void *)((Xapian::Weight *)  ((Xapian::DPHWeight *) x));
56369 }
_p_Xapian__PL2WeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56370 static void *_p_Xapian__PL2WeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56371     return (void *)((Xapian::Weight *)  ((Xapian::PL2Weight *) x));
56372 }
_p_Xapian__DLHWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56373 static void *_p_Xapian__DLHWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56374     return (void *)((Xapian::Weight *)  ((Xapian::DLHWeight *) x));
56375 }
_p_Xapian__BB2WeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56376 static void *_p_Xapian__BB2WeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56377     return (void *)((Xapian::Weight *)  ((Xapian::BB2Weight *) x));
56378 }
_p_Xapian__IneB2WeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56379 static void *_p_Xapian__IneB2WeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56380     return (void *)((Xapian::Weight *)  ((Xapian::IneB2Weight *) x));
56381 }
_p_Xapian__IfB2WeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56382 static void *_p_Xapian__IfB2WeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56383     return (void *)((Xapian::Weight *)  ((Xapian::IfB2Weight *) x));
56384 }
_p_Xapian__InL2WeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56385 static void *_p_Xapian__InL2WeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56386     return (void *)((Xapian::Weight *)  ((Xapian::InL2Weight *) x));
56387 }
_p_Xapian__TradWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56388 static void *_p_Xapian__TradWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56389     return (void *)((Xapian::Weight *)  ((Xapian::TradWeight *) x));
56390 }
_p_Xapian__TfIdfWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56391 static void *_p_Xapian__TfIdfWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56392     return (void *)((Xapian::Weight *)  ((Xapian::TfIdfWeight *) x));
56393 }
_p_Xapian__BoolWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56394 static void *_p_Xapian__BoolWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56395     return (void *)((Xapian::Weight *)  ((Xapian::BoolWeight *) x));
56396 }
_p_Xapian__CoordWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56397 static void *_p_Xapian__CoordWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56398     return (void *)((Xapian::Weight *)  ((Xapian::CoordWeight *) x));
56399 }
_p_Xapian__LMWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56400 static void *_p_Xapian__LMWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56401     return (void *)((Xapian::Weight *)  ((Xapian::LMWeight *) x));
56402 }
_p_Xapian__PL2PlusWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56403 static void *_p_Xapian__PL2PlusWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56404     return (void *)((Xapian::Weight *)  ((Xapian::PL2PlusWeight *) x));
56405 }
_p_Xapian__BM25PlusWeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56406 static void *_p_Xapian__BM25PlusWeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56407     return (void *)((Xapian::Weight *)  ((Xapian::BM25PlusWeight *) x));
56408 }
_p_Xapian__BM25WeightTo_p_Xapian__Weight(void * x,int * SWIGUNUSEDPARM (newmemory))56409 static void *_p_Xapian__BM25WeightTo_p_Xapian__Weight(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56410     return (void *)((Xapian::Weight *)  ((Xapian::BM25Weight *) x));
56411 }
_p_Xapian__ValueCountMatchSpyTo_p_Xapian__MatchSpy(void * x,int * SWIGUNUSEDPARM (newmemory))56412 static void *_p_Xapian__ValueCountMatchSpyTo_p_Xapian__MatchSpy(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56413     return (void *)((Xapian::MatchSpy *)  ((Xapian::ValueCountMatchSpy *) x));
56414 }
_p_Xapian__SimpleStopperTo_p_Xapian__Stopper(void * x,int * SWIGUNUSEDPARM (newmemory))56415 static void *_p_Xapian__SimpleStopperTo_p_Xapian__Stopper(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56416     return (void *)((Xapian::Stopper *)  ((Xapian::SimpleStopper *) x));
56417 }
_p_Xapian__DatabaseVersionErrorTo_p_Xapian__DatabaseOpeningError(void * x,int * SWIGUNUSEDPARM (newmemory))56418 static void *_p_Xapian__DatabaseVersionErrorTo_p_Xapian__DatabaseOpeningError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56419     return (void *)((Xapian::DatabaseOpeningError *)  ((Xapian::DatabaseVersionError *) x));
56420 }
_p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__DatabaseOpeningError(void * x,int * SWIGUNUSEDPARM (newmemory))56421 static void *_p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__DatabaseOpeningError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56422     return (void *)((Xapian::DatabaseOpeningError *)  ((Xapian::DatabaseNotFoundError *) x));
56423 }
_p_Xapian__DatabaseVersionErrorTo_p_Xapian__DatabaseError(void * x,int * SWIGUNUSEDPARM (newmemory))56424 static void *_p_Xapian__DatabaseVersionErrorTo_p_Xapian__DatabaseError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56425     return (void *)((Xapian::DatabaseError *) (Xapian::DatabaseOpeningError *) ((Xapian::DatabaseVersionError *) x));
56426 }
_p_Xapian__DatabaseLockErrorTo_p_Xapian__DatabaseError(void * x,int * SWIGUNUSEDPARM (newmemory))56427 static void *_p_Xapian__DatabaseLockErrorTo_p_Xapian__DatabaseError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56428     return (void *)((Xapian::DatabaseError *)  ((Xapian::DatabaseLockError *) x));
56429 }
_p_Xapian__DatabaseModifiedErrorTo_p_Xapian__DatabaseError(void * x,int * SWIGUNUSEDPARM (newmemory))56430 static void *_p_Xapian__DatabaseModifiedErrorTo_p_Xapian__DatabaseError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56431     return (void *)((Xapian::DatabaseError *)  ((Xapian::DatabaseModifiedError *) x));
56432 }
_p_Xapian__DatabaseOpeningErrorTo_p_Xapian__DatabaseError(void * x,int * SWIGUNUSEDPARM (newmemory))56433 static void *_p_Xapian__DatabaseOpeningErrorTo_p_Xapian__DatabaseError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56434     return (void *)((Xapian::DatabaseError *)  ((Xapian::DatabaseOpeningError *) x));
56435 }
_p_Xapian__DatabaseClosedErrorTo_p_Xapian__DatabaseError(void * x,int * SWIGUNUSEDPARM (newmemory))56436 static void *_p_Xapian__DatabaseClosedErrorTo_p_Xapian__DatabaseError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56437     return (void *)((Xapian::DatabaseError *)  ((Xapian::DatabaseClosedError *) x));
56438 }
_p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__DatabaseError(void * x,int * SWIGUNUSEDPARM (newmemory))56439 static void *_p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__DatabaseError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56440     return (void *)((Xapian::DatabaseError *) (Xapian::DatabaseOpeningError *) ((Xapian::DatabaseNotFoundError *) x));
56441 }
_p_Xapian__DatabaseCreateErrorTo_p_Xapian__DatabaseError(void * x,int * SWIGUNUSEDPARM (newmemory))56442 static void *_p_Xapian__DatabaseCreateErrorTo_p_Xapian__DatabaseError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56443     return (void *)((Xapian::DatabaseError *)  ((Xapian::DatabaseCreateError *) x));
56444 }
_p_Xapian__DatabaseCorruptErrorTo_p_Xapian__DatabaseError(void * x,int * SWIGUNUSEDPARM (newmemory))56445 static void *_p_Xapian__DatabaseCorruptErrorTo_p_Xapian__DatabaseError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56446     return (void *)((Xapian::DatabaseError *)  ((Xapian::DatabaseCorruptError *) x));
56447 }
_p_Xapian__DocNotFoundErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56448 static void *_p_Xapian__DocNotFoundErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56449     return (void *)((Xapian::RuntimeError *)  ((Xapian::DocNotFoundError *) x));
56450 }
_p_Xapian__WildcardErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56451 static void *_p_Xapian__WildcardErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56452     return (void *)((Xapian::RuntimeError *)  ((Xapian::WildcardError *) x));
56453 }
_p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56454 static void *_p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56455     return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *)(Xapian::DatabaseOpeningError *) ((Xapian::DatabaseNotFoundError *) x));
56456 }
_p_Xapian__DatabaseLockErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56457 static void *_p_Xapian__DatabaseLockErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56458     return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *) ((Xapian::DatabaseLockError *) x));
56459 }
_p_Xapian__NetworkTimeoutErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56460 static void *_p_Xapian__NetworkTimeoutErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56461     return (void *)((Xapian::RuntimeError *) (Xapian::NetworkError *) ((Xapian::NetworkTimeoutError *) x));
56462 }
_p_Xapian__FeatureUnavailableErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56463 static void *_p_Xapian__FeatureUnavailableErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56464     return (void *)((Xapian::RuntimeError *)  ((Xapian::FeatureUnavailableError *) x));
56465 }
_p_Xapian__DatabaseCreateErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56466 static void *_p_Xapian__DatabaseCreateErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56467     return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *) ((Xapian::DatabaseCreateError *) x));
56468 }
_p_Xapian__InternalErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56469 static void *_p_Xapian__InternalErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56470     return (void *)((Xapian::RuntimeError *)  ((Xapian::InternalError *) x));
56471 }
_p_Xapian__DatabaseModifiedErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56472 static void *_p_Xapian__DatabaseModifiedErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56473     return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *) ((Xapian::DatabaseModifiedError *) x));
56474 }
_p_Xapian__DatabaseClosedErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56475 static void *_p_Xapian__DatabaseClosedErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56476     return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *) ((Xapian::DatabaseClosedError *) x));
56477 }
_p_Xapian__DatabaseErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56478 static void *_p_Xapian__DatabaseErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56479     return (void *)((Xapian::RuntimeError *)  ((Xapian::DatabaseError *) x));
56480 }
_p_Xapian__DatabaseOpeningErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56481 static void *_p_Xapian__DatabaseOpeningErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56482     return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *) ((Xapian::DatabaseOpeningError *) x));
56483 }
_p_Xapian__RangeErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56484 static void *_p_Xapian__RangeErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56485     return (void *)((Xapian::RuntimeError *)  ((Xapian::RangeError *) x));
56486 }
_p_Xapian__SerialisationErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56487 static void *_p_Xapian__SerialisationErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56488     return (void *)((Xapian::RuntimeError *)  ((Xapian::SerialisationError *) x));
56489 }
_p_Xapian__DatabaseVersionErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56490 static void *_p_Xapian__DatabaseVersionErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56491     return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *)(Xapian::DatabaseOpeningError *) ((Xapian::DatabaseVersionError *) x));
56492 }
_p_Xapian__NetworkErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56493 static void *_p_Xapian__NetworkErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56494     return (void *)((Xapian::RuntimeError *)  ((Xapian::NetworkError *) x));
56495 }
_p_Xapian__DatabaseCorruptErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56496 static void *_p_Xapian__DatabaseCorruptErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56497     return (void *)((Xapian::RuntimeError *) (Xapian::DatabaseError *) ((Xapian::DatabaseCorruptError *) x));
56498 }
_p_Xapian__QueryParserErrorTo_p_Xapian__RuntimeError(void * x,int * SWIGUNUSEDPARM (newmemory))56499 static void *_p_Xapian__QueryParserErrorTo_p_Xapian__RuntimeError(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56500     return (void *)((Xapian::RuntimeError *)  ((Xapian::QueryParserError *) x));
56501 }
_p_Xapian__DateValueRangeProcessorTo_p_Xapian__StringValueRangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))56502 static void *_p_Xapian__DateValueRangeProcessorTo_p_Xapian__StringValueRangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56503     return (void *)((Xapian::StringValueRangeProcessor *)  ((Xapian::DateValueRangeProcessor *) x));
56504 }
_p_Xapian__NumberValueRangeProcessorTo_p_Xapian__StringValueRangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))56505 static void *_p_Xapian__NumberValueRangeProcessorTo_p_Xapian__StringValueRangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56506     return (void *)((Xapian::StringValueRangeProcessor *)  ((Xapian::NumberValueRangeProcessor *) x));
56507 }
_p_Xapian__StringValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))56508 static void *_p_Xapian__StringValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56509     return (void *)((Xapian::ValueRangeProcessor *)  ((Xapian::StringValueRangeProcessor *) x));
56510 }
_p_Xapian__DateValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))56511 static void *_p_Xapian__DateValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56512     return (void *)((Xapian::ValueRangeProcessor *) (Xapian::StringValueRangeProcessor *) ((Xapian::DateValueRangeProcessor *) x));
56513 }
_p_Xapian__NumberValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))56514 static void *_p_Xapian__NumberValueRangeProcessorTo_p_Xapian__ValueRangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56515     return (void *)((Xapian::ValueRangeProcessor *) (Xapian::StringValueRangeProcessor *) ((Xapian::NumberValueRangeProcessor *) x));
56516 }
_p_Xapian__DateRangeProcessorTo_p_Xapian__RangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))56517 static void *_p_Xapian__DateRangeProcessorTo_p_Xapian__RangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56518     return (void *)((Xapian::RangeProcessor *)  ((Xapian::DateRangeProcessor *) x));
56519 }
_p_Xapian__NumberRangeProcessorTo_p_Xapian__RangeProcessor(void * x,int * SWIGUNUSEDPARM (newmemory))56520 static void *_p_Xapian__NumberRangeProcessorTo_p_Xapian__RangeProcessor(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56521     return (void *)((Xapian::RangeProcessor *)  ((Xapian::NumberRangeProcessor *) x));
56522 }
_p_Xapian__DocNotFoundErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56523 static void *_p_Xapian__DocNotFoundErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56524     return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::DocNotFoundError *) x));
56525 }
_p_Xapian__WildcardErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56526 static void *_p_Xapian__WildcardErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56527     return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::WildcardError *) x));
56528 }
_p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56529 static void *_p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56530     return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *)(Xapian::DatabaseOpeningError *) ((Xapian::DatabaseNotFoundError *) x));
56531 }
_p_Xapian__DatabaseLockErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56532 static void *_p_Xapian__DatabaseLockErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56533     return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *) ((Xapian::DatabaseLockError *) x));
56534 }
_p_Xapian__LogicErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56535 static void *_p_Xapian__LogicErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56536     return (void *)((Xapian::Error *)  ((Xapian::LogicError *) x));
56537 }
_p_Xapian__DatabaseCreateErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56538 static void *_p_Xapian__DatabaseCreateErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56539     return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *) ((Xapian::DatabaseCreateError *) x));
56540 }
_p_Xapian__FeatureUnavailableErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56541 static void *_p_Xapian__FeatureUnavailableErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56542     return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::FeatureUnavailableError *) x));
56543 }
_p_Xapian__NetworkTimeoutErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56544 static void *_p_Xapian__NetworkTimeoutErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56545     return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::NetworkError *) ((Xapian::NetworkTimeoutError *) x));
56546 }
_p_Xapian__InternalErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56547 static void *_p_Xapian__InternalErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56548     return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::InternalError *) x));
56549 }
_p_Xapian__DatabaseModifiedErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56550 static void *_p_Xapian__DatabaseModifiedErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56551     return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *) ((Xapian::DatabaseModifiedError *) x));
56552 }
_p_Xapian__UnimplementedErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56553 static void *_p_Xapian__UnimplementedErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56554     return (void *)((Xapian::Error *) (Xapian::LogicError *) ((Xapian::UnimplementedError *) x));
56555 }
_p_Xapian__DatabaseClosedErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56556 static void *_p_Xapian__DatabaseClosedErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56557     return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *) ((Xapian::DatabaseClosedError *) x));
56558 }
_p_Xapian__DatabaseErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56559 static void *_p_Xapian__DatabaseErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56560     return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::DatabaseError *) x));
56561 }
_p_Xapian__RuntimeErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56562 static void *_p_Xapian__RuntimeErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56563     return (void *)((Xapian::Error *)  ((Xapian::RuntimeError *) x));
56564 }
_p_Xapian__DatabaseOpeningErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56565 static void *_p_Xapian__DatabaseOpeningErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56566     return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *) ((Xapian::DatabaseOpeningError *) x));
56567 }
_p_Xapian__RangeErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56568 static void *_p_Xapian__RangeErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56569     return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::RangeError *) x));
56570 }
_p_Xapian__DatabaseVersionErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56571 static void *_p_Xapian__DatabaseVersionErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56572     return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *)(Xapian::DatabaseOpeningError *) ((Xapian::DatabaseVersionError *) x));
56573 }
_p_Xapian__InvalidOperationErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56574 static void *_p_Xapian__InvalidOperationErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56575     return (void *)((Xapian::Error *) (Xapian::LogicError *) ((Xapian::InvalidOperationError *) x));
56576 }
_p_Xapian__AssertionErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56577 static void *_p_Xapian__AssertionErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56578     return (void *)((Xapian::Error *) (Xapian::LogicError *) ((Xapian::AssertionError *) x));
56579 }
_p_Xapian__SerialisationErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56580 static void *_p_Xapian__SerialisationErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56581     return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::SerialisationError *) x));
56582 }
_p_Xapian__NetworkErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56583 static void *_p_Xapian__NetworkErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56584     return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::NetworkError *) x));
56585 }
_p_Xapian__DatabaseCorruptErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56586 static void *_p_Xapian__DatabaseCorruptErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56587     return (void *)((Xapian::Error *) (Xapian::RuntimeError *)(Xapian::DatabaseError *) ((Xapian::DatabaseCorruptError *) x));
56588 }
_p_Xapian__InvalidArgumentErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56589 static void *_p_Xapian__InvalidArgumentErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56590     return (void *)((Xapian::Error *) (Xapian::LogicError *) ((Xapian::InvalidArgumentError *) x));
56591 }
_p_Xapian__QueryParserErrorTo_p_Xapian__Error(void * x,int * SWIGUNUSEDPARM (newmemory))56592 static void *_p_Xapian__QueryParserErrorTo_p_Xapian__Error(void *x, int *SWIGUNUSEDPARM(newmemory)) {
56593     return (void *)((Xapian::Error *) (Xapian::RuntimeError *) ((Xapian::QueryParserError *) x));
56594 }
56595 static swig_type_info _swigt__p_Xapian__AssertionError = {"_p_Xapian__AssertionError", "Xapian::AssertionError *", 0, 0, (void*)0, 0};
56596 static swig_type_info _swigt__p_Xapian__BB2Weight = {"_p_Xapian__BB2Weight", "Xapian::BB2Weight *", 0, 0, (void*)0, 0};
56597 static swig_type_info _swigt__p_Xapian__BM25PlusWeight = {"_p_Xapian__BM25PlusWeight", "Xapian::BM25PlusWeight *", 0, 0, (void*)0, 0};
56598 static swig_type_info _swigt__p_Xapian__BM25Weight = {"_p_Xapian__BM25Weight", "Xapian::BM25Weight *", 0, 0, (void*)0, 0};
56599 static swig_type_info _swigt__p_Xapian__BoolWeight = {"_p_Xapian__BoolWeight", "Xapian::BoolWeight *", 0, 0, (void*)0, 0};
56600 static swig_type_info _swigt__p_Xapian__Compactor = {"_p_Xapian__Compactor", "Xapian::Compactor *", 0, 0, (void*)0, 0};
56601 static swig_type_info _swigt__p_Xapian__CoordWeight = {"_p_Xapian__CoordWeight", "Xapian::CoordWeight *", 0, 0, (void*)0, 0};
56602 static swig_type_info _swigt__p_Xapian__DLHWeight = {"_p_Xapian__DLHWeight", "Xapian::DLHWeight *", 0, 0, (void*)0, 0};
56603 static swig_type_info _swigt__p_Xapian__DPHWeight = {"_p_Xapian__DPHWeight", "Xapian::DPHWeight *", 0, 0, (void*)0, 0};
56604 static swig_type_info _swigt__p_Xapian__Database = {"_p_Xapian__Database", "Xapian::Database *", 0, 0, (void*)0, 0};
56605 static swig_type_info _swigt__p_Xapian__DatabaseClosedError = {"_p_Xapian__DatabaseClosedError", "Xapian::DatabaseClosedError *", 0, 0, (void*)0, 0};
56606 static swig_type_info _swigt__p_Xapian__DatabaseCorruptError = {"_p_Xapian__DatabaseCorruptError", "Xapian::DatabaseCorruptError *", 0, 0, (void*)0, 0};
56607 static swig_type_info _swigt__p_Xapian__DatabaseCreateError = {"_p_Xapian__DatabaseCreateError", "Xapian::DatabaseCreateError *", 0, 0, (void*)0, 0};
56608 static swig_type_info _swigt__p_Xapian__DatabaseError = {"_p_Xapian__DatabaseError", "Xapian::DatabaseError *", 0, 0, (void*)0, 0};
56609 static swig_type_info _swigt__p_Xapian__DatabaseLockError = {"_p_Xapian__DatabaseLockError", "Xapian::DatabaseLockError *", 0, 0, (void*)0, 0};
56610 static swig_type_info _swigt__p_Xapian__DatabaseModifiedError = {"_p_Xapian__DatabaseModifiedError", "Xapian::DatabaseModifiedError *", 0, 0, (void*)0, 0};
56611 static swig_type_info _swigt__p_Xapian__DatabaseNotFoundError = {"_p_Xapian__DatabaseNotFoundError", "Xapian::DatabaseNotFoundError *", 0, 0, (void*)0, 0};
56612 static swig_type_info _swigt__p_Xapian__DatabaseOpeningError = {"_p_Xapian__DatabaseOpeningError", "Xapian::DatabaseOpeningError *", 0, 0, (void*)0, 0};
56613 static swig_type_info _swigt__p_Xapian__DatabaseVersionError = {"_p_Xapian__DatabaseVersionError", "Xapian::DatabaseVersionError *", 0, 0, (void*)0, 0};
56614 static swig_type_info _swigt__p_Xapian__DateRangeProcessor = {"_p_Xapian__DateRangeProcessor", "Xapian::DateRangeProcessor *", 0, 0, (void*)0, 0};
56615 static swig_type_info _swigt__p_Xapian__DateValueRangeProcessor = {"_p_Xapian__DateValueRangeProcessor", "Xapian::DateValueRangeProcessor *", 0, 0, (void*)0, 0};
56616 static swig_type_info _swigt__p_Xapian__DecreasingValueWeightPostingSource = {"_p_Xapian__DecreasingValueWeightPostingSource", "Xapian::DecreasingValueWeightPostingSource *", 0, 0, (void*)0, 0};
56617 static swig_type_info _swigt__p_Xapian__DocNotFoundError = {"_p_Xapian__DocNotFoundError", "Xapian::DocNotFoundError *", 0, 0, (void*)0, 0};
56618 static swig_type_info _swigt__p_Xapian__Document = {"_p_Xapian__Document", "Xapian::Document *", 0, 0, (void*)0, 0};
56619 static swig_type_info _swigt__p_Xapian__ESet = {"_p_Xapian__ESet", "Xapian::ESet *", 0, 0, (void*)0, 0};
56620 static swig_type_info _swigt__p_Xapian__ESetIterator = {"_p_Xapian__ESetIterator", "Xapian::ESetIterator *", 0, 0, (void*)0, 0};
56621 static swig_type_info _swigt__p_Xapian__Enquire = {"_p_Xapian__Enquire", "Xapian::Enquire *", 0, 0, (void*)0, 0};
56622 static swig_type_info _swigt__p_Xapian__Error = {"_p_Xapian__Error", "Xapian::Error *", 0, 0, (void*)0, 0};
56623 static swig_type_info _swigt__p_Xapian__ExpandDecider = {"_p_Xapian__ExpandDecider", "Xapian::ExpandDecider *", 0, 0, (void*)0, 0};
56624 static swig_type_info _swigt__p_Xapian__ExpandDeciderFilterTerms = {"_p_Xapian__ExpandDeciderFilterTerms", 0, 0, 0, 0, 0};
56625 static swig_type_info _swigt__p_Xapian__ExpandDeciderAnd = {"_p_Xapian__ExpandDeciderAnd", "Xapian::ExpandDeciderAnd *", 0, 0, (void*)0, 0};
56626 static swig_type_info _swigt__p_Xapian__ExpandDeciderFilterPrefix = {"_p_Xapian__ExpandDeciderFilterPrefix", "Xapian::ExpandDeciderFilterPrefix *", 0, 0, (void*)0, 0};
56627 static swig_type_info _swigt__p_Xapian__FeatureUnavailableError = {"_p_Xapian__FeatureUnavailableError", "Xapian::FeatureUnavailableError *", 0, 0, (void*)0, 0};
56628 static swig_type_info _swigt__p_Xapian__FieldProcessor = {"_p_Xapian__FieldProcessor", "Xapian::FieldProcessor *", 0, 0, (void*)0, 0};
56629 static swig_type_info _swigt__p_Xapian__FixedWeightPostingSource = {"_p_Xapian__FixedWeightPostingSource", "Xapian::FixedWeightPostingSource *", 0, 0, (void*)0, 0};
56630 static swig_type_info _swigt__p_Xapian__GreatCircleMetric = {"_p_Xapian__GreatCircleMetric", "Xapian::GreatCircleMetric *", 0, 0, (void*)0, 0};
56631 static swig_type_info _swigt__p_Xapian__IfB2Weight = {"_p_Xapian__IfB2Weight", "Xapian::IfB2Weight *", 0, 0, (void*)0, 0};
56632 static swig_type_info _swigt__p_Xapian__InL2Weight = {"_p_Xapian__InL2Weight", "Xapian::InL2Weight *", 0, 0, (void*)0, 0};
56633 static swig_type_info _swigt__p_Xapian__IneB2Weight = {"_p_Xapian__IneB2Weight", "Xapian::IneB2Weight *", 0, 0, (void*)0, 0};
56634 static swig_type_info _swigt__p_Xapian__InternalError = {"_p_Xapian__InternalError", "Xapian::InternalError *", 0, 0, (void*)0, 0};
56635 static swig_type_info _swigt__p_Xapian__InvalidArgumentError = {"_p_Xapian__InvalidArgumentError", "Xapian::InvalidArgumentError *", 0, 0, (void*)0, 0};
56636 static swig_type_info _swigt__p_Xapian__InvalidOperationError = {"_p_Xapian__InvalidOperationError", "Xapian::InvalidOperationError *", 0, 0, (void*)0, 0};
56637 static swig_type_info _swigt__p_Xapian__KeyMaker = {"_p_Xapian__KeyMaker", "Xapian::KeyMaker *", 0, 0, (void*)0, 0};
56638 static swig_type_info _swigt__p_Xapian__LMWeight = {"_p_Xapian__LMWeight", "Xapian::LMWeight *", 0, 0, (void*)0, 0};
56639 static swig_type_info _swigt__p_Xapian__LatLongCoord = {"_p_Xapian__LatLongCoord", "Xapian::LatLongCoord *", 0, 0, (void*)0, 0};
56640 static swig_type_info _swigt__p_Xapian__LatLongCoords = {"_p_Xapian__LatLongCoords", "Xapian::LatLongCoords *", 0, 0, (void*)0, 0};
56641 static swig_type_info _swigt__p_Xapian__LatLongCoordsIterator = {"_p_Xapian__LatLongCoordsIterator", "Xapian::LatLongCoordsIterator *", 0, 0, (void*)0, 0};
56642 static swig_type_info _swigt__p_Xapian__LatLongDistanceKeyMaker = {"_p_Xapian__LatLongDistanceKeyMaker", "Xapian::LatLongDistanceKeyMaker *", 0, 0, (void*)0, 0};
56643 static swig_type_info _swigt__p_Xapian__LatLongDistancePostingSource = {"_p_Xapian__LatLongDistancePostingSource", "Xapian::LatLongDistancePostingSource *", 0, 0, (void*)0, 0};
56644 static swig_type_info _swigt__p_Xapian__LatLongMetric = {"_p_Xapian__LatLongMetric", "Xapian::LatLongMetric *", 0, 0, (void*)0, 0};
56645 static swig_type_info _swigt__p_Xapian__LogicError = {"_p_Xapian__LogicError", "Xapian::LogicError *", 0, 0, (void*)0, 0};
56646 static swig_type_info _swigt__p_Xapian__MSet = {"_p_Xapian__MSet", "Xapian::MSet *", 0, 0, (void*)0, 0};
56647 static swig_type_info _swigt__p_Xapian__MSetIterator = {"_p_Xapian__MSetIterator", "Xapian::MSetIterator *", 0, 0, (void*)0, 0};
56648 static swig_type_info _swigt__p_Xapian__MatchDecider = {"_p_Xapian__MatchDecider", "Xapian::MatchDecider *", 0, 0, (void*)0, 0};
56649 static swig_type_info _swigt__p_Xapian__MatchSpy = {"_p_Xapian__MatchSpy", "Xapian::MatchSpy *", 0, 0, (void*)0, 0};
56650 static swig_type_info _swigt__p_Xapian__MultiValueKeyMaker = {"_p_Xapian__MultiValueKeyMaker", "Xapian::MultiValueKeyMaker *", 0, 0, (void*)0, 0};
56651 static swig_type_info _swigt__p_Xapian__NetworkError = {"_p_Xapian__NetworkError", "Xapian::NetworkError *", 0, 0, (void*)0, 0};
56652 static swig_type_info _swigt__p_Xapian__NetworkTimeoutError = {"_p_Xapian__NetworkTimeoutError", "Xapian::NetworkTimeoutError *", 0, 0, (void*)0, 0};
56653 static swig_type_info _swigt__p_Xapian__NumberRangeProcessor = {"_p_Xapian__NumberRangeProcessor", "Xapian::NumberRangeProcessor *", 0, 0, (void*)0, 0};
56654 static swig_type_info _swigt__p_Xapian__NumberValueRangeProcessor = {"_p_Xapian__NumberValueRangeProcessor", "Xapian::NumberValueRangeProcessor *", 0, 0, (void*)0, 0};
56655 static swig_type_info _swigt__p_Xapian__PL2PlusWeight = {"_p_Xapian__PL2PlusWeight", "Xapian::PL2PlusWeight *", 0, 0, (void*)0, 0};
56656 static swig_type_info _swigt__p_Xapian__PL2Weight = {"_p_Xapian__PL2Weight", "Xapian::PL2Weight *", 0, 0, (void*)0, 0};
56657 static swig_type_info _swigt__p_Xapian__PositionIterator = {"_p_Xapian__PositionIterator", "Xapian::PositionIterator *", 0, 0, (void*)0, 0};
56658 static swig_type_info _swigt__p_Xapian__PostingIterator = {"_p_Xapian__PostingIterator", "Xapian::PostingIterator *", 0, 0, (void*)0, 0};
56659 static swig_type_info _swigt__p_Xapian__PostingSource = {"_p_Xapian__PostingSource", "Xapian::PostingSource *", 0, 0, (void*)0, 0};
56660 static swig_type_info _swigt__p_Xapian__Query = {"_p_Xapian__Query", "Xapian::Query *", 0, 0, (void*)0, 0};
56661 static swig_type_info _swigt__p_Xapian__QueryParser = {"_p_Xapian__QueryParser", "Xapian::QueryParser *", 0, 0, (void*)0, 0};
56662 static swig_type_info _swigt__p_Xapian__QueryParserError = {"_p_Xapian__QueryParserError", "Xapian::QueryParserError *", 0, 0, (void*)0, 0};
56663 static swig_type_info _swigt__p_Xapian__RSet = {"_p_Xapian__RSet", "Xapian::RSet *", 0, 0, (void*)0, 0};
56664 static swig_type_info _swigt__p_Xapian__RangeError = {"_p_Xapian__RangeError", "Xapian::RangeError *", 0, 0, (void*)0, 0};
56665 static swig_type_info _swigt__p_Xapian__RangeProcessor = {"_p_Xapian__RangeProcessor", "Xapian::RangeProcessor *", 0, 0, (void*)0, 0};
56666 static swig_type_info _swigt__p_Xapian__Registry = {"_p_Xapian__Registry", "Xapian::Registry *", 0, 0, (void*)0, 0};
56667 static swig_type_info _swigt__p_Xapian__RuntimeError = {"_p_Xapian__RuntimeError", "Xapian::RuntimeError *", 0, 0, (void*)0, 0};
56668 static swig_type_info _swigt__p_Xapian__SerialisationError = {"_p_Xapian__SerialisationError", "Xapian::SerialisationError *", 0, 0, (void*)0, 0};
56669 static swig_type_info _swigt__p_Xapian__SimpleStopper = {"_p_Xapian__SimpleStopper", "Xapian::SimpleStopper *", 0, 0, (void*)0, 0};
56670 static swig_type_info _swigt__p_Xapian__Stem = {"_p_Xapian__Stem", "Xapian::Stem *", 0, 0, (void*)0, 0};
56671 static swig_type_info _swigt__p_Xapian__StemImplementation = {"_p_Xapian__StemImplementation", "Xapian::StemImplementation *", 0, 0, (void*)0, 0};
56672 static swig_type_info _swigt__p_Xapian__Stopper = {"_p_Xapian__Stopper", "Xapian::Stopper *", 0, 0, (void*)0, 0};
56673 static swig_type_info _swigt__p_Xapian__StringValueRangeProcessor = {"_p_Xapian__StringValueRangeProcessor", "Xapian::StringValueRangeProcessor *", 0, 0, (void*)0, 0};
56674 static swig_type_info _swigt__p_Xapian__TermGenerator = {"_p_Xapian__TermGenerator", "Xapian::TermGenerator *", 0, 0, (void*)0, 0};
56675 static swig_type_info _swigt__p_Xapian__TermIterator = {"_p_Xapian__TermIterator", "Xapian::TermIterator *", 0, 0, (void*)0, 0};
56676 static swig_type_info _swigt__p_Xapian__TfIdfWeight = {"_p_Xapian__TfIdfWeight", "Xapian::TfIdfWeight *", 0, 0, (void*)0, 0};
56677 static swig_type_info _swigt__p_Xapian__TradWeight = {"_p_Xapian__TradWeight", "Xapian::TradWeight *", 0, 0, (void*)0, 0};
56678 static swig_type_info _swigt__p_Xapian__UnimplementedError = {"_p_Xapian__UnimplementedError", "Xapian::UnimplementedError *", 0, 0, (void*)0, 0};
56679 static swig_type_info _swigt__p_Xapian__ValueCountMatchSpy = {"_p_Xapian__ValueCountMatchSpy", "Xapian::ValueCountMatchSpy *", 0, 0, (void*)0, 0};
56680 static swig_type_info _swigt__p_Xapian__ValueIterator = {"_p_Xapian__ValueIterator", "Xapian::ValueIterator *", 0, 0, (void*)0, 0};
56681 static swig_type_info _swigt__p_Xapian__ValueMapPostingSource = {"_p_Xapian__ValueMapPostingSource", "Xapian::ValueMapPostingSource *", 0, 0, (void*)0, 0};
56682 static swig_type_info _swigt__p_Xapian__ValuePostingSource = {"_p_Xapian__ValuePostingSource", "Xapian::ValuePostingSource *", 0, 0, (void*)0, 0};
56683 static swig_type_info _swigt__p_Xapian__ValueRangeProcessor = {"_p_Xapian__ValueRangeProcessor", "Xapian::ValueRangeProcessor *", 0, 0, (void*)0, 0};
56684 static swig_type_info _swigt__p_Xapian__ValueSetMatchDecider = {"_p_Xapian__ValueSetMatchDecider", "Xapian::ValueSetMatchDecider *", 0, 0, (void*)0, 0};
56685 static swig_type_info _swigt__p_Xapian__ValueWeightPostingSource = {"_p_Xapian__ValueWeightPostingSource", "Xapian::ValueWeightPostingSource *", 0, 0, (void*)0, 0};
56686 static swig_type_info _swigt__p_Xapian__Weight = {"_p_Xapian__Weight", "Xapian::Weight *", 0, 0, (void*)0, 0};
56687 static swig_type_info _swigt__p_Xapian__WildcardError = {"_p_Xapian__WildcardError", "Xapian::WildcardError *", 0, 0, (void*)0, 0};
56688 static swig_type_info _swigt__p_Xapian__WritableDatabase = {"_p_Xapian__WritableDatabase", "Xapian::WritableDatabase *", 0, 0, (void*)0, 0};
56689 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
56690 static swig_type_info _swigt__p_compaction_level = {"_p_compaction_level", "compaction_level *", 0, 0, (void*)0, 0};
56691 static swig_type_info _swigt__p_docid_order = {"_p_docid_order", "docid_order *", 0, 0, (void*)0, 0};
56692 static swig_type_info _swigt__p_double = {"_p_double", "Xapian::doclength *|double *|Xapian::weight *", 0, 0, (void*)0, 0};
56693 static swig_type_info _swigt__p_feature_flag = {"_p_feature_flag", "feature_flag *", 0, 0, (void*)0, 0};
56694 static swig_type_info _swigt__p_flags = {"_p_flags", "flags *", 0, 0, (void*)0, 0};
56695 static swig_type_info _swigt__p_int = {"_p_int", "int *|Xapian::doccount_diff *|Xapian::termcount_diff *|Xapian::termpos_diff *|Xapian::valueno_diff *|Xapian::percent *", 0, 0, (void*)0, 0};
56696 static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0};
56697 static swig_type_info _swigt__p_std__ostream = {"_p_std__ostream", "std::ostream *", 0, 0, (void*)0, 0};
56698 static swig_type_info _swigt__p_std__string = {"_p_std__string", "std::string *", 0, 0, (void*)0, 0};
56699 static swig_type_info _swigt__p_stem_strategy = {"_p_stem_strategy", "stem_strategy *", 0, 0, (void*)0, 0};
56700 static swig_type_info _swigt__p_stop_strategy = {"_p_stop_strategy", "stop_strategy *", 0, 0, (void*)0, 0};
56701 static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0};
56702 static swig_type_info _swigt__p_type_smoothing = {"_p_type_smoothing", "type_smoothing *", 0, 0, (void*)0, 0};
56703 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "Xapian::timeout *|unsigned int *|Xapian::doccount *|Xapian::termcount *|Xapian::valueno *|Xapian::docid *|Xapian::termpos *", 0, 0, (void*)0, 0};
56704 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "Xapian::rev *|unsigned long *|Xapian::totallength *", 0, 0, (void*)0, 0};
56705 
56706 static swig_type_info *swig_type_initial[] = {
56707   &_swigt__p_Xapian__AssertionError,
56708   &_swigt__p_Xapian__BB2Weight,
56709   &_swigt__p_Xapian__BM25PlusWeight,
56710   &_swigt__p_Xapian__BM25Weight,
56711   &_swigt__p_Xapian__BoolWeight,
56712   &_swigt__p_Xapian__Compactor,
56713   &_swigt__p_Xapian__CoordWeight,
56714   &_swigt__p_Xapian__DLHWeight,
56715   &_swigt__p_Xapian__DPHWeight,
56716   &_swigt__p_Xapian__Database,
56717   &_swigt__p_Xapian__DatabaseClosedError,
56718   &_swigt__p_Xapian__DatabaseCorruptError,
56719   &_swigt__p_Xapian__DatabaseCreateError,
56720   &_swigt__p_Xapian__DatabaseError,
56721   &_swigt__p_Xapian__DatabaseLockError,
56722   &_swigt__p_Xapian__DatabaseModifiedError,
56723   &_swigt__p_Xapian__DatabaseNotFoundError,
56724   &_swigt__p_Xapian__DatabaseOpeningError,
56725   &_swigt__p_Xapian__DatabaseVersionError,
56726   &_swigt__p_Xapian__DateRangeProcessor,
56727   &_swigt__p_Xapian__DateValueRangeProcessor,
56728   &_swigt__p_Xapian__DecreasingValueWeightPostingSource,
56729   &_swigt__p_Xapian__DocNotFoundError,
56730   &_swigt__p_Xapian__Document,
56731   &_swigt__p_Xapian__ESet,
56732   &_swigt__p_Xapian__ESetIterator,
56733   &_swigt__p_Xapian__Enquire,
56734   &_swigt__p_Xapian__Error,
56735   &_swigt__p_Xapian__ExpandDecider,
56736   &_swigt__p_Xapian__ExpandDeciderAnd,
56737   &_swigt__p_Xapian__ExpandDeciderFilterPrefix,
56738   &_swigt__p_Xapian__ExpandDeciderFilterTerms,
56739   &_swigt__p_Xapian__FeatureUnavailableError,
56740   &_swigt__p_Xapian__FieldProcessor,
56741   &_swigt__p_Xapian__FixedWeightPostingSource,
56742   &_swigt__p_Xapian__GreatCircleMetric,
56743   &_swigt__p_Xapian__IfB2Weight,
56744   &_swigt__p_Xapian__InL2Weight,
56745   &_swigt__p_Xapian__IneB2Weight,
56746   &_swigt__p_Xapian__InternalError,
56747   &_swigt__p_Xapian__InvalidArgumentError,
56748   &_swigt__p_Xapian__InvalidOperationError,
56749   &_swigt__p_Xapian__KeyMaker,
56750   &_swigt__p_Xapian__LMWeight,
56751   &_swigt__p_Xapian__LatLongCoord,
56752   &_swigt__p_Xapian__LatLongCoords,
56753   &_swigt__p_Xapian__LatLongCoordsIterator,
56754   &_swigt__p_Xapian__LatLongDistanceKeyMaker,
56755   &_swigt__p_Xapian__LatLongDistancePostingSource,
56756   &_swigt__p_Xapian__LatLongMetric,
56757   &_swigt__p_Xapian__LogicError,
56758   &_swigt__p_Xapian__MSet,
56759   &_swigt__p_Xapian__MSetIterator,
56760   &_swigt__p_Xapian__MatchDecider,
56761   &_swigt__p_Xapian__MatchSpy,
56762   &_swigt__p_Xapian__MultiValueKeyMaker,
56763   &_swigt__p_Xapian__NetworkError,
56764   &_swigt__p_Xapian__NetworkTimeoutError,
56765   &_swigt__p_Xapian__NumberRangeProcessor,
56766   &_swigt__p_Xapian__NumberValueRangeProcessor,
56767   &_swigt__p_Xapian__PL2PlusWeight,
56768   &_swigt__p_Xapian__PL2Weight,
56769   &_swigt__p_Xapian__PositionIterator,
56770   &_swigt__p_Xapian__PostingIterator,
56771   &_swigt__p_Xapian__PostingSource,
56772   &_swigt__p_Xapian__Query,
56773   &_swigt__p_Xapian__QueryParser,
56774   &_swigt__p_Xapian__QueryParserError,
56775   &_swigt__p_Xapian__RSet,
56776   &_swigt__p_Xapian__RangeError,
56777   &_swigt__p_Xapian__RangeProcessor,
56778   &_swigt__p_Xapian__Registry,
56779   &_swigt__p_Xapian__RuntimeError,
56780   &_swigt__p_Xapian__SerialisationError,
56781   &_swigt__p_Xapian__SimpleStopper,
56782   &_swigt__p_Xapian__Stem,
56783   &_swigt__p_Xapian__StemImplementation,
56784   &_swigt__p_Xapian__Stopper,
56785   &_swigt__p_Xapian__StringValueRangeProcessor,
56786   &_swigt__p_Xapian__TermGenerator,
56787   &_swigt__p_Xapian__TermIterator,
56788   &_swigt__p_Xapian__TfIdfWeight,
56789   &_swigt__p_Xapian__TradWeight,
56790   &_swigt__p_Xapian__UnimplementedError,
56791   &_swigt__p_Xapian__ValueCountMatchSpy,
56792   &_swigt__p_Xapian__ValueIterator,
56793   &_swigt__p_Xapian__ValueMapPostingSource,
56794   &_swigt__p_Xapian__ValuePostingSource,
56795   &_swigt__p_Xapian__ValueRangeProcessor,
56796   &_swigt__p_Xapian__ValueSetMatchDecider,
56797   &_swigt__p_Xapian__ValueWeightPostingSource,
56798   &_swigt__p_Xapian__Weight,
56799   &_swigt__p_Xapian__WildcardError,
56800   &_swigt__p_Xapian__WritableDatabase,
56801   &_swigt__p_char,
56802   &_swigt__p_compaction_level,
56803   &_swigt__p_docid_order,
56804   &_swigt__p_double,
56805   &_swigt__p_feature_flag,
56806   &_swigt__p_flags,
56807   &_swigt__p_int,
56808   &_swigt__p_std__invalid_argument,
56809   &_swigt__p_std__ostream,
56810   &_swigt__p_std__string,
56811   &_swigt__p_stem_strategy,
56812   &_swigt__p_stop_strategy,
56813   &_swigt__p_swig__SwigPyIterator,
56814   &_swigt__p_type_smoothing,
56815   &_swigt__p_unsigned_int,
56816   &_swigt__p_unsigned_long,
56817 };
56818 
56819 static swig_cast_info _swigc__p_Xapian__AssertionError[] = {  {&_swigt__p_Xapian__AssertionError, 0, 0, 0},{0, 0, 0, 0}};
56820 static swig_cast_info _swigc__p_Xapian__BB2Weight[] = {  {&_swigt__p_Xapian__BB2Weight, 0, 0, 0},{0, 0, 0, 0}};
56821 static swig_cast_info _swigc__p_Xapian__BM25PlusWeight[] = {  {&_swigt__p_Xapian__BM25PlusWeight, 0, 0, 0},{0, 0, 0, 0}};
56822 static swig_cast_info _swigc__p_Xapian__BM25Weight[] = {  {&_swigt__p_Xapian__BM25Weight, 0, 0, 0},{0, 0, 0, 0}};
56823 static swig_cast_info _swigc__p_Xapian__BoolWeight[] = {  {&_swigt__p_Xapian__BoolWeight, 0, 0, 0},{0, 0, 0, 0}};
56824 static swig_cast_info _swigc__p_Xapian__Compactor[] = {  {&_swigt__p_Xapian__Compactor, 0, 0, 0},{0, 0, 0, 0}};
56825 static swig_cast_info _swigc__p_Xapian__CoordWeight[] = {  {&_swigt__p_Xapian__CoordWeight, 0, 0, 0},{0, 0, 0, 0}};
56826 static swig_cast_info _swigc__p_Xapian__DLHWeight[] = {  {&_swigt__p_Xapian__DLHWeight, 0, 0, 0},{0, 0, 0, 0}};
56827 static swig_cast_info _swigc__p_Xapian__DPHWeight[] = {  {&_swigt__p_Xapian__DPHWeight, 0, 0, 0},{0, 0, 0, 0}};
56828 static swig_cast_info _swigc__p_Xapian__Database[] = {  {&_swigt__p_Xapian__Database, 0, 0, 0},  {&_swigt__p_Xapian__WritableDatabase, _p_Xapian__WritableDatabaseTo_p_Xapian__Database, 0, 0},{0, 0, 0, 0}};
56829 static swig_cast_info _swigc__p_Xapian__DatabaseClosedError[] = {  {&_swigt__p_Xapian__DatabaseClosedError, 0, 0, 0},{0, 0, 0, 0}};
56830 static swig_cast_info _swigc__p_Xapian__DatabaseCorruptError[] = {  {&_swigt__p_Xapian__DatabaseCorruptError, 0, 0, 0},{0, 0, 0, 0}};
56831 static swig_cast_info _swigc__p_Xapian__DatabaseCreateError[] = {  {&_swigt__p_Xapian__DatabaseCreateError, 0, 0, 0},{0, 0, 0, 0}};
56832 static swig_cast_info _swigc__p_Xapian__DatabaseError[] = {  {&_swigt__p_Xapian__DatabaseVersionError, _p_Xapian__DatabaseVersionErrorTo_p_Xapian__DatabaseError, 0, 0},  {&_swigt__p_Xapian__DatabaseLockError, _p_Xapian__DatabaseLockErrorTo_p_Xapian__DatabaseError, 0, 0},  {&_swigt__p_Xapian__DatabaseModifiedError, _p_Xapian__DatabaseModifiedErrorTo_p_Xapian__DatabaseError, 0, 0},  {&_swigt__p_Xapian__DatabaseOpeningError, _p_Xapian__DatabaseOpeningErrorTo_p_Xapian__DatabaseError, 0, 0},  {&_swigt__p_Xapian__DatabaseClosedError, _p_Xapian__DatabaseClosedErrorTo_p_Xapian__DatabaseError, 0, 0},  {&_swigt__p_Xapian__DatabaseNotFoundError, _p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__DatabaseError, 0, 0},  {&_swigt__p_Xapian__DatabaseError, 0, 0, 0},  {&_swigt__p_Xapian__DatabaseCreateError, _p_Xapian__DatabaseCreateErrorTo_p_Xapian__DatabaseError, 0, 0},  {&_swigt__p_Xapian__DatabaseCorruptError, _p_Xapian__DatabaseCorruptErrorTo_p_Xapian__DatabaseError, 0, 0},{0, 0, 0, 0}};
56833 static swig_cast_info _swigc__p_Xapian__DatabaseLockError[] = {  {&_swigt__p_Xapian__DatabaseLockError, 0, 0, 0},{0, 0, 0, 0}};
56834 static swig_cast_info _swigc__p_Xapian__DatabaseModifiedError[] = {  {&_swigt__p_Xapian__DatabaseModifiedError, 0, 0, 0},{0, 0, 0, 0}};
56835 static swig_cast_info _swigc__p_Xapian__DatabaseNotFoundError[] = {  {&_swigt__p_Xapian__DatabaseNotFoundError, 0, 0, 0},{0, 0, 0, 0}};
56836 static swig_cast_info _swigc__p_Xapian__DatabaseOpeningError[] = {  {&_swigt__p_Xapian__DatabaseVersionError, _p_Xapian__DatabaseVersionErrorTo_p_Xapian__DatabaseOpeningError, 0, 0},  {&_swigt__p_Xapian__DatabaseOpeningError, 0, 0, 0},  {&_swigt__p_Xapian__DatabaseNotFoundError, _p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__DatabaseOpeningError, 0, 0},{0, 0, 0, 0}};
56837 static swig_cast_info _swigc__p_Xapian__DatabaseVersionError[] = {  {&_swigt__p_Xapian__DatabaseVersionError, 0, 0, 0},{0, 0, 0, 0}};
56838 static swig_cast_info _swigc__p_Xapian__DateRangeProcessor[] = {  {&_swigt__p_Xapian__DateRangeProcessor, 0, 0, 0},{0, 0, 0, 0}};
56839 static swig_cast_info _swigc__p_Xapian__DateValueRangeProcessor[] = {  {&_swigt__p_Xapian__DateValueRangeProcessor, 0, 0, 0},{0, 0, 0, 0}};
56840 static swig_cast_info _swigc__p_Xapian__DecreasingValueWeightPostingSource[] = {  {&_swigt__p_Xapian__DecreasingValueWeightPostingSource, 0, 0, 0},{0, 0, 0, 0}};
56841 static swig_cast_info _swigc__p_Xapian__DocNotFoundError[] = {  {&_swigt__p_Xapian__DocNotFoundError, 0, 0, 0},{0, 0, 0, 0}};
56842 static swig_cast_info _swigc__p_Xapian__Document[] = {  {&_swigt__p_Xapian__Document, 0, 0, 0},{0, 0, 0, 0}};
56843 static swig_cast_info _swigc__p_Xapian__ESet[] = {  {&_swigt__p_Xapian__ESet, 0, 0, 0},{0, 0, 0, 0}};
56844 static swig_cast_info _swigc__p_Xapian__ESetIterator[] = {  {&_swigt__p_Xapian__ESetIterator, 0, 0, 0},{0, 0, 0, 0}};
56845 static swig_cast_info _swigc__p_Xapian__Enquire[] = {  {&_swigt__p_Xapian__Enquire, 0, 0, 0},{0, 0, 0, 0}};
56846 static swig_cast_info _swigc__p_Xapian__Error[] = {  {&_swigt__p_Xapian__DocNotFoundError, _p_Xapian__DocNotFoundErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__WildcardError, _p_Xapian__WildcardErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__DatabaseNotFoundError, _p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__DatabaseLockError, _p_Xapian__DatabaseLockErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__LogicError, _p_Xapian__LogicErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__NetworkTimeoutError, _p_Xapian__NetworkTimeoutErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__DatabaseCreateError, _p_Xapian__DatabaseCreateErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__FeatureUnavailableError, _p_Xapian__FeatureUnavailableErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__InternalError, _p_Xapian__InternalErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__UnimplementedError, _p_Xapian__UnimplementedErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__DatabaseClosedError, _p_Xapian__DatabaseClosedErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__DatabaseModifiedError, _p_Xapian__DatabaseModifiedErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__DatabaseError, _p_Xapian__DatabaseErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__DatabaseOpeningError, _p_Xapian__DatabaseOpeningErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__RuntimeError, _p_Xapian__RuntimeErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__RangeError, _p_Xapian__RangeErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__InvalidOperationError, _p_Xapian__InvalidOperationErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__AssertionError, _p_Xapian__AssertionErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__DatabaseVersionError, _p_Xapian__DatabaseVersionErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__SerialisationError, _p_Xapian__SerialisationErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__Error, 0, 0, 0},  {&_swigt__p_Xapian__NetworkError, _p_Xapian__NetworkErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__InvalidArgumentError, _p_Xapian__InvalidArgumentErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__DatabaseCorruptError, _p_Xapian__DatabaseCorruptErrorTo_p_Xapian__Error, 0, 0},  {&_swigt__p_Xapian__QueryParserError, _p_Xapian__QueryParserErrorTo_p_Xapian__Error, 0, 0},{0, 0, 0, 0}};
56847 static swig_cast_info _swigc__p_Xapian__ExpandDeciderFilterTerms[] = {{&_swigt__p_Xapian__ExpandDeciderFilterTerms, 0, 0, 0},{0, 0, 0, 0}};
56848 static swig_cast_info _swigc__p_Xapian__ExpandDecider[] = {  {&_swigt__p_Xapian__ExpandDeciderFilterPrefix, _p_Xapian__ExpandDeciderFilterPrefixTo_p_Xapian__ExpandDecider, 0, 0},  {&_swigt__p_Xapian__ExpandDecider, 0, 0, 0},  {&_swigt__p_Xapian__ExpandDeciderAnd, _p_Xapian__ExpandDeciderAndTo_p_Xapian__ExpandDecider, 0, 0},  {&_swigt__p_Xapian__ExpandDeciderFilterTerms, _p_Xapian__ExpandDeciderFilterTermsTo_p_Xapian__ExpandDecider, 0, 0},{0, 0, 0, 0}};
56849 static swig_cast_info _swigc__p_Xapian__ExpandDeciderAnd[] = {  {&_swigt__p_Xapian__ExpandDeciderAnd, 0, 0, 0},{0, 0, 0, 0}};
56850 static swig_cast_info _swigc__p_Xapian__ExpandDeciderFilterPrefix[] = {  {&_swigt__p_Xapian__ExpandDeciderFilterPrefix, 0, 0, 0},{0, 0, 0, 0}};
56851 static swig_cast_info _swigc__p_Xapian__FeatureUnavailableError[] = {  {&_swigt__p_Xapian__FeatureUnavailableError, 0, 0, 0},{0, 0, 0, 0}};
56852 static swig_cast_info _swigc__p_Xapian__FieldProcessor[] = {  {&_swigt__p_Xapian__FieldProcessor, 0, 0, 0},{0, 0, 0, 0}};
56853 static swig_cast_info _swigc__p_Xapian__FixedWeightPostingSource[] = {  {&_swigt__p_Xapian__FixedWeightPostingSource, 0, 0, 0},{0, 0, 0, 0}};
56854 static swig_cast_info _swigc__p_Xapian__GreatCircleMetric[] = {  {&_swigt__p_Xapian__GreatCircleMetric, 0, 0, 0},{0, 0, 0, 0}};
56855 static swig_cast_info _swigc__p_Xapian__IfB2Weight[] = {  {&_swigt__p_Xapian__IfB2Weight, 0, 0, 0},{0, 0, 0, 0}};
56856 static swig_cast_info _swigc__p_Xapian__InL2Weight[] = {  {&_swigt__p_Xapian__InL2Weight, 0, 0, 0},{0, 0, 0, 0}};
56857 static swig_cast_info _swigc__p_Xapian__IneB2Weight[] = {  {&_swigt__p_Xapian__IneB2Weight, 0, 0, 0},{0, 0, 0, 0}};
56858 static swig_cast_info _swigc__p_Xapian__InternalError[] = {  {&_swigt__p_Xapian__InternalError, 0, 0, 0},{0, 0, 0, 0}};
56859 static swig_cast_info _swigc__p_Xapian__InvalidArgumentError[] = {  {&_swigt__p_Xapian__InvalidArgumentError, 0, 0, 0},{0, 0, 0, 0}};
56860 static swig_cast_info _swigc__p_Xapian__InvalidOperationError[] = {  {&_swigt__p_Xapian__InvalidOperationError, 0, 0, 0},{0, 0, 0, 0}};
56861 static swig_cast_info _swigc__p_Xapian__KeyMaker[] = {  {&_swigt__p_Xapian__KeyMaker, 0, 0, 0},  {&_swigt__p_Xapian__MultiValueKeyMaker, _p_Xapian__MultiValueKeyMakerTo_p_Xapian__KeyMaker, 0, 0},  {&_swigt__p_Xapian__LatLongDistanceKeyMaker, _p_Xapian__LatLongDistanceKeyMakerTo_p_Xapian__KeyMaker, 0, 0},{0, 0, 0, 0}};
56862 static swig_cast_info _swigc__p_Xapian__LMWeight[] = {  {&_swigt__p_Xapian__LMWeight, 0, 0, 0},{0, 0, 0, 0}};
56863 static swig_cast_info _swigc__p_Xapian__LatLongCoord[] = {  {&_swigt__p_Xapian__LatLongCoord, 0, 0, 0},{0, 0, 0, 0}};
56864 static swig_cast_info _swigc__p_Xapian__LatLongCoords[] = {  {&_swigt__p_Xapian__LatLongCoords, 0, 0, 0},{0, 0, 0, 0}};
56865 static swig_cast_info _swigc__p_Xapian__LatLongCoordsIterator[] = {  {&_swigt__p_Xapian__LatLongCoordsIterator, 0, 0, 0},{0, 0, 0, 0}};
56866 static swig_cast_info _swigc__p_Xapian__LatLongDistanceKeyMaker[] = {  {&_swigt__p_Xapian__LatLongDistanceKeyMaker, 0, 0, 0},{0, 0, 0, 0}};
56867 static swig_cast_info _swigc__p_Xapian__LatLongDistancePostingSource[] = {  {&_swigt__p_Xapian__LatLongDistancePostingSource, 0, 0, 0},{0, 0, 0, 0}};
56868 static swig_cast_info _swigc__p_Xapian__LatLongMetric[] = {  {&_swigt__p_Xapian__LatLongMetric, 0, 0, 0},  {&_swigt__p_Xapian__GreatCircleMetric, _p_Xapian__GreatCircleMetricTo_p_Xapian__LatLongMetric, 0, 0},{0, 0, 0, 0}};
56869 static swig_cast_info _swigc__p_Xapian__LogicError[] = {  {&_swigt__p_Xapian__AssertionError, _p_Xapian__AssertionErrorTo_p_Xapian__LogicError, 0, 0},  {&_swigt__p_Xapian__InvalidOperationError, _p_Xapian__InvalidOperationErrorTo_p_Xapian__LogicError, 0, 0},  {&_swigt__p_Xapian__UnimplementedError, _p_Xapian__UnimplementedErrorTo_p_Xapian__LogicError, 0, 0},  {&_swigt__p_Xapian__LogicError, 0, 0, 0},  {&_swigt__p_Xapian__InvalidArgumentError, _p_Xapian__InvalidArgumentErrorTo_p_Xapian__LogicError, 0, 0},{0, 0, 0, 0}};
56870 static swig_cast_info _swigc__p_Xapian__MSet[] = {  {&_swigt__p_Xapian__MSet, 0, 0, 0},{0, 0, 0, 0}};
56871 static swig_cast_info _swigc__p_Xapian__MSetIterator[] = {  {&_swigt__p_Xapian__MSetIterator, 0, 0, 0},{0, 0, 0, 0}};
56872 static swig_cast_info _swigc__p_Xapian__MatchDecider[] = {  {&_swigt__p_Xapian__MatchDecider, 0, 0, 0},  {&_swigt__p_Xapian__ValueSetMatchDecider, _p_Xapian__ValueSetMatchDeciderTo_p_Xapian__MatchDecider, 0, 0},{0, 0, 0, 0}};
56873 static swig_cast_info _swigc__p_Xapian__MatchSpy[] = {  {&_swigt__p_Xapian__MatchSpy, 0, 0, 0},  {&_swigt__p_Xapian__ValueCountMatchSpy, _p_Xapian__ValueCountMatchSpyTo_p_Xapian__MatchSpy, 0, 0},{0, 0, 0, 0}};
56874 static swig_cast_info _swigc__p_Xapian__MultiValueKeyMaker[] = {  {&_swigt__p_Xapian__MultiValueKeyMaker, 0, 0, 0},{0, 0, 0, 0}};
56875 static swig_cast_info _swigc__p_Xapian__NetworkError[] = {  {&_swigt__p_Xapian__NetworkError, 0, 0, 0},  {&_swigt__p_Xapian__NetworkTimeoutError, _p_Xapian__NetworkTimeoutErrorTo_p_Xapian__NetworkError, 0, 0},{0, 0, 0, 0}};
56876 static swig_cast_info _swigc__p_Xapian__NetworkTimeoutError[] = {  {&_swigt__p_Xapian__NetworkTimeoutError, 0, 0, 0},{0, 0, 0, 0}};
56877 static swig_cast_info _swigc__p_Xapian__NumberRangeProcessor[] = {  {&_swigt__p_Xapian__NumberRangeProcessor, 0, 0, 0},{0, 0, 0, 0}};
56878 static swig_cast_info _swigc__p_Xapian__NumberValueRangeProcessor[] = {  {&_swigt__p_Xapian__NumberValueRangeProcessor, 0, 0, 0},{0, 0, 0, 0}};
56879 static swig_cast_info _swigc__p_Xapian__PL2PlusWeight[] = {  {&_swigt__p_Xapian__PL2PlusWeight, 0, 0, 0},{0, 0, 0, 0}};
56880 static swig_cast_info _swigc__p_Xapian__PL2Weight[] = {  {&_swigt__p_Xapian__PL2Weight, 0, 0, 0},{0, 0, 0, 0}};
56881 static swig_cast_info _swigc__p_Xapian__PositionIterator[] = {  {&_swigt__p_Xapian__PositionIterator, 0, 0, 0},{0, 0, 0, 0}};
56882 static swig_cast_info _swigc__p_Xapian__PostingIterator[] = {  {&_swigt__p_Xapian__PostingIterator, 0, 0, 0},{0, 0, 0, 0}};
56883 static swig_cast_info _swigc__p_Xapian__PostingSource[] = {  {&_swigt__p_Xapian__PostingSource, 0, 0, 0},  {&_swigt__p_Xapian__ValuePostingSource, _p_Xapian__ValuePostingSourceTo_p_Xapian__PostingSource, 0, 0},  {&_swigt__p_Xapian__ValueWeightPostingSource, _p_Xapian__ValueWeightPostingSourceTo_p_Xapian__PostingSource, 0, 0},  {&_swigt__p_Xapian__DecreasingValueWeightPostingSource, _p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__PostingSource, 0, 0},  {&_swigt__p_Xapian__ValueMapPostingSource, _p_Xapian__ValueMapPostingSourceTo_p_Xapian__PostingSource, 0, 0},  {&_swigt__p_Xapian__LatLongDistancePostingSource, _p_Xapian__LatLongDistancePostingSourceTo_p_Xapian__PostingSource, 0, 0},  {&_swigt__p_Xapian__FixedWeightPostingSource, _p_Xapian__FixedWeightPostingSourceTo_p_Xapian__PostingSource, 0, 0},{0, 0, 0, 0}};
56884 static swig_cast_info _swigc__p_Xapian__Query[] = {  {&_swigt__p_Xapian__Query, 0, 0, 0},{0, 0, 0, 0}};
56885 static swig_cast_info _swigc__p_Xapian__QueryParser[] = {  {&_swigt__p_Xapian__QueryParser, 0, 0, 0},{0, 0, 0, 0}};
56886 static swig_cast_info _swigc__p_Xapian__QueryParserError[] = {  {&_swigt__p_Xapian__QueryParserError, 0, 0, 0},{0, 0, 0, 0}};
56887 static swig_cast_info _swigc__p_Xapian__RSet[] = {  {&_swigt__p_Xapian__RSet, 0, 0, 0},{0, 0, 0, 0}};
56888 static swig_cast_info _swigc__p_Xapian__RangeError[] = {  {&_swigt__p_Xapian__RangeError, 0, 0, 0},{0, 0, 0, 0}};
56889 static swig_cast_info _swigc__p_Xapian__RangeProcessor[] = {  {&_swigt__p_Xapian__RangeProcessor, 0, 0, 0},  {&_swigt__p_Xapian__DateRangeProcessor, _p_Xapian__DateRangeProcessorTo_p_Xapian__RangeProcessor, 0, 0},  {&_swigt__p_Xapian__NumberRangeProcessor, _p_Xapian__NumberRangeProcessorTo_p_Xapian__RangeProcessor, 0, 0},{0, 0, 0, 0}};
56890 static swig_cast_info _swigc__p_Xapian__Registry[] = {  {&_swigt__p_Xapian__Registry, 0, 0, 0},{0, 0, 0, 0}};
56891 static swig_cast_info _swigc__p_Xapian__RuntimeError[] = {  {&_swigt__p_Xapian__DocNotFoundError, _p_Xapian__DocNotFoundErrorTo_p_Xapian__RuntimeError, 0, 0},  {&_swigt__p_Xapian__WildcardError, _p_Xapian__WildcardErrorTo_p_Xapian__RuntimeError, 0, 0},  {&_swigt__p_Xapian__DatabaseNotFoundError, _p_Xapian__DatabaseNotFoundErrorTo_p_Xapian__RuntimeError, 0, 0},  {&_swigt__p_Xapian__DatabaseLockError, _p_Xapian__DatabaseLockErrorTo_p_Xapian__RuntimeError, 0, 0},  {&_swigt__p_Xapian__NetworkTimeoutError, _p_Xapian__NetworkTimeoutErrorTo_p_Xapian__RuntimeError, 0, 0},  {&_swigt__p_Xapian__FeatureUnavailableError, _p_Xapian__FeatureUnavailableErrorTo_p_Xapian__RuntimeError, 0, 0},  {&_swigt__p_Xapian__DatabaseCreateError, _p_Xapian__DatabaseCreateErrorTo_p_Xapian__RuntimeError, 0, 0},  {&_swigt__p_Xapian__InternalError, _p_Xapian__InternalErrorTo_p_Xapian__RuntimeError, 0, 0},  {&_swigt__p_Xapian__DatabaseModifiedError, _p_Xapian__DatabaseModifiedErrorTo_p_Xapian__RuntimeError, 0, 0},  {&_swigt__p_Xapian__DatabaseClosedError, _p_Xapian__DatabaseClosedErrorTo_p_Xapian__RuntimeError, 0, 0},  {&_swigt__p_Xapian__DatabaseError, _p_Xapian__DatabaseErrorTo_p_Xapian__RuntimeError, 0, 0},  {&_swigt__p_Xapian__RangeError, _p_Xapian__RangeErrorTo_p_Xapian__RuntimeError, 0, 0},  {&_swigt__p_Xapian__RuntimeError, 0, 0, 0},  {&_swigt__p_Xapian__DatabaseOpeningError, _p_Xapian__DatabaseOpeningErrorTo_p_Xapian__RuntimeError, 0, 0},  {&_swigt__p_Xapian__DatabaseVersionError, _p_Xapian__DatabaseVersionErrorTo_p_Xapian__RuntimeError, 0, 0},  {&_swigt__p_Xapian__SerialisationError, _p_Xapian__SerialisationErrorTo_p_Xapian__RuntimeError, 0, 0},  {&_swigt__p_Xapian__NetworkError, _p_Xapian__NetworkErrorTo_p_Xapian__RuntimeError, 0, 0},  {&_swigt__p_Xapian__DatabaseCorruptError, _p_Xapian__DatabaseCorruptErrorTo_p_Xapian__RuntimeError, 0, 0},  {&_swigt__p_Xapian__QueryParserError, _p_Xapian__QueryParserErrorTo_p_Xapian__RuntimeError, 0, 0},{0, 0, 0, 0}};
56892 static swig_cast_info _swigc__p_Xapian__SerialisationError[] = {  {&_swigt__p_Xapian__SerialisationError, 0, 0, 0},{0, 0, 0, 0}};
56893 static swig_cast_info _swigc__p_Xapian__SimpleStopper[] = {  {&_swigt__p_Xapian__SimpleStopper, 0, 0, 0},{0, 0, 0, 0}};
56894 static swig_cast_info _swigc__p_Xapian__Stem[] = {  {&_swigt__p_Xapian__Stem, 0, 0, 0},{0, 0, 0, 0}};
56895 static swig_cast_info _swigc__p_Xapian__StemImplementation[] = {  {&_swigt__p_Xapian__StemImplementation, 0, 0, 0},{0, 0, 0, 0}};
56896 static swig_cast_info _swigc__p_Xapian__Stopper[] = {  {&_swigt__p_Xapian__Stopper, 0, 0, 0},  {&_swigt__p_Xapian__SimpleStopper, _p_Xapian__SimpleStopperTo_p_Xapian__Stopper, 0, 0},{0, 0, 0, 0}};
56897 static swig_cast_info _swigc__p_Xapian__StringValueRangeProcessor[] = {  {&_swigt__p_Xapian__StringValueRangeProcessor, 0, 0, 0},  {&_swigt__p_Xapian__DateValueRangeProcessor, _p_Xapian__DateValueRangeProcessorTo_p_Xapian__StringValueRangeProcessor, 0, 0},  {&_swigt__p_Xapian__NumberValueRangeProcessor, _p_Xapian__NumberValueRangeProcessorTo_p_Xapian__StringValueRangeProcessor, 0, 0},{0, 0, 0, 0}};
56898 static swig_cast_info _swigc__p_Xapian__TermGenerator[] = {  {&_swigt__p_Xapian__TermGenerator, 0, 0, 0},{0, 0, 0, 0}};
56899 static swig_cast_info _swigc__p_Xapian__TermIterator[] = {  {&_swigt__p_Xapian__TermIterator, 0, 0, 0},{0, 0, 0, 0}};
56900 static swig_cast_info _swigc__p_Xapian__TfIdfWeight[] = {  {&_swigt__p_Xapian__TfIdfWeight, 0, 0, 0},{0, 0, 0, 0}};
56901 static swig_cast_info _swigc__p_Xapian__TradWeight[] = {  {&_swigt__p_Xapian__TradWeight, 0, 0, 0},{0, 0, 0, 0}};
56902 static swig_cast_info _swigc__p_Xapian__UnimplementedError[] = {  {&_swigt__p_Xapian__UnimplementedError, 0, 0, 0},{0, 0, 0, 0}};
56903 static swig_cast_info _swigc__p_Xapian__ValueCountMatchSpy[] = {  {&_swigt__p_Xapian__ValueCountMatchSpy, 0, 0, 0},{0, 0, 0, 0}};
56904 static swig_cast_info _swigc__p_Xapian__ValueIterator[] = {  {&_swigt__p_Xapian__ValueIterator, 0, 0, 0},{0, 0, 0, 0}};
56905 static swig_cast_info _swigc__p_Xapian__ValueMapPostingSource[] = {  {&_swigt__p_Xapian__ValueMapPostingSource, 0, 0, 0},{0, 0, 0, 0}};
56906 static swig_cast_info _swigc__p_Xapian__ValuePostingSource[] = {  {&_swigt__p_Xapian__ValuePostingSource, 0, 0, 0},  {&_swigt__p_Xapian__ValueWeightPostingSource, _p_Xapian__ValueWeightPostingSourceTo_p_Xapian__ValuePostingSource, 0, 0},  {&_swigt__p_Xapian__DecreasingValueWeightPostingSource, _p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__ValuePostingSource, 0, 0},  {&_swigt__p_Xapian__ValueMapPostingSource, _p_Xapian__ValueMapPostingSourceTo_p_Xapian__ValuePostingSource, 0, 0},  {&_swigt__p_Xapian__LatLongDistancePostingSource, _p_Xapian__LatLongDistancePostingSourceTo_p_Xapian__ValuePostingSource, 0, 0},{0, 0, 0, 0}};
56907 static swig_cast_info _swigc__p_Xapian__ValueRangeProcessor[] = {  {&_swigt__p_Xapian__ValueRangeProcessor, 0, 0, 0},  {&_swigt__p_Xapian__StringValueRangeProcessor, _p_Xapian__StringValueRangeProcessorTo_p_Xapian__ValueRangeProcessor, 0, 0},  {&_swigt__p_Xapian__DateValueRangeProcessor, _p_Xapian__DateValueRangeProcessorTo_p_Xapian__ValueRangeProcessor, 0, 0},  {&_swigt__p_Xapian__NumberValueRangeProcessor, _p_Xapian__NumberValueRangeProcessorTo_p_Xapian__ValueRangeProcessor, 0, 0},{0, 0, 0, 0}};
56908 static swig_cast_info _swigc__p_Xapian__ValueSetMatchDecider[] = {  {&_swigt__p_Xapian__ValueSetMatchDecider, 0, 0, 0},{0, 0, 0, 0}};
56909 static swig_cast_info _swigc__p_Xapian__ValueWeightPostingSource[] = {  {&_swigt__p_Xapian__ValueWeightPostingSource, 0, 0, 0},  {&_swigt__p_Xapian__DecreasingValueWeightPostingSource, _p_Xapian__DecreasingValueWeightPostingSourceTo_p_Xapian__ValueWeightPostingSource, 0, 0},{0, 0, 0, 0}};
56910 static swig_cast_info _swigc__p_Xapian__Weight[] = {  {&_swigt__p_Xapian__DPHWeight, _p_Xapian__DPHWeightTo_p_Xapian__Weight, 0, 0},  {&_swigt__p_Xapian__PL2Weight, _p_Xapian__PL2WeightTo_p_Xapian__Weight, 0, 0},  {&_swigt__p_Xapian__DLHWeight, _p_Xapian__DLHWeightTo_p_Xapian__Weight, 0, 0},  {&_swigt__p_Xapian__BB2Weight, _p_Xapian__BB2WeightTo_p_Xapian__Weight, 0, 0},  {&_swigt__p_Xapian__IneB2Weight, _p_Xapian__IneB2WeightTo_p_Xapian__Weight, 0, 0},  {&_swigt__p_Xapian__IfB2Weight, _p_Xapian__IfB2WeightTo_p_Xapian__Weight, 0, 0},  {&_swigt__p_Xapian__InL2Weight, _p_Xapian__InL2WeightTo_p_Xapian__Weight, 0, 0},  {&_swigt__p_Xapian__TradWeight, _p_Xapian__TradWeightTo_p_Xapian__Weight, 0, 0},  {&_swigt__p_Xapian__TfIdfWeight, _p_Xapian__TfIdfWeightTo_p_Xapian__Weight, 0, 0},  {&_swigt__p_Xapian__BoolWeight, _p_Xapian__BoolWeightTo_p_Xapian__Weight, 0, 0},  {&_swigt__p_Xapian__CoordWeight, _p_Xapian__CoordWeightTo_p_Xapian__Weight, 0, 0},  {&_swigt__p_Xapian__LMWeight, _p_Xapian__LMWeightTo_p_Xapian__Weight, 0, 0},  {&_swigt__p_Xapian__PL2PlusWeight, _p_Xapian__PL2PlusWeightTo_p_Xapian__Weight, 0, 0},  {&_swigt__p_Xapian__Weight, 0, 0, 0},  {&_swigt__p_Xapian__BM25PlusWeight, _p_Xapian__BM25PlusWeightTo_p_Xapian__Weight, 0, 0},  {&_swigt__p_Xapian__BM25Weight, _p_Xapian__BM25WeightTo_p_Xapian__Weight, 0, 0},{0, 0, 0, 0}};
56911 static swig_cast_info _swigc__p_Xapian__WildcardError[] = {  {&_swigt__p_Xapian__WildcardError, 0, 0, 0},{0, 0, 0, 0}};
56912 static swig_cast_info _swigc__p_Xapian__WritableDatabase[] = {  {&_swigt__p_Xapian__WritableDatabase, 0, 0, 0},{0, 0, 0, 0}};
56913 static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
56914 static swig_cast_info _swigc__p_compaction_level[] = {  {&_swigt__p_compaction_level, 0, 0, 0},{0, 0, 0, 0}};
56915 static swig_cast_info _swigc__p_docid_order[] = {  {&_swigt__p_docid_order, 0, 0, 0},{0, 0, 0, 0}};
56916 static swig_cast_info _swigc__p_double[] = {  {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
56917 static swig_cast_info _swigc__p_feature_flag[] = {  {&_swigt__p_feature_flag, 0, 0, 0},{0, 0, 0, 0}};
56918 static swig_cast_info _swigc__p_flags[] = {  {&_swigt__p_flags, 0, 0, 0},{0, 0, 0, 0}};
56919 static swig_cast_info _swigc__p_int[] = {  {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
56920 static swig_cast_info _swigc__p_std__invalid_argument[] = {  {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}};
56921 static swig_cast_info _swigc__p_std__ostream[] = {  {&_swigt__p_std__ostream, 0, 0, 0},{0, 0, 0, 0}};
56922 static swig_cast_info _swigc__p_std__string[] = {  {&_swigt__p_std__string, 0, 0, 0},{0, 0, 0, 0}};
56923 static swig_cast_info _swigc__p_stem_strategy[] = {  {&_swigt__p_stem_strategy, 0, 0, 0},{0, 0, 0, 0}};
56924 static swig_cast_info _swigc__p_stop_strategy[] = {  {&_swigt__p_stop_strategy, 0, 0, 0},{0, 0, 0, 0}};
56925 static swig_cast_info _swigc__p_swig__SwigPyIterator[] = {  {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}};
56926 static swig_cast_info _swigc__p_type_smoothing[] = {  {&_swigt__p_type_smoothing, 0, 0, 0},{0, 0, 0, 0}};
56927 static swig_cast_info _swigc__p_unsigned_int[] = {  {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
56928 static swig_cast_info _swigc__p_unsigned_long[] = {  {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
56929 
56930 static swig_cast_info *swig_cast_initial[] = {
56931   _swigc__p_Xapian__AssertionError,
56932   _swigc__p_Xapian__BB2Weight,
56933   _swigc__p_Xapian__BM25PlusWeight,
56934   _swigc__p_Xapian__BM25Weight,
56935   _swigc__p_Xapian__BoolWeight,
56936   _swigc__p_Xapian__Compactor,
56937   _swigc__p_Xapian__CoordWeight,
56938   _swigc__p_Xapian__DLHWeight,
56939   _swigc__p_Xapian__DPHWeight,
56940   _swigc__p_Xapian__Database,
56941   _swigc__p_Xapian__DatabaseClosedError,
56942   _swigc__p_Xapian__DatabaseCorruptError,
56943   _swigc__p_Xapian__DatabaseCreateError,
56944   _swigc__p_Xapian__DatabaseError,
56945   _swigc__p_Xapian__DatabaseLockError,
56946   _swigc__p_Xapian__DatabaseModifiedError,
56947   _swigc__p_Xapian__DatabaseNotFoundError,
56948   _swigc__p_Xapian__DatabaseOpeningError,
56949   _swigc__p_Xapian__DatabaseVersionError,
56950   _swigc__p_Xapian__DateRangeProcessor,
56951   _swigc__p_Xapian__DateValueRangeProcessor,
56952   _swigc__p_Xapian__DecreasingValueWeightPostingSource,
56953   _swigc__p_Xapian__DocNotFoundError,
56954   _swigc__p_Xapian__Document,
56955   _swigc__p_Xapian__ESet,
56956   _swigc__p_Xapian__ESetIterator,
56957   _swigc__p_Xapian__Enquire,
56958   _swigc__p_Xapian__Error,
56959   _swigc__p_Xapian__ExpandDecider,
56960   _swigc__p_Xapian__ExpandDeciderAnd,
56961   _swigc__p_Xapian__ExpandDeciderFilterPrefix,
56962   _swigc__p_Xapian__ExpandDeciderFilterTerms,
56963   _swigc__p_Xapian__FeatureUnavailableError,
56964   _swigc__p_Xapian__FieldProcessor,
56965   _swigc__p_Xapian__FixedWeightPostingSource,
56966   _swigc__p_Xapian__GreatCircleMetric,
56967   _swigc__p_Xapian__IfB2Weight,
56968   _swigc__p_Xapian__InL2Weight,
56969   _swigc__p_Xapian__IneB2Weight,
56970   _swigc__p_Xapian__InternalError,
56971   _swigc__p_Xapian__InvalidArgumentError,
56972   _swigc__p_Xapian__InvalidOperationError,
56973   _swigc__p_Xapian__KeyMaker,
56974   _swigc__p_Xapian__LMWeight,
56975   _swigc__p_Xapian__LatLongCoord,
56976   _swigc__p_Xapian__LatLongCoords,
56977   _swigc__p_Xapian__LatLongCoordsIterator,
56978   _swigc__p_Xapian__LatLongDistanceKeyMaker,
56979   _swigc__p_Xapian__LatLongDistancePostingSource,
56980   _swigc__p_Xapian__LatLongMetric,
56981   _swigc__p_Xapian__LogicError,
56982   _swigc__p_Xapian__MSet,
56983   _swigc__p_Xapian__MSetIterator,
56984   _swigc__p_Xapian__MatchDecider,
56985   _swigc__p_Xapian__MatchSpy,
56986   _swigc__p_Xapian__MultiValueKeyMaker,
56987   _swigc__p_Xapian__NetworkError,
56988   _swigc__p_Xapian__NetworkTimeoutError,
56989   _swigc__p_Xapian__NumberRangeProcessor,
56990   _swigc__p_Xapian__NumberValueRangeProcessor,
56991   _swigc__p_Xapian__PL2PlusWeight,
56992   _swigc__p_Xapian__PL2Weight,
56993   _swigc__p_Xapian__PositionIterator,
56994   _swigc__p_Xapian__PostingIterator,
56995   _swigc__p_Xapian__PostingSource,
56996   _swigc__p_Xapian__Query,
56997   _swigc__p_Xapian__QueryParser,
56998   _swigc__p_Xapian__QueryParserError,
56999   _swigc__p_Xapian__RSet,
57000   _swigc__p_Xapian__RangeError,
57001   _swigc__p_Xapian__RangeProcessor,
57002   _swigc__p_Xapian__Registry,
57003   _swigc__p_Xapian__RuntimeError,
57004   _swigc__p_Xapian__SerialisationError,
57005   _swigc__p_Xapian__SimpleStopper,
57006   _swigc__p_Xapian__Stem,
57007   _swigc__p_Xapian__StemImplementation,
57008   _swigc__p_Xapian__Stopper,
57009   _swigc__p_Xapian__StringValueRangeProcessor,
57010   _swigc__p_Xapian__TermGenerator,
57011   _swigc__p_Xapian__TermIterator,
57012   _swigc__p_Xapian__TfIdfWeight,
57013   _swigc__p_Xapian__TradWeight,
57014   _swigc__p_Xapian__UnimplementedError,
57015   _swigc__p_Xapian__ValueCountMatchSpy,
57016   _swigc__p_Xapian__ValueIterator,
57017   _swigc__p_Xapian__ValueMapPostingSource,
57018   _swigc__p_Xapian__ValuePostingSource,
57019   _swigc__p_Xapian__ValueRangeProcessor,
57020   _swigc__p_Xapian__ValueSetMatchDecider,
57021   _swigc__p_Xapian__ValueWeightPostingSource,
57022   _swigc__p_Xapian__Weight,
57023   _swigc__p_Xapian__WildcardError,
57024   _swigc__p_Xapian__WritableDatabase,
57025   _swigc__p_char,
57026   _swigc__p_compaction_level,
57027   _swigc__p_docid_order,
57028   _swigc__p_double,
57029   _swigc__p_feature_flag,
57030   _swigc__p_flags,
57031   _swigc__p_int,
57032   _swigc__p_std__invalid_argument,
57033   _swigc__p_std__ostream,
57034   _swigc__p_std__string,
57035   _swigc__p_stem_strategy,
57036   _swigc__p_stop_strategy,
57037   _swigc__p_swig__SwigPyIterator,
57038   _swigc__p_type_smoothing,
57039   _swigc__p_unsigned_int,
57040   _swigc__p_unsigned_long,
57041 };
57042 
57043 
57044 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
57045 
57046 static swig_const_info swig_const_table[] = {
57047 {0, 0, 0, 0.0, 0, 0}};
57048 
57049 #ifdef __cplusplus
57050 }
57051 #endif
57052 /* -----------------------------------------------------------------------------
57053  * Type initialization:
57054  * This problem is tough by the requirement that no dynamic
57055  * memory is used. Also, since swig_type_info structures store pointers to
57056  * swig_cast_info structures and swig_cast_info structures store pointers back
57057  * to swig_type_info structures, we need some lookup code at initialization.
57058  * The idea is that swig generates all the structures that are needed.
57059  * The runtime then collects these partially filled structures.
57060  * The SWIG_InitializeModule function takes these initial arrays out of
57061  * swig_module, and does all the lookup, filling in the swig_module.types
57062  * array with the correct data and linking the correct swig_cast_info
57063  * structures together.
57064  *
57065  * The generated swig_type_info structures are assigned statically to an initial
57066  * array. We just loop through that array, and handle each type individually.
57067  * First we lookup if this type has been already loaded, and if so, use the
57068  * loaded structure instead of the generated one. Then we have to fill in the
57069  * cast linked list. The cast data is initially stored in something like a
57070  * two-dimensional array. Each row corresponds to a type (there are the same
57071  * number of rows as there are in the swig_type_initial array). Each entry in
57072  * a column is one of the swig_cast_info structures for that type.
57073  * The cast_initial array is actually an array of arrays, because each row has
57074  * a variable number of columns. So to actually build the cast linked list,
57075  * we find the array of casts associated with the type, and loop through it
57076  * adding the casts to the list. The one last trick we need to do is making
57077  * sure the type pointer in the swig_cast_info struct is correct.
57078  *
57079  * First off, we lookup the cast->type name to see if it is already loaded.
57080  * There are three cases to handle:
57081  *  1) If the cast->type has already been loaded AND the type we are adding
57082  *     casting info to has not been loaded (it is in this module), THEN we
57083  *     replace the cast->type pointer with the type pointer that has already
57084  *     been loaded.
57085  *  2) If BOTH types (the one we are adding casting info to, and the
57086  *     cast->type) are loaded, THEN the cast info has already been loaded by
57087  *     the previous module so we just ignore it.
57088  *  3) Finally, if cast->type has not already been loaded, then we add that
57089  *     swig_cast_info to the linked list (because the cast->type) pointer will
57090  *     be correct.
57091  * ----------------------------------------------------------------------------- */
57092 
57093 #ifdef __cplusplus
57094 extern "C" {
57095 #if 0
57096 } /* c-mode */
57097 #endif
57098 #endif
57099 
57100 #if 0
57101 #define SWIGRUNTIME_DEBUG
57102 #endif
57103 
57104 
57105 SWIGRUNTIME void
SWIG_InitializeModule(void * clientdata)57106 SWIG_InitializeModule(void *clientdata) {
57107   size_t i;
57108   swig_module_info *module_head, *iter;
57109   int init;
57110 
57111   /* check to see if the circular list has been setup, if not, set it up */
57112   if (swig_module.next==0) {
57113     /* Initialize the swig_module */
57114     swig_module.type_initial = swig_type_initial;
57115     swig_module.cast_initial = swig_cast_initial;
57116     swig_module.next = &swig_module;
57117     init = 1;
57118   } else {
57119     init = 0;
57120   }
57121 
57122   /* Try and load any already created modules */
57123   module_head = SWIG_GetModule(clientdata);
57124   if (!module_head) {
57125     /* This is the first module loaded for this interpreter */
57126     /* so set the swig module into the interpreter */
57127     SWIG_SetModule(clientdata, &swig_module);
57128   } else {
57129     /* the interpreter has loaded a SWIG module, but has it loaded this one? */
57130     iter=module_head;
57131     do {
57132       if (iter==&swig_module) {
57133         /* Our module is already in the list, so there's nothing more to do. */
57134         return;
57135       }
57136       iter=iter->next;
57137     } while (iter!= module_head);
57138 
57139     /* otherwise we must add our module into the list */
57140     swig_module.next = module_head->next;
57141     module_head->next = &swig_module;
57142   }
57143 
57144   /* When multiple interpreters are used, a module could have already been initialized in
57145        a different interpreter, but not yet have a pointer in this interpreter.
57146        In this case, we do not want to continue adding types... everything should be
57147        set up already */
57148   if (init == 0) return;
57149 
57150   /* Now work on filling in swig_module.types */
57151 #ifdef SWIGRUNTIME_DEBUG
57152   printf("SWIG_InitializeModule: size %d\n", swig_module.size);
57153 #endif
57154   for (i = 0; i < swig_module.size; ++i) {
57155     swig_type_info *type = 0;
57156     swig_type_info *ret;
57157     swig_cast_info *cast;
57158 
57159 #ifdef SWIGRUNTIME_DEBUG
57160     printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
57161 #endif
57162 
57163     /* if there is another module already loaded */
57164     if (swig_module.next != &swig_module) {
57165       type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
57166     }
57167     if (type) {
57168       /* Overwrite clientdata field */
57169 #ifdef SWIGRUNTIME_DEBUG
57170       printf("SWIG_InitializeModule: found type %s\n", type->name);
57171 #endif
57172       if (swig_module.type_initial[i]->clientdata) {
57173         type->clientdata = swig_module.type_initial[i]->clientdata;
57174 #ifdef SWIGRUNTIME_DEBUG
57175         printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
57176 #endif
57177       }
57178     } else {
57179       type = swig_module.type_initial[i];
57180     }
57181 
57182     /* Insert casting types */
57183     cast = swig_module.cast_initial[i];
57184     while (cast->type) {
57185       /* Don't need to add information already in the list */
57186       ret = 0;
57187 #ifdef SWIGRUNTIME_DEBUG
57188       printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
57189 #endif
57190       if (swig_module.next != &swig_module) {
57191         ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
57192 #ifdef SWIGRUNTIME_DEBUG
57193         if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
57194 #endif
57195       }
57196       if (ret) {
57197         if (type == swig_module.type_initial[i]) {
57198 #ifdef SWIGRUNTIME_DEBUG
57199           printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
57200 #endif
57201           cast->type = ret;
57202           ret = 0;
57203         } else {
57204           /* Check for casting already in the list */
57205           swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
57206 #ifdef SWIGRUNTIME_DEBUG
57207           if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
57208 #endif
57209           if (!ocast) ret = 0;
57210         }
57211       }
57212 
57213       if (!ret) {
57214 #ifdef SWIGRUNTIME_DEBUG
57215         printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
57216 #endif
57217         if (type->cast) {
57218           type->cast->prev = cast;
57219           cast->next = type->cast;
57220         }
57221         type->cast = cast;
57222       }
57223       cast++;
57224     }
57225     /* Set entry in modules->types array equal to the type */
57226     swig_module.types[i] = type;
57227   }
57228   swig_module.types[i] = 0;
57229 
57230 #ifdef SWIGRUNTIME_DEBUG
57231   printf("**** SWIG_InitializeModule: Cast List ******\n");
57232   for (i = 0; i < swig_module.size; ++i) {
57233     int j = 0;
57234     swig_cast_info *cast = swig_module.cast_initial[i];
57235     printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
57236     while (cast->type) {
57237       printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
57238       cast++;
57239       ++j;
57240     }
57241     printf("---- Total casts: %d\n",j);
57242   }
57243   printf("**** SWIG_InitializeModule: Cast List ******\n");
57244 #endif
57245 }
57246 
57247 /* This function will propagate the clientdata field of type to
57248 * any new swig_type_info structures that have been added into the list
57249 * of equivalent types.  It is like calling
57250 * SWIG_TypeClientData(type, clientdata) a second time.
57251 */
57252 SWIGRUNTIME void
SWIG_PropagateClientData(void)57253 SWIG_PropagateClientData(void) {
57254   size_t i;
57255   swig_cast_info *equiv;
57256   static int init_run = 0;
57257 
57258   if (init_run) return;
57259   init_run = 1;
57260 
57261   for (i = 0; i < swig_module.size; i++) {
57262     if (swig_module.types[i]->clientdata) {
57263       equiv = swig_module.types[i]->cast;
57264       while (equiv) {
57265         if (!equiv->converter) {
57266           if (equiv->type && !equiv->type->clientdata)
57267           SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
57268         }
57269         equiv = equiv->next;
57270       }
57271     }
57272   }
57273 }
57274 
57275 #ifdef __cplusplus
57276 #if 0
57277 {
57278   /* c-mode */
57279 #endif
57280 }
57281 #endif
57282 
57283 
57284 
57285 #ifdef __cplusplus
57286 extern "C" {
57287 #endif
57288 
57289   /* Python-specific SWIG API */
57290 #define SWIG_newvarlink()                             SWIG_Python_newvarlink()
57291 #define SWIG_addvarlink(p, name, get_attr, set_attr)  SWIG_Python_addvarlink(p, name, get_attr, set_attr)
57292 #define SWIG_InstallConstants(d, constants)           SWIG_Python_InstallConstants(d, constants)
57293 
57294   /* -----------------------------------------------------------------------------
57295    * global variable support code.
57296    * ----------------------------------------------------------------------------- */
57297 
57298   typedef struct swig_globalvar {
57299     char       *name;                  /* Name of global variable */
57300     PyObject *(*get_attr)(void);       /* Return the current value */
57301     int       (*set_attr)(PyObject *); /* Set the value */
57302     struct swig_globalvar *next;
57303   } swig_globalvar;
57304 
57305   typedef struct swig_varlinkobject {
57306     PyObject_HEAD
57307     swig_globalvar *vars;
57308   } swig_varlinkobject;
57309 
57310   SWIGINTERN PyObject *
swig_varlink_repr(swig_varlinkobject * SWIGUNUSEDPARM (v))57311   swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
57312 #if PY_VERSION_HEX >= 0x03000000
57313     return PyUnicode_InternFromString("<Swig global variables>");
57314 #else
57315     return PyString_FromString("<Swig global variables>");
57316 #endif
57317   }
57318 
57319   SWIGINTERN PyObject *
swig_varlink_str(swig_varlinkobject * v)57320   swig_varlink_str(swig_varlinkobject *v) {
57321 #if PY_VERSION_HEX >= 0x03000000
57322     PyObject *str = PyUnicode_InternFromString("(");
57323     PyObject *tail;
57324     PyObject *joined;
57325     swig_globalvar *var;
57326     for (var = v->vars; var; var=var->next) {
57327       tail = PyUnicode_FromString(var->name);
57328       joined = PyUnicode_Concat(str, tail);
57329       Py_DecRef(str);
57330       Py_DecRef(tail);
57331       str = joined;
57332       if (var->next) {
57333         tail = PyUnicode_InternFromString(", ");
57334         joined = PyUnicode_Concat(str, tail);
57335         Py_DecRef(str);
57336         Py_DecRef(tail);
57337         str = joined;
57338       }
57339     }
57340     tail = PyUnicode_InternFromString(")");
57341     joined = PyUnicode_Concat(str, tail);
57342     Py_DecRef(str);
57343     Py_DecRef(tail);
57344     str = joined;
57345 #else
57346     PyObject *str = PyString_FromString("(");
57347     swig_globalvar *var;
57348     for (var = v->vars; var; var=var->next) {
57349       PyString_ConcatAndDel(&str,PyString_FromString(var->name));
57350       if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
57351     }
57352     PyString_ConcatAndDel(&str,PyString_FromString(")"));
57353 #endif
57354     return str;
57355   }
57356 
57357   SWIGINTERN int
swig_varlink_print(swig_varlinkobject * v,FILE * fp,int SWIGUNUSEDPARM (flags))57358   swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
57359     char *tmp;
57360     PyObject *str = swig_varlink_str(v);
57361     fprintf(fp,"Swig global variables ");
57362     fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
57363     SWIG_Python_str_DelForPy3(tmp);
57364     Py_DECREF(str);
57365     return 0;
57366   }
57367 
57368   SWIGINTERN void
swig_varlink_dealloc(swig_varlinkobject * v)57369   swig_varlink_dealloc(swig_varlinkobject *v) {
57370     swig_globalvar *var = v->vars;
57371     while (var) {
57372       swig_globalvar *n = var->next;
57373       free(var->name);
57374       free(var);
57375       var = n;
57376     }
57377   }
57378 
57379   SWIGINTERN PyObject *
swig_varlink_getattr(swig_varlinkobject * v,char * n)57380   swig_varlink_getattr(swig_varlinkobject *v, char *n) {
57381     PyObject *res = NULL;
57382     swig_globalvar *var = v->vars;
57383     while (var) {
57384       if (strcmp(var->name,n) == 0) {
57385         res = (*var->get_attr)();
57386         break;
57387       }
57388       var = var->next;
57389     }
57390     if (res == NULL && !PyErr_Occurred()) {
57391       PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
57392     }
57393     return res;
57394   }
57395 
57396   SWIGINTERN int
swig_varlink_setattr(swig_varlinkobject * v,char * n,PyObject * p)57397   swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
57398     int res = 1;
57399     swig_globalvar *var = v->vars;
57400     while (var) {
57401       if (strcmp(var->name,n) == 0) {
57402         res = (*var->set_attr)(p);
57403         break;
57404       }
57405       var = var->next;
57406     }
57407     if (res == 1 && !PyErr_Occurred()) {
57408       PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
57409     }
57410     return res;
57411   }
57412 
57413   SWIGINTERN PyTypeObject*
swig_varlink_type(void)57414   swig_varlink_type(void) {
57415     static char varlink__doc__[] = "Swig var link object";
57416     static PyTypeObject varlink_type;
57417     static int type_init = 0;
57418     if (!type_init) {
57419       const PyTypeObject tmp = {
57420 #if PY_VERSION_HEX >= 0x03000000
57421         PyVarObject_HEAD_INIT(NULL, 0)
57422 #else
57423         PyObject_HEAD_INIT(NULL)
57424         0,                                  /* ob_size */
57425 #endif
57426         (char *)"swigvarlink",              /* tp_name */
57427         sizeof(swig_varlinkobject),         /* tp_basicsize */
57428         0,                                  /* tp_itemsize */
57429         (destructor) swig_varlink_dealloc,  /* tp_dealloc */
57430         (printfunc) swig_varlink_print,     /* tp_print */
57431         (getattrfunc) swig_varlink_getattr, /* tp_getattr */
57432         (setattrfunc) swig_varlink_setattr, /* tp_setattr */
57433         0,                                  /* tp_compare */
57434         (reprfunc) swig_varlink_repr,       /* tp_repr */
57435         0,                                  /* tp_as_number */
57436         0,                                  /* tp_as_sequence */
57437         0,                                  /* tp_as_mapping */
57438         0,                                  /* tp_hash */
57439         0,                                  /* tp_call */
57440         (reprfunc) swig_varlink_str,        /* tp_str */
57441         0,                                  /* tp_getattro */
57442         0,                                  /* tp_setattro */
57443         0,                                  /* tp_as_buffer */
57444         0,                                  /* tp_flags */
57445         varlink__doc__,                     /* tp_doc */
57446         0,                                  /* tp_traverse */
57447         0,                                  /* tp_clear */
57448         0,                                  /* tp_richcompare */
57449         0,                                  /* tp_weaklistoffset */
57450 #if PY_VERSION_HEX >= 0x02020000
57451         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
57452 #endif
57453 #if PY_VERSION_HEX >= 0x02030000
57454         0,                                  /* tp_del */
57455 #endif
57456 #if PY_VERSION_HEX >= 0x02060000
57457         0,                                  /* tp_version_tag */
57458 #endif
57459 #if PY_VERSION_HEX >= 0x03040000
57460         0,                                  /* tp_finalize */
57461 #endif
57462 #ifdef COUNT_ALLOCS
57463         0,                                  /* tp_allocs */
57464         0,                                  /* tp_frees */
57465         0,                                  /* tp_maxalloc */
57466 #if PY_VERSION_HEX >= 0x02050000
57467         0,                                  /* tp_prev */
57468 #endif
57469         0                                   /* tp_next */
57470 #endif
57471       };
57472       varlink_type = tmp;
57473       type_init = 1;
57474 #if PY_VERSION_HEX < 0x02020000
57475       varlink_type.ob_type = &PyType_Type;
57476 #else
57477       if (PyType_Ready(&varlink_type) < 0)
57478       return NULL;
57479 #endif
57480     }
57481     return &varlink_type;
57482   }
57483 
57484   /* Create a variable linking object for use later */
57485   SWIGINTERN PyObject *
SWIG_Python_newvarlink(void)57486   SWIG_Python_newvarlink(void) {
57487     swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
57488     if (result) {
57489       result->vars = 0;
57490     }
57491     return ((PyObject*) result);
57492   }
57493 
57494   SWIGINTERN void
SWIG_Python_addvarlink(PyObject * p,char * name,PyObject * (* get_attr)(void),int (* set_attr)(PyObject * p))57495   SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
57496     swig_varlinkobject *v = (swig_varlinkobject *) p;
57497     swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
57498     if (gv) {
57499       size_t size = strlen(name)+1;
57500       gv->name = (char *)malloc(size);
57501       if (gv->name) {
57502         strncpy(gv->name,name,size);
57503         gv->get_attr = get_attr;
57504         gv->set_attr = set_attr;
57505         gv->next = v->vars;
57506       }
57507     }
57508     v->vars = gv;
57509   }
57510 
57511   SWIGINTERN PyObject *
SWIG_globals(void)57512   SWIG_globals(void) {
57513     static PyObject *_SWIG_globals = 0;
57514     if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
57515     return _SWIG_globals;
57516   }
57517 
57518   /* -----------------------------------------------------------------------------
57519    * constants/methods manipulation
57520    * ----------------------------------------------------------------------------- */
57521 
57522   /* Install Constants */
57523   SWIGINTERN void
SWIG_Python_InstallConstants(PyObject * d,swig_const_info constants[])57524   SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
57525     PyObject *obj = 0;
57526     size_t i;
57527     for (i = 0; constants[i].type; ++i) {
57528       switch(constants[i].type) {
57529       case SWIG_PY_POINTER:
57530         obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
57531         break;
57532       case SWIG_PY_BINARY:
57533         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
57534         break;
57535       default:
57536         obj = 0;
57537         break;
57538       }
57539       if (obj) {
57540         PyDict_SetItemString(d, constants[i].name, obj);
57541         Py_DECREF(obj);
57542       }
57543     }
57544   }
57545 
57546   /* -----------------------------------------------------------------------------*/
57547   /* Fix SwigMethods to carry the callback ptrs when needed */
57548   /* -----------------------------------------------------------------------------*/
57549 
57550   SWIGINTERN void
SWIG_Python_FixMethods(PyMethodDef * methods,swig_const_info * const_table,swig_type_info ** types,swig_type_info ** types_initial)57551   SWIG_Python_FixMethods(PyMethodDef *methods,
57552     swig_const_info *const_table,
57553     swig_type_info **types,
57554     swig_type_info **types_initial) {
57555     size_t i;
57556     for (i = 0; methods[i].ml_name; ++i) {
57557       const char *c = methods[i].ml_doc;
57558       if (!c) continue;
57559       c = strstr(c, "swig_ptr: ");
57560       if (c) {
57561         int j;
57562         swig_const_info *ci = 0;
57563         const char *name = c + 10;
57564         for (j = 0; const_table[j].type; ++j) {
57565           if (strncmp(const_table[j].name, name,
57566               strlen(const_table[j].name)) == 0) {
57567             ci = &(const_table[j]);
57568             break;
57569           }
57570         }
57571         if (ci) {
57572           void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
57573           if (ptr) {
57574             size_t shift = (ci->ptype) - types;
57575             swig_type_info *ty = types_initial[shift];
57576             size_t ldoc = (c - methods[i].ml_doc);
57577             size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
57578             char *ndoc = (char*)malloc(ldoc + lptr + 10);
57579             if (ndoc) {
57580               char *buff = ndoc;
57581               memcpy(buff, methods[i].ml_doc, ldoc);
57582               buff += ldoc;
57583               memcpy(buff, "swig_ptr: ", 10);
57584               buff += 10;
57585               SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
57586               methods[i].ml_doc = ndoc;
57587             }
57588           }
57589         }
57590       }
57591     }
57592   }
57593 
57594 #ifdef __cplusplus
57595 }
57596 #endif
57597 
57598 /* -----------------------------------------------------------------------------*
57599  *  Partial Init method
57600  * -----------------------------------------------------------------------------*/
57601 
57602 #ifdef __cplusplus
57603 extern "C"
57604 #endif
57605 
57606 SWIGEXPORT
57607 #if PY_VERSION_HEX >= 0x03000000
57608 PyObject*
57609 #else
57610 void
57611 #endif
SWIG_init(void)57612 SWIG_init(void) {
57613   PyObject *m, *d, *md;
57614 #if PY_VERSION_HEX >= 0x03000000
57615   static struct PyModuleDef SWIG_module = {
57616 # if PY_VERSION_HEX >= 0x03020000
57617     PyModuleDef_HEAD_INIT,
57618 # else
57619     {
57620       PyObject_HEAD_INIT(NULL)
57621       NULL, /* m_init */
57622       0,    /* m_index */
57623       NULL, /* m_copy */
57624     },
57625 # endif
57626     (char *) SWIG_name,
57627     NULL,
57628     -1,
57629     SwigMethods,
57630     NULL,
57631     NULL,
57632     NULL,
57633     NULL
57634   };
57635 #endif
57636 
57637 #if defined(SWIGPYTHON_BUILTIN)
57638   static SwigPyClientData SwigPyObject_clientdata = {
57639     0, 0, 0, 0, 0, 0, 0
57640   };
57641   static PyGetSetDef this_getset_def = {
57642     (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
57643   };
57644   static SwigPyGetSet thisown_getset_closure = {
57645     (PyCFunction) SwigPyObject_own,
57646     (PyCFunction) SwigPyObject_own
57647   };
57648   static PyGetSetDef thisown_getset_def = {
57649     (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
57650   };
57651   PyTypeObject *builtin_pytype;
57652   int builtin_base_count;
57653   swig_type_info *builtin_basetype;
57654   PyObject *tuple;
57655   PyGetSetDescrObject *static_getset;
57656   PyTypeObject *metatype;
57657   PyTypeObject *swigpyobject;
57658   SwigPyClientData *cd;
57659   PyObject *public_interface, *public_symbol;
57660   PyObject *this_descr;
57661   PyObject *thisown_descr;
57662   PyObject *self = 0;
57663   int i;
57664 
57665   (void)builtin_pytype;
57666   (void)builtin_base_count;
57667   (void)builtin_basetype;
57668   (void)tuple;
57669   (void)static_getset;
57670   (void)self;
57671 
57672   /* Metaclass is used to implement static member variables */
57673   metatype = SwigPyObjectType();
57674   assert(metatype);
57675 #endif
57676 
57677   /* Fix SwigMethods to carry the callback ptrs when needed */
57678   SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
57679 
57680 #if PY_VERSION_HEX >= 0x03000000
57681   m = PyModule_Create(&SWIG_module);
57682 #else
57683   m = Py_InitModule((char *) SWIG_name, SwigMethods);
57684 #endif
57685 
57686   md = d = PyModule_GetDict(m);
57687   (void)md;
57688 
57689   SWIG_InitializeModule(0);
57690 
57691 #ifdef SWIGPYTHON_BUILTIN
57692   swigpyobject = SwigPyObject_TypeOnce();
57693 
57694   SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject");
57695   assert(SwigPyObject_stype);
57696   cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
57697   if (!cd) {
57698     SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
57699     SwigPyObject_clientdata.pytype = swigpyobject;
57700   } else if (swigpyobject->tp_basicsize != cd->pytype->tp_basicsize) {
57701     PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
57702 # if PY_VERSION_HEX >= 0x03000000
57703     return NULL;
57704 # else
57705     return;
57706 # endif
57707   }
57708 
57709   /* All objects have a 'this' attribute */
57710   this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
57711   (void)this_descr;
57712 
57713   /* All objects have a 'thisown' attribute */
57714   thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
57715   (void)thisown_descr;
57716 
57717   public_interface = PyList_New(0);
57718   public_symbol = 0;
57719   (void)public_symbol;
57720 
57721   PyDict_SetItemString(md, "__all__", public_interface);
57722   Py_DECREF(public_interface);
57723   for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
57724   SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
57725   for (i = 0; swig_const_table[i].name != 0; ++i)
57726   SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
57727 #endif
57728 
57729   SWIG_InstallConstants(d,swig_const_table);
57730 
57731   SWIG_Python_SetConstant(d, "BAD_VALUENO",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(Xapian::BAD_VALUENO)));
57732   SWIG_Python_SetConstant(d, "DB_CREATE",SWIG_From_int(static_cast< int >(Xapian::DB_CREATE)));
57733   SWIG_Python_SetConstant(d, "DB_CREATE_OR_OPEN",SWIG_From_int(static_cast< int >(Xapian::DB_CREATE_OR_OPEN)));
57734   SWIG_Python_SetConstant(d, "DB_CREATE_OR_OVERWRITE",SWIG_From_int(static_cast< int >(Xapian::DB_CREATE_OR_OVERWRITE)));
57735   SWIG_Python_SetConstant(d, "DB_OPEN",SWIG_From_int(static_cast< int >(Xapian::DB_OPEN)));
57736   SWIG_Python_SetConstant(d, "DB_NO_SYNC",SWIG_From_int(static_cast< int >(Xapian::DB_NO_SYNC)));
57737   SWIG_Python_SetConstant(d, "DB_FULL_SYNC",SWIG_From_int(static_cast< int >(Xapian::DB_FULL_SYNC)));
57738   SWIG_Python_SetConstant(d, "DB_DANGEROUS",SWIG_From_int(static_cast< int >(Xapian::DB_DANGEROUS)));
57739   SWIG_Python_SetConstant(d, "DB_NO_TERMLIST",SWIG_From_int(static_cast< int >(Xapian::DB_NO_TERMLIST)));
57740   SWIG_Python_SetConstant(d, "DB_BACKEND_CHERT",SWIG_From_int(static_cast< int >(Xapian::DB_BACKEND_CHERT)));
57741   SWIG_Python_SetConstant(d, "DB_BACKEND_GLASS",SWIG_From_int(static_cast< int >(Xapian::DB_BACKEND_GLASS)));
57742   SWIG_Python_SetConstant(d, "DB_BACKEND_INMEMORY",SWIG_From_int(static_cast< int >(Xapian::DB_BACKEND_INMEMORY)));
57743   SWIG_Python_SetConstant(d, "DB_BACKEND_STUB",SWIG_From_int(static_cast< int >(Xapian::DB_BACKEND_STUB)));
57744   SWIG_Python_SetConstant(d, "DB_RETRY_LOCK",SWIG_From_int(static_cast< int >(Xapian::DB_RETRY_LOCK)));
57745   SWIG_Python_SetConstant(d, "DBCHECK_SHORT_TREE",SWIG_From_int(static_cast< int >(Xapian::DBCHECK_SHORT_TREE)));
57746   SWIG_Python_SetConstant(d, "DBCHECK_FULL_TREE",SWIG_From_int(static_cast< int >(Xapian::DBCHECK_FULL_TREE)));
57747   SWIG_Python_SetConstant(d, "DBCHECK_SHOW_FREELIST",SWIG_From_int(static_cast< int >(Xapian::DBCHECK_SHOW_FREELIST)));
57748   SWIG_Python_SetConstant(d, "DBCHECK_SHOW_STATS",SWIG_From_int(static_cast< int >(Xapian::DBCHECK_SHOW_STATS)));
57749   SWIG_Python_SetConstant(d, "DBCHECK_FIX",SWIG_From_int(static_cast< int >(Xapian::DBCHECK_FIX)));
57750   SWIG_Python_SetConstant(d, "DBCOMPACT_MULTIPASS",SWIG_From_int(static_cast< int >(Xapian::DBCOMPACT_MULTIPASS)));
57751   SWIG_Python_SetConstant(d, "DBCOMPACT_NO_RENUMBER",SWIG_From_int(static_cast< int >(Xapian::DBCOMPACT_NO_RENUMBER)));
57752   SWIG_Python_SetConstant(d, "DBCOMPACT_SINGLE_FILE",SWIG_From_int(static_cast< int >(Xapian::DBCOMPACT_SINGLE_FILE)));
57753   SWIG_Python_SetConstant(d, "DOC_ASSUME_VALID",SWIG_From_int(static_cast< int >(Xapian::DOC_ASSUME_VALID)));
57754   SWIG_Python_SetConstant(d, "Query_OP_AND",SWIG_From_int(static_cast< int >(Xapian::Query::OP_AND)));
57755   SWIG_Python_SetConstant(d, "Query_OP_OR",SWIG_From_int(static_cast< int >(Xapian::Query::OP_OR)));
57756   SWIG_Python_SetConstant(d, "Query_OP_AND_NOT",SWIG_From_int(static_cast< int >(Xapian::Query::OP_AND_NOT)));
57757   SWIG_Python_SetConstant(d, "Query_OP_XOR",SWIG_From_int(static_cast< int >(Xapian::Query::OP_XOR)));
57758   SWIG_Python_SetConstant(d, "Query_OP_AND_MAYBE",SWIG_From_int(static_cast< int >(Xapian::Query::OP_AND_MAYBE)));
57759   SWIG_Python_SetConstant(d, "Query_OP_FILTER",SWIG_From_int(static_cast< int >(Xapian::Query::OP_FILTER)));
57760   SWIG_Python_SetConstant(d, "Query_OP_NEAR",SWIG_From_int(static_cast< int >(Xapian::Query::OP_NEAR)));
57761   SWIG_Python_SetConstant(d, "Query_OP_PHRASE",SWIG_From_int(static_cast< int >(Xapian::Query::OP_PHRASE)));
57762   SWIG_Python_SetConstant(d, "Query_OP_VALUE_RANGE",SWIG_From_int(static_cast< int >(Xapian::Query::OP_VALUE_RANGE)));
57763   SWIG_Python_SetConstant(d, "Query_OP_SCALE_WEIGHT",SWIG_From_int(static_cast< int >(Xapian::Query::OP_SCALE_WEIGHT)));
57764   SWIG_Python_SetConstant(d, "Query_OP_ELITE_SET",SWIG_From_int(static_cast< int >(Xapian::Query::OP_ELITE_SET)));
57765   SWIG_Python_SetConstant(d, "Query_OP_VALUE_GE",SWIG_From_int(static_cast< int >(Xapian::Query::OP_VALUE_GE)));
57766   SWIG_Python_SetConstant(d, "Query_OP_VALUE_LE",SWIG_From_int(static_cast< int >(Xapian::Query::OP_VALUE_LE)));
57767   SWIG_Python_SetConstant(d, "Query_OP_SYNONYM",SWIG_From_int(static_cast< int >(Xapian::Query::OP_SYNONYM)));
57768   SWIG_Python_SetConstant(d, "Query_OP_MAX",SWIG_From_int(static_cast< int >(Xapian::Query::OP_MAX)));
57769   SWIG_Python_SetConstant(d, "Query_OP_WILDCARD",SWIG_From_int(static_cast< int >(Xapian::Query::OP_WILDCARD)));
57770   SWIG_Python_SetConstant(d, "Query_OP_INVALID",SWIG_From_int(static_cast< int >(Xapian::Query::OP_INVALID)));
57771   SWIG_Python_SetConstant(d, "Query_WILDCARD_LIMIT_ERROR",SWIG_From_int(static_cast< int >(Xapian::Query::WILDCARD_LIMIT_ERROR)));
57772   SWIG_Python_SetConstant(d, "Query_WILDCARD_LIMIT_FIRST",SWIG_From_int(static_cast< int >(Xapian::Query::WILDCARD_LIMIT_FIRST)));
57773   SWIG_Python_SetConstant(d, "Query_WILDCARD_LIMIT_MOST_FREQUENT",SWIG_From_int(static_cast< int >(Xapian::Query::WILDCARD_LIMIT_MOST_FREQUENT)));
57774   SWIG_Python_SetConstant(d, "TermGenerator_FLAG_SPELLING",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::FLAG_SPELLING)));
57775   SWIG_Python_SetConstant(d, "TermGenerator_FLAG_CJK_NGRAM",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::FLAG_CJK_NGRAM)));
57776   SWIG_Python_SetConstant(d, "TermGenerator_STEM_NONE",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STEM_NONE)));
57777   SWIG_Python_SetConstant(d, "TermGenerator_STEM_SOME",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STEM_SOME)));
57778   SWIG_Python_SetConstant(d, "TermGenerator_STEM_ALL",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STEM_ALL)));
57779   SWIG_Python_SetConstant(d, "TermGenerator_STEM_ALL_Z",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STEM_ALL_Z)));
57780   SWIG_Python_SetConstant(d, "TermGenerator_STEM_SOME_FULL_POS",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STEM_SOME_FULL_POS)));
57781   SWIG_Python_SetConstant(d, "TermGenerator_STOP_NONE",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STOP_NONE)));
57782   SWIG_Python_SetConstant(d, "TermGenerator_STOP_ALL",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STOP_ALL)));
57783   SWIG_Python_SetConstant(d, "TermGenerator_STOP_STEMMED",SWIG_From_int(static_cast< int >(Xapian::TermGenerator::STOP_STEMMED)));
57784   SWIG_Python_SetConstant(d, "MSet_SNIPPET_BACKGROUND_MODEL",SWIG_From_int(static_cast< int >(Xapian::MSet::SNIPPET_BACKGROUND_MODEL)));
57785   SWIG_Python_SetConstant(d, "MSet_SNIPPET_EXHAUSTIVE",SWIG_From_int(static_cast< int >(Xapian::MSet::SNIPPET_EXHAUSTIVE)));
57786   SWIG_Python_SetConstant(d, "MSet_SNIPPET_EMPTY_WITHOUT_MATCH",SWIG_From_int(static_cast< int >(Xapian::MSet::SNIPPET_EMPTY_WITHOUT_MATCH)));
57787   SWIG_Python_SetConstant(d, "MSet_SNIPPET_CJK_NGRAM",SWIG_From_int(static_cast< int >(Xapian::MSet::SNIPPET_CJK_NGRAM)));
57788   SWIG_Python_SetConstant(d, "Enquire_ASCENDING",SWIG_From_int(static_cast< int >(Xapian::Enquire::ASCENDING)));
57789   SWIG_Python_SetConstant(d, "Enquire_DESCENDING",SWIG_From_int(static_cast< int >(Xapian::Enquire::DESCENDING)));
57790   SWIG_Python_SetConstant(d, "Enquire_DONT_CARE",SWIG_From_int(static_cast< int >(Xapian::Enquire::DONT_CARE)));
57791   SWIG_Python_SetConstant(d, "Enquire_INCLUDE_QUERY_TERMS",SWIG_From_int(static_cast< int >(Xapian::Enquire::INCLUDE_QUERY_TERMS)));
57792   SWIG_Python_SetConstant(d, "Enquire_USE_EXACT_TERMFREQ",SWIG_From_int(static_cast< int >(Xapian::Enquire::USE_EXACT_TERMFREQ)));
57793   SWIG_Python_SetConstant(d, "RP_SUFFIX",SWIG_From_int(static_cast< int >(Xapian::RP_SUFFIX)));
57794   SWIG_Python_SetConstant(d, "RP_REPEATED",SWIG_From_int(static_cast< int >(Xapian::RP_REPEATED)));
57795   SWIG_Python_SetConstant(d, "RP_DATE_PREFER_MDY",SWIG_From_int(static_cast< int >(Xapian::RP_DATE_PREFER_MDY)));
57796   SWIG_Python_SetConstant(d, "QueryParser_FLAG_BOOLEAN",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_BOOLEAN)));
57797   SWIG_Python_SetConstant(d, "QueryParser_FLAG_PHRASE",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_PHRASE)));
57798   SWIG_Python_SetConstant(d, "QueryParser_FLAG_LOVEHATE",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_LOVEHATE)));
57799   SWIG_Python_SetConstant(d, "QueryParser_FLAG_BOOLEAN_ANY_CASE",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_BOOLEAN_ANY_CASE)));
57800   SWIG_Python_SetConstant(d, "QueryParser_FLAG_WILDCARD",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_WILDCARD)));
57801   SWIG_Python_SetConstant(d, "QueryParser_FLAG_PURE_NOT",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_PURE_NOT)));
57802   SWIG_Python_SetConstant(d, "QueryParser_FLAG_PARTIAL",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_PARTIAL)));
57803   SWIG_Python_SetConstant(d, "QueryParser_FLAG_SPELLING_CORRECTION",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_SPELLING_CORRECTION)));
57804   SWIG_Python_SetConstant(d, "QueryParser_FLAG_SYNONYM",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_SYNONYM)));
57805   SWIG_Python_SetConstant(d, "QueryParser_FLAG_AUTO_SYNONYMS",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_AUTO_SYNONYMS)));
57806   SWIG_Python_SetConstant(d, "QueryParser_FLAG_AUTO_MULTIWORD_SYNONYMS",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_AUTO_MULTIWORD_SYNONYMS)));
57807   SWIG_Python_SetConstant(d, "QueryParser_FLAG_CJK_NGRAM",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_CJK_NGRAM)));
57808   SWIG_Python_SetConstant(d, "QueryParser_FLAG_ACCUMULATE",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_ACCUMULATE)));
57809   SWIG_Python_SetConstant(d, "QueryParser_FLAG_DEFAULT",SWIG_From_int(static_cast< int >(Xapian::QueryParser::FLAG_DEFAULT)));
57810   SWIG_Python_SetConstant(d, "QueryParser_STEM_NONE",SWIG_From_int(static_cast< int >(Xapian::QueryParser::STEM_NONE)));
57811   SWIG_Python_SetConstant(d, "QueryParser_STEM_SOME",SWIG_From_int(static_cast< int >(Xapian::QueryParser::STEM_SOME)));
57812   SWIG_Python_SetConstant(d, "QueryParser_STEM_ALL",SWIG_From_int(static_cast< int >(Xapian::QueryParser::STEM_ALL)));
57813   SWIG_Python_SetConstant(d, "QueryParser_STEM_ALL_Z",SWIG_From_int(static_cast< int >(Xapian::QueryParser::STEM_ALL_Z)));
57814   SWIG_Python_SetConstant(d, "QueryParser_STEM_SOME_FULL_POS",SWIG_From_int(static_cast< int >(Xapian::QueryParser::STEM_SOME_FULL_POS)));
57815   SWIG_Python_SetConstant(d, "Weight_TWO_STAGE_SMOOTHING",SWIG_From_int(static_cast< int >(Xapian::Weight::TWO_STAGE_SMOOTHING)));
57816   SWIG_Python_SetConstant(d, "Weight_DIRICHLET_SMOOTHING",SWIG_From_int(static_cast< int >(Xapian::Weight::DIRICHLET_SMOOTHING)));
57817   SWIG_Python_SetConstant(d, "Weight_ABSOLUTE_DISCOUNT_SMOOTHING",SWIG_From_int(static_cast< int >(Xapian::Weight::ABSOLUTE_DISCOUNT_SMOOTHING)));
57818   SWIG_Python_SetConstant(d, "Weight_JELINEK_MERCER_SMOOTHING",SWIG_From_int(static_cast< int >(Xapian::Weight::JELINEK_MERCER_SMOOTHING)));
57819   SWIG_Python_SetConstant(d, "Weight_DIRICHLET_PLUS_SMOOTHING",SWIG_From_int(static_cast< int >(Xapian::Weight::DIRICHLET_PLUS_SMOOTHING)));
57820   SWIG_Python_SetConstant(d, "Compactor_STANDARD",SWIG_From_int(static_cast< int >(Xapian::Compactor::STANDARD)));
57821   SWIG_Python_SetConstant(d, "Compactor_FULL",SWIG_From_int(static_cast< int >(Xapian::Compactor::FULL)));
57822   SWIG_Python_SetConstant(d, "Compactor_FULLER",SWIG_From_int(static_cast< int >(Xapian::Compactor::FULLER)));
57823 
57824   /* Initialize threading */
57825   SWIG_PYTHON_INITIALIZE_THREADS;
57826 #if PY_VERSION_HEX >= 0x03000000
57827   return m;
57828 #else
57829   return;
57830 #endif
57831 }
57832 
57833